@poadio/ui-angular 0.16.0 → 0.18.0
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/fesm2022/poadio-ui-angular.mjs +1032 -759
- package/fesm2022/poadio-ui-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/types/poadio-ui-angular.d.ts +558 -144
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { model, input, booleanAttribute, signal, computed, Directive, InjectionToken, makeEnvironmentProviders, inject, Injectable, Optional, Inject, numberAttribute, ViewEncapsulation, ChangeDetectionStrategy, Component, ElementRef, output, contentChildren, effect, HostAttributeToken, contentChild, forwardRef, viewChild, HostListener, TemplateRef, Injector, afterNextRender, afterRenderEffect, PLATFORM_ID, DestroyRef, ComponentRef, ViewContainerRef, untracked, ViewChild, viewChildren, ChangeDetectorRef, Renderer2, NgZone } from '@angular/core';
|
|
3
|
-
import { UI_EN, uiTranslate, uiText, uiFormat, createIconRegistry, iconHostProps, iconSvgProps, iconRootClasses, iconTransform, buttonClasses, buttonProps, buttonGroupRootClasses, buttonGroupPressed, buttonGroupPick, inputControlProps, textareaAutosizeHeight, fieldRootClasses, fieldMessage, fieldControlProps, numberControlProps, numberRootClasses, numberButtons, numberDisplay, numberHandlesKey, numberTransition, passwordInputProps, passwordToggleProps, passwordMeter, passwordRootClasses, passwordTransition, sliderValues, sliderLabelId, sliderHandleProps, sliderMarks, sliderRootClasses, sliderFill, sliderPosition, sliderFillSize, sliderPercent, sliderFormat, sliderBubbleVisible, elementIsRtl, sliderApply, sliderValueAt, sliderNearest, sliderCompose, sliderValueOf, SLIDER_KEYS, sliderKeyTarget, colorParse, colorHslToRgb, colorRgbToHsv, colorHsvToRgb, colorRgbToHsl, colorFormat, COLOR_PRESETS, colorpickerHsv, colorpickerView, colorpickerRootClasses, colorpickerTriggerProps, COLORPICKER_PLACEMENTS, floatingConnection, colorpickerPresetSelected, colorpickerCanOpen, colorpickerDismiss, colorpickerWrite, colorpickerFromPreset, colorpickerFromHex, colorpickerFromChannel, colorpickerFromAlpha, colorpickerFraction, colorpickerPoint, colorpickerKey, colorpickerFromEyedropper, ratingControlProps, ratingRootClasses, ratingStars, ratingIconSize, ratingColor, ratingText, ratingShown, ratingFill, ratingStarClasses, ratingFirstHalf, ratingInteractive, RATING_KEYS, ratingTransition, MASK_PRESETS, maskApply, maskUnmask, maskResolve, maskPlaceholder, maskInputMode, maskWrite, maskInput, maskFirstSlot, keyFilterValid, keyFilterBlocks, keyFilterPaste, inplaceRootClasses, INPLACE_FOCUS_SELECTOR, inplaceTransition, switchControlProps, switchLabelProps, switchRootClasses, switchTransition, checkboxControlProps, checkboxLabelProps, checkboxRootClasses, checkboxMark, checkboxTransition, radioGroupClasses, radioKeydown, radioSelect, radioControlProps, radioLabelProps, radioRootClasses, segmentedOptionProps, segmentedRootClasses, segmentedIsOn, segmentedPick, segmentedKeydown, toggleButtonView, toggleButtonTransition, FOCUS_AUTOFOCUS_ATTR, FOCUSABLE_SELECTOR, focusTrapTab, focusTrapInitial, SHEET_ANIM_MS, sheetDragTransform, sheetHeightClass, sheetHeightCss, sheetDragStarts, sheetDragOffset, sheetRelease, selectListboxProps, selectEmptyMessage, selectOptionProps, selectScrollTop, SELECT_PLACEMENTS, selectUseSheet, selectItems, selectFilterItems, selectOptionsOf, selectActiveDescendant, selectOptionLabel, selectOptionValue, selectOptionDisabled, selectEquals, selectFindOption, selectTransition, selectSheetTitle, selectFallbackLabel, selectRootClasses, selectTriggerProps, selectFilterProps, multiselectValues, multiselectLimitReached, multiselectShows, multiselectCountLabel, multiselectAllState, multiselectAllProps, multiselectRootClasses, multiselectToggle, multiselectRemove, multiselectToggleAll, tableCompare, tableSortRows, tableMatch, tableRowPredicate, tableFilterRows, tableColumnId, tableColumnSortField, tableColumnAlign, paginatorPageCount, paginatorPage, paginatorVisible, paginatorReport, paginatorLinks, paginatorGoTo, paginatorChangeRows, paginatorEvent, dialogMobileMode, dialogSheetHeight, dialogContainerClass, dialogContainerProps, dialogMaximizeButton, dialogWidth, dialogHeight, dialogMaxWidth, dialogDragTransform, dialogDragStarts, dialogDragOffset, DIALOG_ANIM_MS, dialogShouldClose, dialogPlacement, dialogHasBackdrop, dialogBlocksScroll, confirmCanAccept, confirmAcceptSeverity, confirmIcon, confirmClasses, confirmDialogConfig, TOOLTIP_INITIAL, tooltipTransition, tooltipCandidates, TOOLTIP_OFFSET, TOOLTIP_MARGIN, tooltipAnchorProps, floatingArrow, TOOLTIP_ARROW, popoverProps, popoverOpen, popoverUseSheet, popoverCandidates, POPOVER_MARGIN, popoverDismiss, popoverRestoreFocus, popoverToggle, popoverTriggerProps, POPOVER_ARROW, uiFirstDayOfWeek, uiUses12Hours, startOfDay, sheetUse, startOfMonth, DATEPICKER_PLACEMENTS, DATEPICKER_OFFSET, datepickerSelected, datepickerHasTime, datepickerEffectiveMode, datepickerFormat, datepickerDisplay, datepickerMonths, datepickerMonthLabel, datepickerWeekdays, datepickerDecadeStart, datepickerYears, datepickerHourDisplay, datepickerNavLabels, datepickerInputProps, datepickerDisabledKeys, toDate, datepickerRows, datepickerDayProps, isSameDay, datepickerInitialView, datepickerParse, datepickerNavigate, datepickerMonthDisabled, datepickerYearDisabled, datepickerHoverInRange, datepickerPickDay, datepickerShouldClose, datepickerWithTime, datepickerDayDisabled, datepickerValue, datepickerBumpTime, datepickerTimeFromInput, datepickerGridKey, datepickerFollow, isoOf, splitterClasses, splitterTemplate, splitterInitial, splitterPlacement, splitterPanelTrack, splitterGutterProps, splitterGutterTrack, splitterParseSaved, SPLITTER_STORAGE_PREFIX, splitterNormalize, splitterResize, splitterDragDelta, splitterKey, tableToggleRow, tableTreeToggleRow, tableSelectSingle, tableSelectRange, tableSelectOnly, tableToggleAll, tableToggleRows, tableClearSelection, TableNodes, tableIsGroupKey, tableAggregate, tableFilterOperatorLabel, TABLE_FILTER_OPERATORS, tableFilterKind, tableFilterDefaultMode, tableFilterOperator, tableFilterValueForOperator, tabsActiveIndex, classNames, tabsRootClasses, tabsTabProps, tabsPanelProps, tabsPanelRendered, tabsSelect, tabsKeydown, tabsScrollBy, tabsOverflow, stepperRootClasses, stepperItemProps, stepperStateOf, stepperCanGo, stepperReachable, accordionHeaderProps, accordionRegionProps, accordionIsOpen, accordionSet, accordionKeydown, breadcrumbEntries, breadcrumbLinkKind, breadcrumbClickable, MENU_PLACEMENTS, MENU_OFFSET, MENU_INITIAL, menuVisible, menuHasIcons, menuItemProps, menuSheetFocusIndex, menuSubIcon, menuUseSheet, menuOpen, menuKeydown, menuActivate, menuHover, menuSubHover, splitButtonIconSize, splitButtonToggleProps, speedDialTooltipSide, speedDialClasses, speedDialItemsProps, speedDialItemProps, speedDialFabProps, speedDialItemStyle, speedDialKeyTarget, tableHasExpandColumn, tableDetailPaddingLeft, tableSortMetas, tableCollator, tableGlobalFields, tableView, tableBodyState, tableHeaderRowProps, tableRootProps, tableActiveIndex, tableRowProps, tableFilterActiveCount, tableRowCountParts, tableCounts, paginatorClampFirst, tableFormatCell, tableThClasses, tableTdClasses, tableRowClasses, tableTreeRowClasses, tableSkeletonWidth, tableTreeGuides, tableTreeToggleProps, tableSortIndex, tableSortOrderOf, tableSortIcon, tableAriaSort, tableSortToggle, tableSortState, tableFilterDelay, tableFilterSet, tableTreeNodeState, TABLE_ROW_CLICK_IGNORE, tableRowClickAction, tableTreeKey, tableGridKey, tableCanExpand, tableExpandToggle, tableExpandAllKeys, tableTreeIsExpanded, tableTreeToggle, tableTreeNeedsLoad, tableTreeExpandKeys, tableGroupToggle, tableSortTo, tableFilterIsActive, tableFilterValues, tableFilterPart, tableFilterSetOperator, tableFilterRangePart, tableFilterToggleValue, tableFilterClear, tablePanelOperatorOptions, TABLE_PANEL_TABS, tablePanelTabProps, tablePanelBodyProps, tablePanelTabKey, tablePanelTabClick, tablePanelColumnMatches, tablePanelAllState, tablePanelGroupCandidates, tablePanelKind, tablePanelDraftInit, tablePanelDraftSync, tablePanelIsActive, tablePanelDraftFilter, tablePanelDraftToggle, skeletonBars, skeletonRootClasses, comboValues, comboInputProps, comboRootClasses, comboOptionProps, comboLabel, comboIsSelected, comboTextOf, comboBlur, comboInput, comboFilter, comboResults, comboPick, comboKeydown, toastMessage, TOAST_OUT_MS, toastRootClass, toastForKey, toastSync, toastLife, toastSeverity, toastIcon, toastItemProps, toastPause, toastResume, messageClasses, messageIcon, messageIconSize, avatarInitials, avatarIconSize, avatarContent, avatarColors, avatarRootClasses, avatarLabel, chipClasses, chipProps, chipShowRemove, chipIconSize, chipClickAction, chipKeyAction, tagClasses, tagIconSize, badgeClasses, badgeProps, badgeContent, badgeOverlayVisible, badgeText, progressClasses, progressShowHead, progressShowValue, progressTrackProps, progressBarWidth, progressPercent, spinnerClasses, cardClasses, cardPadding, cardHasHead, dividerClasses, dividerProps, fieldsetRegionId, fieldsetClasses, collapsibleButtonProps, collapsibleRegionProps, collapsibleToggle, panelClasses, panelHeadless, panelIds, avatarGroupHidden, avatarGroupHiddenTitle, avatarGroupMoreText, avatarGroupOverflow, meterTotal, meterRemaining, meterSegments, meterRootClasses, meterBarProps, meterValueText, meterPercentText, timelineActiveIndex, timelineClasses, timelineEventClasses, timelineMarkerColor, timelineIcon, timelineText, carouselResponsiveVisible, carouselStep, carouselPageCount, carouselPages, carouselOffset, carouselTransform, carouselClasses, carouselLive, carouselRotating, carouselPlayLabelKey, carouselPrevDisabled, carouselNextDisabled, carouselItemVisible, carouselItemProps, REDUCED_MOTION_QUERY, carouselTick, CAROUSEL_TICK_MS, carouselGoTo, carouselFocusPause, carouselKey, carouselKeyTarget, carouselSwipe, IMAGE_VIEW_INITIAL, imageSource, imageClasses, imageViewerProps, imageTransform, imageZoom, imageViewStep, imageWheelDelta, imageViewerKey, scrollTopClasses, scrollTopButtonProps, scrollTopVisible, scrollTopBehavior, blockOverlayProps, blockOverlayClasses, blockSpinnerSize, blockHostProps, blockContentProps, listboxFilterItems, listboxSameValue, listboxValues, listboxAllState, listboxAllChecked, listboxClasses, listboxListProps, listboxSelected, listboxOptionClasses, listboxFocusActive, listboxPick, listboxRange, listboxToggleAll, listboxKeyAction, listboxTypeaheadQuery, listboxTypeahead, uploadFormatSize, UPLOAD_LIVE_PROPS, uploadPending, uploadClasses, uploadZoneProps, uploadInputProps, uploadIconFor, uploadItemClasses, uploadIsError, uploadStatusIcon, uploadZoneKey, uploadAdd, uploadRejectionText, uploadAnnouncement, uploadRemove, uploadFocusAfterRemove, uploadPatch, uploadComplete, addDays, isValidDate, addYears, addMonths, isoWeek, formatDate, POAD_ICONS } from '@poadio/ui-core';
|
|
2
|
+
import { model, input, booleanAttribute, signal, computed, Directive, InjectionToken, makeEnvironmentProviders, inject, Injectable, Optional, Inject, numberAttribute, ViewEncapsulation, ChangeDetectionStrategy, Component, ElementRef, output, contentChildren, effect, HostAttributeToken, contentChild, forwardRef, viewChild, HostListener, TemplateRef, Injector, afterNextRender, afterRenderEffect, PLATFORM_ID, DestroyRef, ComponentRef, ViewContainerRef, untracked, ViewChild, viewChildren, ChangeDetectorRef, afterEveryRender, Renderer2, NgZone } from '@angular/core';
|
|
3
|
+
import { UI_EN, uiTranslate, uiText, uiFormat, createIconRegistry, iconHostProps, iconSvgProps, iconRootClasses, iconTransform, buttonClasses, buttonProps, buttonGroupRootClasses, buttonGroupPressed, buttonGroupPick, inputControlProps, textareaAutosizeHeight, fieldRootClasses, fieldMessage, fieldControlProps, numberControlProps, numberRootClasses, numberButtons, numberDisplay, numberHandlesKey, numberTransition, passwordInputProps, passwordToggleProps, passwordMeter, passwordRootClasses, passwordTransition, sliderValues, sliderLabelId, sliderHandleProps, sliderMarks, sliderRootClasses, sliderFill, sliderPosition, sliderFillSize, sliderPercent, sliderFormat, sliderBubbleVisible, elementIsRtl, sliderApply, sliderValueAt, sliderNearest, sliderCompose, sliderValueOf, SLIDER_KEYS, sliderKeyTarget, colorParse, colorHslToRgb, colorRgbToHsv, colorHsvToRgb, colorRgbToHsl, colorFormat, COLOR_PRESETS, colorpickerHsv, colorpickerView, colorpickerRootClasses, colorpickerTriggerProps, COLORPICKER_PLACEMENTS, floatingConnection, colorpickerPresetSelected, colorpickerCanOpen, colorpickerDismiss, colorpickerWrite, colorpickerFromPreset, colorpickerFromHex, colorpickerFromChannel, colorpickerFromAlpha, colorpickerFraction, colorpickerPoint, colorpickerKey, colorpickerFromEyedropper, ratingControlProps, ratingRootClasses, ratingStars, ratingIconSize, ratingColor, ratingText, ratingShown, ratingFill, ratingStarClasses, ratingFirstHalf, ratingInteractive, RATING_KEYS, ratingTransition, MASK_PRESETS, maskApply, maskUnmask, maskResolve, maskPlaceholder, maskInputMode, maskWrite, maskInput, maskFirstSlot, keyFilterValid, keyFilterBlocks, keyFilterPaste, inplaceRootClasses, INPLACE_FOCUS_SELECTOR, inplaceTransition, switchControlProps, switchLabelProps, switchRootClasses, switchTransition, checkboxControlProps, checkboxLabelProps, checkboxRootClasses, checkboxMark, checkboxTransition, radioGroupClasses, radioKeydown, radioSelect, radioControlProps, radioLabelProps, radioRootClasses, segmentedOptionProps, segmentedRootClasses, segmentedIsOn, segmentedPick, segmentedKeydown, toggleButtonView, toggleButtonTransition, BREAKPOINTS, BREAKPOINT_SERVER_WIDTH, BREAKPOINT_TOUCH_QUERY, breakpointState, breakpointUp, breakpointDown, breakpointBetween, breakpointMatches, responsiveParse, responsiveResolve, FOCUS_AUTOFOCUS_ATTR, FOCUSABLE_SELECTOR, focusTrapTab, focusTrapInitial, SHEET_ANIM_MS, sheetDragTransform, sheetHeightClass, sheetHeightCss, sheetDragStarts, sheetDragOffset, sheetRelease, selectListboxProps, selectEmptyMessage, selectOptionProps, selectScrollTop, SELECT_PLACEMENTS, selectUseSheet, selectItems, selectFilterItems, selectOptionsOf, selectActiveDescendant, selectOptionLabel, selectOptionValue, selectOptionDisabled, selectEquals, selectFindOption, selectTransition, selectSheetTitle, selectFallbackLabel, selectRootClasses, selectTriggerProps, selectFilterProps, multiselectValues, multiselectLimitReached, multiselectShows, multiselectCountLabel, multiselectAllState, multiselectAllProps, multiselectRootClasses, multiselectToggle, multiselectRemove, multiselectToggleAll, tableCompare, tableSortRows, tableMatch, tableRowPredicate, tableFilterRows, tableColumnId, tableColumnSortField, tableColumnAlign, paginatorPageCount, paginatorPage, paginatorVisible, paginatorReport, paginatorLinks, paginatorGoTo, paginatorChangeRows, paginatorEvent, dialogMobileMode, dialogSheetHeight, dialogContainerClass, dialogContainerProps, dialogMaximizeButton, dialogWidth, dialogHeight, dialogMaxWidth, dialogDragTransform, dialogDragStarts, dialogDragOffset, DIALOG_ANIM_MS, dialogShouldClose, dialogPlacement, dialogHasBackdrop, dialogBlocksScroll, confirmCanAccept, confirmAcceptSeverity, confirmIcon, confirmClasses, confirmDialogConfig, TOOLTIP_INITIAL, tooltipTransition, tooltipCandidates, TOOLTIP_OFFSET, TOOLTIP_MARGIN, tooltipAnchorProps, floatingArrow, TOOLTIP_ARROW, popoverProps, popoverOpen, popoverUseSheet, popoverCandidates, POPOVER_MARGIN, popoverDismiss, popoverRestoreFocus, popoverToggle, popoverTriggerProps, POPOVER_ARROW, uiFirstDayOfWeek, uiUses12Hours, startOfDay, sheetUse, startOfMonth, DATEPICKER_PLACEMENTS, DATEPICKER_OFFSET, datepickerSelected, datepickerHasTime, datepickerEffectiveMode, datepickerFormat, datepickerDisplay, datepickerMonths, datepickerMonthLabel, datepickerWeekdays, datepickerDecadeStart, datepickerYears, datepickerHourDisplay, datepickerNavLabels, datepickerInputProps, datepickerDisabledKeys, toDate, datepickerRows, datepickerDayProps, isSameDay, datepickerInitialView, datepickerParse, datepickerNavigate, datepickerMonthDisabled, datepickerYearDisabled, datepickerHoverInRange, datepickerPickDay, datepickerShouldClose, datepickerWithTime, datepickerDayDisabled, datepickerValue, datepickerBumpTime, datepickerTimeFromInput, datepickerGridKey, datepickerFollow, isoOf, layoutGap, responsiveValue, breakpointShows, stackStyle, clusterStyle, gridStyle, gridColumn, splitStyle, sidebarCollapsed, sidebarStyle, centerStyle, containerStyle, spacerStyle, splitterClasses, splitterTemplate, splitterInitial, splitterPlacement, splitterPanelTrack, splitterGutterProps, splitterGutterTrack, splitterParseSaved, SPLITTER_STORAGE_PREFIX, splitterNormalize, splitterResize, splitterDragDelta, splitterKey, APP_SHELL_NO_METRICS, appShellStyle, appShellCompact, appShellMeasure, appShellMetrics, tableToggleRow, tableTreeToggleRow, tableSelectSingle, tableSelectRange, tableSelectOnly, tableToggleAll, tableToggleRows, tableClearSelection, TableNodes, tableIsGroupKey, tableAggregate, TABLE_PRIORITY_BREAKPOINTS, tableStacked, tableHiddenPriorities, tableResponsiveClasses, tableIsPriorityHidden, tableStickyRootClasses, tableHasSticky, tableStickyOffsets, tableStickyClass, tableStickyWidths, tableStickyWidthsEqual, tableScrollShadow, tableFilterOperatorLabel, TABLE_FILTER_OPERATORS, tableFilterKind, tableFilterDefaultMode, tableFilterOperator, tableFilterValueForOperator, tabsActiveIndex, classNames, tabsRootClasses, tabsTabProps, tabsPanelProps, tabsPanelRendered, tabsSelect, tabsKeydown, tabsScrollBy, tabsOverflow, stepperRootClasses, stepperItemProps, stepperStateOf, stepperCanGo, stepperReachable, accordionHeaderProps, accordionRegionProps, accordionIsOpen, accordionSet, accordionKeydown, breadcrumbEntries, breadcrumbLinkKind, breadcrumbClickable, MENU_PLACEMENTS, MENU_OFFSET, MENU_INITIAL, menuVisible, menuHasIcons, menuItemProps, menuSheetFocusIndex, menuSubIcon, menuUseSheet, menuOpen, menuKeydown, menuActivate, menuHover, menuSubHover, MENUBAR_PLACEMENTS, MENUBAR_OFFSET, menubarVisible, menubarCollapsed, MENUBAR_INITIAL, menubarIsMega, menubarPanelItems, menubarColumns, menubarMobileRows, menubarClose, menubarHasPanel, menubarRootProps, menubarIsCurrent, menubarMobileIndent, menubarToggle, menubarPointerMoved, menubarHover, MENUBAR_CLOSE_DELAY, menubarRootKeydown, menubarPanelFrom, menubarPanelKeydown, menubarMobileToggle, menubarMobileKeyTarget, splitButtonIconSize, splitButtonToggleProps, speedDialTooltipSide, speedDialClasses, speedDialItemsProps, speedDialItemProps, speedDialFabProps, speedDialItemStyle, speedDialKeyTarget, BOTTOM_NAV_MAX, bottomNavShown, bottomNavVisible, bottomNavShowLabel, bottomNavBadge, bottomNavItemProps, bottomNavIcon, bottomNavPick, navDrawerMode, navDrawerModal, navDrawerClasses, navDrawerPanelProps, navDrawerRows, lockDocumentScroll, navDrawerItemProps, navDrawerBadge, navDrawerSectionCount, navDrawerToggle, navDrawerIsActive, navDrawerShouldClose, navDrawerKeydown, navDrawerFocusable, navDrawerPick, tableFiltersToggleProps, tableFiltersToggleShown, tableResponsivePageLinks, tableHasExpandColumn, tableHiddenInExpansion, tableHasActionsColumn, tableDetailPaddingLeft, tableSortMetas, tableCollator, tableGlobalFields, tableView, tableBodyState, tableHeaderRowProps, tableRootProps, tableActiveIndex, tableRowProps, tableFilterActiveCount, tableRowCountParts, tableCounts, paginatorClampFirst, tableToolsHaveContent, tableFormatCell, tableThClasses, tableTdClasses, tableRowClasses, tableTreeRowClasses, tableSkeletonWidth, tableTreeGuides, tableTreeToggleProps, tableStickyKeys, tableStickySideOf, tablePinColumn, tableSortIndex, tableSortOrderOf, tableSortIcon, tableAriaSort, tableSortToggle, tableSortState, tableFilterDelay, tableFilterSet, tableTreeNodeState, TABLE_ROW_CLICK_IGNORE, tableRowClickAction, tableTreeKey, tableGridKey, tableCanExpand, tableExpandToggle, tableExpandAllKeys, tableTreeIsExpanded, tableTreeToggle, tableTreeNeedsLoad, tableTreeExpandKeys, tableGroupToggle, tableSortTo, tableFilterIsActive, tableFilterValues, tableFilterPart, tableFilterSetOperator, tableFilterRangePart, tableFilterToggleValue, tableFilterClear, tablePanelOperatorOptions, TABLE_PANEL_TABS, tablePanelTabProps, tablePanelBodyProps, tablePanelTabKey, tablePanelTabClick, tablePanelColumnMatches, tablePanelAllState, tablePanelGroupCandidates, tablePanelKind, tablePanelDraftInit, tablePanelDraftSync, tablePanelIsActive, tablePanelDraftFilter, tablePanelDraftToggle, skeletonBars, skeletonRootClasses, dataviewItems, dataviewPage, dataviewSwitchItems, dataviewTrack, dataviewSetLayout, comboValues, comboInputProps, comboRootClasses, comboOptionProps, comboLabel, comboIsSelected, comboTextOf, comboBlur, comboInput, comboFilter, comboResults, comboPick, comboKeydown, toastMessage, TOAST_OUT_MS, toastRootClass, toastForKey, toastSync, toastLife, toastSeverity, toastIcon, toastItemProps, toastPause, toastResume, messageClasses, messageIcon, messageIconSize, avatarInitials, avatarIconSize, avatarContent, avatarColors, avatarRootClasses, avatarLabel, chipClasses, chipProps, chipShowRemove, chipIconSize, chipClickAction, chipKeyAction, tagClasses, tagIconSize, badgeClasses, badgeProps, badgeContent, badgeOverlayVisible, badgeText, progressClasses, progressShowHead, progressShowValue, progressTrackProps, progressBarWidth, progressPercent, spinnerClasses, cardClasses, cardPadding, cardHasHead, dividerClasses, dividerProps, fieldsetRegionId, fieldsetClasses, collapsibleButtonProps, collapsibleRegionProps, collapsibleToggle, panelClasses, panelHeadless, panelIds, avatarGroupHidden, avatarGroupHiddenTitle, avatarGroupMoreText, avatarGroupOverflow, meterTotal, meterRemaining, meterSegments, meterRootClasses, meterBarProps, meterValueText, meterPercentText, timelineActiveIndex, timelineClasses, timelineEventClasses, timelineMarkerColor, timelineIcon, timelineText, carouselResponsiveVisible, carouselStep, carouselPageCount, carouselPages, carouselOffset, carouselTransform, carouselClasses, carouselLive, carouselRotating, carouselPlayLabelKey, carouselPrevDisabled, carouselNextDisabled, carouselItemVisible, carouselItemProps, REDUCED_MOTION_QUERY, carouselTick, CAROUSEL_TICK_MS, carouselGoTo, carouselFocusPause, carouselKey, carouselKeyTarget, carouselSwipe, IMAGE_VIEW_INITIAL, imageSource, imageClasses, imageViewerProps, imageTransform, imageZoom, imageViewStep, imageWheelDelta, imageViewerKey, scrollTopClasses, scrollTopButtonProps, scrollTopVisible, scrollTopBehavior, blockOverlayProps, blockOverlayClasses, blockSpinnerSize, blockHostProps, blockContentProps, listboxFilterItems, listboxSameValue, listboxValues, listboxAllState, listboxAllChecked, listboxClasses, listboxListProps, listboxSelected, listboxOptionClasses, listboxFocusActive, listboxPick, listboxRange, listboxToggleAll, listboxKeyAction, listboxTypeaheadQuery, listboxTypeahead, uploadFormatSize, UPLOAD_LIVE_PROPS, uploadPending, uploadClasses, uploadZoneProps, uploadInputProps, uploadIconFor, uploadItemClasses, uploadIsError, uploadStatusIcon, uploadZoneKey, uploadAdd, uploadRejectionText, uploadAnnouncement, uploadRemove, uploadFocusAfterRemove, uploadPatch, uploadComplete, addDays, isValidDate, addYears, addMonths, isoWeek, formatDate, POAD_ICONS } from '@poadio/ui-core';
|
|
4
4
|
export { POAD_ICONS, POAD_ICONS_CEREMA, POAD_ICONS_CORE, POAD_ICONS_DATA, POAD_ICONS_FILES, POAD_ICONS_GEO, POAD_ICONS_UI, POAD_ICON_ALIASES, POAD_ICON_CATEGORIES, UI_EN, UI_FR, addDays, addMonths, addYears, compareDay, daysInMonth, endOfMonth, formatDate, isBetweenDay, isSameDay, isSameMonth, isValidDate, isoOf, isoWeek, localeDateFormat, monthNames, pad2, parseIso, parseWithFormat, startOfDay, startOfMonth, toDate, uiFirstDayOfWeek, uiFormat, uiInterpolate, uiPickForm, uiPlaceholders, uiUses12Hours, weekdayNames } from '@poadio/ui-core';
|
|
5
5
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
6
6
|
import * as i1$2 from '@angular/forms';
|
|
@@ -2133,31 +2133,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
2133
2133
|
args: [{ selector: '[poadSelectFooter]', standalone: true }]
|
|
2134
2134
|
}] });
|
|
2135
2135
|
|
|
2136
|
-
|
|
2137
|
-
const
|
|
2136
|
+
/** Largeur minimale (px) de chaque point de rupture (`BREAKPOINTS` d'ui-core). */
|
|
2137
|
+
const POAD_BREAKPOINTS = BREAKPOINTS;
|
|
2138
2138
|
/** Seuil « mobile » global : en dessous, les overlays passent en feuille basse / plein écran (défaut 'md'). */
|
|
2139
2139
|
const POAD_MOBILE_BREAKPOINT = new InjectionToken('POAD_MOBILE_BREAKPOINT', { providedIn: 'root', factory: () => 'md' });
|
|
2140
2140
|
/** Densité tactile : 'auto' = classe `poad-touch` sur <html> quand `pointer: coarse` ; 'on' / 'off' forcent. */
|
|
2141
2141
|
const POAD_TOUCH_DENSITY = new InjectionToken('POAD_TOUCH_DENSITY', { providedIn: 'root', factory: () => 'auto' });
|
|
2142
2142
|
/**
|
|
2143
|
-
* Breakpoints de la FENÊTRE (nommage Tailwind : xs<640, sm≥640, md≥768, lg≥1024, xl≥1280, 2xl≥1536)
|
|
2143
|
+
* Breakpoints de la FENÊTRE (nommage Tailwind : xs<640, sm≥640, md≥768, lg≥1024, xl≥1280, 2xl≥1536), sur le module
|
|
2144
|
+
* `breakpoint` d'ui-core (`breakpointState`, `breakpointMatches`) — les mêmes décisions que `useBreakpoint` (React, Vue)
|
|
2145
|
+
* et `<poad-if>` (composants web).
|
|
2144
2146
|
* Signals : `current()`, `width()`, `up('md')`, `down('lg')`, `between('sm','lg')`, `isMobile()` (<md), `isTouch()` (pointer: coarse).
|
|
2145
2147
|
* Pour qu'un composant s'adapte à SON conteneur (et non à la fenêtre), utiliser les container queries / ResizeObserver
|
|
2146
2148
|
* (cf. poad-table `responsive`), ce service sert aux décisions de page (sidebar, layout global, overlays mobiles).
|
|
2147
2149
|
* `isMobile()` = sous POAD_MOBILE_BREAKPOINT ('md') ; `sheetPreferred()` = les overlays doivent passer en feuille basse.
|
|
2148
2150
|
* Densité tactile : pose la classe `poad-touch` sur <html> (POAD_TOUCH_DENSITY : auto | on | off) → tokens 40 px.
|
|
2151
|
+
* Sans fenêtre (rendu serveur) : largeur `BREAKPOINT_SERVER_WIDTH` (1280, `xl`).
|
|
2149
2152
|
*/
|
|
2150
2153
|
class PoadBreakpointService {
|
|
2151
2154
|
isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
|
|
2152
|
-
_width = signal(this.isBrowser ? window.innerWidth :
|
|
2153
|
-
_touch = signal(this.isBrowser && typeof window.matchMedia === 'function' ? window.matchMedia(
|
|
2154
|
-
width = this._width.asReadonly();
|
|
2155
|
-
current = computed(() => { const w = this._width(); return w >= 1536 ? '2xl' : w >= 1280 ? 'xl' : w >= 1024 ? 'lg' : w >= 768 ? 'md' : w >= 640 ? 'sm' : 'xs'; }, ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
|
|
2155
|
+
_width = signal(this.isBrowser ? window.innerWidth : BREAKPOINT_SERVER_WIDTH, ...(ngDevMode ? [{ debugName: "_width" }] : /* istanbul ignore next */ []));
|
|
2156
|
+
_touch = signal(this.isBrowser && typeof window.matchMedia === 'function' ? window.matchMedia(BREAKPOINT_TOUCH_QUERY).matches : false, ...(ngDevMode ? [{ debugName: "_touch" }] : /* istanbul ignore next */ []));
|
|
2156
2157
|
mobileBp = inject(POAD_MOBILE_BREAKPOINT);
|
|
2157
2158
|
touchDensity = inject(POAD_TOUCH_DENSITY);
|
|
2158
|
-
|
|
2159
|
+
/** État complet (largeur, point de rupture, seuil mobile, pointeur grossier) : `breakpointState` d'ui-core. */
|
|
2160
|
+
state = computed(() => breakpointState(this._width(), this._touch(), this.mobileBp), ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
2161
|
+
/** Largeur de la fenêtre (px). */
|
|
2162
|
+
width = this._width.asReadonly();
|
|
2163
|
+
/** Point de rupture courant. */
|
|
2164
|
+
current = computed(() => this.state().current, ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
|
|
2165
|
+
/** Sous le seuil mobile (`POAD_MOBILE_BREAKPOINT`). */
|
|
2166
|
+
isMobile = computed(() => this.state().isMobile, ...(ngDevMode ? [{ debugName: "isMobile" }] : /* istanbul ignore next */ []));
|
|
2159
2167
|
/** Les overlays (select, date, menu, confirm…) doivent-ils passer en feuille basse ? (= isMobile) */
|
|
2160
2168
|
sheetPreferred = computed(() => this.isMobile(), ...(ngDevMode ? [{ debugName: "sheetPreferred" }] : /* istanbul ignore next */ []));
|
|
2169
|
+
/** Pointeur grossier (`pointer: coarse`). */
|
|
2161
2170
|
isTouch = this._touch.asReadonly();
|
|
2162
2171
|
/** Densité tactile effective (classe `poad-touch` sur <html>). */
|
|
2163
2172
|
touchDense = computed(() => this.touchDensity === 'on' || (this.touchDensity === 'auto' && this.isTouch()), ...(ngDevMode ? [{ debugName: "touchDense" }] : /* istanbul ignore next */ []));
|
|
@@ -2167,30 +2176,24 @@ class PoadBreakpointService {
|
|
|
2167
2176
|
effect(() => { document.documentElement.classList.toggle('poad-touch', this.touchDense()); });
|
|
2168
2177
|
const onResize = () => this._width.set(window.innerWidth);
|
|
2169
2178
|
window.addEventListener('resize', onResize, { passive: true });
|
|
2170
|
-
const mq = typeof window.matchMedia === 'function' ? window.matchMedia(
|
|
2179
|
+
const mq = typeof window.matchMedia === 'function' ? window.matchMedia(BREAKPOINT_TOUCH_QUERY) : null;
|
|
2171
2180
|
const onMq = () => this._touch.set(!!mq?.matches);
|
|
2172
2181
|
mq?.addEventListener('change', onMq);
|
|
2173
2182
|
inject(DestroyRef).onDestroy(() => { window.removeEventListener('resize', onResize); mq?.removeEventListener('change', onMq); });
|
|
2174
2183
|
}
|
|
2175
2184
|
/** ≥ bp */
|
|
2176
|
-
up(bp) { return
|
|
2185
|
+
up(bp) { return breakpointUp(this.current(), bp); }
|
|
2177
2186
|
/** < bp */
|
|
2178
|
-
down(bp) { return
|
|
2179
|
-
|
|
2180
|
-
|
|
2187
|
+
down(bp) { return breakpointDown(this.current(), bp); }
|
|
2188
|
+
/** `from` ≤ courant < `to`. */
|
|
2189
|
+
between(from, to) { return breakpointBetween(this.current(), from, to); }
|
|
2190
|
+
/**
|
|
2191
|
+
* Évalue une expression : `'md+'` (≥md), `'lg-'` (≤lg), `'sm..lg'`, `'xs'`, `'md,xl'`, et les mots `'mobile'`,
|
|
2192
|
+
* `'desktop'`, `'touch'` (`breakpointMatches` d'ui-core).
|
|
2193
|
+
*/
|
|
2181
2194
|
matches(expr) {
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
if (p.endsWith('+'))
|
|
2185
|
-
return this.up(p.slice(0, -1));
|
|
2186
|
-
if (p.endsWith('-'))
|
|
2187
|
-
return ORDER.indexOf(this.current()) <= ORDER.indexOf(p.slice(0, -1));
|
|
2188
|
-
if (p.includes('..')) {
|
|
2189
|
-
const [a, b] = p.split('..');
|
|
2190
|
-
return this.up(a) && ORDER.indexOf(this.current()) <= ORDER.indexOf(b);
|
|
2191
|
-
}
|
|
2192
|
-
return this.current() === p;
|
|
2193
|
-
});
|
|
2195
|
+
const s = this.state();
|
|
2196
|
+
return breakpointMatches(expr, { current: s.current, mobile: s.mobile, touch: s.touch });
|
|
2194
2197
|
}
|
|
2195
2198
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadBreakpointService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2196
2199
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadBreakpointService, providedIn: 'root' });
|
|
@@ -2199,25 +2202,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
2199
2202
|
type: Injectable,
|
|
2200
2203
|
args: [{ providedIn: 'root' }]
|
|
2201
2204
|
}], ctorParameters: () => [] });
|
|
2202
|
-
/** Parse une prop responsive `"1 sm:2 lg:4"` → { xs:'1', sm:'2', lg:'4' }. */
|
|
2205
|
+
/** Parse une prop responsive `"1 sm:2 lg:4"` → { xs:'1', sm:'2', lg:'4' } (`responsiveParse` d'ui-core). */
|
|
2203
2206
|
function poadParseResponsive(v) {
|
|
2204
|
-
|
|
2205
|
-
if (v == null || v === '')
|
|
2206
|
-
return out;
|
|
2207
|
-
String(v).trim().split(/\s+/).forEach(tok => { const m = /^(?:(xs|sm|md|lg|xl|2xl):)?(.+)$/.exec(tok); if (m)
|
|
2208
|
-
out[m[1] || 'xs'] = m[2]; });
|
|
2209
|
-
return out;
|
|
2207
|
+
return responsiveParse(v);
|
|
2210
2208
|
}
|
|
2211
|
-
/** Résout la valeur applicable au breakpoint courant (cascade mobile-first). */
|
|
2209
|
+
/** Résout la valeur applicable au breakpoint courant (cascade mobile-first ; `responsiveResolve` d'ui-core). */
|
|
2212
2210
|
function poadResolveResponsive(map, bp) {
|
|
2213
|
-
|
|
2214
|
-
for (const b of ORDER) {
|
|
2215
|
-
if (map[b] !== undefined)
|
|
2216
|
-
val = map[b];
|
|
2217
|
-
if (b === bp)
|
|
2218
|
-
break;
|
|
2219
|
-
}
|
|
2220
|
-
return val;
|
|
2211
|
+
return responsiveResolve(map, bp);
|
|
2221
2212
|
}
|
|
2222
2213
|
|
|
2223
2214
|
/** Focus initial demandé : l'attribut d'ui-core, ou `cdkFocusInitial` (celui du piège du CDK, que les applications posaient). */
|
|
@@ -5476,97 +5467,108 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
5476
5467
|
`, encapsulation: ViewEncapsulation.None, styles: [".poad-datepicker{display:inline-block;width:100%;font-family:var(--poad-font);font-size:var(--poad-font-size);color:var(--poad-fg)}.poad-datepicker.is-inline{width:auto}.poad-datepicker .poad-dp__box{display:flex;align-items:stretch;height:var(--poad-control-h);background:var(--poad-input-bg);border:1px solid var(--poad-input-border);border-radius:var(--poad-radius);transition:border-color var(--poad-dur),box-shadow var(--poad-dur);cursor:text}.poad-datepicker.size-sm .poad-dp__box{height:var(--poad-control-h-sm);font-size:var(--poad-font-size-sm);border-radius:var(--poad-radius-sm)}.poad-datepicker.size-lg .poad-dp__box{height:var(--poad-control-h-lg);font-size:var(--poad-font-size-lg)}.poad-datepicker .poad-dp__box:focus-within,.poad-datepicker.is-open .poad-dp__box{border-color:var(--poad-accent);box-shadow:0 0 0 3px var(--poad-ring)}.poad-datepicker.is-invalid .poad-dp__box{border-color:var(--poad-danger)}.poad-datepicker.is-invalid .poad-dp__box:focus-within{box-shadow:0 0 0 3px var(--poad-danger-soft)}.poad-datepicker.is-disabled .poad-dp__box{opacity:.6;background:var(--poad-bg-subtle);cursor:not-allowed}.poad-datepicker .poad-dp__input{flex:1 1 0;width:0;min-width:0;border:0;outline:0;background:transparent;color:inherit;font:inherit;padding:0 var(--poad-control-px);font-variant-numeric:tabular-nums;cursor:inherit}.poad-datepicker .poad-dp__input::placeholder{color:var(--poad-fg-muted)}.poad-datepicker .poad-dp__btn{border:0;background:transparent;color:var(--poad-fg-muted);cursor:pointer;padding:0 8px;display:grid;place-items:center}.poad-datepicker .poad-dp__btn:hover{color:var(--poad-fg)}.poad-datepicker .poad-dp__cal{padding-inline-end:10px}.poad-dp__panel{background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:10px;box-shadow:var(--poad-shadow-lg);padding:10px;width:272px;box-sizing:border-box;-webkit-user-select:none;user-select:none}.poad-dp__panel.is-inline{box-shadow:none;background:var(--poad-surface)}.poad-dp__panel .poad-dp__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.poad-dp__panel .poad-dp__nav{width:26px;height:26px;border:0;border-radius:6px;background:transparent;color:var(--poad-fg-secondary);cursor:pointer;display:grid;place-items:center}.poad-dp__panel .poad-dp__nav:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-dp__panel .poad-dp__title{display:inline-flex;gap:4px;font-weight:600;text-transform:capitalize}.poad-dp__panel .poad-dp__title button{border:0;background:transparent;color:inherit;font:inherit;font-weight:600;padding:3px 6px;border-radius:6px;cursor:pointer;text-transform:capitalize}.poad-dp__panel .poad-dp__title button:hover{background:var(--poad-hover)}.poad-dp__panel .poad-dp__grid{display:grid;gap:2px}.poad-dp__panel .poad-dp__row{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.poad-dp__panel .has-week .poad-dp__row{grid-template-columns:22px repeat(7,1fr)}.poad-dp__panel .poad-dp__weekdays span{font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--poad-fg-muted);text-align:center;height:22px;line-height:22px}.poad-dp__panel .poad-dp__wk{font:10px var(--poad-font-mono);color:var(--poad-fg-muted);text-align:center;align-self:center}.poad-dp__panel .poad-dp__day{position:relative;height:32px;border:0;border-radius:7px;background:transparent;color:var(--poad-fg);font:inherit;font-size:12.5px;cursor:pointer;font-variant-numeric:tabular-nums}.poad-dp__panel .poad-dp__day:hover:not([disabled]){background:var(--poad-hover)}.poad-dp__panel .poad-dp__day:focus-visible{outline:2px solid var(--poad-ring);outline-offset:-1px}.poad-dp__panel .poad-dp__day.is-out{color:var(--poad-fg-muted);opacity:.7}.poad-dp__panel .poad-dp__day.is-today:after{content:\"\";position:absolute;left:50%;bottom:4px;width:4px;height:4px;margin-inline-start:-2px;border-radius:50%;background:var(--poad-accent)}.poad-dp__panel .poad-dp__day.in-range,.poad-dp__panel .poad-dp__day.is-hover-range{background:var(--poad-accent-soft);border-radius:0;color:var(--poad-fg)}.poad-dp__panel .poad-dp__day.range-start{border-radius:7px 0 0 7px}.poad-dp__panel .poad-dp__day.range-end{border-radius:0 7px 7px 0}.poad-dp__panel .poad-dp__day.range-start.range-end{border-radius:7px}.poad-dp__panel .poad-dp__day.is-sel{background:var(--poad-accent);color:var(--poad-fg-on-accent);font-weight:600}.poad-dp__panel .poad-dp__day.is-sel.is-today:after{background:var(--poad-fg-on-accent)}.poad-dp__panel .poad-dp__day[disabled]{color:var(--poad-fg-muted);opacity:.45;cursor:not-allowed;text-decoration:line-through}.poad-dp__panel .poad-dp__cells{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.poad-dp__panel .poad-dp__cells button{height:36px;border:0;border-radius:7px;background:transparent;color:var(--poad-fg);font:inherit;cursor:pointer;text-transform:capitalize}.poad-dp__panel .poad-dp__cells button:hover:not([disabled]){background:var(--poad-hover)}.poad-dp__panel .poad-dp__cells button.is-now{color:var(--poad-accent);font-weight:600}.poad-dp__panel .poad-dp__cells button.is-sel{background:var(--poad-accent);color:var(--poad-fg-on-accent);font-weight:600}.poad-dp__panel .poad-dp__cells button[disabled]{opacity:.45;cursor:not-allowed}.poad-dp__panel .poad-dp__time{display:flex;align-items:center;justify-content:center;gap:4px;padding-top:8px}.poad-dp__panel .poad-dp__time.has-border{border-top:1px solid var(--poad-border);margin-top:8px}.poad-dp__panel .poad-dp__spin{display:flex;flex-direction:column;align-items:center}.poad-dp__panel .poad-dp__spin button{width:28px;height:20px;border:0;background:transparent;color:var(--poad-fg-muted);cursor:pointer;display:grid;place-items:center;border-radius:5px}.poad-dp__panel .poad-dp__spin button:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-dp__panel .poad-dp__spin input{width:36px;height:28px;text-align:center;border:1px solid var(--poad-input-border);border-radius:6px;background:var(--poad-input-bg);color:var(--poad-fg);font:500 14px var(--poad-font-mono);outline:0}.poad-dp__panel .poad-dp__spin input:focus{border-color:var(--poad-accent);box-shadow:0 0 0 3px var(--poad-ring)}.poad-dp__panel .poad-dp__colon{font-weight:600;color:var(--poad-fg-muted)}.poad-dp__panel .poad-dp__ampm{margin-inline-start:6px;height:28px;padding:0 8px;border:1px solid var(--poad-input-border);border-radius:6px;background:transparent;color:var(--poad-fg);font:600 11px var(--poad-font);cursor:pointer}.poad-dp__panel .poad-dp__bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--poad-border)}.poad-dp__panel .poad-dp__bar button{border:0;background:transparent;color:var(--poad-accent);font:500 12px var(--poad-font);padding:4px 8px;border-radius:6px;cursor:pointer}.poad-dp__panel .poad-dp__bar button:hover{background:var(--poad-accent-soft)}.poad-dp__panel .poad-dp__bar button.is-muted{color:var(--poad-fg-secondary)}.poad-dp__panel .poad-dp__bar button.is-muted:hover{background:var(--poad-hover)}.poad-dp__panel .poad-dp__bar button.is-ok{margin-inline-start:auto;background:var(--poad-accent);color:var(--poad-fg-on-accent);padding:8px 18px;font-size:var(--poad-font-size)}.poad-dp__panel .poad-dp__bar button.is-ok:hover{background:var(--poad-accent-hover)}.poad-dp__panel.is-sheet .poad-dp__bar button{min-height:40px}.poad-dp__panel .poad-dp__count{font-size:11px;color:var(--poad-fg-muted)}\n"] }]
|
|
5477
5468
|
}], ctorParameters: () => [], propDecorators: { mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], dataType: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataType", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], disabledDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDays", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], showTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTime", required: false }] }], hourFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourFormat", required: false }] }], stepMinute: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepMinute", required: false }] }], showSeconds: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeconds", required: false }] }], showButtonBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonBar", required: false }] }], showWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "showWeek", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], readonlyInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonlyInput", required: false }] }], manualInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "manualInput", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], mobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobile", required: false }] }], changed: [{ type: i0.Output, args: ["changed"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], monthChange: [{ type: i0.Output, args: ["monthChange"] }], yearChange: [{ type: i0.Output, args: ["yearChange"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], todayClick: [{ type: i0.Output, args: ["todayClick"] }], panelTpl: [{ type: i0.ViewChild, args: ['panelTpl', { isSignal: true }] }], inp: [{ type: i0.ViewChild, args: ['inp', { isSignal: true }] }] } });
|
|
5478
5469
|
|
|
5479
|
-
/** 'sm' → var(--poad-gap-sm) ; '12px' → 12px ; 'none' → 0. */
|
|
5470
|
+
/** 'sm' → var(--poad-gap-sm) ; '12px' → 12px ; 'none' → 0 (`layoutGap` d'ui-core). */
|
|
5480
5471
|
function poadGap(g) {
|
|
5481
|
-
|
|
5482
|
-
return 'var(--poad-gap-md)';
|
|
5483
|
-
if (g === 'none' || g === '0')
|
|
5484
|
-
return '0';
|
|
5485
|
-
return ['xs', 'sm', 'md', 'lg', 'xl'].includes(g) ? `var(--poad-gap-${g})` : g;
|
|
5472
|
+
return layoutGap(g);
|
|
5486
5473
|
}
|
|
5487
5474
|
/** Signal résolvant une prop responsive ("1 sm:2 lg:4") selon le breakpoint fenêtre courant. */
|
|
5488
5475
|
function poadResponsive(src) {
|
|
5489
5476
|
const bp = inject(PoadBreakpointService);
|
|
5490
|
-
return computed(() =>
|
|
5477
|
+
return computed(() => responsiveValue(src(), bp.current()));
|
|
5491
5478
|
}
|
|
5492
5479
|
|
|
5493
5480
|
/**
|
|
5494
|
-
* `*poadIf="'md+'"` — rend le template seulement quand le
|
|
5495
|
-
*
|
|
5481
|
+
* `*poadIf="'md+'"` — rend le template seulement quand le point de rupture de la FENÊTRE correspond, et le retire
|
|
5482
|
+
* sinon (pas seulement masqué) ; suit le redimensionnement. Décision : `breakpointShows` d'ui-core, la même que
|
|
5483
|
+
* `<PoadIf when>` (React, Vue) et `<poad-if when>` (composants web).
|
|
5484
|
+
* Expressions : 'md+' (≥md), 'sm-' (≤sm), 'sm..lg', 'xs', 'md,xl', 'mobile' (sous `POAD_MOBILE_BREAKPOINT`),
|
|
5485
|
+
* 'desktop' (au-dessus), 'touch' (pointeur grossier). Expression vide : toujours rendu.
|
|
5486
|
+
* `*poadIf="'md+'; else court"` rend le gabarit `<ng-template #court>` quand l'expression ne correspond pas.
|
|
5496
5487
|
*/
|
|
5497
5488
|
class PoadIfDirective {
|
|
5498
5489
|
bp = inject(PoadBreakpointService);
|
|
5499
5490
|
tpl = inject((TemplateRef));
|
|
5500
5491
|
vcr = inject(ViewContainerRef);
|
|
5492
|
+
/** Expression de point de rupture : `'md+'`, `'sm-'`, `'sm..lg'`, `'md,xl'`, `'mobile'`, `'desktop'`, `'touch'`. */
|
|
5501
5493
|
poadIf = input.required(...(ngDevMode ? [{ debugName: "poadIf" }] : /* istanbul ignore next */ []));
|
|
5502
|
-
|
|
5494
|
+
/** Gabarit rendu à la place quand l'expression ne correspond pas. */
|
|
5495
|
+
poadIfElse = input(null, ...(ngDevMode ? [{ debugName: "poadIfElse" }] : /* istanbul ignore next */ []));
|
|
5496
|
+
shown = null;
|
|
5503
5497
|
constructor() {
|
|
5504
5498
|
effect(() => {
|
|
5505
|
-
const
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
this.vcr.clear();
|
|
5513
|
-
this.shown = false;
|
|
5514
|
-
}
|
|
5499
|
+
const next = breakpointShows(this.poadIf(), this.bp.state()) ? this.tpl : this.poadIfElse();
|
|
5500
|
+
if (next === this.shown)
|
|
5501
|
+
return;
|
|
5502
|
+
this.vcr.clear();
|
|
5503
|
+
if (next)
|
|
5504
|
+
this.vcr.createEmbeddedView(next);
|
|
5505
|
+
this.shown = next;
|
|
5515
5506
|
});
|
|
5516
5507
|
}
|
|
5517
5508
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadIfDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5518
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.20", type: PoadIfDirective, isStandalone: true, selector: "[poadIf]", inputs: { poadIf: { classPropertyName: "poadIf", publicName: "poadIf", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
5509
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.20", type: PoadIfDirective, isStandalone: true, selector: "[poadIf]", inputs: { poadIf: { classPropertyName: "poadIf", publicName: "poadIf", isSignal: true, isRequired: true, transformFunction: null }, poadIfElse: { classPropertyName: "poadIfElse", publicName: "poadIfElse", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
5519
5510
|
}
|
|
5520
5511
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadIfDirective, decorators: [{
|
|
5521
5512
|
type: Directive,
|
|
5522
5513
|
args: [{ selector: '[poadIf]', standalone: true }]
|
|
5523
|
-
}], ctorParameters: () => [], propDecorators: { poadIf: [{ type: i0.Input, args: [{ isSignal: true, alias: "poadIf", required: true }] }] } });
|
|
5514
|
+
}], ctorParameters: () => [], propDecorators: { poadIf: [{ type: i0.Input, args: [{ isSignal: true, alias: "poadIf", required: true }] }], poadIfElse: [{ type: i0.Input, args: [{ isSignal: true, alias: "poadIfElse", required: false }] }] } });
|
|
5524
5515
|
|
|
5525
|
-
|
|
5526
|
-
|
|
5516
|
+
// Style partagé avec les autres rendus : source unique dans le socle (`@poadio/ui-core/layout.css`), encapsulation
|
|
5517
|
+
// désactivée ; les valeurs en ligne viennent du module `layout` d'ui-core.
|
|
5518
|
+
const SHEET = '../../../../../../ui-core/layout.css';
|
|
5527
5519
|
/**
|
|
5528
5520
|
* Pile verticale : `<poad-stack gap="sm" align="stretch">` — les enfants s'empilent avec un gap uniforme (jamais de marges).
|
|
5521
|
+
* Style : `@poadio/ui-core/layout.css` ; valeurs de `stackStyle` (ui-core).
|
|
5522
|
+
* @slot default Les enfants empilés.
|
|
5529
5523
|
* @atelier icone=rows conteneur=flux largeur=4 hauteur=5
|
|
5530
5524
|
*/
|
|
5531
5525
|
class PoadStackComponent {
|
|
5526
|
+
/** Écart entre les enfants : `xs` … `xl`, `none`, ou une longueur CSS. */
|
|
5532
5527
|
gap = input('md', ...(ngDevMode ? [{ debugName: "gap" }] : /* istanbul ignore next */ []));
|
|
5528
|
+
/** Alignement des enfants sur l'axe horizontal. */
|
|
5533
5529
|
align = input('stretch', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
5530
|
+
/** Répartition des enfants sur l'axe vertical. */
|
|
5534
5531
|
justify = input('start', ...(ngDevMode ? [{ debugName: "justify" }] : /* istanbul ignore next */ []));
|
|
5532
|
+
/** En ligne (`inline-flex`) plutôt qu'en bloc. */
|
|
5535
5533
|
inline = input(false, { ...(ngDevMode ? { debugName: "inline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
5536
|
-
|
|
5537
|
-
a = computed(() => A$1[this.align()], ...(ngDevMode ? [{ debugName: "a" }] : /* istanbul ignore next */ []));
|
|
5538
|
-
j = computed(() => J[this.justify()], ...(ngDevMode ? [{ debugName: "j" }] : /* istanbul ignore next */ []));
|
|
5534
|
+
s = computed(() => stackStyle({ gap: this.gap(), align: this.align(), justify: this.justify() }), ...(ngDevMode ? [{ debugName: "s" }] : /* istanbul ignore next */ []));
|
|
5539
5535
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadStackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5540
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadStackComponent, isStandalone: true, selector: "poad-stack", inputs: { gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.gap": "
|
|
5536
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadStackComponent, isStandalone: true, selector: "poad-stack", inputs: { gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.gap": "s().gap", "style.align-items": "s().alignItems", "style.justify-content": "s().justifyContent", "class.is-inline": "inline()" }, classAttribute: "poad-stack" }, ngImport: i0, template: `<ng-content />`, isInline: true, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5541
5537
|
}
|
|
5542
5538
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadStackComponent, decorators: [{
|
|
5543
5539
|
type: Component,
|
|
5544
|
-
args: [{ selector: 'poad-stack', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-stack', '[style.gap]': '
|
|
5540
|
+
args: [{ selector: 'poad-stack', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-stack', '[style.gap]': 's().gap', '[style.align-items]': 's().alignItems', '[style.justify-content]': 's().justifyContent', '[class.is-inline]': 'inline()' }, template: `<ng-content />`, encapsulation: ViewEncapsulation.None, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"] }]
|
|
5545
5541
|
}], propDecorators: { gap: [{ type: i0.Input, args: [{ isSignal: true, alias: "gap", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], justify: [{ type: i0.Input, args: [{ isSignal: true, alias: "justify", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }] } });
|
|
5546
5542
|
/**
|
|
5547
5543
|
* Groupe horizontal qui replie : `<poad-cluster gap="sm" justify="between" align="center">` (boutons, chips, méta).
|
|
5544
|
+
* Style : `@poadio/ui-core/layout.css` ; valeurs de `clusterStyle` (ui-core).
|
|
5545
|
+
* @slot default Les enfants du groupe.
|
|
5548
5546
|
* @atelier icone=boxes conteneur=flux largeur=6 hauteur=3
|
|
5549
5547
|
*/
|
|
5550
5548
|
class PoadClusterComponent {
|
|
5549
|
+
/** Écart entre les enfants : `xs` … `xl`, `none`, ou une longueur CSS. */
|
|
5551
5550
|
gap = input('sm', ...(ngDevMode ? [{ debugName: "gap" }] : /* istanbul ignore next */ []));
|
|
5551
|
+
/** Alignement des enfants sur l'axe vertical. */
|
|
5552
5552
|
align = input('center', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
5553
|
+
/** Répartition des enfants sur l'axe horizontal. */
|
|
5553
5554
|
justify = input('start', ...(ngDevMode ? [{ debugName: "justify" }] : /* istanbul ignore next */ []));
|
|
5555
|
+
/** Passe à la ligne quand la place manque. */
|
|
5554
5556
|
wrap = input(true, { ...(ngDevMode ? { debugName: "wrap" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
5557
|
+
/** En ligne (`inline-flex`) plutôt qu'en bloc. */
|
|
5555
5558
|
inline = input(false, { ...(ngDevMode ? { debugName: "inline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
5556
|
-
|
|
5557
|
-
a = computed(() => A$1[this.align()], ...(ngDevMode ? [{ debugName: "a" }] : /* istanbul ignore next */ []));
|
|
5558
|
-
j = computed(() => J[this.justify()], ...(ngDevMode ? [{ debugName: "j" }] : /* istanbul ignore next */ []));
|
|
5559
|
+
s = computed(() => clusterStyle({ gap: this.gap(), align: this.align(), justify: this.justify(), wrap: this.wrap() }), ...(ngDevMode ? [{ debugName: "s" }] : /* istanbul ignore next */ []));
|
|
5559
5560
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadClusterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5560
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadClusterComponent, isStandalone: true, selector: "poad-cluster", inputs: { gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.gap": "
|
|
5561
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadClusterComponent, isStandalone: true, selector: "poad-cluster", inputs: { gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.gap": "s().gap", "style.align-items": "s().alignItems", "style.justify-content": "s().justifyContent", "style.flex-wrap": "s().flexWrap", "class.is-inline": "inline()" }, classAttribute: "poad-cluster" }, ngImport: i0, template: `<ng-content />`, isInline: true, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5561
5562
|
}
|
|
5562
5563
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadClusterComponent, decorators: [{
|
|
5563
5564
|
type: Component,
|
|
5564
|
-
args: [{ selector: 'poad-cluster', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-cluster', '[style.gap]': '
|
|
5565
|
+
args: [{ selector: 'poad-cluster', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-cluster', '[style.gap]': 's().gap', '[style.align-items]': 's().alignItems', '[style.justify-content]': 's().justifyContent', '[style.flex-wrap]': 's().flexWrap', '[class.is-inline]': 'inline()' }, template: `<ng-content />`, encapsulation: ViewEncapsulation.None, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"] }]
|
|
5565
5566
|
}], propDecorators: { gap: [{ type: i0.Input, args: [{ isSignal: true, alias: "gap", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], justify: [{ type: i0.Input, args: [{ isSignal: true, alias: "justify", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }] } });
|
|
5566
5567
|
/**
|
|
5567
5568
|
* Grille responsive : `<poad-grid cols="1 sm:2 lg:4" gap="md">` (breakpoints FENÊTRE, mobile-first)
|
|
5568
5569
|
* ou `<poad-grid min="220px">` (auto-fit : autant de colonnes que le CONTENEUR en accepte — préférer pour les composants).
|
|
5569
5570
|
* Enfant : `<div poadCol="2">` / `poadCol="1 md:2"` = span, `poadCol="full"` = toute la largeur.
|
|
5571
|
+
* Style : `@poadio/ui-core/layout.css` ; valeurs de `gridStyle` / `gridColumn` (ui-core).
|
|
5570
5572
|
*
|
|
5571
5573
|
* CONTENEUR D'ATELIER en régime `direct`, et non `flux` (27/08) : en flux, l'atelier
|
|
5572
5574
|
* envelopperait les enfants dans SA propre grille 12 colonnes, la grille posée n'aurait
|
|
@@ -5575,31 +5577,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
5575
5577
|
* bien `cols` / `min` qui les place, ce qu'on vient chercher en posant une grille.
|
|
5576
5578
|
* Aucune trappe d'accueil n'est nécessaire ici : `poad-grid` ne fait ni requête de
|
|
5577
5579
|
* contenu ni injection depuis ses enfants, il ne les REGARDE pas, il les dispose.
|
|
5580
|
+
* @slot default Les cellules (`poadCol` pour en occuper plusieurs).
|
|
5578
5581
|
* @atelier icone=grid conteneur=direct largeur=12 hauteur=4
|
|
5579
5582
|
*/
|
|
5583
|
+
// `row-gap` toujours posé (à `gap` sans `rowGap`) : le retirer après `gap` effacerait la moitié du raccourci.
|
|
5580
5584
|
class PoadGridComponent {
|
|
5585
|
+
bp = inject(PoadBreakpointService);
|
|
5586
|
+
/** Nombre de colonnes, responsive au point de rupture de la fenêtre : `"1 sm:2 lg:4"`. */
|
|
5581
5587
|
cols = input('1', ...(ngDevMode ? [{ debugName: "cols" }] : /* istanbul ignore next */ []));
|
|
5588
|
+
/** Largeur minimale d'une colonne : grille « auto-fit » à la largeur du conteneur (`cols` ignoré). */
|
|
5582
5589
|
min = input('', ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
|
|
5590
|
+
/** Écart entre les cellules : `xs` … `xl`, `none`, ou une longueur CSS. */
|
|
5583
5591
|
gap = input('md', ...(ngDevMode ? [{ debugName: "gap" }] : /* istanbul ignore next */ []));
|
|
5592
|
+
/** Écart entre les lignes, s'il diffère de `gap`. */
|
|
5584
5593
|
rowGap = input('', ...(ngDevMode ? [{ debugName: "rowGap" }] : /* istanbul ignore next */ []));
|
|
5594
|
+
/** Alignement vertical des cellules. */
|
|
5585
5595
|
align = input('stretch', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
5596
|
+
/** Remplissage « dense » : les cellules suivantes comblent les trous. */
|
|
5586
5597
|
dense = input(false, { ...(ngDevMode ? { debugName: "dense" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
5587
|
-
|
|
5588
|
-
tpl = computed(() => this.min() ? `repeat(auto-fit, minmax(min(${this.min()}, 100%), 1fr))` : `repeat(${this.c() ?? 1}, minmax(0, 1fr))`, ...(ngDevMode ? [{ debugName: "tpl" }] : /* istanbul ignore next */ []));
|
|
5589
|
-
g = computed(() => poadGap(this.gap()), ...(ngDevMode ? [{ debugName: "g" }] : /* istanbul ignore next */ []));
|
|
5590
|
-
rg = computed(() => this.rowGap() ? poadGap(this.rowGap()) : null, ...(ngDevMode ? [{ debugName: "rg" }] : /* istanbul ignore next */ []));
|
|
5591
|
-
a = computed(() => A$1[this.align()], ...(ngDevMode ? [{ debugName: "a" }] : /* istanbul ignore next */ []));
|
|
5598
|
+
s = computed(() => gridStyle({ cols: this.cols(), min: this.min(), gap: this.gap(), rowGap: this.rowGap(), align: this.align(), dense: this.dense() }, this.bp.current()), ...(ngDevMode ? [{ debugName: "s" }] : /* istanbul ignore next */ []));
|
|
5592
5599
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5593
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadGridComponent, isStandalone: true, selector: "poad-grid", inputs: { cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, rowGap: { classPropertyName: "rowGap", publicName: "rowGap", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, dense: { classPropertyName: "dense", publicName: "dense", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.grid-template-columns": "
|
|
5600
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadGridComponent, isStandalone: true, selector: "poad-grid", inputs: { cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, rowGap: { classPropertyName: "rowGap", publicName: "rowGap", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, dense: { classPropertyName: "dense", publicName: "dense", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.grid-template-columns": "s().gridTemplateColumns", "style.gap": "s().gap", "style.row-gap": "s().rowGap ?? s().gap", "style.align-items": "s().alignItems", "style.grid-auto-flow": "s().gridAutoFlow ?? null" }, classAttribute: "poad-grid" }, ngImport: i0, template: `<ng-content />`, isInline: true, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5594
5601
|
}
|
|
5595
5602
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadGridComponent, decorators: [{
|
|
5596
5603
|
type: Component,
|
|
5597
|
-
args: [{ selector: 'poad-grid', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-grid', '[style.grid-template-columns]': '
|
|
5604
|
+
args: [{ selector: 'poad-grid', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-grid', '[style.grid-template-columns]': 's().gridTemplateColumns', '[style.gap]': 's().gap', '[style.row-gap]': 's().rowGap ?? s().gap', '[style.align-items]': 's().alignItems', '[style.grid-auto-flow]': 's().gridAutoFlow ?? null' }, template: `<ng-content />`, encapsulation: ViewEncapsulation.None, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"] }]
|
|
5598
5605
|
}], propDecorators: { cols: [{ type: i0.Input, args: [{ isSignal: true, alias: "cols", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], gap: [{ type: i0.Input, args: [{ isSignal: true, alias: "gap", required: false }] }], rowGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowGap", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], dense: [{ type: i0.Input, args: [{ isSignal: true, alias: "dense", required: false }] }] } });
|
|
5606
|
+
/** Colonne d'une grille : `<div poadCol="2">`, `poadCol="1 md:2"` (responsive), `poadCol="full"` (toute la largeur). */
|
|
5599
5607
|
class PoadColDirective {
|
|
5608
|
+
bp = inject(PoadBreakpointService);
|
|
5609
|
+
/** Colonnes occupées : un nombre, `full`, responsive (`"1 md:2"`), ou une valeur `grid-column` sans espace (`2/4`). */
|
|
5600
5610
|
poadCol = input('1', ...(ngDevMode ? [{ debugName: "poadCol" }] : /* istanbul ignore next */ []));
|
|
5601
|
-
|
|
5602
|
-
span = computed(() => { const s = this.v() ?? '1'; return s === 'full' ? '1 / -1' : /^\d+$/.test(s) ? `span ${s}` : s; }, ...(ngDevMode ? [{ debugName: "span" }] : /* istanbul ignore next */ []));
|
|
5611
|
+
span = computed(() => gridColumn(this.poadCol(), this.bp.current()), ...(ngDevMode ? [{ debugName: "span" }] : /* istanbul ignore next */ []));
|
|
5603
5612
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadColDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5604
5613
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.20", type: PoadColDirective, isStandalone: true, selector: "[poadCol]", inputs: { poadCol: { classPropertyName: "poadCol", publicName: "poadCol", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.grid-column": "span()" } }, ngImport: i0 });
|
|
5605
5614
|
}
|
|
@@ -5609,24 +5618,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
5609
5618
|
}], propDecorators: { poadCol: [{ type: i0.Input, args: [{ isSignal: true, alias: "poadCol", required: false }] }] } });
|
|
5610
5619
|
/**
|
|
5611
5620
|
* Deux zones : `<poad-split ratio="1fr auto" gap="md" stackAt="md">` — sous `stackAt`, empilé.
|
|
5621
|
+
* Style : `@poadio/ui-core/layout.css` ; valeurs de `splitStyle` (ui-core).
|
|
5622
|
+
* @slot default Les deux zones.
|
|
5612
5623
|
* @atelier icone=split-square-horizontal
|
|
5613
5624
|
*/
|
|
5614
5625
|
class PoadSplitComponent {
|
|
5615
5626
|
bp = inject(PoadBreakpointService);
|
|
5627
|
+
/** Gabarit des deux colonnes (`grid-template-columns`). */
|
|
5616
5628
|
ratio = input('1fr 1fr', ...(ngDevMode ? [{ debugName: "ratio" }] : /* istanbul ignore next */ []));
|
|
5629
|
+
/** Écart entre les zones : `xs` … `xl`, `none`, ou une longueur CSS. */
|
|
5617
5630
|
gap = input('md', ...(ngDevMode ? [{ debugName: "gap" }] : /* istanbul ignore next */ []));
|
|
5631
|
+
/** Alignement vertical des zones. */
|
|
5618
5632
|
align = input('stretch', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
5619
5633
|
/** En dessous de ce breakpoint fenêtre, une seule colonne ('' = jamais). */
|
|
5620
5634
|
stackAt = input('sm', ...(ngDevMode ? [{ debugName: "stackAt" }] : /* istanbul ignore next */ []));
|
|
5621
|
-
|
|
5622
|
-
g = computed(() => poadGap(this.gap()), ...(ngDevMode ? [{ debugName: "g" }] : /* istanbul ignore next */ []));
|
|
5623
|
-
a = computed(() => A$1[this.align()], ...(ngDevMode ? [{ debugName: "a" }] : /* istanbul ignore next */ []));
|
|
5635
|
+
s = computed(() => splitStyle({ ratio: this.ratio(), gap: this.gap(), align: this.align(), stackAt: this.stackAt() }, this.bp.current()), ...(ngDevMode ? [{ debugName: "s" }] : /* istanbul ignore next */ []));
|
|
5624
5636
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadSplitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5625
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadSplitComponent, isStandalone: true, selector: "poad-split", inputs: { ratio: { classPropertyName: "ratio", publicName: "ratio", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, stackAt: { classPropertyName: "stackAt", publicName: "stackAt", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.grid-template-columns": "
|
|
5637
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadSplitComponent, isStandalone: true, selector: "poad-split", inputs: { ratio: { classPropertyName: "ratio", publicName: "ratio", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, stackAt: { classPropertyName: "stackAt", publicName: "stackAt", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.grid-template-columns": "s().gridTemplateColumns", "style.gap": "s().gap", "style.align-items": "s().alignItems" }, classAttribute: "poad-split" }, ngImport: i0, template: `<ng-content />`, isInline: true, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5626
5638
|
}
|
|
5627
5639
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadSplitComponent, decorators: [{
|
|
5628
5640
|
type: Component,
|
|
5629
|
-
args: [{ selector: 'poad-split', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-split', '[style.grid-template-columns]': '
|
|
5641
|
+
args: [{ selector: 'poad-split', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-split', '[style.grid-template-columns]': 's().gridTemplateColumns', '[style.gap]': 's().gap', '[style.align-items]': 's().alignItems' }, template: `<ng-content />`, encapsulation: ViewEncapsulation.None, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"] }]
|
|
5630
5642
|
}], propDecorators: { ratio: [{ type: i0.Input, args: [{ isSignal: true, alias: "ratio", required: false }] }], gap: [{ type: i0.Input, args: [{ isSignal: true, alias: "gap", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], stackAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "stackAt", required: false }] }] } });
|
|
5631
5643
|
/**
|
|
5632
5644
|
* Contenu + panneau latéral : `<poad-sidebar side="right" width="280px" contentMin="60%" collapseAt="md">
|
|
@@ -5641,56 +5653,79 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
5641
5653
|
type: Directive,
|
|
5642
5654
|
args: [{ selector: '[poadSidebarPanel]', standalone: true, host: { class: 'poad-sidebar__panel' } }]
|
|
5643
5655
|
}] });
|
|
5644
|
-
/**
|
|
5656
|
+
/**
|
|
5657
|
+
* Contenu et panneau latéral (le panneau : `[poadSidebarPanel]`). Style : `@poadio/ui-core/layout.css` ; valeurs de
|
|
5658
|
+
* `sidebarStyle` / `sidebarCollapsed` (ui-core).
|
|
5659
|
+
* @slot default Le contenu et le panneau.
|
|
5660
|
+
* @atelier icone=panel-left
|
|
5661
|
+
*/
|
|
5645
5662
|
class PoadSidebarComponent {
|
|
5646
5663
|
bp = inject(PoadBreakpointService);
|
|
5664
|
+
/** Côté du panneau. */
|
|
5647
5665
|
side = input('right', ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
|
|
5666
|
+
/** Largeur du panneau. */
|
|
5648
5667
|
width = input('280px', ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
5668
|
+
/** Largeur minimale du contenu : en dessous, le panneau passe dessous. */
|
|
5649
5669
|
contentMin = input('60%', ...(ngDevMode ? [{ debugName: "contentMin" }] : /* istanbul ignore next */ []));
|
|
5670
|
+
/** Écart entre le contenu et le panneau : `xs` … `xl`, `none`, ou une longueur CSS. */
|
|
5650
5671
|
gap = input('md', ...(ngDevMode ? [{ debugName: "gap" }] : /* istanbul ignore next */ []));
|
|
5672
|
+
/** Alignement vertical du contenu et du panneau. */
|
|
5651
5673
|
align = input('stretch', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
5674
|
+
/** En dessous de ce breakpoint fenêtre, toujours empilés ('' = seulement faute de place). */
|
|
5652
5675
|
collapseAt = input('', ...(ngDevMode ? [{ debugName: "collapseAt" }] : /* istanbul ignore next */ []));
|
|
5653
|
-
collapsed = computed(() =>
|
|
5654
|
-
|
|
5655
|
-
a = computed(() => A$1[this.align()], ...(ngDevMode ? [{ debugName: "a" }] : /* istanbul ignore next */ []));
|
|
5676
|
+
collapsed = computed(() => sidebarCollapsed(this.collapseAt(), this.bp.current()), ...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
|
|
5677
|
+
s = computed(() => sidebarStyle({ width: this.width(), contentMin: this.contentMin(), gap: this.gap(), align: this.align() }), ...(ngDevMode ? [{ debugName: "s" }] : /* istanbul ignore next */ []));
|
|
5656
5678
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5657
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadSidebarComponent, isStandalone: true, selector: "poad-sidebar", inputs: { side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, contentMin: { classPropertyName: "contentMin", publicName: "contentMin", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, collapseAt: { classPropertyName: "collapseAt", publicName: "collapseAt", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.gap": "
|
|
5679
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadSidebarComponent, isStandalone: true, selector: "poad-sidebar", inputs: { side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, contentMin: { classPropertyName: "contentMin", publicName: "contentMin", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, collapseAt: { classPropertyName: "collapseAt", publicName: "collapseAt", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.gap": "s().gap", "class.side-left": "side() === \"left\"", "class.is-collapsed": "collapsed()", "style.--poad-sb-w": "s()[\"--poad-sb-w\"]", "style.--poad-sb-min": "s()[\"--poad-sb-min\"]", "style.align-items": "s().alignItems" }, classAttribute: "poad-sidebar" }, ngImport: i0, template: `<ng-content />`, isInline: true, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5658
5680
|
}
|
|
5659
5681
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadSidebarComponent, decorators: [{
|
|
5660
5682
|
type: Component,
|
|
5661
|
-
args: [{ selector: 'poad-sidebar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
5683
|
+
args: [{ selector: 'poad-sidebar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
5684
|
+
class: 'poad-sidebar', '[style.gap]': 's().gap', '[class.side-left]': 'side() === "left"', '[class.is-collapsed]': 'collapsed()',
|
|
5685
|
+
'[style.--poad-sb-w]': 's()["--poad-sb-w"]', '[style.--poad-sb-min]': 's()["--poad-sb-min"]', '[style.align-items]': 's().alignItems',
|
|
5686
|
+
}, template: `<ng-content />`, encapsulation: ViewEncapsulation.None, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"] }]
|
|
5662
5687
|
}], propDecorators: { side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], contentMin: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentMin", required: false }] }], gap: [{ type: i0.Input, args: [{ isSignal: true, alias: "gap", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], collapseAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseAt", required: false }] }] } });
|
|
5663
5688
|
/**
|
|
5664
5689
|
* Centre horizontalement avec largeur max : `<poad-center maxWidth="60ch" [gutters]="'16px'" andText>`
|
|
5690
|
+
* Style : `@poadio/ui-core/layout.css` ; valeurs de `centerStyle` (ui-core).
|
|
5691
|
+
* @slot default Le contenu centré.
|
|
5665
5692
|
* @atelier icone=crosshair
|
|
5666
5693
|
*/
|
|
5667
5694
|
class PoadCenterComponent {
|
|
5695
|
+
/** Largeur maximale du contenu. */
|
|
5668
5696
|
maxWidth = input('60ch', ...(ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []));
|
|
5697
|
+
/** Marges intérieures latérales (longueur CSS). */
|
|
5669
5698
|
gutters = input('', ...(ngDevMode ? [{ debugName: "gutters" }] : /* istanbul ignore next */ []));
|
|
5699
|
+
/** Centre aussi le texte. */
|
|
5670
5700
|
andText = input(false, { ...(ngDevMode ? { debugName: "andText" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
5701
|
+
/** Centre les enfants à leur largeur propre (colonne flex centrée). */
|
|
5671
5702
|
intrinsic = input(false, { ...(ngDevMode ? { debugName: "intrinsic" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
5703
|
+
s = computed(() => centerStyle({ maxWidth: this.maxWidth(), gutters: this.gutters() }), ...(ngDevMode ? [{ debugName: "s" }] : /* istanbul ignore next */ []));
|
|
5672
5704
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadCenterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5673
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadCenterComponent, isStandalone: true, selector: "poad-center", inputs: { maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, gutters: { classPropertyName: "gutters", publicName: "gutters", isSignal: true, isRequired: false, transformFunction: null }, andText: { classPropertyName: "andText", publicName: "andText", isSignal: true, isRequired: false, transformFunction: null }, intrinsic: { classPropertyName: "intrinsic", publicName: "intrinsic", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.max-inline-size": "
|
|
5705
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadCenterComponent, isStandalone: true, selector: "poad-center", inputs: { maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, gutters: { classPropertyName: "gutters", publicName: "gutters", isSignal: true, isRequired: false, transformFunction: null }, andText: { classPropertyName: "andText", publicName: "andText", isSignal: true, isRequired: false, transformFunction: null }, intrinsic: { classPropertyName: "intrinsic", publicName: "intrinsic", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.max-inline-size": "s().maxInlineSize", "style.padding-inline": "s().paddingInline ?? null", "class.and-text": "andText()", "class.is-intrinsic": "intrinsic()" }, classAttribute: "poad-center" }, ngImport: i0, template: `<ng-content />`, isInline: true, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5674
5706
|
}
|
|
5675
5707
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadCenterComponent, decorators: [{
|
|
5676
5708
|
type: Component,
|
|
5677
|
-
args: [{ selector: 'poad-center', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-center', '[style.max-inline-size]': '
|
|
5709
|
+
args: [{ selector: 'poad-center', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-center', '[style.max-inline-size]': 's().maxInlineSize', '[style.padding-inline]': 's().paddingInline ?? null', '[class.and-text]': 'andText()', '[class.is-intrinsic]': 'intrinsic()' }, template: `<ng-content />`, encapsulation: ViewEncapsulation.None, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"] }]
|
|
5678
5710
|
}], propDecorators: { maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], gutters: [{ type: i0.Input, args: [{ isSignal: true, alias: "gutters", required: false }] }], andText: [{ type: i0.Input, args: [{ isSignal: true, alias: "andText", required: false }] }], intrinsic: [{ type: i0.Input, args: [{ isSignal: true, alias: "intrinsic", required: false }] }] } });
|
|
5679
5711
|
/**
|
|
5680
5712
|
* Conteneur de page : `<poad-container size="lg" padding="md">` — largeur max par taille (sm 640, md 768, lg 1024, xl 1280, 2xl 1536, full = --poad-container-max), centré.
|
|
5713
|
+
* Style : `@poadio/ui-core/layout.css` ; valeurs de `containerStyle` (ui-core).
|
|
5714
|
+
* @slot default Le contenu de la page.
|
|
5681
5715
|
* @atelier icone=box conteneur=flux largeur=6 hauteur=5
|
|
5682
5716
|
*/
|
|
5683
5717
|
class PoadContainerComponent {
|
|
5718
|
+
/** Largeur maximale : un point de rupture, ou `full` (`--poad-container-max`). */
|
|
5684
5719
|
size = input('full', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
5720
|
+
/** Marges intérieures latérales : `xs` … `xl`, `none`, ou une longueur CSS. */
|
|
5685
5721
|
padding = input('lg', ...(ngDevMode ? [{ debugName: "padding" }] : /* istanbul ignore next */ []));
|
|
5686
|
-
|
|
5687
|
-
p = computed(() => poadGap(this.padding()), ...(ngDevMode ? [{ debugName: "p" }] : /* istanbul ignore next */ []));
|
|
5722
|
+
s = computed(() => containerStyle({ size: this.size(), padding: this.padding() }), ...(ngDevMode ? [{ debugName: "s" }] : /* istanbul ignore next */ []));
|
|
5688
5723
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5689
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadContainerComponent, isStandalone: true, selector: "poad-container", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.max-width": "
|
|
5724
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadContainerComponent, isStandalone: true, selector: "poad-container", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.max-width": "s().maxWidth", "style.padding-inline": "s().paddingInline" }, classAttribute: "poad-container" }, ngImport: i0, template: `<ng-content />`, isInline: true, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5690
5725
|
}
|
|
5691
5726
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadContainerComponent, decorators: [{
|
|
5692
5727
|
type: Component,
|
|
5693
|
-
args: [{ selector: 'poad-container', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-container', '[style.max-width]': '
|
|
5728
|
+
args: [{ selector: 'poad-container', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-container', '[style.max-width]': 's().maxWidth', '[style.padding-inline]': 's().paddingInline' }, template: `<ng-content />`, encapsulation: ViewEncapsulation.None, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"] }]
|
|
5694
5729
|
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], padding: [{ type: i0.Input, args: [{ isSignal: true, alias: "padding", required: false }] }] } });
|
|
5695
5730
|
/**
|
|
5696
5731
|
* Espace flexible (pousse ce qui suit) ou fixe : `<poad-spacer/>` · `<poad-spacer size="lg"/>`
|
|
@@ -5702,14 +5737,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
5702
5737
|
* @atelier icone=move-horizontal surface=aucune
|
|
5703
5738
|
*/
|
|
5704
5739
|
class PoadSpacerComponent {
|
|
5740
|
+
/** Taille fixe (`xs` … `xl` ou longueur CSS) ; vide : flexible, pousse ce qui suit. */
|
|
5705
5741
|
size = input('', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
5706
|
-
|
|
5742
|
+
s = computed(() => spacerStyle(this.size()), ...(ngDevMode ? [{ debugName: "s" }] : /* istanbul ignore next */ []));
|
|
5707
5743
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5708
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadSpacerComponent, isStandalone: true, selector: "poad-spacer", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.flex": "
|
|
5744
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: PoadSpacerComponent, isStandalone: true, selector: "poad-spacer", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.flex": "s().flex", "style.width": "s().width ?? null", "style.height": "s().height ?? null" }, classAttribute: "poad-spacer" }, ngImport: i0, template: ``, isInline: true, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5709
5745
|
}
|
|
5710
5746
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadSpacerComponent, decorators: [{
|
|
5711
5747
|
type: Component,
|
|
5712
|
-
args: [{ selector: 'poad-spacer', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-spacer', '[style.flex]': '
|
|
5748
|
+
args: [{ selector: 'poad-spacer', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-spacer', '[style.flex]': 's().flex', '[style.width]': 's().width ?? null', '[style.height]': 's().height ?? null' }, template: ``, encapsulation: ViewEncapsulation.None, styles: [".poad-stack{display:flex;flex-direction:column;min-width:0}.poad-stack.is-inline{display:inline-flex}.poad-stack>*{min-width:0}.poad-cluster{display:flex;min-width:0}.poad-cluster.is-inline{display:inline-flex}.poad-grid{display:grid;min-width:0}.poad-grid>*{min-width:0}.poad-split{display:grid;min-width:0}.poad-split>*{min-width:0}.poad-sidebar{display:flex;flex-wrap:wrap;min-width:0}.poad-sidebar>*{flex-basis:0;flex-grow:999;min-inline-size:var(--poad-sb-min, 60%);min-width:0}.poad-sidebar>.poad-sidebar__panel{flex-basis:var(--poad-sb-w, 280px);flex-grow:1;min-inline-size:0}.poad-sidebar.side-left>.poad-sidebar__panel{order:-1}.poad-sidebar.is-collapsed>*{flex-basis:100%!important;min-inline-size:0!important}.poad-center{display:block;box-sizing:content-box;margin-inline:auto;min-width:0}.poad-center.and-text{text-align:center}.poad-center.is-intrinsic{display:flex;flex-direction:column;align-items:center}.poad-container{display:block;margin-inline:auto;width:100%;box-sizing:border-box;min-width:0}.poad-spacer{display:block}\n"] }]
|
|
5713
5749
|
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
5714
5750
|
|
|
5715
5751
|
/**
|
|
@@ -5915,20 +5951,26 @@ const POAD_SHELL = new InjectionToken('POAD_SHELL');
|
|
|
5915
5951
|
* </poad-app-shell>
|
|
5916
5952
|
* ```
|
|
5917
5953
|
*
|
|
5918
|
-
*
|
|
5954
|
+
* EMPLACEMENT DANS UN BLOC `@if` / `@for` : UN SEUL ÉLÉMENT RACINE.
|
|
5919
5955
|
*
|
|
5920
5956
|
* La projection de contenu est STATIQUE : Angular apparie les nœuds aux sélecteurs de
|
|
5921
|
-
* `ng-content` sur la structure déclarée. Un
|
|
5922
|
-
*
|
|
5923
|
-
*
|
|
5924
|
-
*
|
|
5925
|
-
*
|
|
5957
|
+
* `ng-content` sur la structure déclarée. Un bloc de flux de contrôle dont l'UNIQUE racine est
|
|
5958
|
+
* l'élément de l'emplacement est apparié comme cet élément (`@if (x) { <header poadShellBar>…</header> }`
|
|
5959
|
+
* va bien dans la barre). Dès que le bloc contient AUTRE CHOSE — un second élément, du texte, un
|
|
5960
|
+
* commentaire HTML —, il n'est plus apparié et tombe dans l'emplacement PAR DÉFAUT, donc dans la
|
|
5961
|
+
* zone de CONTENU. Rien ne le signale : ça compile, ça s'affiche, et la barre se met à défiler
|
|
5962
|
+
* avec le contenu — exactement le défaut que cette coquille existe pour empêcher. Constaté au
|
|
5963
|
+
* navigateur le 22/08/2026 sur le showcase (`.poad-shell__bar` mesurait 0×0). Les deux cas sont
|
|
5964
|
+
* couverts par `poad-app-shell.spec.ts`.
|
|
5926
5965
|
*
|
|
5927
5966
|
* ```html
|
|
5928
|
-
* <!--
|
|
5967
|
+
* <!-- JUSTE : un seul élément racine dans le bloc -->
|
|
5929
5968
|
* @if (connecte()) { <header poadShellBar>…</header> }
|
|
5930
5969
|
*
|
|
5931
|
-
* <!--
|
|
5970
|
+
* <!-- FAUX : deux racines, la barre atterrit dans le contenu -->
|
|
5971
|
+
* @if (connecte()) { <header poadShellBar>…</header> <hr /> }
|
|
5972
|
+
*
|
|
5973
|
+
* <!-- LE PLUS SÛR : l'emplacement est toujours rendu, c'est son CONTENU qui varie -->
|
|
5932
5974
|
* <header poadShellBar [class.est-masque]="!connecte()">…</header>
|
|
5933
5975
|
* ```
|
|
5934
5976
|
*
|
|
@@ -5952,27 +5994,35 @@ const POAD_SHELL = new InjectionToken('POAD_SHELL');
|
|
|
5952
5994
|
* En application autonome (ajoutée à l'écran d'accueil), la page ne passe pas sous la bande
|
|
5953
5995
|
* d'état : `viewport-fit=cover` n'y suffit pas et c'est `<meta name="theme-color">`, tenu à
|
|
5954
5996
|
* jour avec le thème, qui donne la continuité.
|
|
5997
|
+
*
|
|
5998
|
+
* Décisions (mode compact, mesures, propriétés CSS) : module `app-shell` de @poadio/ui-core ; style partagé :
|
|
5999
|
+
* `@poadio/ui-core/app-shell.css` (encapsulation désactivée ; hauteur `--poad-shell-height`, `100dvh` par défaut).
|
|
6000
|
+
* @slot [poadShellBar] Barre haute, sur toute la largeur (barre de menus…).
|
|
6001
|
+
* @slot [poadShellNav] Menu, colonne de gauche (tiroir de navigation).
|
|
6002
|
+
* @slot default Le contenu : le seul élément qui défile.
|
|
6003
|
+
* @slot [poadShellBottom] Barre basse, sur toute la largeur (barre de navigation basse).
|
|
5955
6004
|
* @atelier icone=layout-dashboard
|
|
5956
6005
|
*/
|
|
5957
6006
|
class PoadAppShellComponent {
|
|
5958
6007
|
bp = inject(PoadBreakpointService);
|
|
5959
|
-
/** Surcharge locale du seuil. Par
|
|
6008
|
+
/** Surcharge locale du seuil, en px. Par défaut : celui de la bibliothèque (`POAD_MOBILE_BREAKPOINT`). */
|
|
5960
6009
|
compactAt = input(null, ...(ngDevMode ? [{ debugName: "compactAt" }] : /* istanbul ignore next */ []));
|
|
5961
|
-
/** Un enfant a
|
|
6010
|
+
/** Un enfant a demandé le menu (bouton « menu » de la barre, par exemple). */
|
|
5962
6011
|
navRequested = output();
|
|
5963
6012
|
barRef = viewChild.required('bar');
|
|
5964
6013
|
navRef = viewChild.required('nav');
|
|
5965
6014
|
bottomRef = viewChild.required('bottom');
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
bottomHeight = this.
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
6015
|
+
metrics = signal(APP_SHELL_NO_METRICS, ...(ngDevMode ? [{ debugName: "metrics" }] : /* istanbul ignore next */ []));
|
|
6016
|
+
/** Hauteur mesurée de la barre haute, en px. */
|
|
6017
|
+
topHeight = computed(() => this.metrics().top, ...(ngDevMode ? [{ debugName: "topHeight" }] : /* istanbul ignore next */ []));
|
|
6018
|
+
/** Hauteur mesurée de la barre basse, en px. */
|
|
6019
|
+
bottomHeight = computed(() => this.metrics().bottom, ...(ngDevMode ? [{ debugName: "bottomHeight" }] : /* istanbul ignore next */ []));
|
|
6020
|
+
/** Largeur mesurée du menu, en px. */
|
|
6021
|
+
navWidth = computed(() => this.metrics().nav, ...(ngDevMode ? [{ debugName: "navWidth" }] : /* istanbul ignore next */ []));
|
|
6022
|
+
/** @internal — propriétés CSS publiées sur l'hôte. */
|
|
6023
|
+
style = computed(() => appShellStyle(this.metrics()), ...(ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []));
|
|
6024
|
+
/** Sous le seuil mobile (ou sous `compactAt`). */
|
|
6025
|
+
compact = computed(() => appShellCompact(this.bp.state(), this.compactAt()), ...(ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []));
|
|
5976
6026
|
constructor() {
|
|
5977
6027
|
// Les hauteurs sont MESURÉES, jamais déclarées : une barre dont le contenu grandit
|
|
5978
6028
|
// (deux lignes de titre, un bandeau d'alerte) doit rester juste sans que personne
|
|
@@ -5980,46 +6030,40 @@ class PoadAppShellComponent {
|
|
|
5980
6030
|
effect((onCleanup) => {
|
|
5981
6031
|
if (typeof ResizeObserver === 'undefined')
|
|
5982
6032
|
return;
|
|
5983
|
-
const
|
|
5984
|
-
[this.barRef().nativeElement, (n) => this._top.set(n), 'h'],
|
|
5985
|
-
[this.bottomRef().nativeElement, (n) => this._bottom.set(n), 'h'],
|
|
5986
|
-
[this.navRef().nativeElement, (n) => this._nav.set(n), 'w'],
|
|
5987
|
-
];
|
|
6033
|
+
const zones = [['bar', this.barRef().nativeElement], ['bottom', this.bottomRef().nativeElement], ['nav', this.navRef().nativeElement]];
|
|
5988
6034
|
const ro = new ResizeObserver(() => {
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
set(Math.round(axe === 'h' ? r.height : r.width));
|
|
5992
|
-
}
|
|
6035
|
+
const [top, bottom, nav] = zones.map(([z, el]) => appShellMeasure(z, el.getBoundingClientRect()));
|
|
6036
|
+
this.metrics.set(appShellMetrics(this.metrics(), { top, bottom, nav }));
|
|
5993
6037
|
});
|
|
5994
|
-
for (const [el] of
|
|
6038
|
+
for (const [, el] of zones)
|
|
5995
6039
|
ro.observe(el);
|
|
5996
6040
|
onCleanup(() => ro.disconnect());
|
|
5997
6041
|
});
|
|
5998
|
-
inject(DestroyRef).onDestroy(() => { });
|
|
5999
6042
|
}
|
|
6043
|
+
/** Demande l'ouverture du menu : émet `navRequested` (l'hôte ouvre son tiroir). */
|
|
6000
6044
|
openNav() { this.navRequested.emit(); }
|
|
6001
6045
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadAppShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6002
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.20", type: PoadAppShellComponent, isStandalone: true, selector: "poad-app-shell", inputs: { compactAt: { classPropertyName: "compactAt", publicName: "compactAt", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { navRequested: "navRequested" }, host: { properties: { "class.is-compact": "compact()", "style.--poad-shell-top
|
|
6046
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.20", type: PoadAppShellComponent, isStandalone: true, selector: "poad-app-shell", inputs: { compactAt: { classPropertyName: "compactAt", publicName: "compactAt", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { navRequested: "navRequested" }, host: { properties: { "class.is-compact": "compact()", "style.--poad-shell-top": "style()[\"--poad-shell-top\"]", "style.--poad-shell-bottom": "style()[\"--poad-shell-bottom\"]", "style.--poad-shell-nav": "style()[\"--poad-shell-nav\"]" }, classAttribute: "poad-app-shell" }, providers: [{ provide: POAD_SHELL, useExisting: PoadAppShellComponent }], viewQueries: [{ propertyName: "barRef", first: true, predicate: ["bar"], descendants: true, isSignal: true }, { propertyName: "navRef", first: true, predicate: ["nav"], descendants: true, isSignal: true }, { propertyName: "bottomRef", first: true, predicate: ["bottom"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
6003
6047
|
<div class="poad-shell__bar" #bar><ng-content select="[poadShellBar]" /></div>
|
|
6004
6048
|
<div class="poad-shell__nav" #nav><ng-content select="[poadShellNav]" /></div>
|
|
6005
6049
|
<div class="poad-shell__main" #main><ng-content /></div>
|
|
6006
6050
|
<div class="poad-shell__bottom" #bottom><ng-content select="[poadShellBottom]" /></div>
|
|
6007
|
-
`, isInline: true, styles: ["
|
|
6051
|
+
`, isInline: true, styles: [".poad-app-shell{display:grid;height:var(--poad-shell-height, 100dvh);overflow:hidden;box-sizing:border-box;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;background:var(--poad-bg);color:var(--poad-fg);font-family:var(--poad-font);font-size:var(--poad-font-size)}.poad-app-shell>.poad-shell__bar{grid-column:1 / -1;grid-row:1;min-width:0}.poad-app-shell>.poad-shell__nav{grid-column:1;grid-row:2;min-height:0;display:flex}.poad-app-shell>.poad-shell__main{grid-column:2;grid-row:2;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain}.poad-app-shell>.poad-shell__bottom{grid-column:1 / -1;grid-row:3;min-width:0}.poad-app-shell>.poad-shell__bar:empty,.poad-app-shell>.poad-shell__nav:empty,.poad-app-shell>.poad-shell__bottom:empty{display:none}.poad-app-shell.is-compact>.poad-shell__nav{width:0;overflow:visible}.poad-app-shell.is-compact>.poad-shell__main{grid-column:1 / -1}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6008
6052
|
}
|
|
6009
6053
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadAppShellComponent, decorators: [{
|
|
6010
6054
|
type: Component,
|
|
6011
6055
|
args: [{ selector: 'poad-app-shell', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: POAD_SHELL, useExisting: PoadAppShellComponent }], host: {
|
|
6012
6056
|
class: 'poad-app-shell',
|
|
6013
6057
|
'[class.is-compact]': 'compact()',
|
|
6014
|
-
'[style.--poad-shell-top
|
|
6015
|
-
'[style.--poad-shell-bottom
|
|
6016
|
-
'[style.--poad-shell-nav
|
|
6058
|
+
'[style.--poad-shell-top]': 'style()["--poad-shell-top"]',
|
|
6059
|
+
'[style.--poad-shell-bottom]': 'style()["--poad-shell-bottom"]',
|
|
6060
|
+
'[style.--poad-shell-nav]': 'style()["--poad-shell-nav"]',
|
|
6017
6061
|
}, template: `
|
|
6018
6062
|
<div class="poad-shell__bar" #bar><ng-content select="[poadShellBar]" /></div>
|
|
6019
6063
|
<div class="poad-shell__nav" #nav><ng-content select="[poadShellNav]" /></div>
|
|
6020
6064
|
<div class="poad-shell__main" #main><ng-content /></div>
|
|
6021
6065
|
<div class="poad-shell__bottom" #bottom><ng-content select="[poadShellBottom]" /></div>
|
|
6022
|
-
`, styles: ["
|
|
6066
|
+
`, encapsulation: ViewEncapsulation.None, styles: [".poad-app-shell{display:grid;height:var(--poad-shell-height, 100dvh);overflow:hidden;box-sizing:border-box;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;background:var(--poad-bg);color:var(--poad-fg);font-family:var(--poad-font);font-size:var(--poad-font-size)}.poad-app-shell>.poad-shell__bar{grid-column:1 / -1;grid-row:1;min-width:0}.poad-app-shell>.poad-shell__nav{grid-column:1;grid-row:2;min-height:0;display:flex}.poad-app-shell>.poad-shell__main{grid-column:2;grid-row:2;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain}.poad-app-shell>.poad-shell__bottom{grid-column:1 / -1;grid-row:3;min-width:0}.poad-app-shell>.poad-shell__bar:empty,.poad-app-shell>.poad-shell__nav:empty,.poad-app-shell>.poad-shell__bottom:empty{display:none}.poad-app-shell.is-compact>.poad-shell__nav{width:0;overflow:visible}.poad-app-shell.is-compact>.poad-shell__main{grid-column:1 / -1}\n"] }]
|
|
6023
6067
|
}], ctorParameters: () => [], propDecorators: { compactAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "compactAt", required: false }] }], navRequested: [{ type: i0.Output, args: ["navRequested"] }], barRef: [{ type: i0.ViewChild, args: ['bar', { isSignal: true }] }], navRef: [{ type: i0.ViewChild, args: ['nav', { isSignal: true }] }], bottomRef: [{ type: i0.ViewChild, args: ['bottom', { isSignal: true }] }] } });
|
|
6024
6068
|
|
|
6025
6069
|
/**
|
|
@@ -6287,78 +6331,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
6287
6331
|
args: [{ selector: '[poadEditFocus]', standalone: true }]
|
|
6288
6332
|
}], ctorParameters: () => [] });
|
|
6289
6333
|
|
|
6290
|
-
/**
|
|
6291
|
-
* Styles poad-table (2/4) : colonnes figées, responsive priority/stack. Tokens --poad-* uniquement.
|
|
6292
|
-
* Sans encapsulation, comme la feuille de base `@poadio/ui-core/table.css` (même écriture : classe d'hôte répétée pour
|
|
6293
|
-
* garder la priorité qu'avait chaque règle encapsulée, sélecteurs ancrés sur la structure du gabarit) ; passeront dans
|
|
6294
|
-
* le socle avec leur tranche (ui-core `src/table/README.md`).
|
|
6295
|
-
*/
|
|
6296
|
-
const POAD_TABLE_STYLES_2 = `
|
|
6297
|
-
/* ---------- colonnes figées ---------- */
|
|
6298
|
-
.poad-table.poad-table .tbl > :where(thead) > :where(tr) > th.st-left, .poad-table.poad-table .tbl > :where(tbody) > :where(tr) > td.st-left, .poad-table.poad-table .tbl > :where(tfoot) > :where(tr.dt-grand) > td.st-left, .poad-table.poad-table .tbl > :where(thead) > :where(tr) > th.st-right, .poad-table.poad-table .tbl > :where(tbody) > :where(tr) > td.st-right, .poad-table.poad-table .tbl > :where(tfoot) > :where(tr.dt-grand) > td.st-right { position: sticky; z-index: 2; background: var(--poad-surface); background-clip: padding-box; }
|
|
6299
|
-
.poad-table.poad-table.poad-table .tbl > thead > :where(tr) > th.st-left, .poad-table.poad-table.poad-table .tbl > thead > :where(tr) > th.st-right { z-index: 4; background: var(--poad-bg-subtle); }
|
|
6300
|
-
.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl > thead > :where(tr) > th.st-left, .poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl > thead > :where(tr) > th.st-right { z-index: 5; }
|
|
6301
|
-
.poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl > tbody > tr.dt-row:nth-child(even of .dt-row) > td.st-left, .poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl > tbody > tr.dt-row:nth-child(even of .dt-row) > td.st-right { background: var(--poad-table-stripe, var(--poad-bg-subtle)); }
|
|
6302
|
-
.poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl > tbody > tr.dt-row:hover > td.st-left, .poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl > tbody > tr.dt-row:hover > td.st-right { background: var(--poad-hover); }
|
|
6303
|
-
.poad-table.poad-table.poad-table.poad-table .tbl > tbody > tr.dt-row.is-selected > td.st-left, .poad-table.poad-table.poad-table.poad-table .tbl > tbody > tr.dt-row.is-selected > td.st-right { background: color-mix(in srgb, var(--poad-accent) 12%, var(--poad-surface)); }
|
|
6304
|
-
.poad-table.poad-table .tbl > :where(tbody) > :where(tr) > td.st-last-left, .poad-table.poad-table .tbl > :where(tfoot) > :where(tr.dt-grand) > td.st-last-left, .poad-table.poad-table .tbl > :where(thead) > :where(tr) > th.st-last-left { transition: box-shadow var(--poad-dur); }
|
|
6305
|
-
.poad-table.poad-table.poad-table.is-scrolled-x .tbl > :where(tbody) > :where(tr) > td.st-last-left, .poad-table.poad-table.poad-table.is-scrolled-x .tbl > :where(tfoot) > :where(tr.dt-grand) > td.st-last-left, .poad-table.poad-table.poad-table.is-scrolled-x .tbl > :where(thead) > :where(tr) > th.st-last-left { box-shadow: 1px 0 0 var(--poad-border), 6px 0 12px -6px rgba(0,0,0,.18); }
|
|
6306
|
-
.poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl > :where(tbody) > :where(tr) > td.st-first-right, .poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl > :where(tfoot) > :where(tr.dt-grand) > td.st-first-right, .poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl > :where(thead) > :where(tr) > th.st-first-right { box-shadow: -1px 0 0 var(--poad-border), -6px 0 12px -6px rgba(0,0,0,.18); }
|
|
6307
|
-
.poad-table.poad-table.poad-table .tbl > :where(tbody) > :where(tr) > td.st-right.col-acts > .acts, .poad-table.poad-table.poad-table .tbl > :where(tfoot) > :where(tr.dt-grand) > td.st-right.col-acts > .acts { background: inherit; }
|
|
6308
|
-
|
|
6309
|
-
/* ---------- détail (décalage d'arbre) ---------- */
|
|
6310
|
-
.poad-table.poad-table.poad-table .tbl > :where(thead, tbody) > tr.dt-detail > td { padding-left: calc(var(--_detail-pl, 58px) + var(--_lvl, 0) * var(--_indent, 20px)); }
|
|
6311
|
-
|
|
6312
|
-
/* ---------- barre d'outils responsive ---------- */
|
|
6313
|
-
.poad-table .dt-bar__tools, .poad-table .dt-bar__tools-end { display: contents; }
|
|
6314
|
-
.poad-table .dt-bar__filters { display: inline-flex; }
|
|
6315
|
-
.poad-table.poad-table .dt-bar__filters .dt-bar__count { padding: 1px 6px; font-size: 10px; }
|
|
6316
|
-
|
|
6317
|
-
/* ---------- mode stack (cartes) ---------- */
|
|
6318
|
-
.poad-table.poad-table.is-stacked .dt-bar { gap: 8px; }
|
|
6319
|
-
.poad-table.poad-table.is-stacked .dt-bar__tools { display: none; }
|
|
6320
|
-
.poad-table.poad-table.is-stacked .dt-bar__tools.is-open { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; order: 10; padding-top: 8px; border-top: 1px dashed var(--poad-border); }
|
|
6321
|
-
.poad-table.poad-table.is-stacked .dt-bar__grow { display: none; }
|
|
6322
|
-
.poad-table.poad-table.is-stacked .dt-bar__search { order: 5; flex-basis: 100%; width: 100%; }
|
|
6323
|
-
.poad-table.poad-table.is-stacked .dt-bar__cols, .poad-table.poad-table.is-stacked .dt-bar__density { display: none; }
|
|
6324
|
-
.poad-table.poad-table.is-stacked .dt-sel { position: sticky; bottom: 0; z-index: 6; flex-wrap: wrap; border-top: 1px solid var(--poad-border); order: 99; }
|
|
6325
|
-
.poad-table.poad-table.is-stacked .dt-scroll { overflow-x: hidden; }
|
|
6326
|
-
.poad-table.poad-table.is-stacked .tbl, .poad-table.poad-table.poad-table.is-stacked .tbl > tbody, .poad-table.poad-table.poad-table.is-stacked .tbl > tfoot, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > tr:where(.dt-grand), .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td { display: block; }
|
|
6327
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > thead, .poad-table.poad-table.poad-table.is-stacked .tbl > colgroup, .poad-table.poad-table.poad-table.is-stacked .tbl > caption { display: none; }
|
|
6328
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-row { position: relative; padding: 10px 12px 10px 12px; border-bottom: 1px solid var(--poad-border); height: auto; }
|
|
6329
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-row.has-sel { padding-left: 44px; }
|
|
6330
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-row.is-selected { background: var(--poad-accent-soft); box-shadow: inset 3px 0 0 var(--poad-accent); }
|
|
6331
|
-
.poad-table.poad-table.poad-table.is-hoverable.is-stacked .tbl > :where(thead, tbody) > tr.dt-row:hover { background: var(--poad-hover); }
|
|
6332
|
-
.poad-table.poad-table.poad-table.poad-table.is-hoverable.is-stacked .tbl > :where(thead, tbody) > tr.dt-row:hover > td, .poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-row.is-selected > td, .poad-table.poad-table.poad-table.poad-table.is-striped.is-stacked .tbl > :where(thead, tbody) > tr.dt-row > td { background: transparent !important; box-shadow: none !important; }
|
|
6333
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-row:focus-visible { box-shadow: inset 0 0 0 1px var(--poad-ring); }
|
|
6334
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td { height: auto; padding: 2px 0; border: 0; white-space: normal; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12.5px; position: static; }
|
|
6335
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.st-left, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.st-left, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.st-right, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.st-right { position: static; }
|
|
6336
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td[data-l]::before, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td[data-l]::before { content: attr(data-l); color: var(--poad-fg-muted); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; flex: none; }
|
|
6337
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.col-sel, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.col-sel { position: absolute; left: 12px; top: 12px; padding: 0; width: auto; }
|
|
6338
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.col-sel::before, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.col-sel::before, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.col-exp::before, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.col-exp::before, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.col-acts::before, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.col-acts::before, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.dt-tree-cell::before, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.dt-tree-cell::before, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.dt-first::before, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.dt-first::before { content: none; }
|
|
6339
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.col-exp, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.col-exp { position: absolute; right: 44px; top: 8px; padding: 0; width: auto; }
|
|
6340
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.dt-first, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.dt-first, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.dt-tree-cell, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.dt-tree-cell { display: block; font-size: 14px; font-weight: 500; padding: 0 44px 6px 0; }
|
|
6341
|
-
.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.dt-tree-cell > .dt-tree-wrap > .poad-tree-toggle .ind, .poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.dt-tree-cell > .dt-tree-wrap > .poad-tree-toggle .ind, .poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.dt-tree-cell > .dt-tree-wrap > .poad-tree-toggle .tl, .poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.dt-tree-cell > .dt-tree-wrap > .poad-tree-toggle .tl { display: none; }
|
|
6342
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.col-acts, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.col-acts { position: absolute; right: 8px; top: 8px; padding: 0; width: auto; }
|
|
6343
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl :where(td.col-acts) > .acts { opacity: 1; }
|
|
6344
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(tbody) > :where(tr) > td.dt-num, .poad-table.poad-table.poad-table.is-stacked .tbl > :where(tfoot) > :where(tr.dt-grand) > td.dt-num { text-align: right; }
|
|
6345
|
-
.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-detail > td { padding: 8px 12px 10px; }
|
|
6346
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-row.lvl-1 { margin-left: 22px; border-left: 2px solid var(--poad-border); }
|
|
6347
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-row.lvl-2 { margin-left: 44px; border-left: 2px solid var(--poad-border); }
|
|
6348
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-row.lvl-3 { margin-left: 66px; border-left: 2px solid var(--poad-border); }
|
|
6349
|
-
.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-group > td { padding: 8px 12px; height: auto; display: block; }
|
|
6350
|
-
.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-group-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 12px 6px 44px; }
|
|
6351
|
-
.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-group-foot > td { padding: 0; }
|
|
6352
|
-
.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-group-foot > td:empty { display: none; }
|
|
6353
|
-
.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > tfoot > tr.dt-grand { padding: 8px 12px; }
|
|
6354
|
-
.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > tfoot > tr.dt-grand > td:empty { display: none; }
|
|
6355
|
-
.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-empty > td { display: block; }
|
|
6356
|
-
.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.is-skeleton > td { display: block; padding: 4px 0; }
|
|
6357
|
-
.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl > :where(thead, tbody) > tr.dt-card > td { padding: 0; display: block; }
|
|
6358
|
-
.poad-table.poad-table.is-stacked .dt-foot { flex-wrap: wrap; gap: 8px; }
|
|
6359
|
-
.poad-table.poad-table.is-stacked .dt-foot .poad-paginator__rpp { display: none; }
|
|
6360
|
-
`;
|
|
6361
|
-
|
|
6362
6334
|
/**
|
|
6363
6335
|
* Styles poad-table (3/4) : réordonnancement de colonnes, virtual scroll, édition inline. Tokens --poad-* uniquement.
|
|
6364
6336
|
* Sans encapsulation, comme la feuille de base `@poadio/ui-core/table.css` (même écriture : classe d'hôte répétée pour
|
|
@@ -6818,10 +6790,10 @@ const poadIsGroupKey = tableIsGroupKey;
|
|
|
6818
6790
|
/** Agrégats de lignes (`tableAggregate` du socle). */
|
|
6819
6791
|
const poadAggregate = tableAggregate;
|
|
6820
6792
|
|
|
6821
|
-
const POAD_DEFAULT_PRIORITY_BREAKPOINTS =
|
|
6793
|
+
const POAD_DEFAULT_PRIORITY_BREAKPOINTS = TABLE_PRIORITY_BREAKPOINTS;
|
|
6822
6794
|
/**
|
|
6823
|
-
* Observe la largeur du conteneur `.dt` (ResizeObserver)
|
|
6824
|
-
* `
|
|
6795
|
+
* Observe la largeur du conteneur `.dt` (ResizeObserver) ; l'état (`stacked` en mode stack sous `stackAt`,
|
|
6796
|
+
* `hiddenPriorities` en mode priority, classes) vient du modèle `table.responsive` d'@poadio/ui-core. Testable via `setWidth`.
|
|
6825
6797
|
*/
|
|
6826
6798
|
class PoadTableResponsive {
|
|
6827
6799
|
mode;
|
|
@@ -6837,27 +6809,12 @@ class PoadTableResponsive {
|
|
|
6837
6809
|
inject(DestroyRef).onDestroy(() => this.disconnect());
|
|
6838
6810
|
}
|
|
6839
6811
|
/** Vrai quand la table est rendue en cartes (mode stack + largeur sous le seuil). */
|
|
6840
|
-
stacked = computed(() =>
|
|
6812
|
+
stacked = computed(() => tableStacked({ mode: this.mode(), width: this.width(), stackAt: this.stackAt() }), ...(ngDevMode ? [{ debugName: "stacked" }] : /* istanbul ignore next */ []));
|
|
6841
6813
|
/** Priorités masquées (2..5) selon la largeur (mode priority uniquement). */
|
|
6842
|
-
hiddenPriorities = computed(() => {
|
|
6843
|
-
const out = new Set();
|
|
6844
|
-
const w = this.width();
|
|
6845
|
-
if (this.mode() !== 'priority' || w == null)
|
|
6846
|
-
return out;
|
|
6847
|
-
const bp = { ...POAD_DEFAULT_PRIORITY_BREAKPOINTS, ...this.priorityBreakpoints() };
|
|
6848
|
-
[5, 4, 3, 2].forEach(p => { const t = bp[p]; if (t != null && w < t)
|
|
6849
|
-
out.add(p); });
|
|
6850
|
-
return out;
|
|
6851
|
-
}, ...(ngDevMode ? [{ debugName: "hiddenPriorities" }] : /* istanbul ignore next */ []));
|
|
6814
|
+
hiddenPriorities = computed(() => new Set(tableHiddenPriorities({ mode: this.mode(), width: this.width(), breakpoints: this.priorityBreakpoints() })), ...(ngDevMode ? [{ debugName: "hiddenPriorities" }] : /* istanbul ignore next */ []));
|
|
6852
6815
|
/** Classes hôtes à refléter. */
|
|
6853
|
-
hostClasses = computed(() => {
|
|
6854
|
-
|
|
6855
|
-
if (this.stacked())
|
|
6856
|
-
c.push('is-stacked');
|
|
6857
|
-
this.hiddenPriorities().forEach(p => c.push('hide-p' + p));
|
|
6858
|
-
return c;
|
|
6859
|
-
}, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
6860
|
-
isHidden(priority) { return priority != null && priority > 1 && this.hiddenPriorities().has(priority); }
|
|
6816
|
+
hostClasses = computed(() => Object.entries(tableResponsiveClasses({ stacked: this.stacked(), hidden: [...this.hiddenPriorities()] })).filter(([, on]) => on).map(([c]) => c), ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
6817
|
+
isHidden(priority) { return tableIsPriorityHidden(priority, [...this.hiddenPriorities()]); }
|
|
6861
6818
|
observe(el) {
|
|
6862
6819
|
const target = el instanceof ElementRef ? el.nativeElement : el;
|
|
6863
6820
|
if (!target || target === this.observed)
|
|
@@ -6877,9 +6834,9 @@ class PoadTableResponsive {
|
|
|
6877
6834
|
}
|
|
6878
6835
|
|
|
6879
6836
|
/**
|
|
6880
|
-
* Colonnes figées de poad-table :
|
|
6881
|
-
*
|
|
6882
|
-
* Clés : 'sel' (sélection), 'exp' (détail), id de colonne, 'acts' (actions).
|
|
6837
|
+
* Colonnes figées de poad-table : la mesure des en-têtes (`th[data-sk]`) et l'écoute du défilement ; décalages,
|
|
6838
|
+
* classes et ombres viennent du modèle `table.sticky` d'@poadio/ui-core.
|
|
6839
|
+
* Clés : 'num', 'sel' (sélection), 'drag', 'exp' (détail), id de colonne, 'acts' (actions).
|
|
6883
6840
|
*/
|
|
6884
6841
|
class PoadTableSticky {
|
|
6885
6842
|
keys = () => ({ left: [], right: [] });
|
|
@@ -6888,64 +6845,29 @@ class PoadTableSticky {
|
|
|
6888
6845
|
scrolledX = signal(false, ...(ngDevMode ? [{ debugName: "scrolledX" }] : /* istanbul ignore next */ []));
|
|
6889
6846
|
scrolledXEnd = signal(true, ...(ngDevMode ? [{ debugName: "scrolledXEnd" }] : /* istanbul ignore next */ []));
|
|
6890
6847
|
configure(keys, scroller) { this.keys = keys; this.scroller = scroller; }
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
acc += w[k] ?? 0;
|
|
6898
|
-
}
|
|
6899
|
-
return m;
|
|
6900
|
-
}, ...(ngDevMode ? [{ debugName: "leftMap" }] : /* istanbul ignore next */ []));
|
|
6901
|
-
rightMap = computed(() => {
|
|
6902
|
-
const m = new Map();
|
|
6903
|
-
let acc = 0;
|
|
6904
|
-
const w = this.measured();
|
|
6905
|
-
for (const k of [...this.keys().right].reverse()) {
|
|
6906
|
-
m.set(k, acc);
|
|
6907
|
-
acc += w[k] ?? 0;
|
|
6908
|
-
}
|
|
6909
|
-
return m;
|
|
6910
|
-
}, ...(ngDevMode ? [{ debugName: "rightMap" }] : /* istanbul ignore next */ []));
|
|
6911
|
-
left(key) { return this.leftMap().has(key) ? this.leftMap().get(key) : null; }
|
|
6912
|
-
right(key) { return this.rightMap().has(key) ? this.rightMap().get(key) : null; }
|
|
6913
|
-
classFor(key) {
|
|
6914
|
-
const { left, right } = this.keys();
|
|
6915
|
-
if (left.includes(key))
|
|
6916
|
-
return 'st-left' + (left[left.length - 1] === key ? ' st-last-left' : '');
|
|
6917
|
-
if (right.includes(key))
|
|
6918
|
-
return 'st-right' + (right[0] === key ? ' st-first-right' : '');
|
|
6919
|
-
return '';
|
|
6920
|
-
}
|
|
6848
|
+
/** Classes d'ombre de la racine, même règle que les autres rendus : aucune quand rien n'est figé. */
|
|
6849
|
+
shadowClasses = computed(() => tableStickyRootClasses({ sticky: tableHasSticky(this.keys()), scrolledX: this.scrolledX(), scrolledXEnd: this.scrolledXEnd() }), ...(ngDevMode ? [{ debugName: "shadowClasses" }] : /* istanbul ignore next */ []));
|
|
6850
|
+
offsets = computed(() => tableStickyOffsets(this.keys(), this.measured()), ...(ngDevMode ? [{ debugName: "offsets" }] : /* istanbul ignore next */ []));
|
|
6851
|
+
left(key) { return this.offsets().left[key] ?? null; }
|
|
6852
|
+
right(key) { return this.offsets().right[key] ?? null; }
|
|
6853
|
+
classFor(key) { return tableStickyClass(this.keys(), key); }
|
|
6921
6854
|
/** Mesure les largeurs des en-têtes figés (à appeler après rendu). */
|
|
6922
6855
|
measure(host) {
|
|
6923
|
-
const
|
|
6924
|
-
if (!left.length && !right.length) {
|
|
6925
|
-
if (Object.keys(this.measured()).length)
|
|
6926
|
-
this.measured.set({});
|
|
6927
|
-
return;
|
|
6928
|
-
}
|
|
6856
|
+
const k = this.keys();
|
|
6929
6857
|
const ths = host.querySelectorAll('thead tr:first-child th[data-sk]');
|
|
6930
|
-
const next = {};
|
|
6931
|
-
|
|
6932
|
-
const cur = this.measured();
|
|
6933
|
-
ths.forEach(th => { const k = th.dataset['sk']; if (!left.includes(k) && !right.includes(k))
|
|
6934
|
-
return; const w = Math.round(th.getBoundingClientRect().width); next[k] = w; if (cur[k] !== w)
|
|
6935
|
-
changed = true; });
|
|
6936
|
-
if (changed || Object.keys(cur).length !== Object.keys(next).length)
|
|
6858
|
+
const next = k.left.length || k.right.length ? tableStickyWidths(k, [...ths].map(th => [th.dataset['sk'], th.getBoundingClientRect().width])) : {};
|
|
6859
|
+
if (!tableStickyWidthsEqual(this.measured(), next))
|
|
6937
6860
|
this.measured.set(next);
|
|
6938
6861
|
this.onScroll(this.scroller());
|
|
6939
6862
|
}
|
|
6940
6863
|
onScroll(el) {
|
|
6941
6864
|
if (!el)
|
|
6942
6865
|
return;
|
|
6943
|
-
const
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
this.scrolledXEnd.set(end);
|
|
6866
|
+
const s = tableScrollShadow(el);
|
|
6867
|
+
if (s.scrolledX !== this.scrolledX())
|
|
6868
|
+
this.scrolledX.set(s.scrolledX);
|
|
6869
|
+
if (s.scrolledXEnd !== this.scrolledXEnd())
|
|
6870
|
+
this.scrolledXEnd.set(s.scrolledXEnd);
|
|
6949
6871
|
}
|
|
6950
6872
|
}
|
|
6951
6873
|
|
|
@@ -7798,7 +7720,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
7798
7720
|
}], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], home: [{ type: i0.Input, args: [{ isSignal: true, alias: "home", required: false }] }], separatorIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "separatorIcon", required: false }] }], maxItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxItems", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], itemTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PoadBreadcrumbItemDirective), { isSignal: true }] }] } });
|
|
7799
7721
|
|
|
7800
7722
|
/** Positions de l'overlay du CDK : celles du socle (`MENU_PLACEMENTS`), dans le même ordre, à 4 px de la cible. */
|
|
7801
|
-
const POSITIONS = MENU_PLACEMENTS.map(({ side, align }) => ({
|
|
7723
|
+
const POSITIONS$1 = MENU_PLACEMENTS.map(({ side, align }) => ({
|
|
7802
7724
|
originX: align, originY: side, overlayX: align, overlayY: side === 'bottom' ? 'top' : 'bottom', offsetY: side === 'bottom' ? MENU_OFFSET : -MENU_OFFSET,
|
|
7803
7725
|
}));
|
|
7804
7726
|
/**
|
|
@@ -7892,11 +7814,11 @@ class PoadMenuComponent {
|
|
|
7892
7814
|
const el = target instanceof ElementRef ? target.nativeElement : target instanceof HTMLElement ? target : target.currentTarget;
|
|
7893
7815
|
this.target = el;
|
|
7894
7816
|
if (el && !contextual)
|
|
7895
|
-
strategy = this.overlay.position().flexibleConnectedTo(el).withPositions(POSITIONS).withPush(true);
|
|
7817
|
+
strategy = this.overlay.position().flexibleConnectedTo(el).withPositions(POSITIONS$1).withPush(true);
|
|
7896
7818
|
else {
|
|
7897
7819
|
const me = target;
|
|
7898
7820
|
me.preventDefault?.();
|
|
7899
|
-
strategy = this.overlay.position().flexibleConnectedTo({ x: me.clientX, y: me.clientY }).withPositions(POSITIONS).withPush(true);
|
|
7821
|
+
strategy = this.overlay.position().flexibleConnectedTo({ x: me.clientX, y: me.clientY }).withPositions(POSITIONS$1).withPush(true);
|
|
7900
7822
|
}
|
|
7901
7823
|
this.ref = this.overlay.create({ positionStrategy: strategy, scrollStrategy: this.overlay.scrollStrategies.reposition(), hasBackdrop: true, backdropClass: 'poad-menu-backdrop', panelClass: 'poad-overlay-pane' });
|
|
7902
7824
|
this.ref.attach(new TemplatePortal(this.panelTpl(), this.vcr));
|
|
@@ -8079,13 +8001,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
8079
8001
|
`, encapsulation: ViewEncapsulation.None, styles: [".poad-menu-host{display:contents}.poad-menu-host.is-inline{display:block}.poad-menu[role=menu]{background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:9px;box-shadow:var(--poad-shadow-lg);padding:4px;min-width:180px;font-family:var(--poad-font);font-size:var(--poad-font-size);color:var(--poad-fg);box-sizing:border-box}.poad-menu-host.is-inline>.poad-menu{box-shadow:none}.poad-menu .poad-menu__wrap{position:relative}.poad-menu .poad-menu__item{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border-radius:6px;cursor:pointer;white-space:nowrap}.poad-menu .poad-menu__item:hover:not([disabled]),.poad-menu .poad-menu__item.is-active:not([disabled]){background:var(--poad-hover)}.poad-menu .poad-menu__item:focus-visible{outline:2px solid var(--poad-ring);outline-offset:-2px}.poad-menu .poad-menu__item[disabled]{opacity:.5;cursor:not-allowed}.poad-menu .poad-menu__item.sev-danger{color:var(--poad-danger)}.poad-menu .poad-menu__item.sev-danger:hover:not([disabled]){background:var(--poad-danger-soft)}.poad-menu .poad-menu__ph{width:14px;flex:none}.poad-menu .poad-menu__label{flex:1}.poad-menu .poad-menu__kbd{font:11px var(--poad-font-mono);color:var(--poad-fg-muted);margin-inline-start:16px}.poad-menu .poad-menu__badge{font:500 10.5px var(--poad-font-mono);padding:1px 6px;border-radius:999px;background:var(--poad-accent-soft);color:var(--poad-accent)}.poad-menu .poad-menu__sub-ic{color:var(--poad-fg-muted);margin-inline-start:8px}.poad-menu .poad-menu__sep{height:1px;background:var(--poad-border);margin:4px 6px}.poad-menu .poad-menu--sub{position:absolute;top:-5px;inset-inline-start:calc(100% + 2px);z-index:1}.poad-split-button{display:inline-flex;align-items:stretch;vertical-align:middle}.poad-split-button .poad-split-button__main{border-start-end-radius:0!important;border-end-end-radius:0!important}.poad-split-button .poad-split-button__toggle{border-start-start-radius:0!important;border-end-start-radius:0!important;margin-inline-start:-1px;box-shadow:inset 1px 0 #ffffff47}.poad-split-button .var-outline.poad-split-button__toggle,.poad-split-button .var-text.poad-split-button__toggle{box-shadow:none;border-inline-start-color:transparent}\n"] }]
|
|
8080
8002
|
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], popup: [{ type: i0.Input, args: [{ isSignal: true, alias: "popup", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidth", required: false }] }], closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], mobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobile", required: false }] }], sheetTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "sheetTitle", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], shown: [{ type: i0.Output, args: ["shown"] }], hidden: [{ type: i0.Output, args: ["hidden"] }], panelTpl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }] } });
|
|
8081
8003
|
|
|
8004
|
+
/**
|
|
8005
|
+
* Focus sur un élément d'un panneau qui vient d'être attaché : la couche du CDK n'est montrée (et placée) qu'à l'image
|
|
8006
|
+
* suivante, le navigateur refuse le focus d'ici là — réessayer à l'image suivante.
|
|
8007
|
+
*/
|
|
8008
|
+
function focusShown(el) {
|
|
8009
|
+
if (!el)
|
|
8010
|
+
return;
|
|
8011
|
+
el.focus();
|
|
8012
|
+
if (el.ownerDocument.activeElement !== el)
|
|
8013
|
+
requestAnimationFrame(() => el.focus());
|
|
8014
|
+
}
|
|
8015
|
+
/** Positions de l'overlay du CDK : celles du socle (`MENUBAR_PLACEMENTS`), à 6 px de la racine. */
|
|
8016
|
+
const POSITIONS = MENUBAR_PLACEMENTS.map(({ align }) => ({ originX: align, originY: 'bottom', overlayX: align, overlayY: 'top', offsetY: MENUBAR_OFFSET }));
|
|
8082
8017
|
/**
|
|
8083
8018
|
* <poad-menubar [items]="items" breakpoint="md" (itemClick)>
|
|
8084
8019
|
* <img poadMenubarStart …/> <poad-map-search poadMenubarEnd/>
|
|
8085
8020
|
* </poad-menubar>
|
|
8086
|
-
* Barre
|
|
8087
|
-
*
|
|
8088
|
-
*
|
|
8021
|
+
* Barre de menus horizontale (`role="menubar"`, un seul arrêt de tabulation) : racines liens (`routerLink`, ou `url`
|
|
8022
|
+
* en `<a href>` ; la page courante soulignée par `routerLinkActive` ou `current`) ou boutons qui ouvrent un panneau
|
|
8023
|
+
* flottant (overlay du CDK) — une liste (`items`, un niveau de sous-menu) ou un méga-menu en colonnes (`columns`).
|
|
8024
|
+
* Clavier : ← → entre racines, ↓ ↑ ouvrent et entrent dans le panneau, ← → y passent au panneau voisin, Échap ferme et
|
|
8025
|
+
* rend le focus à la racine. Au survol, une fois un panneau ouvert, celui de la racine survolée le remplace.
|
|
8026
|
+
* Sous `breakpoint` (fenêtre) : bouton « Menu » et liste verticale dont les groupes se déplient sur place.
|
|
8027
|
+
*
|
|
8028
|
+
* Décisions (arrêt de tabulation, clavier des racines et du panneau, survol, repli, lignes du repli, attributs) :
|
|
8029
|
+
* machines `menubar` et `menu` de @poadio/ui-core ; restent ici l'overlay du CDK, le routeur et le focus. Style
|
|
8030
|
+
* partagé : `@poadio/ui-core/menubar.css` et `menu.css` (encapsulation désactivée).
|
|
8031
|
+
* @slot [poadMenubarStart] Contenu avant les racines (logo…).
|
|
8032
|
+
* @slot [poadMenubarEnd] Contenu après les racines, poussé à la fin (recherche, compte…).
|
|
8089
8033
|
* @atelier icone=menu
|
|
8090
8034
|
* @atelier-exemple items [{"label":"Fichier","items":[{"label":"Nouveau"},{"label":"Ouvrir"}]},{"label":"Édition","items":[{"label":"Annuler"},{"label":"Rétablir"}]},{"label":"Affichage"}]
|
|
8091
8035
|
*/
|
|
@@ -8093,261 +8037,521 @@ class PoadMenubarComponent {
|
|
|
8093
8037
|
i18n = inject(UiI18n);
|
|
8094
8038
|
overlay = inject(Overlay);
|
|
8095
8039
|
vcr = inject(ViewContainerRef);
|
|
8096
|
-
|
|
8040
|
+
injector = inject(Injector);
|
|
8041
|
+
host = inject(ElementRef).nativeElement;
|
|
8097
8042
|
bp = inject(PoadBreakpointService);
|
|
8043
|
+
/** Les racines de la barre. */
|
|
8098
8044
|
items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
8045
|
+
/** Nom accessible de la barre. */
|
|
8099
8046
|
ariaLabel = input('', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
8100
|
-
/** Sous ce
|
|
8047
|
+
/** Sous ce point de rupture de la fenêtre : bouton « Menu » et liste verticale (`''` : jamais). */
|
|
8101
8048
|
breakpoint = input('md', ...(ngDevMode ? [{ debugName: "breakpoint" }] : /* istanbul ignore next */ []));
|
|
8049
|
+
/** Une fois un panneau ouvert, survoler une autre racine ouvre le sien ; quitter la barre et le panneau le ferme. */
|
|
8102
8050
|
openOnHover = input(true, { ...(ngDevMode ? { debugName: "openOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
8051
|
+
/** Adresse de la page courante : la racine (ou l'élément) dont `url` est égale est marquée (`aria-current="page"`). */
|
|
8052
|
+
current = input(null, ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
|
|
8053
|
+
/** Un élément (racine sans panneau, élément d'un panneau, ligne du repli) est choisi, après sa `command`. */
|
|
8103
8054
|
itemClick = output();
|
|
8055
|
+
/** Le panneau d'une racine s'ouvre. */
|
|
8104
8056
|
opened = output();
|
|
8057
|
+
/** Le panneau se ferme. */
|
|
8105
8058
|
closed = output();
|
|
8106
8059
|
panelTpl = viewChild.required('panel');
|
|
8060
|
+
/** @internal */
|
|
8107
8061
|
id = poadId('poad-menubar');
|
|
8108
|
-
|
|
8109
|
-
|
|
8062
|
+
/** @internal */
|
|
8063
|
+
roots = computed(() => menubarVisible(this.items()), ...(ngDevMode ? [{ debugName: "roots" }] : /* istanbul ignore next */ []));
|
|
8064
|
+
/** @internal */
|
|
8065
|
+
collapsed = computed(() => menubarCollapsed(this.bp.state().current, this.breakpoint()), ...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
|
|
8066
|
+
/** @internal */
|
|
8067
|
+
state = signal(MENUBAR_INITIAL, ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
8068
|
+
/** @internal État du panneau ouvert (machine `menu`). */
|
|
8069
|
+
pstate = signal(MENU_INITIAL, ...(ngDevMode ? [{ debugName: "pstate" }] : /* istanbul ignore next */ []));
|
|
8070
|
+
/** @internal */
|
|
8071
|
+
openItem = computed(() => { const i = this.state().open; return i == null ? null : this.roots()[i] ?? null; }, ...(ngDevMode ? [{ debugName: "openItem" }] : /* istanbul ignore next */ []));
|
|
8072
|
+
/** @internal */
|
|
8073
|
+
mega = computed(() => menubarIsMega(this.openItem() ?? undefined), ...(ngDevMode ? [{ debugName: "mega" }] : /* istanbul ignore next */ []));
|
|
8074
|
+
/** @internal */
|
|
8075
|
+
panelItems = computed(() => menubarPanelItems(this.openItem() ?? undefined), ...(ngDevMode ? [{ debugName: "panelItems" }] : /* istanbul ignore next */ []));
|
|
8076
|
+
/** @internal */
|
|
8077
|
+
columns = computed(() => menubarColumns(this.openItem()?.columns), ...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
8078
|
+
/** @internal */
|
|
8110
8079
|
mobileOpen = signal(false, ...(ngDevMode ? [{ debugName: "mobileOpen" }] : /* istanbul ignore next */ []));
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
focusIdx = signal(0, ...(ngDevMode ? [{ debugName: "focusIdx" }] : /* istanbul ignore next */ []));
|
|
8080
|
+
expanded = signal(new Set(), ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
|
|
8081
|
+
/** @internal */
|
|
8082
|
+
mobileRows = computed(() => menubarMobileRows(this.roots(), this.expanded()), ...(ngDevMode ? [{ debugName: "mobileRows" }] : /* istanbul ignore next */ []));
|
|
8115
8083
|
ref = null;
|
|
8084
|
+
refFor = null;
|
|
8116
8085
|
closeTimer = null;
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
this.
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8086
|
+
pointer = { x: NaN, y: NaN };
|
|
8087
|
+
constructor() {
|
|
8088
|
+
inject(DestroyRef).onDestroy(() => { this.cancelClose(); this.ref?.dispose(); });
|
|
8089
|
+
// repliée (ou dépliée) : panneau fermé, liste mobile refermée
|
|
8090
|
+
effect(() => { this.collapsed(); untracked(() => { this.set(menubarClose(this.state())); this.mobileOpen.set(false); }); });
|
|
8091
|
+
}
|
|
8092
|
+
/** @internal */
|
|
8093
|
+
hasPanel(it) { return menubarHasPanel(it); }
|
|
8094
|
+
/** @internal */
|
|
8095
|
+
rootAttrs(it, i) { return menubarRootProps(it, i, this.state(), this.roots(), this.current()); }
|
|
8096
|
+
/** @internal */
|
|
8097
|
+
itemAttrs(it, j) { return menuItemProps(it, { active: this.pstate().active === j, expanded: this.pstate().sub === j }); }
|
|
8098
|
+
/** @internal */
|
|
8099
|
+
subItems(it) { return menuVisible(it.items); }
|
|
8100
|
+
/** @internal */
|
|
8101
|
+
isCurrent(it) { return menubarIsCurrent(it, this.current()); }
|
|
8102
|
+
/** @internal */
|
|
8103
|
+
indent(level) { return menubarMobileIndent(level); }
|
|
8104
|
+
rtl() { return elementIsRtl(this.host); }
|
|
8105
|
+
/** Ferme le panneau ouvert (`refocus` : le focus revient à sa racine). */
|
|
8106
|
+
close(refocus = false) { this.apply(menubarClose(this.state(), refocus)); }
|
|
8107
|
+
set(step) {
|
|
8108
|
+
const before = this.state();
|
|
8109
|
+
const next = step.state;
|
|
8110
|
+
if (next.open !== before.open)
|
|
8111
|
+
this.pstate.set(MENU_INITIAL);
|
|
8112
|
+
this.state.set(next);
|
|
8113
|
+
this.syncOverlay();
|
|
8114
|
+
if (next.open !== before.open) {
|
|
8115
|
+
if (before.open !== null)
|
|
8116
|
+
this.closed.emit();
|
|
8117
|
+
const it = this.openItem();
|
|
8118
|
+
if (it)
|
|
8119
|
+
this.opened.emit(it);
|
|
8126
8120
|
}
|
|
8127
|
-
this.activate(it, ev);
|
|
8128
8121
|
}
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
this.
|
|
8132
|
-
scheduleClose(_i) { this.cancelClose(); this.closeTimer = setTimeout(() => this.closeAll(), 250); }
|
|
8133
|
-
cancelClose() { if (this.closeTimer) {
|
|
8134
|
-
clearTimeout(this.closeTimer);
|
|
8135
|
-
this.closeTimer = null;
|
|
8136
|
-
} }
|
|
8137
|
-
open(i, el) {
|
|
8138
|
-
this.closeAll();
|
|
8139
|
-
const it = this.visible()[i];
|
|
8140
|
-
if (!it || !this.hasChildren(it))
|
|
8141
|
-
return;
|
|
8142
|
-
this.openIdx.set(i);
|
|
8143
|
-
const pos = this.overlay.position().flexibleConnectedTo(el).withPositions([{ originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 6 }, { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetY: 6 }]).withPush(true);
|
|
8144
|
-
this.ref = this.overlay.create({ positionStrategy: pos, scrollStrategy: this.overlay.scrollStrategies.reposition(), hasBackdrop: true, backdropClass: 'cdk-overlay-transparent-backdrop', panelClass: 'poad-overlay-pane' });
|
|
8145
|
-
this.ref.attach(new TemplatePortal(this.panelTpl(), this.vcr));
|
|
8146
|
-
this.ref.backdropClick().subscribe(() => this.closeAll());
|
|
8147
|
-
this.ref.keydownEvents().subscribe(e => { if (e.key === 'Escape')
|
|
8148
|
-
this.closeAll(true); });
|
|
8149
|
-
this.opened.emit(it);
|
|
8122
|
+
apply(step) {
|
|
8123
|
+
this.set(step);
|
|
8124
|
+
this.focus(step.focus);
|
|
8150
8125
|
}
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8126
|
+
rootEl(i) { return this.host.querySelector(`.poad-menubar__list > li > [data-idx="${i}"]`); }
|
|
8127
|
+
paneEl() { return this.ref?.overlayElement ?? null; }
|
|
8128
|
+
focus(f) {
|
|
8129
|
+
if (!f)
|
|
8130
|
+
return;
|
|
8131
|
+
if ('root' in f) {
|
|
8132
|
+
this.rootEl(f.root)?.focus();
|
|
8133
|
+
return;
|
|
8134
|
+
}
|
|
8135
|
+
const items = this.panelItems();
|
|
8136
|
+
let s = menuOpen(items).state;
|
|
8137
|
+
if (f.panel === 'last') {
|
|
8138
|
+
const last = menuKeydown(s, items, 'End');
|
|
8139
|
+
s = last.state;
|
|
8140
|
+
}
|
|
8141
|
+
this.pstate.set(s);
|
|
8142
|
+
const idx = s.active;
|
|
8143
|
+
afterNextRender(() => focusShown(this.paneEl()?.querySelector(`[data-idx="${idx}"]`)), { injector: this.injector });
|
|
8144
|
+
}
|
|
8145
|
+
syncOverlay() {
|
|
8146
|
+
const open = this.state().open;
|
|
8147
|
+
if (open === this.refFor && (open === null || this.ref))
|
|
8148
|
+
return;
|
|
8154
8149
|
this.ref?.dispose();
|
|
8155
8150
|
this.ref = null;
|
|
8156
|
-
this.
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8151
|
+
this.refFor = null;
|
|
8152
|
+
const anchor = open === null ? null : this.rootEl(open);
|
|
8153
|
+
if (open === null || !anchor)
|
|
8154
|
+
return;
|
|
8155
|
+
const pos = this.overlay.position().flexibleConnectedTo(anchor).withPositions(POSITIONS).withPush(true);
|
|
8156
|
+
this.ref = this.overlay.create({ positionStrategy: pos, scrollStrategy: this.overlay.scrollStrategies.reposition(), panelClass: 'poad-overlay-pane' });
|
|
8157
|
+
this.refFor = open;
|
|
8158
|
+
this.ref.attach(new TemplatePortal(this.panelTpl(), this.vcr));
|
|
8159
|
+
// appui hors de la barre et du panneau : fermé
|
|
8160
|
+
this.ref.outsidePointerEvents().subscribe((e) => { if (!this.host.contains(e.target))
|
|
8161
|
+
this.close(); });
|
|
8161
8162
|
}
|
|
8162
|
-
|
|
8163
|
-
|
|
8163
|
+
/** @internal */
|
|
8164
|
+
clickRoot(it, ev, i) {
|
|
8165
|
+
if (it.disabled) {
|
|
8166
|
+
ev.preventDefault();
|
|
8164
8167
|
return;
|
|
8168
|
+
}
|
|
8169
|
+
if (!menubarHasPanel(it)) {
|
|
8170
|
+
this.chooseRoot(it, ev, i);
|
|
8171
|
+
return;
|
|
8172
|
+
}
|
|
8173
|
+
this.apply(menubarToggle(this.state(), this.roots(), i));
|
|
8174
|
+
}
|
|
8175
|
+
/** @internal */
|
|
8176
|
+
chooseRoot(it, ev, i) {
|
|
8177
|
+
this.set({ state: { focus: i, open: null }, focus: null, preventDefault: false });
|
|
8178
|
+
this.choose(it, ev);
|
|
8179
|
+
}
|
|
8180
|
+
choose(it, ev) {
|
|
8165
8181
|
it.command?.({ item: it, originalEvent: ev });
|
|
8166
8182
|
this.itemClick.emit({ item: it, originalEvent: ev });
|
|
8167
|
-
if (it.routerLink && this.router)
|
|
8168
|
-
this.router.navigate(Array.isArray(it.routerLink) ? it.routerLink : [it.routerLink], { queryParams: it.queryParams });
|
|
8169
|
-
else if (it.url)
|
|
8170
|
-
window.open(it.url, it.target ?? '_self');
|
|
8171
|
-
this.closeAll();
|
|
8172
|
-
this.mobileOpen.set(false);
|
|
8173
8183
|
}
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8184
|
+
/** @internal */
|
|
8185
|
+
hover(i, e) {
|
|
8186
|
+
if (!menubarPointerMoved(this.pointer, e.clientX, e.clientY))
|
|
8177
8187
|
return;
|
|
8178
|
-
|
|
8179
|
-
this.
|
|
8188
|
+
this.cancelClose();
|
|
8189
|
+
if (!this.openOnHover())
|
|
8190
|
+
return;
|
|
8191
|
+
const next = menubarHover(this.state(), this.roots(), i);
|
|
8192
|
+
if (next !== this.state())
|
|
8193
|
+
this.set({ state: next, focus: null, preventDefault: false });
|
|
8180
8194
|
}
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
if (!
|
|
8195
|
+
/** @internal */
|
|
8196
|
+
scheduleClose(e) {
|
|
8197
|
+
// une sortie due à la page qui change sous un pointeur immobile (panneau placé) ne compte pas
|
|
8198
|
+
if (!this.openOnHover() || this.state().open === null || !menubarPointerMoved(this.pointer, e.clientX, e.clientY))
|
|
8199
|
+
return;
|
|
8200
|
+
this.cancelClose();
|
|
8201
|
+
this.closeTimer = setTimeout(() => this.close(), MENUBAR_CLOSE_DELAY);
|
|
8202
|
+
}
|
|
8203
|
+
/** @internal */
|
|
8204
|
+
cancelClose() { if (this.closeTimer) {
|
|
8205
|
+
clearTimeout(this.closeTimer);
|
|
8206
|
+
this.closeTimer = null;
|
|
8207
|
+
} }
|
|
8208
|
+
/** @internal */
|
|
8209
|
+
onRootKey(e) {
|
|
8210
|
+
const step = menubarRootKeydown(this.state(), this.roots(), e.key, { rtl: this.rtl() });
|
|
8211
|
+
if (step.preventDefault)
|
|
8212
|
+
e.preventDefault();
|
|
8213
|
+
this.apply(step);
|
|
8214
|
+
}
|
|
8215
|
+
/** @internal */
|
|
8216
|
+
onPanelKey(e) {
|
|
8217
|
+
const inSub = !!e.target.closest('.poad-menu--sub');
|
|
8218
|
+
const items = this.panelItems();
|
|
8219
|
+
const before = menubarPanelFrom(this.pstate(), e.target, inSub);
|
|
8220
|
+
const m = menuKeydown(before, items, e.key, { inSub });
|
|
8221
|
+
if (m.preventDefault || m.state !== before) {
|
|
8222
|
+
if (m.preventDefault)
|
|
8223
|
+
e.preventDefault();
|
|
8224
|
+
if (m.stopPropagation)
|
|
8225
|
+
e.stopPropagation();
|
|
8226
|
+
this.pstate.set(m.state);
|
|
8227
|
+
const f = m.focus;
|
|
8228
|
+
if (!f)
|
|
8229
|
+
return;
|
|
8230
|
+
// élément déjà rendu (même niveau) : focus tout de suite ; sous-menu qui s'ouvre : après le rendu
|
|
8231
|
+
const find = () => this.paneEl()?.querySelector(f.level === 'root' ? `[data-idx="${f.index}"]` : `.poad-menu--sub > [data-sub-idx="${f.index}"]`);
|
|
8232
|
+
const el = find();
|
|
8233
|
+
if (el)
|
|
8234
|
+
el.focus();
|
|
8235
|
+
else
|
|
8236
|
+
afterNextRender(() => focusShown(find()), { injector: this.injector });
|
|
8185
8237
|
return;
|
|
8186
|
-
let i = this.focusIdx();
|
|
8187
|
-
if (e.key === 'ArrowRight') {
|
|
8188
|
-
i = (i + 1) % n;
|
|
8189
|
-
}
|
|
8190
|
-
else if (e.key === 'ArrowLeft') {
|
|
8191
|
-
i = (i - 1 + n) % n;
|
|
8192
8238
|
}
|
|
8193
|
-
|
|
8194
|
-
|
|
8239
|
+
const step = menubarPanelKeydown(this.state(), this.roots(), e.key, { rtl: this.rtl() });
|
|
8240
|
+
if (step.preventDefault) {
|
|
8241
|
+
e.preventDefault();
|
|
8242
|
+
e.stopPropagation();
|
|
8195
8243
|
}
|
|
8196
|
-
|
|
8197
|
-
|
|
8244
|
+
this.apply(step);
|
|
8245
|
+
}
|
|
8246
|
+
/** @internal */
|
|
8247
|
+
panelHover(j) { const next = menuHover(this.pstate(), this.panelItems(), j); if (next !== this.pstate())
|
|
8248
|
+
this.pstate.set(next); }
|
|
8249
|
+
/** @internal */
|
|
8250
|
+
subHover(k) { const next = menuSubHover(this.pstate(), k); if (next !== this.pstate())
|
|
8251
|
+
this.pstate.set(next); }
|
|
8252
|
+
/** @internal */
|
|
8253
|
+
activate(it, ev, index, parent) {
|
|
8254
|
+
const r = menuActivate(this.pstate(), this.panelItems(), { index, parent: parent ?? undefined });
|
|
8255
|
+
if (r.action === 'none') {
|
|
8256
|
+
ev.preventDefault();
|
|
8257
|
+
return;
|
|
8198
8258
|
}
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8259
|
+
this.pstate.set(r.state);
|
|
8260
|
+
if (r.action === 'toggle-sub')
|
|
8261
|
+
return;
|
|
8262
|
+
this.choose(it, ev);
|
|
8263
|
+
this.close(true);
|
|
8264
|
+
}
|
|
8265
|
+
/** @internal */
|
|
8266
|
+
toggleMobile() { this.mobileOpen.update((o) => !o); }
|
|
8267
|
+
/** @internal */
|
|
8268
|
+
toggleGroup(key) { this.expanded.update((e) => menubarMobileToggle(e, key)); }
|
|
8269
|
+
/** @internal */
|
|
8270
|
+
chooseMobile(it, ev) {
|
|
8271
|
+
if (it.disabled) {
|
|
8272
|
+
ev.preventDefault();
|
|
8207
8273
|
return;
|
|
8208
8274
|
}
|
|
8209
|
-
|
|
8210
|
-
|
|
8275
|
+
this.choose(it, ev);
|
|
8276
|
+
this.mobileOpen.set(false);
|
|
8277
|
+
this.host.querySelector('.poad-menubar__burger')?.focus();
|
|
8278
|
+
}
|
|
8279
|
+
/** @internal */
|
|
8280
|
+
onMobileKey(e) {
|
|
8281
|
+
if (e.key === 'Escape') {
|
|
8282
|
+
e.preventDefault();
|
|
8283
|
+
this.mobileOpen.set(false);
|
|
8284
|
+
this.host.querySelector('.poad-menubar__burger')?.focus();
|
|
8211
8285
|
return;
|
|
8212
8286
|
}
|
|
8213
|
-
|
|
8287
|
+
const els = [...e.currentTarget.querySelectorAll('.poad-menubar__mitem')];
|
|
8288
|
+
const to = menubarMobileKeyTarget(els.map((el) => el.disabled === true), els.indexOf(e.target), e.key);
|
|
8289
|
+
if (to === null)
|
|
8214
8290
|
return;
|
|
8215
8291
|
e.preventDefault();
|
|
8216
|
-
|
|
8217
|
-
this.focusRoot(i);
|
|
8218
|
-
if (this.openIdx() !== null) {
|
|
8219
|
-
const el = e.currentTarget.querySelector(`[data-idx="${i}"]`);
|
|
8220
|
-
if (el && this.hasChildren(this.visible()[i]))
|
|
8221
|
-
this.open(i, el);
|
|
8222
|
-
else
|
|
8223
|
-
this.closeAll();
|
|
8224
|
-
}
|
|
8292
|
+
els[to]?.focus();
|
|
8225
8293
|
}
|
|
8226
8294
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadMenubarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8227
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.20", type: PoadMenubarComponent, isStandalone: true, selector: "poad-menubar", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, openOnHover: { classPropertyName: "openOnHover", publicName: "openOnHover", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", opened: "opened", closed: "closed" }, host: { properties: { "class.is-mobile": "
|
|
8295
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.20", type: PoadMenubarComponent, isStandalone: true, selector: "poad-menubar", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, openOnHover: { classPropertyName: "openOnHover", publicName: "openOnHover", isSignal: true, isRequired: false, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", opened: "opened", closed: "closed" }, host: { properties: { "class.is-mobile": "collapsed()", "class.is-open": "mobileOpen()" }, classAttribute: "poad-menubar" }, viewQueries: [{ propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
8228
8296
|
<div class="poad-menubar__start"><ng-content select="[poadMenubarStart]"/></div>
|
|
8229
|
-
@if (!
|
|
8230
|
-
<ul class="poad-menubar__list" role="menubar" [attr.aria-label]="ariaLabel() || null" (keydown)="
|
|
8231
|
-
@for (it of
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8297
|
+
@if (!collapsed()) {
|
|
8298
|
+
<ul class="poad-menubar__list" role="menubar" [attr.aria-label]="ariaLabel() || null" (keydown)="onRootKey($event)">
|
|
8299
|
+
@for (it of roots(); track $index; let i = $index) {
|
|
8300
|
+
@let a = rootAttrs(it, i);
|
|
8301
|
+
<li role="none" (mousemove)="hover(i, $event)" (mouseleave)="scheduleClose($event)">
|
|
8302
|
+
@if (!hasPanel(it) && !it.disabled && it.routerLink) {
|
|
8303
|
+
<a class="poad-menubar__root" [class.is-active]="a.classes['is-active']" role="menuitem" [routerLink]="it.routerLink" [queryParams]="it.queryParams" routerLinkActive="is-active"
|
|
8304
|
+
[attr.aria-current]="a['aria-current']" [attr.tabindex]="a.tabindex" [attr.data-idx]="i" [attr.title]="it.title || null" (click)="chooseRoot(it, $event, i)">
|
|
8305
|
+
<ng-container *ngTemplateOutlet="rootInner; context: { $implicit: it }"/>
|
|
8306
|
+
</a>
|
|
8307
|
+
} @else if (!hasPanel(it) && !it.disabled && it.url) {
|
|
8308
|
+
<a class="poad-menubar__root" [class.is-active]="a.classes['is-active']" role="menuitem" [href]="it.url" [attr.target]="it.target || null"
|
|
8309
|
+
[attr.aria-current]="a['aria-current']" [attr.tabindex]="a.tabindex" [attr.data-idx]="i" [attr.title]="it.title || null" (click)="chooseRoot(it, $event, i)">
|
|
8310
|
+
<ng-container *ngTemplateOutlet="rootInner; context: { $implicit: it }"/>
|
|
8236
8311
|
</a>
|
|
8237
8312
|
} @else {
|
|
8238
|
-
<button
|
|
8239
|
-
|
|
8240
|
-
|
|
8313
|
+
<button type="button" class="poad-menubar__root" [class.is-open]="a.classes['is-open']" [class.is-active]="a.classes['is-active']" [class.is-disabled]="a.classes['is-disabled']"
|
|
8314
|
+
role="menuitem" [attr.aria-haspopup]="a['aria-haspopup']" [attr.aria-expanded]="a['aria-expanded']" [attr.aria-disabled]="a['aria-disabled']" [attr.tabindex]="a.tabindex"
|
|
8315
|
+
[attr.data-idx]="i" [attr.title]="it.title || null" (click)="clickRoot(it, $event, i)">
|
|
8316
|
+
<ng-container *ngTemplateOutlet="rootInner; context: { $implicit: it }"/>
|
|
8317
|
+
@if (hasPanel(it)) {<poad-icon class="poad-menubar__chev" name="chevron-down" [size]="12"/>}
|
|
8241
8318
|
</button>
|
|
8242
8319
|
}
|
|
8243
8320
|
</li>
|
|
8244
8321
|
}
|
|
8245
8322
|
</ul>
|
|
8246
8323
|
} @else {
|
|
8247
|
-
<button type="button" class="poad-menubar__burger" [attr.aria-label]="i18n.t('nav.menu')" [attr.aria-expanded]="mobileOpen()"
|
|
8324
|
+
<button type="button" class="poad-menubar__burger" [attr.aria-label]="i18n.t('nav.menu')" [attr.aria-expanded]="mobileOpen()" [attr.aria-controls]="id + '-mobile'"
|
|
8325
|
+
(click)="toggleMobile()"><poad-icon [name]="mobileOpen() ? 'x' : 'menu'" [size]="18"/></button>
|
|
8248
8326
|
}
|
|
8249
8327
|
<div class="poad-menubar__end"><ng-content select="[poadMenubarEnd]"/></div>
|
|
8250
|
-
@if (
|
|
8251
|
-
<div class="poad-menubar__mobile"
|
|
8252
|
-
@for (
|
|
8328
|
+
@if (collapsed() && mobileOpen()) {
|
|
8329
|
+
<div class="poad-menubar__mobile" [id]="id + '-mobile'" (keydown)="onMobileKey($event)">
|
|
8330
|
+
@for (r of mobileRows(); track r.key) {
|
|
8331
|
+
@if (r.separator) { <div class="poad-menubar__sep"></div> }
|
|
8332
|
+
@else if (r.group) {
|
|
8333
|
+
<button type="button" class="poad-menubar__mitem" [style.padding-inline-start.px]="indent(r.level)" [disabled]="r.item.disabled" [attr.aria-expanded]="r.expanded"
|
|
8334
|
+
(click)="toggleGroup(r.key)">
|
|
8335
|
+
@if (r.item.icon) {<poad-icon [name]="r.item.icon" [size]="15"/>}<span class="poad-menubar__mlabel">{{ r.item.label }}</span>
|
|
8336
|
+
<poad-icon [name]="r.expanded ? 'chevron-up' : 'chevron-down'" [size]="13"/>
|
|
8337
|
+
</button>
|
|
8338
|
+
} @else if (!r.item.disabled && r.item.routerLink) {
|
|
8339
|
+
<a class="poad-menubar__mitem" [class.is-active]="isCurrent(r.item)" [style.padding-inline-start.px]="indent(r.level)" [routerLink]="r.item.routerLink" [queryParams]="r.item.queryParams"
|
|
8340
|
+
routerLinkActive="is-active" (click)="chooseMobile(r.item, $event)"><ng-container *ngTemplateOutlet="mobileInner; context: { $implicit: r.item }"/></a>
|
|
8341
|
+
} @else if (!r.item.disabled && r.item.url) {
|
|
8342
|
+
<a class="poad-menubar__mitem" [class.is-active]="isCurrent(r.item)" [attr.aria-current]="isCurrent(r.item) ? 'page' : null" [style.padding-inline-start.px]="indent(r.level)"
|
|
8343
|
+
[href]="r.item.url" [attr.target]="r.item.target || null" (click)="chooseMobile(r.item, $event)"><ng-container *ngTemplateOutlet="mobileInner; context: { $implicit: r.item }"/></a>
|
|
8344
|
+
} @else {
|
|
8345
|
+
<button type="button" class="poad-menubar__mitem" [style.padding-inline-start.px]="indent(r.level)" [disabled]="r.item.disabled" (click)="chooseMobile(r.item, $event)">
|
|
8346
|
+
<ng-container *ngTemplateOutlet="mobileInner; context: { $implicit: r.item }"/>
|
|
8347
|
+
</button>
|
|
8348
|
+
}
|
|
8349
|
+
}
|
|
8253
8350
|
</div>
|
|
8254
8351
|
}
|
|
8255
|
-
<ng-template #
|
|
8256
|
-
@if (it.
|
|
8257
|
-
@else {
|
|
8258
|
-
<button type="button" class="poad-menubar__mitem" role="menuitem" [style.padding-left.px]="12 + level * 16" [disabled]="it.disabled" [attr.aria-expanded]="hasChildren(it) ? mExpanded().has(it) : null" (click)="mobileClick(it, $event)">
|
|
8259
|
-
@if (it.icon) {<poad-icon [name]="it.icon" [size]="15"/>}<span class="poad-menubar__mlabel">{{ it.label }}</span>
|
|
8260
|
-
@if (hasChildren(it)) {<poad-icon [name]="mExpanded().has(it) ? 'chevron-up' : 'chevron-down'" [size]="13"/>}
|
|
8261
|
-
</button>
|
|
8262
|
-
@if (hasChildren(it) && mExpanded().has(it)) {
|
|
8263
|
-
@for (s of childrenOf(it); track $index) { <ng-container *ngTemplateOutlet="mobileItem; context: { $implicit: s, level: level + 1 }"/> }
|
|
8264
|
-
}
|
|
8265
|
-
}
|
|
8352
|
+
<ng-template #rootInner let-it>
|
|
8353
|
+
@if (it.icon) {<poad-icon [name]="it.icon" [size]="15"/>}<span>{{ it.label }}</span>@if (it.badge != null) {<span class="poad-menubar__badge">{{ it.badge }}</span>}
|
|
8266
8354
|
</ng-template>
|
|
8267
|
-
|
|
8355
|
+
<ng-template #mobileInner let-it>
|
|
8356
|
+
@if (it.icon) {<poad-icon [name]="it.icon" [size]="15"/>}<span class="poad-menubar__mlabel">{{ it.label }}</span>@if (it.badge != null) {<span class="poad-menubar__badge">{{ it.badge }}</span>}
|
|
8357
|
+
</ng-template>
|
|
8358
|
+
<!-- panneau (overlay du CDK) : liste ou méga-menu -->
|
|
8268
8359
|
<ng-template #panel>
|
|
8269
8360
|
@if (openItem(); as it) {
|
|
8270
|
-
@if (
|
|
8271
|
-
<div class="poad-menubar__mega
|
|
8272
|
-
@for (col of
|
|
8273
|
-
<div class="poad-menubar__col">
|
|
8274
|
-
@if (col.header) {<div class="poad-menubar__colh">{{ col.header }}</div>}
|
|
8275
|
-
@for (
|
|
8276
|
-
<
|
|
8361
|
+
@if (mega()) {
|
|
8362
|
+
<div class="poad-menubar__mega" role="menu" [attr.aria-label]="it.label || null" (keydown)="onPanelKey($event)" (mouseenter)="cancelClose()" (mouseleave)="scheduleClose($event)">
|
|
8363
|
+
@for (col of columns(); track $index) {
|
|
8364
|
+
<div class="poad-menubar__col" role="group" [attr.aria-label]="col.header || null">
|
|
8365
|
+
@if (col.header) {<div class="poad-menubar__colh" aria-hidden="true">{{ col.header }}</div>}
|
|
8366
|
+
@for (c of col.items; track c.index) {
|
|
8367
|
+
<ng-container *ngTemplateOutlet="entry; context: { $implicit: c.item, index: c.index, cls: 'poad-menubar__citem', tabindex: pstate().active === c.index ? 0 : -1 }"/>
|
|
8277
8368
|
}
|
|
8278
8369
|
</div>
|
|
8279
8370
|
}
|
|
8280
8371
|
</div>
|
|
8281
8372
|
} @else {
|
|
8282
|
-
<div
|
|
8373
|
+
<div class="poad-menu poad-menubar__panel" role="menu" [attr.aria-label]="it.label || null" (keydown)="onPanelKey($event)" (mouseenter)="cancelClose()" (mouseleave)="scheduleClose($event)">
|
|
8374
|
+
@for (s of panelItems(); track $index; let j = $index) {
|
|
8375
|
+
@if (s.separator) { <div class="poad-menu__sep" role="separator"></div> }
|
|
8376
|
+
@else {
|
|
8377
|
+
@let b = itemAttrs(s, j);
|
|
8378
|
+
<div class="poad-menu__wrap" (mouseenter)="panelHover(j)">
|
|
8379
|
+
@if (b['aria-haspopup']) {
|
|
8380
|
+
<button type="button" class="poad-menu__item" [class.is-active]="b.classes['is-active']" role="menuitem" aria-haspopup="menu" [attr.aria-expanded]="b['aria-expanded']"
|
|
8381
|
+
[disabled]="b.disabled" [attr.tabindex]="b.tabindex" [attr.data-idx]="j" [attr.title]="s.title || null" (click)="activate(s, $event, j)">
|
|
8382
|
+
@if (s.icon) {<poad-icon [name]="s.icon" [size]="14"/>}<span class="poad-menu__label">{{ s.label }}</span>
|
|
8383
|
+
<poad-icon class="poad-menu__sub-ic" name="chevron-right" [size]="12"/>
|
|
8384
|
+
</button>
|
|
8385
|
+
@if (pstate().sub === j) {
|
|
8386
|
+
<div class="poad-menu poad-menu--sub" role="menu">
|
|
8387
|
+
@for (x of subItems(s); track $index; let k = $index) {
|
|
8388
|
+
@if (x.separator) { <div class="poad-menu__sep" role="separator"></div> }
|
|
8389
|
+
@else { <ng-container *ngTemplateOutlet="entry; context: { $implicit: x, index: k, parent: j, cls: 'poad-menu__item', tabindex: -1 }"/> }
|
|
8390
|
+
}
|
|
8391
|
+
</div>
|
|
8392
|
+
}
|
|
8393
|
+
} @else {
|
|
8394
|
+
<ng-container *ngTemplateOutlet="entry; context: { $implicit: s, index: j, cls: 'poad-menu__item', tabindex: b.tabindex, active: b.classes['is-active'] }"/>
|
|
8395
|
+
}
|
|
8396
|
+
</div>
|
|
8397
|
+
}
|
|
8398
|
+
}
|
|
8399
|
+
</div>
|
|
8283
8400
|
}
|
|
8284
8401
|
}
|
|
8285
8402
|
</ng-template>
|
|
8286
|
-
|
|
8403
|
+
<!-- un élément du panneau : lien routé, lien, ou bouton -->
|
|
8404
|
+
<ng-template #entry let-it let-index="index" let-parent="parent" let-cls="cls" let-tabindex="tabindex" let-active="active">
|
|
8405
|
+
@if (!it.disabled && it.routerLink) {
|
|
8406
|
+
<a [class]="cls" [class.is-active]="active" [class.sev-danger]="it.severity === 'danger'" role="menuitem" [routerLink]="it.routerLink" [queryParams]="it.queryParams" [attr.tabindex]="tabindex"
|
|
8407
|
+
[attr.data-idx]="parent == null ? index : null" [attr.data-sub-idx]="parent == null ? null : index" [attr.title]="it.title || null"
|
|
8408
|
+
(mouseenter)="parent == null ? null : subHover(index)" (click)="activate(it, $event, index, parent)"><ng-container *ngTemplateOutlet="entryInner; context: { $implicit: it }"/></a>
|
|
8409
|
+
} @else if (!it.disabled && it.url) {
|
|
8410
|
+
<a [class]="cls" [class.is-active]="active" [class.sev-danger]="it.severity === 'danger'" role="menuitem" [href]="it.url" [attr.target]="it.target || null"
|
|
8411
|
+
[attr.aria-current]="isCurrent(it) ? 'page' : null" [attr.tabindex]="tabindex" [attr.data-idx]="parent == null ? index : null" [attr.data-sub-idx]="parent == null ? null : index"
|
|
8412
|
+
[attr.title]="it.title || null" (mouseenter)="parent == null ? null : subHover(index)" (click)="activate(it, $event, index, parent)"><ng-container *ngTemplateOutlet="entryInner; context: { $implicit: it }"/></a>
|
|
8413
|
+
} @else {
|
|
8414
|
+
<button type="button" [class]="cls" [class.is-active]="active" [class.sev-danger]="it.severity === 'danger'" role="menuitem" [disabled]="it.disabled" [attr.tabindex]="tabindex"
|
|
8415
|
+
[attr.data-idx]="parent == null ? index : null" [attr.data-sub-idx]="parent == null ? null : index" [attr.title]="it.title || null"
|
|
8416
|
+
(mouseenter)="parent == null ? null : subHover(index)" (click)="activate(it, $event, index, parent)"><ng-container *ngTemplateOutlet="entryInner; context: { $implicit: it }"/></button>
|
|
8417
|
+
}
|
|
8418
|
+
</ng-template>
|
|
8419
|
+
<ng-template #entryInner let-it>
|
|
8420
|
+
@if (it.icon) {<poad-icon [name]="it.icon" [size]="14"/>}<span class="poad-menu__label">{{ it.label }}</span>@if (it.badge != null) {<span class="poad-menubar__badge">{{ it.badge }}</span>}
|
|
8421
|
+
</ng-template>
|
|
8422
|
+
`, isInline: true, styles: [".poad-menubar{display:flex;align-items:center;gap:8px;min-height:48px;padding:0 12px;background:var(--poad-surface);border-bottom:1px solid var(--poad-border);font-family:var(--poad-font);font-size:var(--poad-font-size);color:var(--poad-fg);position:relative;box-sizing:border-box}.poad-menubar .poad-menubar__start,.poad-menubar .poad-menubar__end{display:flex;align-items:center;gap:8px}.poad-menubar .poad-menubar__start:empty,.poad-menubar .poad-menubar__end:empty{display:none}.poad-menubar .poad-menubar__end{margin-inline-start:auto}.poad-menubar.is-mobile .poad-menubar__start{flex:1 1 auto}.poad-menubar .poad-menubar__list{display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0;min-width:0}.poad-menubar .poad-menubar__list>li{display:flex}.poad-menubar .poad-menubar__root{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 10px;border-radius:7px;color:var(--poad-fg-secondary);font-weight:500;cursor:pointer;position:relative;white-space:nowrap}.poad-menubar .poad-menubar__root:hover,.poad-menubar .poad-menubar__root.is-open{background:var(--poad-hover);color:var(--poad-fg)}.poad-menubar .poad-menubar__root:focus-visible{outline:2px solid var(--poad-ring);outline-offset:-2px}.poad-menubar .poad-menubar__root.is-active{color:var(--poad-accent)}.poad-menubar .poad-menubar__root.is-active:after{content:\"\";position:absolute;inset-inline-start:10px;inset-inline-end:10px;bottom:-7px;height:2px;border-radius:2px;background:var(--poad-accent)}.poad-menubar .poad-menubar__root.is-disabled{opacity:.5;cursor:default}.poad-menubar .poad-menubar__root.is-disabled:hover{background:none;color:var(--poad-fg-secondary)}.poad-menubar .poad-menubar__chev{color:var(--poad-fg-muted);transition:transform var(--poad-dur)}.poad-menubar .poad-menubar__root.is-open .poad-menubar__chev{transform:rotate(180deg)}.poad-menubar .poad-menubar__badge,.poad-menubar__mega .poad-menubar__badge{font:500 10.5px var(--poad-font-mono);padding:1px 6px;border-radius:999px;background:var(--poad-accent-soft);color:var(--poad-accent)}.poad-menubar .poad-menubar__burger{all:unset;box-sizing:border-box;display:grid;place-items:center;width:36px;height:36px;border-radius:8px;color:var(--poad-fg-secondary);cursor:pointer}.poad-menubar .poad-menubar__burger:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-menubar .poad-menubar__burger:focus-visible{outline:2px solid var(--poad-ring);outline-offset:-2px}.poad-menubar .poad-menubar__mobile{position:absolute;inset-inline-start:0;inset-inline-end:0;top:100%;z-index:20;background:var(--poad-surface);border-bottom:1px solid var(--poad-border);box-shadow:var(--poad-shadow-lg);padding:6px 0;max-height:70vh;overflow:auto}.poad-menubar .poad-menubar__mitem{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding-inline-end:12px;color:var(--poad-fg);cursor:pointer}.poad-menubar .poad-menubar__mitem:hover{background:var(--poad-hover)}.poad-menubar .poad-menubar__mitem:focus-visible{outline:2px solid var(--poad-ring);outline-offset:-2px}.poad-menubar .poad-menubar__mitem.is-active{color:var(--poad-accent);font-weight:500}.poad-menubar .poad-menubar__mitem[disabled],.poad-menubar .poad-menubar__mitem[aria-disabled=true]{opacity:.5;cursor:default}.poad-menubar .poad-menubar__mlabel{flex:1}.poad-menubar .poad-menubar__sep{height:1px;background:var(--poad-border);margin:4px 12px}.poad-menu.poad-menubar__panel{min-width:200px}.poad-menu.poad-menubar__panel a.poad-menu__item{color:inherit;text-decoration:none}.poad-menubar__mega[role=menu]{display:flex;gap:22px;padding:14px 16px;background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:10px;box-shadow:var(--poad-shadow-lg);font-family:var(--poad-font);font-size:var(--poad-font-size);color:var(--poad-fg);box-sizing:border-box}.poad-menubar__mega .poad-menubar__col{display:flex;flex-direction:column;gap:2px;min-width:160px}.poad-menubar__mega .poad-menubar__colh{font:600 10.5px/1 var(--poad-font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--poad-fg-muted);padding:4px 8px 8px}.poad-menubar__mega .poad-menubar__citem{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:6px;color:var(--poad-fg);cursor:pointer;font-size:var(--poad-font-size)}.poad-menubar__mega .poad-menubar__citem:hover:not([disabled]){background:var(--poad-hover)}.poad-menubar__mega .poad-menubar__citem:focus-visible{outline:2px solid var(--poad-ring);outline-offset:-2px}.poad-menubar__mega .poad-menubar__citem[disabled]{opacity:.5;cursor:not-allowed}\n", ".poad-menu-host{display:contents}.poad-menu-host.is-inline{display:block}.poad-menu[role=menu]{background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:9px;box-shadow:var(--poad-shadow-lg);padding:4px;min-width:180px;font-family:var(--poad-font);font-size:var(--poad-font-size);color:var(--poad-fg);box-sizing:border-box}.poad-menu-host.is-inline>.poad-menu{box-shadow:none}.poad-menu .poad-menu__wrap{position:relative}.poad-menu .poad-menu__item{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border-radius:6px;cursor:pointer;white-space:nowrap}.poad-menu .poad-menu__item:hover:not([disabled]),.poad-menu .poad-menu__item.is-active:not([disabled]){background:var(--poad-hover)}.poad-menu .poad-menu__item:focus-visible{outline:2px solid var(--poad-ring);outline-offset:-2px}.poad-menu .poad-menu__item[disabled]{opacity:.5;cursor:not-allowed}.poad-menu .poad-menu__item.sev-danger{color:var(--poad-danger)}.poad-menu .poad-menu__item.sev-danger:hover:not([disabled]){background:var(--poad-danger-soft)}.poad-menu .poad-menu__ph{width:14px;flex:none}.poad-menu .poad-menu__label{flex:1}.poad-menu .poad-menu__kbd{font:11px var(--poad-font-mono);color:var(--poad-fg-muted);margin-inline-start:16px}.poad-menu .poad-menu__badge{font:500 10.5px var(--poad-font-mono);padding:1px 6px;border-radius:999px;background:var(--poad-accent-soft);color:var(--poad-accent)}.poad-menu .poad-menu__sub-ic{color:var(--poad-fg-muted);margin-inline-start:8px}.poad-menu .poad-menu__sep{height:1px;background:var(--poad-border);margin:4px 6px}.poad-menu .poad-menu--sub{position:absolute;top:-5px;inset-inline-start:calc(100% + 2px);z-index:1}.poad-split-button{display:inline-flex;align-items:stretch;vertical-align:middle}.poad-split-button .poad-split-button__main{border-start-end-radius:0!important;border-end-end-radius:0!important}.poad-split-button .poad-split-button__toggle{border-start-start-radius:0!important;border-end-start-radius:0!important;margin-inline-start:-1px;box-shadow:inset 1px 0 #ffffff47}.poad-split-button .var-outline.poad-split-button__toggle,.poad-split-button .var-text.poad-split-button__toggle{box-shadow:none;border-inline-start-color:transparent}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: PoadIconComponent, selector: "poad-icon", inputs: ["name", "size", "strokeWidth", "label", "title", "spin", "filled", "flip", "rotate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
8287
8423
|
}
|
|
8288
8424
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadMenubarComponent, decorators: [{
|
|
8289
8425
|
type: Component,
|
|
8290
|
-
args: [{ selector: 'poad-menubar', standalone: true, imports: [NgTemplateOutlet, RouterLink, RouterLinkActive, PoadIconComponent
|
|
8426
|
+
args: [{ selector: 'poad-menubar', standalone: true, imports: [NgTemplateOutlet, RouterLink, RouterLinkActive, PoadIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'poad-menubar', '[class.is-mobile]': 'collapsed()', '[class.is-open]': 'mobileOpen()' }, template: `
|
|
8291
8427
|
<div class="poad-menubar__start"><ng-content select="[poadMenubarStart]"/></div>
|
|
8292
|
-
@if (!
|
|
8293
|
-
<ul class="poad-menubar__list" role="menubar" [attr.aria-label]="ariaLabel() || null" (keydown)="
|
|
8294
|
-
@for (it of
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8428
|
+
@if (!collapsed()) {
|
|
8429
|
+
<ul class="poad-menubar__list" role="menubar" [attr.aria-label]="ariaLabel() || null" (keydown)="onRootKey($event)">
|
|
8430
|
+
@for (it of roots(); track $index; let i = $index) {
|
|
8431
|
+
@let a = rootAttrs(it, i);
|
|
8432
|
+
<li role="none" (mousemove)="hover(i, $event)" (mouseleave)="scheduleClose($event)">
|
|
8433
|
+
@if (!hasPanel(it) && !it.disabled && it.routerLink) {
|
|
8434
|
+
<a class="poad-menubar__root" [class.is-active]="a.classes['is-active']" role="menuitem" [routerLink]="it.routerLink" [queryParams]="it.queryParams" routerLinkActive="is-active"
|
|
8435
|
+
[attr.aria-current]="a['aria-current']" [attr.tabindex]="a.tabindex" [attr.data-idx]="i" [attr.title]="it.title || null" (click)="chooseRoot(it, $event, i)">
|
|
8436
|
+
<ng-container *ngTemplateOutlet="rootInner; context: { $implicit: it }"/>
|
|
8437
|
+
</a>
|
|
8438
|
+
} @else if (!hasPanel(it) && !it.disabled && it.url) {
|
|
8439
|
+
<a class="poad-menubar__root" [class.is-active]="a.classes['is-active']" role="menuitem" [href]="it.url" [attr.target]="it.target || null"
|
|
8440
|
+
[attr.aria-current]="a['aria-current']" [attr.tabindex]="a.tabindex" [attr.data-idx]="i" [attr.title]="it.title || null" (click)="chooseRoot(it, $event, i)">
|
|
8441
|
+
<ng-container *ngTemplateOutlet="rootInner; context: { $implicit: it }"/>
|
|
8299
8442
|
</a>
|
|
8300
8443
|
} @else {
|
|
8301
|
-
<button
|
|
8302
|
-
|
|
8303
|
-
|
|
8444
|
+
<button type="button" class="poad-menubar__root" [class.is-open]="a.classes['is-open']" [class.is-active]="a.classes['is-active']" [class.is-disabled]="a.classes['is-disabled']"
|
|
8445
|
+
role="menuitem" [attr.aria-haspopup]="a['aria-haspopup']" [attr.aria-expanded]="a['aria-expanded']" [attr.aria-disabled]="a['aria-disabled']" [attr.tabindex]="a.tabindex"
|
|
8446
|
+
[attr.data-idx]="i" [attr.title]="it.title || null" (click)="clickRoot(it, $event, i)">
|
|
8447
|
+
<ng-container *ngTemplateOutlet="rootInner; context: { $implicit: it }"/>
|
|
8448
|
+
@if (hasPanel(it)) {<poad-icon class="poad-menubar__chev" name="chevron-down" [size]="12"/>}
|
|
8304
8449
|
</button>
|
|
8305
8450
|
}
|
|
8306
8451
|
</li>
|
|
8307
8452
|
}
|
|
8308
8453
|
</ul>
|
|
8309
8454
|
} @else {
|
|
8310
|
-
<button type="button" class="poad-menubar__burger" [attr.aria-label]="i18n.t('nav.menu')" [attr.aria-expanded]="mobileOpen()"
|
|
8455
|
+
<button type="button" class="poad-menubar__burger" [attr.aria-label]="i18n.t('nav.menu')" [attr.aria-expanded]="mobileOpen()" [attr.aria-controls]="id + '-mobile'"
|
|
8456
|
+
(click)="toggleMobile()"><poad-icon [name]="mobileOpen() ? 'x' : 'menu'" [size]="18"/></button>
|
|
8311
8457
|
}
|
|
8312
8458
|
<div class="poad-menubar__end"><ng-content select="[poadMenubarEnd]"/></div>
|
|
8313
|
-
@if (
|
|
8314
|
-
<div class="poad-menubar__mobile"
|
|
8315
|
-
@for (
|
|
8459
|
+
@if (collapsed() && mobileOpen()) {
|
|
8460
|
+
<div class="poad-menubar__mobile" [id]="id + '-mobile'" (keydown)="onMobileKey($event)">
|
|
8461
|
+
@for (r of mobileRows(); track r.key) {
|
|
8462
|
+
@if (r.separator) { <div class="poad-menubar__sep"></div> }
|
|
8463
|
+
@else if (r.group) {
|
|
8464
|
+
<button type="button" class="poad-menubar__mitem" [style.padding-inline-start.px]="indent(r.level)" [disabled]="r.item.disabled" [attr.aria-expanded]="r.expanded"
|
|
8465
|
+
(click)="toggleGroup(r.key)">
|
|
8466
|
+
@if (r.item.icon) {<poad-icon [name]="r.item.icon" [size]="15"/>}<span class="poad-menubar__mlabel">{{ r.item.label }}</span>
|
|
8467
|
+
<poad-icon [name]="r.expanded ? 'chevron-up' : 'chevron-down'" [size]="13"/>
|
|
8468
|
+
</button>
|
|
8469
|
+
} @else if (!r.item.disabled && r.item.routerLink) {
|
|
8470
|
+
<a class="poad-menubar__mitem" [class.is-active]="isCurrent(r.item)" [style.padding-inline-start.px]="indent(r.level)" [routerLink]="r.item.routerLink" [queryParams]="r.item.queryParams"
|
|
8471
|
+
routerLinkActive="is-active" (click)="chooseMobile(r.item, $event)"><ng-container *ngTemplateOutlet="mobileInner; context: { $implicit: r.item }"/></a>
|
|
8472
|
+
} @else if (!r.item.disabled && r.item.url) {
|
|
8473
|
+
<a class="poad-menubar__mitem" [class.is-active]="isCurrent(r.item)" [attr.aria-current]="isCurrent(r.item) ? 'page' : null" [style.padding-inline-start.px]="indent(r.level)"
|
|
8474
|
+
[href]="r.item.url" [attr.target]="r.item.target || null" (click)="chooseMobile(r.item, $event)"><ng-container *ngTemplateOutlet="mobileInner; context: { $implicit: r.item }"/></a>
|
|
8475
|
+
} @else {
|
|
8476
|
+
<button type="button" class="poad-menubar__mitem" [style.padding-inline-start.px]="indent(r.level)" [disabled]="r.item.disabled" (click)="chooseMobile(r.item, $event)">
|
|
8477
|
+
<ng-container *ngTemplateOutlet="mobileInner; context: { $implicit: r.item }"/>
|
|
8478
|
+
</button>
|
|
8479
|
+
}
|
|
8480
|
+
}
|
|
8316
8481
|
</div>
|
|
8317
8482
|
}
|
|
8318
|
-
<ng-template #
|
|
8319
|
-
@if (it.
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
@if (hasChildren(it)) {<poad-icon [name]="mExpanded().has(it) ? 'chevron-up' : 'chevron-down'" [size]="13"/>}
|
|
8324
|
-
</button>
|
|
8325
|
-
@if (hasChildren(it) && mExpanded().has(it)) {
|
|
8326
|
-
@for (s of childrenOf(it); track $index) { <ng-container *ngTemplateOutlet="mobileItem; context: { $implicit: s, level: level + 1 }"/> }
|
|
8327
|
-
}
|
|
8328
|
-
}
|
|
8483
|
+
<ng-template #rootInner let-it>
|
|
8484
|
+
@if (it.icon) {<poad-icon [name]="it.icon" [size]="15"/>}<span>{{ it.label }}</span>@if (it.badge != null) {<span class="poad-menubar__badge">{{ it.badge }}</span>}
|
|
8485
|
+
</ng-template>
|
|
8486
|
+
<ng-template #mobileInner let-it>
|
|
8487
|
+
@if (it.icon) {<poad-icon [name]="it.icon" [size]="15"/>}<span class="poad-menubar__mlabel">{{ it.label }}</span>@if (it.badge != null) {<span class="poad-menubar__badge">{{ it.badge }}</span>}
|
|
8329
8488
|
</ng-template>
|
|
8330
|
-
<!--
|
|
8489
|
+
<!-- panneau (overlay du CDK) : liste ou méga-menu -->
|
|
8331
8490
|
<ng-template #panel>
|
|
8332
8491
|
@if (openItem(); as it) {
|
|
8333
|
-
@if (
|
|
8334
|
-
<div class="poad-menubar__mega
|
|
8335
|
-
@for (col of
|
|
8336
|
-
<div class="poad-menubar__col">
|
|
8337
|
-
@if (col.header) {<div class="poad-menubar__colh">{{ col.header }}</div>}
|
|
8338
|
-
@for (
|
|
8339
|
-
<
|
|
8492
|
+
@if (mega()) {
|
|
8493
|
+
<div class="poad-menubar__mega" role="menu" [attr.aria-label]="it.label || null" (keydown)="onPanelKey($event)" (mouseenter)="cancelClose()" (mouseleave)="scheduleClose($event)">
|
|
8494
|
+
@for (col of columns(); track $index) {
|
|
8495
|
+
<div class="poad-menubar__col" role="group" [attr.aria-label]="col.header || null">
|
|
8496
|
+
@if (col.header) {<div class="poad-menubar__colh" aria-hidden="true">{{ col.header }}</div>}
|
|
8497
|
+
@for (c of col.items; track c.index) {
|
|
8498
|
+
<ng-container *ngTemplateOutlet="entry; context: { $implicit: c.item, index: c.index, cls: 'poad-menubar__citem', tabindex: pstate().active === c.index ? 0 : -1 }"/>
|
|
8340
8499
|
}
|
|
8341
8500
|
</div>
|
|
8342
8501
|
}
|
|
8343
8502
|
</div>
|
|
8344
8503
|
} @else {
|
|
8345
|
-
<div
|
|
8504
|
+
<div class="poad-menu poad-menubar__panel" role="menu" [attr.aria-label]="it.label || null" (keydown)="onPanelKey($event)" (mouseenter)="cancelClose()" (mouseleave)="scheduleClose($event)">
|
|
8505
|
+
@for (s of panelItems(); track $index; let j = $index) {
|
|
8506
|
+
@if (s.separator) { <div class="poad-menu__sep" role="separator"></div> }
|
|
8507
|
+
@else {
|
|
8508
|
+
@let b = itemAttrs(s, j);
|
|
8509
|
+
<div class="poad-menu__wrap" (mouseenter)="panelHover(j)">
|
|
8510
|
+
@if (b['aria-haspopup']) {
|
|
8511
|
+
<button type="button" class="poad-menu__item" [class.is-active]="b.classes['is-active']" role="menuitem" aria-haspopup="menu" [attr.aria-expanded]="b['aria-expanded']"
|
|
8512
|
+
[disabled]="b.disabled" [attr.tabindex]="b.tabindex" [attr.data-idx]="j" [attr.title]="s.title || null" (click)="activate(s, $event, j)">
|
|
8513
|
+
@if (s.icon) {<poad-icon [name]="s.icon" [size]="14"/>}<span class="poad-menu__label">{{ s.label }}</span>
|
|
8514
|
+
<poad-icon class="poad-menu__sub-ic" name="chevron-right" [size]="12"/>
|
|
8515
|
+
</button>
|
|
8516
|
+
@if (pstate().sub === j) {
|
|
8517
|
+
<div class="poad-menu poad-menu--sub" role="menu">
|
|
8518
|
+
@for (x of subItems(s); track $index; let k = $index) {
|
|
8519
|
+
@if (x.separator) { <div class="poad-menu__sep" role="separator"></div> }
|
|
8520
|
+
@else { <ng-container *ngTemplateOutlet="entry; context: { $implicit: x, index: k, parent: j, cls: 'poad-menu__item', tabindex: -1 }"/> }
|
|
8521
|
+
}
|
|
8522
|
+
</div>
|
|
8523
|
+
}
|
|
8524
|
+
} @else {
|
|
8525
|
+
<ng-container *ngTemplateOutlet="entry; context: { $implicit: s, index: j, cls: 'poad-menu__item', tabindex: b.tabindex, active: b.classes['is-active'] }"/>
|
|
8526
|
+
}
|
|
8527
|
+
</div>
|
|
8528
|
+
}
|
|
8529
|
+
}
|
|
8530
|
+
</div>
|
|
8346
8531
|
}
|
|
8347
8532
|
}
|
|
8348
8533
|
</ng-template>
|
|
8349
|
-
|
|
8350
|
-
|
|
8534
|
+
<!-- un élément du panneau : lien routé, lien, ou bouton -->
|
|
8535
|
+
<ng-template #entry let-it let-index="index" let-parent="parent" let-cls="cls" let-tabindex="tabindex" let-active="active">
|
|
8536
|
+
@if (!it.disabled && it.routerLink) {
|
|
8537
|
+
<a [class]="cls" [class.is-active]="active" [class.sev-danger]="it.severity === 'danger'" role="menuitem" [routerLink]="it.routerLink" [queryParams]="it.queryParams" [attr.tabindex]="tabindex"
|
|
8538
|
+
[attr.data-idx]="parent == null ? index : null" [attr.data-sub-idx]="parent == null ? null : index" [attr.title]="it.title || null"
|
|
8539
|
+
(mouseenter)="parent == null ? null : subHover(index)" (click)="activate(it, $event, index, parent)"><ng-container *ngTemplateOutlet="entryInner; context: { $implicit: it }"/></a>
|
|
8540
|
+
} @else if (!it.disabled && it.url) {
|
|
8541
|
+
<a [class]="cls" [class.is-active]="active" [class.sev-danger]="it.severity === 'danger'" role="menuitem" [href]="it.url" [attr.target]="it.target || null"
|
|
8542
|
+
[attr.aria-current]="isCurrent(it) ? 'page' : null" [attr.tabindex]="tabindex" [attr.data-idx]="parent == null ? index : null" [attr.data-sub-idx]="parent == null ? null : index"
|
|
8543
|
+
[attr.title]="it.title || null" (mouseenter)="parent == null ? null : subHover(index)" (click)="activate(it, $event, index, parent)"><ng-container *ngTemplateOutlet="entryInner; context: { $implicit: it }"/></a>
|
|
8544
|
+
} @else {
|
|
8545
|
+
<button type="button" [class]="cls" [class.is-active]="active" [class.sev-danger]="it.severity === 'danger'" role="menuitem" [disabled]="it.disabled" [attr.tabindex]="tabindex"
|
|
8546
|
+
[attr.data-idx]="parent == null ? index : null" [attr.data-sub-idx]="parent == null ? null : index" [attr.title]="it.title || null"
|
|
8547
|
+
(mouseenter)="parent == null ? null : subHover(index)" (click)="activate(it, $event, index, parent)"><ng-container *ngTemplateOutlet="entryInner; context: { $implicit: it }"/></button>
|
|
8548
|
+
}
|
|
8549
|
+
</ng-template>
|
|
8550
|
+
<ng-template #entryInner let-it>
|
|
8551
|
+
@if (it.icon) {<poad-icon [name]="it.icon" [size]="14"/>}<span class="poad-menu__label">{{ it.label }}</span>@if (it.badge != null) {<span class="poad-menubar__badge">{{ it.badge }}</span>}
|
|
8552
|
+
</ng-template>
|
|
8553
|
+
`, encapsulation: ViewEncapsulation.None, styles: [".poad-menubar{display:flex;align-items:center;gap:8px;min-height:48px;padding:0 12px;background:var(--poad-surface);border-bottom:1px solid var(--poad-border);font-family:var(--poad-font);font-size:var(--poad-font-size);color:var(--poad-fg);position:relative;box-sizing:border-box}.poad-menubar .poad-menubar__start,.poad-menubar .poad-menubar__end{display:flex;align-items:center;gap:8px}.poad-menubar .poad-menubar__start:empty,.poad-menubar .poad-menubar__end:empty{display:none}.poad-menubar .poad-menubar__end{margin-inline-start:auto}.poad-menubar.is-mobile .poad-menubar__start{flex:1 1 auto}.poad-menubar .poad-menubar__list{display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0;min-width:0}.poad-menubar .poad-menubar__list>li{display:flex}.poad-menubar .poad-menubar__root{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 10px;border-radius:7px;color:var(--poad-fg-secondary);font-weight:500;cursor:pointer;position:relative;white-space:nowrap}.poad-menubar .poad-menubar__root:hover,.poad-menubar .poad-menubar__root.is-open{background:var(--poad-hover);color:var(--poad-fg)}.poad-menubar .poad-menubar__root:focus-visible{outline:2px solid var(--poad-ring);outline-offset:-2px}.poad-menubar .poad-menubar__root.is-active{color:var(--poad-accent)}.poad-menubar .poad-menubar__root.is-active:after{content:\"\";position:absolute;inset-inline-start:10px;inset-inline-end:10px;bottom:-7px;height:2px;border-radius:2px;background:var(--poad-accent)}.poad-menubar .poad-menubar__root.is-disabled{opacity:.5;cursor:default}.poad-menubar .poad-menubar__root.is-disabled:hover{background:none;color:var(--poad-fg-secondary)}.poad-menubar .poad-menubar__chev{color:var(--poad-fg-muted);transition:transform var(--poad-dur)}.poad-menubar .poad-menubar__root.is-open .poad-menubar__chev{transform:rotate(180deg)}.poad-menubar .poad-menubar__badge,.poad-menubar__mega .poad-menubar__badge{font:500 10.5px var(--poad-font-mono);padding:1px 6px;border-radius:999px;background:var(--poad-accent-soft);color:var(--poad-accent)}.poad-menubar .poad-menubar__burger{all:unset;box-sizing:border-box;display:grid;place-items:center;width:36px;height:36px;border-radius:8px;color:var(--poad-fg-secondary);cursor:pointer}.poad-menubar .poad-menubar__burger:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-menubar .poad-menubar__burger:focus-visible{outline:2px solid var(--poad-ring);outline-offset:-2px}.poad-menubar .poad-menubar__mobile{position:absolute;inset-inline-start:0;inset-inline-end:0;top:100%;z-index:20;background:var(--poad-surface);border-bottom:1px solid var(--poad-border);box-shadow:var(--poad-shadow-lg);padding:6px 0;max-height:70vh;overflow:auto}.poad-menubar .poad-menubar__mitem{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding-inline-end:12px;color:var(--poad-fg);cursor:pointer}.poad-menubar .poad-menubar__mitem:hover{background:var(--poad-hover)}.poad-menubar .poad-menubar__mitem:focus-visible{outline:2px solid var(--poad-ring);outline-offset:-2px}.poad-menubar .poad-menubar__mitem.is-active{color:var(--poad-accent);font-weight:500}.poad-menubar .poad-menubar__mitem[disabled],.poad-menubar .poad-menubar__mitem[aria-disabled=true]{opacity:.5;cursor:default}.poad-menubar .poad-menubar__mlabel{flex:1}.poad-menubar .poad-menubar__sep{height:1px;background:var(--poad-border);margin:4px 12px}.poad-menu.poad-menubar__panel{min-width:200px}.poad-menu.poad-menubar__panel a.poad-menu__item{color:inherit;text-decoration:none}.poad-menubar__mega[role=menu]{display:flex;gap:22px;padding:14px 16px;background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:10px;box-shadow:var(--poad-shadow-lg);font-family:var(--poad-font);font-size:var(--poad-font-size);color:var(--poad-fg);box-sizing:border-box}.poad-menubar__mega .poad-menubar__col{display:flex;flex-direction:column;gap:2px;min-width:160px}.poad-menubar__mega .poad-menubar__colh{font:600 10.5px/1 var(--poad-font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--poad-fg-muted);padding:4px 8px 8px}.poad-menubar__mega .poad-menubar__citem{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:6px;color:var(--poad-fg);cursor:pointer;font-size:var(--poad-font-size)}.poad-menubar__mega .poad-menubar__citem:hover:not([disabled]){background:var(--poad-hover)}.poad-menubar__mega .poad-menubar__citem:focus-visible{outline:2px solid var(--poad-ring);outline-offset:-2px}.poad-menubar__mega .poad-menubar__citem[disabled]{opacity:.5;cursor:not-allowed}\n", ".poad-menu-host{display:contents}.poad-menu-host.is-inline{display:block}.poad-menu[role=menu]{background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:9px;box-shadow:var(--poad-shadow-lg);padding:4px;min-width:180px;font-family:var(--poad-font);font-size:var(--poad-font-size);color:var(--poad-fg);box-sizing:border-box}.poad-menu-host.is-inline>.poad-menu{box-shadow:none}.poad-menu .poad-menu__wrap{position:relative}.poad-menu .poad-menu__item{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border-radius:6px;cursor:pointer;white-space:nowrap}.poad-menu .poad-menu__item:hover:not([disabled]),.poad-menu .poad-menu__item.is-active:not([disabled]){background:var(--poad-hover)}.poad-menu .poad-menu__item:focus-visible{outline:2px solid var(--poad-ring);outline-offset:-2px}.poad-menu .poad-menu__item[disabled]{opacity:.5;cursor:not-allowed}.poad-menu .poad-menu__item.sev-danger{color:var(--poad-danger)}.poad-menu .poad-menu__item.sev-danger:hover:not([disabled]){background:var(--poad-danger-soft)}.poad-menu .poad-menu__ph{width:14px;flex:none}.poad-menu .poad-menu__label{flex:1}.poad-menu .poad-menu__kbd{font:11px var(--poad-font-mono);color:var(--poad-fg-muted);margin-inline-start:16px}.poad-menu .poad-menu__badge{font:500 10.5px var(--poad-font-mono);padding:1px 6px;border-radius:999px;background:var(--poad-accent-soft);color:var(--poad-accent)}.poad-menu .poad-menu__sub-ic{color:var(--poad-fg-muted);margin-inline-start:8px}.poad-menu .poad-menu__sep{height:1px;background:var(--poad-border);margin:4px 6px}.poad-menu .poad-menu--sub{position:absolute;top:-5px;inset-inline-start:calc(100% + 2px);z-index:1}.poad-split-button{display:inline-flex;align-items:stretch;vertical-align:middle}.poad-split-button .poad-split-button__main{border-start-end-radius:0!important;border-end-end-radius:0!important}.poad-split-button .poad-split-button__toggle{border-start-start-radius:0!important;border-end-start-radius:0!important;margin-inline-start:-1px;box-shadow:inset 1px 0 #ffffff47}.poad-split-button .var-outline.poad-split-button__toggle,.poad-split-button .var-text.poad-split-button__toggle{box-shadow:none;border-inline-start-color:transparent}\n"] }]
|
|
8554
|
+
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], openOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "openOnHover", required: false }] }], current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], panelTpl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }] } });
|
|
8351
8555
|
|
|
8352
8556
|
/**
|
|
8353
8557
|
* <poad-split-button label="Enregistrer" icon="save" [items]="[{label:'Enregistrer et fermer'},…]" (clicked)="save()" (itemClick)="…"/>
|
|
@@ -8564,7 +8768,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
8564
8768
|
* ACCESSIBILITÉ — la destination courante est marquée par une pastille pleine EN PLUS de la
|
|
8565
8769
|
* couleur : la couleur seule disparaît pour une personne daltonienne. Les cibles font 44 px de
|
|
8566
8770
|
* haut au minimum, et la barre réserve la zone sûre des téléphones à encoche
|
|
8567
|
-
* (`env(safe-area-inset-bottom)`), sans quoi la dernière rangée
|
|
8771
|
+
* (`env(safe-area-inset-bottom)`, ou `--poad-safe-bottom` si le contexte la déclare), sans quoi la dernière rangée
|
|
8772
|
+
* passe sous la barre d'accueil.
|
|
8773
|
+
*
|
|
8774
|
+
* Décisions (plafond, visibilité, libellés, pastille de comptage, attributs, choix) : module `bottom-nav` de
|
|
8775
|
+
* @poadio/ui-core ; style partagé : `@poadio/ui-core/bottom-nav.css` (encapsulation désactivée).
|
|
8568
8776
|
* @atelier icone=panel-bottom
|
|
8569
8777
|
* @atelier-exemple items [{"value":"carte","label":"Carte","icon":"map"},{"value":"releves","label":"Relevés","icon":"clipboard-list"},{"value":"alertes","label":"Alertes","icon":"bell"},{"value":"profil","label":"Profil","icon":"user-round"}]
|
|
8570
8778
|
* @atelier-exemple value "carte"
|
|
@@ -8572,48 +8780,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
8572
8780
|
class PoadBottomNavComponent {
|
|
8573
8781
|
i18n = inject(UiI18n);
|
|
8574
8782
|
bp = inject(PoadBreakpointService);
|
|
8783
|
+
/** Les destinations (3 à 5). */
|
|
8575
8784
|
items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
8576
8785
|
/** Destination courante. Bidirectionnel. */
|
|
8577
8786
|
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
8578
|
-
/** Quand afficher le libellé sous l'icône. */
|
|
8787
|
+
/** Quand afficher le libellé sous l'icône : toujours, sur la destination courante, jamais. */
|
|
8579
8788
|
labels = input('always', ...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
|
|
8580
8789
|
/**
|
|
8581
8790
|
* Au-delà, les destinations en trop ne sont PAS affichées : cinq est la limite tenable
|
|
8582
8791
|
* en largeur, et tronquer silencieusement vaut mieux que rendre la barre illisible.
|
|
8583
8792
|
* Prévoir une destination « Plus » qui ouvre le reste en feuille.
|
|
8584
8793
|
*/
|
|
8585
|
-
maxItems = input(
|
|
8794
|
+
maxItems = input(BOTTOM_NAV_MAX, { ...(ngDevMode ? { debugName: "maxItems" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
8586
8795
|
/** Seuil au-delà duquel la barre disparaît : elle n'a de sens que sur petit écran. */
|
|
8587
8796
|
breakpoint = input('md', ...(ngDevMode ? [{ debugName: "breakpoint" }] : /* istanbul ignore next */ []));
|
|
8588
8797
|
/** Force l'affichage quel que soit le seuil — utile en démonstration. */
|
|
8589
8798
|
alwaysShow = input(false, { ...(ngDevMode ? { debugName: "alwaysShow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
8590
8799
|
/** Nom accessible ; par défaut le message `nav.mainNavigation` du catalogue. */
|
|
8591
8800
|
ariaLabel = input(...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
8801
|
+
/** La destination courante change (la nouvelle destination). */
|
|
8592
8802
|
changed = output();
|
|
8803
|
+
/** Une destination est choisie, même déjà courante ; pas une destination désactivée. */
|
|
8593
8804
|
itemClick = output();
|
|
8594
8805
|
/** Les entrées au-delà de `maxItems` sont écartées, jamais compressées. */
|
|
8595
|
-
shown = computed(() => this.items()
|
|
8596
|
-
|
|
8806
|
+
shown = computed(() => bottomNavShown(this.items(), this.maxItems()), ...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
|
|
8807
|
+
/** La barre est rendue (sous `breakpoint`, ou `alwaysShow`). */
|
|
8808
|
+
visible = computed(() => bottomNavVisible(this.bp.state().current, this.breakpoint(), this.alwaysShow()), ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
8809
|
+
/** La destination est la destination courante. */
|
|
8597
8810
|
isActive(it) {
|
|
8598
8811
|
return this.value() === it.value;
|
|
8599
8812
|
}
|
|
8813
|
+
/** Le libellé de la destination est affiché. */
|
|
8600
8814
|
showLabel(it) {
|
|
8601
|
-
|
|
8602
|
-
return mode === 'always' || (mode === 'selected' && this.isActive(it));
|
|
8815
|
+
return bottomNavShowLabel(this.labels(), this.isActive(it));
|
|
8603
8816
|
}
|
|
8604
8817
|
/** « 99+ » plutôt qu'un nombre qui ferait déborder la pastille. */
|
|
8605
8818
|
cap(badge) {
|
|
8606
|
-
|
|
8607
|
-
return badge > 99 ? '99+' : String(badge);
|
|
8608
|
-
return String(badge);
|
|
8819
|
+
return bottomNavBadge(badge).text;
|
|
8609
8820
|
}
|
|
8821
|
+
/** @internal */
|
|
8822
|
+
attrs(it) { return bottomNavItemProps(it, this.isActive(it)); }
|
|
8823
|
+
/** @internal */
|
|
8824
|
+
badge(it) { return bottomNavBadge(it.badge); }
|
|
8825
|
+
/** @internal */
|
|
8826
|
+
icon(it) { return bottomNavIcon(it, this.isActive(it)); }
|
|
8827
|
+
/** Choisit une destination (clic) : `itemClick`, puis la valeur change si elle est nouvelle. */
|
|
8610
8828
|
pick(it, ev) {
|
|
8611
|
-
|
|
8829
|
+
const action = bottomNavPick(this.value(), it);
|
|
8830
|
+
if (action === 'none') {
|
|
8612
8831
|
ev.preventDefault();
|
|
8613
8832
|
return;
|
|
8614
8833
|
}
|
|
8615
8834
|
this.itemClick.emit({ item: it, originalEvent: ev });
|
|
8616
|
-
if (
|
|
8835
|
+
if (action === 'click')
|
|
8617
8836
|
return;
|
|
8618
8837
|
this.value.set(it.value);
|
|
8619
8838
|
this.changed.emit(it);
|
|
@@ -8623,38 +8842,21 @@ class PoadBottomNavComponent {
|
|
|
8623
8842
|
@if (visible()) {
|
|
8624
8843
|
<ul class="poad-bottom-nav__list" role="list">
|
|
8625
8844
|
@for (it of shown(); track it.value) {
|
|
8845
|
+
@let a = attrs(it);
|
|
8626
8846
|
<li>
|
|
8627
|
-
@if (it.routerLink) {
|
|
8628
|
-
<a
|
|
8629
|
-
|
|
8630
|
-
[class.is-active]="isActive(it)"
|
|
8631
|
-
[class.is-disabled]="it.disabled"
|
|
8632
|
-
[routerLink]="it.routerLink"
|
|
8633
|
-
[queryParams]="it.queryParams"
|
|
8634
|
-
routerLinkActive="is-route-active"
|
|
8635
|
-
[attr.aria-current]="isActive(it) ? 'page' : null"
|
|
8636
|
-
[attr.aria-disabled]="it.disabled || null"
|
|
8637
|
-
[attr.aria-label]="it.ariaLabel || null"
|
|
8638
|
-
(click)="pick(it, $event)"
|
|
8639
|
-
>
|
|
8847
|
+
@if (it.routerLink && !it.disabled) {
|
|
8848
|
+
<a class="poad-bottom-nav__item" [class.is-active]="a.classes['is-active']" [routerLink]="it.routerLink" [queryParams]="it.queryParams" routerLinkActive="is-route-active"
|
|
8849
|
+
[attr.aria-current]="a['aria-current']" [attr.aria-label]="a['aria-label']" (click)="pick(it, $event)">
|
|
8640
8850
|
<ng-container *ngTemplateOutlet="body; context: { $implicit: it }"/>
|
|
8641
8851
|
</a>
|
|
8642
|
-
} @else if (it.url) {
|
|
8643
|
-
<a class="poad-bottom-nav__item" [class.is-active]="
|
|
8644
|
-
|
|
8645
|
-
(click)="pick(it, $event)">
|
|
8852
|
+
} @else if (it.url && !it.disabled) {
|
|
8853
|
+
<a class="poad-bottom-nav__item" [class.is-active]="a.classes['is-active']" [href]="it.url" [attr.aria-current]="a['aria-current']" [attr.aria-label]="a['aria-label']"
|
|
8854
|
+
(click)="pick(it, $event)">
|
|
8646
8855
|
<ng-container *ngTemplateOutlet="body; context: { $implicit: it }"/>
|
|
8647
8856
|
</a>
|
|
8648
8857
|
} @else {
|
|
8649
|
-
<button
|
|
8650
|
-
|
|
8651
|
-
class="poad-bottom-nav__item"
|
|
8652
|
-
[class.is-active]="isActive(it)"
|
|
8653
|
-
[disabled]="it.disabled"
|
|
8654
|
-
[attr.aria-current]="isActive(it) ? 'page' : null"
|
|
8655
|
-
[attr.aria-label]="it.ariaLabel || null"
|
|
8656
|
-
(click)="pick(it, $event)"
|
|
8657
|
-
>
|
|
8858
|
+
<button type="button" class="poad-bottom-nav__item" [class.is-active]="a.classes['is-active']" [class.is-disabled]="a.classes['is-disabled']" [disabled]="it.disabled"
|
|
8859
|
+
[attr.aria-current]="a['aria-current']" [attr.aria-label]="a['aria-label']" (click)="pick(it, $event)">
|
|
8658
8860
|
<ng-container *ngTemplateOutlet="body; context: { $implicit: it }"/>
|
|
8659
8861
|
</button>
|
|
8660
8862
|
}
|
|
@@ -8664,19 +8866,16 @@ class PoadBottomNavComponent {
|
|
|
8664
8866
|
}
|
|
8665
8867
|
|
|
8666
8868
|
<ng-template #body let-it>
|
|
8869
|
+
@let b = badge(it);
|
|
8667
8870
|
<span class="poad-bottom-nav__icon">
|
|
8668
8871
|
<!-- La pastille est un élément à part : c'est elle qui porte l'état actif, pas la couleur. -->
|
|
8669
8872
|
<span class="poad-bottom-nav__pill" aria-hidden="true"></span>
|
|
8670
|
-
<poad-icon [name]="(
|
|
8671
|
-
@if (
|
|
8672
|
-
<span class="poad-bottom-nav__badge" [class.is-dot]="it.badge === true">
|
|
8673
|
-
@if (it.badge !== true) {{{ cap(it.badge) }}}
|
|
8674
|
-
</span>
|
|
8675
|
-
}
|
|
8873
|
+
<poad-icon [name]="icon(it)" [size]="22"/>
|
|
8874
|
+
@if (b.show) {<span class="poad-bottom-nav__badge" [class.is-dot]="b.dot">{{ b.text }}</span>}
|
|
8676
8875
|
</span>
|
|
8677
8876
|
@if (showLabel(it)) {<span class="poad-bottom-nav__label">{{ it.label }}</span>}
|
|
8678
8877
|
</ng-template>
|
|
8679
|
-
`, isInline: true, styles: ["
|
|
8878
|
+
`, isInline: true, styles: [".poad-bottom-nav{display:block;position:sticky;bottom:0;z-index:20;background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border-top:1px solid var(--poad-border);padding-bottom:var(--poad-safe-bottom, env(safe-area-inset-bottom, 0px))}.poad-bottom-nav.is-hidden{display:none}.poad-bottom-nav .poad-bottom-nav__list{display:flex;margin:0;padding:4px 4px 2px;list-style:none}.poad-bottom-nav .poad-bottom-nav__list>li{flex:1;min-width:0;display:flex}.poad-bottom-nav .poad-bottom-nav__item{all:unset;box-sizing:border-box;flex:1;min-width:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:44px;padding:5px 2px 6px;color:var(--poad-fg-muted);font:10px var(--poad-font);text-align:center;text-decoration:none;border-radius:var(--poad-radius);position:relative}.poad-bottom-nav .poad-bottom-nav__item:hover{color:var(--poad-fg-secondary)}.poad-bottom-nav .poad-bottom-nav__list .poad-bottom-nav__item:focus-visible{outline:2px solid var(--poad-accent);outline-offset:-2px}.poad-bottom-nav .poad-bottom-nav__item.is-active{color:var(--poad-accent)}.poad-bottom-nav .poad-bottom-nav__item.is-disabled,.poad-bottom-nav .poad-bottom-nav__item:disabled{opacity:.45;cursor:not-allowed}.poad-bottom-nav .poad-bottom-nav__icon{position:relative;display:grid;place-items:center;width:100%;height:26px}.poad-bottom-nav .poad-bottom-nav__pill{position:absolute;width:38px;height:26px;border-radius:var(--poad-radius-pill);background:transparent;transition:background var(--poad-dur) var(--poad-ease)}.poad-bottom-nav .poad-bottom-nav__item.is-active .poad-bottom-nav__pill{background:var(--poad-accent-soft)}.poad-bottom-nav .poad-bottom-nav__icon>:not(.poad-bottom-nav__pill):not(.poad-bottom-nav__badge){position:relative;z-index:1}.poad-bottom-nav .poad-bottom-nav__label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.3;position:relative;z-index:1}.poad-bottom-nav .poad-bottom-nav__item.is-active .poad-bottom-nav__label{font-weight:500}.poad-bottom-nav .poad-bottom-nav__badge{position:absolute;top:-2px;left:50%;margin-inline-start:6px;z-index:2;min-width:15px;height:15px;padding:0 4px;border-radius:var(--poad-radius-pill);background:var(--poad-danger, #f85149);color:#fff;font-size:9px;font-weight:600;line-height:15px;text-align:center;border:2px solid var(--poad-overlay);box-sizing:content-box}.poad-bottom-nav .poad-bottom-nav__badge.is-dot{min-width:8px;height:8px;padding:0;margin-inline-start:8px}.poad-touch .poad-bottom-nav .poad-bottom-nav__item{min-height:52px}@media(prefers-reduced-motion:reduce){.poad-bottom-nav .poad-bottom-nav__pill{transition:none}}\n"], dependencies: [{ kind: "component", type: PoadIconComponent, selector: "poad-icon", inputs: ["name", "size", "strokeWidth", "label", "title", "spin", "filled", "flip", "rotate"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
8680
8879
|
}
|
|
8681
8880
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadBottomNavComponent, decorators: [{
|
|
8682
8881
|
type: Component,
|
|
@@ -8689,38 +8888,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
8689
8888
|
@if (visible()) {
|
|
8690
8889
|
<ul class="poad-bottom-nav__list" role="list">
|
|
8691
8890
|
@for (it of shown(); track it.value) {
|
|
8891
|
+
@let a = attrs(it);
|
|
8692
8892
|
<li>
|
|
8693
|
-
@if (it.routerLink) {
|
|
8694
|
-
<a
|
|
8695
|
-
|
|
8696
|
-
[class.is-active]="isActive(it)"
|
|
8697
|
-
[class.is-disabled]="it.disabled"
|
|
8698
|
-
[routerLink]="it.routerLink"
|
|
8699
|
-
[queryParams]="it.queryParams"
|
|
8700
|
-
routerLinkActive="is-route-active"
|
|
8701
|
-
[attr.aria-current]="isActive(it) ? 'page' : null"
|
|
8702
|
-
[attr.aria-disabled]="it.disabled || null"
|
|
8703
|
-
[attr.aria-label]="it.ariaLabel || null"
|
|
8704
|
-
(click)="pick(it, $event)"
|
|
8705
|
-
>
|
|
8893
|
+
@if (it.routerLink && !it.disabled) {
|
|
8894
|
+
<a class="poad-bottom-nav__item" [class.is-active]="a.classes['is-active']" [routerLink]="it.routerLink" [queryParams]="it.queryParams" routerLinkActive="is-route-active"
|
|
8895
|
+
[attr.aria-current]="a['aria-current']" [attr.aria-label]="a['aria-label']" (click)="pick(it, $event)">
|
|
8706
8896
|
<ng-container *ngTemplateOutlet="body; context: { $implicit: it }"/>
|
|
8707
8897
|
</a>
|
|
8708
|
-
} @else if (it.url) {
|
|
8709
|
-
<a class="poad-bottom-nav__item" [class.is-active]="
|
|
8710
|
-
|
|
8711
|
-
(click)="pick(it, $event)">
|
|
8898
|
+
} @else if (it.url && !it.disabled) {
|
|
8899
|
+
<a class="poad-bottom-nav__item" [class.is-active]="a.classes['is-active']" [href]="it.url" [attr.aria-current]="a['aria-current']" [attr.aria-label]="a['aria-label']"
|
|
8900
|
+
(click)="pick(it, $event)">
|
|
8712
8901
|
<ng-container *ngTemplateOutlet="body; context: { $implicit: it }"/>
|
|
8713
8902
|
</a>
|
|
8714
8903
|
} @else {
|
|
8715
|
-
<button
|
|
8716
|
-
|
|
8717
|
-
class="poad-bottom-nav__item"
|
|
8718
|
-
[class.is-active]="isActive(it)"
|
|
8719
|
-
[disabled]="it.disabled"
|
|
8720
|
-
[attr.aria-current]="isActive(it) ? 'page' : null"
|
|
8721
|
-
[attr.aria-label]="it.ariaLabel || null"
|
|
8722
|
-
(click)="pick(it, $event)"
|
|
8723
|
-
>
|
|
8904
|
+
<button type="button" class="poad-bottom-nav__item" [class.is-active]="a.classes['is-active']" [class.is-disabled]="a.classes['is-disabled']" [disabled]="it.disabled"
|
|
8905
|
+
[attr.aria-current]="a['aria-current']" [attr.aria-label]="a['aria-label']" (click)="pick(it, $event)">
|
|
8724
8906
|
<ng-container *ngTemplateOutlet="body; context: { $implicit: it }"/>
|
|
8725
8907
|
</button>
|
|
8726
8908
|
}
|
|
@@ -8730,19 +8912,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
8730
8912
|
}
|
|
8731
8913
|
|
|
8732
8914
|
<ng-template #body let-it>
|
|
8915
|
+
@let b = badge(it);
|
|
8733
8916
|
<span class="poad-bottom-nav__icon">
|
|
8734
8917
|
<!-- La pastille est un élément à part : c'est elle qui porte l'état actif, pas la couleur. -->
|
|
8735
8918
|
<span class="poad-bottom-nav__pill" aria-hidden="true"></span>
|
|
8736
|
-
<poad-icon [name]="(
|
|
8737
|
-
@if (
|
|
8738
|
-
<span class="poad-bottom-nav__badge" [class.is-dot]="it.badge === true">
|
|
8739
|
-
@if (it.badge !== true) {{{ cap(it.badge) }}}
|
|
8740
|
-
</span>
|
|
8741
|
-
}
|
|
8919
|
+
<poad-icon [name]="icon(it)" [size]="22"/>
|
|
8920
|
+
@if (b.show) {<span class="poad-bottom-nav__badge" [class.is-dot]="b.dot">{{ b.text }}</span>}
|
|
8742
8921
|
</span>
|
|
8743
8922
|
@if (showLabel(it)) {<span class="poad-bottom-nav__label">{{ it.label }}</span>}
|
|
8744
8923
|
</ng-template>
|
|
8745
|
-
`, styles: ["
|
|
8924
|
+
`, encapsulation: ViewEncapsulation.None, styles: [".poad-bottom-nav{display:block;position:sticky;bottom:0;z-index:20;background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border-top:1px solid var(--poad-border);padding-bottom:var(--poad-safe-bottom, env(safe-area-inset-bottom, 0px))}.poad-bottom-nav.is-hidden{display:none}.poad-bottom-nav .poad-bottom-nav__list{display:flex;margin:0;padding:4px 4px 2px;list-style:none}.poad-bottom-nav .poad-bottom-nav__list>li{flex:1;min-width:0;display:flex}.poad-bottom-nav .poad-bottom-nav__item{all:unset;box-sizing:border-box;flex:1;min-width:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:44px;padding:5px 2px 6px;color:var(--poad-fg-muted);font:10px var(--poad-font);text-align:center;text-decoration:none;border-radius:var(--poad-radius);position:relative}.poad-bottom-nav .poad-bottom-nav__item:hover{color:var(--poad-fg-secondary)}.poad-bottom-nav .poad-bottom-nav__list .poad-bottom-nav__item:focus-visible{outline:2px solid var(--poad-accent);outline-offset:-2px}.poad-bottom-nav .poad-bottom-nav__item.is-active{color:var(--poad-accent)}.poad-bottom-nav .poad-bottom-nav__item.is-disabled,.poad-bottom-nav .poad-bottom-nav__item:disabled{opacity:.45;cursor:not-allowed}.poad-bottom-nav .poad-bottom-nav__icon{position:relative;display:grid;place-items:center;width:100%;height:26px}.poad-bottom-nav .poad-bottom-nav__pill{position:absolute;width:38px;height:26px;border-radius:var(--poad-radius-pill);background:transparent;transition:background var(--poad-dur) var(--poad-ease)}.poad-bottom-nav .poad-bottom-nav__item.is-active .poad-bottom-nav__pill{background:var(--poad-accent-soft)}.poad-bottom-nav .poad-bottom-nav__icon>:not(.poad-bottom-nav__pill):not(.poad-bottom-nav__badge){position:relative;z-index:1}.poad-bottom-nav .poad-bottom-nav__label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.3;position:relative;z-index:1}.poad-bottom-nav .poad-bottom-nav__item.is-active .poad-bottom-nav__label{font-weight:500}.poad-bottom-nav .poad-bottom-nav__badge{position:absolute;top:-2px;left:50%;margin-inline-start:6px;z-index:2;min-width:15px;height:15px;padding:0 4px;border-radius:var(--poad-radius-pill);background:var(--poad-danger, #f85149);color:#fff;font-size:9px;font-weight:600;line-height:15px;text-align:center;border:2px solid var(--poad-overlay);box-sizing:content-box}.poad-bottom-nav .poad-bottom-nav__badge.is-dot{min-width:8px;height:8px;padding:0;margin-inline-start:8px}.poad-touch .poad-bottom-nav .poad-bottom-nav__item{min-height:52px}@media(prefers-reduced-motion:reduce){.poad-bottom-nav .poad-bottom-nav__pill{transition:none}}\n"] }]
|
|
8746
8925
|
}], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], maxItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxItems", required: false }] }], breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], alwaysShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "alwaysShow", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], changed: [{ type: i0.Output, args: ["changed"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }] } });
|
|
8747
8926
|
|
|
8748
8927
|
/**
|
|
@@ -8759,6 +8938,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
8759
8938
|
type: Directive,
|
|
8760
8939
|
args: [{ selector: '[poadNavDrawerHeader]', standalone: true }]
|
|
8761
8940
|
}] });
|
|
8941
|
+
/** Pied du tiroir (compte, déconnexion…) : marqueur de slot, sur n'importe quel élément. */
|
|
8762
8942
|
class PoadNavDrawerFooterDirective {
|
|
8763
8943
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadNavDrawerFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8764
8944
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.20", type: PoadNavDrawerFooterDirective, isStandalone: true, selector: "[poadNavDrawerFooter]", ngImport: i0 });
|
|
@@ -8772,8 +8952,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
8772
8952
|
*
|
|
8773
8953
|
* Menu principal de l'application : UN composant pour les trois états, pas deux à tenir en
|
|
8774
8954
|
* parallèle. En `auto` (défaut) il est permanent en colonne au-dessus du seuil, et bascule
|
|
8775
|
-
* en tiroir par-dessus le contenu en dessous, ouvert au hamburger
|
|
8776
|
-
* icônes, le libellé passant en `title`.
|
|
8955
|
+
* en tiroir par-dessus le contenu en dessous, ouvert au hamburger ; `railBelow` intercale un
|
|
8956
|
+
* rail entre les deux. `rail` n'affiche que les icônes, le libellé passant en `title`.
|
|
8957
|
+
*
|
|
8958
|
+
* En mode tiroir ouvert, le panneau est une boîte de dialogue modale : voile, focus posé sur la
|
|
8959
|
+
* destination courante (sinon la première entrée) et piégé dedans, Échap ou le voile referment,
|
|
8960
|
+
* et le focus revient à l'élément qui l'avait (le bouton « menu »). Clavier dans la liste :
|
|
8961
|
+
* ↓ ↑ Début Fin entre les entrées, → ← déplient et replient un intertitre repliable.
|
|
8777
8962
|
*
|
|
8778
8963
|
* POURQUOI PAS `poad-drawer` — celui-ci est un panneau générique : il ne connaît ni items, ni
|
|
8779
8964
|
* route active, ni sections, et surtout il est toujours temporaire. Le mode permanent n'est
|
|
@@ -8782,6 +8967,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
8782
8967
|
*
|
|
8783
8968
|
* LA LISTE EST DISTINCTE DE CELLE DE `poad-bottom-nav`, volontairement — voir la note qui s'y
|
|
8784
8969
|
* trouve : on ne met pas en avant les mêmes destinations au pouce que dans un menu complet.
|
|
8970
|
+
*
|
|
8971
|
+
* Décisions (mode effectif, lignes et repli, destination courante, attributs, clavier, choix,
|
|
8972
|
+
* fermeture) : module `nav-drawer` de @poadio/ui-core ; style partagé :
|
|
8973
|
+
* `@poadio/ui-core/nav-drawer.css` (encapsulation désactivée).
|
|
8974
|
+
* @slot [poadNavDrawerHeader] Contenu de l'en-tête (logo…) ; sans lui : `icon` et `title`.
|
|
8975
|
+
* @slot [poadNavDrawerFooter] Pied du tiroir (compte, déconnexion…).
|
|
8785
8976
|
* @atelier icone=sidebar-open
|
|
8786
8977
|
* @atelier-exemple items [{"value":"tableau","label":"Tableau de bord","icon":"layout-dashboard"},{"value":"ouvrages","label":"Ouvrages","icon":"building-2"},{"value":"releves","label":"Relevés","icon":"clipboard-list"},{"value":"parametres","label":"Paramètres","icon":"settings-2"}]
|
|
8787
8978
|
* @atelier-exemple value "tableau"
|
|
@@ -8789,11 +8980,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
8789
8980
|
class PoadNavDrawerComponent {
|
|
8790
8981
|
i18n = inject(UiI18n);
|
|
8791
8982
|
bp = inject(PoadBreakpointService);
|
|
8983
|
+
host = inject(ElementRef);
|
|
8984
|
+
injector = inject(Injector);
|
|
8985
|
+
cdr = inject(ChangeDetectorRef);
|
|
8986
|
+
panel = viewChild.required('panel');
|
|
8987
|
+
/** Les entrées : liens, boutons, intertitres (`section`), intertitres repliables (`collapsible`). */
|
|
8792
8988
|
items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
8793
8989
|
/** Ouverture du tiroir. Sans effet en mode permanent, où le panneau est toujours là. */
|
|
8794
8990
|
open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
8795
8991
|
/** Entrée courante, comparée à `item.value`. */
|
|
8796
8992
|
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
8993
|
+
/** Adresse de la page courante : l'entrée dont `url` est égale est marquée (`aria-current="page"`). */
|
|
8994
|
+
current = input(null, ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
|
|
8797
8995
|
/**
|
|
8798
8996
|
* Clés des intertitres repliés (`item.value`, à défaut `item.label`).
|
|
8799
8997
|
*
|
|
@@ -8803,80 +9001,74 @@ class PoadNavDrawerComponent {
|
|
|
8803
9001
|
* ni s'il a le droit.
|
|
8804
9002
|
*/
|
|
8805
9003
|
collapsed = model([], ...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
|
|
9004
|
+
/** `auto` (au point de rupture de la fenêtre), `permanent`, `temporary` (tiroir modal), `rail` (icônes). */
|
|
8806
9005
|
mode = input('auto', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
8807
9006
|
/** Seuil de bascule permanent → tiroir, en mode `auto`. */
|
|
8808
9007
|
breakpoint = input('md', ...(ngDevMode ? [{ debugName: "breakpoint" }] : /* istanbul ignore next */ []));
|
|
9008
|
+
/** En mode `auto`, sous ce seuil (et au-dessus de `breakpoint`) le tiroir devient un rail ; `''` : jamais. */
|
|
9009
|
+
railBelow = input('', ...(ngDevMode ? [{ debugName: "railBelow" }] : /* istanbul ignore next */ []));
|
|
9010
|
+
/** Côté de l'écran. */
|
|
8809
9011
|
position = input('left', ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
9012
|
+
/** Titre de l'en-tête par défaut (sans `poadNavDrawerHeader`). */
|
|
8810
9013
|
title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
9014
|
+
/** Icône de l'en-tête par défaut. */
|
|
8811
9015
|
icon = input('', ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
8812
9016
|
/** Nom accessible ; par défaut le message `nav.mainMenu` du catalogue. */
|
|
8813
9017
|
ariaLabel = input(...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
8814
9018
|
/** Referme le tiroir après un clic sur une entrée. Sans objet en permanent. */
|
|
8815
9019
|
closeOnNavigate = input(true, { ...(ngDevMode ? { debugName: "closeOnNavigate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
9020
|
+
/** Échap referme le tiroir. */
|
|
8816
9021
|
closeOnEscape = input(true, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
8817
9022
|
/** Clic sur le voile. */
|
|
8818
9023
|
dismissableScrim = input(true, { ...(ngDevMode ? { debugName: "dismissableScrim" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
9024
|
+
/** Le tiroir (mode tiroir) s'est ouvert. */
|
|
8819
9025
|
opened = output();
|
|
9026
|
+
/** Le tiroir (mode tiroir) s'est fermé. */
|
|
8820
9027
|
closed = output();
|
|
9028
|
+
/** Une entrée est choisie (pas une entrée désactivée), même déjà courante. */
|
|
8821
9029
|
itemClick = output();
|
|
9030
|
+
/** La destination courante change (la nouvelle entrée). */
|
|
8822
9031
|
changed = output();
|
|
8823
9032
|
/** Présence des slots : sert à décider du repli sur l'en-tête par défaut et du cadre du pied. */
|
|
8824
9033
|
headerSlot = contentChild(PoadNavDrawerHeaderDirective, ...(ngDevMode ? [{ debugName: "headerSlot" }] : /* istanbul ignore next */ []));
|
|
9034
|
+
/** Présence du pied. */
|
|
8825
9035
|
footerSlot = contentChild(PoadNavDrawerFooterDirective, ...(ngDevMode ? [{ debugName: "footerSlot" }] : /* istanbul ignore next */ []));
|
|
8826
|
-
/** Mode effectif : `auto` se résout au
|
|
8827
|
-
effective = computed(() => {
|
|
8828
|
-
|
|
8829
|
-
if (m !== 'auto')
|
|
8830
|
-
return m;
|
|
8831
|
-
return this.bp.down(this.breakpoint()) ? 'temporary' : 'permanent';
|
|
8832
|
-
}, ...(ngDevMode ? [{ debugName: "effective" }] : /* istanbul ignore next */ []));
|
|
9036
|
+
/** Mode effectif : `auto` se résout au point de rupture, les autres sont imposés. */
|
|
9037
|
+
effective = computed(() => navDrawerMode(this.mode(), this.bp.state().current, this.breakpoint(), this.railBelow()), ...(ngDevMode ? [{ debugName: "effective" }] : /* istanbul ignore next */ []));
|
|
9038
|
+
/** Mode tiroir (par-dessus le contenu). */
|
|
8833
9039
|
temporary = computed(() => this.effective() === 'temporary', ...(ngDevMode ? [{ debugName: "temporary" }] : /* istanbul ignore next */ []));
|
|
9040
|
+
/** Mode rail (icônes seules). */
|
|
8834
9041
|
rail = computed(() => this.effective() === 'rail', ...(ngDevMode ? [{ debugName: "rail" }] : /* istanbul ignore next */ []));
|
|
8835
|
-
/**
|
|
8836
|
-
|
|
9042
|
+
/** Mode tiroir ouvert : voile, focus piégé, Échap. */
|
|
9043
|
+
modal = computed(() => navDrawerModal(this.effective(), this.open()), ...(ngDevMode ? [{ debugName: "modal" }] : /* istanbul ignore next */ []));
|
|
9044
|
+
/** @internal */
|
|
9045
|
+
classes = computed(() => navDrawerClasses(this.effective(), this.open(), this.position()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
9046
|
+
/** @internal */
|
|
9047
|
+
panelAttrs = computed(() => navDrawerPanelProps(this.effective(), this.open()), ...(ngDevMode ? [{ debugName: "panelAttrs" }] : /* istanbul ignore next */ []));
|
|
8837
9048
|
/**
|
|
8838
9049
|
* Les lignes à rendre : les intertitres toujours, les entrées seulement si leur intertitre
|
|
8839
9050
|
* n'est pas replié. Une entrée qui précède tout intertitre n'appartient à aucun groupe et
|
|
8840
9051
|
* ne se replie donc jamais — sans quoi elle serait masquée sans bouton pour la rouvrir.
|
|
8841
9052
|
*/
|
|
8842
|
-
rows = computed(() => {
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
for (const item of this.items()) {
|
|
8848
|
-
if (item.section) {
|
|
8849
|
-
// En rail l'intertitre devient un filet : plus de bouton, donc rien ne se replie.
|
|
8850
|
-
const collapsible = !rail && !!item.collapsible;
|
|
8851
|
-
const key = this.cle(item);
|
|
8852
|
-
courante = { item, key, collapsible, collapsed: collapsible && replies.has(key), count: 0 };
|
|
8853
|
-
out.push(courante);
|
|
8854
|
-
continue;
|
|
8855
|
-
}
|
|
8856
|
-
// Le compte est celui du GROUPE, pas de ce qui est visible : il doit rester le même
|
|
8857
|
-
// une fois replié, sinon il annoncerait zéro au moment où il sert le plus.
|
|
8858
|
-
if (courante)
|
|
8859
|
-
courante.count++;
|
|
8860
|
-
if (courante?.collapsed)
|
|
8861
|
-
continue;
|
|
8862
|
-
out.push({ item, key: '', collapsible: false, collapsed: false, count: 0 });
|
|
8863
|
-
}
|
|
8864
|
-
return out;
|
|
8865
|
-
}, ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
8866
|
-
toggleSection(r) {
|
|
8867
|
-
const s = new Set(this.collapsed());
|
|
8868
|
-
s.has(r.key) ? s.delete(r.key) : s.add(r.key);
|
|
8869
|
-
this.collapsed.set([...s]);
|
|
8870
|
-
}
|
|
8871
|
-
wasOpen = signal(false, ...(ngDevMode ? [{ debugName: "wasOpen" }] : /* istanbul ignore next */ []));
|
|
9053
|
+
rows = computed(() => navDrawerRows(this.items(), this.collapsed(), this.rail()), ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
9054
|
+
trap = null;
|
|
9055
|
+
unlock = null;
|
|
9056
|
+
restoreTo = null;
|
|
9057
|
+
wasModal = false;
|
|
8872
9058
|
constructor() {
|
|
8873
9059
|
effect(() => {
|
|
8874
|
-
const
|
|
8875
|
-
if (
|
|
9060
|
+
const m = this.modal();
|
|
9061
|
+
if (m === this.wasModal)
|
|
8876
9062
|
return;
|
|
8877
|
-
this.
|
|
8878
|
-
(
|
|
9063
|
+
this.wasModal = m;
|
|
9064
|
+
untracked(() => (m ? this.opened : this.closed).emit());
|
|
9065
|
+
if (m)
|
|
9066
|
+
this.engage();
|
|
9067
|
+
else
|
|
9068
|
+
this.release();
|
|
8879
9069
|
});
|
|
9070
|
+
// Détruit tiroir ouvert : piège et blocage du défilement relâchés.
|
|
9071
|
+
inject(DestroyRef).onDestroy(() => { this.trap?.destroy(); this.trap = null; this.unlock?.(); this.unlock = null; });
|
|
8880
9072
|
// Repasser en permanent laisse un tiroir « ouvert » qui n'a plus de sens : on le solde,
|
|
8881
9073
|
// sinon le retour en mode tiroir le rouvrirait tout seul.
|
|
8882
9074
|
effect(() => {
|
|
@@ -8884,57 +9076,125 @@ class PoadNavDrawerComponent {
|
|
|
8884
9076
|
this.open.set(false);
|
|
8885
9077
|
});
|
|
8886
9078
|
}
|
|
9079
|
+
/** Ouverture modale : on retient qui avait le focus, puis on le pose dans le panneau (après rendu). */
|
|
9080
|
+
engage() {
|
|
9081
|
+
const doc = this.host.nativeElement.ownerDocument;
|
|
9082
|
+
this.restoreTo = doc.activeElement;
|
|
9083
|
+
// Tiroir ouvert : la page derrière le voile ne défile plus (helper d'ui-core, partagé par tous les rendus).
|
|
9084
|
+
this.unlock ??= lockDocumentScroll(doc);
|
|
9085
|
+
afterNextRender(() => {
|
|
9086
|
+
if (!this.modal())
|
|
9087
|
+
return;
|
|
9088
|
+
this.trap?.destroy();
|
|
9089
|
+
this.trap = poadFocusTrap(this.panel().nativeElement);
|
|
9090
|
+
this.trap.focusInitial();
|
|
9091
|
+
}, { injector: this.injector });
|
|
9092
|
+
}
|
|
9093
|
+
/** Fermeture : le piège est relâché, et le focus revient où il était s'il était resté dans le tiroir. */
|
|
9094
|
+
release() {
|
|
9095
|
+
this.trap?.destroy();
|
|
9096
|
+
this.trap = null;
|
|
9097
|
+
this.unlock?.();
|
|
9098
|
+
this.unlock = null;
|
|
9099
|
+
const before = this.restoreTo;
|
|
9100
|
+
this.restoreTo = null;
|
|
9101
|
+
const doc = this.host.nativeElement.ownerDocument;
|
|
9102
|
+
const inside = this.host.nativeElement.contains(doc.activeElement) || doc.activeElement === doc.body;
|
|
9103
|
+
if (before && inside && doc.contains(before))
|
|
9104
|
+
before.focus();
|
|
9105
|
+
}
|
|
9106
|
+
/** @internal */
|
|
9107
|
+
attrs(it) { return navDrawerItemProps(it, this.isActive(it), this.rail()); }
|
|
9108
|
+
/** @internal */
|
|
9109
|
+
badge(it) { return navDrawerBadge(it, this.rail()); }
|
|
9110
|
+
/** @internal */
|
|
9111
|
+
sectionCount(r) { return navDrawerSectionCount(r); }
|
|
9112
|
+
/** @internal — focus initial du tiroir modal : la destination courante. */
|
|
9113
|
+
autofocus(it) { return this.isActive(it) ? '' : null; }
|
|
9114
|
+
/** Plie ou déplie le groupe d'un intertitre repliable. */
|
|
9115
|
+
toggleSection(r) {
|
|
9116
|
+
this.collapsed.set(navDrawerToggle(this.collapsed(), r.key));
|
|
9117
|
+
}
|
|
9118
|
+
/** L'entrée est la destination courante (`value`, ou `url` égale à `current`). */
|
|
8887
9119
|
isActive(it) {
|
|
8888
|
-
return it
|
|
9120
|
+
return navDrawerIsActive(it, this.value(), this.current());
|
|
8889
9121
|
}
|
|
9122
|
+
/** Bascule l'ouverture du tiroir. */
|
|
8890
9123
|
toggle() { this.open.set(!this.open()); }
|
|
9124
|
+
/** Ouvre le tiroir. */
|
|
8891
9125
|
show() { this.open.set(true); }
|
|
9126
|
+
/** Ferme le tiroir. */
|
|
8892
9127
|
hide() { this.open.set(false); }
|
|
9128
|
+
/** Clic sur le voile. */
|
|
8893
9129
|
dismiss() {
|
|
8894
|
-
if (this.dismissableScrim())
|
|
9130
|
+
if (navDrawerShouldClose('scrim', this.effective(), this.open(), { dismissableScrim: this.dismissableScrim() }))
|
|
8895
9131
|
this.open.set(false);
|
|
8896
9132
|
}
|
|
9133
|
+
/** Échap (document) : referme le tiroir modal. */
|
|
8897
9134
|
onEscape() {
|
|
8898
|
-
if (this.
|
|
9135
|
+
if (navDrawerShouldClose('escape', this.effective(), this.open(), { closeOnEscape: this.closeOnEscape() }))
|
|
8899
9136
|
this.open.set(false);
|
|
8900
9137
|
}
|
|
9138
|
+
/** @internal — clavier dans la liste : ↓ ↑ Début Fin, → ← sur un intertitre repliable. */
|
|
9139
|
+
onListKey(e) {
|
|
9140
|
+
// Relire l'état courant avant d'agir : deux touches dans la même image (un repli puis ↓) trouveraient sinon la liste
|
|
9141
|
+
// d'avant le repli dans le DOM, et le rang lu ne correspondrait plus aux lignes calculées.
|
|
9142
|
+
this.cdr.detectChanges();
|
|
9143
|
+
const from = Number(e.target.closest('[data-row]')?.getAttribute('data-row') ?? NaN);
|
|
9144
|
+
if (Number.isNaN(from))
|
|
9145
|
+
return;
|
|
9146
|
+
const rows = this.rows();
|
|
9147
|
+
const step = navDrawerKeydown(rows, from, e.key, elementIsRtl(this.host.nativeElement));
|
|
9148
|
+
if (!step)
|
|
9149
|
+
return;
|
|
9150
|
+
e.preventDefault();
|
|
9151
|
+
if ('toggle' in step) {
|
|
9152
|
+
this.toggleSection(rows[from]);
|
|
9153
|
+
this.cdr.detectChanges();
|
|
9154
|
+
return;
|
|
9155
|
+
}
|
|
9156
|
+
if (!navDrawerFocusable(rows[step.focus]))
|
|
9157
|
+
return;
|
|
9158
|
+
this.host.nativeElement.querySelector(`.poad-nav-drawer__list [data-row="${step.focus}"]`)?.focus();
|
|
9159
|
+
}
|
|
9160
|
+
/** Choisit une entrée (clic) : sa `command`, `itemClick`, puis la valeur change si elle est nouvelle ; le tiroir se referme. */
|
|
8901
9161
|
pick(it, ev) {
|
|
8902
|
-
|
|
9162
|
+
const { action, close } = navDrawerPick(this.value(), it, this.effective(), this.closeOnNavigate());
|
|
9163
|
+
if (action === 'none') {
|
|
8903
9164
|
ev.preventDefault();
|
|
8904
9165
|
return;
|
|
8905
9166
|
}
|
|
8906
|
-
this.itemClick.emit({ item: it, originalEvent: ev });
|
|
8907
9167
|
it.command?.({ item: it, originalEvent: ev });
|
|
8908
|
-
|
|
9168
|
+
this.itemClick.emit({ item: it, originalEvent: ev });
|
|
9169
|
+
if (action === 'change') {
|
|
8909
9170
|
this.value.set(it.value);
|
|
8910
9171
|
this.changed.emit(it);
|
|
8911
9172
|
}
|
|
8912
|
-
if (
|
|
9173
|
+
if (close)
|
|
8913
9174
|
this.open.set(false);
|
|
8914
9175
|
}
|
|
8915
9176
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadNavDrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8916
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.20", type: PoadNavDrawerComponent, isStandalone: true, selector: "poad-nav-drawer", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, closeOnNavigate: { classPropertyName: "closeOnNavigate", publicName: "closeOnNavigate", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, dismissableScrim: { classPropertyName: "dismissableScrim", publicName: "dismissableScrim", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", value: "valueChange", collapsed: "collapsedChange", opened: "opened", closed: "closed", itemClick: "itemClick", changed: "changed" }, host: { listeners: { "document:keydown.escape": "onEscape()" }, properties: { "class.is-temporary": "
|
|
9177
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.20", type: PoadNavDrawerComponent, isStandalone: true, selector: "poad-nav-drawer", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, railBelow: { classPropertyName: "railBelow", publicName: "railBelow", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, closeOnNavigate: { classPropertyName: "closeOnNavigate", publicName: "closeOnNavigate", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, dismissableScrim: { classPropertyName: "dismissableScrim", publicName: "dismissableScrim", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", value: "valueChange", collapsed: "collapsedChange", opened: "opened", closed: "closed", itemClick: "itemClick", changed: "changed" }, host: { listeners: { "document:keydown.escape": "onEscape()" }, properties: { "class.is-temporary": "classes()[\"is-temporary\"]", "class.is-permanent": "classes()[\"is-permanent\"]", "class.is-rail": "classes()[\"is-rail\"]", "class.is-open": "classes()[\"is-open\"]", "class.is-right": "classes()[\"is-right\"]", "attr.title": "null" }, classAttribute: "poad-nav-drawer" }, queries: [{ propertyName: "headerSlot", first: true, predicate: PoadNavDrawerHeaderDirective, descendants: true, isSignal: true }, { propertyName: "footerSlot", first: true, predicate: PoadNavDrawerFooterDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
8917
9178
|
<!-- Le voile n'existe qu'en mode tiroir : en permanent il n'y a rien à recouvrir. -->
|
|
8918
|
-
@if (
|
|
9179
|
+
@if (modal()) {
|
|
8919
9180
|
<div class="poad-nav-drawer__scrim" (click)="dismiss()" aria-hidden="true"></div>
|
|
8920
9181
|
}
|
|
8921
9182
|
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
[attr.aria-label]="i18n.text(ariaLabel(), 'nav.mainMenu')"
|
|
8925
|
-
[attr.aria-
|
|
8926
|
-
[attr.inert]="temporary() && !open() ? '' : null"
|
|
8927
|
-
>
|
|
9183
|
+
@let p = panelAttrs();
|
|
9184
|
+
<nav #panel class="poad-nav-drawer__panel" tabindex="-1"
|
|
9185
|
+
[attr.aria-label]="i18n.text(ariaLabel(), 'nav.mainMenu')" [attr.aria-hidden]="p['aria-hidden']" [attr.inert]="p.inert"
|
|
9186
|
+
[attr.role]="p.role" [attr.aria-modal]="p['aria-modal']">
|
|
8928
9187
|
<div class="poad-nav-drawer__head">
|
|
8929
9188
|
<ng-content select="[poadNavDrawerHeader]"/>
|
|
8930
9189
|
@if (!headerSlot()) {
|
|
8931
9190
|
@if (icon()) {<poad-icon [name]="icon()" [size]="18"/>}
|
|
8932
|
-
@if (!rail()) {<b>{{ title() }}</b>}
|
|
9191
|
+
@if (!rail() && title()) {<b>{{ title() }}</b>}
|
|
8933
9192
|
}
|
|
8934
9193
|
</div>
|
|
8935
9194
|
|
|
8936
|
-
<ul class="poad-nav-drawer__list" role="list">
|
|
8937
|
-
|
|
9195
|
+
<ul class="poad-nav-drawer__list" role="list" (keydown)="onListKey($event)">
|
|
9196
|
+
<!-- Suivi par entrée (pas par rang) : après un repli, chaque bouton reste celui de son entrée. -->
|
|
9197
|
+
@for (r of rows(); track r.item; let i = $index) {
|
|
8938
9198
|
@let it = r.item;
|
|
8939
9199
|
@if (it.section) {
|
|
8940
9200
|
<!-- En rail, un intertitre n'a plus de place : un filet le remplace. -->
|
|
@@ -8942,45 +9202,37 @@ class PoadNavDrawerComponent {
|
|
|
8942
9202
|
<li class="poad-nav-drawer__rule" role="separator"></li>
|
|
8943
9203
|
} @else if (r.collapsible) {
|
|
8944
9204
|
<li>
|
|
8945
|
-
<button
|
|
8946
|
-
|
|
8947
|
-
class="poad-nav-drawer__section is-collapsible"
|
|
8948
|
-
[class.is-collapsed]="r.collapsed"
|
|
8949
|
-
[attr.aria-expanded]="!r.collapsed"
|
|
8950
|
-
(click)="toggleSection(r)"
|
|
8951
|
-
>
|
|
9205
|
+
<button type="button" class="poad-nav-drawer__section is-collapsible" [class.is-collapsed]="r.collapsed" [attr.aria-expanded]="!r.collapsed"
|
|
9206
|
+
[attr.data-row]="i" (click)="toggleSection(r)">
|
|
8952
9207
|
<poad-icon name="chevron-down" [size]="12" class="poad-nav-drawer__chev"/>
|
|
8953
9208
|
<span class="poad-nav-drawer__label">{{ it.label }}</span>
|
|
8954
9209
|
<!-- Un compte DÉCLARÉ l'emporte sur le compte calculé : une valeur posée
|
|
8955
9210
|
par l'hôte est une affirmation, pas un oubli à combler. -->
|
|
8956
|
-
<span class="poad-nav-drawer__badge">{{
|
|
9211
|
+
<span class="poad-nav-drawer__badge">{{ sectionCount(r) }}</span>
|
|
8957
9212
|
</button>
|
|
8958
9213
|
</li>
|
|
8959
9214
|
} @else {
|
|
8960
9215
|
<li class="poad-nav-drawer__section">{{ it.label }}</li>
|
|
8961
9216
|
}
|
|
8962
9217
|
} @else {
|
|
9218
|
+
@let a = attrs(it);
|
|
8963
9219
|
<li>
|
|
8964
|
-
@if (it.routerLink) {
|
|
8965
|
-
<a class="poad-nav-drawer__item" [class.is-active]="
|
|
8966
|
-
[
|
|
8967
|
-
[attr.
|
|
8968
|
-
[attr.title]="rail() ? it.label : null" [attr.aria-label]="it.ariaLabel || (rail() ? it.label : null)"
|
|
8969
|
-
(click)="pick(it, $event)">
|
|
9220
|
+
@if (it.routerLink && !it.disabled) {
|
|
9221
|
+
<a class="poad-nav-drawer__item" [class.is-active]="a.classes['is-active']" [routerLink]="it.routerLink" [queryParams]="it.queryParams"
|
|
9222
|
+
[attr.target]="it.target || null" [attr.aria-current]="a['aria-current']" [attr.title]="a.title" [attr.aria-label]="a['aria-label']"
|
|
9223
|
+
[attr.data-row]="i" [attr.data-poad-autofocus]="autofocus(it)" (click)="pick(it, $event)">
|
|
8970
9224
|
<ng-container *ngTemplateOutlet="row; context: { $implicit: it }"/>
|
|
8971
9225
|
</a>
|
|
8972
|
-
} @else if (it.url) {
|
|
8973
|
-
<a class="poad-nav-drawer__item" [class.is-active]="
|
|
8974
|
-
[
|
|
8975
|
-
[attr.
|
|
8976
|
-
(click)="pick(it, $event)">
|
|
9226
|
+
} @else if (it.url && !it.disabled) {
|
|
9227
|
+
<a class="poad-nav-drawer__item" [class.is-active]="a.classes['is-active']" [href]="it.url" [attr.target]="it.target || null"
|
|
9228
|
+
[attr.aria-current]="a['aria-current']" [attr.title]="a.title" [attr.aria-label]="a['aria-label']"
|
|
9229
|
+
[attr.data-row]="i" [attr.data-poad-autofocus]="autofocus(it)" (click)="pick(it, $event)">
|
|
8977
9230
|
<ng-container *ngTemplateOutlet="row; context: { $implicit: it }"/>
|
|
8978
9231
|
</a>
|
|
8979
9232
|
} @else {
|
|
8980
|
-
<button type="button" class="poad-nav-drawer__item" [class.is-active]="
|
|
8981
|
-
[disabled]="it.disabled" [attr.title]="
|
|
8982
|
-
[attr.
|
|
8983
|
-
[attr.aria-current]="isActive(it) ? 'page' : null" (click)="pick(it, $event)">
|
|
9233
|
+
<button type="button" class="poad-nav-drawer__item" [class.is-active]="a.classes['is-active']" [class.is-disabled]="a.classes['is-disabled']"
|
|
9234
|
+
[disabled]="it.disabled" [attr.title]="a.title" [attr.aria-label]="a['aria-label']" [attr.aria-current]="a['aria-current']"
|
|
9235
|
+
[attr.data-row]="i" [attr.data-poad-autofocus]="autofocus(it)" (click)="pick(it, $event)">
|
|
8984
9236
|
<ng-container *ngTemplateOutlet="row; context: { $implicit: it }"/>
|
|
8985
9237
|
</button>
|
|
8986
9238
|
}
|
|
@@ -8997,48 +9249,48 @@ class PoadNavDrawerComponent {
|
|
|
8997
9249
|
</nav>
|
|
8998
9250
|
|
|
8999
9251
|
<ng-template #row let-it>
|
|
9252
|
+
@let b = badge(it);
|
|
9000
9253
|
@if (it.icon) {<poad-icon [name]="it.icon" [size]="17"/>}
|
|
9001
|
-
@if (!rail()) {
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
<!-- En rail le compte ne tient pas : il devient un point, le nombre reste en title. -->
|
|
9006
|
-
<span class="poad-nav-drawer__dot" [attr.title]="it.badge"></span>
|
|
9007
|
-
}
|
|
9254
|
+
@if (!rail()) {<span class="poad-nav-drawer__label">{{ it.label }}</span>}
|
|
9255
|
+
<!-- En rail le compte ne tient pas : il devient un point, le nombre reste en title. -->
|
|
9256
|
+
@if (b.show && !b.dot) {<span class="poad-nav-drawer__badge">{{ b.text }}</span>}
|
|
9257
|
+
@if (b.dot) {<span class="poad-nav-drawer__dot" [attr.title]="b.text"></span>}
|
|
9008
9258
|
</ng-template>
|
|
9009
|
-
`, isInline: true, styles: ["
|
|
9259
|
+
`, isInline: true, styles: [".poad-nav-drawer{display:block;box-sizing:border-box;font-family:var(--poad-font)}.poad-nav-drawer.is-permanent{flex:none}.poad-nav-drawer .poad-nav-drawer__panel{display:flex;flex-direction:column;min-height:0;height:100%;box-sizing:border-box;width:var(--poad-nav-drawer-w, 240px);background:var(--poad-bg-subtle);border-inline-end:1px solid var(--poad-border);transition:width var(--poad-dur) var(--poad-ease)}.poad-nav-drawer.is-rail .poad-nav-drawer__panel{width:var(--poad-nav-drawer-rail-w, 56px)}.poad-nav-drawer.is-right .poad-nav-drawer__panel{border-inline-end:0;border-inline-start:1px solid var(--poad-border)}.poad-nav-drawer.is-temporary{position:fixed;inset:0 auto 0 0;z-index:var(--poad-z-overlay, 100002);pointer-events:none}.poad-nav-drawer.is-temporary.is-right{inset:0 0 0 auto}.poad-nav-drawer.is-temporary .poad-nav-drawer__panel{pointer-events:auto;height:100%;box-shadow:var(--poad-shadow-lg, 0 12px 24px rgba(15,23,42,.18));transform:translate(-100%);transition:transform var(--poad-dur) var(--poad-ease),visibility 0s linear var(--poad-dur);visibility:hidden;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}.poad-nav-drawer.is-temporary.is-right .poad-nav-drawer__panel{transform:translate(100%)}.poad-nav-drawer.is-temporary.is-open .poad-nav-drawer__panel{transform:translate(0);visibility:visible;transition:transform var(--poad-dur) var(--poad-ease)}.poad-nav-drawer .poad-nav-drawer__scrim{position:fixed;inset:0;background:var(--poad-backdrop, rgba(2,6,23,.45));pointer-events:auto;z-index:-1}.poad-nav-drawer .poad-nav-drawer__head{display:flex;align-items:center;gap:9px;flex:none;box-sizing:border-box;padding:14px 14px 12px;border-bottom:1px solid var(--poad-border);min-height:48px;color:var(--poad-fg);font-size:13px}.poad-nav-drawer.is-rail .poad-nav-drawer__head{justify-content:center;padding:14px 0 12px}.poad-nav-drawer .poad-nav-drawer__head:empty{display:none}.poad-nav-drawer .poad-nav-drawer__head>.poad-icon,.poad-nav-drawer .poad-nav-drawer__head>poad-icon{color:var(--poad-accent);flex:none}.poad-nav-drawer .poad-nav-drawer__list{list-style:none;margin:0;padding:8px 0;flex:1;min-height:0;overflow-y:auto}.poad-nav-drawer .poad-nav-drawer__section{padding:12px 14px 5px;font-size:10px;font-weight:500;letter-spacing:.07em;text-transform:uppercase;color:var(--poad-fg-muted)}.poad-nav-drawer .poad-nav-drawer__rule{height:1px;margin:8px 12px;background:var(--poad-border)}.poad-nav-drawer .poad-nav-drawer__section.is-collapsible{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;cursor:pointer;padding:12px 14px 5px;font:500 10px var(--poad-font);letter-spacing:.07em;text-transform:uppercase;color:var(--poad-fg-muted)}.poad-nav-drawer .poad-nav-drawer__section.is-collapsible:hover{color:var(--poad-fg-secondary)}.poad-nav-drawer .poad-nav-drawer__list .poad-nav-drawer__section.is-collapsible:focus-visible{outline:2px solid var(--poad-accent);outline-offset:-2px}.poad-nav-drawer .poad-nav-drawer__chev{flex:none;transition:transform var(--poad-dur) var(--poad-ease)}.poad-nav-drawer .poad-nav-drawer__section.is-collapsed .poad-nav-drawer__chev{transform:rotate(-90deg)}[dir=rtl] .poad-nav-drawer .poad-nav-drawer__section.is-collapsed .poad-nav-drawer__chev{transform:rotate(90deg)}.poad-nav-drawer .poad-nav-drawer__item{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;position:relative;cursor:pointer;padding:8px 14px;min-height:38px;color:var(--poad-fg-secondary);font:12.5px var(--poad-font);text-decoration:none}.poad-nav-drawer.is-rail .poad-nav-drawer__item{justify-content:center;padding:10px 0}.poad-nav-drawer .poad-nav-drawer__item:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-nav-drawer .poad-nav-drawer__list .poad-nav-drawer__item:focus-visible{outline:2px solid var(--poad-accent);outline-offset:-2px}.poad-nav-drawer .poad-nav-drawer__item.is-active{background:var(--poad-accent-soft);color:var(--poad-accent);font-weight:500;box-shadow:inset 3px 0 0 var(--poad-accent)}.poad-nav-drawer.is-right .poad-nav-drawer__item.is-active,[dir=rtl] .poad-nav-drawer:not(.is-right) .poad-nav-drawer__item.is-active{box-shadow:inset -3px 0 0 var(--poad-accent)}.poad-nav-drawer .poad-nav-drawer__item.is-disabled,.poad-nav-drawer .poad-nav-drawer__item:disabled{opacity:.45;cursor:not-allowed}.poad-nav-drawer .poad-nav-drawer__item.is-disabled:hover,.poad-nav-drawer .poad-nav-drawer__item:disabled:hover{background:none;color:var(--poad-fg-secondary)}.poad-nav-drawer .poad-nav-drawer__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}.poad-nav-drawer .poad-nav-drawer__badge{flex:none;font-size:10.5px;font-family:var(--poad-font-mono);border-radius:var(--poad-radius-pill);padding:1px 7px;background:var(--poad-elevated, var(--poad-border));color:var(--poad-fg-secondary);font-weight:400;letter-spacing:0}.poad-nav-drawer .poad-nav-drawer__item.is-active .poad-nav-drawer__badge{background:var(--poad-accent);color:var(--poad-fg-on-accent)}.poad-nav-drawer .poad-nav-drawer__dot{position:absolute;top:7px;left:calc(50% + 6px);width:7px;height:7px;border-radius:50%;background:var(--poad-danger, #f85149)}.poad-nav-drawer .poad-nav-drawer__foot{flex:none;border-top:1px solid var(--poad-border);padding:10px 14px}.poad-nav-drawer .poad-nav-drawer__foot.is-empty{display:none}.poad-nav-drawer.is-rail .poad-nav-drawer__foot{padding:10px 4px;display:flex;justify-content:center;text-align:center;overflow-wrap:anywhere}.poad-touch .poad-nav-drawer .poad-nav-drawer__item{min-height:44px}@media(prefers-reduced-motion:reduce){.poad-nav-drawer .poad-nav-drawer__panel,.poad-nav-drawer.is-temporary .poad-nav-drawer__panel,.poad-nav-drawer.is-temporary.is-open .poad-nav-drawer__panel,.poad-nav-drawer .poad-nav-drawer__chev{transition:none}}\n"], dependencies: [{ kind: "component", type: PoadIconComponent, selector: "poad-icon", inputs: ["name", "size", "strokeWidth", "label", "title", "spin", "filled", "flip", "rotate"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
9010
9260
|
}
|
|
9011
9261
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadNavDrawerComponent, decorators: [{
|
|
9012
9262
|
type: Component,
|
|
9013
9263
|
args: [{ selector: 'poad-nav-drawer', standalone: true, imports: [PoadIconComponent, RouterLink, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
9014
9264
|
class: 'poad-nav-drawer',
|
|
9015
|
-
'[class.is-temporary]': '
|
|
9016
|
-
'[class.is-permanent]': '
|
|
9017
|
-
'[class.is-rail]': '
|
|
9018
|
-
'[class.is-open]': '
|
|
9019
|
-
'[class.is-right]': '
|
|
9265
|
+
'[class.is-temporary]': 'classes()["is-temporary"]',
|
|
9266
|
+
'[class.is-permanent]': 'classes()["is-permanent"]',
|
|
9267
|
+
'[class.is-rail]': 'classes()["is-rail"]',
|
|
9268
|
+
'[class.is-open]': 'classes()["is-open"]',
|
|
9269
|
+
'[class.is-right]': 'classes()["is-right"]',
|
|
9270
|
+
// `title` est une entrée (titre de l'en-tête) : laissé sur l'hôte, l'attribut ferait une info-bulle sur tout le tiroir.
|
|
9271
|
+
'[attr.title]': 'null',
|
|
9272
|
+
'(document:keydown.escape)': 'onEscape()',
|
|
9020
9273
|
}, template: `
|
|
9021
9274
|
<!-- Le voile n'existe qu'en mode tiroir : en permanent il n'y a rien à recouvrir. -->
|
|
9022
|
-
@if (
|
|
9275
|
+
@if (modal()) {
|
|
9023
9276
|
<div class="poad-nav-drawer__scrim" (click)="dismiss()" aria-hidden="true"></div>
|
|
9024
9277
|
}
|
|
9025
9278
|
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
[attr.aria-label]="i18n.text(ariaLabel(), 'nav.mainMenu')"
|
|
9029
|
-
[attr.aria-
|
|
9030
|
-
[attr.inert]="temporary() && !open() ? '' : null"
|
|
9031
|
-
>
|
|
9279
|
+
@let p = panelAttrs();
|
|
9280
|
+
<nav #panel class="poad-nav-drawer__panel" tabindex="-1"
|
|
9281
|
+
[attr.aria-label]="i18n.text(ariaLabel(), 'nav.mainMenu')" [attr.aria-hidden]="p['aria-hidden']" [attr.inert]="p.inert"
|
|
9282
|
+
[attr.role]="p.role" [attr.aria-modal]="p['aria-modal']">
|
|
9032
9283
|
<div class="poad-nav-drawer__head">
|
|
9033
9284
|
<ng-content select="[poadNavDrawerHeader]"/>
|
|
9034
9285
|
@if (!headerSlot()) {
|
|
9035
9286
|
@if (icon()) {<poad-icon [name]="icon()" [size]="18"/>}
|
|
9036
|
-
@if (!rail()) {<b>{{ title() }}</b>}
|
|
9287
|
+
@if (!rail() && title()) {<b>{{ title() }}</b>}
|
|
9037
9288
|
}
|
|
9038
9289
|
</div>
|
|
9039
9290
|
|
|
9040
|
-
<ul class="poad-nav-drawer__list" role="list">
|
|
9041
|
-
|
|
9291
|
+
<ul class="poad-nav-drawer__list" role="list" (keydown)="onListKey($event)">
|
|
9292
|
+
<!-- Suivi par entrée (pas par rang) : après un repli, chaque bouton reste celui de son entrée. -->
|
|
9293
|
+
@for (r of rows(); track r.item; let i = $index) {
|
|
9042
9294
|
@let it = r.item;
|
|
9043
9295
|
@if (it.section) {
|
|
9044
9296
|
<!-- En rail, un intertitre n'a plus de place : un filet le remplace. -->
|
|
@@ -9046,45 +9298,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
9046
9298
|
<li class="poad-nav-drawer__rule" role="separator"></li>
|
|
9047
9299
|
} @else if (r.collapsible) {
|
|
9048
9300
|
<li>
|
|
9049
|
-
<button
|
|
9050
|
-
|
|
9051
|
-
class="poad-nav-drawer__section is-collapsible"
|
|
9052
|
-
[class.is-collapsed]="r.collapsed"
|
|
9053
|
-
[attr.aria-expanded]="!r.collapsed"
|
|
9054
|
-
(click)="toggleSection(r)"
|
|
9055
|
-
>
|
|
9301
|
+
<button type="button" class="poad-nav-drawer__section is-collapsible" [class.is-collapsed]="r.collapsed" [attr.aria-expanded]="!r.collapsed"
|
|
9302
|
+
[attr.data-row]="i" (click)="toggleSection(r)">
|
|
9056
9303
|
<poad-icon name="chevron-down" [size]="12" class="poad-nav-drawer__chev"/>
|
|
9057
9304
|
<span class="poad-nav-drawer__label">{{ it.label }}</span>
|
|
9058
9305
|
<!-- Un compte DÉCLARÉ l'emporte sur le compte calculé : une valeur posée
|
|
9059
9306
|
par l'hôte est une affirmation, pas un oubli à combler. -->
|
|
9060
|
-
<span class="poad-nav-drawer__badge">{{
|
|
9307
|
+
<span class="poad-nav-drawer__badge">{{ sectionCount(r) }}</span>
|
|
9061
9308
|
</button>
|
|
9062
9309
|
</li>
|
|
9063
9310
|
} @else {
|
|
9064
9311
|
<li class="poad-nav-drawer__section">{{ it.label }}</li>
|
|
9065
9312
|
}
|
|
9066
9313
|
} @else {
|
|
9314
|
+
@let a = attrs(it);
|
|
9067
9315
|
<li>
|
|
9068
|
-
@if (it.routerLink) {
|
|
9069
|
-
<a class="poad-nav-drawer__item" [class.is-active]="
|
|
9070
|
-
[
|
|
9071
|
-
[attr.
|
|
9072
|
-
[attr.title]="rail() ? it.label : null" [attr.aria-label]="it.ariaLabel || (rail() ? it.label : null)"
|
|
9073
|
-
(click)="pick(it, $event)">
|
|
9316
|
+
@if (it.routerLink && !it.disabled) {
|
|
9317
|
+
<a class="poad-nav-drawer__item" [class.is-active]="a.classes['is-active']" [routerLink]="it.routerLink" [queryParams]="it.queryParams"
|
|
9318
|
+
[attr.target]="it.target || null" [attr.aria-current]="a['aria-current']" [attr.title]="a.title" [attr.aria-label]="a['aria-label']"
|
|
9319
|
+
[attr.data-row]="i" [attr.data-poad-autofocus]="autofocus(it)" (click)="pick(it, $event)">
|
|
9074
9320
|
<ng-container *ngTemplateOutlet="row; context: { $implicit: it }"/>
|
|
9075
9321
|
</a>
|
|
9076
|
-
} @else if (it.url) {
|
|
9077
|
-
<a class="poad-nav-drawer__item" [class.is-active]="
|
|
9078
|
-
[
|
|
9079
|
-
[attr.
|
|
9080
|
-
(click)="pick(it, $event)">
|
|
9322
|
+
} @else if (it.url && !it.disabled) {
|
|
9323
|
+
<a class="poad-nav-drawer__item" [class.is-active]="a.classes['is-active']" [href]="it.url" [attr.target]="it.target || null"
|
|
9324
|
+
[attr.aria-current]="a['aria-current']" [attr.title]="a.title" [attr.aria-label]="a['aria-label']"
|
|
9325
|
+
[attr.data-row]="i" [attr.data-poad-autofocus]="autofocus(it)" (click)="pick(it, $event)">
|
|
9081
9326
|
<ng-container *ngTemplateOutlet="row; context: { $implicit: it }"/>
|
|
9082
9327
|
</a>
|
|
9083
9328
|
} @else {
|
|
9084
|
-
<button type="button" class="poad-nav-drawer__item" [class.is-active]="
|
|
9085
|
-
[disabled]="it.disabled" [attr.title]="
|
|
9086
|
-
[attr.
|
|
9087
|
-
[attr.aria-current]="isActive(it) ? 'page' : null" (click)="pick(it, $event)">
|
|
9329
|
+
<button type="button" class="poad-nav-drawer__item" [class.is-active]="a.classes['is-active']" [class.is-disabled]="a.classes['is-disabled']"
|
|
9330
|
+
[disabled]="it.disabled" [attr.title]="a.title" [attr.aria-label]="a['aria-label']" [attr.aria-current]="a['aria-current']"
|
|
9331
|
+
[attr.data-row]="i" [attr.data-poad-autofocus]="autofocus(it)" (click)="pick(it, $event)">
|
|
9088
9332
|
<ng-container *ngTemplateOutlet="row; context: { $implicit: it }"/>
|
|
9089
9333
|
</button>
|
|
9090
9334
|
}
|
|
@@ -9101,20 +9345,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
9101
9345
|
</nav>
|
|
9102
9346
|
|
|
9103
9347
|
<ng-template #row let-it>
|
|
9348
|
+
@let b = badge(it);
|
|
9104
9349
|
@if (it.icon) {<poad-icon [name]="it.icon" [size]="17"/>}
|
|
9105
|
-
@if (!rail()) {
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
<!-- En rail le compte ne tient pas : il devient un point, le nombre reste en title. -->
|
|
9110
|
-
<span class="poad-nav-drawer__dot" [attr.title]="it.badge"></span>
|
|
9111
|
-
}
|
|
9350
|
+
@if (!rail()) {<span class="poad-nav-drawer__label">{{ it.label }}</span>}
|
|
9351
|
+
<!-- En rail le compte ne tient pas : il devient un point, le nombre reste en title. -->
|
|
9352
|
+
@if (b.show && !b.dot) {<span class="poad-nav-drawer__badge">{{ b.text }}</span>}
|
|
9353
|
+
@if (b.dot) {<span class="poad-nav-drawer__dot" [attr.title]="b.text"></span>}
|
|
9112
9354
|
</ng-template>
|
|
9113
|
-
`, styles: ["
|
|
9114
|
-
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }, { type: i0.Output, args: ["collapsedChange"] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], closeOnNavigate: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnNavigate", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], dismissableScrim: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissableScrim", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], changed: [{ type: i0.Output, args: ["changed"] }], headerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PoadNavDrawerHeaderDirective), { isSignal: true }] }], footerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PoadNavDrawerFooterDirective), { isSignal: true }] }]
|
|
9115
|
-
type: HostListener,
|
|
9116
|
-
args: ['document:keydown.escape']
|
|
9117
|
-
}] } });
|
|
9355
|
+
`, encapsulation: ViewEncapsulation.None, styles: [".poad-nav-drawer{display:block;box-sizing:border-box;font-family:var(--poad-font)}.poad-nav-drawer.is-permanent{flex:none}.poad-nav-drawer .poad-nav-drawer__panel{display:flex;flex-direction:column;min-height:0;height:100%;box-sizing:border-box;width:var(--poad-nav-drawer-w, 240px);background:var(--poad-bg-subtle);border-inline-end:1px solid var(--poad-border);transition:width var(--poad-dur) var(--poad-ease)}.poad-nav-drawer.is-rail .poad-nav-drawer__panel{width:var(--poad-nav-drawer-rail-w, 56px)}.poad-nav-drawer.is-right .poad-nav-drawer__panel{border-inline-end:0;border-inline-start:1px solid var(--poad-border)}.poad-nav-drawer.is-temporary{position:fixed;inset:0 auto 0 0;z-index:var(--poad-z-overlay, 100002);pointer-events:none}.poad-nav-drawer.is-temporary.is-right{inset:0 0 0 auto}.poad-nav-drawer.is-temporary .poad-nav-drawer__panel{pointer-events:auto;height:100%;box-shadow:var(--poad-shadow-lg, 0 12px 24px rgba(15,23,42,.18));transform:translate(-100%);transition:transform var(--poad-dur) var(--poad-ease),visibility 0s linear var(--poad-dur);visibility:hidden;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}.poad-nav-drawer.is-temporary.is-right .poad-nav-drawer__panel{transform:translate(100%)}.poad-nav-drawer.is-temporary.is-open .poad-nav-drawer__panel{transform:translate(0);visibility:visible;transition:transform var(--poad-dur) var(--poad-ease)}.poad-nav-drawer .poad-nav-drawer__scrim{position:fixed;inset:0;background:var(--poad-backdrop, rgba(2,6,23,.45));pointer-events:auto;z-index:-1}.poad-nav-drawer .poad-nav-drawer__head{display:flex;align-items:center;gap:9px;flex:none;box-sizing:border-box;padding:14px 14px 12px;border-bottom:1px solid var(--poad-border);min-height:48px;color:var(--poad-fg);font-size:13px}.poad-nav-drawer.is-rail .poad-nav-drawer__head{justify-content:center;padding:14px 0 12px}.poad-nav-drawer .poad-nav-drawer__head:empty{display:none}.poad-nav-drawer .poad-nav-drawer__head>.poad-icon,.poad-nav-drawer .poad-nav-drawer__head>poad-icon{color:var(--poad-accent);flex:none}.poad-nav-drawer .poad-nav-drawer__list{list-style:none;margin:0;padding:8px 0;flex:1;min-height:0;overflow-y:auto}.poad-nav-drawer .poad-nav-drawer__section{padding:12px 14px 5px;font-size:10px;font-weight:500;letter-spacing:.07em;text-transform:uppercase;color:var(--poad-fg-muted)}.poad-nav-drawer .poad-nav-drawer__rule{height:1px;margin:8px 12px;background:var(--poad-border)}.poad-nav-drawer .poad-nav-drawer__section.is-collapsible{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;cursor:pointer;padding:12px 14px 5px;font:500 10px var(--poad-font);letter-spacing:.07em;text-transform:uppercase;color:var(--poad-fg-muted)}.poad-nav-drawer .poad-nav-drawer__section.is-collapsible:hover{color:var(--poad-fg-secondary)}.poad-nav-drawer .poad-nav-drawer__list .poad-nav-drawer__section.is-collapsible:focus-visible{outline:2px solid var(--poad-accent);outline-offset:-2px}.poad-nav-drawer .poad-nav-drawer__chev{flex:none;transition:transform var(--poad-dur) var(--poad-ease)}.poad-nav-drawer .poad-nav-drawer__section.is-collapsed .poad-nav-drawer__chev{transform:rotate(-90deg)}[dir=rtl] .poad-nav-drawer .poad-nav-drawer__section.is-collapsed .poad-nav-drawer__chev{transform:rotate(90deg)}.poad-nav-drawer .poad-nav-drawer__item{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;position:relative;cursor:pointer;padding:8px 14px;min-height:38px;color:var(--poad-fg-secondary);font:12.5px var(--poad-font);text-decoration:none}.poad-nav-drawer.is-rail .poad-nav-drawer__item{justify-content:center;padding:10px 0}.poad-nav-drawer .poad-nav-drawer__item:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-nav-drawer .poad-nav-drawer__list .poad-nav-drawer__item:focus-visible{outline:2px solid var(--poad-accent);outline-offset:-2px}.poad-nav-drawer .poad-nav-drawer__item.is-active{background:var(--poad-accent-soft);color:var(--poad-accent);font-weight:500;box-shadow:inset 3px 0 0 var(--poad-accent)}.poad-nav-drawer.is-right .poad-nav-drawer__item.is-active,[dir=rtl] .poad-nav-drawer:not(.is-right) .poad-nav-drawer__item.is-active{box-shadow:inset -3px 0 0 var(--poad-accent)}.poad-nav-drawer .poad-nav-drawer__item.is-disabled,.poad-nav-drawer .poad-nav-drawer__item:disabled{opacity:.45;cursor:not-allowed}.poad-nav-drawer .poad-nav-drawer__item.is-disabled:hover,.poad-nav-drawer .poad-nav-drawer__item:disabled:hover{background:none;color:var(--poad-fg-secondary)}.poad-nav-drawer .poad-nav-drawer__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}.poad-nav-drawer .poad-nav-drawer__badge{flex:none;font-size:10.5px;font-family:var(--poad-font-mono);border-radius:var(--poad-radius-pill);padding:1px 7px;background:var(--poad-elevated, var(--poad-border));color:var(--poad-fg-secondary);font-weight:400;letter-spacing:0}.poad-nav-drawer .poad-nav-drawer__item.is-active .poad-nav-drawer__badge{background:var(--poad-accent);color:var(--poad-fg-on-accent)}.poad-nav-drawer .poad-nav-drawer__dot{position:absolute;top:7px;left:calc(50% + 6px);width:7px;height:7px;border-radius:50%;background:var(--poad-danger, #f85149)}.poad-nav-drawer .poad-nav-drawer__foot{flex:none;border-top:1px solid var(--poad-border);padding:10px 14px}.poad-nav-drawer .poad-nav-drawer__foot.is-empty{display:none}.poad-nav-drawer.is-rail .poad-nav-drawer__foot{padding:10px 4px;display:flex;justify-content:center;text-align:center;overflow-wrap:anywhere}.poad-touch .poad-nav-drawer .poad-nav-drawer__item{min-height:44px}@media(prefers-reduced-motion:reduce){.poad-nav-drawer .poad-nav-drawer__panel,.poad-nav-drawer.is-temporary .poad-nav-drawer__panel,.poad-nav-drawer.is-temporary.is-open .poad-nav-drawer__panel,.poad-nav-drawer .poad-nav-drawer__chev{transition:none}}\n"] }]
|
|
9356
|
+
}], ctorParameters: () => [], propDecorators: { panel: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: false }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }, { type: i0.Output, args: ["collapsedChange"] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], railBelow: [{ type: i0.Input, args: [{ isSignal: true, alias: "railBelow", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], closeOnNavigate: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnNavigate", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], dismissableScrim: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissableScrim", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], changed: [{ type: i0.Output, args: ["changed"] }], headerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PoadNavDrawerHeaderDirective), { isSignal: true }] }], footerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PoadNavDrawerFooterDirective), { isSignal: true }] }] } });
|
|
9118
9357
|
|
|
9119
9358
|
/**
|
|
9120
9359
|
* Déclarations (inputs / outputs / models / contenu projeté) de poad-table — classe de base pour tenir la limite de taille du composant.
|
|
@@ -9492,10 +9731,19 @@ class PoadTableComponent extends PoadTableBase {
|
|
|
9492
9731
|
id = poadId('poad-table');
|
|
9493
9732
|
scroller = viewChild('scroller', ...(ngDevMode ? [{ debugName: "scroller" }] : /* istanbul ignore next */ []));
|
|
9494
9733
|
dtEl = viewChild('dt', ...(ngDevMode ? [{ debugName: "dtEl" }] : /* istanbul ignore next */ []));
|
|
9734
|
+
toolsEl = viewChild('tools', ...(ngDevMode ? [{ debugName: "toolsEl" }] : /* istanbul ignore next */ []));
|
|
9735
|
+
/** L'emplacement `[poadTableToolbar]` a-t-il du contenu (relu après chaque rendu) ? */
|
|
9736
|
+
hasTools = signal(false, ...(ngDevMode ? [{ debugName: "hasTools" }] : /* istanbul ignore next */ []));
|
|
9495
9737
|
// ---- état interne ----
|
|
9496
9738
|
searchText = signal('', ...(ngDevMode ? [{ debugName: "searchText" }] : /* istanbul ignore next */ []));
|
|
9497
9739
|
colsMenuOpen = signal(false, ...(ngDevMode ? [{ debugName: "colsMenuOpen" }] : /* istanbul ignore next */ []));
|
|
9498
9740
|
filtersOpen = signal(false, ...(ngDevMode ? [{ debugName: "filtersOpen" }] : /* istanbul ignore next */ []));
|
|
9741
|
+
/** Bouton « Filtres » de la barre en cartes (socle : état, classes). */
|
|
9742
|
+
filtersToggle = computed(() => tableFiltersToggleProps(this.filtersOpen()), ...(ngDevMode ? [{ debugName: "filtersToggle" }] : /* istanbul ignore next */ []));
|
|
9743
|
+
/** Seulement en cartes et quand la barre a des outils à déplier. */
|
|
9744
|
+
showFiltersToggle = computed(() => tableFiltersToggleShown({ stacked: this.resp.stacked(), hasTools: this.hasTools() }), ...(ngDevMode ? [{ debugName: "showFiltersToggle" }] : /* istanbul ignore next */ []));
|
|
9745
|
+
/** Liens de pages : 3 en cartes. */
|
|
9746
|
+
pagerLinks = computed(() => tableResponsivePageLinks(this.resp.stacked(), this.pageLinks()), ...(ngDevMode ? [{ debugName: "pagerLinks" }] : /* istanbul ignore next */ []));
|
|
9499
9747
|
resizingId = signal(null, ...(ngDevMode ? [{ debugName: "resizingId" }] : /* istanbul ignore next */ []));
|
|
9500
9748
|
widths = signal({}, ...(ngDevMode ? [{ debugName: "widths" }] : /* istanbul ignore next */ []));
|
|
9501
9749
|
lazyKids = signal(new Map(), ...(ngDevMode ? [{ debugName: "lazyKids" }] : /* istanbul ignore next */ []));
|
|
@@ -9541,13 +9789,13 @@ class PoadTableComponent extends PoadTableBase {
|
|
|
9541
9789
|
visibleColumns = computed(() => { const gf = this.hideGroupedColumns() ? new Set(this.groupFields()) : null; return this.orderedColumns().filter(c => !c.hidden() && !this.resp.isHidden(c.priority()) && !(gf && c.field() && gf.has(c.field()))); }, ...(ngDevMode ? [{ debugName: "visibleColumns" }] : /* istanbul ignore next */ []));
|
|
9542
9790
|
hiddenByPriority = computed(() => this.columns().filter(c => !c.hidden() && this.resp.isHidden(c.priority())), ...(ngDevMode ? [{ debugName: "hiddenByPriority" }] : /* istanbul ignore next */ []));
|
|
9543
9791
|
hasSelectionColumn = computed(() => !!this.selectionMode(), ...(ngDevMode ? [{ debugName: "hasSelectionColumn" }] : /* istanbul ignore next */ []));
|
|
9544
|
-
hasExpandColumn = computed(() => tableHasExpandColumn({ hasTemplate: !!this.expansionTpl() || (this.showHiddenInExpansion()
|
|
9792
|
+
hasExpandColumn = computed(() => tableHasExpandColumn({ hasTemplate: !!this.expansionTpl() || tableHiddenInExpansion({ showHiddenInExpansion: this.showHiddenInExpansion(), hiddenCount: this.hiddenByPriority().length }), rowExpandable: this.rowExpandable() }), ...(ngDevMode ? [{ debugName: "hasExpandColumn" }] : /* istanbul ignore next */ []));
|
|
9545
9793
|
hasFilterRow = computed(() => { const f = this.showFilterRow(); return f === 'auto' ? this.visibleColumns().some(c => c.filterable()) : !!f; }, ...(ngDevMode ? [{ debugName: "hasFilterRow" }] : /* istanbul ignore next */ []));
|
|
9546
9794
|
hasColumnMenu = computed(() => { const m = this.columnMenu(); return m === 'auto' ? this.columns().some(c => c.sortable() || c.filterable()) || this.reorderableColumns() || this.columnToggle() || this.showGroupZone() : !!m; }, ...(ngDevMode ? [{ debugName: "hasColumnMenu" }] : /* istanbul ignore next */ []));
|
|
9547
9795
|
hasNumberColumn = computed(() => this.showRowNumber(), ...(ngDevMode ? [{ debugName: "hasNumberColumn" }] : /* istanbul ignore next */ []));
|
|
9548
9796
|
/** Drag de lignes effectif (pas de tri actif, ni groupes/arbre/virtuel/empilé). */
|
|
9549
9797
|
rowDragEnabled = computed(() => this.reorderableRows() && !this.sortMetas().length && !this.hierarchical() && !this.virtualScroll() && !this.resp.stacked() && !this.lazy(), ...(ngDevMode ? [{ debugName: "rowDragEnabled" }] : /* istanbul ignore next */ []));
|
|
9550
|
-
hasActionsColumn = computed(() => !!this.rowActionsTpl()
|
|
9798
|
+
hasActionsColumn = computed(() => tableHasActionsColumn({ hasTemplate: !!this.rowActionsTpl(), rowEdit: (this.editMode() === 'row' || this.editMode() === 'row-inline') && this.showRowEditButton() }), ...(ngDevMode ? [{ debugName: "hasActionsColumn" }] : /* istanbul ignore next */ []));
|
|
9551
9799
|
colspan = computed(() => this.visibleColumns().length + (this.hasSelectionColumn() ? 1 : 0) + (this.hasExpandColumn() ? 1 : 0) + (this.hasActionsColumn() ? 1 : 0) + (this.hasNumberColumn() ? 1 : 0) + (this.rowDragEnabled() ? 1 : 0), ...(ngDevMode ? [{ debugName: "colspan" }] : /* istanbul ignore next */ []));
|
|
9552
9800
|
detailPaddingLeft = computed(() => tableDetailPaddingLeft({ selection: this.hasSelectionColumn(), expand: this.hasExpandColumn(), number: this.hasNumberColumn(), drag: this.rowDragEnabled() }), ...(ngDevMode ? [{ debugName: "detailPaddingLeft" }] : /* istanbul ignore next */ []));
|
|
9553
9801
|
hasData = computed(() => this.source().length > 0, ...(ngDevMode ? [{ debugName: "hasData" }] : /* istanbul ignore next */ []));
|
|
@@ -9702,6 +9950,8 @@ class PoadTableComponent extends PoadTableBase {
|
|
|
9702
9950
|
effect(() => { const s = this.scroller(); if (s && this.virtualScroll())
|
|
9703
9951
|
this.virtual.observe(s.nativeElement); });
|
|
9704
9952
|
this.sticky.configure(() => this.stickyKeys(), () => this.scroller()?.nativeElement ?? null);
|
|
9953
|
+
afterEveryRender({ read: () => { const el = this.toolsEl()?.nativeElement; const has = !!el && tableToolsHaveContent(el.childNodes); if (has !== this.hasTools())
|
|
9954
|
+
this.hasTools.set(has); } });
|
|
9705
9955
|
afterRenderEffect(() => { this.visibleColumns(); this.widths(); this.resp.width(); this.hasSelectionColumn(); this.hasExpandColumn(); this.sticky.measure(this.host.nativeElement); });
|
|
9706
9956
|
}
|
|
9707
9957
|
// ---- helpers template ----
|
|
@@ -9738,49 +9988,26 @@ class PoadTableComponent extends PoadTableBase {
|
|
|
9738
9988
|
}
|
|
9739
9989
|
// ---- figées ----
|
|
9740
9990
|
/** Clés (dans l'ordre) des colonnes figées à gauche / droite. */
|
|
9741
|
-
stickyKeys = computed(() => {
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
const leadSticky = this.stickyFirstColumn() || (first && this.stickyOf(first) === 'left');
|
|
9747
|
-
const left = [];
|
|
9748
|
-
if (leadSticky && this.hasNumberColumn())
|
|
9749
|
-
left.push('num');
|
|
9750
|
-
if (leadSticky && this.hasSelectionColumn())
|
|
9751
|
-
left.push('sel');
|
|
9752
|
-
if (leadSticky && this.rowDragEnabled())
|
|
9753
|
-
left.push('drag');
|
|
9754
|
-
if (leadSticky && this.hasExpandColumn())
|
|
9755
|
-
left.push('exp');
|
|
9756
|
-
cols.forEach(c => { if (this.stickyOf(c) === 'left' || (this.stickyFirstColumn() && c === first))
|
|
9757
|
-
left.push(c.id()); });
|
|
9758
|
-
const right = [];
|
|
9759
|
-
cols.forEach(c => { if (this.stickyOf(c) === 'right')
|
|
9760
|
-
right.push(c.id()); });
|
|
9761
|
-
if (this.hasActionsColumn() && this.stickyActions() && this.responsive() === 'scroll')
|
|
9762
|
-
right.push('acts');
|
|
9763
|
-
return { left, right };
|
|
9764
|
-
}, ...(ngDevMode ? [{ debugName: "stickyKeys" }] : /* istanbul ignore next */ []));
|
|
9991
|
+
stickyKeys = computed(() => tableStickyKeys({
|
|
9992
|
+
columns: this.visibleColumns().map(c => ({ id: c.id(), sticky: c.sticky() })), pinned: this.pinnedColumns(), stickyFirstColumn: this.stickyFirstColumn(),
|
|
9993
|
+
number: this.hasNumberColumn(), selection: this.hasSelectionColumn(), drag: this.rowDragEnabled(), expand: this.hasExpandColumn(),
|
|
9994
|
+
actions: this.hasActionsColumn(), stickyActions: this.stickyActions(), responsive: this.responsive(), stacked: this.resp.stacked(),
|
|
9995
|
+
}), ...(ngDevMode ? [{ debugName: "stickyKeys" }] : /* istanbul ignore next */ []));
|
|
9765
9996
|
/** Côté figé effectif d'une colonne : épinglage à l'exécution (`pinnedColumns`) prioritaire sur `sticky`. */
|
|
9766
|
-
stickyOf(c) {
|
|
9997
|
+
stickyOf(c) { return tableStickySideOf(c.id(), c.sticky(), this.pinnedColumns()); }
|
|
9767
9998
|
/** Épingle une colonne à gauche/droite (null = détacher). */
|
|
9768
9999
|
pinColumn(col, side) {
|
|
9769
10000
|
const c = this.colOf(col);
|
|
9770
10001
|
if (!c)
|
|
9771
10002
|
return;
|
|
9772
|
-
|
|
9773
|
-
if (side === c.sticky())
|
|
9774
|
-
delete next[c.id()];
|
|
9775
|
-
else
|
|
9776
|
-
next[c.id()] = side; // null explicite = détache une colonne déclarée sticky
|
|
9777
|
-
this.pinnedColumns.set(next);
|
|
10003
|
+
this.pinnedColumns.set(tablePinColumn(this.pinnedColumns(), c.id(), c.sticky(), side)); // null explicite = détache une colonne déclarée sticky
|
|
9778
10004
|
this.columnPin.emit({ column: c, side });
|
|
9779
10005
|
}
|
|
9780
10006
|
stickyClass(key) { return this.sticky.classFor(key); }
|
|
9781
10007
|
stickyLeft(key) { return this.sticky.left(key); }
|
|
9782
10008
|
stickyRight(key) { return this.sticky.right(key); }
|
|
9783
|
-
|
|
10009
|
+
/** Défilement : ombres des colonnes figées (et nouvelle mesure, comme les autres rendus), tranche visible. */
|
|
10010
|
+
onScroll() { const el = this.scroller()?.nativeElement ?? null; this.sticky.measure(this.host.nativeElement); this.virtual.onScroll(el); }
|
|
9784
10011
|
// ---- tri ----
|
|
9785
10012
|
/** @internal Appelée par le gabarit. */
|
|
9786
10013
|
isSorted(c) { return this.sortMetas().some(m => m.field === c.effectiveSortField()); }
|
|
@@ -10350,7 +10577,7 @@ class PoadTableComponent extends PoadTableBase {
|
|
|
10350
10577
|
poadDownloadCsv([cols.map(c => c.header() || c.field()), ...data.map(r => cols.map(c => { const v = poadResolve(r, c.field()); return this.cellFormatter() ? this.cellFormatter()(v, c, r) : v; }))], opts.filename ?? 'export', opts.separator);
|
|
10351
10578
|
}
|
|
10352
10579
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10353
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.20", type: PoadTableComponent, isStandalone: true, selector: "poad-table", host: { properties: { "class.is-dense": "dense()", "class.is-striped": "striped()", "class.is-hoverable": "hoverable()", "class.is-bordered": "bordered()", "class.is-borderless": "borderless()", "class.is-sticky-header": "stickyHeader()", "class.has-scroll-height": "!!scrollHeight()", "class.is-resizable": "resizableColumns()", "class.acts-always": "rowActionsAlwaysVisible()", "class.is-loading": "loading()", "class.is-tree": "isTree()", "class.is-grouped": "isGrouped()", "class.has-tree-lines": "showTreeLines()", "class.is-stacked": "resp.stacked()", "class.hide-p2": "resp.hiddenPriorities().has(2)", "class.hide-p3": "resp.hiddenPriorities().has(3)", "class.hide-p4": "resp.hiddenPriorities().has(4)", "class.hide-p5": "resp.hiddenPriorities().has(5)", "class.is-scrolled-x": "sticky.scrolledX()", "class.is-scrolled-x-end": "sticky.scrolledXEnd()", "class.is-virtual": "virtualScroll()", "class.is-reorderable": "reorderableColumns()", "class.has-row-numbers": "showRowNumber()", "class.rows-draggable": "rowDragEnabled()", "class.has-col-menu": "hasColumnMenu()", "class.edit-cell": "editMode() === \"cell\"", "class.edit-row": "editMode() === \"row\" || editMode() === \"row-inline\"", "class.show-edit-icon": "editMode() === \"cell\" && showEditIcon()", "style.--_scroll-h": "scrollHeight() || null", "style.--_detail-pl": "detailPaddingLeft()", "style.--_indent": "indent()" }, classAttribute: "poad-table" }, viewQueries: [{ propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true, isSignal: true }, { propertyName: "dtEl", first: true, predicate: ["dt"], descendants: true, isSignal: true }, { propertyName: "headerMenu", first: true, predicate: ["hmenu"], descendants: true, isSignal: true }, { propertyName: "filterMenu", first: true, predicate: ["fmenu"], descendants: true, isSignal: true }, { propertyName: "inMenu", first: true, predicate: ["inmenu"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<!-- Colonnes d\u00E9finies par l'entr\u00E9e [colonnes] : rendues en <poad-column> R\u00C9ELS (une\n colonne ne dessine rien, :host display none) et r\u00E9cup\u00E9r\u00E9es par la requ\u00EAte de VUE de\n la base \u2014 le moteur ne consomme qu'une seule esp\u00E8ce de colonne. -->\n@for (d of colonnes(); track d.field) {\n <poad-column\n [field]=\"d.field\"\n [header]=\"d.header ?? d.field\"\n [dataType]=\"d.dataType ?? 'text'\"\n [align]=\"d.align ?? 'left'\"\n [width]=\"d.width ?? ''\"\n [sortable]=\"d.sortable ?? false\"\n />\n}\n<div class=\"dt\" #dt [class]=\"'dt ' + styleClass()\">\n <!-- barre de s\u00E9lection contextuelle (remplace la barre d'outils) -->\n @if (selectedCount() > 0 && showSelectionBar()) {\n <div class=\"dt-sel\" role=\"region\" aria-live=\"polite\">\n <poad-checkbox [value]=\"allState() === 'all'\" [indeterminate]=\"allState() === 'some'\" [ariaLabel]=\"i18n.t('table.selectAll')\" (changed)=\"toggleAll()\"/>\n <span>{{ selectedLabel() === undefined && selectedLabelPlural() === undefined ? i18n.t('table.selectedCount', { n: selectedCount() }) : selectedCount() + ' ' + (selectedCount() > 1 ? (selectedLabelPlural() ?? selectedLabel()) : (selectedLabel() ?? selectedLabelPlural())) }}</span>\n <span class=\"dt-sel__grow\"></span>\n <ng-content select=\"[poadTableSelectionBar]\"/>\n <button type=\"button\" class=\"dt-sel__clear\" [attr.aria-label]=\"i18n.t('table.clearSelection')\" (click)=\"clearSelection()\"><poad-icon name=\"x\" [size]=\"14\"/></button>\n </div>\n } @else if (showToolbar()) {\n <div class=\"dt-bar\">\n @if (title()) {<span class=\"dt-bar__title\">{{ title() }}</span>}\n @if (showCount()) {<span class=\"dt-bar__count\">{{ count() ?? totalFiltered() }}</span>}\n @if (resp.stacked()) {\n <button type=\"button\" class=\"dt-bar__btn dt-bar__filters\" [class.is-on]=\"filtersOpen()\" [attr.aria-expanded]=\"filtersOpen()\" (click)=\"filtersOpen.set(!filtersOpen())\">\n <poad-icon name=\"filter\" [size]=\"13\"/>{{ i18n.text(filtersLabel(), 'table.filters') }}@if (activeFilterCount() > 0) {<span class=\"dt-bar__count\">{{ activeFilterCount() }}</span>}\n </button>\n }\n <span class=\"dt-bar__tools\" [class.is-open]=\"filtersOpen()\"><ng-content select=\"[poadTableToolbar]\"/></span>\n <span class=\"dt-bar__grow\"></span>\n @if (showSearch()) {\n <div class=\"dt-bar__search\">\n <poad-icon name=\"search\" [size]=\"14\"/>\n <input type=\"search\" [placeholder]=\"i18n.text(searchPlaceholder(), 'table.searchPlaceholder')\" [value]=\"searchText()\" (input)=\"onSearch($any($event.target).value)\" [attr.aria-label]=\"i18n.text(searchPlaceholder(), 'table.searchPlaceholder')\"/>\n @if (searchText()) {<button type=\"button\" class=\"dt-bar__clear\" [attr.aria-label]=\"i18n.t('table.clearSearch')\" (click)=\"onSearch('', true)\"><poad-icon name=\"x\" [size]=\"12\"/></button>}\n </div>\n }\n <span class=\"dt-bar__tools-end\"><ng-content select=\"[poadTableToolbarEnd]\"/></span>\n @if (columnToggle()) {\n <div class=\"dt-bar__cols\">\n <button type=\"button\" class=\"dt-bar__btn\" [class.is-on]=\"colsMenuOpen()\" aria-haspopup=\"true\" [attr.aria-expanded]=\"colsMenuOpen()\" (click)=\"colsMenuOpen.set(!colsMenuOpen())\">\n {{ i18n.text(columnsLabel(), 'table.columns') }} <poad-icon name=\"chevron-down\" [size]=\"12\"/>\n </button>\n @if (colsMenuOpen()) {\n <div class=\"dt-bar__menu\" role=\"menu\" (keydown.escape)=\"colsMenuOpen.set(false)\">\n <div class=\"dt-bar__menu-title\">{{ i18n.text(columnsLabel(), 'table.columns') }}</div>\n @for (c of orderedColumns(); track c.id(); let ci = $index; let first = $first; let last = $last) {\n <label [class.is-locked]=\"!c.toggleable()\">\n <poad-checkbox [value]=\"!c.hidden()\" [disabled]=\"!c.toggleable()\" (changed)=\"toggleColumn(c, !$event)\"/>\n <span>{{ c.header() || c.field() }}</span>\n @if (reorderableColumns()) {\n <span class=\"mv\" (click)=\"$event.stopPropagation(); $event.preventDefault()\">\n <button type=\"button\" [attr.aria-label]=\"i18n.t('table.moveUp')\" [disabled]=\"first\" (click)=\"moveColumn(ci, ci - 1)\"><poad-icon name=\"chevron-up\" [size]=\"12\"/></button>\n <button type=\"button\" [attr.aria-label]=\"i18n.t('table.moveDown')\" [disabled]=\"last\" (click)=\"moveColumn(ci, ci + 1)\"><poad-icon name=\"chevron-down\" [size]=\"12\"/></button>\n </span>\n }\n </label>\n }\n </div>\n }\n </div>\n }\n @if (showDensityToggle()) {\n <button type=\"button\" class=\"dt-bar__btn is-ghost dt-bar__density\" [class.is-on]=\"dense()\" [attr.aria-pressed]=\"dense()\" [attr.aria-label]=\"i18n.t('table.density')\" [title]=\"i18n.t('table.density')\" (click)=\"dense.set(!dense())\"><poad-icon name=\"chevrons-up-down\" [size]=\"14\"/></button>\n }\n </div>\n }\n\n @if (showGroupZone() && !resp.stacked()) {\n <div class=\"dt-gz\" [class.is-empty]=\"!groupFields().length\" cdkDropList [id]=\"gzId\" cdkDropListOrientation=\"horizontal\" [cdkDropListData]=\"groupFields()\" [cdkDropListEnterPredicate]=\"gzEnter\" (cdkDropListDropped)=\"onGroupZoneDrop($event)\">\n <poad-icon name=\"layers\" [size]=\"14\"/>\n @if (!groupFields().length) {<span class=\"dt-gz__hint\">{{ i18n.text(groupZoneLabel(), 'table.groupZone') }}</span>}\n @for (f of groupFields(); track f) {\n <span class=\"dt-gz__chip\" cdkDrag [cdkDragData]=\"f\" cdkDragLockAxis=\"x\"><poad-icon name=\"drag\" [size]=\"11\" class=\"dt-gz__drag\"/><span>{{ groupChipLabel(f) }}</span><button type=\"button\" [attr.aria-label]=\"i18n.t('table.ungroupBy', { label: groupChipLabel(f) })\" (click)=\"ungroup(f)\"><poad-icon name=\"x\" [size]=\"11\"/></button></span>\n }\n </div>\n }\n\n <div class=\"dt-scroll\" #scroller (scroll)=\"onScroll()\">\n @if (loading() && hasData()) {<div class=\"dt-loading\"><poad-icon name=\"loader\" [size]=\"22\" spin/></div>}\n @let ta = tableAttrs();\n <table class=\"tbl\" [class]=\"'tbl ' + tableClass()\" [style]=\"tableStyle()\" [attr.aria-busy]=\"ta['aria-busy']\" [attr.aria-rowcount]=\"ta['aria-rowcount']\" [attr.role]=\"ta.role\" [attr.aria-multiselectable]=\"ta['aria-multiselectable']\">\n @if (captionTpl()) {<caption><ng-container *ngTemplateOutlet=\"captionTpl()!.tpl\"/></caption>}\n <colgroup>\n @if (hasNumberColumn()) {<col style=\"width:44px\">}\n @if (hasSelectionColumn()) {<col style=\"width:36px\">}\n @if (rowDragEnabled()) {<col style=\"width:28px\">}\n @if (hasExpandColumn()) {<col style=\"width:30px\">}\n @for (c of visibleColumns(); track c.id()) {<col [style.width]=\"colWidth(c)\" [style.min-width]=\"c.minWidth() || null\" [style.max-width]=\"c.maxWidth() || null\">}\n @if (hasActionsColumn()) {<col [style.width]=\"rowActionsWidth()\">}\n </colgroup>\n <thead>\n @let hgRows = headerGroups().length && !resp.stacked() ? 1 : 0;\n @if (hgRows) {\n <tr class=\"hg\" [attr.aria-rowindex]=\"headerRowAttrs(0)['aria-rowindex']\">\n @if (hasNumberColumn()) {<th [class]=\"stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\"></th>}\n @if (hasSelectionColumn()) {<th [class]=\"stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\"></th>}\n @if (rowDragEnabled()) {<th [class]=\"stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\"></th>}\n @if (hasExpandColumn()) {<th [class]=\"stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\"></th>}\n @for (g of headerGroups(); track $index) {<th scope=\"colgroup\" [attr.colspan]=\"g.span\" [class]=\"'hg-cell ' + (g.class || '')\">{{ g.header }}</th>}\n @if (hasActionsColumn()) {<th [class]=\"stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"></th>}\n </tr>\n }\n <tr [attr.aria-rowindex]=\"headerRowAttrs(hgRows)['aria-rowindex']\" cdkDropList cdkDropListOrientation=\"horizontal\" [cdkDropListDisabled]=\"!reorderableColumns() && !showGroupZone()\" [cdkDropListSortingDisabled]=\"!reorderableColumns()\" [cdkDropListConnectedTo]=\"showGroupZone() ? [gzId] : []\" (cdkDropListDropped)=\"onColumnDrop($event)\">\n @if (hasNumberColumn()) {<th class=\"col-num\" scope=\"col\" data-sk=\"num\" [class]=\"'col-num ' + stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\">#</th>}\n @if (hasSelectionColumn()) {\n <th class=\"col-sel\" scope=\"col\" data-sk=\"sel\" [class]=\"'col-sel ' + stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\">\n @if (selectionMode() === 'multiple' && selectAll()) {\n <poad-checkbox [value]=\"allState() === 'all'\" [indeterminate]=\"allState() === 'some'\" [ariaLabel]=\"i18n.t('table.selectAll')\" (changed)=\"toggleAll()\"/>\n }\n </th>\n }\n @if (rowDragEnabled()) {<th class=\"col-drag\" scope=\"col\" data-sk=\"drag\" [class]=\"'col-drag ' + stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\"><span hidden>{{ i18n.t('table.move') }}</span></th>}\n @if (hasExpandColumn()) {<th class=\"col-exp\" scope=\"col\" data-sk=\"exp\" [class]=\"'col-exp ' + stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\"><span hidden>{{ i18n.t('table.detail') }}</span></th>}\n @for (c of visibleColumns(); track c.id()) {\n <th scope=\"col\" [attr.data-sk]=\"c.id()\" [class]=\"thClass(c) + (canDrag(c) ? ' can-drag' : '') + (showsMenu(c) ? ' has-menu' : '') + (hasColFilter(c) ? ' is-filtered' : '')\" [attr.aria-sort]=\"ariaSort(c)\" [style.width]=\"colWidth(c)\" [style.left.px]=\"stickyLeft(c.id())\" [style.right.px]=\"stickyRight(c.id())\"\n cdkDrag [cdkDragDisabled]=\"!canDrag(c)\" [cdkDragData]=\"c\" [cdkDragLockAxis]=\"showGroupZone() ? null : 'x'\" cdkDragPreviewClass=\"dt-th-preview\" [cdkDragBoundary]=\"showGroupZone() ? '' : '.tbl thead'\">\n @if (canDrag(c)) {<span class=\"dh\" cdkDragHandle aria-hidden=\"true\" [title]=\"i18n.t('table.moveColumn')\"><poad-icon name=\"drag\" [size]=\"12\"/></span>}\n @if (c.headerTpl()) {\n <ng-container *ngTemplateOutlet=\"c.headerTpl()!.tpl; context: { $implicit: c }\"/>\n } @else if (c.sortable()) {\n <button type=\"button\" class=\"hd\" (click)=\"sort(c, $event)\" [attr.aria-label]=\"i18n.t('table.sortBy', { column: c.header() })\">\n <span class=\"hd-txt\">{{ c.header() }}</span>\n <poad-icon [name]=\"sortIcon(c)\" [size]=\"12\"/>\n @if (sortMode() === 'multiple' && sortIndex(c) > 0) {<span class=\"hd-idx\">{{ sortIndex(c) }}</span>}\n </button>\n } @else {\n <span class=\"hd\"><span class=\"hd-txt\">{{ c.header() }}</span></span>\n }\n @if (showsMenu(c)) {<button type=\"button\" class=\"hm\" [class.is-on]=\"menuColumn() === c && !!headerMenu()?.visible()\" [attr.aria-label]=\"i18n.t('table.columnMenu')\" aria-haspopup=\"menu\" (click)=\"openHeaderMenu(c, $event)\" (pointerdown)=\"$event.stopPropagation()\"><poad-icon name=\"more-vertical\" [size]=\"13\"/></button>}\n @if (isResizable(c)) {<span class=\"rz\" [class.is-active]=\"resizingId() === c.id()\" (pointerdown)=\"startResize($event, c)\" aria-hidden=\"true\"></span>}\n </th>\n }\n @if (hasActionsColumn()) {<th class=\"col-acts\" scope=\"col\" data-sk=\"acts\" [class]=\"'col-acts ' + stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"><span hidden>{{ i18n.t('table.actions') }}</span></th>}\n </tr>\n @if (hasFilterRow()) {\n <tr class=\"flt\" [attr.aria-rowindex]=\"headerRowAttrs(hgRows + 1)['aria-rowindex']\">\n @if (hasNumberColumn()) {<th [class]=\"stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\"></th>}\n @if (hasSelectionColumn()) {<th [class]=\"stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\"></th>}\n @if (rowDragEnabled()) {<th [class]=\"stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\"></th>}\n @if (hasExpandColumn()) {<th [class]=\"stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\"></th>}\n @for (c of visibleColumns(); track c.id()) {\n <th [class]=\"stickyClass(c.id())\" [style.left.px]=\"stickyLeft(c.id())\" [style.right.px]=\"stickyRight(c.id())\">\n @if (c.filterable()) {\n @if (c.filterTpl()) {\n <ng-container *ngTemplateOutlet=\"c.filterTpl()!.tpl; context: { $implicit: c, value: filterValue(c), filter: filterFn(c) }\"/>\n } @else {\n @let kind = filterKind(c);\n @let op = filterOp(c);\n <div class=\"flt-cell\" [class.is-active]=\"hasColFilter(c)\" [class.is-range]=\"op.range\">\n @if (kind === 'boolean') {\n <poad-select size=\"sm\" clearable [options]=\"booleanOptions()\" [value]=\"filterValue(c)\" [placeholder]=\"c.filterPlaceholder() || i18n.t('filter.any')\" [ariaLabel]=\"i18n.t('filter.column', { column: c.header() })\" (changed)=\"setFilter(c, $event)\"/>\n } @else if (kind === 'select' && op.mode !== 'eq') {\n <button type=\"button\" class=\"flt-in\" [class.is-ph]=\"!filterArray(c).length\" [attr.aria-label]=\"i18n.t('filter.column', { column: c.header() })\" (click)=\"openInMenu(c, $event)\">\n <span>{{ filterArray(c).length ? i18n.t('filter.selectedCount', { n: filterArray(c).length }) : (c.filterPlaceholder() || i18n.t('filter.any')) }}</span><poad-icon name=\"chevron-down\" [size]=\"11\"/>\n </button>\n } @else if (kind === 'select') {\n <poad-select size=\"sm\" clearable [options]=\"c.filterOptions()\" [value]=\"filterValue(c)\" [placeholder]=\"c.filterPlaceholder() || i18n.t('filter.any')\" [ariaLabel]=\"i18n.t('filter.column', { column: c.header() })\" (changed)=\"setFilter(c, $event, 'eq')\"/>\n } @else if (!op.needsValue) {\n <span class=\"flt-txt\">{{ opLabel(op) }}</span>\n } @else if (op.range) {\n <input [type]=\"kind === 'number' ? 'number' : kind === 'date' ? 'date' : 'search'\" [value]=\"filterPart(c, 0)\" [placeholder]=\"i18n.t('filter.min')\" (input)=\"setFilterPart(c, 0, $any($event.target).value)\" [attr.aria-label]=\"i18n.t('filter.columnMin', { column: c.header() })\"/>\n <input [type]=\"kind === 'number' ? 'number' : kind === 'date' ? 'date' : 'search'\" [value]=\"filterPart(c, 1)\" [placeholder]=\"i18n.t('filter.max')\" (input)=\"setFilterPart(c, 1, $any($event.target).value)\" [attr.aria-label]=\"i18n.t('filter.columnMax', { column: c.header() })\"/>\n } @else {\n <input [type]=\"kind === 'number' ? 'number' : kind === 'date' ? 'date' : 'search'\" [value]=\"filterPart(c, 0)\" [placeholder]=\"c.filterPlaceholder() || opLabel(op)\" (input)=\"setFilterDebounced(c, $any($event.target).value)\" [attr.aria-label]=\"i18n.t('filter.column', { column: c.header() })\"/>\n }\n @if (kind !== 'boolean') {\n <button type=\"button\" class=\"flt-op\" [class.is-on]=\"hasColFilter(c) || op.mode !== filterOp(c).mode\" [attr.aria-label]=\"i18n.t('filter.operator', { label: opLabel(op) })\" [title]=\"opLabel(op)\" (click)=\"openFilterMenu(c, $event)\"><poad-icon name=\"filter\" [size]=\"12\"/></button>\n }\n @if (hasColFilter(c)) {<button type=\"button\" class=\"flt-x\" [attr.aria-label]=\"i18n.t('filter.clear')\" (click)=\"clearColumnFilter(c)\"><poad-icon name=\"x\" [size]=\"11\"/></button>}\n </div>\n }\n }\n </th>\n }\n @if (hasActionsColumn()) {<th [class]=\"stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"></th>}\n </tr>\n }\n </thead>\n <tbody cdkDropList [cdkDropListDisabled]=\"!rowDragEnabled()\" cdkDropListLockAxis=\"y\" (cdkDropListDropped)=\"onRowDrop($event)\">\n @if (bodyState() === 'skeleton') {\n @for (i of skeletonRows(); track i) {\n <tr class=\"dt-row is-skeleton\" aria-hidden=\"true\">\n @if (hasNumberColumn()) {<td class=\"col-num\"></td>}\n @if (hasSelectionColumn()) {<td class=\"col-sel\"></td>}\n @if (rowDragEnabled()) {<td class=\"col-drag\"></td>}\n @if (hasExpandColumn()) {<td class=\"col-exp\"></td>}\n @for (c of visibleColumns(); track c.id()) {<td [class]=\"tdClass(c)\"><div class=\"skel\" [style.width.%]=\"skeletonWidth(i, $index)\" [style.margin-left]=\"alignOf(c) === 'right' ? 'auto' : null\"></div></td>}\n @if (hasActionsColumn()) {<td></td>}\n </tr>\n }\n } @else if (bodyState() === 'empty') {\n <tr class=\"dt-empty\"><td [attr.colspan]=\"colspan()\">\n @if (emptyTpl()) {<ng-container *ngTemplateOutlet=\"emptyTpl()!.tpl\"/>}\n @else {\n <div class=\"empty\">\n @if (emptyIcon()) {<poad-icon [name]=\"emptyIcon()\" [size]=\"26\" [strokeWidth]=\"1.5\"/>}\n <b>{{ i18n.text(emptyMessage(), 'table.empty') }}</b>\n @if (emptyHint()) {<span>{{ emptyHint() }}</span>}\n </div>\n }\n </td></tr>\n } @else {\n @if (virtual.range().topPad > 0) {<tr class=\"dt-vpad\" aria-hidden=\"true\"><td [attr.colspan]=\"colspan()\" [style.height.px]=\"virtual.range().topPad\"></td></tr>}\n @for (d of renderRows(); track d.trackKey; let vi = $index) {\n @let i = vi + virtual.range().start;\n @if (d.kind === 'group') {\n <!-- en-t\u00EAte de groupe -->\n <tr class=\"dt-group\" [class.is-expanded]=\"d.node!.expanded\" [style.--_lvl]=\"d.level\" role=\"row\" [attr.aria-level]=\"d.level + 1\" [attr.aria-expanded]=\"d.node!.expanded\" [attr.aria-posinset]=\"d.node!.posInSet\" [attr.aria-setsize]=\"d.node!.setSize\">\n <td [attr.colspan]=\"colspan()\" class=\"dt-group__cell\">\n <div class=\"dt-group__inner\">\n @if (hasSelectionColumn() && selectionMode() === 'multiple') {\n <poad-checkbox [value]=\"nodeState(d) === 'on'\" [indeterminate]=\"nodeState(d) === 'some'\" [ariaLabel]=\"i18n.t('table.selectGroup', { label: d.node!.group!.label })\" (changed)=\"toggleGroupSelection(d, $event)\"/>\n }\n <button type=\"button\" class=\"exp\" [attr.aria-expanded]=\"d.node!.expanded\" [attr.aria-label]=\"d.node!.expanded ? i18n.t('common.collapse') : i18n.t('common.expand')\" (click)=\"toggleGroup(d.node!)\"><poad-icon name=\"chevron-right\" [size]=\"13\"/></button>\n @if (groupHeaderTpl()) {\n <ng-container *ngTemplateOutlet=\"groupHeaderTpl()!.tpl; context: groupCtx(d)\"/>\n } @else {\n <span class=\"dt-group__label\">{{ d.node!.group!.label }}</span>\n <span class=\"dt-group__count\">{{ d.node!.group!.count }}</span>\n }\n </div>\n </td>\n </tr>\n } @else if (d.kind === 'groupFooter') {\n <!-- pied de groupe (agr\u00E9gats) -->\n <tr class=\"dt-group-foot\" [style.--_lvl]=\"d.level\">\n @if (groupFooterTpl()) {\n <td [attr.colspan]=\"colspan()\"><ng-container *ngTemplateOutlet=\"groupFooterTpl()!.tpl; context: groupCtx(d)\"/></td>\n } @else {\n @if (hasNumberColumn()) {<td class=\"col-num\"></td>}\n @if (hasSelectionColumn()) {<td class=\"col-sel\"></td>}\n @if (rowDragEnabled()) {<td class=\"col-drag\"></td>}\n @if (hasExpandColumn()) {<td class=\"col-exp\"></td>}\n @for (c of visibleColumns(); track c.id(); let ci = $index) {\n <td [class]=\"tdClass(c)\" [attr.data-l]=\"c.header()\">\n @if (ci === 0 && !hasAggregate(c)) {<span class=\"dt-group-foot__label\">{{ i18n.t('table.total', { label: d.node!.group!.label }) }}</span>}\n @else if (hasAggregate(c)) {{{ formatCell(d.node!.group!.aggregates[c.field()], c) }}}\n </td>\n }\n @if (hasActionsColumn()) {<td></td>}\n }\n </tr>\n } @else if (resp.stacked() && cardTpl()) {\n <!-- carte custom (mode stack) -->\n @let ca = rowAttrs(d, i);\n <tr class=\"dt-row dt-card\" [class]=\"rowClasses(d.row, i, d)\" [style]=\"rowStyle()?.(d.row, i) || null\" [attr.tabindex]=\"ca.tabindex\" [attr.aria-selected]=\"ca.selected\" [attr.aria-rowindex]=\"ca.rowindex\"\n (click)=\"onRowClick(d.row, i, $event, d)\" (keydown)=\"onRowKey(d, i, $event)\" (focus)=\"onRowFocus(d)\">\n <td [attr.colspan]=\"colspan()\"><ng-container *ngTemplateOutlet=\"cardTpl()!.tpl; context: { $implicit: d.row, rowIndex: i, node: d.node, selected: isSelected(d.row) }\"/></td>\n </tr>\n } @else {\n <!-- ligne -->\n @let ra = rowAttrs(d, i);\n <tr class=\"dt-row\" [class]=\"rowClasses(d.row, i, d)\" [style]=\"rowStyle()?.(d.row, i) || null\" [style.--_lvl]=\"d.level\" [attr.data-key]=\"d.key\" [class.is-editing-row]=\"isRowEditing(d.row)\"\n cdkDrag [cdkDragDisabled]=\"!canDragRow(d.row)\" [cdkDragData]=\"d.row\" cdkDragLockAxis=\"y\" cdkDragPreviewClass=\"dt-tr-preview\" cdkDragBoundary=\".tbl\"\n [attr.tabindex]=\"ra.tabindex\" [attr.aria-selected]=\"ra.selected\" [attr.aria-rowindex]=\"ra.rowindex\"\n [attr.role]=\"hierarchical() ? 'row' : null\" [attr.aria-level]=\"hierarchical() ? d.level + 1 : null\" [attr.aria-expanded]=\"d.node?.hasChildren ? d.node!.expanded : null\"\n [attr.aria-setsize]=\"d.node ? d.node.setSize : null\" [attr.aria-posinset]=\"d.node ? d.node.posInSet : null\"\n (click)=\"onRowClick(d.row, i, $event, d)\" (dblclick)=\"rowDblClick.emit({ row: d.row, index: i, event: $event })\" (keydown)=\"onRowKey(d, i, $event)\" (focus)=\"onRowFocus(d)\">\n @if (hasNumberColumn()) {<td class=\"col-num\" [class]=\"'col-num ' + stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\">{{ rowNumber(d) }}</td>}\n @if (hasSelectionColumn()) {\n <td class=\"col-sel\" [class]=\"'col-sel ' + stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\">\n @if (canSelect(d.row)) {\n @if (selectionMode() === 'multiple') {\n <poad-checkbox [value]=\"nodeState(d) === 'on'\" [indeterminate]=\"nodeState(d) === 'some'\" [ariaLabel]=\"i18n.t('table.selectRow', { index: i + 1 })\" (changed)=\"toggleRow(d.row, i, $event)\"/>\n } @else {\n <poad-checkbox [value]=\"isSelected(d.row)\" [ariaLabel]=\"i18n.t('table.selectRow', { index: i + 1 })\" (changed)=\"selectSingle(d.row, i)\"/>\n }\n }\n </td>\n }\n @if (rowDragEnabled()) {\n <td class=\"col-drag\" [class]=\"'col-drag ' + stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\">\n @if (canDragRow(d.row)) {<span class=\"rdh\" cdkDragHandle [title]=\"i18n.t('table.moveRow')\" aria-hidden=\"true\"><poad-icon name=\"drag\" [size]=\"13\"/></span>}\n </td>\n }\n @if (hasExpandColumn()) {\n <td class=\"col-exp\" [class]=\"'col-exp ' + stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\">\n @if (canExpand(d.row)) {\n <button type=\"button\" class=\"exp\" [attr.aria-expanded]=\"isExpanded(d.row)\" [attr.aria-label]=\"isExpanded(d.row) ? i18n.t('common.collapse') : i18n.t('common.expand')\" (click)=\"toggleExpand(d.row, $event)\"><poad-icon name=\"chevron-right\" [size]=\"13\"/></button>\n }\n </td>\n }\n @for (c of visibleColumns(); track c.id(); let cFirst = $first) {\n <td [class]=\"tdClass(c) + ' ' + stickyClass(c.id()) + (isTreeColumn(c) ? ' dt-tree-cell' : '') + (cFirst ? ' dt-first' : '') + (editUi.canEditCell(c) ? ' is-editable' : '') + (edit.isEditing(d.row, c) ? ' is-editing' : '')\"\n [style.left.px]=\"stickyLeft(c.id())\" [style.right.px]=\"stickyRight(c.id())\" [attr.data-l]=\"c.header()\" [attr.data-col]=\"c.editable() ? c.id() : null\"\n (click)=\"editUi.onCellClick(d.row, c, $event, false)\" (dblclick)=\"editUi.onCellClick(d.row, c, $event, true)\">\n @if (edit.isEditing(d.row, c) && c.field()) {\n <!-- \u00E9diteur inline (mode cell ou row) -->\n <div class=\"dt-editor\" [class.is-invalid]=\"!!edit.cellError(d.row, c)\" (click)=\"$event.stopPropagation()\" (dblclick)=\"$event.stopPropagation()\" (keydown)=\"editUi.onKey(d.row, c, $event)\" (focusout)=\"editUi.onBlur(d.row, c)\">\n @if (c.editorTpl()) {\n <ng-container *ngTemplateOutlet=\"c.editorTpl()!.tpl; context: editUi.ctxFor(d.row, c, i)\"/>\n } @else {\n @switch (c.editor()) {\n @case ('select') {\n <!-- liste d\u00E9roulante de la biblioth\u00E8que (jamais de select natif) ; panneau en popover : le focus reste dans la cellule -->\n <poad-select #sel poadEditFocus mobile=\"popover\" [options]=\"c.effectiveEditorOptions()\" [value]=\"edit.valueOf(d.row, c)\" [ariaLabel]=\"c.header()\" [invalid]=\"!!edit.cellError(d.row, c)\"\n (changed)=\"editUi.onSelectPick(d.row, c, $event)\" (keydown)=\"editUi.onSelectKey(d.row, c, $event, sel.isOpen())\"/>\n }\n @case ('checkbox') {<input type=\"checkbox\" poadEditFocus [checked]=\"!!edit.valueOf(d.row, c)\" [attr.aria-label]=\"c.header()\" (change)=\"editUi.onInput(d.row, c, $any($event.target).checked)\"/>}\n @case ('textarea') {<textarea poadEditFocus rows=\"3\" [value]=\"edit.valueOf(d.row, c) ?? ''\" [attr.aria-label]=\"c.header()\" (input)=\"editUi.onInput(d.row, c, $any($event.target).value)\"></textarea>}\n @default {<input poadEditFocus [type]=\"editUi.inputType(c)\" [value]=\"edit.valueOf(d.row, c) ?? ''\" [attr.aria-label]=\"c.header()\" [attr.aria-invalid]=\"edit.cellError(d.row, c) ? 'true' : null\" (input)=\"editUi.onInput(d.row, c, $any($event.target).value)\"/>}\n }\n }\n @if (edit.cellError(d.row, c)) {<span class=\"dt-editor__err\" role=\"alert\">{{ edit.cellError(d.row, c) }}</span>}\n </div>\n } @else {\n @if (editUi.canEditCell(c) && showEditIcon()) {<button type=\"button\" class=\"ce\" tabindex=\"-1\" [attr.aria-label]=\"i18n.t('common.edit')\" (click)=\"$event.stopPropagation(); editUi.startEdit(d.row, c)\"><poad-icon name=\"edit\" [size]=\"11\"/></button>}\n @if (isTreeColumn(c) && d.node) {\n <span class=\"dt-tree-wrap\">\n <span class=\"poad-tree-toggle\" [style.--_lvl]=\"d.level\">\n @if (showTreeLines()) { @for (l of levelsOf(d.level); track l) {<i class=\"tl\" aria-hidden=\"true\"></i>} }\n @else {<i class=\"ind\" aria-hidden=\"true\"></i>}\n @let tp = treeToggle(d.node);\n <button type=\"button\" [class]=\"tp.className\" [attr.tabindex]=\"tp.tabindex\"\n [attr.aria-expanded]=\"tp['aria-expanded']\" [attr.aria-label]=\"i18n.t(tp.labelKey)\" (click)=\"toggleNode(d.node, $event)\">\n @if (tp.loading) {<poad-icon name=\"loader\" [size]=\"12\" spin/>} @else {<poad-icon name=\"chevron-right\" [size]=\"13\"/>}\n </button>\n @if (treeIconOf(d.row)) {<poad-icon class=\"ic\" [name]=\"treeIconOf(d.row)!\" [size]=\"14\"/>}\n </span>\n @if (c.cellTpl()) {\n <ng-container *ngTemplateOutlet=\"c.cellTpl()!.tpl; context: { $implicit: d.row, value: cell(d.row, c), rowIndex: i, column: c, level: d.level, expanded: d.node?.expanded ?? false, hasChildren: d.node?.hasChildren ?? false, node: d.node }\"/>\n } @else {<span class=\"cell-txt\">{{ formatCell(cell(d.row, c), c) }}</span>}\n </span>\n } @else {\n @if (c.cellTpl()) {\n <ng-container *ngTemplateOutlet=\"c.cellTpl()!.tpl; context: { $implicit: d.row, value: cell(d.row, c), rowIndex: i, column: c, level: d.level, expanded: d.node?.expanded ?? false, hasChildren: d.node?.hasChildren ?? false, node: d.node }\"/>\n } @else {<span class=\"cell-txt\">{{ formatCell(cell(d.row, c), c) }}</span>}\n }\n }\n </td>\n }\n @if (hasActionsColumn()) {\n <td class=\"col-acts\" [class]=\"'col-acts ' + stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"><span class=\"acts\" (click)=\"$event.stopPropagation()\">\n @if ((editMode() === 'row' || editMode() === 'row-inline') && showRowEditButton()) {\n @if (isRowEditing(d.row)) {\n <button type=\"button\" class=\"re ok\" [attr.aria-label]=\"i18n.t('table.saveRow')\" [title]=\"i18n.t('common.save')\" (click)=\"saveRowEdit(d.row)\"><poad-icon name=\"check\" [size]=\"15\"/></button>\n <button type=\"button\" class=\"re ko\" [attr.aria-label]=\"i18n.t('table.cancelEdit')\" [title]=\"i18n.t('common.cancel')\" (click)=\"cancelRowEdit(d.row)\"><poad-icon name=\"x\" [size]=\"15\"/></button>\n } @else {\n <button type=\"button\" class=\"re\" [attr.aria-label]=\"i18n.t('table.editRow')\" [title]=\"i18n.t('common.edit')\" (click)=\"initRowEdit(d.row)\"><poad-icon name=\"edit\" [size]=\"14\"/></button>\n }\n }\n @if (rowActionsTpl()) {<ng-container *ngTemplateOutlet=\"rowActionsTpl()!.tpl; context: { $implicit: d.row, rowIndex: i, node: d.node, editing: isRowEditing(d.row) }\"/>}\n </span></td>\n }\n </tr>\n @if (isExpanded(d.row) && hasExpandColumn()) {\n <tr class=\"dt-detail\" [style.--_lvl]=\"d.level\"><td [attr.colspan]=\"colspan()\">\n @if (expansionTpl()) {\n <ng-container *ngTemplateOutlet=\"expansionTpl()!.tpl; context: { $implicit: d.row, rowIndex: i, hiddenColumns: hiddenByPriority(), node: d.node }\"/>\n } @else {\n <div class=\"kv\">\n @for (c of hiddenByPriority(); track c.id()) {<div><b>{{ c.header() || c.field() }}</b>\n @if (c.cellTpl()) {<ng-container *ngTemplateOutlet=\"c.cellTpl()!.tpl; context: { $implicit: d.row, value: cell(d.row, c), rowIndex: i, column: c, level: d.level, expanded: false, hasChildren: false, node: d.node }\"/>}\n @else {{{ formatCell(cell(d.row, c), c) }}}\n </div>}\n </div>\n }\n </td></tr>\n }\n }\n }\n @if (virtual.range().bottomPad > 0) {<tr class=\"dt-vpad\" aria-hidden=\"true\"><td [attr.colspan]=\"colspan()\" [style.height.px]=\"virtual.range().bottomPad\"></td></tr>}\n }\n </tbody>\n @if (footerTpl() || showGrandTotalRow()) {\n <tfoot>\n @if (showGrandTotalRow()) {\n <tr class=\"dt-grand\">\n @if (hasNumberColumn()) {<td class=\"col-num\"></td>}\n @if (hasSelectionColumn()) {<td class=\"col-sel\"></td>}\n @if (rowDragEnabled()) {<td class=\"col-drag\"></td>}\n @if (hasExpandColumn()) {<td class=\"col-exp\"></td>}\n @for (c of visibleColumns(); track c.id(); let ci = $index) {\n <td [class]=\"tdClass(c)\" [attr.data-l]=\"c.header()\">\n @if (ci === 0 && !hasAggregate(c)) {{{ i18n.text(grandTotalLabel(), 'table.grandTotal') }}}\n @else if (hasAggregate(c)) {{{ formatCell(grandTotal()[c.field()], c) }}}\n </td>\n }\n @if (hasActionsColumn()) {<td></td>}\n </tr>\n }\n @if (footerTpl()) {<ng-container *ngTemplateOutlet=\"footerTpl()!.tpl; context: { $implicit: pageData(), columns: visibleColumns(), aggregates: grandTotal() }\"/>}\n </tfoot>\n }\n </table>\n </div>\n\n @if ((usePaginator() && (paginationTotal() > 0 || lazy())) || showRowCount()) {\n <div class=\"dt-foot\" [class.has-count]=\"showRowCount()\">\n @if (showRowCount()) {\n <span class=\"dt-foot__count\">\n @if (rowCountTpl()) {<ng-container *ngTemplateOutlet=\"rowCountTpl()!.tpl; context: { $implicit: totalRows(), total: totalRows(), filtered: totalFiltered(), selected: selectedCount() }\"/>}\n @else {{{ rowCountText() }}}\n </span>\n }\n @if (usePaginator() && (paginationTotal() > 0 || lazy())) {\n <poad-paginator [first]=\"first()\" [rows]=\"rows()\" [totalRecords]=\"paginationTotal()\" [rowsPerPageOptions]=\"rowsPerPageOptions()\" [pageLinks]=\"resp.stacked() ? 3 : pageLinks()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\" [currentPageReportTemplate]=\"currentPageReportTemplate()\" [showFirstLastIcon]=\"showFirstLastIcon()\"\n [alwaysShow]=\"alwaysShowPaginator()\" (pageChange)=\"onPage($event)\"/>\n }\n </div>\n }\n <poad-menu #hmenu popup [items]=\"menuItems()\" [ariaLabel]=\"i18n.t('table.columnMenu')\"/>\n <poad-menu #fmenu popup [items]=\"filterMenuItems()\" [ariaLabel]=\"i18n.t('filter.operatorMenu')\" [minWidth]=\"200\"/>\n <poad-menu #inmenu popup [closeOnSelect]=\"false\" [items]=\"inMenuItems()\" [ariaLabel]=\"i18n.t('filter.valuesMenu')\" [minWidth]=\"180\"/>\n</div>\n", styles: [".poad-table{--_row-h: var(--poad-table-row-h, 42px);--_cell-px: 12px;display:block;min-width:0;max-width:100%;font:var(--poad-font-size)/1.4 var(--poad-font);color:var(--poad-fg)}.poad-table.is-dense{--_row-h: 34px}.poad-table .dt{border:1px solid var(--poad-border);border-radius:var(--poad-radius-lg);background:var(--poad-surface);overflow:hidden;position:relative}.poad-table.poad-table.is-borderless .dt{border:0;border-radius:0}.poad-table .dt-bar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--poad-border);flex-wrap:wrap}.poad-table .dt-bar__title{font-weight:600;font-size:13.5px;margin-inline-end:4px}.poad-table .dt-bar__count{font:500 11px var(--poad-font-mono);padding:2px 7px;border-radius:999px;background:var(--poad-elevated);color:var(--poad-fg-secondary)}.poad-table .dt-bar__grow{flex:1}.poad-table .dt-bar__search{position:relative;display:flex;align-items:center;width:240px;max-width:100%}.poad-table.poad-table .dt-bar__search>.poad-icon{position:absolute;inset-inline-start:9px;color:var(--poad-fg-muted);pointer-events:none}.poad-table.poad-table .dt-bar__search input{width:100%;box-sizing:border-box;height:30px;padding-block:0;padding-inline:30px 28px;font:var(--poad-font-size) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-input-border);border-radius:var(--poad-radius);outline:0;transition:border-color var(--poad-dur),box-shadow var(--poad-dur)}.poad-table.poad-table .dt-bar__search input::placeholder{color:var(--poad-fg-muted)}.poad-table.poad-table .dt-bar__search input::-webkit-search-cancel-button,.poad-table.poad-table .flt-cell input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}.poad-table.poad-table .dt-bar__search input:focus{border-color:var(--poad-accent);box-shadow:0 0 0 3px var(--poad-ring)}.poad-table.poad-table .dt-bar__search .dt-bar__clear{position:absolute;inset-inline-end:6px;border:0;background:transparent;color:var(--poad-fg-muted);cursor:pointer;display:grid;place-items:center;padding:2px;border-radius:4px}.poad-table.poad-table .dt-bar__search .dt-bar__clear:hover{color:var(--poad-fg);background:var(--poad-hover)}.poad-table .dt-bar__btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:26px;padding:0 8px;border-radius:var(--poad-radius-sm);border:1px solid var(--poad-border-strong);background:transparent;color:var(--poad-fg-secondary);font:500 var(--poad-font-size-sm) var(--poad-font);cursor:pointer;white-space:nowrap}.poad-table .dt-bar__btn:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-table .dt-bar__btn:focus-visible{outline:2px solid var(--poad-ring);outline-offset:1px}.poad-table .dt-bar__btn.is-ghost{border-color:transparent;width:26px;padding:0}.poad-table .dt-bar__btn.is-on{color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table .dt-bar__cols{position:relative}.poad-table .dt-bar__menu{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:20;min-width:200px;max-height:280px;overflow:auto;background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:9px;box-shadow:var(--poad-shadow-lg);padding:4px}.poad-table.poad-table .dt-bar__menu label{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;font-size:var(--poad-font-size)}.poad-table.poad-table .dt-bar__menu label:hover{background:var(--poad-hover)}.poad-table.poad-table .dt-bar__menu label.is-locked{opacity:.5;cursor:default}.poad-table .dt-bar__menu-title{font:600 10px/1 var(--poad-font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--poad-fg-muted);padding:6px 8px 4px}.poad-table .dt-sel{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--poad-accent-soft);border-bottom:1px solid var(--poad-border);font-size:12.5px;color:var(--poad-accent);font-weight:500;min-height:47px;box-sizing:border-box}.poad-table .dt-sel__grow{flex:1}.poad-table .dt-sel__clear{border:0;background:transparent;color:inherit;cursor:pointer;display:grid;place-items:center;width:26px;height:26px;border-radius:6px}.poad-table .dt-sel__clear:hover{background:var(--poad-accent-soft)}.poad-table .dt-scroll{overflow:auto;position:relative}.poad-table.poad-table.has-scroll-height .dt-scroll{max-height:var(--_scroll-h);scrollbar-width:thin;scrollbar-color:var(--poad-border-strong) transparent;scrollbar-gutter:stable}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar{width:10px;height:10px}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar-thumb{background:var(--poad-border-strong);border-radius:999px;border:2px solid var(--poad-surface)}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar-thumb:hover{background:var(--poad-fg-muted)}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar-track{background:transparent}.poad-table .dt-loading{position:absolute;inset:0;display:grid;place-items:center;background:color-mix(in srgb,var(--poad-surface) 55%,transparent);z-index:5}.poad-table.poad-table .dt-loading .poad-icon{color:var(--poad-accent)}.poad-table .tbl{width:100%;border-collapse:separate;border-spacing:0;font-size:var(--poad-font-size)}.poad-table.poad-table.is-resizable .tbl{table-layout:fixed}.poad-table.poad-table .tbl>caption{text-align:start;padding:10px 12px;font-weight:600;color:var(--poad-fg-secondary);font-size:var(--poad-font-size-sm)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th{position:relative;text-align:start;font-weight:600;font-size:var(--poad-font-size-sm);color:var(--poad-fg-secondary);background:var(--poad-bg-subtle);padding:0 var(--_cell-px);height:38px;border-bottom:1px solid var(--poad-border);white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box}.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>thead>:where(tr)>th{position:sticky;top:0;z-index:3}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.al-right{text-align:end}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.al-center{text-align:center}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-left,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-left,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-left{position:sticky;inset-inline-start:0;z-index:2;background:var(--poad-surface)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-right,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-right,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right{position:sticky;inset-inline-end:0;z-index:2;background:var(--poad-surface)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-left,.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-right{background:var(--poad-bg-subtle);z-index:4}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hd{display:inline-flex;align-items:center;gap:4px;max-width:100%}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.al-right>.hd{flex-direction:row-reverse}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th .hd-txt{overflow:hidden;text-overflow:ellipsis}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>button.hd{all:unset;display:inline-flex;align-items:center;gap:4px;cursor:pointer;border-radius:4px;max-width:100%}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>button.hd:focus-visible{outline:2px solid var(--poad-ring);outline-offset:2px}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hd>.poad-icon{opacity:0;transition:opacity var(--poad-dur);flex:none}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th:hover>.hd>.poad-icon{opacity:.6}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-sorted>.hd{color:var(--poad-accent)}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-sorted>.hd>.poad-icon{opacity:1}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th .hd-idx{font:600 9px var(--poad-font-mono);background:var(--poad-accent-soft);color:var(--poad-accent);border-radius:999px;padding:1px 4px}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz{position:absolute;inset-inline-end:0;top:8px;bottom:8px;width:5px;cursor:col-resize;z-index:1}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz:after{content:\"\";position:absolute;inset-inline-end:2px;top:0;bottom:0;width:1px;background:var(--poad-border);transition:background var(--poad-dur)}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz:hover:after,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz.is-active:after{background:var(--poad-accent);width:2px}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-sel,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-sel,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-sel{width:36px;padding-inline-end:0}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-exp,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-exp,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-exp{width:30px;padding:0 4px}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-acts,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-acts,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-acts{text-align:end;white-space:nowrap}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>th{height:auto;padding:6px var(--_cell-px);background:var(--poad-surface);font-weight:400}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>:where(th)>:where(.flt-cell)>input{width:100%;box-sizing:border-box;height:26px;padding:0 8px;font:var(--poad-font-size-sm) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-input-border);border-radius:var(--poad-radius-sm);outline:0}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>:where(th)>:where(.flt-cell)>input:focus{border-color:var(--poad-accent);box-shadow:0 0 0 2px var(--poad-ring)}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td{padding:0 var(--_cell-px);height:var(--_row-h);border-bottom:1px solid var(--poad-border);vertical-align:middle;font-variant-numeric:tabular-nums;box-sizing:border-box}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.al-right,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.al-right{text-align:end}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.al-center,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.al-center{text-align:center}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-num,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-num{font-family:var(--poad-font-mono);font-size:var(--poad-font-size-sm)}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-nowrap,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-nowrap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tfoot)>:where(tr.dt-grand)>td,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(thead)>:where(tr)>th{border-inline-end:1px solid var(--poad-border)}.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tbody)>:where(tr)>td:last-child,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tfoot)>:where(tr.dt-grand)>td:last-child,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(thead)>:where(tr)>th:last-child{border-inline-end:0}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr:last-child>td{border-bottom:0}.poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl>tbody>tr.dt-row:nth-child(2n of.dt-row)>td{background:var(--poad-table-stripe, var(--poad-bg-subtle))}.poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>tbody>tr.dt-row:hover>td{background:var(--poad-hover)}.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selectable{cursor:pointer}.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row:focus-visible{outline:none}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row:focus-visible>td{background:var(--poad-hover);box-shadow:inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td{background:var(--poad-accent-soft)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td:first-child{box-shadow:inset 3px 0 0 var(--poad-accent)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected:focus-visible>td{box-shadow:inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected:focus-visible>td:first-child{box-shadow:inset 3px 0 0 var(--poad-accent),inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp{width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:inline-grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp:hover{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp:focus-visible{outline:2px solid var(--poad-ring)}.poad-table.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp>.poad-icon{transition:transform var(--poad-dur)}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.is-expanded :where(td.col-exp,.dt-group__inner)>.exp>.poad-icon{transform:rotate(90deg)}.poad-table.poad-table .tbl :where(td.col-acts)>.acts{display:inline-flex;gap:2px;align-items:center;opacity:0;transition:opacity var(--poad-dur)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr:hover>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>tr:hover:where(.dt-grand)>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.is-selected>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr:focus-within>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>tr:focus-within:where(.dt-grand)>:where(td.col-acts)>.acts{opacity:1}.poad-table.poad-table.poad-table.acts-always .tbl :where(td.col-acts)>.acts{opacity:1}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-detail>td{background:var(--poad-bg-subtle);height:auto;padding-block:12px 14px;padding-inline:var(--_detail-pl, 58px) var(--_cell-px)}.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>:where(thead,tbody)>tr.dt-detail:hover>td{background:var(--poad-bg-subtle)}.poad-table.poad-table.poad-table .tbl>tfoot>:where(tr.dt-grand)>td{background:var(--poad-bg-subtle);font-weight:600;color:var(--poad-fg-secondary);border-top:1px solid var(--poad-border);border-bottom:0}.poad-table :where(.tbl>tbody>tr.dt-detail>td)>.kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px 22px;font-size:12.5px}.poad-table.poad-table :where(.tbl>tbody>tr.dt-detail>td)>.kv>:where(div)>b{display:block;font:600 10.5px/1 var(--poad-font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--poad-fg-muted);margin-bottom:4px}.poad-table :where(.tbl>tbody>tr.is-skeleton>td)>.skel{height:12px;border-radius:4px;background:linear-gradient(90deg,var(--poad-elevated),var(--poad-hover),var(--poad-elevated));background-size:200% 100%;animation:poad-tbl-sh 1.4s infinite}@keyframes poad-tbl-sh{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.poad-table :where(.tbl>tbody>tr.is-skeleton>td)>.skel{animation:none}.poad-table.poad-table .tbl :where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp>.poad-icon,.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hd>.poad-icon{transition:none}}.poad-table :where(.tbl>tbody>tr.dt-empty>td)>.empty{display:grid;place-items:center;gap:6px;padding:34px 12px;text-align:center;color:var(--poad-fg-secondary);font-size:12.5px}.poad-table.poad-table :where(.tbl>tbody>tr.dt-empty>td)>.empty>.poad-icon{color:var(--poad-fg-muted)}.poad-table.poad-table :where(.tbl>tbody>tr.dt-empty>td)>.empty>b{color:var(--poad-fg);font-size:var(--poad-font-size)}.poad-table .dt-foot{display:flex;align-items:center;gap:14px;padding:8px 12px;border-top:1px solid var(--poad-border)}.poad-table.poad-table .dt-foot .poad-paginator{flex:1}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>th{padding:5px 6px}.poad-table .flt-cell{position:relative;display:flex;align-items:center;gap:4px;min-width:0}.poad-table.poad-table .flt-cell input,.poad-table.poad-table .flt-cell .flt-in{flex:1 1 0;min-width:0;height:28px;padding:0 26px 0 8px;box-sizing:border-box;font:var(--poad-font-size-sm) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-input-border);border-radius:var(--poad-radius-sm);outline:0;transition:border-color var(--poad-dur),box-shadow var(--poad-dur)}.poad-table.poad-table .flt-cell.is-range input{padding-right:8px}.poad-table.poad-table .flt-cell.is-range input:last-of-type{padding-right:26px}.poad-table.poad-table .flt-cell input:focus,.poad-table.poad-table .flt-cell .flt-in:focus-visible{border-color:var(--poad-accent);box-shadow:0 0 0 2px var(--poad-ring)}.poad-table.poad-table .flt-cell.is-active input,.poad-table.poad-table .flt-cell.is-active .flt-in{border-color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table.poad-table .flt-cell .flt-in{display:inline-flex;align-items:center;justify-content:space-between;gap:6px;text-align:left;cursor:pointer}.poad-table.poad-table .flt-cell .flt-in.is-ph{color:var(--poad-fg-muted)}.poad-table.poad-table.poad-table .flt-cell .flt-in .poad-icon{color:var(--poad-fg-muted);flex:none}.poad-table.poad-table .flt-cell .flt-txt{flex:1;height:28px;display:inline-flex;align-items:center;padding:0 26px 0 8px;font:italic var(--poad-font-size-sm) var(--poad-font);color:var(--poad-accent);background:var(--poad-accent-soft);border:1px solid var(--poad-accent);border-radius:var(--poad-radius-sm);box-sizing:border-box}.poad-table.poad-table .flt-cell .flt-op{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:20px;height:20px;border:0;border-radius:4px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .flt-cell .flt-op:hover,.poad-table.poad-table .flt-cell .flt-op.is-on{color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table.poad-table .flt-cell.is-active .flt-op{right:22px}.poad-table.poad-table .flt-cell .flt-x{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:18px;height:18px;border:0;border-radius:4px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .flt-cell .flt-x:hover{color:var(--poad-danger);background:var(--poad-danger-soft)}.poad-table.poad-table .flt-cell>.poad-select{flex:1 1 0;min-width:0}.poad-table.poad-table.poad-table .flt-cell>.poad-select .poad-select__trigger{padding-inline-end:26px}.poad-table.poad-table.poad-table .flt-cell.is-active>.poad-select .poad-select__trigger{border-color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table .dt-foot__count{font:var(--poad-font-size-sm) var(--poad-font-mono);color:var(--poad-fg-secondary);white-space:nowrap}.poad-table.poad-table .dt-foot.has-count .poad-paginator{flex:1}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell{white-space:nowrap}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.cell-txt,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell>.cell-txt,.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.dt-tree-wrap>.cell-txt{white-space:normal}.poad-table .dt-tree-wrap{display:flex;align-items:center;min-width:0}.poad-table .dt-tree-wrap>.poad-tree-toggle{flex:none}.poad-table .dt-tree-wrap>:not(.poad-tree-toggle){min-width:0}.poad-table .poad-tree-toggle{display:inline-flex;align-items:center;vertical-align:middle;margin-right:4px}.poad-table.poad-table .poad-tree-toggle .ind{display:inline-block;width:calc(var(--_lvl, 0) * var(--_indent, 20px));flex:none}.poad-table.poad-table .poad-tree-toggle .tl{display:inline-block;width:var(--_indent, 20px);align-self:stretch;flex:none;position:relative}.poad-table.poad-table.poad-table.has-tree-lines .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell,.poad-table.poad-table.poad-table.has-tree-lines .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell{padding-top:0;padding-bottom:0}.poad-table.poad-table.has-tree-lines .poad-tree-toggle{align-self:stretch;height:var(--_row-h)}.poad-table.poad-table.poad-table.has-tree-lines .poad-tree-toggle .tl:before{content:\"\";position:absolute;left:9px;top:0;bottom:0;border-left:1px solid var(--poad-border)}.poad-table.poad-table .poad-tree-toggle .tg{width:20px;height:20px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:inline-grid;place-items:center;cursor:pointer;padding:0;flex:none}.poad-table.poad-table .poad-tree-toggle .tg:hover{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table .poad-tree-toggle .tg:focus-visible{outline:2px solid var(--poad-ring)}.poad-table.poad-table.poad-table .poad-tree-toggle .tg .poad-icon{transition:transform var(--poad-dur)}.poad-table.poad-table.poad-table .poad-tree-toggle .tg.is-open .poad-icon{transform:rotate(90deg)}.poad-table.poad-table .poad-tree-toggle .tg.is-leaf{visibility:hidden;pointer-events:none}.poad-table.poad-table .poad-tree-toggle .ic{color:var(--poad-fg-muted);margin:0 6px 0 2px}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-row.lvl-0.has-children>td.dt-tree-cell{font-weight:500}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group>td{background:var(--poad-bg-subtle);height:34px;padding:0 var(--_cell-px);border-bottom:1px solid var(--poad-border)}.poad-table .dt-group__inner{display:flex;align-items:center;gap:6px;padding-left:calc(var(--_lvl, 0) * var(--_indent, 20px));font-weight:600;font-size:var(--poad-font-size-sm)}.poad-table.poad-table .dt-group__inner .exp{width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:inline-grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .dt-group__inner .exp:hover{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table.poad-table .dt-group__inner .exp .poad-icon{transition:transform var(--poad-dur)}.poad-table.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group.is-expanded .dt-group__inner .exp .poad-icon{transform:rotate(90deg)}.poad-table .dt-group__count{font:500 10.5px var(--poad-font-mono);padding:1px 6px;border-radius:999px;background:var(--poad-elevated);color:var(--poad-fg-secondary)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group-foot>td{background:var(--poad-bg-subtle);height:32px;color:var(--poad-fg-secondary);font-size:var(--poad-font-size-sm);border-bottom:1px solid var(--poad-border)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group-foot>td.dt-num,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>tr.dt-grand>td.dt-num{font-family:var(--poad-font-mono);font-weight:600}.poad-table .dt-group-foot__label{padding-left:calc(var(--_lvl, 0) * var(--_indent, 20px) + 26px);font-weight:500}.poad-table.poad-table.poad-table.poad-table .tbl>tfoot>tr.dt-grand>td{background:var(--poad-bg-subtle);font-weight:600;color:var(--poad-fg);border-top:2px solid var(--poad-border);height:36px}.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>:where(thead,tbody)>tr.dt-group:hover>td,.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>:where(thead,tbody)>tr.dt-group-foot:hover>td{background:var(--poad-bg-subtle)}\n", ".poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-left,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-left,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-left,.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-right,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-right,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right{position:sticky;z-index:2;background:var(--poad-surface);background-clip:padding-box}.poad-table.poad-table.poad-table .tbl>thead>:where(tr)>th.st-left,.poad-table.poad-table.poad-table .tbl>thead>:where(tr)>th.st-right{z-index:4;background:var(--poad-bg-subtle)}.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>thead>:where(tr)>th.st-left,.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>thead>:where(tr)>th.st-right{z-index:5}.poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl>tbody>tr.dt-row:nth-child(2n of.dt-row)>td.st-left,.poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl>tbody>tr.dt-row:nth-child(2n of.dt-row)>td.st-right{background:var(--poad-table-stripe, var(--poad-bg-subtle))}.poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>tbody>tr.dt-row:hover>td.st-left,.poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>tbody>tr.dt-row:hover>td.st-right{background:var(--poad-hover)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td.st-left,.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td.st-right{background:color-mix(in srgb,var(--poad-accent) 12%,var(--poad-surface))}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-last-left,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-last-left,.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-last-left{transition:box-shadow var(--poad-dur)}.poad-table.poad-table.poad-table.is-scrolled-x .tbl>:where(tbody)>:where(tr)>td.st-last-left,.poad-table.poad-table.poad-table.is-scrolled-x .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-last-left,.poad-table.poad-table.poad-table.is-scrolled-x .tbl>:where(thead)>:where(tr)>th.st-last-left{box-shadow:1px 0 0 var(--poad-border),6px 0 12px -6px #0000002e}.poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl>:where(tbody)>:where(tr)>td.st-first-right,.poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-first-right,.poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl>:where(thead)>:where(tr)>th.st-first-right{box-shadow:-1px 0 0 var(--poad-border),-6px 0 12px -6px #0000002e}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-right.col-acts>.acts,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right.col-acts>.acts{background:inherit}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-detail>td{padding-left:calc(var(--_detail-pl, 58px) + var(--_lvl, 0) * var(--_indent, 20px))}.poad-table .dt-bar__tools,.poad-table .dt-bar__tools-end{display:contents}.poad-table .dt-bar__filters{display:inline-flex}.poad-table.poad-table .dt-bar__filters .dt-bar__count{padding:1px 6px;font-size:10px}.poad-table.poad-table.is-stacked .dt-bar{gap:8px}.poad-table.poad-table.is-stacked .dt-bar__tools{display:none}.poad-table.poad-table.is-stacked .dt-bar__tools.is-open{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex-basis:100%;order:10;padding-top:8px;border-top:1px dashed var(--poad-border)}.poad-table.poad-table.is-stacked .dt-bar__grow{display:none}.poad-table.poad-table.is-stacked .dt-bar__search{order:5;flex-basis:100%;width:100%}.poad-table.poad-table.is-stacked .dt-bar__cols,.poad-table.poad-table.is-stacked .dt-bar__density{display:none}.poad-table.poad-table.is-stacked .dt-sel{position:sticky;bottom:0;z-index:6;flex-wrap:wrap;border-top:1px solid var(--poad-border);order:99}.poad-table.poad-table.is-stacked .dt-scroll{overflow-x:hidden}.poad-table.poad-table.is-stacked .tbl,.poad-table.poad-table.poad-table.is-stacked .tbl>tbody,.poad-table.poad-table.poad-table.is-stacked .tbl>tfoot,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>tr:where(.dt-grand),.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td{display:block}.poad-table.poad-table.poad-table.is-stacked .tbl>thead,.poad-table.poad-table.poad-table.is-stacked .tbl>colgroup,.poad-table.poad-table.poad-table.is-stacked .tbl>caption{display:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row{position:relative;padding:10px 12px;border-bottom:1px solid var(--poad-border);height:auto}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.has-sel{padding-left:44px}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.is-selected{background:var(--poad-accent-soft);box-shadow:inset 3px 0 0 var(--poad-accent)}.poad-table.poad-table.poad-table.is-hoverable.is-stacked .tbl>:where(thead,tbody)>tr.dt-row:hover{background:var(--poad-hover)}.poad-table.poad-table.poad-table.poad-table.is-hoverable.is-stacked .tbl>:where(thead,tbody)>tr.dt-row:hover>td,.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.is-selected>td,.poad-table.poad-table.poad-table.poad-table.is-striped.is-stacked .tbl>:where(thead,tbody)>tr.dt-row>td{background:transparent!important;box-shadow:none!important}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row:focus-visible{box-shadow:inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td{height:auto;padding:2px 0;border:0;white-space:normal;display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12.5px;position:static}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.st-left,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-left,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.st-right,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right{position:static}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td[data-l]:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td[data-l]:before{content:attr(data-l);color:var(--poad-fg-muted);font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.04em;flex:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-sel,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-sel{position:absolute;left:12px;top:12px;padding:0;width:auto}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-sel:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-sel:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-exp:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-exp:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-acts:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-acts:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-first:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-first:before{content:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-exp,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-exp{position:absolute;right:44px;top:8px;padding:0;width:auto}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-first,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-first,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell{display:block;font-size:14px;font-weight:500;padding:0 44px 6px 0}.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .ind,.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .ind,.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .tl,.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .tl{display:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-acts,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-acts{position:absolute;right:8px;top:8px;padding:0;width:auto}.poad-table.poad-table.poad-table.is-stacked .tbl :where(td.col-acts)>.acts{opacity:1}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-num,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-num{text-align:right}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-detail>td{padding:8px 12px 10px}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.lvl-1{margin-left:22px;border-left:2px solid var(--poad-border)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.lvl-2{margin-left:44px;border-left:2px solid var(--poad-border)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.lvl-3{margin-left:66px;border-left:2px solid var(--poad-border)}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group>td{padding:8px 12px;height:auto;display:block}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group-foot{display:flex;flex-wrap:wrap;gap:4px 14px;padding:6px 12px 6px 44px}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group-foot>td{padding:0}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group-foot>td:empty{display:none}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>tfoot>tr.dt-grand{padding:8px 12px}.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>tfoot>tr.dt-grand>td:empty{display:none}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-empty>td{display:block}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.is-skeleton>td{display:block;padding:4px 0}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-card>td{padding:0;display:block}.poad-table.poad-table.is-stacked .dt-foot{flex-wrap:wrap;gap:8px}.poad-table.poad-table.is-stacked .dt-foot .poad-paginator__rpp{display:none}\n", ".poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.dh{display:none;position:absolute;left:2px;top:50%;transform:translateY(-50%);width:14px;height:18px;color:var(--poad-fg-muted);cursor:grab;border-radius:3px;place-items:center}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.dh:hover{color:var(--poad-fg);background:var(--poad-elevated)}.poad-table.poad-table.poad-table.is-reorderable .tbl>:where(thead)>:where(tr)>th.can-drag{padding-left:calc(var(--_cell-px) + 6px)}.poad-table.poad-table.poad-table.poad-table.is-reorderable .tbl>:where(thead)>:where(tr)>th.can-drag:hover>.dh,.poad-table.poad-table.poad-table.poad-table.is-reorderable .tbl>:where(thead)>:where(tr)>th.can-drag.cdk-drag-dragging>.dh{display:grid}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.cdk-drag-placeholder{opacity:.35;background:var(--poad-accent-soft)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.cdk-drag-placeholder:before{content:\"\";position:absolute;left:-1px;top:4px;bottom:4px;width:2px;background:var(--poad-accent)}.cdk-drag-preview.dt-th-preview{display:flex;align-items:center;height:38px;padding:0 12px;box-sizing:border-box;font:600 var(--poad-font-size-sm) var(--poad-font);color:var(--poad-fg);background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:6px;box-shadow:var(--poad-shadow-lg);list-style:none}.poad-table.poad-table.poad-table.poad-table .tbl>thead>tr.cdk-drop-list-dragging>th:not(.cdk-drag-placeholder){transition:transform .2s cubic-bezier(0,0,.2,1)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}.poad-table.poad-table .dt-bar__menu .mv{display:inline-flex;gap:0;margin-left:auto}.poad-table.poad-table.poad-table .dt-bar__menu .mv button{border:0;background:transparent;color:var(--poad-fg-muted);width:20px;height:20px;border-radius:4px;cursor:pointer;display:grid;place-items:center;padding:0}.poad-table.poad-table.poad-table .dt-bar__menu .mv button:hover:not([disabled]){background:var(--poad-hover);color:var(--poad-fg)}.poad-table.poad-table.poad-table .dt-bar__menu .mv button[disabled]{opacity:.3;cursor:default}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.hg>th{height:30px;text-align:center;font:600 10.5px/1 var(--poad-font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--poad-fg-muted);border-bottom:1px solid var(--poad-border)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.hg>th.hg-cell{border-left:1px solid var(--poad-border)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.hg>th.hg-cell:first-child{border-left:0}.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>:where(thead,tbody)>tr.hg>th{position:sticky;top:0;z-index:3}.poad-table.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>:where(thead,tbody)>tr.hg+tr>th{top:30px}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-vpad>td{padding:0;border:0;height:auto}.poad-table.poad-table.is-virtual .dt-scroll{overflow-anchor:none}.poad-table.poad-table.poad-table.edit-cell .tbl>:where(tbody)>:where(tr)>td.is-editable,.poad-table.poad-table.poad-table.edit-cell .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editable{cursor:text;position:relative}.poad-table.poad-table.poad-table.poad-table.poad-table.edit-cell.is-hoverable .tbl>tbody>tr.dt-row>td.is-editable:hover{background:var(--poad-hover);box-shadow:inset 0 0 0 1px var(--poad-border-strong)}.poad-table.poad-table.poad-table.show-edit-icon .tbl>:where(tbody)>:where(tr)>td.is-editable,.poad-table.poad-table.poad-table.show-edit-icon .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editable{padding-right:calc(var(--_cell-px) + 16px)}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td>.ce,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td>.ce{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:20px;height:20px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0;opacity:0;transition:opacity var(--poad-dur),background var(--poad-dur)}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-editable:hover>.ce,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editable:hover>.ce,.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td>.ce:focus-visible,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td>.ce:focus-visible{opacity:.7}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td>.ce:hover,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td>.ce:hover{opacity:1!important;background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-editing,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editing{padding-top:0;padding-bottom:0;background:var(--poad-surface)!important;box-shadow:none!important}.poad-table .dt-editor{position:relative;display:flex;align-items:stretch;min-height:calc(var(--_row-h) - 8px);margin:4px 0}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-editing,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editing{height:auto;vertical-align:top}.poad-table.poad-table .dt-editor input,.poad-table.poad-table .dt-editor textarea{width:100%;height:calc(var(--_row-h) - 8px);box-sizing:border-box;padding:0 8px;font:var(--poad-font-size) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-accent);border-radius:var(--poad-radius-sm);outline:0;box-shadow:0 0 0 3px var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row>td[data-col]:focus{outline:none}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row>td[data-col]:focus-visible{background:var(--poad-hover);box-shadow:inset 0 0 0 2px var(--poad-ring)}.poad-table.poad-table .dt-editor>.poad-select{flex:1 1 0;min-width:0}.poad-table.poad-table.poad-table .dt-editor>.poad-select .poad-select__trigger{height:calc(var(--_row-h) - 8px);border-color:var(--poad-accent);box-shadow:0 0 0 3px var(--poad-ring)}.poad-table.poad-table.poad-table .dt-editor.is-invalid>.poad-select .poad-select__trigger{border-color:var(--poad-danger);box-shadow:0 0 0 3px var(--poad-danger-soft)}.poad-table.poad-table .dt-editor input[type=number]{font-family:var(--poad-font-mono);text-align:right}.poad-table.poad-table .dt-editor textarea{height:auto;min-height:76px;padding:6px 8px;resize:vertical;line-height:1.45;font:var(--poad-font-size)/1.45 var(--poad-font)}.poad-table.poad-table .dt-editor input[type=checkbox]{width:16px;height:16px;box-shadow:none;accent-color:var(--poad-accent)}.poad-table.poad-table .dt-editor.is-invalid input,.poad-table.poad-table .dt-editor.is-invalid textarea{border-color:var(--poad-danger);box-shadow:0 0 0 3px var(--poad-danger-soft)}.poad-table .dt-editor__err{position:absolute;left:0;top:calc(100% + 4px);z-index:6;padding:3px 8px;border-radius:6px;background:var(--poad-danger);color:#fff;font-size:11px;white-space:nowrap;box-shadow:var(--poad-shadow-md);pointer-events:none}.poad-table .dt-editor__err:before{content:\"\";position:absolute;left:10px;top:-4px;width:8px;height:8px;background:inherit;transform:rotate(45deg)}.poad-table.poad-table.poad-table.poad-table.edit-row .tbl>:where(thead,tbody)>tr.dt-row.is-editing-row>td{background:var(--poad-accent-soft)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re{display:inline-grid;place-items:center;width:26px;height:26px;border:0;border-radius:6px;background:transparent;color:var(--poad-fg-secondary);cursor:pointer;padding:0}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re.ok{color:var(--poad-success)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re.ko{color:var(--poad-danger)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re:focus-visible{outline:2px solid var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table.edit-row .tbl>:where(thead,tbody)>tr.is-editing-row>:where(td.col-acts)>.acts{opacity:1}\n", ".poad-table .dt-scroll{scrollbar-width:thin;scrollbar-color:var(--poad-border-strong) transparent}.poad-table .dt-scroll::-webkit-scrollbar{height:10px;width:10px}.poad-table .dt-scroll::-webkit-scrollbar-thumb{background:var(--poad-border-strong);border-radius:999px;border:2px solid var(--poad-surface)}.poad-table .dt-scroll::-webkit-scrollbar-thumb:hover{background:var(--poad-fg-muted)}.poad-table .dt-scroll::-webkit-scrollbar-track{background:transparent}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.has-menu{padding-right:calc(var(--_cell-px) + 20px)}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0;opacity:0;transition:opacity var(--poad-dur),background var(--poad-dur);z-index:2}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th:hover>.hm,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm:focus-visible,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm.is-on,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-sorted>.hm,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-filtered>.hm{opacity:1}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm:hover,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm.is-on{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-filtered .hd-txt{color:var(--poad-accent)}.poad-table.poad-table.poad-table.poad-table.is-resizable .tbl>:where(thead)>:where(tr)>th.has-menu>.hm{right:10px}.poad-table .dt-gz{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:40px;padding:6px 12px;border-bottom:1px solid var(--poad-border);background:var(--poad-bg-subtle);color:var(--poad-fg-muted);font-size:var(--poad-font-size-sm)}.poad-table .dt-gz.cdk-drop-list-receiving,.poad-table .dt-gz.cdk-drop-list-dragging{background:var(--poad-accent-soft);color:var(--poad-accent);outline:1px dashed var(--poad-accent);outline-offset:-4px}.poad-table .dt-gz__hint{font-style:italic}.poad-table .dt-gz__chip,.dt-gz__chip.cdk-drag-preview{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 4px 0 6px;border-radius:999px;background:var(--poad-accent-soft);color:var(--poad-accent);font-weight:500;cursor:grab}.poad-table.poad-table .dt-gz__chip .dt-gz__drag,.dt-gz__chip.cdk-drag-preview .dt-gz__drag{opacity:.6}.poad-table.poad-table .dt-gz__chip button,.dt-gz__chip.cdk-drag-preview button{width:18px;height:18px;border:0;border-radius:50%;background:transparent;color:inherit;display:grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .dt-gz__chip button:hover,.dt-gz__chip.cdk-drag-preview button:hover{background:var(--poad-accent);color:var(--poad-fg-on-accent)}.poad-table .dt-gz__chip.cdk-drag-placeholder{opacity:.35}.cdk-drag-preview.dt-gz__chip{box-shadow:var(--poad-shadow-md)}.poad-table.poad-table.is-stacked .dt-gz{display:none}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-num,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-num,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-num{width:44px;text-align:right;font:11px var(--poad-font-mono);color:var(--poad-fg-muted);background:var(--poad-bg-subtle);padding:0 8px;-webkit-user-select:none;user-select:none}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-num{font-weight:600}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr:hover>td.col-num{background:var(--poad-bg-subtle)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-num,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-num{position:absolute;left:auto;right:12px;bottom:6px;width:auto;background:transparent;padding:0}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-num:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-num:before{content:none}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-drag,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-drag,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag{width:28px;padding:0 4px}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-drag>.rdh,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag>.rdh{display:inline-grid;place-items:center;width:20px;height:24px;color:var(--poad-fg-muted);cursor:grab;opacity:0;transition:opacity var(--poad-dur);border-radius:4px}.poad-table.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr:hover>td.col-drag>.rdh,.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.cdk-drag-dragging>td.col-drag>.rdh{opacity:.8}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-drag>.rdh:hover,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag>.rdh:hover{color:var(--poad-fg);background:var(--poad-elevated)}.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-row.cdk-drag-placeholder{opacity:0}.poad-table.poad-table.poad-table .tbl>tbody.cdk-drop-list-dragging>tr.dt-row:not(.cdk-drag-placeholder){transition:transform .2s cubic-bezier(0,0,.2,1)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-row.cdk-drag-placeholder>td{border-top:2px solid var(--poad-accent)}.cdk-drag-preview.dt-tr-preview{display:table;table-layout:fixed;box-sizing:border-box;background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:8px;box-shadow:var(--poad-shadow-lg);opacity:.95;font:var(--poad-font-size)/1.4 var(--poad-font);color:var(--poad-fg)}.cdk-drag-preview.dt-tr-preview td{padding:0 12px;height:42px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-drag,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag{display:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PoadColumnComponent, selector: "poad-column", inputs: ["field", "key", "header", "sortable", "sortField", "width", "minWidth", "maxWidth", "align", "resizable", "sticky", "hidden", "toggleable", "filterable", "filterType", "filterOptions", "filterPlaceholder", "filterMatchMode", "dataType", "exportable", "headerClass", "bodyClass", "nowrap", "priority", "groupable", "menu", "editable", "editor", "editorOptions", "validator", "reorderable"], outputs: ["hiddenChange"] }, { kind: "component", type: PoadIconComponent, selector: "poad-icon", inputs: ["name", "size", "strokeWidth", "label", "title", "spin", "filled", "flip", "rotate"] }, { kind: "component", type: PoadCheckboxComponent, selector: "poad-checkbox", inputs: ["label", "ariaLabel", "indeterminate", "invalid", "readonly"], outputs: ["indeterminateChange", "changed"] }, { kind: "component", type: PoadPaginatorComponent, selector: "poad-paginator", inputs: ["first", "rows", "totalRecords", "rowsPerPageOptions", "rowsPerPageLabel", "pageLinks", "showCurrentPageReport", "currentPageReportTemplate", "showFirstLastIcon", "showPageLinks", "alwaysShow"], outputs: ["firstChange", "rowsChange", "pageChange"] }, { kind: "component", type: PoadSelectComponent, selector: "poad-select", outputs: ["changed"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: PoadEditFocusDirective, selector: "[poadEditFocus]" }, { kind: "component", type: PoadMenuComponent, selector: "poad-menu", inputs: ["items", "popup", "ariaLabel", "minWidth", "closeOnSelect", "mobile", "sheetTitle"], outputs: ["itemClick", "shown", "hidden"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
10580
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.20", type: PoadTableComponent, isStandalone: true, selector: "poad-table", host: { properties: { "class.is-dense": "dense()", "class.is-striped": "striped()", "class.is-hoverable": "hoverable()", "class.is-bordered": "bordered()", "class.is-borderless": "borderless()", "class.is-sticky-header": "stickyHeader()", "class.has-scroll-height": "!!scrollHeight()", "class.is-resizable": "resizableColumns()", "class.acts-always": "rowActionsAlwaysVisible()", "class.is-loading": "loading()", "class.is-tree": "isTree()", "class.is-grouped": "isGrouped()", "class.has-tree-lines": "showTreeLines()", "class.is-stacked": "resp.stacked()", "class.hide-p2": "resp.hiddenPriorities().has(2)", "class.hide-p3": "resp.hiddenPriorities().has(3)", "class.hide-p4": "resp.hiddenPriorities().has(4)", "class.hide-p5": "resp.hiddenPriorities().has(5)", "class.is-scrolled-x": "sticky.shadowClasses()[\"is-scrolled-x\"]", "class.is-scrolled-x-end": "sticky.shadowClasses()[\"is-scrolled-x-end\"]", "class.is-virtual": "virtualScroll()", "class.is-reorderable": "reorderableColumns()", "class.has-row-numbers": "showRowNumber()", "class.rows-draggable": "rowDragEnabled()", "class.has-col-menu": "hasColumnMenu()", "class.edit-cell": "editMode() === \"cell\"", "class.edit-row": "editMode() === \"row\" || editMode() === \"row-inline\"", "class.show-edit-icon": "editMode() === \"cell\" && showEditIcon()", "style.--_scroll-h": "scrollHeight() || null", "style.--_detail-pl": "detailPaddingLeft()", "style.--_indent": "indent()" }, classAttribute: "poad-table" }, viewQueries: [{ propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true, isSignal: true }, { propertyName: "dtEl", first: true, predicate: ["dt"], descendants: true, isSignal: true }, { propertyName: "toolsEl", first: true, predicate: ["tools"], descendants: true, isSignal: true }, { propertyName: "headerMenu", first: true, predicate: ["hmenu"], descendants: true, isSignal: true }, { propertyName: "filterMenu", first: true, predicate: ["fmenu"], descendants: true, isSignal: true }, { propertyName: "inMenu", first: true, predicate: ["inmenu"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<!-- Colonnes d\u00E9finies par l'entr\u00E9e [colonnes] : rendues en <poad-column> R\u00C9ELS (une\n colonne ne dessine rien, :host display none) et r\u00E9cup\u00E9r\u00E9es par la requ\u00EAte de VUE de\n la base \u2014 le moteur ne consomme qu'une seule esp\u00E8ce de colonne. -->\n@for (d of colonnes(); track d.field) {\n <poad-column\n [field]=\"d.field\"\n [header]=\"d.header ?? d.field\"\n [dataType]=\"d.dataType ?? 'text'\"\n [align]=\"d.align ?? 'left'\"\n [width]=\"d.width ?? ''\"\n [sortable]=\"d.sortable ?? false\"\n />\n}\n<div class=\"dt\" #dt [class]=\"'dt ' + styleClass()\">\n <!-- barre de s\u00E9lection contextuelle (remplace la barre d'outils) -->\n @if (selectedCount() > 0 && showSelectionBar()) {\n <div class=\"dt-sel\" role=\"region\" aria-live=\"polite\">\n <poad-checkbox [value]=\"allState() === 'all'\" [indeterminate]=\"allState() === 'some'\" [ariaLabel]=\"i18n.t('table.selectAll')\" (changed)=\"toggleAll()\"/>\n <span>{{ selectedLabel() === undefined && selectedLabelPlural() === undefined ? i18n.t('table.selectedCount', { n: selectedCount() }) : selectedCount() + ' ' + (selectedCount() > 1 ? (selectedLabelPlural() ?? selectedLabel()) : (selectedLabel() ?? selectedLabelPlural())) }}</span>\n <span class=\"dt-sel__grow\"></span>\n <ng-content select=\"[poadTableSelectionBar]\"/>\n <button type=\"button\" class=\"dt-sel__clear\" [attr.aria-label]=\"i18n.t('table.clearSelection')\" (click)=\"clearSelection()\"><poad-icon name=\"x\" [size]=\"14\"/></button>\n </div>\n } @else if (showToolbar()) {\n <div class=\"dt-bar\">\n @if (title()) {<span class=\"dt-bar__title\">{{ title() }}</span>}\n @if (showCount()) {<span class=\"dt-bar__count\">{{ count() ?? totalFiltered() }}</span>}\n @if (showFiltersToggle()) {\n @let ft = filtersToggle();\n <button type=\"button\" [class]=\"ft.className\" [attr.aria-expanded]=\"ft['aria-expanded']\" (click)=\"filtersOpen.set(!filtersOpen())\">\n <poad-icon name=\"filter\" [size]=\"13\"/>{{ i18n.text(filtersLabel(), 'table.filters') }}@if (activeFilterCount() > 0) {<span class=\"dt-bar__count\">{{ activeFilterCount() }}</span>}\n </button>\n }\n <span #tools class=\"dt-bar__tools\" [class.is-open]=\"filtersOpen()\"><ng-content select=\"[poadTableToolbar]\"/></span>\n <span class=\"dt-bar__grow\"></span>\n @if (showSearch()) {\n <div class=\"dt-bar__search\">\n <poad-icon name=\"search\" [size]=\"14\"/>\n <input type=\"search\" [placeholder]=\"i18n.text(searchPlaceholder(), 'table.searchPlaceholder')\" [value]=\"searchText()\" (input)=\"onSearch($any($event.target).value)\" [attr.aria-label]=\"i18n.text(searchPlaceholder(), 'table.searchPlaceholder')\"/>\n @if (searchText()) {<button type=\"button\" class=\"dt-bar__clear\" [attr.aria-label]=\"i18n.t('table.clearSearch')\" (click)=\"onSearch('', true)\"><poad-icon name=\"x\" [size]=\"12\"/></button>}\n </div>\n }\n <span class=\"dt-bar__tools-end\"><ng-content select=\"[poadTableToolbarEnd]\"/></span>\n @if (columnToggle()) {\n <div class=\"dt-bar__cols\">\n <button type=\"button\" class=\"dt-bar__btn\" [class.is-on]=\"colsMenuOpen()\" aria-haspopup=\"true\" [attr.aria-expanded]=\"colsMenuOpen()\" (click)=\"colsMenuOpen.set(!colsMenuOpen())\">\n {{ i18n.text(columnsLabel(), 'table.columns') }} <poad-icon name=\"chevron-down\" [size]=\"12\"/>\n </button>\n @if (colsMenuOpen()) {\n <div class=\"dt-bar__menu\" role=\"menu\" (keydown.escape)=\"colsMenuOpen.set(false)\">\n <div class=\"dt-bar__menu-title\">{{ i18n.text(columnsLabel(), 'table.columns') }}</div>\n @for (c of orderedColumns(); track c.id(); let ci = $index; let first = $first; let last = $last) {\n <label [class.is-locked]=\"!c.toggleable()\">\n <poad-checkbox [value]=\"!c.hidden()\" [disabled]=\"!c.toggleable()\" (changed)=\"toggleColumn(c, !$event)\"/>\n <span>{{ c.header() || c.field() }}</span>\n @if (reorderableColumns()) {\n <span class=\"mv\" (click)=\"$event.stopPropagation(); $event.preventDefault()\">\n <button type=\"button\" [attr.aria-label]=\"i18n.t('table.moveUp')\" [disabled]=\"first\" (click)=\"moveColumn(ci, ci - 1)\"><poad-icon name=\"chevron-up\" [size]=\"12\"/></button>\n <button type=\"button\" [attr.aria-label]=\"i18n.t('table.moveDown')\" [disabled]=\"last\" (click)=\"moveColumn(ci, ci + 1)\"><poad-icon name=\"chevron-down\" [size]=\"12\"/></button>\n </span>\n }\n </label>\n }\n </div>\n }\n </div>\n }\n @if (showDensityToggle()) {\n <button type=\"button\" class=\"dt-bar__btn is-ghost dt-bar__density\" [class.is-on]=\"dense()\" [attr.aria-pressed]=\"dense()\" [attr.aria-label]=\"i18n.t('table.density')\" [title]=\"i18n.t('table.density')\" (click)=\"dense.set(!dense())\"><poad-icon name=\"chevrons-up-down\" [size]=\"14\"/></button>\n }\n </div>\n }\n\n @if (showGroupZone() && !resp.stacked()) {\n <div class=\"dt-gz\" [class.is-empty]=\"!groupFields().length\" cdkDropList [id]=\"gzId\" cdkDropListOrientation=\"horizontal\" [cdkDropListData]=\"groupFields()\" [cdkDropListEnterPredicate]=\"gzEnter\" (cdkDropListDropped)=\"onGroupZoneDrop($event)\">\n <poad-icon name=\"layers\" [size]=\"14\"/>\n @if (!groupFields().length) {<span class=\"dt-gz__hint\">{{ i18n.text(groupZoneLabel(), 'table.groupZone') }}</span>}\n @for (f of groupFields(); track f) {\n <span class=\"dt-gz__chip\" cdkDrag [cdkDragData]=\"f\" cdkDragLockAxis=\"x\"><poad-icon name=\"drag\" [size]=\"11\" class=\"dt-gz__drag\"/><span>{{ groupChipLabel(f) }}</span><button type=\"button\" [attr.aria-label]=\"i18n.t('table.ungroupBy', { label: groupChipLabel(f) })\" (click)=\"ungroup(f)\"><poad-icon name=\"x\" [size]=\"11\"/></button></span>\n }\n </div>\n }\n\n <div class=\"dt-scroll\" #scroller (scroll)=\"onScroll()\">\n @if (loading() && hasData()) {<div class=\"dt-loading\"><poad-icon name=\"loader\" [size]=\"22\" spin/></div>}\n @let ta = tableAttrs();\n <table class=\"tbl\" [class]=\"'tbl ' + tableClass()\" [style]=\"tableStyle()\" [attr.aria-busy]=\"ta['aria-busy']\" [attr.aria-rowcount]=\"ta['aria-rowcount']\" [attr.role]=\"ta.role\" [attr.aria-multiselectable]=\"ta['aria-multiselectable']\">\n @if (captionTpl()) {<caption><ng-container *ngTemplateOutlet=\"captionTpl()!.tpl\"/></caption>}\n <colgroup>\n @if (hasNumberColumn()) {<col style=\"width:44px\">}\n @if (hasSelectionColumn()) {<col style=\"width:36px\">}\n @if (rowDragEnabled()) {<col style=\"width:28px\">}\n @if (hasExpandColumn()) {<col style=\"width:30px\">}\n @for (c of visibleColumns(); track c.id()) {<col [style.width]=\"colWidth(c)\" [style.min-width]=\"c.minWidth() || null\" [style.max-width]=\"c.maxWidth() || null\">}\n @if (hasActionsColumn()) {<col [style.width]=\"rowActionsWidth()\">}\n </colgroup>\n <thead>\n @let hgRows = headerGroups().length && !resp.stacked() ? 1 : 0;\n @if (hgRows) {\n <tr class=\"hg\" [attr.aria-rowindex]=\"headerRowAttrs(0)['aria-rowindex']\">\n @if (hasNumberColumn()) {<th [class]=\"stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\"></th>}\n @if (hasSelectionColumn()) {<th [class]=\"stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\"></th>}\n @if (rowDragEnabled()) {<th [class]=\"stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\"></th>}\n @if (hasExpandColumn()) {<th [class]=\"stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\"></th>}\n @for (g of headerGroups(); track $index) {<th scope=\"colgroup\" [attr.colspan]=\"g.span\" [class]=\"'hg-cell ' + (g.class || '')\">{{ g.header }}</th>}\n @if (hasActionsColumn()) {<th [class]=\"stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"></th>}\n </tr>\n }\n <tr [attr.aria-rowindex]=\"headerRowAttrs(hgRows)['aria-rowindex']\" cdkDropList cdkDropListOrientation=\"horizontal\" [cdkDropListDisabled]=\"!reorderableColumns() && !showGroupZone()\" [cdkDropListSortingDisabled]=\"!reorderableColumns()\" [cdkDropListConnectedTo]=\"showGroupZone() ? [gzId] : []\" (cdkDropListDropped)=\"onColumnDrop($event)\">\n @if (hasNumberColumn()) {<th class=\"col-num\" scope=\"col\" data-sk=\"num\" [class]=\"'col-num ' + stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\">#</th>}\n @if (hasSelectionColumn()) {\n <th class=\"col-sel\" scope=\"col\" data-sk=\"sel\" [class]=\"'col-sel ' + stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\">\n @if (selectionMode() === 'multiple' && selectAll()) {\n <poad-checkbox [value]=\"allState() === 'all'\" [indeterminate]=\"allState() === 'some'\" [ariaLabel]=\"i18n.t('table.selectAll')\" (changed)=\"toggleAll()\"/>\n }\n </th>\n }\n @if (rowDragEnabled()) {<th class=\"col-drag\" scope=\"col\" data-sk=\"drag\" [class]=\"'col-drag ' + stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\"><span hidden>{{ i18n.t('table.move') }}</span></th>}\n @if (hasExpandColumn()) {<th class=\"col-exp\" scope=\"col\" data-sk=\"exp\" [class]=\"'col-exp ' + stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\"><span hidden>{{ i18n.t('table.detail') }}</span></th>}\n @for (c of visibleColumns(); track c.id()) {\n <th scope=\"col\" [attr.data-sk]=\"c.id()\" [class]=\"thClass(c) + (canDrag(c) ? ' can-drag' : '') + (showsMenu(c) ? ' has-menu' : '') + (hasColFilter(c) ? ' is-filtered' : '')\" [attr.aria-sort]=\"ariaSort(c)\" [style.width]=\"colWidth(c)\" [style.left.px]=\"stickyLeft(c.id())\" [style.right.px]=\"stickyRight(c.id())\"\n cdkDrag [cdkDragDisabled]=\"!canDrag(c)\" [cdkDragData]=\"c\" [cdkDragLockAxis]=\"showGroupZone() ? null : 'x'\" cdkDragPreviewClass=\"dt-th-preview\" [cdkDragBoundary]=\"showGroupZone() ? '' : '.tbl thead'\">\n @if (canDrag(c)) {<span class=\"dh\" cdkDragHandle aria-hidden=\"true\" [title]=\"i18n.t('table.moveColumn')\"><poad-icon name=\"drag\" [size]=\"12\"/></span>}\n @if (c.headerTpl()) {\n <ng-container *ngTemplateOutlet=\"c.headerTpl()!.tpl; context: { $implicit: c }\"/>\n } @else if (c.sortable()) {\n <button type=\"button\" class=\"hd\" (click)=\"sort(c, $event)\" [attr.aria-label]=\"i18n.t('table.sortBy', { column: c.header() })\">\n <span class=\"hd-txt\">{{ c.header() }}</span>\n <poad-icon [name]=\"sortIcon(c)\" [size]=\"12\"/>\n @if (sortMode() === 'multiple' && sortIndex(c) > 0) {<span class=\"hd-idx\">{{ sortIndex(c) }}</span>}\n </button>\n } @else {\n <span class=\"hd\"><span class=\"hd-txt\">{{ c.header() }}</span></span>\n }\n @if (showsMenu(c)) {<button type=\"button\" class=\"hm\" [class.is-on]=\"menuColumn() === c && !!headerMenu()?.visible()\" [attr.aria-label]=\"i18n.t('table.columnMenu')\" aria-haspopup=\"menu\" (click)=\"openHeaderMenu(c, $event)\" (pointerdown)=\"$event.stopPropagation()\"><poad-icon name=\"more-vertical\" [size]=\"13\"/></button>}\n @if (isResizable(c)) {<span class=\"rz\" [class.is-active]=\"resizingId() === c.id()\" (pointerdown)=\"startResize($event, c)\" aria-hidden=\"true\"></span>}\n </th>\n }\n @if (hasActionsColumn()) {<th class=\"col-acts\" scope=\"col\" data-sk=\"acts\" [class]=\"'col-acts ' + stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"><span hidden>{{ i18n.t('table.actions') }}</span></th>}\n </tr>\n @if (hasFilterRow()) {\n <tr class=\"flt\" [attr.aria-rowindex]=\"headerRowAttrs(hgRows + 1)['aria-rowindex']\">\n @if (hasNumberColumn()) {<th [class]=\"stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\"></th>}\n @if (hasSelectionColumn()) {<th [class]=\"stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\"></th>}\n @if (rowDragEnabled()) {<th [class]=\"stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\"></th>}\n @if (hasExpandColumn()) {<th [class]=\"stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\"></th>}\n @for (c of visibleColumns(); track c.id()) {\n <th [class]=\"stickyClass(c.id())\" [style.left.px]=\"stickyLeft(c.id())\" [style.right.px]=\"stickyRight(c.id())\">\n @if (c.filterable()) {\n @if (c.filterTpl()) {\n <ng-container *ngTemplateOutlet=\"c.filterTpl()!.tpl; context: { $implicit: c, value: filterValue(c), filter: filterFn(c) }\"/>\n } @else {\n @let kind = filterKind(c);\n @let op = filterOp(c);\n <div class=\"flt-cell\" [class.is-active]=\"hasColFilter(c)\" [class.is-range]=\"op.range\">\n @if (kind === 'boolean') {\n <poad-select size=\"sm\" clearable [options]=\"booleanOptions()\" [value]=\"filterValue(c)\" [placeholder]=\"c.filterPlaceholder() || i18n.t('filter.any')\" [ariaLabel]=\"i18n.t('filter.column', { column: c.header() })\" (changed)=\"setFilter(c, $event)\"/>\n } @else if (kind === 'select' && op.mode !== 'eq') {\n <button type=\"button\" class=\"flt-in\" [class.is-ph]=\"!filterArray(c).length\" [attr.aria-label]=\"i18n.t('filter.column', { column: c.header() })\" (click)=\"openInMenu(c, $event)\">\n <span>{{ filterArray(c).length ? i18n.t('filter.selectedCount', { n: filterArray(c).length }) : (c.filterPlaceholder() || i18n.t('filter.any')) }}</span><poad-icon name=\"chevron-down\" [size]=\"11\"/>\n </button>\n } @else if (kind === 'select') {\n <poad-select size=\"sm\" clearable [options]=\"c.filterOptions()\" [value]=\"filterValue(c)\" [placeholder]=\"c.filterPlaceholder() || i18n.t('filter.any')\" [ariaLabel]=\"i18n.t('filter.column', { column: c.header() })\" (changed)=\"setFilter(c, $event, 'eq')\"/>\n } @else if (!op.needsValue) {\n <span class=\"flt-txt\">{{ opLabel(op) }}</span>\n } @else if (op.range) {\n <input [type]=\"kind === 'number' ? 'number' : kind === 'date' ? 'date' : 'search'\" [value]=\"filterPart(c, 0)\" [placeholder]=\"i18n.t('filter.min')\" (input)=\"setFilterPart(c, 0, $any($event.target).value)\" [attr.aria-label]=\"i18n.t('filter.columnMin', { column: c.header() })\"/>\n <input [type]=\"kind === 'number' ? 'number' : kind === 'date' ? 'date' : 'search'\" [value]=\"filterPart(c, 1)\" [placeholder]=\"i18n.t('filter.max')\" (input)=\"setFilterPart(c, 1, $any($event.target).value)\" [attr.aria-label]=\"i18n.t('filter.columnMax', { column: c.header() })\"/>\n } @else {\n <input [type]=\"kind === 'number' ? 'number' : kind === 'date' ? 'date' : 'search'\" [value]=\"filterPart(c, 0)\" [placeholder]=\"c.filterPlaceholder() || opLabel(op)\" (input)=\"setFilterDebounced(c, $any($event.target).value)\" [attr.aria-label]=\"i18n.t('filter.column', { column: c.header() })\"/>\n }\n @if (kind !== 'boolean') {\n <button type=\"button\" class=\"flt-op\" [class.is-on]=\"hasColFilter(c) || op.mode !== filterOp(c).mode\" [attr.aria-label]=\"i18n.t('filter.operator', { label: opLabel(op) })\" [title]=\"opLabel(op)\" (click)=\"openFilterMenu(c, $event)\"><poad-icon name=\"filter\" [size]=\"12\"/></button>\n }\n @if (hasColFilter(c)) {<button type=\"button\" class=\"flt-x\" [attr.aria-label]=\"i18n.t('filter.clear')\" (click)=\"clearColumnFilter(c)\"><poad-icon name=\"x\" [size]=\"11\"/></button>}\n </div>\n }\n }\n </th>\n }\n @if (hasActionsColumn()) {<th [class]=\"stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"></th>}\n </tr>\n }\n </thead>\n <tbody cdkDropList [cdkDropListDisabled]=\"!rowDragEnabled()\" cdkDropListLockAxis=\"y\" (cdkDropListDropped)=\"onRowDrop($event)\">\n @if (bodyState() === 'skeleton') {\n @for (i of skeletonRows(); track i) {\n <tr class=\"dt-row is-skeleton\" aria-hidden=\"true\">\n @if (hasNumberColumn()) {<td class=\"col-num\"></td>}\n @if (hasSelectionColumn()) {<td class=\"col-sel\"></td>}\n @if (rowDragEnabled()) {<td class=\"col-drag\"></td>}\n @if (hasExpandColumn()) {<td class=\"col-exp\"></td>}\n @for (c of visibleColumns(); track c.id()) {<td [class]=\"tdClass(c)\"><div class=\"skel\" [style.width.%]=\"skeletonWidth(i, $index)\" [style.margin-left]=\"alignOf(c) === 'right' ? 'auto' : null\"></div></td>}\n @if (hasActionsColumn()) {<td></td>}\n </tr>\n }\n } @else if (bodyState() === 'empty') {\n <tr class=\"dt-empty\"><td [attr.colspan]=\"colspan()\">\n @if (emptyTpl()) {<ng-container *ngTemplateOutlet=\"emptyTpl()!.tpl\"/>}\n @else {\n <div class=\"empty\">\n @if (emptyIcon()) {<poad-icon [name]=\"emptyIcon()\" [size]=\"26\" [strokeWidth]=\"1.5\"/>}\n <b>{{ i18n.text(emptyMessage(), 'table.empty') }}</b>\n @if (emptyHint()) {<span>{{ emptyHint() }}</span>}\n </div>\n }\n </td></tr>\n } @else {\n @if (virtual.range().topPad > 0) {<tr class=\"dt-vpad\" aria-hidden=\"true\"><td [attr.colspan]=\"colspan()\" [style.height.px]=\"virtual.range().topPad\"></td></tr>}\n @for (d of renderRows(); track d.trackKey; let vi = $index) {\n @let i = vi + virtual.range().start;\n @if (d.kind === 'group') {\n <!-- en-t\u00EAte de groupe -->\n <tr class=\"dt-group\" [class.is-expanded]=\"d.node!.expanded\" [style.--_lvl]=\"d.level\" role=\"row\" [attr.aria-level]=\"d.level + 1\" [attr.aria-expanded]=\"d.node!.expanded\" [attr.aria-posinset]=\"d.node!.posInSet\" [attr.aria-setsize]=\"d.node!.setSize\">\n <td [attr.colspan]=\"colspan()\" class=\"dt-group__cell\">\n <div class=\"dt-group__inner\">\n @if (hasSelectionColumn() && selectionMode() === 'multiple') {\n <poad-checkbox [value]=\"nodeState(d) === 'on'\" [indeterminate]=\"nodeState(d) === 'some'\" [ariaLabel]=\"i18n.t('table.selectGroup', { label: d.node!.group!.label })\" (changed)=\"toggleGroupSelection(d, $event)\"/>\n }\n <button type=\"button\" class=\"exp\" [attr.aria-expanded]=\"d.node!.expanded\" [attr.aria-label]=\"d.node!.expanded ? i18n.t('common.collapse') : i18n.t('common.expand')\" (click)=\"toggleGroup(d.node!)\"><poad-icon name=\"chevron-right\" [size]=\"13\"/></button>\n @if (groupHeaderTpl()) {\n <ng-container *ngTemplateOutlet=\"groupHeaderTpl()!.tpl; context: groupCtx(d)\"/>\n } @else {\n <span class=\"dt-group__label\">{{ d.node!.group!.label }}</span>\n <span class=\"dt-group__count\">{{ d.node!.group!.count }}</span>\n }\n </div>\n </td>\n </tr>\n } @else if (d.kind === 'groupFooter') {\n <!-- pied de groupe (agr\u00E9gats) -->\n <tr class=\"dt-group-foot\" [style.--_lvl]=\"d.level\">\n @if (groupFooterTpl()) {\n <td [attr.colspan]=\"colspan()\"><ng-container *ngTemplateOutlet=\"groupFooterTpl()!.tpl; context: groupCtx(d)\"/></td>\n } @else {\n @if (hasNumberColumn()) {<td class=\"col-num\"></td>}\n @if (hasSelectionColumn()) {<td class=\"col-sel\"></td>}\n @if (rowDragEnabled()) {<td class=\"col-drag\"></td>}\n @if (hasExpandColumn()) {<td class=\"col-exp\"></td>}\n @for (c of visibleColumns(); track c.id(); let ci = $index) {\n <td [class]=\"tdClass(c)\" [attr.data-l]=\"c.header()\">\n @if (ci === 0 && !hasAggregate(c)) {<span class=\"dt-group-foot__label\">{{ i18n.t('table.total', { label: d.node!.group!.label }) }}</span>}\n @else if (hasAggregate(c)) {{{ formatCell(d.node!.group!.aggregates[c.field()], c) }}}\n </td>\n }\n @if (hasActionsColumn()) {<td></td>}\n }\n </tr>\n } @else if (resp.stacked() && cardTpl()) {\n <!-- carte custom (mode stack) -->\n @let ca = rowAttrs(d, i);\n <tr class=\"dt-row dt-card\" [class]=\"rowClasses(d.row, i, d)\" [style]=\"rowStyle()?.(d.row, i) || null\" [attr.data-key]=\"d.key\" [attr.tabindex]=\"ca.tabindex\" [attr.aria-selected]=\"ca.selected\" [attr.aria-rowindex]=\"ca.rowindex\"\n (click)=\"onRowClick(d.row, i, $event, d)\" (keydown)=\"onRowKey(d, i, $event)\" (focus)=\"onRowFocus(d)\">\n <td [attr.colspan]=\"colspan()\"><ng-container *ngTemplateOutlet=\"cardTpl()!.tpl; context: { $implicit: d.row, rowIndex: i, node: d.node, selected: isSelected(d.row) }\"/></td>\n </tr>\n } @else {\n <!-- ligne -->\n @let ra = rowAttrs(d, i);\n <tr class=\"dt-row\" [class]=\"rowClasses(d.row, i, d)\" [style]=\"rowStyle()?.(d.row, i) || null\" [style.--_lvl]=\"d.level\" [attr.data-key]=\"d.key\" [class.is-editing-row]=\"isRowEditing(d.row)\"\n cdkDrag [cdkDragDisabled]=\"!canDragRow(d.row)\" [cdkDragData]=\"d.row\" cdkDragLockAxis=\"y\" cdkDragPreviewClass=\"dt-tr-preview\" cdkDragBoundary=\".tbl\"\n [attr.tabindex]=\"ra.tabindex\" [attr.aria-selected]=\"ra.selected\" [attr.aria-rowindex]=\"ra.rowindex\"\n [attr.role]=\"hierarchical() ? 'row' : null\" [attr.aria-level]=\"hierarchical() ? d.level + 1 : null\" [attr.aria-expanded]=\"d.node?.hasChildren ? d.node!.expanded : null\"\n [attr.aria-setsize]=\"d.node ? d.node.setSize : null\" [attr.aria-posinset]=\"d.node ? d.node.posInSet : null\"\n (click)=\"onRowClick(d.row, i, $event, d)\" (dblclick)=\"rowDblClick.emit({ row: d.row, index: i, event: $event })\" (keydown)=\"onRowKey(d, i, $event)\" (focus)=\"onRowFocus(d)\">\n @if (hasNumberColumn()) {<td class=\"col-num\" [class]=\"'col-num ' + stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\">{{ rowNumber(d) }}</td>}\n @if (hasSelectionColumn()) {\n <td class=\"col-sel\" [class]=\"'col-sel ' + stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\">\n @if (canSelect(d.row)) {\n @if (selectionMode() === 'multiple') {\n <poad-checkbox [value]=\"nodeState(d) === 'on'\" [indeterminate]=\"nodeState(d) === 'some'\" [ariaLabel]=\"i18n.t('table.selectRow', { index: i + 1 })\" (changed)=\"toggleRow(d.row, i, $event)\"/>\n } @else {\n <poad-checkbox [value]=\"isSelected(d.row)\" [ariaLabel]=\"i18n.t('table.selectRow', { index: i + 1 })\" (changed)=\"selectSingle(d.row, i)\"/>\n }\n }\n </td>\n }\n @if (rowDragEnabled()) {\n <td class=\"col-drag\" [class]=\"'col-drag ' + stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\">\n @if (canDragRow(d.row)) {<span class=\"rdh\" cdkDragHandle [title]=\"i18n.t('table.moveRow')\" aria-hidden=\"true\"><poad-icon name=\"drag\" [size]=\"13\"/></span>}\n </td>\n }\n @if (hasExpandColumn()) {\n <td class=\"col-exp\" [class]=\"'col-exp ' + stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\">\n @if (canExpand(d.row)) {\n <button type=\"button\" class=\"exp\" [attr.aria-expanded]=\"isExpanded(d.row)\" [attr.aria-label]=\"isExpanded(d.row) ? i18n.t('common.collapse') : i18n.t('common.expand')\" (click)=\"toggleExpand(d.row, $event)\"><poad-icon name=\"chevron-right\" [size]=\"13\"/></button>\n }\n </td>\n }\n @for (c of visibleColumns(); track c.id(); let cFirst = $first) {\n <td [class]=\"tdClass(c) + ' ' + stickyClass(c.id()) + (isTreeColumn(c) ? ' dt-tree-cell' : '') + (cFirst ? ' dt-first' : '') + (editUi.canEditCell(c) ? ' is-editable' : '') + (edit.isEditing(d.row, c) ? ' is-editing' : '')\"\n [style.left.px]=\"stickyLeft(c.id())\" [style.right.px]=\"stickyRight(c.id())\" [attr.data-l]=\"c.header()\" [attr.data-col]=\"c.editable() ? c.id() : null\"\n (click)=\"editUi.onCellClick(d.row, c, $event, false)\" (dblclick)=\"editUi.onCellClick(d.row, c, $event, true)\">\n @if (edit.isEditing(d.row, c) && c.field()) {\n <!-- \u00E9diteur inline (mode cell ou row) -->\n <div class=\"dt-editor\" [class.is-invalid]=\"!!edit.cellError(d.row, c)\" (click)=\"$event.stopPropagation()\" (dblclick)=\"$event.stopPropagation()\" (keydown)=\"editUi.onKey(d.row, c, $event)\" (focusout)=\"editUi.onBlur(d.row, c)\">\n @if (c.editorTpl()) {\n <ng-container *ngTemplateOutlet=\"c.editorTpl()!.tpl; context: editUi.ctxFor(d.row, c, i)\"/>\n } @else {\n @switch (c.editor()) {\n @case ('select') {\n <!-- liste d\u00E9roulante de la biblioth\u00E8que (jamais de select natif) ; panneau en popover : le focus reste dans la cellule -->\n <poad-select #sel poadEditFocus mobile=\"popover\" [options]=\"c.effectiveEditorOptions()\" [value]=\"edit.valueOf(d.row, c)\" [ariaLabel]=\"c.header()\" [invalid]=\"!!edit.cellError(d.row, c)\"\n (changed)=\"editUi.onSelectPick(d.row, c, $event)\" (keydown)=\"editUi.onSelectKey(d.row, c, $event, sel.isOpen())\"/>\n }\n @case ('checkbox') {<input type=\"checkbox\" poadEditFocus [checked]=\"!!edit.valueOf(d.row, c)\" [attr.aria-label]=\"c.header()\" (change)=\"editUi.onInput(d.row, c, $any($event.target).checked)\"/>}\n @case ('textarea') {<textarea poadEditFocus rows=\"3\" [value]=\"edit.valueOf(d.row, c) ?? ''\" [attr.aria-label]=\"c.header()\" (input)=\"editUi.onInput(d.row, c, $any($event.target).value)\"></textarea>}\n @default {<input poadEditFocus [type]=\"editUi.inputType(c)\" [value]=\"edit.valueOf(d.row, c) ?? ''\" [attr.aria-label]=\"c.header()\" [attr.aria-invalid]=\"edit.cellError(d.row, c) ? 'true' : null\" (input)=\"editUi.onInput(d.row, c, $any($event.target).value)\"/>}\n }\n }\n @if (edit.cellError(d.row, c)) {<span class=\"dt-editor__err\" role=\"alert\">{{ edit.cellError(d.row, c) }}</span>}\n </div>\n } @else {\n @if (editUi.canEditCell(c) && showEditIcon()) {<button type=\"button\" class=\"ce\" tabindex=\"-1\" [attr.aria-label]=\"i18n.t('common.edit')\" (click)=\"$event.stopPropagation(); editUi.startEdit(d.row, c)\"><poad-icon name=\"edit\" [size]=\"11\"/></button>}\n @if (isTreeColumn(c) && d.node) {\n <span class=\"dt-tree-wrap\">\n <span class=\"poad-tree-toggle\" [style.--_lvl]=\"d.level\">\n @if (showTreeLines()) { @for (l of levelsOf(d.level); track l) {<i class=\"tl\" aria-hidden=\"true\"></i>} }\n @else {<i class=\"ind\" aria-hidden=\"true\"></i>}\n @let tp = treeToggle(d.node);\n <button type=\"button\" [class]=\"tp.className\" [attr.tabindex]=\"tp.tabindex\"\n [attr.aria-expanded]=\"tp['aria-expanded']\" [attr.aria-label]=\"i18n.t(tp.labelKey)\" (click)=\"toggleNode(d.node, $event)\">\n @if (tp.loading) {<poad-icon name=\"loader\" [size]=\"12\" spin/>} @else {<poad-icon name=\"chevron-right\" [size]=\"13\"/>}\n </button>\n @if (treeIconOf(d.row)) {<poad-icon class=\"ic\" [name]=\"treeIconOf(d.row)!\" [size]=\"14\"/>}\n </span>\n @if (c.cellTpl()) {\n <ng-container *ngTemplateOutlet=\"c.cellTpl()!.tpl; context: { $implicit: d.row, value: cell(d.row, c), rowIndex: i, column: c, level: d.level, expanded: d.node?.expanded ?? false, hasChildren: d.node?.hasChildren ?? false, node: d.node }\"/>\n } @else {<span class=\"cell-txt\">{{ formatCell(cell(d.row, c), c) }}</span>}\n </span>\n } @else {\n @if (c.cellTpl()) {\n <ng-container *ngTemplateOutlet=\"c.cellTpl()!.tpl; context: { $implicit: d.row, value: cell(d.row, c), rowIndex: i, column: c, level: d.level, expanded: d.node?.expanded ?? false, hasChildren: d.node?.hasChildren ?? false, node: d.node }\"/>\n } @else {<span class=\"cell-txt\">{{ formatCell(cell(d.row, c), c) }}</span>}\n }\n }\n </td>\n }\n @if (hasActionsColumn()) {\n <td class=\"col-acts\" [class]=\"'col-acts ' + stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"><span class=\"acts\" (click)=\"$event.stopPropagation()\">\n @if ((editMode() === 'row' || editMode() === 'row-inline') && showRowEditButton()) {\n @if (isRowEditing(d.row)) {\n <button type=\"button\" class=\"re ok\" [attr.aria-label]=\"i18n.t('table.saveRow')\" [title]=\"i18n.t('common.save')\" (click)=\"saveRowEdit(d.row)\"><poad-icon name=\"check\" [size]=\"15\"/></button>\n <button type=\"button\" class=\"re ko\" [attr.aria-label]=\"i18n.t('table.cancelEdit')\" [title]=\"i18n.t('common.cancel')\" (click)=\"cancelRowEdit(d.row)\"><poad-icon name=\"x\" [size]=\"15\"/></button>\n } @else {\n <button type=\"button\" class=\"re\" [attr.aria-label]=\"i18n.t('table.editRow')\" [title]=\"i18n.t('common.edit')\" (click)=\"initRowEdit(d.row)\"><poad-icon name=\"edit\" [size]=\"14\"/></button>\n }\n }\n @if (rowActionsTpl()) {<ng-container *ngTemplateOutlet=\"rowActionsTpl()!.tpl; context: { $implicit: d.row, rowIndex: i, node: d.node, editing: isRowEditing(d.row) }\"/>}\n </span></td>\n }\n </tr>\n @if (isExpanded(d.row) && hasExpandColumn()) {\n <tr class=\"dt-detail\" [style.--_lvl]=\"d.level\"><td [attr.colspan]=\"colspan()\">\n @if (expansionTpl()) {\n <ng-container *ngTemplateOutlet=\"expansionTpl()!.tpl; context: { $implicit: d.row, rowIndex: i, hiddenColumns: hiddenByPriority(), node: d.node }\"/>\n } @else {\n <div class=\"kv\">\n @for (c of hiddenByPriority(); track c.id()) {<div><b>{{ c.header() || c.field() }}</b>\n @if (c.cellTpl()) {<ng-container *ngTemplateOutlet=\"c.cellTpl()!.tpl; context: { $implicit: d.row, value: cell(d.row, c), rowIndex: i, column: c, level: d.level, expanded: false, hasChildren: false, node: d.node }\"/>}\n @else {<span class=\"cell-txt\">{{ formatCell(cell(d.row, c), c) }}</span>}\n </div>}\n </div>\n }\n </td></tr>\n }\n }\n }\n @if (virtual.range().bottomPad > 0) {<tr class=\"dt-vpad\" aria-hidden=\"true\"><td [attr.colspan]=\"colspan()\" [style.height.px]=\"virtual.range().bottomPad\"></td></tr>}\n }\n </tbody>\n @if (footerTpl() || showGrandTotalRow()) {\n <tfoot>\n @if (showGrandTotalRow()) {\n <tr class=\"dt-grand\">\n @if (hasNumberColumn()) {<td class=\"col-num\"></td>}\n @if (hasSelectionColumn()) {<td class=\"col-sel\"></td>}\n @if (rowDragEnabled()) {<td class=\"col-drag\"></td>}\n @if (hasExpandColumn()) {<td class=\"col-exp\"></td>}\n @for (c of visibleColumns(); track c.id(); let ci = $index) {\n <td [class]=\"tdClass(c)\" [attr.data-l]=\"c.header()\">\n @if (ci === 0 && !hasAggregate(c)) {{{ i18n.text(grandTotalLabel(), 'table.grandTotal') }}}\n @else if (hasAggregate(c)) {{{ formatCell(grandTotal()[c.field()], c) }}}\n </td>\n }\n @if (hasActionsColumn()) {<td></td>}\n </tr>\n }\n @if (footerTpl()) {<ng-container *ngTemplateOutlet=\"footerTpl()!.tpl; context: { $implicit: pageData(), columns: visibleColumns(), aggregates: grandTotal() }\"/>}\n </tfoot>\n }\n </table>\n </div>\n\n @if ((usePaginator() && (paginationTotal() > 0 || lazy())) || showRowCount()) {\n <div class=\"dt-foot\" [class.has-count]=\"showRowCount()\">\n @if (showRowCount()) {\n <span class=\"dt-foot__count\">\n @if (rowCountTpl()) {<ng-container *ngTemplateOutlet=\"rowCountTpl()!.tpl; context: { $implicit: totalRows(), total: totalRows(), filtered: totalFiltered(), selected: selectedCount() }\"/>}\n @else {{{ rowCountText() }}}\n </span>\n }\n @if (usePaginator() && (paginationTotal() > 0 || lazy())) {\n <poad-paginator [first]=\"first()\" [rows]=\"rows()\" [totalRecords]=\"paginationTotal()\" [rowsPerPageOptions]=\"rowsPerPageOptions()\" [pageLinks]=\"pagerLinks()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\" [currentPageReportTemplate]=\"currentPageReportTemplate()\" [showFirstLastIcon]=\"showFirstLastIcon()\"\n [alwaysShow]=\"alwaysShowPaginator()\" (pageChange)=\"onPage($event)\"/>\n }\n </div>\n }\n <poad-menu #hmenu popup [items]=\"menuItems()\" [ariaLabel]=\"i18n.t('table.columnMenu')\"/>\n <poad-menu #fmenu popup [items]=\"filterMenuItems()\" [ariaLabel]=\"i18n.t('filter.operatorMenu')\" [minWidth]=\"200\"/>\n <poad-menu #inmenu popup [closeOnSelect]=\"false\" [items]=\"inMenuItems()\" [ariaLabel]=\"i18n.t('filter.valuesMenu')\" [minWidth]=\"180\"/>\n</div>\n", styles: [".poad-table{--_row-h: var(--poad-table-row-h, 42px);--_cell-px: 12px;display:block;min-width:0;max-width:100%;font:var(--poad-font-size)/1.4 var(--poad-font);color:var(--poad-fg)}.poad-table.is-dense{--_row-h: 34px}.poad-table .dt{border:1px solid var(--poad-border);border-radius:var(--poad-radius-lg);background:var(--poad-surface);overflow:hidden;position:relative}.poad-table.poad-table.is-borderless .dt{border:0;border-radius:0}.poad-table .dt-bar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--poad-border);flex-wrap:wrap}.poad-table .dt-bar__title{font-weight:600;font-size:13.5px;margin-inline-end:4px}.poad-table .dt-bar__count{font:500 11px var(--poad-font-mono);padding:2px 7px;border-radius:999px;background:var(--poad-elevated);color:var(--poad-fg-secondary)}.poad-table .dt-bar__grow{flex:1}.poad-table .dt-bar__search{position:relative;display:flex;align-items:center;width:240px;max-width:100%}.poad-table.poad-table .dt-bar__search>.poad-icon{position:absolute;inset-inline-start:9px;color:var(--poad-fg-muted);pointer-events:none}.poad-table.poad-table .dt-bar__search input{width:100%;box-sizing:border-box;height:30px;padding-block:0;padding-inline:30px 28px;font:var(--poad-font-size) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-input-border);border-radius:var(--poad-radius);outline:0;transition:border-color var(--poad-dur),box-shadow var(--poad-dur)}.poad-table.poad-table .dt-bar__search input::placeholder{color:var(--poad-fg-muted)}.poad-table.poad-table .dt-bar__search input::-webkit-search-cancel-button,.poad-table.poad-table .flt-cell input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}.poad-table.poad-table .dt-bar__search input:focus{border-color:var(--poad-accent);box-shadow:0 0 0 3px var(--poad-ring)}.poad-table.poad-table .dt-bar__search .dt-bar__clear{position:absolute;inset-inline-end:6px;border:0;background:transparent;color:var(--poad-fg-muted);cursor:pointer;display:grid;place-items:center;padding:2px;border-radius:4px}.poad-table.poad-table .dt-bar__search .dt-bar__clear:hover{color:var(--poad-fg);background:var(--poad-hover)}.poad-table .dt-bar__btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:26px;padding:0 8px;border-radius:var(--poad-radius-sm);border:1px solid var(--poad-border-strong);background:transparent;color:var(--poad-fg-secondary);font:500 var(--poad-font-size-sm) var(--poad-font);cursor:pointer;white-space:nowrap}.poad-table .dt-bar__btn:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-table .dt-bar__btn:focus-visible{outline:2px solid var(--poad-ring);outline-offset:1px}.poad-table .dt-bar__btn.is-ghost{border-color:transparent;width:26px;padding:0}.poad-table .dt-bar__btn.is-on{color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table .dt-bar__cols{position:relative}.poad-table .dt-bar__menu{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:20;min-width:200px;max-height:280px;overflow:auto;background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:9px;box-shadow:var(--poad-shadow-lg);padding:4px}.poad-table.poad-table .dt-bar__menu label{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;font-size:var(--poad-font-size)}.poad-table.poad-table .dt-bar__menu label:hover{background:var(--poad-hover)}.poad-table.poad-table .dt-bar__menu label.is-locked{opacity:.5;cursor:default}.poad-table .dt-bar__menu-title{font:600 10px/1 var(--poad-font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--poad-fg-muted);padding:6px 8px 4px}.poad-table .dt-sel{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--poad-accent-soft);border-bottom:1px solid var(--poad-border);font-size:12.5px;color:var(--poad-accent);font-weight:500;min-height:47px;box-sizing:border-box}.poad-table .dt-sel__grow{flex:1}.poad-table .dt-sel__clear{border:0;background:transparent;color:inherit;cursor:pointer;display:grid;place-items:center;width:26px;height:26px;border-radius:6px}.poad-table .dt-sel__clear:hover{background:var(--poad-accent-soft)}.poad-table .dt-scroll{overflow:auto;position:relative}.poad-table.poad-table.has-scroll-height .dt-scroll{max-height:var(--_scroll-h);scrollbar-width:thin;scrollbar-color:var(--poad-border-strong) transparent;scrollbar-gutter:stable}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar{width:10px;height:10px}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar-thumb{background:var(--poad-border-strong);border-radius:999px;border:2px solid var(--poad-surface)}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar-thumb:hover{background:var(--poad-fg-muted)}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar-track{background:transparent}.poad-table .dt-loading{position:absolute;inset:0;display:grid;place-items:center;background:color-mix(in srgb,var(--poad-surface) 55%,transparent);z-index:5}.poad-table.poad-table .dt-loading .poad-icon{color:var(--poad-accent)}.poad-table .tbl{width:100%;border-collapse:separate;border-spacing:0;font-size:var(--poad-font-size)}.poad-table.poad-table.is-resizable .tbl{table-layout:fixed}.poad-table.poad-table .tbl>caption{text-align:start;padding:10px 12px;font-weight:600;color:var(--poad-fg-secondary);font-size:var(--poad-font-size-sm)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th{position:relative;text-align:start;font-weight:600;font-size:var(--poad-font-size-sm);color:var(--poad-fg-secondary);background:var(--poad-bg-subtle);padding:0 var(--_cell-px);height:38px;border-bottom:1px solid var(--poad-border);white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box}.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>thead>:where(tr)>th{position:sticky;top:0;z-index:3}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.al-right{text-align:end}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.al-center{text-align:center}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-left,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-left,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-left{position:sticky;inset-inline-start:0;z-index:2;background:var(--poad-surface)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-right,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-right,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right{position:sticky;inset-inline-end:0;z-index:2;background:var(--poad-surface)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-left,.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-right{background:var(--poad-bg-subtle);z-index:4}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hd{display:inline-flex;align-items:center;gap:4px;max-width:100%}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.al-right>.hd{flex-direction:row-reverse}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th .hd-txt{overflow:hidden;text-overflow:ellipsis}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>button.hd{all:unset;display:inline-flex;align-items:center;gap:4px;cursor:pointer;border-radius:4px;max-width:100%}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>button.hd:focus-visible{outline:2px solid var(--poad-ring);outline-offset:2px}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hd>.poad-icon{opacity:0;transition:opacity var(--poad-dur);flex:none}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th:hover>.hd>.poad-icon{opacity:.6}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-sorted>.hd{color:var(--poad-accent)}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-sorted>.hd>.poad-icon{opacity:1}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th .hd-idx{font:600 9px var(--poad-font-mono);background:var(--poad-accent-soft);color:var(--poad-accent);border-radius:999px;padding:1px 4px}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz{position:absolute;inset-inline-end:0;top:8px;bottom:8px;width:5px;cursor:col-resize;z-index:1}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz:after{content:\"\";position:absolute;inset-inline-end:2px;top:0;bottom:0;width:1px;background:var(--poad-border);transition:background var(--poad-dur)}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz:hover:after,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz.is-active:after{background:var(--poad-accent);width:2px}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-sel,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-sel,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-sel{width:36px;padding-inline-end:0}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-exp,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-exp,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-exp{width:30px;padding:0 4px}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-acts,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-acts,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-acts{text-align:end;white-space:nowrap}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>th{height:auto;padding:6px var(--_cell-px);background:var(--poad-surface);font-weight:400}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>:where(th)>:where(.flt-cell)>input{width:100%;box-sizing:border-box;height:26px;padding:0 8px;font:var(--poad-font-size-sm) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-input-border);border-radius:var(--poad-radius-sm);outline:0}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>:where(th)>:where(.flt-cell)>input:focus{border-color:var(--poad-accent);box-shadow:0 0 0 2px var(--poad-ring)}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td{padding:0 var(--_cell-px);height:var(--_row-h);border-bottom:1px solid var(--poad-border);vertical-align:middle;font-variant-numeric:tabular-nums;box-sizing:border-box}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.al-right,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.al-right{text-align:end}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.al-center,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.al-center{text-align:center}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-num,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-num{font-family:var(--poad-font-mono);font-size:var(--poad-font-size-sm)}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-nowrap,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-nowrap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tfoot)>:where(tr.dt-grand)>td,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(thead)>:where(tr)>th{border-inline-end:1px solid var(--poad-border)}.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tbody)>:where(tr)>td:last-child,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tfoot)>:where(tr.dt-grand)>td:last-child,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(thead)>:where(tr)>th:last-child{border-inline-end:0}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr:last-child>td{border-bottom:0}.poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl>tbody>tr.dt-row:nth-child(2n of.dt-row)>td{background:var(--poad-table-stripe, var(--poad-bg-subtle))}.poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>tbody>tr.dt-row:hover>td{background:var(--poad-hover)}.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selectable{cursor:pointer}.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row:focus-visible{outline:none}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row:focus-visible>td{background:var(--poad-hover);box-shadow:inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td{background:var(--poad-accent-soft)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td:first-child{box-shadow:inset 3px 0 0 var(--poad-accent)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected:focus-visible>td{box-shadow:inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected:focus-visible>td:first-child{box-shadow:inset 3px 0 0 var(--poad-accent),inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp{width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:inline-grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp:hover{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp:focus-visible{outline:2px solid var(--poad-ring)}.poad-table.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp>.poad-icon{transition:transform var(--poad-dur)}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.is-expanded :where(td.col-exp,.dt-group__inner)>.exp>.poad-icon{transform:rotate(90deg)}.poad-table.poad-table .tbl :where(td.col-acts)>.acts{display:inline-flex;gap:2px;align-items:center;opacity:0;transition:opacity var(--poad-dur)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr:hover>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>tr:hover:where(.dt-grand)>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.is-selected>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr:focus-within>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>tr:focus-within:where(.dt-grand)>:where(td.col-acts)>.acts{opacity:1}.poad-table.poad-table.poad-table.acts-always .tbl :where(td.col-acts)>.acts{opacity:1}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-detail>td{background:var(--poad-bg-subtle);height:auto;padding-block:12px 14px;padding-inline:var(--_detail-pl, 58px) var(--_cell-px)}.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>:where(thead,tbody)>tr.dt-detail:hover>td{background:var(--poad-bg-subtle)}.poad-table.poad-table.poad-table .tbl>tfoot>:where(tr.dt-grand)>td{background:var(--poad-bg-subtle);font-weight:600;color:var(--poad-fg-secondary);border-top:1px solid var(--poad-border);border-bottom:0}.poad-table :where(.tbl>tbody>tr.dt-detail>td)>.kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px 22px;font-size:12.5px}.poad-table.poad-table :where(.tbl>tbody>tr.dt-detail>td)>.kv>:where(div)>b{display:block;font:600 10.5px/1 var(--poad-font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--poad-fg-muted);margin-bottom:4px}.poad-table :where(.tbl>tbody>tr.is-skeleton>td)>.skel{height:12px;border-radius:4px;background:linear-gradient(90deg,var(--poad-elevated),var(--poad-hover),var(--poad-elevated));background-size:200% 100%;animation:poad-tbl-sh 1.4s infinite}@keyframes poad-tbl-sh{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.poad-table :where(.tbl>tbody>tr.is-skeleton>td)>.skel{animation:none}.poad-table.poad-table .tbl :where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp>.poad-icon,.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hd>.poad-icon{transition:none}}.poad-table :where(.tbl>tbody>tr.dt-empty>td)>.empty{display:grid;place-items:center;gap:6px;padding:34px 12px;text-align:center;color:var(--poad-fg-secondary);font-size:12.5px}.poad-table.poad-table :where(.tbl>tbody>tr.dt-empty>td)>.empty>.poad-icon{color:var(--poad-fg-muted)}.poad-table.poad-table :where(.tbl>tbody>tr.dt-empty>td)>.empty>b{color:var(--poad-fg);font-size:var(--poad-font-size)}.poad-table .dt-foot{display:flex;align-items:center;gap:14px;padding:8px 12px;border-top:1px solid var(--poad-border)}.poad-table.poad-table .dt-foot .poad-paginator{flex:1}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>th{padding:5px 6px}.poad-table .flt-cell{position:relative;display:flex;align-items:center;gap:4px;min-width:0}.poad-table.poad-table .flt-cell input,.poad-table.poad-table .flt-cell .flt-in{flex:1 1 0;min-width:0;height:28px;padding:0 26px 0 8px;box-sizing:border-box;font:var(--poad-font-size-sm) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-input-border);border-radius:var(--poad-radius-sm);outline:0;transition:border-color var(--poad-dur),box-shadow var(--poad-dur)}.poad-table.poad-table .flt-cell.is-range input{padding-right:8px}.poad-table.poad-table .flt-cell.is-range input:last-of-type{padding-right:26px}.poad-table.poad-table .flt-cell input:focus,.poad-table.poad-table .flt-cell .flt-in:focus-visible{border-color:var(--poad-accent);box-shadow:0 0 0 2px var(--poad-ring)}.poad-table.poad-table .flt-cell.is-active input,.poad-table.poad-table .flt-cell.is-active .flt-in{border-color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table.poad-table .flt-cell .flt-in{display:inline-flex;align-items:center;justify-content:space-between;gap:6px;text-align:left;cursor:pointer}.poad-table.poad-table .flt-cell .flt-in.is-ph{color:var(--poad-fg-muted)}.poad-table.poad-table.poad-table .flt-cell .flt-in .poad-icon{color:var(--poad-fg-muted);flex:none}.poad-table.poad-table .flt-cell .flt-txt{flex:1;height:28px;display:inline-flex;align-items:center;padding:0 26px 0 8px;font:italic var(--poad-font-size-sm) var(--poad-font);color:var(--poad-accent);background:var(--poad-accent-soft);border:1px solid var(--poad-accent);border-radius:var(--poad-radius-sm);box-sizing:border-box}.poad-table.poad-table .flt-cell .flt-op{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:20px;height:20px;border:0;border-radius:4px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .flt-cell .flt-op:hover,.poad-table.poad-table .flt-cell .flt-op.is-on{color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table.poad-table .flt-cell.is-active .flt-op{right:22px}.poad-table.poad-table .flt-cell .flt-x{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:18px;height:18px;border:0;border-radius:4px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .flt-cell .flt-x:hover{color:var(--poad-danger);background:var(--poad-danger-soft)}.poad-table.poad-table .flt-cell>.poad-select{flex:1 1 0;min-width:0}.poad-table.poad-table.poad-table .flt-cell>.poad-select .poad-select__trigger{padding-inline-end:26px}.poad-table.poad-table.poad-table .flt-cell.is-active>.poad-select .poad-select__trigger{border-color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table .dt-foot__count{font:var(--poad-font-size-sm) var(--poad-font-mono);color:var(--poad-fg-secondary);white-space:nowrap}.poad-table.poad-table .dt-foot.has-count .poad-paginator{flex:1}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell{white-space:nowrap}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.cell-txt,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell>.cell-txt,.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.dt-tree-wrap>.cell-txt{white-space:normal}.poad-table .dt-tree-wrap{display:flex;align-items:center;min-width:0}.poad-table .dt-tree-wrap>.poad-tree-toggle{flex:none}.poad-table .dt-tree-wrap>:not(.poad-tree-toggle){min-width:0}.poad-table .poad-tree-toggle{display:inline-flex;align-items:center;vertical-align:middle;margin-right:4px}.poad-table.poad-table .poad-tree-toggle .ind{display:inline-block;width:calc(var(--_lvl, 0) * var(--_indent, 20px));flex:none}.poad-table.poad-table .poad-tree-toggle .tl{display:inline-block;width:var(--_indent, 20px);align-self:stretch;flex:none;position:relative}.poad-table.poad-table.poad-table.has-tree-lines .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell,.poad-table.poad-table.poad-table.has-tree-lines .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell{padding-top:0;padding-bottom:0}.poad-table.poad-table.has-tree-lines .poad-tree-toggle{align-self:stretch;height:var(--_row-h)}.poad-table.poad-table.poad-table.has-tree-lines .poad-tree-toggle .tl:before{content:\"\";position:absolute;left:9px;top:0;bottom:0;border-left:1px solid var(--poad-border)}.poad-table.poad-table .poad-tree-toggle .tg{width:20px;height:20px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:inline-grid;place-items:center;cursor:pointer;padding:0;flex:none}.poad-table.poad-table .poad-tree-toggle .tg:hover{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table .poad-tree-toggle .tg:focus-visible{outline:2px solid var(--poad-ring)}.poad-table.poad-table.poad-table .poad-tree-toggle .tg .poad-icon{transition:transform var(--poad-dur)}.poad-table.poad-table.poad-table .poad-tree-toggle .tg.is-open .poad-icon{transform:rotate(90deg)}.poad-table.poad-table .poad-tree-toggle .tg.is-leaf{visibility:hidden;pointer-events:none}.poad-table.poad-table .poad-tree-toggle .ic{color:var(--poad-fg-muted);margin:0 6px 0 2px}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-row.lvl-0.has-children>td.dt-tree-cell{font-weight:500}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group>td{background:var(--poad-bg-subtle);height:34px;padding:0 var(--_cell-px);border-bottom:1px solid var(--poad-border)}.poad-table .dt-group__inner{display:flex;align-items:center;gap:6px;padding-left:calc(var(--_lvl, 0) * var(--_indent, 20px));font-weight:600;font-size:var(--poad-font-size-sm)}.poad-table.poad-table .dt-group__inner .exp{width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:inline-grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .dt-group__inner .exp:hover{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table.poad-table .dt-group__inner .exp .poad-icon{transition:transform var(--poad-dur)}.poad-table.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group.is-expanded .dt-group__inner .exp .poad-icon{transform:rotate(90deg)}.poad-table .dt-group__count{font:500 10.5px var(--poad-font-mono);padding:1px 6px;border-radius:999px;background:var(--poad-elevated);color:var(--poad-fg-secondary)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group-foot>td{background:var(--poad-bg-subtle);height:32px;color:var(--poad-fg-secondary);font-size:var(--poad-font-size-sm);border-bottom:1px solid var(--poad-border)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group-foot>td.dt-num,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>tr.dt-grand>td.dt-num{font-family:var(--poad-font-mono);font-weight:600}.poad-table .dt-group-foot__label{padding-left:calc(var(--_lvl, 0) * var(--_indent, 20px) + 26px);font-weight:500}.poad-table.poad-table.poad-table.poad-table .tbl>tfoot>tr.dt-grand>td{background:var(--poad-bg-subtle);font-weight:600;color:var(--poad-fg);border-top:2px solid var(--poad-border);height:36px}.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>:where(thead,tbody)>tr.dt-group:hover>td,.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>:where(thead,tbody)>tr.dt-group-foot:hover>td{background:var(--poad-bg-subtle)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-left,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-left,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-left,.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-right,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-right,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right{position:sticky;z-index:2;background:var(--poad-surface);background-clip:padding-box}.poad-table.poad-table.poad-table .tbl>thead>:where(tr)>th.st-left,.poad-table.poad-table.poad-table .tbl>thead>:where(tr)>th.st-right{z-index:4;background:var(--poad-bg-subtle)}.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>thead>:where(tr)>th.st-left,.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>thead>:where(tr)>th.st-right{z-index:5}.poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl>tbody>tr.dt-row:nth-child(2n of.dt-row)>td.st-left,.poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl>tbody>tr.dt-row:nth-child(2n of.dt-row)>td.st-right{background:var(--poad-table-stripe, var(--poad-bg-subtle))}.poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>tbody>tr.dt-row:hover>td.st-left,.poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>tbody>tr.dt-row:hover>td.st-right{background:var(--poad-hover)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td.st-left,.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td.st-right{background:color-mix(in srgb,var(--poad-accent) 12%,var(--poad-surface))}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-last-left,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-last-left,.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-last-left{transition:box-shadow var(--poad-dur)}.poad-table.poad-table.poad-table.is-scrolled-x .tbl>:where(tbody)>:where(tr)>td.st-last-left,.poad-table.poad-table.poad-table.is-scrolled-x .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-last-left,.poad-table.poad-table.poad-table.is-scrolled-x .tbl>:where(thead)>:where(tr)>th.st-last-left{box-shadow:1px 0 0 var(--poad-border),6px 0 12px -6px #0000002e}.poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl>:where(tbody)>:where(tr)>td.st-first-right,.poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-first-right,.poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl>:where(thead)>:where(tr)>th.st-first-right{box-shadow:-1px 0 0 var(--poad-border),-6px 0 12px -6px #0000002e}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-right.col-acts>.acts,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right.col-acts>.acts{background:inherit}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-detail>td{padding-left:calc(var(--_detail-pl, 58px) + var(--_lvl, 0) * var(--_indent, 20px))}.poad-table .dt-bar__tools,.poad-table .dt-bar__tools-end{display:contents}.poad-table .dt-bar__filters{display:inline-flex}.poad-table.poad-table .dt-bar__filters .dt-bar__count{padding:1px 6px;font-size:10px}.poad-table.poad-table.is-stacked .dt-bar{gap:8px}.poad-table.poad-table.is-stacked .dt-bar__tools{display:none}.poad-table.poad-table.is-stacked .dt-bar__tools.is-open{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex-basis:100%;order:10;padding-top:8px;border-top:1px dashed var(--poad-border)}.poad-table.poad-table.is-stacked .dt-bar__grow{display:none}.poad-table.poad-table.is-stacked .dt-bar__search{order:5;flex-basis:100%;width:100%}.poad-table.poad-table.is-stacked .dt-bar__cols,.poad-table.poad-table.is-stacked .dt-bar__density{display:none}.poad-table.poad-table.is-stacked .dt-sel{position:sticky;bottom:0;z-index:6;flex-wrap:wrap;border-top:1px solid var(--poad-border);order:99}.poad-table.poad-table.is-stacked .dt-scroll{overflow-x:hidden}.poad-table.poad-table.is-stacked .tbl,.poad-table.poad-table.poad-table.is-stacked .tbl>tbody,.poad-table.poad-table.poad-table.is-stacked .tbl>tfoot,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>tr:where(.dt-grand),.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td{display:block}.poad-table.poad-table.poad-table.is-stacked .tbl>thead,.poad-table.poad-table.poad-table.is-stacked .tbl>colgroup,.poad-table.poad-table.poad-table.is-stacked .tbl>caption{display:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row{position:relative;padding:10px 12px;border-bottom:1px solid var(--poad-border);height:auto}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.has-sel{padding-left:44px}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.is-selected{background:var(--poad-accent-soft);box-shadow:inset 3px 0 0 var(--poad-accent)}.poad-table.poad-table.poad-table.is-hoverable.is-stacked .tbl>:where(thead,tbody)>tr.dt-row:hover{background:var(--poad-hover)}.poad-table.poad-table.poad-table.poad-table.is-hoverable.is-stacked .tbl>:where(thead,tbody)>tr.dt-row:hover>td,.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.is-selected>td,.poad-table.poad-table.poad-table.poad-table.is-striped.is-stacked .tbl>:where(thead,tbody)>tr.dt-row>td{background:transparent!important;box-shadow:none!important}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row:focus-visible{box-shadow:inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td{height:auto;padding:2px 0;border:0;white-space:normal;display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12.5px;position:static}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.st-left,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-left,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.st-right,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right{position:static}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td[data-l]:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td[data-l]:before{content:attr(data-l);color:var(--poad-fg-muted);font-family:var(--poad-font);font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.04em;flex:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-sel,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-sel{position:absolute;left:12px;top:12px;padding:0;width:auto}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-sel:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-sel:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-exp:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-exp:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-acts:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-acts:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-first:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-first:before{content:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-exp,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-exp{position:absolute;right:44px;top:8px;padding:0;width:auto}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-first,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-first,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell{display:block;font-size:14px;font-weight:500;padding:0 44px 6px 0}.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .ind,.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .ind,.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .tl,.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .tl{display:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-acts,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-acts{position:absolute;right:8px;top:8px;padding:0;width:auto}.poad-table.poad-table.poad-table.is-stacked .tbl :where(td.col-acts)>.acts{opacity:1}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-num,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-num{text-align:right}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-detail>td{padding:8px 12px 10px}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.lvl-1{margin-left:22px;border-left:2px solid var(--poad-border)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.lvl-2{margin-left:44px;border-left:2px solid var(--poad-border)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.lvl-3{margin-left:66px;border-left:2px solid var(--poad-border)}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group>td{padding:8px 12px;height:auto;display:block}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group-foot{display:flex;flex-wrap:wrap;gap:4px 14px;padding:6px 12px 6px 44px}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group-foot>td{padding:0}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group-foot>td:empty{display:none}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>tfoot>tr.dt-grand{padding:8px 12px}.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>tfoot>tr.dt-grand>td:empty{display:none}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-empty>td{display:block}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.is-skeleton>td{display:block;padding:4px 0}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-card>td{padding:0;display:block}.poad-table.poad-table.is-stacked .dt-foot{flex-wrap:wrap;gap:8px}.poad-table.poad-table.is-stacked .dt-foot .poad-paginator__rpp{display:none}\n", ".poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.dh{display:none;position:absolute;left:2px;top:50%;transform:translateY(-50%);width:14px;height:18px;color:var(--poad-fg-muted);cursor:grab;border-radius:3px;place-items:center}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.dh:hover{color:var(--poad-fg);background:var(--poad-elevated)}.poad-table.poad-table.poad-table.is-reorderable .tbl>:where(thead)>:where(tr)>th.can-drag{padding-left:calc(var(--_cell-px) + 6px)}.poad-table.poad-table.poad-table.poad-table.is-reorderable .tbl>:where(thead)>:where(tr)>th.can-drag:hover>.dh,.poad-table.poad-table.poad-table.poad-table.is-reorderable .tbl>:where(thead)>:where(tr)>th.can-drag.cdk-drag-dragging>.dh{display:grid}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.cdk-drag-placeholder{opacity:.35;background:var(--poad-accent-soft)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.cdk-drag-placeholder:before{content:\"\";position:absolute;left:-1px;top:4px;bottom:4px;width:2px;background:var(--poad-accent)}.cdk-drag-preview.dt-th-preview{display:flex;align-items:center;height:38px;padding:0 12px;box-sizing:border-box;font:600 var(--poad-font-size-sm) var(--poad-font);color:var(--poad-fg);background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:6px;box-shadow:var(--poad-shadow-lg);list-style:none}.poad-table.poad-table.poad-table.poad-table .tbl>thead>tr.cdk-drop-list-dragging>th:not(.cdk-drag-placeholder){transition:transform .2s cubic-bezier(0,0,.2,1)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}.poad-table.poad-table .dt-bar__menu .mv{display:inline-flex;gap:0;margin-left:auto}.poad-table.poad-table.poad-table .dt-bar__menu .mv button{border:0;background:transparent;color:var(--poad-fg-muted);width:20px;height:20px;border-radius:4px;cursor:pointer;display:grid;place-items:center;padding:0}.poad-table.poad-table.poad-table .dt-bar__menu .mv button:hover:not([disabled]){background:var(--poad-hover);color:var(--poad-fg)}.poad-table.poad-table.poad-table .dt-bar__menu .mv button[disabled]{opacity:.3;cursor:default}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.hg>th{height:30px;text-align:center;font:600 10.5px/1 var(--poad-font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--poad-fg-muted);border-bottom:1px solid var(--poad-border)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.hg>th.hg-cell{border-left:1px solid var(--poad-border)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.hg>th.hg-cell:first-child{border-left:0}.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>:where(thead,tbody)>tr.hg>th{position:sticky;top:0;z-index:3}.poad-table.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>:where(thead,tbody)>tr.hg+tr>th{top:30px}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-vpad>td{padding:0;border:0;height:auto}.poad-table.poad-table.is-virtual .dt-scroll{overflow-anchor:none}.poad-table.poad-table.poad-table.edit-cell .tbl>:where(tbody)>:where(tr)>td.is-editable,.poad-table.poad-table.poad-table.edit-cell .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editable{cursor:text;position:relative}.poad-table.poad-table.poad-table.poad-table.poad-table.edit-cell.is-hoverable .tbl>tbody>tr.dt-row>td.is-editable:hover{background:var(--poad-hover);box-shadow:inset 0 0 0 1px var(--poad-border-strong)}.poad-table.poad-table.poad-table.show-edit-icon .tbl>:where(tbody)>:where(tr)>td.is-editable,.poad-table.poad-table.poad-table.show-edit-icon .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editable{padding-right:calc(var(--_cell-px) + 16px)}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td>.ce,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td>.ce{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:20px;height:20px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0;opacity:0;transition:opacity var(--poad-dur),background var(--poad-dur)}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-editable:hover>.ce,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editable:hover>.ce,.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td>.ce:focus-visible,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td>.ce:focus-visible{opacity:.7}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td>.ce:hover,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td>.ce:hover{opacity:1!important;background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-editing,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editing{padding-top:0;padding-bottom:0;background:var(--poad-surface)!important;box-shadow:none!important}.poad-table .dt-editor{position:relative;display:flex;align-items:stretch;min-height:calc(var(--_row-h) - 8px);margin:4px 0}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-editing,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editing{height:auto;vertical-align:top}.poad-table.poad-table .dt-editor input,.poad-table.poad-table .dt-editor textarea{width:100%;height:calc(var(--_row-h) - 8px);box-sizing:border-box;padding:0 8px;font:var(--poad-font-size) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-accent);border-radius:var(--poad-radius-sm);outline:0;box-shadow:0 0 0 3px var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row>td[data-col]:focus{outline:none}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row>td[data-col]:focus-visible{background:var(--poad-hover);box-shadow:inset 0 0 0 2px var(--poad-ring)}.poad-table.poad-table .dt-editor>.poad-select{flex:1 1 0;min-width:0}.poad-table.poad-table.poad-table .dt-editor>.poad-select .poad-select__trigger{height:calc(var(--_row-h) - 8px);border-color:var(--poad-accent);box-shadow:0 0 0 3px var(--poad-ring)}.poad-table.poad-table.poad-table .dt-editor.is-invalid>.poad-select .poad-select__trigger{border-color:var(--poad-danger);box-shadow:0 0 0 3px var(--poad-danger-soft)}.poad-table.poad-table .dt-editor input[type=number]{font-family:var(--poad-font-mono);text-align:right}.poad-table.poad-table .dt-editor textarea{height:auto;min-height:76px;padding:6px 8px;resize:vertical;line-height:1.45;font:var(--poad-font-size)/1.45 var(--poad-font)}.poad-table.poad-table .dt-editor input[type=checkbox]{width:16px;height:16px;box-shadow:none;accent-color:var(--poad-accent)}.poad-table.poad-table .dt-editor.is-invalid input,.poad-table.poad-table .dt-editor.is-invalid textarea{border-color:var(--poad-danger);box-shadow:0 0 0 3px var(--poad-danger-soft)}.poad-table .dt-editor__err{position:absolute;left:0;top:calc(100% + 4px);z-index:6;padding:3px 8px;border-radius:6px;background:var(--poad-danger);color:#fff;font-size:11px;white-space:nowrap;box-shadow:var(--poad-shadow-md);pointer-events:none}.poad-table .dt-editor__err:before{content:\"\";position:absolute;left:10px;top:-4px;width:8px;height:8px;background:inherit;transform:rotate(45deg)}.poad-table.poad-table.poad-table.poad-table.edit-row .tbl>:where(thead,tbody)>tr.dt-row.is-editing-row>td{background:var(--poad-accent-soft)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re{display:inline-grid;place-items:center;width:26px;height:26px;border:0;border-radius:6px;background:transparent;color:var(--poad-fg-secondary);cursor:pointer;padding:0}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re.ok{color:var(--poad-success)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re.ko{color:var(--poad-danger)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re:focus-visible{outline:2px solid var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table.edit-row .tbl>:where(thead,tbody)>tr.is-editing-row>:where(td.col-acts)>.acts{opacity:1}\n", ".poad-table .dt-scroll{scrollbar-width:thin;scrollbar-color:var(--poad-border-strong) transparent}.poad-table .dt-scroll::-webkit-scrollbar{height:10px;width:10px}.poad-table .dt-scroll::-webkit-scrollbar-thumb{background:var(--poad-border-strong);border-radius:999px;border:2px solid var(--poad-surface)}.poad-table .dt-scroll::-webkit-scrollbar-thumb:hover{background:var(--poad-fg-muted)}.poad-table .dt-scroll::-webkit-scrollbar-track{background:transparent}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.has-menu{padding-right:calc(var(--_cell-px) + 20px)}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0;opacity:0;transition:opacity var(--poad-dur),background var(--poad-dur);z-index:2}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th:hover>.hm,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm:focus-visible,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm.is-on,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-sorted>.hm,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-filtered>.hm{opacity:1}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm:hover,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm.is-on{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-filtered .hd-txt{color:var(--poad-accent)}.poad-table.poad-table.poad-table.poad-table.is-resizable .tbl>:where(thead)>:where(tr)>th.has-menu>.hm{right:10px}.poad-table .dt-gz{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:40px;padding:6px 12px;border-bottom:1px solid var(--poad-border);background:var(--poad-bg-subtle);color:var(--poad-fg-muted);font-size:var(--poad-font-size-sm)}.poad-table .dt-gz.cdk-drop-list-receiving,.poad-table .dt-gz.cdk-drop-list-dragging{background:var(--poad-accent-soft);color:var(--poad-accent);outline:1px dashed var(--poad-accent);outline-offset:-4px}.poad-table .dt-gz__hint{font-style:italic}.poad-table .dt-gz__chip,.dt-gz__chip.cdk-drag-preview{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 4px 0 6px;border-radius:999px;background:var(--poad-accent-soft);color:var(--poad-accent);font-weight:500;cursor:grab}.poad-table.poad-table .dt-gz__chip .dt-gz__drag,.dt-gz__chip.cdk-drag-preview .dt-gz__drag{opacity:.6}.poad-table.poad-table .dt-gz__chip button,.dt-gz__chip.cdk-drag-preview button{width:18px;height:18px;border:0;border-radius:50%;background:transparent;color:inherit;display:grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .dt-gz__chip button:hover,.dt-gz__chip.cdk-drag-preview button:hover{background:var(--poad-accent);color:var(--poad-fg-on-accent)}.poad-table .dt-gz__chip.cdk-drag-placeholder{opacity:.35}.cdk-drag-preview.dt-gz__chip{box-shadow:var(--poad-shadow-md)}.poad-table.poad-table.is-stacked .dt-gz{display:none}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-num,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-num,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-num{width:44px;text-align:right;font:11px var(--poad-font-mono);color:var(--poad-fg-muted);background:var(--poad-bg-subtle);padding:0 8px;-webkit-user-select:none;user-select:none}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-num{font-weight:600}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr:hover>td.col-num{background:var(--poad-bg-subtle)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-num,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-num{position:absolute;left:auto;right:12px;bottom:6px;width:auto;background:transparent;padding:0}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-num:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-num:before{content:none}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-drag,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-drag,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag{width:28px;padding:0 4px}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-drag>.rdh,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag>.rdh{display:inline-grid;place-items:center;width:20px;height:24px;color:var(--poad-fg-muted);cursor:grab;opacity:0;transition:opacity var(--poad-dur);border-radius:4px}.poad-table.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr:hover>td.col-drag>.rdh,.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.cdk-drag-dragging>td.col-drag>.rdh{opacity:.8}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-drag>.rdh:hover,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag>.rdh:hover{color:var(--poad-fg);background:var(--poad-elevated)}.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-row.cdk-drag-placeholder{opacity:0}.poad-table.poad-table.poad-table .tbl>tbody.cdk-drop-list-dragging>tr.dt-row:not(.cdk-drag-placeholder){transition:transform .2s cubic-bezier(0,0,.2,1)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-row.cdk-drag-placeholder>td{border-top:2px solid var(--poad-accent)}.cdk-drag-preview.dt-tr-preview{display:table;table-layout:fixed;box-sizing:border-box;background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:8px;box-shadow:var(--poad-shadow-lg);opacity:.95;font:var(--poad-font-size)/1.4 var(--poad-font);color:var(--poad-fg)}.cdk-drag-preview.dt-tr-preview td{padding:0 12px;height:42px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-drag,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag{display:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PoadColumnComponent, selector: "poad-column", inputs: ["field", "key", "header", "sortable", "sortField", "width", "minWidth", "maxWidth", "align", "resizable", "sticky", "hidden", "toggleable", "filterable", "filterType", "filterOptions", "filterPlaceholder", "filterMatchMode", "dataType", "exportable", "headerClass", "bodyClass", "nowrap", "priority", "groupable", "menu", "editable", "editor", "editorOptions", "validator", "reorderable"], outputs: ["hiddenChange"] }, { kind: "component", type: PoadIconComponent, selector: "poad-icon", inputs: ["name", "size", "strokeWidth", "label", "title", "spin", "filled", "flip", "rotate"] }, { kind: "component", type: PoadCheckboxComponent, selector: "poad-checkbox", inputs: ["label", "ariaLabel", "indeterminate", "invalid", "readonly"], outputs: ["indeterminateChange", "changed"] }, { kind: "component", type: PoadPaginatorComponent, selector: "poad-paginator", inputs: ["first", "rows", "totalRecords", "rowsPerPageOptions", "rowsPerPageLabel", "pageLinks", "showCurrentPageReport", "currentPageReportTemplate", "showFirstLastIcon", "showPageLinks", "alwaysShow"], outputs: ["firstChange", "rowsChange", "pageChange"] }, { kind: "component", type: PoadSelectComponent, selector: "poad-select", outputs: ["changed"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: PoadEditFocusDirective, selector: "[poadEditFocus]" }, { kind: "component", type: PoadMenuComponent, selector: "poad-menu", inputs: ["items", "popup", "ariaLabel", "minWidth", "closeOnSelect", "mobile", "sheetTitle"], outputs: ["itemClick", "shown", "hidden"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
10354
10581
|
}
|
|
10355
10582
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadTableComponent, decorators: [{
|
|
10356
10583
|
type: Component,
|
|
@@ -10374,8 +10601,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
10374
10601
|
'[class.hide-p3]': 'resp.hiddenPriorities().has(3)',
|
|
10375
10602
|
'[class.hide-p4]': 'resp.hiddenPriorities().has(4)',
|
|
10376
10603
|
'[class.hide-p5]': 'resp.hiddenPriorities().has(5)',
|
|
10377
|
-
'[class.is-scrolled-x]': 'sticky.
|
|
10378
|
-
'[class.is-scrolled-x-end]': 'sticky.
|
|
10604
|
+
'[class.is-scrolled-x]': 'sticky.shadowClasses()["is-scrolled-x"]',
|
|
10605
|
+
'[class.is-scrolled-x-end]': 'sticky.shadowClasses()["is-scrolled-x-end"]',
|
|
10379
10606
|
'[class.is-virtual]': 'virtualScroll()',
|
|
10380
10607
|
'[class.is-reorderable]': 'reorderableColumns()',
|
|
10381
10608
|
'[class.has-row-numbers]': 'showRowNumber()',
|
|
@@ -10387,8 +10614,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
10387
10614
|
'[style.--_scroll-h]': 'scrollHeight() || null',
|
|
10388
10615
|
'[style.--_detail-pl]': 'detailPaddingLeft()',
|
|
10389
10616
|
'[style.--_indent]': 'indent()',
|
|
10390
|
-
}, encapsulation: ViewEncapsulation.None, template: "<!-- Colonnes d\u00E9finies par l'entr\u00E9e [colonnes] : rendues en <poad-column> R\u00C9ELS (une\n colonne ne dessine rien, :host display none) et r\u00E9cup\u00E9r\u00E9es par la requ\u00EAte de VUE de\n la base \u2014 le moteur ne consomme qu'une seule esp\u00E8ce de colonne. -->\n@for (d of colonnes(); track d.field) {\n <poad-column\n [field]=\"d.field\"\n [header]=\"d.header ?? d.field\"\n [dataType]=\"d.dataType ?? 'text'\"\n [align]=\"d.align ?? 'left'\"\n [width]=\"d.width ?? ''\"\n [sortable]=\"d.sortable ?? false\"\n />\n}\n<div class=\"dt\" #dt [class]=\"'dt ' + styleClass()\">\n <!-- barre de s\u00E9lection contextuelle (remplace la barre d'outils) -->\n @if (selectedCount() > 0 && showSelectionBar()) {\n <div class=\"dt-sel\" role=\"region\" aria-live=\"polite\">\n <poad-checkbox [value]=\"allState() === 'all'\" [indeterminate]=\"allState() === 'some'\" [ariaLabel]=\"i18n.t('table.selectAll')\" (changed)=\"toggleAll()\"/>\n <span>{{ selectedLabel() === undefined && selectedLabelPlural() === undefined ? i18n.t('table.selectedCount', { n: selectedCount() }) : selectedCount() + ' ' + (selectedCount() > 1 ? (selectedLabelPlural() ?? selectedLabel()) : (selectedLabel() ?? selectedLabelPlural())) }}</span>\n <span class=\"dt-sel__grow\"></span>\n <ng-content select=\"[poadTableSelectionBar]\"/>\n <button type=\"button\" class=\"dt-sel__clear\" [attr.aria-label]=\"i18n.t('table.clearSelection')\" (click)=\"clearSelection()\"><poad-icon name=\"x\" [size]=\"14\"/></button>\n </div>\n } @else if (showToolbar()) {\n <div class=\"dt-bar\">\n @if (title()) {<span class=\"dt-bar__title\">{{ title() }}</span>}\n @if (showCount()) {<span class=\"dt-bar__count\">{{ count() ?? totalFiltered() }}</span>}\n @if (resp.stacked()) {\n <button type=\"button\" class=\"dt-bar__btn dt-bar__filters\" [class.is-on]=\"filtersOpen()\" [attr.aria-expanded]=\"filtersOpen()\" (click)=\"filtersOpen.set(!filtersOpen())\">\n <poad-icon name=\"filter\" [size]=\"13\"/>{{ i18n.text(filtersLabel(), 'table.filters') }}@if (activeFilterCount() > 0) {<span class=\"dt-bar__count\">{{ activeFilterCount() }}</span>}\n </button>\n }\n <span class=\"dt-bar__tools\" [class.is-open]=\"filtersOpen()\"><ng-content select=\"[poadTableToolbar]\"/></span>\n <span class=\"dt-bar__grow\"></span>\n @if (showSearch()) {\n <div class=\"dt-bar__search\">\n <poad-icon name=\"search\" [size]=\"14\"/>\n <input type=\"search\" [placeholder]=\"i18n.text(searchPlaceholder(), 'table.searchPlaceholder')\" [value]=\"searchText()\" (input)=\"onSearch($any($event.target).value)\" [attr.aria-label]=\"i18n.text(searchPlaceholder(), 'table.searchPlaceholder')\"/>\n @if (searchText()) {<button type=\"button\" class=\"dt-bar__clear\" [attr.aria-label]=\"i18n.t('table.clearSearch')\" (click)=\"onSearch('', true)\"><poad-icon name=\"x\" [size]=\"12\"/></button>}\n </div>\n }\n <span class=\"dt-bar__tools-end\"><ng-content select=\"[poadTableToolbarEnd]\"/></span>\n @if (columnToggle()) {\n <div class=\"dt-bar__cols\">\n <button type=\"button\" class=\"dt-bar__btn\" [class.is-on]=\"colsMenuOpen()\" aria-haspopup=\"true\" [attr.aria-expanded]=\"colsMenuOpen()\" (click)=\"colsMenuOpen.set(!colsMenuOpen())\">\n {{ i18n.text(columnsLabel(), 'table.columns') }} <poad-icon name=\"chevron-down\" [size]=\"12\"/>\n </button>\n @if (colsMenuOpen()) {\n <div class=\"dt-bar__menu\" role=\"menu\" (keydown.escape)=\"colsMenuOpen.set(false)\">\n <div class=\"dt-bar__menu-title\">{{ i18n.text(columnsLabel(), 'table.columns') }}</div>\n @for (c of orderedColumns(); track c.id(); let ci = $index; let first = $first; let last = $last) {\n <label [class.is-locked]=\"!c.toggleable()\">\n <poad-checkbox [value]=\"!c.hidden()\" [disabled]=\"!c.toggleable()\" (changed)=\"toggleColumn(c, !$event)\"/>\n <span>{{ c.header() || c.field() }}</span>\n @if (reorderableColumns()) {\n <span class=\"mv\" (click)=\"$event.stopPropagation(); $event.preventDefault()\">\n <button type=\"button\" [attr.aria-label]=\"i18n.t('table.moveUp')\" [disabled]=\"first\" (click)=\"moveColumn(ci, ci - 1)\"><poad-icon name=\"chevron-up\" [size]=\"12\"/></button>\n <button type=\"button\" [attr.aria-label]=\"i18n.t('table.moveDown')\" [disabled]=\"last\" (click)=\"moveColumn(ci, ci + 1)\"><poad-icon name=\"chevron-down\" [size]=\"12\"/></button>\n </span>\n }\n </label>\n }\n </div>\n }\n </div>\n }\n @if (showDensityToggle()) {\n <button type=\"button\" class=\"dt-bar__btn is-ghost dt-bar__density\" [class.is-on]=\"dense()\" [attr.aria-pressed]=\"dense()\" [attr.aria-label]=\"i18n.t('table.density')\" [title]=\"i18n.t('table.density')\" (click)=\"dense.set(!dense())\"><poad-icon name=\"chevrons-up-down\" [size]=\"14\"/></button>\n }\n </div>\n }\n\n @if (showGroupZone() && !resp.stacked()) {\n <div class=\"dt-gz\" [class.is-empty]=\"!groupFields().length\" cdkDropList [id]=\"gzId\" cdkDropListOrientation=\"horizontal\" [cdkDropListData]=\"groupFields()\" [cdkDropListEnterPredicate]=\"gzEnter\" (cdkDropListDropped)=\"onGroupZoneDrop($event)\">\n <poad-icon name=\"layers\" [size]=\"14\"/>\n @if (!groupFields().length) {<span class=\"dt-gz__hint\">{{ i18n.text(groupZoneLabel(), 'table.groupZone') }}</span>}\n @for (f of groupFields(); track f) {\n <span class=\"dt-gz__chip\" cdkDrag [cdkDragData]=\"f\" cdkDragLockAxis=\"x\"><poad-icon name=\"drag\" [size]=\"11\" class=\"dt-gz__drag\"/><span>{{ groupChipLabel(f) }}</span><button type=\"button\" [attr.aria-label]=\"i18n.t('table.ungroupBy', { label: groupChipLabel(f) })\" (click)=\"ungroup(f)\"><poad-icon name=\"x\" [size]=\"11\"/></button></span>\n }\n </div>\n }\n\n <div class=\"dt-scroll\" #scroller (scroll)=\"onScroll()\">\n @if (loading() && hasData()) {<div class=\"dt-loading\"><poad-icon name=\"loader\" [size]=\"22\" spin/></div>}\n @let ta = tableAttrs();\n <table class=\"tbl\" [class]=\"'tbl ' + tableClass()\" [style]=\"tableStyle()\" [attr.aria-busy]=\"ta['aria-busy']\" [attr.aria-rowcount]=\"ta['aria-rowcount']\" [attr.role]=\"ta.role\" [attr.aria-multiselectable]=\"ta['aria-multiselectable']\">\n @if (captionTpl()) {<caption><ng-container *ngTemplateOutlet=\"captionTpl()!.tpl\"/></caption>}\n <colgroup>\n @if (hasNumberColumn()) {<col style=\"width:44px\">}\n @if (hasSelectionColumn()) {<col style=\"width:36px\">}\n @if (rowDragEnabled()) {<col style=\"width:28px\">}\n @if (hasExpandColumn()) {<col style=\"width:30px\">}\n @for (c of visibleColumns(); track c.id()) {<col [style.width]=\"colWidth(c)\" [style.min-width]=\"c.minWidth() || null\" [style.max-width]=\"c.maxWidth() || null\">}\n @if (hasActionsColumn()) {<col [style.width]=\"rowActionsWidth()\">}\n </colgroup>\n <thead>\n @let hgRows = headerGroups().length && !resp.stacked() ? 1 : 0;\n @if (hgRows) {\n <tr class=\"hg\" [attr.aria-rowindex]=\"headerRowAttrs(0)['aria-rowindex']\">\n @if (hasNumberColumn()) {<th [class]=\"stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\"></th>}\n @if (hasSelectionColumn()) {<th [class]=\"stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\"></th>}\n @if (rowDragEnabled()) {<th [class]=\"stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\"></th>}\n @if (hasExpandColumn()) {<th [class]=\"stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\"></th>}\n @for (g of headerGroups(); track $index) {<th scope=\"colgroup\" [attr.colspan]=\"g.span\" [class]=\"'hg-cell ' + (g.class || '')\">{{ g.header }}</th>}\n @if (hasActionsColumn()) {<th [class]=\"stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"></th>}\n </tr>\n }\n <tr [attr.aria-rowindex]=\"headerRowAttrs(hgRows)['aria-rowindex']\" cdkDropList cdkDropListOrientation=\"horizontal\" [cdkDropListDisabled]=\"!reorderableColumns() && !showGroupZone()\" [cdkDropListSortingDisabled]=\"!reorderableColumns()\" [cdkDropListConnectedTo]=\"showGroupZone() ? [gzId] : []\" (cdkDropListDropped)=\"onColumnDrop($event)\">\n @if (hasNumberColumn()) {<th class=\"col-num\" scope=\"col\" data-sk=\"num\" [class]=\"'col-num ' + stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\">#</th>}\n @if (hasSelectionColumn()) {\n <th class=\"col-sel\" scope=\"col\" data-sk=\"sel\" [class]=\"'col-sel ' + stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\">\n @if (selectionMode() === 'multiple' && selectAll()) {\n <poad-checkbox [value]=\"allState() === 'all'\" [indeterminate]=\"allState() === 'some'\" [ariaLabel]=\"i18n.t('table.selectAll')\" (changed)=\"toggleAll()\"/>\n }\n </th>\n }\n @if (rowDragEnabled()) {<th class=\"col-drag\" scope=\"col\" data-sk=\"drag\" [class]=\"'col-drag ' + stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\"><span hidden>{{ i18n.t('table.move') }}</span></th>}\n @if (hasExpandColumn()) {<th class=\"col-exp\" scope=\"col\" data-sk=\"exp\" [class]=\"'col-exp ' + stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\"><span hidden>{{ i18n.t('table.detail') }}</span></th>}\n @for (c of visibleColumns(); track c.id()) {\n <th scope=\"col\" [attr.data-sk]=\"c.id()\" [class]=\"thClass(c) + (canDrag(c) ? ' can-drag' : '') + (showsMenu(c) ? ' has-menu' : '') + (hasColFilter(c) ? ' is-filtered' : '')\" [attr.aria-sort]=\"ariaSort(c)\" [style.width]=\"colWidth(c)\" [style.left.px]=\"stickyLeft(c.id())\" [style.right.px]=\"stickyRight(c.id())\"\n cdkDrag [cdkDragDisabled]=\"!canDrag(c)\" [cdkDragData]=\"c\" [cdkDragLockAxis]=\"showGroupZone() ? null : 'x'\" cdkDragPreviewClass=\"dt-th-preview\" [cdkDragBoundary]=\"showGroupZone() ? '' : '.tbl thead'\">\n @if (canDrag(c)) {<span class=\"dh\" cdkDragHandle aria-hidden=\"true\" [title]=\"i18n.t('table.moveColumn')\"><poad-icon name=\"drag\" [size]=\"12\"/></span>}\n @if (c.headerTpl()) {\n <ng-container *ngTemplateOutlet=\"c.headerTpl()!.tpl; context: { $implicit: c }\"/>\n } @else if (c.sortable()) {\n <button type=\"button\" class=\"hd\" (click)=\"sort(c, $event)\" [attr.aria-label]=\"i18n.t('table.sortBy', { column: c.header() })\">\n <span class=\"hd-txt\">{{ c.header() }}</span>\n <poad-icon [name]=\"sortIcon(c)\" [size]=\"12\"/>\n @if (sortMode() === 'multiple' && sortIndex(c) > 0) {<span class=\"hd-idx\">{{ sortIndex(c) }}</span>}\n </button>\n } @else {\n <span class=\"hd\"><span class=\"hd-txt\">{{ c.header() }}</span></span>\n }\n @if (showsMenu(c)) {<button type=\"button\" class=\"hm\" [class.is-on]=\"menuColumn() === c && !!headerMenu()?.visible()\" [attr.aria-label]=\"i18n.t('table.columnMenu')\" aria-haspopup=\"menu\" (click)=\"openHeaderMenu(c, $event)\" (pointerdown)=\"$event.stopPropagation()\"><poad-icon name=\"more-vertical\" [size]=\"13\"/></button>}\n @if (isResizable(c)) {<span class=\"rz\" [class.is-active]=\"resizingId() === c.id()\" (pointerdown)=\"startResize($event, c)\" aria-hidden=\"true\"></span>}\n </th>\n }\n @if (hasActionsColumn()) {<th class=\"col-acts\" scope=\"col\" data-sk=\"acts\" [class]=\"'col-acts ' + stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"><span hidden>{{ i18n.t('table.actions') }}</span></th>}\n </tr>\n @if (hasFilterRow()) {\n <tr class=\"flt\" [attr.aria-rowindex]=\"headerRowAttrs(hgRows + 1)['aria-rowindex']\">\n @if (hasNumberColumn()) {<th [class]=\"stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\"></th>}\n @if (hasSelectionColumn()) {<th [class]=\"stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\"></th>}\n @if (rowDragEnabled()) {<th [class]=\"stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\"></th>}\n @if (hasExpandColumn()) {<th [class]=\"stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\"></th>}\n @for (c of visibleColumns(); track c.id()) {\n <th [class]=\"stickyClass(c.id())\" [style.left.px]=\"stickyLeft(c.id())\" [style.right.px]=\"stickyRight(c.id())\">\n @if (c.filterable()) {\n @if (c.filterTpl()) {\n <ng-container *ngTemplateOutlet=\"c.filterTpl()!.tpl; context: { $implicit: c, value: filterValue(c), filter: filterFn(c) }\"/>\n } @else {\n @let kind = filterKind(c);\n @let op = filterOp(c);\n <div class=\"flt-cell\" [class.is-active]=\"hasColFilter(c)\" [class.is-range]=\"op.range\">\n @if (kind === 'boolean') {\n <poad-select size=\"sm\" clearable [options]=\"booleanOptions()\" [value]=\"filterValue(c)\" [placeholder]=\"c.filterPlaceholder() || i18n.t('filter.any')\" [ariaLabel]=\"i18n.t('filter.column', { column: c.header() })\" (changed)=\"setFilter(c, $event)\"/>\n } @else if (kind === 'select' && op.mode !== 'eq') {\n <button type=\"button\" class=\"flt-in\" [class.is-ph]=\"!filterArray(c).length\" [attr.aria-label]=\"i18n.t('filter.column', { column: c.header() })\" (click)=\"openInMenu(c, $event)\">\n <span>{{ filterArray(c).length ? i18n.t('filter.selectedCount', { n: filterArray(c).length }) : (c.filterPlaceholder() || i18n.t('filter.any')) }}</span><poad-icon name=\"chevron-down\" [size]=\"11\"/>\n </button>\n } @else if (kind === 'select') {\n <poad-select size=\"sm\" clearable [options]=\"c.filterOptions()\" [value]=\"filterValue(c)\" [placeholder]=\"c.filterPlaceholder() || i18n.t('filter.any')\" [ariaLabel]=\"i18n.t('filter.column', { column: c.header() })\" (changed)=\"setFilter(c, $event, 'eq')\"/>\n } @else if (!op.needsValue) {\n <span class=\"flt-txt\">{{ opLabel(op) }}</span>\n } @else if (op.range) {\n <input [type]=\"kind === 'number' ? 'number' : kind === 'date' ? 'date' : 'search'\" [value]=\"filterPart(c, 0)\" [placeholder]=\"i18n.t('filter.min')\" (input)=\"setFilterPart(c, 0, $any($event.target).value)\" [attr.aria-label]=\"i18n.t('filter.columnMin', { column: c.header() })\"/>\n <input [type]=\"kind === 'number' ? 'number' : kind === 'date' ? 'date' : 'search'\" [value]=\"filterPart(c, 1)\" [placeholder]=\"i18n.t('filter.max')\" (input)=\"setFilterPart(c, 1, $any($event.target).value)\" [attr.aria-label]=\"i18n.t('filter.columnMax', { column: c.header() })\"/>\n } @else {\n <input [type]=\"kind === 'number' ? 'number' : kind === 'date' ? 'date' : 'search'\" [value]=\"filterPart(c, 0)\" [placeholder]=\"c.filterPlaceholder() || opLabel(op)\" (input)=\"setFilterDebounced(c, $any($event.target).value)\" [attr.aria-label]=\"i18n.t('filter.column', { column: c.header() })\"/>\n }\n @if (kind !== 'boolean') {\n <button type=\"button\" class=\"flt-op\" [class.is-on]=\"hasColFilter(c) || op.mode !== filterOp(c).mode\" [attr.aria-label]=\"i18n.t('filter.operator', { label: opLabel(op) })\" [title]=\"opLabel(op)\" (click)=\"openFilterMenu(c, $event)\"><poad-icon name=\"filter\" [size]=\"12\"/></button>\n }\n @if (hasColFilter(c)) {<button type=\"button\" class=\"flt-x\" [attr.aria-label]=\"i18n.t('filter.clear')\" (click)=\"clearColumnFilter(c)\"><poad-icon name=\"x\" [size]=\"11\"/></button>}\n </div>\n }\n }\n </th>\n }\n @if (hasActionsColumn()) {<th [class]=\"stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"></th>}\n </tr>\n }\n </thead>\n <tbody cdkDropList [cdkDropListDisabled]=\"!rowDragEnabled()\" cdkDropListLockAxis=\"y\" (cdkDropListDropped)=\"onRowDrop($event)\">\n @if (bodyState() === 'skeleton') {\n @for (i of skeletonRows(); track i) {\n <tr class=\"dt-row is-skeleton\" aria-hidden=\"true\">\n @if (hasNumberColumn()) {<td class=\"col-num\"></td>}\n @if (hasSelectionColumn()) {<td class=\"col-sel\"></td>}\n @if (rowDragEnabled()) {<td class=\"col-drag\"></td>}\n @if (hasExpandColumn()) {<td class=\"col-exp\"></td>}\n @for (c of visibleColumns(); track c.id()) {<td [class]=\"tdClass(c)\"><div class=\"skel\" [style.width.%]=\"skeletonWidth(i, $index)\" [style.margin-left]=\"alignOf(c) === 'right' ? 'auto' : null\"></div></td>}\n @if (hasActionsColumn()) {<td></td>}\n </tr>\n }\n } @else if (bodyState() === 'empty') {\n <tr class=\"dt-empty\"><td [attr.colspan]=\"colspan()\">\n @if (emptyTpl()) {<ng-container *ngTemplateOutlet=\"emptyTpl()!.tpl\"/>}\n @else {\n <div class=\"empty\">\n @if (emptyIcon()) {<poad-icon [name]=\"emptyIcon()\" [size]=\"26\" [strokeWidth]=\"1.5\"/>}\n <b>{{ i18n.text(emptyMessage(), 'table.empty') }}</b>\n @if (emptyHint()) {<span>{{ emptyHint() }}</span>}\n </div>\n }\n </td></tr>\n } @else {\n @if (virtual.range().topPad > 0) {<tr class=\"dt-vpad\" aria-hidden=\"true\"><td [attr.colspan]=\"colspan()\" [style.height.px]=\"virtual.range().topPad\"></td></tr>}\n @for (d of renderRows(); track d.trackKey; let vi = $index) {\n @let i = vi + virtual.range().start;\n @if (d.kind === 'group') {\n <!-- en-t\u00EAte de groupe -->\n <tr class=\"dt-group\" [class.is-expanded]=\"d.node!.expanded\" [style.--_lvl]=\"d.level\" role=\"row\" [attr.aria-level]=\"d.level + 1\" [attr.aria-expanded]=\"d.node!.expanded\" [attr.aria-posinset]=\"d.node!.posInSet\" [attr.aria-setsize]=\"d.node!.setSize\">\n <td [attr.colspan]=\"colspan()\" class=\"dt-group__cell\">\n <div class=\"dt-group__inner\">\n @if (hasSelectionColumn() && selectionMode() === 'multiple') {\n <poad-checkbox [value]=\"nodeState(d) === 'on'\" [indeterminate]=\"nodeState(d) === 'some'\" [ariaLabel]=\"i18n.t('table.selectGroup', { label: d.node!.group!.label })\" (changed)=\"toggleGroupSelection(d, $event)\"/>\n }\n <button type=\"button\" class=\"exp\" [attr.aria-expanded]=\"d.node!.expanded\" [attr.aria-label]=\"d.node!.expanded ? i18n.t('common.collapse') : i18n.t('common.expand')\" (click)=\"toggleGroup(d.node!)\"><poad-icon name=\"chevron-right\" [size]=\"13\"/></button>\n @if (groupHeaderTpl()) {\n <ng-container *ngTemplateOutlet=\"groupHeaderTpl()!.tpl; context: groupCtx(d)\"/>\n } @else {\n <span class=\"dt-group__label\">{{ d.node!.group!.label }}</span>\n <span class=\"dt-group__count\">{{ d.node!.group!.count }}</span>\n }\n </div>\n </td>\n </tr>\n } @else if (d.kind === 'groupFooter') {\n <!-- pied de groupe (agr\u00E9gats) -->\n <tr class=\"dt-group-foot\" [style.--_lvl]=\"d.level\">\n @if (groupFooterTpl()) {\n <td [attr.colspan]=\"colspan()\"><ng-container *ngTemplateOutlet=\"groupFooterTpl()!.tpl; context: groupCtx(d)\"/></td>\n } @else {\n @if (hasNumberColumn()) {<td class=\"col-num\"></td>}\n @if (hasSelectionColumn()) {<td class=\"col-sel\"></td>}\n @if (rowDragEnabled()) {<td class=\"col-drag\"></td>}\n @if (hasExpandColumn()) {<td class=\"col-exp\"></td>}\n @for (c of visibleColumns(); track c.id(); let ci = $index) {\n <td [class]=\"tdClass(c)\" [attr.data-l]=\"c.header()\">\n @if (ci === 0 && !hasAggregate(c)) {<span class=\"dt-group-foot__label\">{{ i18n.t('table.total', { label: d.node!.group!.label }) }}</span>}\n @else if (hasAggregate(c)) {{{ formatCell(d.node!.group!.aggregates[c.field()], c) }}}\n </td>\n }\n @if (hasActionsColumn()) {<td></td>}\n }\n </tr>\n } @else if (resp.stacked() && cardTpl()) {\n <!-- carte custom (mode stack) -->\n @let ca = rowAttrs(d, i);\n <tr class=\"dt-row dt-card\" [class]=\"rowClasses(d.row, i, d)\" [style]=\"rowStyle()?.(d.row, i) || null\" [attr.tabindex]=\"ca.tabindex\" [attr.aria-selected]=\"ca.selected\" [attr.aria-rowindex]=\"ca.rowindex\"\n (click)=\"onRowClick(d.row, i, $event, d)\" (keydown)=\"onRowKey(d, i, $event)\" (focus)=\"onRowFocus(d)\">\n <td [attr.colspan]=\"colspan()\"><ng-container *ngTemplateOutlet=\"cardTpl()!.tpl; context: { $implicit: d.row, rowIndex: i, node: d.node, selected: isSelected(d.row) }\"/></td>\n </tr>\n } @else {\n <!-- ligne -->\n @let ra = rowAttrs(d, i);\n <tr class=\"dt-row\" [class]=\"rowClasses(d.row, i, d)\" [style]=\"rowStyle()?.(d.row, i) || null\" [style.--_lvl]=\"d.level\" [attr.data-key]=\"d.key\" [class.is-editing-row]=\"isRowEditing(d.row)\"\n cdkDrag [cdkDragDisabled]=\"!canDragRow(d.row)\" [cdkDragData]=\"d.row\" cdkDragLockAxis=\"y\" cdkDragPreviewClass=\"dt-tr-preview\" cdkDragBoundary=\".tbl\"\n [attr.tabindex]=\"ra.tabindex\" [attr.aria-selected]=\"ra.selected\" [attr.aria-rowindex]=\"ra.rowindex\"\n [attr.role]=\"hierarchical() ? 'row' : null\" [attr.aria-level]=\"hierarchical() ? d.level + 1 : null\" [attr.aria-expanded]=\"d.node?.hasChildren ? d.node!.expanded : null\"\n [attr.aria-setsize]=\"d.node ? d.node.setSize : null\" [attr.aria-posinset]=\"d.node ? d.node.posInSet : null\"\n (click)=\"onRowClick(d.row, i, $event, d)\" (dblclick)=\"rowDblClick.emit({ row: d.row, index: i, event: $event })\" (keydown)=\"onRowKey(d, i, $event)\" (focus)=\"onRowFocus(d)\">\n @if (hasNumberColumn()) {<td class=\"col-num\" [class]=\"'col-num ' + stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\">{{ rowNumber(d) }}</td>}\n @if (hasSelectionColumn()) {\n <td class=\"col-sel\" [class]=\"'col-sel ' + stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\">\n @if (canSelect(d.row)) {\n @if (selectionMode() === 'multiple') {\n <poad-checkbox [value]=\"nodeState(d) === 'on'\" [indeterminate]=\"nodeState(d) === 'some'\" [ariaLabel]=\"i18n.t('table.selectRow', { index: i + 1 })\" (changed)=\"toggleRow(d.row, i, $event)\"/>\n } @else {\n <poad-checkbox [value]=\"isSelected(d.row)\" [ariaLabel]=\"i18n.t('table.selectRow', { index: i + 1 })\" (changed)=\"selectSingle(d.row, i)\"/>\n }\n }\n </td>\n }\n @if (rowDragEnabled()) {\n <td class=\"col-drag\" [class]=\"'col-drag ' + stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\">\n @if (canDragRow(d.row)) {<span class=\"rdh\" cdkDragHandle [title]=\"i18n.t('table.moveRow')\" aria-hidden=\"true\"><poad-icon name=\"drag\" [size]=\"13\"/></span>}\n </td>\n }\n @if (hasExpandColumn()) {\n <td class=\"col-exp\" [class]=\"'col-exp ' + stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\">\n @if (canExpand(d.row)) {\n <button type=\"button\" class=\"exp\" [attr.aria-expanded]=\"isExpanded(d.row)\" [attr.aria-label]=\"isExpanded(d.row) ? i18n.t('common.collapse') : i18n.t('common.expand')\" (click)=\"toggleExpand(d.row, $event)\"><poad-icon name=\"chevron-right\" [size]=\"13\"/></button>\n }\n </td>\n }\n @for (c of visibleColumns(); track c.id(); let cFirst = $first) {\n <td [class]=\"tdClass(c) + ' ' + stickyClass(c.id()) + (isTreeColumn(c) ? ' dt-tree-cell' : '') + (cFirst ? ' dt-first' : '') + (editUi.canEditCell(c) ? ' is-editable' : '') + (edit.isEditing(d.row, c) ? ' is-editing' : '')\"\n [style.left.px]=\"stickyLeft(c.id())\" [style.right.px]=\"stickyRight(c.id())\" [attr.data-l]=\"c.header()\" [attr.data-col]=\"c.editable() ? c.id() : null\"\n (click)=\"editUi.onCellClick(d.row, c, $event, false)\" (dblclick)=\"editUi.onCellClick(d.row, c, $event, true)\">\n @if (edit.isEditing(d.row, c) && c.field()) {\n <!-- \u00E9diteur inline (mode cell ou row) -->\n <div class=\"dt-editor\" [class.is-invalid]=\"!!edit.cellError(d.row, c)\" (click)=\"$event.stopPropagation()\" (dblclick)=\"$event.stopPropagation()\" (keydown)=\"editUi.onKey(d.row, c, $event)\" (focusout)=\"editUi.onBlur(d.row, c)\">\n @if (c.editorTpl()) {\n <ng-container *ngTemplateOutlet=\"c.editorTpl()!.tpl; context: editUi.ctxFor(d.row, c, i)\"/>\n } @else {\n @switch (c.editor()) {\n @case ('select') {\n <!-- liste d\u00E9roulante de la biblioth\u00E8que (jamais de select natif) ; panneau en popover : le focus reste dans la cellule -->\n <poad-select #sel poadEditFocus mobile=\"popover\" [options]=\"c.effectiveEditorOptions()\" [value]=\"edit.valueOf(d.row, c)\" [ariaLabel]=\"c.header()\" [invalid]=\"!!edit.cellError(d.row, c)\"\n (changed)=\"editUi.onSelectPick(d.row, c, $event)\" (keydown)=\"editUi.onSelectKey(d.row, c, $event, sel.isOpen())\"/>\n }\n @case ('checkbox') {<input type=\"checkbox\" poadEditFocus [checked]=\"!!edit.valueOf(d.row, c)\" [attr.aria-label]=\"c.header()\" (change)=\"editUi.onInput(d.row, c, $any($event.target).checked)\"/>}\n @case ('textarea') {<textarea poadEditFocus rows=\"3\" [value]=\"edit.valueOf(d.row, c) ?? ''\" [attr.aria-label]=\"c.header()\" (input)=\"editUi.onInput(d.row, c, $any($event.target).value)\"></textarea>}\n @default {<input poadEditFocus [type]=\"editUi.inputType(c)\" [value]=\"edit.valueOf(d.row, c) ?? ''\" [attr.aria-label]=\"c.header()\" [attr.aria-invalid]=\"edit.cellError(d.row, c) ? 'true' : null\" (input)=\"editUi.onInput(d.row, c, $any($event.target).value)\"/>}\n }\n }\n @if (edit.cellError(d.row, c)) {<span class=\"dt-editor__err\" role=\"alert\">{{ edit.cellError(d.row, c) }}</span>}\n </div>\n } @else {\n @if (editUi.canEditCell(c) && showEditIcon()) {<button type=\"button\" class=\"ce\" tabindex=\"-1\" [attr.aria-label]=\"i18n.t('common.edit')\" (click)=\"$event.stopPropagation(); editUi.startEdit(d.row, c)\"><poad-icon name=\"edit\" [size]=\"11\"/></button>}\n @if (isTreeColumn(c) && d.node) {\n <span class=\"dt-tree-wrap\">\n <span class=\"poad-tree-toggle\" [style.--_lvl]=\"d.level\">\n @if (showTreeLines()) { @for (l of levelsOf(d.level); track l) {<i class=\"tl\" aria-hidden=\"true\"></i>} }\n @else {<i class=\"ind\" aria-hidden=\"true\"></i>}\n @let tp = treeToggle(d.node);\n <button type=\"button\" [class]=\"tp.className\" [attr.tabindex]=\"tp.tabindex\"\n [attr.aria-expanded]=\"tp['aria-expanded']\" [attr.aria-label]=\"i18n.t(tp.labelKey)\" (click)=\"toggleNode(d.node, $event)\">\n @if (tp.loading) {<poad-icon name=\"loader\" [size]=\"12\" spin/>} @else {<poad-icon name=\"chevron-right\" [size]=\"13\"/>}\n </button>\n @if (treeIconOf(d.row)) {<poad-icon class=\"ic\" [name]=\"treeIconOf(d.row)!\" [size]=\"14\"/>}\n </span>\n @if (c.cellTpl()) {\n <ng-container *ngTemplateOutlet=\"c.cellTpl()!.tpl; context: { $implicit: d.row, value: cell(d.row, c), rowIndex: i, column: c, level: d.level, expanded: d.node?.expanded ?? false, hasChildren: d.node?.hasChildren ?? false, node: d.node }\"/>\n } @else {<span class=\"cell-txt\">{{ formatCell(cell(d.row, c), c) }}</span>}\n </span>\n } @else {\n @if (c.cellTpl()) {\n <ng-container *ngTemplateOutlet=\"c.cellTpl()!.tpl; context: { $implicit: d.row, value: cell(d.row, c), rowIndex: i, column: c, level: d.level, expanded: d.node?.expanded ?? false, hasChildren: d.node?.hasChildren ?? false, node: d.node }\"/>\n } @else {<span class=\"cell-txt\">{{ formatCell(cell(d.row, c), c) }}</span>}\n }\n }\n </td>\n }\n @if (hasActionsColumn()) {\n <td class=\"col-acts\" [class]=\"'col-acts ' + stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"><span class=\"acts\" (click)=\"$event.stopPropagation()\">\n @if ((editMode() === 'row' || editMode() === 'row-inline') && showRowEditButton()) {\n @if (isRowEditing(d.row)) {\n <button type=\"button\" class=\"re ok\" [attr.aria-label]=\"i18n.t('table.saveRow')\" [title]=\"i18n.t('common.save')\" (click)=\"saveRowEdit(d.row)\"><poad-icon name=\"check\" [size]=\"15\"/></button>\n <button type=\"button\" class=\"re ko\" [attr.aria-label]=\"i18n.t('table.cancelEdit')\" [title]=\"i18n.t('common.cancel')\" (click)=\"cancelRowEdit(d.row)\"><poad-icon name=\"x\" [size]=\"15\"/></button>\n } @else {\n <button type=\"button\" class=\"re\" [attr.aria-label]=\"i18n.t('table.editRow')\" [title]=\"i18n.t('common.edit')\" (click)=\"initRowEdit(d.row)\"><poad-icon name=\"edit\" [size]=\"14\"/></button>\n }\n }\n @if (rowActionsTpl()) {<ng-container *ngTemplateOutlet=\"rowActionsTpl()!.tpl; context: { $implicit: d.row, rowIndex: i, node: d.node, editing: isRowEditing(d.row) }\"/>}\n </span></td>\n }\n </tr>\n @if (isExpanded(d.row) && hasExpandColumn()) {\n <tr class=\"dt-detail\" [style.--_lvl]=\"d.level\"><td [attr.colspan]=\"colspan()\">\n @if (expansionTpl()) {\n <ng-container *ngTemplateOutlet=\"expansionTpl()!.tpl; context: { $implicit: d.row, rowIndex: i, hiddenColumns: hiddenByPriority(), node: d.node }\"/>\n } @else {\n <div class=\"kv\">\n @for (c of hiddenByPriority(); track c.id()) {<div><b>{{ c.header() || c.field() }}</b>\n @if (c.cellTpl()) {<ng-container *ngTemplateOutlet=\"c.cellTpl()!.tpl; context: { $implicit: d.row, value: cell(d.row, c), rowIndex: i, column: c, level: d.level, expanded: false, hasChildren: false, node: d.node }\"/>}\n @else {{{ formatCell(cell(d.row, c), c) }}}\n </div>}\n </div>\n }\n </td></tr>\n }\n }\n }\n @if (virtual.range().bottomPad > 0) {<tr class=\"dt-vpad\" aria-hidden=\"true\"><td [attr.colspan]=\"colspan()\" [style.height.px]=\"virtual.range().bottomPad\"></td></tr>}\n }\n </tbody>\n @if (footerTpl() || showGrandTotalRow()) {\n <tfoot>\n @if (showGrandTotalRow()) {\n <tr class=\"dt-grand\">\n @if (hasNumberColumn()) {<td class=\"col-num\"></td>}\n @if (hasSelectionColumn()) {<td class=\"col-sel\"></td>}\n @if (rowDragEnabled()) {<td class=\"col-drag\"></td>}\n @if (hasExpandColumn()) {<td class=\"col-exp\"></td>}\n @for (c of visibleColumns(); track c.id(); let ci = $index) {\n <td [class]=\"tdClass(c)\" [attr.data-l]=\"c.header()\">\n @if (ci === 0 && !hasAggregate(c)) {{{ i18n.text(grandTotalLabel(), 'table.grandTotal') }}}\n @else if (hasAggregate(c)) {{{ formatCell(grandTotal()[c.field()], c) }}}\n </td>\n }\n @if (hasActionsColumn()) {<td></td>}\n </tr>\n }\n @if (footerTpl()) {<ng-container *ngTemplateOutlet=\"footerTpl()!.tpl; context: { $implicit: pageData(), columns: visibleColumns(), aggregates: grandTotal() }\"/>}\n </tfoot>\n }\n </table>\n </div>\n\n @if ((usePaginator() && (paginationTotal() > 0 || lazy())) || showRowCount()) {\n <div class=\"dt-foot\" [class.has-count]=\"showRowCount()\">\n @if (showRowCount()) {\n <span class=\"dt-foot__count\">\n @if (rowCountTpl()) {<ng-container *ngTemplateOutlet=\"rowCountTpl()!.tpl; context: { $implicit: totalRows(), total: totalRows(), filtered: totalFiltered(), selected: selectedCount() }\"/>}\n @else {{{ rowCountText() }}}\n </span>\n }\n @if (usePaginator() && (paginationTotal() > 0 || lazy())) {\n <poad-paginator [first]=\"first()\" [rows]=\"rows()\" [totalRecords]=\"paginationTotal()\" [rowsPerPageOptions]=\"rowsPerPageOptions()\" [pageLinks]=\"resp.stacked() ? 3 : pageLinks()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\" [currentPageReportTemplate]=\"currentPageReportTemplate()\" [showFirstLastIcon]=\"showFirstLastIcon()\"\n [alwaysShow]=\"alwaysShowPaginator()\" (pageChange)=\"onPage($event)\"/>\n }\n </div>\n }\n <poad-menu #hmenu popup [items]=\"menuItems()\" [ariaLabel]=\"i18n.t('table.columnMenu')\"/>\n <poad-menu #fmenu popup [items]=\"filterMenuItems()\" [ariaLabel]=\"i18n.t('filter.operatorMenu')\" [minWidth]=\"200\"/>\n <poad-menu #inmenu popup [closeOnSelect]=\"false\" [items]=\"inMenuItems()\" [ariaLabel]=\"i18n.t('filter.valuesMenu')\" [minWidth]=\"180\"/>\n</div>\n", styles: [".poad-table{--_row-h: var(--poad-table-row-h, 42px);--_cell-px: 12px;display:block;min-width:0;max-width:100%;font:var(--poad-font-size)/1.4 var(--poad-font);color:var(--poad-fg)}.poad-table.is-dense{--_row-h: 34px}.poad-table .dt{border:1px solid var(--poad-border);border-radius:var(--poad-radius-lg);background:var(--poad-surface);overflow:hidden;position:relative}.poad-table.poad-table.is-borderless .dt{border:0;border-radius:0}.poad-table .dt-bar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--poad-border);flex-wrap:wrap}.poad-table .dt-bar__title{font-weight:600;font-size:13.5px;margin-inline-end:4px}.poad-table .dt-bar__count{font:500 11px var(--poad-font-mono);padding:2px 7px;border-radius:999px;background:var(--poad-elevated);color:var(--poad-fg-secondary)}.poad-table .dt-bar__grow{flex:1}.poad-table .dt-bar__search{position:relative;display:flex;align-items:center;width:240px;max-width:100%}.poad-table.poad-table .dt-bar__search>.poad-icon{position:absolute;inset-inline-start:9px;color:var(--poad-fg-muted);pointer-events:none}.poad-table.poad-table .dt-bar__search input{width:100%;box-sizing:border-box;height:30px;padding-block:0;padding-inline:30px 28px;font:var(--poad-font-size) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-input-border);border-radius:var(--poad-radius);outline:0;transition:border-color var(--poad-dur),box-shadow var(--poad-dur)}.poad-table.poad-table .dt-bar__search input::placeholder{color:var(--poad-fg-muted)}.poad-table.poad-table .dt-bar__search input::-webkit-search-cancel-button,.poad-table.poad-table .flt-cell input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}.poad-table.poad-table .dt-bar__search input:focus{border-color:var(--poad-accent);box-shadow:0 0 0 3px var(--poad-ring)}.poad-table.poad-table .dt-bar__search .dt-bar__clear{position:absolute;inset-inline-end:6px;border:0;background:transparent;color:var(--poad-fg-muted);cursor:pointer;display:grid;place-items:center;padding:2px;border-radius:4px}.poad-table.poad-table .dt-bar__search .dt-bar__clear:hover{color:var(--poad-fg);background:var(--poad-hover)}.poad-table .dt-bar__btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:26px;padding:0 8px;border-radius:var(--poad-radius-sm);border:1px solid var(--poad-border-strong);background:transparent;color:var(--poad-fg-secondary);font:500 var(--poad-font-size-sm) var(--poad-font);cursor:pointer;white-space:nowrap}.poad-table .dt-bar__btn:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-table .dt-bar__btn:focus-visible{outline:2px solid var(--poad-ring);outline-offset:1px}.poad-table .dt-bar__btn.is-ghost{border-color:transparent;width:26px;padding:0}.poad-table .dt-bar__btn.is-on{color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table .dt-bar__cols{position:relative}.poad-table .dt-bar__menu{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:20;min-width:200px;max-height:280px;overflow:auto;background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:9px;box-shadow:var(--poad-shadow-lg);padding:4px}.poad-table.poad-table .dt-bar__menu label{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;font-size:var(--poad-font-size)}.poad-table.poad-table .dt-bar__menu label:hover{background:var(--poad-hover)}.poad-table.poad-table .dt-bar__menu label.is-locked{opacity:.5;cursor:default}.poad-table .dt-bar__menu-title{font:600 10px/1 var(--poad-font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--poad-fg-muted);padding:6px 8px 4px}.poad-table .dt-sel{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--poad-accent-soft);border-bottom:1px solid var(--poad-border);font-size:12.5px;color:var(--poad-accent);font-weight:500;min-height:47px;box-sizing:border-box}.poad-table .dt-sel__grow{flex:1}.poad-table .dt-sel__clear{border:0;background:transparent;color:inherit;cursor:pointer;display:grid;place-items:center;width:26px;height:26px;border-radius:6px}.poad-table .dt-sel__clear:hover{background:var(--poad-accent-soft)}.poad-table .dt-scroll{overflow:auto;position:relative}.poad-table.poad-table.has-scroll-height .dt-scroll{max-height:var(--_scroll-h);scrollbar-width:thin;scrollbar-color:var(--poad-border-strong) transparent;scrollbar-gutter:stable}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar{width:10px;height:10px}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar-thumb{background:var(--poad-border-strong);border-radius:999px;border:2px solid var(--poad-surface)}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar-thumb:hover{background:var(--poad-fg-muted)}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar-track{background:transparent}.poad-table .dt-loading{position:absolute;inset:0;display:grid;place-items:center;background:color-mix(in srgb,var(--poad-surface) 55%,transparent);z-index:5}.poad-table.poad-table .dt-loading .poad-icon{color:var(--poad-accent)}.poad-table .tbl{width:100%;border-collapse:separate;border-spacing:0;font-size:var(--poad-font-size)}.poad-table.poad-table.is-resizable .tbl{table-layout:fixed}.poad-table.poad-table .tbl>caption{text-align:start;padding:10px 12px;font-weight:600;color:var(--poad-fg-secondary);font-size:var(--poad-font-size-sm)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th{position:relative;text-align:start;font-weight:600;font-size:var(--poad-font-size-sm);color:var(--poad-fg-secondary);background:var(--poad-bg-subtle);padding:0 var(--_cell-px);height:38px;border-bottom:1px solid var(--poad-border);white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box}.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>thead>:where(tr)>th{position:sticky;top:0;z-index:3}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.al-right{text-align:end}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.al-center{text-align:center}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-left,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-left,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-left{position:sticky;inset-inline-start:0;z-index:2;background:var(--poad-surface)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-right,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-right,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right{position:sticky;inset-inline-end:0;z-index:2;background:var(--poad-surface)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-left,.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-right{background:var(--poad-bg-subtle);z-index:4}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hd{display:inline-flex;align-items:center;gap:4px;max-width:100%}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.al-right>.hd{flex-direction:row-reverse}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th .hd-txt{overflow:hidden;text-overflow:ellipsis}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>button.hd{all:unset;display:inline-flex;align-items:center;gap:4px;cursor:pointer;border-radius:4px;max-width:100%}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>button.hd:focus-visible{outline:2px solid var(--poad-ring);outline-offset:2px}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hd>.poad-icon{opacity:0;transition:opacity var(--poad-dur);flex:none}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th:hover>.hd>.poad-icon{opacity:.6}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-sorted>.hd{color:var(--poad-accent)}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-sorted>.hd>.poad-icon{opacity:1}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th .hd-idx{font:600 9px var(--poad-font-mono);background:var(--poad-accent-soft);color:var(--poad-accent);border-radius:999px;padding:1px 4px}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz{position:absolute;inset-inline-end:0;top:8px;bottom:8px;width:5px;cursor:col-resize;z-index:1}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz:after{content:\"\";position:absolute;inset-inline-end:2px;top:0;bottom:0;width:1px;background:var(--poad-border);transition:background var(--poad-dur)}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz:hover:after,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz.is-active:after{background:var(--poad-accent);width:2px}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-sel,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-sel,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-sel{width:36px;padding-inline-end:0}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-exp,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-exp,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-exp{width:30px;padding:0 4px}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-acts,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-acts,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-acts{text-align:end;white-space:nowrap}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>th{height:auto;padding:6px var(--_cell-px);background:var(--poad-surface);font-weight:400}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>:where(th)>:where(.flt-cell)>input{width:100%;box-sizing:border-box;height:26px;padding:0 8px;font:var(--poad-font-size-sm) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-input-border);border-radius:var(--poad-radius-sm);outline:0}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>:where(th)>:where(.flt-cell)>input:focus{border-color:var(--poad-accent);box-shadow:0 0 0 2px var(--poad-ring)}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td{padding:0 var(--_cell-px);height:var(--_row-h);border-bottom:1px solid var(--poad-border);vertical-align:middle;font-variant-numeric:tabular-nums;box-sizing:border-box}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.al-right,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.al-right{text-align:end}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.al-center,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.al-center{text-align:center}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-num,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-num{font-family:var(--poad-font-mono);font-size:var(--poad-font-size-sm)}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-nowrap,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-nowrap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tfoot)>:where(tr.dt-grand)>td,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(thead)>:where(tr)>th{border-inline-end:1px solid var(--poad-border)}.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tbody)>:where(tr)>td:last-child,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tfoot)>:where(tr.dt-grand)>td:last-child,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(thead)>:where(tr)>th:last-child{border-inline-end:0}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr:last-child>td{border-bottom:0}.poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl>tbody>tr.dt-row:nth-child(2n of.dt-row)>td{background:var(--poad-table-stripe, var(--poad-bg-subtle))}.poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>tbody>tr.dt-row:hover>td{background:var(--poad-hover)}.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selectable{cursor:pointer}.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row:focus-visible{outline:none}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row:focus-visible>td{background:var(--poad-hover);box-shadow:inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td{background:var(--poad-accent-soft)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td:first-child{box-shadow:inset 3px 0 0 var(--poad-accent)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected:focus-visible>td{box-shadow:inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected:focus-visible>td:first-child{box-shadow:inset 3px 0 0 var(--poad-accent),inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp{width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:inline-grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp:hover{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp:focus-visible{outline:2px solid var(--poad-ring)}.poad-table.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp>.poad-icon{transition:transform var(--poad-dur)}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.is-expanded :where(td.col-exp,.dt-group__inner)>.exp>.poad-icon{transform:rotate(90deg)}.poad-table.poad-table .tbl :where(td.col-acts)>.acts{display:inline-flex;gap:2px;align-items:center;opacity:0;transition:opacity var(--poad-dur)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr:hover>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>tr:hover:where(.dt-grand)>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.is-selected>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr:focus-within>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>tr:focus-within:where(.dt-grand)>:where(td.col-acts)>.acts{opacity:1}.poad-table.poad-table.poad-table.acts-always .tbl :where(td.col-acts)>.acts{opacity:1}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-detail>td{background:var(--poad-bg-subtle);height:auto;padding-block:12px 14px;padding-inline:var(--_detail-pl, 58px) var(--_cell-px)}.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>:where(thead,tbody)>tr.dt-detail:hover>td{background:var(--poad-bg-subtle)}.poad-table.poad-table.poad-table .tbl>tfoot>:where(tr.dt-grand)>td{background:var(--poad-bg-subtle);font-weight:600;color:var(--poad-fg-secondary);border-top:1px solid var(--poad-border);border-bottom:0}.poad-table :where(.tbl>tbody>tr.dt-detail>td)>.kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px 22px;font-size:12.5px}.poad-table.poad-table :where(.tbl>tbody>tr.dt-detail>td)>.kv>:where(div)>b{display:block;font:600 10.5px/1 var(--poad-font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--poad-fg-muted);margin-bottom:4px}.poad-table :where(.tbl>tbody>tr.is-skeleton>td)>.skel{height:12px;border-radius:4px;background:linear-gradient(90deg,var(--poad-elevated),var(--poad-hover),var(--poad-elevated));background-size:200% 100%;animation:poad-tbl-sh 1.4s infinite}@keyframes poad-tbl-sh{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.poad-table :where(.tbl>tbody>tr.is-skeleton>td)>.skel{animation:none}.poad-table.poad-table .tbl :where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp>.poad-icon,.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hd>.poad-icon{transition:none}}.poad-table :where(.tbl>tbody>tr.dt-empty>td)>.empty{display:grid;place-items:center;gap:6px;padding:34px 12px;text-align:center;color:var(--poad-fg-secondary);font-size:12.5px}.poad-table.poad-table :where(.tbl>tbody>tr.dt-empty>td)>.empty>.poad-icon{color:var(--poad-fg-muted)}.poad-table.poad-table :where(.tbl>tbody>tr.dt-empty>td)>.empty>b{color:var(--poad-fg);font-size:var(--poad-font-size)}.poad-table .dt-foot{display:flex;align-items:center;gap:14px;padding:8px 12px;border-top:1px solid var(--poad-border)}.poad-table.poad-table .dt-foot .poad-paginator{flex:1}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>th{padding:5px 6px}.poad-table .flt-cell{position:relative;display:flex;align-items:center;gap:4px;min-width:0}.poad-table.poad-table .flt-cell input,.poad-table.poad-table .flt-cell .flt-in{flex:1 1 0;min-width:0;height:28px;padding:0 26px 0 8px;box-sizing:border-box;font:var(--poad-font-size-sm) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-input-border);border-radius:var(--poad-radius-sm);outline:0;transition:border-color var(--poad-dur),box-shadow var(--poad-dur)}.poad-table.poad-table .flt-cell.is-range input{padding-right:8px}.poad-table.poad-table .flt-cell.is-range input:last-of-type{padding-right:26px}.poad-table.poad-table .flt-cell input:focus,.poad-table.poad-table .flt-cell .flt-in:focus-visible{border-color:var(--poad-accent);box-shadow:0 0 0 2px var(--poad-ring)}.poad-table.poad-table .flt-cell.is-active input,.poad-table.poad-table .flt-cell.is-active .flt-in{border-color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table.poad-table .flt-cell .flt-in{display:inline-flex;align-items:center;justify-content:space-between;gap:6px;text-align:left;cursor:pointer}.poad-table.poad-table .flt-cell .flt-in.is-ph{color:var(--poad-fg-muted)}.poad-table.poad-table.poad-table .flt-cell .flt-in .poad-icon{color:var(--poad-fg-muted);flex:none}.poad-table.poad-table .flt-cell .flt-txt{flex:1;height:28px;display:inline-flex;align-items:center;padding:0 26px 0 8px;font:italic var(--poad-font-size-sm) var(--poad-font);color:var(--poad-accent);background:var(--poad-accent-soft);border:1px solid var(--poad-accent);border-radius:var(--poad-radius-sm);box-sizing:border-box}.poad-table.poad-table .flt-cell .flt-op{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:20px;height:20px;border:0;border-radius:4px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .flt-cell .flt-op:hover,.poad-table.poad-table .flt-cell .flt-op.is-on{color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table.poad-table .flt-cell.is-active .flt-op{right:22px}.poad-table.poad-table .flt-cell .flt-x{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:18px;height:18px;border:0;border-radius:4px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .flt-cell .flt-x:hover{color:var(--poad-danger);background:var(--poad-danger-soft)}.poad-table.poad-table .flt-cell>.poad-select{flex:1 1 0;min-width:0}.poad-table.poad-table.poad-table .flt-cell>.poad-select .poad-select__trigger{padding-inline-end:26px}.poad-table.poad-table.poad-table .flt-cell.is-active>.poad-select .poad-select__trigger{border-color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table .dt-foot__count{font:var(--poad-font-size-sm) var(--poad-font-mono);color:var(--poad-fg-secondary);white-space:nowrap}.poad-table.poad-table .dt-foot.has-count .poad-paginator{flex:1}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell{white-space:nowrap}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.cell-txt,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell>.cell-txt,.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.dt-tree-wrap>.cell-txt{white-space:normal}.poad-table .dt-tree-wrap{display:flex;align-items:center;min-width:0}.poad-table .dt-tree-wrap>.poad-tree-toggle{flex:none}.poad-table .dt-tree-wrap>:not(.poad-tree-toggle){min-width:0}.poad-table .poad-tree-toggle{display:inline-flex;align-items:center;vertical-align:middle;margin-right:4px}.poad-table.poad-table .poad-tree-toggle .ind{display:inline-block;width:calc(var(--_lvl, 0) * var(--_indent, 20px));flex:none}.poad-table.poad-table .poad-tree-toggle .tl{display:inline-block;width:var(--_indent, 20px);align-self:stretch;flex:none;position:relative}.poad-table.poad-table.poad-table.has-tree-lines .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell,.poad-table.poad-table.poad-table.has-tree-lines .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell{padding-top:0;padding-bottom:0}.poad-table.poad-table.has-tree-lines .poad-tree-toggle{align-self:stretch;height:var(--_row-h)}.poad-table.poad-table.poad-table.has-tree-lines .poad-tree-toggle .tl:before{content:\"\";position:absolute;left:9px;top:0;bottom:0;border-left:1px solid var(--poad-border)}.poad-table.poad-table .poad-tree-toggle .tg{width:20px;height:20px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:inline-grid;place-items:center;cursor:pointer;padding:0;flex:none}.poad-table.poad-table .poad-tree-toggle .tg:hover{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table .poad-tree-toggle .tg:focus-visible{outline:2px solid var(--poad-ring)}.poad-table.poad-table.poad-table .poad-tree-toggle .tg .poad-icon{transition:transform var(--poad-dur)}.poad-table.poad-table.poad-table .poad-tree-toggle .tg.is-open .poad-icon{transform:rotate(90deg)}.poad-table.poad-table .poad-tree-toggle .tg.is-leaf{visibility:hidden;pointer-events:none}.poad-table.poad-table .poad-tree-toggle .ic{color:var(--poad-fg-muted);margin:0 6px 0 2px}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-row.lvl-0.has-children>td.dt-tree-cell{font-weight:500}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group>td{background:var(--poad-bg-subtle);height:34px;padding:0 var(--_cell-px);border-bottom:1px solid var(--poad-border)}.poad-table .dt-group__inner{display:flex;align-items:center;gap:6px;padding-left:calc(var(--_lvl, 0) * var(--_indent, 20px));font-weight:600;font-size:var(--poad-font-size-sm)}.poad-table.poad-table .dt-group__inner .exp{width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:inline-grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .dt-group__inner .exp:hover{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table.poad-table .dt-group__inner .exp .poad-icon{transition:transform var(--poad-dur)}.poad-table.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group.is-expanded .dt-group__inner .exp .poad-icon{transform:rotate(90deg)}.poad-table .dt-group__count{font:500 10.5px var(--poad-font-mono);padding:1px 6px;border-radius:999px;background:var(--poad-elevated);color:var(--poad-fg-secondary)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group-foot>td{background:var(--poad-bg-subtle);height:32px;color:var(--poad-fg-secondary);font-size:var(--poad-font-size-sm);border-bottom:1px solid var(--poad-border)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group-foot>td.dt-num,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>tr.dt-grand>td.dt-num{font-family:var(--poad-font-mono);font-weight:600}.poad-table .dt-group-foot__label{padding-left:calc(var(--_lvl, 0) * var(--_indent, 20px) + 26px);font-weight:500}.poad-table.poad-table.poad-table.poad-table .tbl>tfoot>tr.dt-grand>td{background:var(--poad-bg-subtle);font-weight:600;color:var(--poad-fg);border-top:2px solid var(--poad-border);height:36px}.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>:where(thead,tbody)>tr.dt-group:hover>td,.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>:where(thead,tbody)>tr.dt-group-foot:hover>td{background:var(--poad-bg-subtle)}\n", ".poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-left,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-left,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-left,.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-right,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-right,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right{position:sticky;z-index:2;background:var(--poad-surface);background-clip:padding-box}.poad-table.poad-table.poad-table .tbl>thead>:where(tr)>th.st-left,.poad-table.poad-table.poad-table .tbl>thead>:where(tr)>th.st-right{z-index:4;background:var(--poad-bg-subtle)}.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>thead>:where(tr)>th.st-left,.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>thead>:where(tr)>th.st-right{z-index:5}.poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl>tbody>tr.dt-row:nth-child(2n of.dt-row)>td.st-left,.poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl>tbody>tr.dt-row:nth-child(2n of.dt-row)>td.st-right{background:var(--poad-table-stripe, var(--poad-bg-subtle))}.poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>tbody>tr.dt-row:hover>td.st-left,.poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>tbody>tr.dt-row:hover>td.st-right{background:var(--poad-hover)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td.st-left,.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td.st-right{background:color-mix(in srgb,var(--poad-accent) 12%,var(--poad-surface))}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-last-left,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-last-left,.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-last-left{transition:box-shadow var(--poad-dur)}.poad-table.poad-table.poad-table.is-scrolled-x .tbl>:where(tbody)>:where(tr)>td.st-last-left,.poad-table.poad-table.poad-table.is-scrolled-x .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-last-left,.poad-table.poad-table.poad-table.is-scrolled-x .tbl>:where(thead)>:where(tr)>th.st-last-left{box-shadow:1px 0 0 var(--poad-border),6px 0 12px -6px #0000002e}.poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl>:where(tbody)>:where(tr)>td.st-first-right,.poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-first-right,.poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl>:where(thead)>:where(tr)>th.st-first-right{box-shadow:-1px 0 0 var(--poad-border),-6px 0 12px -6px #0000002e}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-right.col-acts>.acts,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right.col-acts>.acts{background:inherit}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-detail>td{padding-left:calc(var(--_detail-pl, 58px) + var(--_lvl, 0) * var(--_indent, 20px))}.poad-table .dt-bar__tools,.poad-table .dt-bar__tools-end{display:contents}.poad-table .dt-bar__filters{display:inline-flex}.poad-table.poad-table .dt-bar__filters .dt-bar__count{padding:1px 6px;font-size:10px}.poad-table.poad-table.is-stacked .dt-bar{gap:8px}.poad-table.poad-table.is-stacked .dt-bar__tools{display:none}.poad-table.poad-table.is-stacked .dt-bar__tools.is-open{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex-basis:100%;order:10;padding-top:8px;border-top:1px dashed var(--poad-border)}.poad-table.poad-table.is-stacked .dt-bar__grow{display:none}.poad-table.poad-table.is-stacked .dt-bar__search{order:5;flex-basis:100%;width:100%}.poad-table.poad-table.is-stacked .dt-bar__cols,.poad-table.poad-table.is-stacked .dt-bar__density{display:none}.poad-table.poad-table.is-stacked .dt-sel{position:sticky;bottom:0;z-index:6;flex-wrap:wrap;border-top:1px solid var(--poad-border);order:99}.poad-table.poad-table.is-stacked .dt-scroll{overflow-x:hidden}.poad-table.poad-table.is-stacked .tbl,.poad-table.poad-table.poad-table.is-stacked .tbl>tbody,.poad-table.poad-table.poad-table.is-stacked .tbl>tfoot,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>tr:where(.dt-grand),.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td{display:block}.poad-table.poad-table.poad-table.is-stacked .tbl>thead,.poad-table.poad-table.poad-table.is-stacked .tbl>colgroup,.poad-table.poad-table.poad-table.is-stacked .tbl>caption{display:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row{position:relative;padding:10px 12px;border-bottom:1px solid var(--poad-border);height:auto}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.has-sel{padding-left:44px}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.is-selected{background:var(--poad-accent-soft);box-shadow:inset 3px 0 0 var(--poad-accent)}.poad-table.poad-table.poad-table.is-hoverable.is-stacked .tbl>:where(thead,tbody)>tr.dt-row:hover{background:var(--poad-hover)}.poad-table.poad-table.poad-table.poad-table.is-hoverable.is-stacked .tbl>:where(thead,tbody)>tr.dt-row:hover>td,.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.is-selected>td,.poad-table.poad-table.poad-table.poad-table.is-striped.is-stacked .tbl>:where(thead,tbody)>tr.dt-row>td{background:transparent!important;box-shadow:none!important}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row:focus-visible{box-shadow:inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td{height:auto;padding:2px 0;border:0;white-space:normal;display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12.5px;position:static}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.st-left,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-left,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.st-right,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right{position:static}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td[data-l]:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td[data-l]:before{content:attr(data-l);color:var(--poad-fg-muted);font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.04em;flex:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-sel,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-sel{position:absolute;left:12px;top:12px;padding:0;width:auto}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-sel:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-sel:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-exp:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-exp:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-acts:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-acts:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-first:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-first:before{content:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-exp,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-exp{position:absolute;right:44px;top:8px;padding:0;width:auto}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-first,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-first,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell{display:block;font-size:14px;font-weight:500;padding:0 44px 6px 0}.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .ind,.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .ind,.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .tl,.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .tl{display:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-acts,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-acts{position:absolute;right:8px;top:8px;padding:0;width:auto}.poad-table.poad-table.poad-table.is-stacked .tbl :where(td.col-acts)>.acts{opacity:1}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-num,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-num{text-align:right}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-detail>td{padding:8px 12px 10px}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.lvl-1{margin-left:22px;border-left:2px solid var(--poad-border)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.lvl-2{margin-left:44px;border-left:2px solid var(--poad-border)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.lvl-3{margin-left:66px;border-left:2px solid var(--poad-border)}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group>td{padding:8px 12px;height:auto;display:block}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group-foot{display:flex;flex-wrap:wrap;gap:4px 14px;padding:6px 12px 6px 44px}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group-foot>td{padding:0}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group-foot>td:empty{display:none}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>tfoot>tr.dt-grand{padding:8px 12px}.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>tfoot>tr.dt-grand>td:empty{display:none}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-empty>td{display:block}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.is-skeleton>td{display:block;padding:4px 0}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-card>td{padding:0;display:block}.poad-table.poad-table.is-stacked .dt-foot{flex-wrap:wrap;gap:8px}.poad-table.poad-table.is-stacked .dt-foot .poad-paginator__rpp{display:none}\n", ".poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.dh{display:none;position:absolute;left:2px;top:50%;transform:translateY(-50%);width:14px;height:18px;color:var(--poad-fg-muted);cursor:grab;border-radius:3px;place-items:center}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.dh:hover{color:var(--poad-fg);background:var(--poad-elevated)}.poad-table.poad-table.poad-table.is-reorderable .tbl>:where(thead)>:where(tr)>th.can-drag{padding-left:calc(var(--_cell-px) + 6px)}.poad-table.poad-table.poad-table.poad-table.is-reorderable .tbl>:where(thead)>:where(tr)>th.can-drag:hover>.dh,.poad-table.poad-table.poad-table.poad-table.is-reorderable .tbl>:where(thead)>:where(tr)>th.can-drag.cdk-drag-dragging>.dh{display:grid}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.cdk-drag-placeholder{opacity:.35;background:var(--poad-accent-soft)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.cdk-drag-placeholder:before{content:\"\";position:absolute;left:-1px;top:4px;bottom:4px;width:2px;background:var(--poad-accent)}.cdk-drag-preview.dt-th-preview{display:flex;align-items:center;height:38px;padding:0 12px;box-sizing:border-box;font:600 var(--poad-font-size-sm) var(--poad-font);color:var(--poad-fg);background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:6px;box-shadow:var(--poad-shadow-lg);list-style:none}.poad-table.poad-table.poad-table.poad-table .tbl>thead>tr.cdk-drop-list-dragging>th:not(.cdk-drag-placeholder){transition:transform .2s cubic-bezier(0,0,.2,1)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}.poad-table.poad-table .dt-bar__menu .mv{display:inline-flex;gap:0;margin-left:auto}.poad-table.poad-table.poad-table .dt-bar__menu .mv button{border:0;background:transparent;color:var(--poad-fg-muted);width:20px;height:20px;border-radius:4px;cursor:pointer;display:grid;place-items:center;padding:0}.poad-table.poad-table.poad-table .dt-bar__menu .mv button:hover:not([disabled]){background:var(--poad-hover);color:var(--poad-fg)}.poad-table.poad-table.poad-table .dt-bar__menu .mv button[disabled]{opacity:.3;cursor:default}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.hg>th{height:30px;text-align:center;font:600 10.5px/1 var(--poad-font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--poad-fg-muted);border-bottom:1px solid var(--poad-border)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.hg>th.hg-cell{border-left:1px solid var(--poad-border)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.hg>th.hg-cell:first-child{border-left:0}.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>:where(thead,tbody)>tr.hg>th{position:sticky;top:0;z-index:3}.poad-table.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>:where(thead,tbody)>tr.hg+tr>th{top:30px}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-vpad>td{padding:0;border:0;height:auto}.poad-table.poad-table.is-virtual .dt-scroll{overflow-anchor:none}.poad-table.poad-table.poad-table.edit-cell .tbl>:where(tbody)>:where(tr)>td.is-editable,.poad-table.poad-table.poad-table.edit-cell .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editable{cursor:text;position:relative}.poad-table.poad-table.poad-table.poad-table.poad-table.edit-cell.is-hoverable .tbl>tbody>tr.dt-row>td.is-editable:hover{background:var(--poad-hover);box-shadow:inset 0 0 0 1px var(--poad-border-strong)}.poad-table.poad-table.poad-table.show-edit-icon .tbl>:where(tbody)>:where(tr)>td.is-editable,.poad-table.poad-table.poad-table.show-edit-icon .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editable{padding-right:calc(var(--_cell-px) + 16px)}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td>.ce,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td>.ce{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:20px;height:20px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0;opacity:0;transition:opacity var(--poad-dur),background var(--poad-dur)}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-editable:hover>.ce,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editable:hover>.ce,.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td>.ce:focus-visible,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td>.ce:focus-visible{opacity:.7}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td>.ce:hover,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td>.ce:hover{opacity:1!important;background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-editing,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editing{padding-top:0;padding-bottom:0;background:var(--poad-surface)!important;box-shadow:none!important}.poad-table .dt-editor{position:relative;display:flex;align-items:stretch;min-height:calc(var(--_row-h) - 8px);margin:4px 0}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-editing,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editing{height:auto;vertical-align:top}.poad-table.poad-table .dt-editor input,.poad-table.poad-table .dt-editor textarea{width:100%;height:calc(var(--_row-h) - 8px);box-sizing:border-box;padding:0 8px;font:var(--poad-font-size) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-accent);border-radius:var(--poad-radius-sm);outline:0;box-shadow:0 0 0 3px var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row>td[data-col]:focus{outline:none}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row>td[data-col]:focus-visible{background:var(--poad-hover);box-shadow:inset 0 0 0 2px var(--poad-ring)}.poad-table.poad-table .dt-editor>.poad-select{flex:1 1 0;min-width:0}.poad-table.poad-table.poad-table .dt-editor>.poad-select .poad-select__trigger{height:calc(var(--_row-h) - 8px);border-color:var(--poad-accent);box-shadow:0 0 0 3px var(--poad-ring)}.poad-table.poad-table.poad-table .dt-editor.is-invalid>.poad-select .poad-select__trigger{border-color:var(--poad-danger);box-shadow:0 0 0 3px var(--poad-danger-soft)}.poad-table.poad-table .dt-editor input[type=number]{font-family:var(--poad-font-mono);text-align:right}.poad-table.poad-table .dt-editor textarea{height:auto;min-height:76px;padding:6px 8px;resize:vertical;line-height:1.45;font:var(--poad-font-size)/1.45 var(--poad-font)}.poad-table.poad-table .dt-editor input[type=checkbox]{width:16px;height:16px;box-shadow:none;accent-color:var(--poad-accent)}.poad-table.poad-table .dt-editor.is-invalid input,.poad-table.poad-table .dt-editor.is-invalid textarea{border-color:var(--poad-danger);box-shadow:0 0 0 3px var(--poad-danger-soft)}.poad-table .dt-editor__err{position:absolute;left:0;top:calc(100% + 4px);z-index:6;padding:3px 8px;border-radius:6px;background:var(--poad-danger);color:#fff;font-size:11px;white-space:nowrap;box-shadow:var(--poad-shadow-md);pointer-events:none}.poad-table .dt-editor__err:before{content:\"\";position:absolute;left:10px;top:-4px;width:8px;height:8px;background:inherit;transform:rotate(45deg)}.poad-table.poad-table.poad-table.poad-table.edit-row .tbl>:where(thead,tbody)>tr.dt-row.is-editing-row>td{background:var(--poad-accent-soft)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re{display:inline-grid;place-items:center;width:26px;height:26px;border:0;border-radius:6px;background:transparent;color:var(--poad-fg-secondary);cursor:pointer;padding:0}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re.ok{color:var(--poad-success)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re.ko{color:var(--poad-danger)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re:focus-visible{outline:2px solid var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table.edit-row .tbl>:where(thead,tbody)>tr.is-editing-row>:where(td.col-acts)>.acts{opacity:1}\n", ".poad-table .dt-scroll{scrollbar-width:thin;scrollbar-color:var(--poad-border-strong) transparent}.poad-table .dt-scroll::-webkit-scrollbar{height:10px;width:10px}.poad-table .dt-scroll::-webkit-scrollbar-thumb{background:var(--poad-border-strong);border-radius:999px;border:2px solid var(--poad-surface)}.poad-table .dt-scroll::-webkit-scrollbar-thumb:hover{background:var(--poad-fg-muted)}.poad-table .dt-scroll::-webkit-scrollbar-track{background:transparent}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.has-menu{padding-right:calc(var(--_cell-px) + 20px)}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0;opacity:0;transition:opacity var(--poad-dur),background var(--poad-dur);z-index:2}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th:hover>.hm,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm:focus-visible,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm.is-on,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-sorted>.hm,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-filtered>.hm{opacity:1}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm:hover,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm.is-on{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-filtered .hd-txt{color:var(--poad-accent)}.poad-table.poad-table.poad-table.poad-table.is-resizable .tbl>:where(thead)>:where(tr)>th.has-menu>.hm{right:10px}.poad-table .dt-gz{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:40px;padding:6px 12px;border-bottom:1px solid var(--poad-border);background:var(--poad-bg-subtle);color:var(--poad-fg-muted);font-size:var(--poad-font-size-sm)}.poad-table .dt-gz.cdk-drop-list-receiving,.poad-table .dt-gz.cdk-drop-list-dragging{background:var(--poad-accent-soft);color:var(--poad-accent);outline:1px dashed var(--poad-accent);outline-offset:-4px}.poad-table .dt-gz__hint{font-style:italic}.poad-table .dt-gz__chip,.dt-gz__chip.cdk-drag-preview{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 4px 0 6px;border-radius:999px;background:var(--poad-accent-soft);color:var(--poad-accent);font-weight:500;cursor:grab}.poad-table.poad-table .dt-gz__chip .dt-gz__drag,.dt-gz__chip.cdk-drag-preview .dt-gz__drag{opacity:.6}.poad-table.poad-table .dt-gz__chip button,.dt-gz__chip.cdk-drag-preview button{width:18px;height:18px;border:0;border-radius:50%;background:transparent;color:inherit;display:grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .dt-gz__chip button:hover,.dt-gz__chip.cdk-drag-preview button:hover{background:var(--poad-accent);color:var(--poad-fg-on-accent)}.poad-table .dt-gz__chip.cdk-drag-placeholder{opacity:.35}.cdk-drag-preview.dt-gz__chip{box-shadow:var(--poad-shadow-md)}.poad-table.poad-table.is-stacked .dt-gz{display:none}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-num,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-num,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-num{width:44px;text-align:right;font:11px var(--poad-font-mono);color:var(--poad-fg-muted);background:var(--poad-bg-subtle);padding:0 8px;-webkit-user-select:none;user-select:none}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-num{font-weight:600}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr:hover>td.col-num{background:var(--poad-bg-subtle)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-num,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-num{position:absolute;left:auto;right:12px;bottom:6px;width:auto;background:transparent;padding:0}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-num:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-num:before{content:none}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-drag,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-drag,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag{width:28px;padding:0 4px}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-drag>.rdh,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag>.rdh{display:inline-grid;place-items:center;width:20px;height:24px;color:var(--poad-fg-muted);cursor:grab;opacity:0;transition:opacity var(--poad-dur);border-radius:4px}.poad-table.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr:hover>td.col-drag>.rdh,.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.cdk-drag-dragging>td.col-drag>.rdh{opacity:.8}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-drag>.rdh:hover,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag>.rdh:hover{color:var(--poad-fg);background:var(--poad-elevated)}.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-row.cdk-drag-placeholder{opacity:0}.poad-table.poad-table.poad-table .tbl>tbody.cdk-drop-list-dragging>tr.dt-row:not(.cdk-drag-placeholder){transition:transform .2s cubic-bezier(0,0,.2,1)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-row.cdk-drag-placeholder>td{border-top:2px solid var(--poad-accent)}.cdk-drag-preview.dt-tr-preview{display:table;table-layout:fixed;box-sizing:border-box;background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:8px;box-shadow:var(--poad-shadow-lg);opacity:.95;font:var(--poad-font-size)/1.4 var(--poad-font);color:var(--poad-fg)}.cdk-drag-preview.dt-tr-preview td{padding:0 12px;height:42px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-drag,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag{display:none}\n"] }]
|
|
10391
|
-
}], ctorParameters: () => [], propDecorators: { scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], dtEl: [{ type: i0.ViewChild, args: ['dt', { isSignal: true }] }], headerMenu: [{ type: i0.ViewChild, args: ['hmenu', { isSignal: true }] }], filterMenu: [{ type: i0.ViewChild, args: ['fmenu', { isSignal: true }] }], inMenu: [{ type: i0.ViewChild, args: ['inmenu', { isSignal: true }] }] } });
|
|
10617
|
+
}, encapsulation: ViewEncapsulation.None, template: "<!-- Colonnes d\u00E9finies par l'entr\u00E9e [colonnes] : rendues en <poad-column> R\u00C9ELS (une\n colonne ne dessine rien, :host display none) et r\u00E9cup\u00E9r\u00E9es par la requ\u00EAte de VUE de\n la base \u2014 le moteur ne consomme qu'une seule esp\u00E8ce de colonne. -->\n@for (d of colonnes(); track d.field) {\n <poad-column\n [field]=\"d.field\"\n [header]=\"d.header ?? d.field\"\n [dataType]=\"d.dataType ?? 'text'\"\n [align]=\"d.align ?? 'left'\"\n [width]=\"d.width ?? ''\"\n [sortable]=\"d.sortable ?? false\"\n />\n}\n<div class=\"dt\" #dt [class]=\"'dt ' + styleClass()\">\n <!-- barre de s\u00E9lection contextuelle (remplace la barre d'outils) -->\n @if (selectedCount() > 0 && showSelectionBar()) {\n <div class=\"dt-sel\" role=\"region\" aria-live=\"polite\">\n <poad-checkbox [value]=\"allState() === 'all'\" [indeterminate]=\"allState() === 'some'\" [ariaLabel]=\"i18n.t('table.selectAll')\" (changed)=\"toggleAll()\"/>\n <span>{{ selectedLabel() === undefined && selectedLabelPlural() === undefined ? i18n.t('table.selectedCount', { n: selectedCount() }) : selectedCount() + ' ' + (selectedCount() > 1 ? (selectedLabelPlural() ?? selectedLabel()) : (selectedLabel() ?? selectedLabelPlural())) }}</span>\n <span class=\"dt-sel__grow\"></span>\n <ng-content select=\"[poadTableSelectionBar]\"/>\n <button type=\"button\" class=\"dt-sel__clear\" [attr.aria-label]=\"i18n.t('table.clearSelection')\" (click)=\"clearSelection()\"><poad-icon name=\"x\" [size]=\"14\"/></button>\n </div>\n } @else if (showToolbar()) {\n <div class=\"dt-bar\">\n @if (title()) {<span class=\"dt-bar__title\">{{ title() }}</span>}\n @if (showCount()) {<span class=\"dt-bar__count\">{{ count() ?? totalFiltered() }}</span>}\n @if (showFiltersToggle()) {\n @let ft = filtersToggle();\n <button type=\"button\" [class]=\"ft.className\" [attr.aria-expanded]=\"ft['aria-expanded']\" (click)=\"filtersOpen.set(!filtersOpen())\">\n <poad-icon name=\"filter\" [size]=\"13\"/>{{ i18n.text(filtersLabel(), 'table.filters') }}@if (activeFilterCount() > 0) {<span class=\"dt-bar__count\">{{ activeFilterCount() }}</span>}\n </button>\n }\n <span #tools class=\"dt-bar__tools\" [class.is-open]=\"filtersOpen()\"><ng-content select=\"[poadTableToolbar]\"/></span>\n <span class=\"dt-bar__grow\"></span>\n @if (showSearch()) {\n <div class=\"dt-bar__search\">\n <poad-icon name=\"search\" [size]=\"14\"/>\n <input type=\"search\" [placeholder]=\"i18n.text(searchPlaceholder(), 'table.searchPlaceholder')\" [value]=\"searchText()\" (input)=\"onSearch($any($event.target).value)\" [attr.aria-label]=\"i18n.text(searchPlaceholder(), 'table.searchPlaceholder')\"/>\n @if (searchText()) {<button type=\"button\" class=\"dt-bar__clear\" [attr.aria-label]=\"i18n.t('table.clearSearch')\" (click)=\"onSearch('', true)\"><poad-icon name=\"x\" [size]=\"12\"/></button>}\n </div>\n }\n <span class=\"dt-bar__tools-end\"><ng-content select=\"[poadTableToolbarEnd]\"/></span>\n @if (columnToggle()) {\n <div class=\"dt-bar__cols\">\n <button type=\"button\" class=\"dt-bar__btn\" [class.is-on]=\"colsMenuOpen()\" aria-haspopup=\"true\" [attr.aria-expanded]=\"colsMenuOpen()\" (click)=\"colsMenuOpen.set(!colsMenuOpen())\">\n {{ i18n.text(columnsLabel(), 'table.columns') }} <poad-icon name=\"chevron-down\" [size]=\"12\"/>\n </button>\n @if (colsMenuOpen()) {\n <div class=\"dt-bar__menu\" role=\"menu\" (keydown.escape)=\"colsMenuOpen.set(false)\">\n <div class=\"dt-bar__menu-title\">{{ i18n.text(columnsLabel(), 'table.columns') }}</div>\n @for (c of orderedColumns(); track c.id(); let ci = $index; let first = $first; let last = $last) {\n <label [class.is-locked]=\"!c.toggleable()\">\n <poad-checkbox [value]=\"!c.hidden()\" [disabled]=\"!c.toggleable()\" (changed)=\"toggleColumn(c, !$event)\"/>\n <span>{{ c.header() || c.field() }}</span>\n @if (reorderableColumns()) {\n <span class=\"mv\" (click)=\"$event.stopPropagation(); $event.preventDefault()\">\n <button type=\"button\" [attr.aria-label]=\"i18n.t('table.moveUp')\" [disabled]=\"first\" (click)=\"moveColumn(ci, ci - 1)\"><poad-icon name=\"chevron-up\" [size]=\"12\"/></button>\n <button type=\"button\" [attr.aria-label]=\"i18n.t('table.moveDown')\" [disabled]=\"last\" (click)=\"moveColumn(ci, ci + 1)\"><poad-icon name=\"chevron-down\" [size]=\"12\"/></button>\n </span>\n }\n </label>\n }\n </div>\n }\n </div>\n }\n @if (showDensityToggle()) {\n <button type=\"button\" class=\"dt-bar__btn is-ghost dt-bar__density\" [class.is-on]=\"dense()\" [attr.aria-pressed]=\"dense()\" [attr.aria-label]=\"i18n.t('table.density')\" [title]=\"i18n.t('table.density')\" (click)=\"dense.set(!dense())\"><poad-icon name=\"chevrons-up-down\" [size]=\"14\"/></button>\n }\n </div>\n }\n\n @if (showGroupZone() && !resp.stacked()) {\n <div class=\"dt-gz\" [class.is-empty]=\"!groupFields().length\" cdkDropList [id]=\"gzId\" cdkDropListOrientation=\"horizontal\" [cdkDropListData]=\"groupFields()\" [cdkDropListEnterPredicate]=\"gzEnter\" (cdkDropListDropped)=\"onGroupZoneDrop($event)\">\n <poad-icon name=\"layers\" [size]=\"14\"/>\n @if (!groupFields().length) {<span class=\"dt-gz__hint\">{{ i18n.text(groupZoneLabel(), 'table.groupZone') }}</span>}\n @for (f of groupFields(); track f) {\n <span class=\"dt-gz__chip\" cdkDrag [cdkDragData]=\"f\" cdkDragLockAxis=\"x\"><poad-icon name=\"drag\" [size]=\"11\" class=\"dt-gz__drag\"/><span>{{ groupChipLabel(f) }}</span><button type=\"button\" [attr.aria-label]=\"i18n.t('table.ungroupBy', { label: groupChipLabel(f) })\" (click)=\"ungroup(f)\"><poad-icon name=\"x\" [size]=\"11\"/></button></span>\n }\n </div>\n }\n\n <div class=\"dt-scroll\" #scroller (scroll)=\"onScroll()\">\n @if (loading() && hasData()) {<div class=\"dt-loading\"><poad-icon name=\"loader\" [size]=\"22\" spin/></div>}\n @let ta = tableAttrs();\n <table class=\"tbl\" [class]=\"'tbl ' + tableClass()\" [style]=\"tableStyle()\" [attr.aria-busy]=\"ta['aria-busy']\" [attr.aria-rowcount]=\"ta['aria-rowcount']\" [attr.role]=\"ta.role\" [attr.aria-multiselectable]=\"ta['aria-multiselectable']\">\n @if (captionTpl()) {<caption><ng-container *ngTemplateOutlet=\"captionTpl()!.tpl\"/></caption>}\n <colgroup>\n @if (hasNumberColumn()) {<col style=\"width:44px\">}\n @if (hasSelectionColumn()) {<col style=\"width:36px\">}\n @if (rowDragEnabled()) {<col style=\"width:28px\">}\n @if (hasExpandColumn()) {<col style=\"width:30px\">}\n @for (c of visibleColumns(); track c.id()) {<col [style.width]=\"colWidth(c)\" [style.min-width]=\"c.minWidth() || null\" [style.max-width]=\"c.maxWidth() || null\">}\n @if (hasActionsColumn()) {<col [style.width]=\"rowActionsWidth()\">}\n </colgroup>\n <thead>\n @let hgRows = headerGroups().length && !resp.stacked() ? 1 : 0;\n @if (hgRows) {\n <tr class=\"hg\" [attr.aria-rowindex]=\"headerRowAttrs(0)['aria-rowindex']\">\n @if (hasNumberColumn()) {<th [class]=\"stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\"></th>}\n @if (hasSelectionColumn()) {<th [class]=\"stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\"></th>}\n @if (rowDragEnabled()) {<th [class]=\"stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\"></th>}\n @if (hasExpandColumn()) {<th [class]=\"stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\"></th>}\n @for (g of headerGroups(); track $index) {<th scope=\"colgroup\" [attr.colspan]=\"g.span\" [class]=\"'hg-cell ' + (g.class || '')\">{{ g.header }}</th>}\n @if (hasActionsColumn()) {<th [class]=\"stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"></th>}\n </tr>\n }\n <tr [attr.aria-rowindex]=\"headerRowAttrs(hgRows)['aria-rowindex']\" cdkDropList cdkDropListOrientation=\"horizontal\" [cdkDropListDisabled]=\"!reorderableColumns() && !showGroupZone()\" [cdkDropListSortingDisabled]=\"!reorderableColumns()\" [cdkDropListConnectedTo]=\"showGroupZone() ? [gzId] : []\" (cdkDropListDropped)=\"onColumnDrop($event)\">\n @if (hasNumberColumn()) {<th class=\"col-num\" scope=\"col\" data-sk=\"num\" [class]=\"'col-num ' + stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\">#</th>}\n @if (hasSelectionColumn()) {\n <th class=\"col-sel\" scope=\"col\" data-sk=\"sel\" [class]=\"'col-sel ' + stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\">\n @if (selectionMode() === 'multiple' && selectAll()) {\n <poad-checkbox [value]=\"allState() === 'all'\" [indeterminate]=\"allState() === 'some'\" [ariaLabel]=\"i18n.t('table.selectAll')\" (changed)=\"toggleAll()\"/>\n }\n </th>\n }\n @if (rowDragEnabled()) {<th class=\"col-drag\" scope=\"col\" data-sk=\"drag\" [class]=\"'col-drag ' + stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\"><span hidden>{{ i18n.t('table.move') }}</span></th>}\n @if (hasExpandColumn()) {<th class=\"col-exp\" scope=\"col\" data-sk=\"exp\" [class]=\"'col-exp ' + stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\"><span hidden>{{ i18n.t('table.detail') }}</span></th>}\n @for (c of visibleColumns(); track c.id()) {\n <th scope=\"col\" [attr.data-sk]=\"c.id()\" [class]=\"thClass(c) + (canDrag(c) ? ' can-drag' : '') + (showsMenu(c) ? ' has-menu' : '') + (hasColFilter(c) ? ' is-filtered' : '')\" [attr.aria-sort]=\"ariaSort(c)\" [style.width]=\"colWidth(c)\" [style.left.px]=\"stickyLeft(c.id())\" [style.right.px]=\"stickyRight(c.id())\"\n cdkDrag [cdkDragDisabled]=\"!canDrag(c)\" [cdkDragData]=\"c\" [cdkDragLockAxis]=\"showGroupZone() ? null : 'x'\" cdkDragPreviewClass=\"dt-th-preview\" [cdkDragBoundary]=\"showGroupZone() ? '' : '.tbl thead'\">\n @if (canDrag(c)) {<span class=\"dh\" cdkDragHandle aria-hidden=\"true\" [title]=\"i18n.t('table.moveColumn')\"><poad-icon name=\"drag\" [size]=\"12\"/></span>}\n @if (c.headerTpl()) {\n <ng-container *ngTemplateOutlet=\"c.headerTpl()!.tpl; context: { $implicit: c }\"/>\n } @else if (c.sortable()) {\n <button type=\"button\" class=\"hd\" (click)=\"sort(c, $event)\" [attr.aria-label]=\"i18n.t('table.sortBy', { column: c.header() })\">\n <span class=\"hd-txt\">{{ c.header() }}</span>\n <poad-icon [name]=\"sortIcon(c)\" [size]=\"12\"/>\n @if (sortMode() === 'multiple' && sortIndex(c) > 0) {<span class=\"hd-idx\">{{ sortIndex(c) }}</span>}\n </button>\n } @else {\n <span class=\"hd\"><span class=\"hd-txt\">{{ c.header() }}</span></span>\n }\n @if (showsMenu(c)) {<button type=\"button\" class=\"hm\" [class.is-on]=\"menuColumn() === c && !!headerMenu()?.visible()\" [attr.aria-label]=\"i18n.t('table.columnMenu')\" aria-haspopup=\"menu\" (click)=\"openHeaderMenu(c, $event)\" (pointerdown)=\"$event.stopPropagation()\"><poad-icon name=\"more-vertical\" [size]=\"13\"/></button>}\n @if (isResizable(c)) {<span class=\"rz\" [class.is-active]=\"resizingId() === c.id()\" (pointerdown)=\"startResize($event, c)\" aria-hidden=\"true\"></span>}\n </th>\n }\n @if (hasActionsColumn()) {<th class=\"col-acts\" scope=\"col\" data-sk=\"acts\" [class]=\"'col-acts ' + stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"><span hidden>{{ i18n.t('table.actions') }}</span></th>}\n </tr>\n @if (hasFilterRow()) {\n <tr class=\"flt\" [attr.aria-rowindex]=\"headerRowAttrs(hgRows + 1)['aria-rowindex']\">\n @if (hasNumberColumn()) {<th [class]=\"stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\"></th>}\n @if (hasSelectionColumn()) {<th [class]=\"stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\"></th>}\n @if (rowDragEnabled()) {<th [class]=\"stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\"></th>}\n @if (hasExpandColumn()) {<th [class]=\"stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\"></th>}\n @for (c of visibleColumns(); track c.id()) {\n <th [class]=\"stickyClass(c.id())\" [style.left.px]=\"stickyLeft(c.id())\" [style.right.px]=\"stickyRight(c.id())\">\n @if (c.filterable()) {\n @if (c.filterTpl()) {\n <ng-container *ngTemplateOutlet=\"c.filterTpl()!.tpl; context: { $implicit: c, value: filterValue(c), filter: filterFn(c) }\"/>\n } @else {\n @let kind = filterKind(c);\n @let op = filterOp(c);\n <div class=\"flt-cell\" [class.is-active]=\"hasColFilter(c)\" [class.is-range]=\"op.range\">\n @if (kind === 'boolean') {\n <poad-select size=\"sm\" clearable [options]=\"booleanOptions()\" [value]=\"filterValue(c)\" [placeholder]=\"c.filterPlaceholder() || i18n.t('filter.any')\" [ariaLabel]=\"i18n.t('filter.column', { column: c.header() })\" (changed)=\"setFilter(c, $event)\"/>\n } @else if (kind === 'select' && op.mode !== 'eq') {\n <button type=\"button\" class=\"flt-in\" [class.is-ph]=\"!filterArray(c).length\" [attr.aria-label]=\"i18n.t('filter.column', { column: c.header() })\" (click)=\"openInMenu(c, $event)\">\n <span>{{ filterArray(c).length ? i18n.t('filter.selectedCount', { n: filterArray(c).length }) : (c.filterPlaceholder() || i18n.t('filter.any')) }}</span><poad-icon name=\"chevron-down\" [size]=\"11\"/>\n </button>\n } @else if (kind === 'select') {\n <poad-select size=\"sm\" clearable [options]=\"c.filterOptions()\" [value]=\"filterValue(c)\" [placeholder]=\"c.filterPlaceholder() || i18n.t('filter.any')\" [ariaLabel]=\"i18n.t('filter.column', { column: c.header() })\" (changed)=\"setFilter(c, $event, 'eq')\"/>\n } @else if (!op.needsValue) {\n <span class=\"flt-txt\">{{ opLabel(op) }}</span>\n } @else if (op.range) {\n <input [type]=\"kind === 'number' ? 'number' : kind === 'date' ? 'date' : 'search'\" [value]=\"filterPart(c, 0)\" [placeholder]=\"i18n.t('filter.min')\" (input)=\"setFilterPart(c, 0, $any($event.target).value)\" [attr.aria-label]=\"i18n.t('filter.columnMin', { column: c.header() })\"/>\n <input [type]=\"kind === 'number' ? 'number' : kind === 'date' ? 'date' : 'search'\" [value]=\"filterPart(c, 1)\" [placeholder]=\"i18n.t('filter.max')\" (input)=\"setFilterPart(c, 1, $any($event.target).value)\" [attr.aria-label]=\"i18n.t('filter.columnMax', { column: c.header() })\"/>\n } @else {\n <input [type]=\"kind === 'number' ? 'number' : kind === 'date' ? 'date' : 'search'\" [value]=\"filterPart(c, 0)\" [placeholder]=\"c.filterPlaceholder() || opLabel(op)\" (input)=\"setFilterDebounced(c, $any($event.target).value)\" [attr.aria-label]=\"i18n.t('filter.column', { column: c.header() })\"/>\n }\n @if (kind !== 'boolean') {\n <button type=\"button\" class=\"flt-op\" [class.is-on]=\"hasColFilter(c) || op.mode !== filterOp(c).mode\" [attr.aria-label]=\"i18n.t('filter.operator', { label: opLabel(op) })\" [title]=\"opLabel(op)\" (click)=\"openFilterMenu(c, $event)\"><poad-icon name=\"filter\" [size]=\"12\"/></button>\n }\n @if (hasColFilter(c)) {<button type=\"button\" class=\"flt-x\" [attr.aria-label]=\"i18n.t('filter.clear')\" (click)=\"clearColumnFilter(c)\"><poad-icon name=\"x\" [size]=\"11\"/></button>}\n </div>\n }\n }\n </th>\n }\n @if (hasActionsColumn()) {<th [class]=\"stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"></th>}\n </tr>\n }\n </thead>\n <tbody cdkDropList [cdkDropListDisabled]=\"!rowDragEnabled()\" cdkDropListLockAxis=\"y\" (cdkDropListDropped)=\"onRowDrop($event)\">\n @if (bodyState() === 'skeleton') {\n @for (i of skeletonRows(); track i) {\n <tr class=\"dt-row is-skeleton\" aria-hidden=\"true\">\n @if (hasNumberColumn()) {<td class=\"col-num\"></td>}\n @if (hasSelectionColumn()) {<td class=\"col-sel\"></td>}\n @if (rowDragEnabled()) {<td class=\"col-drag\"></td>}\n @if (hasExpandColumn()) {<td class=\"col-exp\"></td>}\n @for (c of visibleColumns(); track c.id()) {<td [class]=\"tdClass(c)\"><div class=\"skel\" [style.width.%]=\"skeletonWidth(i, $index)\" [style.margin-left]=\"alignOf(c) === 'right' ? 'auto' : null\"></div></td>}\n @if (hasActionsColumn()) {<td></td>}\n </tr>\n }\n } @else if (bodyState() === 'empty') {\n <tr class=\"dt-empty\"><td [attr.colspan]=\"colspan()\">\n @if (emptyTpl()) {<ng-container *ngTemplateOutlet=\"emptyTpl()!.tpl\"/>}\n @else {\n <div class=\"empty\">\n @if (emptyIcon()) {<poad-icon [name]=\"emptyIcon()\" [size]=\"26\" [strokeWidth]=\"1.5\"/>}\n <b>{{ i18n.text(emptyMessage(), 'table.empty') }}</b>\n @if (emptyHint()) {<span>{{ emptyHint() }}</span>}\n </div>\n }\n </td></tr>\n } @else {\n @if (virtual.range().topPad > 0) {<tr class=\"dt-vpad\" aria-hidden=\"true\"><td [attr.colspan]=\"colspan()\" [style.height.px]=\"virtual.range().topPad\"></td></tr>}\n @for (d of renderRows(); track d.trackKey; let vi = $index) {\n @let i = vi + virtual.range().start;\n @if (d.kind === 'group') {\n <!-- en-t\u00EAte de groupe -->\n <tr class=\"dt-group\" [class.is-expanded]=\"d.node!.expanded\" [style.--_lvl]=\"d.level\" role=\"row\" [attr.aria-level]=\"d.level + 1\" [attr.aria-expanded]=\"d.node!.expanded\" [attr.aria-posinset]=\"d.node!.posInSet\" [attr.aria-setsize]=\"d.node!.setSize\">\n <td [attr.colspan]=\"colspan()\" class=\"dt-group__cell\">\n <div class=\"dt-group__inner\">\n @if (hasSelectionColumn() && selectionMode() === 'multiple') {\n <poad-checkbox [value]=\"nodeState(d) === 'on'\" [indeterminate]=\"nodeState(d) === 'some'\" [ariaLabel]=\"i18n.t('table.selectGroup', { label: d.node!.group!.label })\" (changed)=\"toggleGroupSelection(d, $event)\"/>\n }\n <button type=\"button\" class=\"exp\" [attr.aria-expanded]=\"d.node!.expanded\" [attr.aria-label]=\"d.node!.expanded ? i18n.t('common.collapse') : i18n.t('common.expand')\" (click)=\"toggleGroup(d.node!)\"><poad-icon name=\"chevron-right\" [size]=\"13\"/></button>\n @if (groupHeaderTpl()) {\n <ng-container *ngTemplateOutlet=\"groupHeaderTpl()!.tpl; context: groupCtx(d)\"/>\n } @else {\n <span class=\"dt-group__label\">{{ d.node!.group!.label }}</span>\n <span class=\"dt-group__count\">{{ d.node!.group!.count }}</span>\n }\n </div>\n </td>\n </tr>\n } @else if (d.kind === 'groupFooter') {\n <!-- pied de groupe (agr\u00E9gats) -->\n <tr class=\"dt-group-foot\" [style.--_lvl]=\"d.level\">\n @if (groupFooterTpl()) {\n <td [attr.colspan]=\"colspan()\"><ng-container *ngTemplateOutlet=\"groupFooterTpl()!.tpl; context: groupCtx(d)\"/></td>\n } @else {\n @if (hasNumberColumn()) {<td class=\"col-num\"></td>}\n @if (hasSelectionColumn()) {<td class=\"col-sel\"></td>}\n @if (rowDragEnabled()) {<td class=\"col-drag\"></td>}\n @if (hasExpandColumn()) {<td class=\"col-exp\"></td>}\n @for (c of visibleColumns(); track c.id(); let ci = $index) {\n <td [class]=\"tdClass(c)\" [attr.data-l]=\"c.header()\">\n @if (ci === 0 && !hasAggregate(c)) {<span class=\"dt-group-foot__label\">{{ i18n.t('table.total', { label: d.node!.group!.label }) }}</span>}\n @else if (hasAggregate(c)) {{{ formatCell(d.node!.group!.aggregates[c.field()], c) }}}\n </td>\n }\n @if (hasActionsColumn()) {<td></td>}\n }\n </tr>\n } @else if (resp.stacked() && cardTpl()) {\n <!-- carte custom (mode stack) -->\n @let ca = rowAttrs(d, i);\n <tr class=\"dt-row dt-card\" [class]=\"rowClasses(d.row, i, d)\" [style]=\"rowStyle()?.(d.row, i) || null\" [attr.data-key]=\"d.key\" [attr.tabindex]=\"ca.tabindex\" [attr.aria-selected]=\"ca.selected\" [attr.aria-rowindex]=\"ca.rowindex\"\n (click)=\"onRowClick(d.row, i, $event, d)\" (keydown)=\"onRowKey(d, i, $event)\" (focus)=\"onRowFocus(d)\">\n <td [attr.colspan]=\"colspan()\"><ng-container *ngTemplateOutlet=\"cardTpl()!.tpl; context: { $implicit: d.row, rowIndex: i, node: d.node, selected: isSelected(d.row) }\"/></td>\n </tr>\n } @else {\n <!-- ligne -->\n @let ra = rowAttrs(d, i);\n <tr class=\"dt-row\" [class]=\"rowClasses(d.row, i, d)\" [style]=\"rowStyle()?.(d.row, i) || null\" [style.--_lvl]=\"d.level\" [attr.data-key]=\"d.key\" [class.is-editing-row]=\"isRowEditing(d.row)\"\n cdkDrag [cdkDragDisabled]=\"!canDragRow(d.row)\" [cdkDragData]=\"d.row\" cdkDragLockAxis=\"y\" cdkDragPreviewClass=\"dt-tr-preview\" cdkDragBoundary=\".tbl\"\n [attr.tabindex]=\"ra.tabindex\" [attr.aria-selected]=\"ra.selected\" [attr.aria-rowindex]=\"ra.rowindex\"\n [attr.role]=\"hierarchical() ? 'row' : null\" [attr.aria-level]=\"hierarchical() ? d.level + 1 : null\" [attr.aria-expanded]=\"d.node?.hasChildren ? d.node!.expanded : null\"\n [attr.aria-setsize]=\"d.node ? d.node.setSize : null\" [attr.aria-posinset]=\"d.node ? d.node.posInSet : null\"\n (click)=\"onRowClick(d.row, i, $event, d)\" (dblclick)=\"rowDblClick.emit({ row: d.row, index: i, event: $event })\" (keydown)=\"onRowKey(d, i, $event)\" (focus)=\"onRowFocus(d)\">\n @if (hasNumberColumn()) {<td class=\"col-num\" [class]=\"'col-num ' + stickyClass('num')\" [style.left.px]=\"stickyLeft('num')\">{{ rowNumber(d) }}</td>}\n @if (hasSelectionColumn()) {\n <td class=\"col-sel\" [class]=\"'col-sel ' + stickyClass('sel')\" [style.left.px]=\"stickyLeft('sel')\">\n @if (canSelect(d.row)) {\n @if (selectionMode() === 'multiple') {\n <poad-checkbox [value]=\"nodeState(d) === 'on'\" [indeterminate]=\"nodeState(d) === 'some'\" [ariaLabel]=\"i18n.t('table.selectRow', { index: i + 1 })\" (changed)=\"toggleRow(d.row, i, $event)\"/>\n } @else {\n <poad-checkbox [value]=\"isSelected(d.row)\" [ariaLabel]=\"i18n.t('table.selectRow', { index: i + 1 })\" (changed)=\"selectSingle(d.row, i)\"/>\n }\n }\n </td>\n }\n @if (rowDragEnabled()) {\n <td class=\"col-drag\" [class]=\"'col-drag ' + stickyClass('drag')\" [style.left.px]=\"stickyLeft('drag')\">\n @if (canDragRow(d.row)) {<span class=\"rdh\" cdkDragHandle [title]=\"i18n.t('table.moveRow')\" aria-hidden=\"true\"><poad-icon name=\"drag\" [size]=\"13\"/></span>}\n </td>\n }\n @if (hasExpandColumn()) {\n <td class=\"col-exp\" [class]=\"'col-exp ' + stickyClass('exp')\" [style.left.px]=\"stickyLeft('exp')\">\n @if (canExpand(d.row)) {\n <button type=\"button\" class=\"exp\" [attr.aria-expanded]=\"isExpanded(d.row)\" [attr.aria-label]=\"isExpanded(d.row) ? i18n.t('common.collapse') : i18n.t('common.expand')\" (click)=\"toggleExpand(d.row, $event)\"><poad-icon name=\"chevron-right\" [size]=\"13\"/></button>\n }\n </td>\n }\n @for (c of visibleColumns(); track c.id(); let cFirst = $first) {\n <td [class]=\"tdClass(c) + ' ' + stickyClass(c.id()) + (isTreeColumn(c) ? ' dt-tree-cell' : '') + (cFirst ? ' dt-first' : '') + (editUi.canEditCell(c) ? ' is-editable' : '') + (edit.isEditing(d.row, c) ? ' is-editing' : '')\"\n [style.left.px]=\"stickyLeft(c.id())\" [style.right.px]=\"stickyRight(c.id())\" [attr.data-l]=\"c.header()\" [attr.data-col]=\"c.editable() ? c.id() : null\"\n (click)=\"editUi.onCellClick(d.row, c, $event, false)\" (dblclick)=\"editUi.onCellClick(d.row, c, $event, true)\">\n @if (edit.isEditing(d.row, c) && c.field()) {\n <!-- \u00E9diteur inline (mode cell ou row) -->\n <div class=\"dt-editor\" [class.is-invalid]=\"!!edit.cellError(d.row, c)\" (click)=\"$event.stopPropagation()\" (dblclick)=\"$event.stopPropagation()\" (keydown)=\"editUi.onKey(d.row, c, $event)\" (focusout)=\"editUi.onBlur(d.row, c)\">\n @if (c.editorTpl()) {\n <ng-container *ngTemplateOutlet=\"c.editorTpl()!.tpl; context: editUi.ctxFor(d.row, c, i)\"/>\n } @else {\n @switch (c.editor()) {\n @case ('select') {\n <!-- liste d\u00E9roulante de la biblioth\u00E8que (jamais de select natif) ; panneau en popover : le focus reste dans la cellule -->\n <poad-select #sel poadEditFocus mobile=\"popover\" [options]=\"c.effectiveEditorOptions()\" [value]=\"edit.valueOf(d.row, c)\" [ariaLabel]=\"c.header()\" [invalid]=\"!!edit.cellError(d.row, c)\"\n (changed)=\"editUi.onSelectPick(d.row, c, $event)\" (keydown)=\"editUi.onSelectKey(d.row, c, $event, sel.isOpen())\"/>\n }\n @case ('checkbox') {<input type=\"checkbox\" poadEditFocus [checked]=\"!!edit.valueOf(d.row, c)\" [attr.aria-label]=\"c.header()\" (change)=\"editUi.onInput(d.row, c, $any($event.target).checked)\"/>}\n @case ('textarea') {<textarea poadEditFocus rows=\"3\" [value]=\"edit.valueOf(d.row, c) ?? ''\" [attr.aria-label]=\"c.header()\" (input)=\"editUi.onInput(d.row, c, $any($event.target).value)\"></textarea>}\n @default {<input poadEditFocus [type]=\"editUi.inputType(c)\" [value]=\"edit.valueOf(d.row, c) ?? ''\" [attr.aria-label]=\"c.header()\" [attr.aria-invalid]=\"edit.cellError(d.row, c) ? 'true' : null\" (input)=\"editUi.onInput(d.row, c, $any($event.target).value)\"/>}\n }\n }\n @if (edit.cellError(d.row, c)) {<span class=\"dt-editor__err\" role=\"alert\">{{ edit.cellError(d.row, c) }}</span>}\n </div>\n } @else {\n @if (editUi.canEditCell(c) && showEditIcon()) {<button type=\"button\" class=\"ce\" tabindex=\"-1\" [attr.aria-label]=\"i18n.t('common.edit')\" (click)=\"$event.stopPropagation(); editUi.startEdit(d.row, c)\"><poad-icon name=\"edit\" [size]=\"11\"/></button>}\n @if (isTreeColumn(c) && d.node) {\n <span class=\"dt-tree-wrap\">\n <span class=\"poad-tree-toggle\" [style.--_lvl]=\"d.level\">\n @if (showTreeLines()) { @for (l of levelsOf(d.level); track l) {<i class=\"tl\" aria-hidden=\"true\"></i>} }\n @else {<i class=\"ind\" aria-hidden=\"true\"></i>}\n @let tp = treeToggle(d.node);\n <button type=\"button\" [class]=\"tp.className\" [attr.tabindex]=\"tp.tabindex\"\n [attr.aria-expanded]=\"tp['aria-expanded']\" [attr.aria-label]=\"i18n.t(tp.labelKey)\" (click)=\"toggleNode(d.node, $event)\">\n @if (tp.loading) {<poad-icon name=\"loader\" [size]=\"12\" spin/>} @else {<poad-icon name=\"chevron-right\" [size]=\"13\"/>}\n </button>\n @if (treeIconOf(d.row)) {<poad-icon class=\"ic\" [name]=\"treeIconOf(d.row)!\" [size]=\"14\"/>}\n </span>\n @if (c.cellTpl()) {\n <ng-container *ngTemplateOutlet=\"c.cellTpl()!.tpl; context: { $implicit: d.row, value: cell(d.row, c), rowIndex: i, column: c, level: d.level, expanded: d.node?.expanded ?? false, hasChildren: d.node?.hasChildren ?? false, node: d.node }\"/>\n } @else {<span class=\"cell-txt\">{{ formatCell(cell(d.row, c), c) }}</span>}\n </span>\n } @else {\n @if (c.cellTpl()) {\n <ng-container *ngTemplateOutlet=\"c.cellTpl()!.tpl; context: { $implicit: d.row, value: cell(d.row, c), rowIndex: i, column: c, level: d.level, expanded: d.node?.expanded ?? false, hasChildren: d.node?.hasChildren ?? false, node: d.node }\"/>\n } @else {<span class=\"cell-txt\">{{ formatCell(cell(d.row, c), c) }}</span>}\n }\n }\n </td>\n }\n @if (hasActionsColumn()) {\n <td class=\"col-acts\" [class]=\"'col-acts ' + stickyClass('acts')\" [style.right.px]=\"stickyRight('acts')\"><span class=\"acts\" (click)=\"$event.stopPropagation()\">\n @if ((editMode() === 'row' || editMode() === 'row-inline') && showRowEditButton()) {\n @if (isRowEditing(d.row)) {\n <button type=\"button\" class=\"re ok\" [attr.aria-label]=\"i18n.t('table.saveRow')\" [title]=\"i18n.t('common.save')\" (click)=\"saveRowEdit(d.row)\"><poad-icon name=\"check\" [size]=\"15\"/></button>\n <button type=\"button\" class=\"re ko\" [attr.aria-label]=\"i18n.t('table.cancelEdit')\" [title]=\"i18n.t('common.cancel')\" (click)=\"cancelRowEdit(d.row)\"><poad-icon name=\"x\" [size]=\"15\"/></button>\n } @else {\n <button type=\"button\" class=\"re\" [attr.aria-label]=\"i18n.t('table.editRow')\" [title]=\"i18n.t('common.edit')\" (click)=\"initRowEdit(d.row)\"><poad-icon name=\"edit\" [size]=\"14\"/></button>\n }\n }\n @if (rowActionsTpl()) {<ng-container *ngTemplateOutlet=\"rowActionsTpl()!.tpl; context: { $implicit: d.row, rowIndex: i, node: d.node, editing: isRowEditing(d.row) }\"/>}\n </span></td>\n }\n </tr>\n @if (isExpanded(d.row) && hasExpandColumn()) {\n <tr class=\"dt-detail\" [style.--_lvl]=\"d.level\"><td [attr.colspan]=\"colspan()\">\n @if (expansionTpl()) {\n <ng-container *ngTemplateOutlet=\"expansionTpl()!.tpl; context: { $implicit: d.row, rowIndex: i, hiddenColumns: hiddenByPriority(), node: d.node }\"/>\n } @else {\n <div class=\"kv\">\n @for (c of hiddenByPriority(); track c.id()) {<div><b>{{ c.header() || c.field() }}</b>\n @if (c.cellTpl()) {<ng-container *ngTemplateOutlet=\"c.cellTpl()!.tpl; context: { $implicit: d.row, value: cell(d.row, c), rowIndex: i, column: c, level: d.level, expanded: false, hasChildren: false, node: d.node }\"/>}\n @else {<span class=\"cell-txt\">{{ formatCell(cell(d.row, c), c) }}</span>}\n </div>}\n </div>\n }\n </td></tr>\n }\n }\n }\n @if (virtual.range().bottomPad > 0) {<tr class=\"dt-vpad\" aria-hidden=\"true\"><td [attr.colspan]=\"colspan()\" [style.height.px]=\"virtual.range().bottomPad\"></td></tr>}\n }\n </tbody>\n @if (footerTpl() || showGrandTotalRow()) {\n <tfoot>\n @if (showGrandTotalRow()) {\n <tr class=\"dt-grand\">\n @if (hasNumberColumn()) {<td class=\"col-num\"></td>}\n @if (hasSelectionColumn()) {<td class=\"col-sel\"></td>}\n @if (rowDragEnabled()) {<td class=\"col-drag\"></td>}\n @if (hasExpandColumn()) {<td class=\"col-exp\"></td>}\n @for (c of visibleColumns(); track c.id(); let ci = $index) {\n <td [class]=\"tdClass(c)\" [attr.data-l]=\"c.header()\">\n @if (ci === 0 && !hasAggregate(c)) {{{ i18n.text(grandTotalLabel(), 'table.grandTotal') }}}\n @else if (hasAggregate(c)) {{{ formatCell(grandTotal()[c.field()], c) }}}\n </td>\n }\n @if (hasActionsColumn()) {<td></td>}\n </tr>\n }\n @if (footerTpl()) {<ng-container *ngTemplateOutlet=\"footerTpl()!.tpl; context: { $implicit: pageData(), columns: visibleColumns(), aggregates: grandTotal() }\"/>}\n </tfoot>\n }\n </table>\n </div>\n\n @if ((usePaginator() && (paginationTotal() > 0 || lazy())) || showRowCount()) {\n <div class=\"dt-foot\" [class.has-count]=\"showRowCount()\">\n @if (showRowCount()) {\n <span class=\"dt-foot__count\">\n @if (rowCountTpl()) {<ng-container *ngTemplateOutlet=\"rowCountTpl()!.tpl; context: { $implicit: totalRows(), total: totalRows(), filtered: totalFiltered(), selected: selectedCount() }\"/>}\n @else {{{ rowCountText() }}}\n </span>\n }\n @if (usePaginator() && (paginationTotal() > 0 || lazy())) {\n <poad-paginator [first]=\"first()\" [rows]=\"rows()\" [totalRecords]=\"paginationTotal()\" [rowsPerPageOptions]=\"rowsPerPageOptions()\" [pageLinks]=\"pagerLinks()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\" [currentPageReportTemplate]=\"currentPageReportTemplate()\" [showFirstLastIcon]=\"showFirstLastIcon()\"\n [alwaysShow]=\"alwaysShowPaginator()\" (pageChange)=\"onPage($event)\"/>\n }\n </div>\n }\n <poad-menu #hmenu popup [items]=\"menuItems()\" [ariaLabel]=\"i18n.t('table.columnMenu')\"/>\n <poad-menu #fmenu popup [items]=\"filterMenuItems()\" [ariaLabel]=\"i18n.t('filter.operatorMenu')\" [minWidth]=\"200\"/>\n <poad-menu #inmenu popup [closeOnSelect]=\"false\" [items]=\"inMenuItems()\" [ariaLabel]=\"i18n.t('filter.valuesMenu')\" [minWidth]=\"180\"/>\n</div>\n", styles: [".poad-table{--_row-h: var(--poad-table-row-h, 42px);--_cell-px: 12px;display:block;min-width:0;max-width:100%;font:var(--poad-font-size)/1.4 var(--poad-font);color:var(--poad-fg)}.poad-table.is-dense{--_row-h: 34px}.poad-table .dt{border:1px solid var(--poad-border);border-radius:var(--poad-radius-lg);background:var(--poad-surface);overflow:hidden;position:relative}.poad-table.poad-table.is-borderless .dt{border:0;border-radius:0}.poad-table .dt-bar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--poad-border);flex-wrap:wrap}.poad-table .dt-bar__title{font-weight:600;font-size:13.5px;margin-inline-end:4px}.poad-table .dt-bar__count{font:500 11px var(--poad-font-mono);padding:2px 7px;border-radius:999px;background:var(--poad-elevated);color:var(--poad-fg-secondary)}.poad-table .dt-bar__grow{flex:1}.poad-table .dt-bar__search{position:relative;display:flex;align-items:center;width:240px;max-width:100%}.poad-table.poad-table .dt-bar__search>.poad-icon{position:absolute;inset-inline-start:9px;color:var(--poad-fg-muted);pointer-events:none}.poad-table.poad-table .dt-bar__search input{width:100%;box-sizing:border-box;height:30px;padding-block:0;padding-inline:30px 28px;font:var(--poad-font-size) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-input-border);border-radius:var(--poad-radius);outline:0;transition:border-color var(--poad-dur),box-shadow var(--poad-dur)}.poad-table.poad-table .dt-bar__search input::placeholder{color:var(--poad-fg-muted)}.poad-table.poad-table .dt-bar__search input::-webkit-search-cancel-button,.poad-table.poad-table .flt-cell input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}.poad-table.poad-table .dt-bar__search input:focus{border-color:var(--poad-accent);box-shadow:0 0 0 3px var(--poad-ring)}.poad-table.poad-table .dt-bar__search .dt-bar__clear{position:absolute;inset-inline-end:6px;border:0;background:transparent;color:var(--poad-fg-muted);cursor:pointer;display:grid;place-items:center;padding:2px;border-radius:4px}.poad-table.poad-table .dt-bar__search .dt-bar__clear:hover{color:var(--poad-fg);background:var(--poad-hover)}.poad-table .dt-bar__btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:26px;padding:0 8px;border-radius:var(--poad-radius-sm);border:1px solid var(--poad-border-strong);background:transparent;color:var(--poad-fg-secondary);font:500 var(--poad-font-size-sm) var(--poad-font);cursor:pointer;white-space:nowrap}.poad-table .dt-bar__btn:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-table .dt-bar__btn:focus-visible{outline:2px solid var(--poad-ring);outline-offset:1px}.poad-table .dt-bar__btn.is-ghost{border-color:transparent;width:26px;padding:0}.poad-table .dt-bar__btn.is-on{color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table .dt-bar__cols{position:relative}.poad-table .dt-bar__menu{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:20;min-width:200px;max-height:280px;overflow:auto;background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:9px;box-shadow:var(--poad-shadow-lg);padding:4px}.poad-table.poad-table .dt-bar__menu label{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;font-size:var(--poad-font-size)}.poad-table.poad-table .dt-bar__menu label:hover{background:var(--poad-hover)}.poad-table.poad-table .dt-bar__menu label.is-locked{opacity:.5;cursor:default}.poad-table .dt-bar__menu-title{font:600 10px/1 var(--poad-font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--poad-fg-muted);padding:6px 8px 4px}.poad-table .dt-sel{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--poad-accent-soft);border-bottom:1px solid var(--poad-border);font-size:12.5px;color:var(--poad-accent);font-weight:500;min-height:47px;box-sizing:border-box}.poad-table .dt-sel__grow{flex:1}.poad-table .dt-sel__clear{border:0;background:transparent;color:inherit;cursor:pointer;display:grid;place-items:center;width:26px;height:26px;border-radius:6px}.poad-table .dt-sel__clear:hover{background:var(--poad-accent-soft)}.poad-table .dt-scroll{overflow:auto;position:relative}.poad-table.poad-table.has-scroll-height .dt-scroll{max-height:var(--_scroll-h);scrollbar-width:thin;scrollbar-color:var(--poad-border-strong) transparent;scrollbar-gutter:stable}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar{width:10px;height:10px}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar-thumb{background:var(--poad-border-strong);border-radius:999px;border:2px solid var(--poad-surface)}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar-thumb:hover{background:var(--poad-fg-muted)}.poad-table.poad-table.has-scroll-height .dt-scroll::-webkit-scrollbar-track{background:transparent}.poad-table .dt-loading{position:absolute;inset:0;display:grid;place-items:center;background:color-mix(in srgb,var(--poad-surface) 55%,transparent);z-index:5}.poad-table.poad-table .dt-loading .poad-icon{color:var(--poad-accent)}.poad-table .tbl{width:100%;border-collapse:separate;border-spacing:0;font-size:var(--poad-font-size)}.poad-table.poad-table.is-resizable .tbl{table-layout:fixed}.poad-table.poad-table .tbl>caption{text-align:start;padding:10px 12px;font-weight:600;color:var(--poad-fg-secondary);font-size:var(--poad-font-size-sm)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th{position:relative;text-align:start;font-weight:600;font-size:var(--poad-font-size-sm);color:var(--poad-fg-secondary);background:var(--poad-bg-subtle);padding:0 var(--_cell-px);height:38px;border-bottom:1px solid var(--poad-border);white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box}.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>thead>:where(tr)>th{position:sticky;top:0;z-index:3}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.al-right{text-align:end}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.al-center{text-align:center}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-left,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-left,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-left{position:sticky;inset-inline-start:0;z-index:2;background:var(--poad-surface)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-right,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-right,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right{position:sticky;inset-inline-end:0;z-index:2;background:var(--poad-surface)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-left,.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-right{background:var(--poad-bg-subtle);z-index:4}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hd{display:inline-flex;align-items:center;gap:4px;max-width:100%}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.al-right>.hd{flex-direction:row-reverse}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th .hd-txt{overflow:hidden;text-overflow:ellipsis}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>button.hd{all:unset;display:inline-flex;align-items:center;gap:4px;cursor:pointer;border-radius:4px;max-width:100%}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>button.hd:focus-visible{outline:2px solid var(--poad-ring);outline-offset:2px}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hd>.poad-icon{opacity:0;transition:opacity var(--poad-dur);flex:none}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th:hover>.hd>.poad-icon{opacity:.6}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-sorted>.hd{color:var(--poad-accent)}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-sorted>.hd>.poad-icon{opacity:1}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th .hd-idx{font:600 9px var(--poad-font-mono);background:var(--poad-accent-soft);color:var(--poad-accent);border-radius:999px;padding:1px 4px}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz{position:absolute;inset-inline-end:0;top:8px;bottom:8px;width:5px;cursor:col-resize;z-index:1}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz:after{content:\"\";position:absolute;inset-inline-end:2px;top:0;bottom:0;width:1px;background:var(--poad-border);transition:background var(--poad-dur)}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz:hover:after,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.rz.is-active:after{background:var(--poad-accent);width:2px}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-sel,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-sel,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-sel{width:36px;padding-inline-end:0}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-exp,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-exp,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-exp{width:30px;padding:0 4px}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-acts,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-acts,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-acts{text-align:end;white-space:nowrap}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>th{height:auto;padding:6px var(--_cell-px);background:var(--poad-surface);font-weight:400}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>:where(th)>:where(.flt-cell)>input{width:100%;box-sizing:border-box;height:26px;padding:0 8px;font:var(--poad-font-size-sm) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-input-border);border-radius:var(--poad-radius-sm);outline:0}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>:where(th)>:where(.flt-cell)>input:focus{border-color:var(--poad-accent);box-shadow:0 0 0 2px var(--poad-ring)}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td{padding:0 var(--_cell-px);height:var(--_row-h);border-bottom:1px solid var(--poad-border);vertical-align:middle;font-variant-numeric:tabular-nums;box-sizing:border-box}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.al-right,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.al-right{text-align:end}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.al-center,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.al-center{text-align:center}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-num,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-num{font-family:var(--poad-font-mono);font-size:var(--poad-font-size-sm)}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-nowrap,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-nowrap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tfoot)>:where(tr.dt-grand)>td,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(thead)>:where(tr)>th{border-inline-end:1px solid var(--poad-border)}.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tbody)>:where(tr)>td:last-child,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(tfoot)>:where(tr.dt-grand)>td:last-child,.poad-table.poad-table.poad-table.is-bordered .tbl>:where(thead)>:where(tr)>th:last-child{border-inline-end:0}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr:last-child>td{border-bottom:0}.poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl>tbody>tr.dt-row:nth-child(2n of.dt-row)>td{background:var(--poad-table-stripe, var(--poad-bg-subtle))}.poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>tbody>tr.dt-row:hover>td{background:var(--poad-hover)}.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selectable{cursor:pointer}.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row:focus-visible{outline:none}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row:focus-visible>td{background:var(--poad-hover);box-shadow:inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td{background:var(--poad-accent-soft)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td:first-child{box-shadow:inset 3px 0 0 var(--poad-accent)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected:focus-visible>td{box-shadow:inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected:focus-visible>td:first-child{box-shadow:inset 3px 0 0 var(--poad-accent),inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp{width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:inline-grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp:hover{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp:focus-visible{outline:2px solid var(--poad-ring)}.poad-table.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp>.poad-icon{transition:transform var(--poad-dur)}.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.is-expanded :where(td.col-exp,.dt-group__inner)>.exp>.poad-icon{transform:rotate(90deg)}.poad-table.poad-table .tbl :where(td.col-acts)>.acts{display:inline-flex;gap:2px;align-items:center;opacity:0;transition:opacity var(--poad-dur)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr:hover>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>tr:hover:where(.dt-grand)>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.is-selected>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr:focus-within>:where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>tr:focus-within:where(.dt-grand)>:where(td.col-acts)>.acts{opacity:1}.poad-table.poad-table.poad-table.acts-always .tbl :where(td.col-acts)>.acts{opacity:1}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-detail>td{background:var(--poad-bg-subtle);height:auto;padding-block:12px 14px;padding-inline:var(--_detail-pl, 58px) var(--_cell-px)}.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>:where(thead,tbody)>tr.dt-detail:hover>td{background:var(--poad-bg-subtle)}.poad-table.poad-table.poad-table .tbl>tfoot>:where(tr.dt-grand)>td{background:var(--poad-bg-subtle);font-weight:600;color:var(--poad-fg-secondary);border-top:1px solid var(--poad-border);border-bottom:0}.poad-table :where(.tbl>tbody>tr.dt-detail>td)>.kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px 22px;font-size:12.5px}.poad-table.poad-table :where(.tbl>tbody>tr.dt-detail>td)>.kv>:where(div)>b{display:block;font:600 10.5px/1 var(--poad-font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--poad-fg-muted);margin-bottom:4px}.poad-table :where(.tbl>tbody>tr.is-skeleton>td)>.skel{height:12px;border-radius:4px;background:linear-gradient(90deg,var(--poad-elevated),var(--poad-hover),var(--poad-elevated));background-size:200% 100%;animation:poad-tbl-sh 1.4s infinite}@keyframes poad-tbl-sh{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.poad-table :where(.tbl>tbody>tr.is-skeleton>td)>.skel{animation:none}.poad-table.poad-table .tbl :where(td.col-acts)>.acts,.poad-table.poad-table.poad-table .tbl :where(td.col-exp,.dt-group__inner)>.exp>.poad-icon,.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hd>.poad-icon{transition:none}}.poad-table :where(.tbl>tbody>tr.dt-empty>td)>.empty{display:grid;place-items:center;gap:6px;padding:34px 12px;text-align:center;color:var(--poad-fg-secondary);font-size:12.5px}.poad-table.poad-table :where(.tbl>tbody>tr.dt-empty>td)>.empty>.poad-icon{color:var(--poad-fg-muted)}.poad-table.poad-table :where(.tbl>tbody>tr.dt-empty>td)>.empty>b{color:var(--poad-fg);font-size:var(--poad-font-size)}.poad-table .dt-foot{display:flex;align-items:center;gap:14px;padding:8px 12px;border-top:1px solid var(--poad-border)}.poad-table.poad-table .dt-foot .poad-paginator{flex:1}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.flt>th{padding:5px 6px}.poad-table .flt-cell{position:relative;display:flex;align-items:center;gap:4px;min-width:0}.poad-table.poad-table .flt-cell input,.poad-table.poad-table .flt-cell .flt-in{flex:1 1 0;min-width:0;height:28px;padding:0 26px 0 8px;box-sizing:border-box;font:var(--poad-font-size-sm) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-input-border);border-radius:var(--poad-radius-sm);outline:0;transition:border-color var(--poad-dur),box-shadow var(--poad-dur)}.poad-table.poad-table .flt-cell.is-range input{padding-right:8px}.poad-table.poad-table .flt-cell.is-range input:last-of-type{padding-right:26px}.poad-table.poad-table .flt-cell input:focus,.poad-table.poad-table .flt-cell .flt-in:focus-visible{border-color:var(--poad-accent);box-shadow:0 0 0 2px var(--poad-ring)}.poad-table.poad-table .flt-cell.is-active input,.poad-table.poad-table .flt-cell.is-active .flt-in{border-color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table.poad-table .flt-cell .flt-in{display:inline-flex;align-items:center;justify-content:space-between;gap:6px;text-align:left;cursor:pointer}.poad-table.poad-table .flt-cell .flt-in.is-ph{color:var(--poad-fg-muted)}.poad-table.poad-table.poad-table .flt-cell .flt-in .poad-icon{color:var(--poad-fg-muted);flex:none}.poad-table.poad-table .flt-cell .flt-txt{flex:1;height:28px;display:inline-flex;align-items:center;padding:0 26px 0 8px;font:italic var(--poad-font-size-sm) var(--poad-font);color:var(--poad-accent);background:var(--poad-accent-soft);border:1px solid var(--poad-accent);border-radius:var(--poad-radius-sm);box-sizing:border-box}.poad-table.poad-table .flt-cell .flt-op{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:20px;height:20px;border:0;border-radius:4px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .flt-cell .flt-op:hover,.poad-table.poad-table .flt-cell .flt-op.is-on{color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table.poad-table .flt-cell.is-active .flt-op{right:22px}.poad-table.poad-table .flt-cell .flt-x{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:18px;height:18px;border:0;border-radius:4px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .flt-cell .flt-x:hover{color:var(--poad-danger);background:var(--poad-danger-soft)}.poad-table.poad-table .flt-cell>.poad-select{flex:1 1 0;min-width:0}.poad-table.poad-table.poad-table .flt-cell>.poad-select .poad-select__trigger{padding-inline-end:26px}.poad-table.poad-table.poad-table .flt-cell.is-active>.poad-select .poad-select__trigger{border-color:var(--poad-accent);background:var(--poad-accent-soft)}.poad-table .dt-foot__count{font:var(--poad-font-size-sm) var(--poad-font-mono);color:var(--poad-fg-secondary);white-space:nowrap}.poad-table.poad-table .dt-foot.has-count .poad-paginator{flex:1}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell{white-space:nowrap}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.cell-txt,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell>.cell-txt,.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.dt-tree-wrap>.cell-txt{white-space:normal}.poad-table .dt-tree-wrap{display:flex;align-items:center;min-width:0}.poad-table .dt-tree-wrap>.poad-tree-toggle{flex:none}.poad-table .dt-tree-wrap>:not(.poad-tree-toggle){min-width:0}.poad-table .poad-tree-toggle{display:inline-flex;align-items:center;vertical-align:middle;margin-right:4px}.poad-table.poad-table .poad-tree-toggle .ind{display:inline-block;width:calc(var(--_lvl, 0) * var(--_indent, 20px));flex:none}.poad-table.poad-table .poad-tree-toggle .tl{display:inline-block;width:var(--_indent, 20px);align-self:stretch;flex:none;position:relative}.poad-table.poad-table.poad-table.has-tree-lines .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell,.poad-table.poad-table.poad-table.has-tree-lines .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell{padding-top:0;padding-bottom:0}.poad-table.poad-table.has-tree-lines .poad-tree-toggle{align-self:stretch;height:var(--_row-h)}.poad-table.poad-table.poad-table.has-tree-lines .poad-tree-toggle .tl:before{content:\"\";position:absolute;left:9px;top:0;bottom:0;border-left:1px solid var(--poad-border)}.poad-table.poad-table .poad-tree-toggle .tg{width:20px;height:20px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:inline-grid;place-items:center;cursor:pointer;padding:0;flex:none}.poad-table.poad-table .poad-tree-toggle .tg:hover{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table .poad-tree-toggle .tg:focus-visible{outline:2px solid var(--poad-ring)}.poad-table.poad-table.poad-table .poad-tree-toggle .tg .poad-icon{transition:transform var(--poad-dur)}.poad-table.poad-table.poad-table .poad-tree-toggle .tg.is-open .poad-icon{transform:rotate(90deg)}.poad-table.poad-table .poad-tree-toggle .tg.is-leaf{visibility:hidden;pointer-events:none}.poad-table.poad-table .poad-tree-toggle .ic{color:var(--poad-fg-muted);margin:0 6px 0 2px}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-row.lvl-0.has-children>td.dt-tree-cell{font-weight:500}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group>td{background:var(--poad-bg-subtle);height:34px;padding:0 var(--_cell-px);border-bottom:1px solid var(--poad-border)}.poad-table .dt-group__inner{display:flex;align-items:center;gap:6px;padding-left:calc(var(--_lvl, 0) * var(--_indent, 20px));font-weight:600;font-size:var(--poad-font-size-sm)}.poad-table.poad-table .dt-group__inner .exp{width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:inline-grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .dt-group__inner .exp:hover{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table.poad-table .dt-group__inner .exp .poad-icon{transition:transform var(--poad-dur)}.poad-table.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group.is-expanded .dt-group__inner .exp .poad-icon{transform:rotate(90deg)}.poad-table .dt-group__count{font:500 10.5px var(--poad-font-mono);padding:1px 6px;border-radius:999px;background:var(--poad-elevated);color:var(--poad-fg-secondary)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group-foot>td{background:var(--poad-bg-subtle);height:32px;color:var(--poad-fg-secondary);font-size:var(--poad-font-size-sm);border-bottom:1px solid var(--poad-border)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-group-foot>td.dt-num,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>tr.dt-grand>td.dt-num{font-family:var(--poad-font-mono);font-weight:600}.poad-table .dt-group-foot__label{padding-left:calc(var(--_lvl, 0) * var(--_indent, 20px) + 26px);font-weight:500}.poad-table.poad-table.poad-table.poad-table .tbl>tfoot>tr.dt-grand>td{background:var(--poad-bg-subtle);font-weight:600;color:var(--poad-fg);border-top:2px solid var(--poad-border);height:36px}.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>:where(thead,tbody)>tr.dt-group:hover>td,.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>:where(thead,tbody)>tr.dt-group-foot:hover>td{background:var(--poad-bg-subtle)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-left,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-left,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-left,.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-right,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-right,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right{position:sticky;z-index:2;background:var(--poad-surface);background-clip:padding-box}.poad-table.poad-table.poad-table .tbl>thead>:where(tr)>th.st-left,.poad-table.poad-table.poad-table .tbl>thead>:where(tr)>th.st-right{z-index:4;background:var(--poad-bg-subtle)}.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>thead>:where(tr)>th.st-left,.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>thead>:where(tr)>th.st-right{z-index:5}.poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl>tbody>tr.dt-row:nth-child(2n of.dt-row)>td.st-left,.poad-table.poad-table.poad-table.poad-table.poad-table.is-striped .tbl>tbody>tr.dt-row:nth-child(2n of.dt-row)>td.st-right{background:var(--poad-table-stripe, var(--poad-bg-subtle))}.poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>tbody>tr.dt-row:hover>td.st-left,.poad-table.poad-table.poad-table.poad-table.poad-table.is-hoverable .tbl>tbody>tr.dt-row:hover>td.st-right{background:var(--poad-hover)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td.st-left,.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row.is-selected>td.st-right{background:color-mix(in srgb,var(--poad-accent) 12%,var(--poad-surface))}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-last-left,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-last-left,.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.st-last-left{transition:box-shadow var(--poad-dur)}.poad-table.poad-table.poad-table.is-scrolled-x .tbl>:where(tbody)>:where(tr)>td.st-last-left,.poad-table.poad-table.poad-table.is-scrolled-x .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-last-left,.poad-table.poad-table.poad-table.is-scrolled-x .tbl>:where(thead)>:where(tr)>th.st-last-left{box-shadow:1px 0 0 var(--poad-border),6px 0 12px -6px #0000002e}.poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl>:where(tbody)>:where(tr)>td.st-first-right,.poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-first-right,.poad-table.poad-table.poad-table:not(.is-scrolled-x-end) .tbl>:where(thead)>:where(tr)>th.st-first-right{box-shadow:-1px 0 0 var(--poad-border),-6px 0 12px -6px #0000002e}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.st-right.col-acts>.acts,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right.col-acts>.acts{background:inherit}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-detail>td{padding-left:calc(var(--_detail-pl, 58px) + var(--_lvl, 0) * var(--_indent, 20px))}.poad-table .dt-bar__tools,.poad-table .dt-bar__tools-end{display:contents}.poad-table .dt-bar__filters{display:inline-flex}.poad-table.poad-table .dt-bar__filters .dt-bar__count{padding:1px 6px;font-size:10px}.poad-table.poad-table.is-stacked .dt-bar{gap:8px}.poad-table.poad-table.is-stacked .dt-bar__tools{display:none}.poad-table.poad-table.is-stacked .dt-bar__tools.is-open{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex-basis:100%;order:10;padding-top:8px;border-top:1px dashed var(--poad-border)}.poad-table.poad-table.is-stacked .dt-bar__grow{display:none}.poad-table.poad-table.is-stacked .dt-bar__search{order:5;flex-basis:100%;width:100%}.poad-table.poad-table.is-stacked .dt-bar__cols,.poad-table.poad-table.is-stacked .dt-bar__density{display:none}.poad-table.poad-table.is-stacked .dt-sel{position:sticky;bottom:0;z-index:6;flex-wrap:wrap;border-top:1px solid var(--poad-border);order:99}.poad-table.poad-table.is-stacked .dt-scroll{overflow-x:hidden}.poad-table.poad-table.is-stacked .tbl,.poad-table.poad-table.poad-table.is-stacked .tbl>tbody,.poad-table.poad-table.poad-table.is-stacked .tbl>tfoot,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>tr:where(.dt-grand),.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td{display:block}.poad-table.poad-table.poad-table.is-stacked .tbl>thead,.poad-table.poad-table.poad-table.is-stacked .tbl>colgroup,.poad-table.poad-table.poad-table.is-stacked .tbl>caption{display:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row{position:relative;padding:10px 12px;border-bottom:1px solid var(--poad-border);height:auto}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.has-sel{padding-left:44px}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.is-selected{background:var(--poad-accent-soft);box-shadow:inset 3px 0 0 var(--poad-accent)}.poad-table.poad-table.poad-table.is-hoverable.is-stacked .tbl>:where(thead,tbody)>tr.dt-row:hover{background:var(--poad-hover)}.poad-table.poad-table.poad-table.poad-table.is-hoverable.is-stacked .tbl>:where(thead,tbody)>tr.dt-row:hover>td,.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.is-selected>td,.poad-table.poad-table.poad-table.poad-table.is-striped.is-stacked .tbl>:where(thead,tbody)>tr.dt-row>td{background:transparent!important;box-shadow:none!important}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row:focus-visible{box-shadow:inset 0 0 0 1px var(--poad-ring)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td{height:auto;padding:2px 0;border:0;white-space:normal;display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12.5px;position:static}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.st-left,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-left,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.st-right,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.st-right{position:static}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td[data-l]:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td[data-l]:before{content:attr(data-l);color:var(--poad-fg-muted);font-family:var(--poad-font);font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.04em;flex:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-sel,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-sel{position:absolute;left:12px;top:12px;padding:0;width:auto}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-sel:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-sel:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-exp:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-exp:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-acts:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-acts:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-first:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-first:before{content:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-exp,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-exp{position:absolute;right:44px;top:8px;padding:0;width:auto}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-first,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-first,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell{display:block;font-size:14px;font-weight:500;padding:0 44px 6px 0}.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .ind,.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .ind,.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .tl,.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-tree-cell>.dt-tree-wrap>.poad-tree-toggle .tl{display:none}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-acts,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-acts{position:absolute;right:8px;top:8px;padding:0;width:auto}.poad-table.poad-table.poad-table.is-stacked .tbl :where(td.col-acts)>.acts{opacity:1}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.dt-num,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.dt-num{text-align:right}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-detail>td{padding:8px 12px 10px}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.lvl-1{margin-left:22px;border-left:2px solid var(--poad-border)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.lvl-2{margin-left:44px;border-left:2px solid var(--poad-border)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-row.lvl-3{margin-left:66px;border-left:2px solid var(--poad-border)}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group>td{padding:8px 12px;height:auto;display:block}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group-foot{display:flex;flex-wrap:wrap;gap:4px 14px;padding:6px 12px 6px 44px}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group-foot>td{padding:0}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-group-foot>td:empty{display:none}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>tfoot>tr.dt-grand{padding:8px 12px}.poad-table.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>tfoot>tr.dt-grand>td:empty{display:none}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-empty>td{display:block}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.is-skeleton>td{display:block;padding:4px 0}.poad-table.poad-table.poad-table.poad-table.is-stacked .tbl>:where(thead,tbody)>tr.dt-card>td{padding:0;display:block}.poad-table.poad-table.is-stacked .dt-foot{flex-wrap:wrap;gap:8px}.poad-table.poad-table.is-stacked .dt-foot .poad-paginator__rpp{display:none}\n", ".poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.dh{display:none;position:absolute;left:2px;top:50%;transform:translateY(-50%);width:14px;height:18px;color:var(--poad-fg-muted);cursor:grab;border-radius:3px;place-items:center}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.dh:hover{color:var(--poad-fg);background:var(--poad-elevated)}.poad-table.poad-table.poad-table.is-reorderable .tbl>:where(thead)>:where(tr)>th.can-drag{padding-left:calc(var(--_cell-px) + 6px)}.poad-table.poad-table.poad-table.poad-table.is-reorderable .tbl>:where(thead)>:where(tr)>th.can-drag:hover>.dh,.poad-table.poad-table.poad-table.poad-table.is-reorderable .tbl>:where(thead)>:where(tr)>th.can-drag.cdk-drag-dragging>.dh{display:grid}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.cdk-drag-placeholder{opacity:.35;background:var(--poad-accent-soft)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.cdk-drag-placeholder:before{content:\"\";position:absolute;left:-1px;top:4px;bottom:4px;width:2px;background:var(--poad-accent)}.cdk-drag-preview.dt-th-preview{display:flex;align-items:center;height:38px;padding:0 12px;box-sizing:border-box;font:600 var(--poad-font-size-sm) var(--poad-font);color:var(--poad-fg);background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:6px;box-shadow:var(--poad-shadow-lg);list-style:none}.poad-table.poad-table.poad-table.poad-table .tbl>thead>tr.cdk-drop-list-dragging>th:not(.cdk-drag-placeholder){transition:transform .2s cubic-bezier(0,0,.2,1)}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.cdk-drag-animating{transition:transform .2s cubic-bezier(0,0,.2,1)}.poad-table.poad-table .dt-bar__menu .mv{display:inline-flex;gap:0;margin-left:auto}.poad-table.poad-table.poad-table .dt-bar__menu .mv button{border:0;background:transparent;color:var(--poad-fg-muted);width:20px;height:20px;border-radius:4px;cursor:pointer;display:grid;place-items:center;padding:0}.poad-table.poad-table.poad-table .dt-bar__menu .mv button:hover:not([disabled]){background:var(--poad-hover);color:var(--poad-fg)}.poad-table.poad-table.poad-table .dt-bar__menu .mv button[disabled]{opacity:.3;cursor:default}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.hg>th{height:30px;text-align:center;font:600 10.5px/1 var(--poad-font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--poad-fg-muted);border-bottom:1px solid var(--poad-border)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.hg>th.hg-cell{border-left:1px solid var(--poad-border)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.hg>th.hg-cell:first-child{border-left:0}.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>:where(thead,tbody)>tr.hg>th{position:sticky;top:0;z-index:3}.poad-table.poad-table.poad-table.poad-table.poad-table.is-sticky-header .tbl>:where(thead,tbody)>tr.hg+tr>th{top:30px}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-vpad>td{padding:0;border:0;height:auto}.poad-table.poad-table.is-virtual .dt-scroll{overflow-anchor:none}.poad-table.poad-table.poad-table.edit-cell .tbl>:where(tbody)>:where(tr)>td.is-editable,.poad-table.poad-table.poad-table.edit-cell .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editable{cursor:text;position:relative}.poad-table.poad-table.poad-table.poad-table.poad-table.edit-cell.is-hoverable .tbl>tbody>tr.dt-row>td.is-editable:hover{background:var(--poad-hover);box-shadow:inset 0 0 0 1px var(--poad-border-strong)}.poad-table.poad-table.poad-table.show-edit-icon .tbl>:where(tbody)>:where(tr)>td.is-editable,.poad-table.poad-table.poad-table.show-edit-icon .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editable{padding-right:calc(var(--_cell-px) + 16px)}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td>.ce,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td>.ce{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:20px;height:20px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0;opacity:0;transition:opacity var(--poad-dur),background var(--poad-dur)}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-editable:hover>.ce,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editable:hover>.ce,.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td>.ce:focus-visible,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td>.ce:focus-visible{opacity:.7}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td>.ce:hover,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td>.ce:hover{opacity:1!important;background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-editing,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editing{padding-top:0;padding-bottom:0;background:var(--poad-surface)!important;box-shadow:none!important}.poad-table .dt-editor{position:relative;display:flex;align-items:stretch;min-height:calc(var(--_row-h) - 8px);margin:4px 0}.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.is-editing,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.is-editing{height:auto;vertical-align:top}.poad-table.poad-table .dt-editor input,.poad-table.poad-table .dt-editor textarea{width:100%;height:calc(var(--_row-h) - 8px);box-sizing:border-box;padding:0 8px;font:var(--poad-font-size) var(--poad-font);color:var(--poad-fg);background:var(--poad-input-bg);border:1px solid var(--poad-accent);border-radius:var(--poad-radius-sm);outline:0;box-shadow:0 0 0 3px var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row>td[data-col]:focus{outline:none}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr.dt-row>td[data-col]:focus-visible{background:var(--poad-hover);box-shadow:inset 0 0 0 2px var(--poad-ring)}.poad-table.poad-table .dt-editor>.poad-select{flex:1 1 0;min-width:0}.poad-table.poad-table.poad-table .dt-editor>.poad-select .poad-select__trigger{height:calc(var(--_row-h) - 8px);border-color:var(--poad-accent);box-shadow:0 0 0 3px var(--poad-ring)}.poad-table.poad-table.poad-table .dt-editor.is-invalid>.poad-select .poad-select__trigger{border-color:var(--poad-danger);box-shadow:0 0 0 3px var(--poad-danger-soft)}.poad-table.poad-table .dt-editor input[type=number]{font-family:var(--poad-font-mono);text-align:right}.poad-table.poad-table .dt-editor textarea{height:auto;min-height:76px;padding:6px 8px;resize:vertical;line-height:1.45;font:var(--poad-font-size)/1.45 var(--poad-font)}.poad-table.poad-table .dt-editor input[type=checkbox]{width:16px;height:16px;box-shadow:none;accent-color:var(--poad-accent)}.poad-table.poad-table .dt-editor.is-invalid input,.poad-table.poad-table .dt-editor.is-invalid textarea{border-color:var(--poad-danger);box-shadow:0 0 0 3px var(--poad-danger-soft)}.poad-table .dt-editor__err{position:absolute;left:0;top:calc(100% + 4px);z-index:6;padding:3px 8px;border-radius:6px;background:var(--poad-danger);color:#fff;font-size:11px;white-space:nowrap;box-shadow:var(--poad-shadow-md);pointer-events:none}.poad-table .dt-editor__err:before{content:\"\";position:absolute;left:10px;top:-4px;width:8px;height:8px;background:inherit;transform:rotate(45deg)}.poad-table.poad-table.poad-table.poad-table.edit-row .tbl>:where(thead,tbody)>tr.dt-row.is-editing-row>td{background:var(--poad-accent-soft)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re{display:inline-grid;place-items:center;width:26px;height:26px;border:0;border-radius:6px;background:transparent;color:var(--poad-fg-secondary);cursor:pointer;padding:0}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re:hover{background:var(--poad-hover);color:var(--poad-fg)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re.ok{color:var(--poad-success)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re.ko{color:var(--poad-danger)}.poad-table.poad-table.poad-table .tbl :where(td.col-acts)>.acts>.re:focus-visible{outline:2px solid var(--poad-ring)}.poad-table.poad-table.poad-table.poad-table.edit-row .tbl>:where(thead,tbody)>tr.is-editing-row>:where(td.col-acts)>.acts{opacity:1}\n", ".poad-table .dt-scroll{scrollbar-width:thin;scrollbar-color:var(--poad-border-strong) transparent}.poad-table .dt-scroll::-webkit-scrollbar{height:10px;width:10px}.poad-table .dt-scroll::-webkit-scrollbar-thumb{background:var(--poad-border-strong);border-radius:999px;border:2px solid var(--poad-surface)}.poad-table .dt-scroll::-webkit-scrollbar-thumb:hover{background:var(--poad-fg-muted)}.poad-table .dt-scroll::-webkit-scrollbar-track{background:transparent}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.has-menu{padding-right:calc(var(--_cell-px) + 20px)}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--poad-fg-muted);display:grid;place-items:center;cursor:pointer;padding:0;opacity:0;transition:opacity var(--poad-dur),background var(--poad-dur);z-index:2}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th:hover>.hm,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm:focus-visible,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm.is-on,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-sorted>.hm,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-filtered>.hm{opacity:1}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm:hover,.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th>.hm.is-on{background:var(--poad-elevated);color:var(--poad-fg)}.poad-table.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.is-filtered .hd-txt{color:var(--poad-accent)}.poad-table.poad-table.poad-table.poad-table.is-resizable .tbl>:where(thead)>:where(tr)>th.has-menu>.hm{right:10px}.poad-table .dt-gz{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:40px;padding:6px 12px;border-bottom:1px solid var(--poad-border);background:var(--poad-bg-subtle);color:var(--poad-fg-muted);font-size:var(--poad-font-size-sm)}.poad-table .dt-gz.cdk-drop-list-receiving,.poad-table .dt-gz.cdk-drop-list-dragging{background:var(--poad-accent-soft);color:var(--poad-accent);outline:1px dashed var(--poad-accent);outline-offset:-4px}.poad-table .dt-gz__hint{font-style:italic}.poad-table .dt-gz__chip,.dt-gz__chip.cdk-drag-preview{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 4px 0 6px;border-radius:999px;background:var(--poad-accent-soft);color:var(--poad-accent);font-weight:500;cursor:grab}.poad-table.poad-table .dt-gz__chip .dt-gz__drag,.dt-gz__chip.cdk-drag-preview .dt-gz__drag{opacity:.6}.poad-table.poad-table .dt-gz__chip button,.dt-gz__chip.cdk-drag-preview button{width:18px;height:18px;border:0;border-radius:50%;background:transparent;color:inherit;display:grid;place-items:center;cursor:pointer;padding:0}.poad-table.poad-table .dt-gz__chip button:hover,.dt-gz__chip.cdk-drag-preview button:hover{background:var(--poad-accent);color:var(--poad-fg-on-accent)}.poad-table .dt-gz__chip.cdk-drag-placeholder{opacity:.35}.cdk-drag-preview.dt-gz__chip{box-shadow:var(--poad-shadow-md)}.poad-table.poad-table.is-stacked .dt-gz{display:none}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-num,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-num,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-num{width:44px;text-align:right;font:11px var(--poad-font-mono);color:var(--poad-fg-muted);background:var(--poad-bg-subtle);padding:0 8px;-webkit-user-select:none;user-select:none}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-num{font-weight:600}.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr:hover>td.col-num{background:var(--poad-bg-subtle)}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-num,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-num{position:absolute;left:auto;right:12px;bottom:6px;width:auto;background:transparent;padding:0}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-num:before,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-num:before{content:none}.poad-table.poad-table .tbl>:where(thead)>:where(tr)>th.col-drag,.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-drag,.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag{width:28px;padding:0 4px}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-drag>.rdh,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag>.rdh{display:inline-grid;place-items:center;width:20px;height:24px;color:var(--poad-fg-muted);cursor:grab;opacity:0;transition:opacity var(--poad-dur);border-radius:4px}.poad-table.poad-table.poad-table.poad-table.poad-table .tbl>tbody>tr:hover>td.col-drag>.rdh,.poad-table.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.cdk-drag-dragging>td.col-drag>.rdh{opacity:.8}.poad-table.poad-table.poad-table .tbl>:where(tbody)>:where(tr)>td.col-drag>.rdh:hover,.poad-table.poad-table.poad-table .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag>.rdh:hover{color:var(--poad-fg);background:var(--poad-elevated)}.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-row.cdk-drag-placeholder{opacity:0}.poad-table.poad-table.poad-table .tbl>tbody.cdk-drop-list-dragging>tr.dt-row:not(.cdk-drag-placeholder){transition:transform .2s cubic-bezier(0,0,.2,1)}.poad-table.poad-table.poad-table .tbl>:where(thead,tbody)>tr.dt-row.cdk-drag-placeholder>td{border-top:2px solid var(--poad-accent)}.cdk-drag-preview.dt-tr-preview{display:table;table-layout:fixed;box-sizing:border-box;background:var(--poad-overlay);--poad-hover: var(--poad-overlay-hover);border:1px solid var(--poad-border);border-radius:8px;box-shadow:var(--poad-shadow-lg);opacity:.95;font:var(--poad-font-size)/1.4 var(--poad-font);color:var(--poad-fg)}.cdk-drag-preview.dt-tr-preview td{padding:0 12px;height:42px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tbody)>:where(tr)>td.col-drag,.poad-table.poad-table.poad-table.is-stacked .tbl>:where(tfoot)>:where(tr.dt-grand)>td.col-drag{display:none}\n"] }]
|
|
10618
|
+
}], ctorParameters: () => [], propDecorators: { scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], dtEl: [{ type: i0.ViewChild, args: ['dt', { isSignal: true }] }], toolsEl: [{ type: i0.ViewChild, args: ['tools', { isSignal: true }] }], headerMenu: [{ type: i0.ViewChild, args: ['hmenu', { isSignal: true }] }], filterMenu: [{ type: i0.ViewChild, args: ['fmenu', { isSignal: true }] }], inMenu: [{ type: i0.ViewChild, args: ['inmenu', { isSignal: true }] }] } });
|
|
10392
10619
|
|
|
10393
10620
|
/** Template de nœud : `<ng-template poadTreeNode let-node let-row="row" let-level="level" let-selected="selected">`. */
|
|
10394
10621
|
class PoadTreeNodeDirective {
|
|
@@ -11230,65 +11457,93 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
11230
11457
|
* <ng-template poadDataviewGrid let-p>…carte…</ng-template>
|
|
11231
11458
|
* </poad-dataview>
|
|
11232
11459
|
* Remplace p-dataView : liste ou grille de templates, tri/filtre/pagination locaux, squelettes en `loading`.
|
|
11460
|
+
* Recherche, tri, page et bascule : modèle `dataview` d'@poadio/ui-core (feuille partagée `dataview.css` pour les autres rendus).
|
|
11461
|
+
* @slot [poadDataviewHeader] Contenu de l'en-tête, à gauche de la bascule.
|
|
11462
|
+
* @slot [poadDataviewFooter] Contenu du pied, avant le paginateur.
|
|
11233
11463
|
* @atelier icone=layout-list
|
|
11234
11464
|
* @atelier-exemple value [{"label":"Pont de Sèvres","etat":"Bon"},{"label":"Viaduc de Meudon","etat":"À surveiller"},{"label":"Passerelle Rive Sud","etat":"Bon"}]
|
|
11235
11465
|
*/
|
|
11236
11466
|
class PoadDataviewComponent {
|
|
11237
11467
|
i18n = inject(UiI18n);
|
|
11468
|
+
/** Éléments affichés. */
|
|
11238
11469
|
value = input([], ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
11470
|
+
/** Champ de la clé d'un élément (suivi des éléments ; sinon leur place). */
|
|
11239
11471
|
dataKey = input('', ...(ngDevMode ? [{ debugName: "dataKey" }] : /* istanbul ignore next */ []));
|
|
11472
|
+
/** Disposition `list` ou `grid` : `[(layout)]`. */
|
|
11240
11473
|
layout = model('list', ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
11474
|
+
/** Bascule liste / grille dans l'en-tête. */
|
|
11241
11475
|
showLayoutSwitch = input(false, { ...(ngDevMode ? { debugName: "showLayoutSwitch" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
11476
|
+
/** Paginateur au pied et éléments découpés en pages. */
|
|
11242
11477
|
paginator = input(false, { ...(ngDevMode ? { debugName: "paginator" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
11478
|
+
/** Index du premier élément de la page : `[(first)]`. */
|
|
11243
11479
|
first = model(0, ...(ngDevMode ? [{ debugName: "first" }] : /* istanbul ignore next */ []));
|
|
11480
|
+
/** Taille de page : `[(rows)]`. */
|
|
11244
11481
|
rows = model(12, ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
11482
|
+
/** Tailles de page proposées. */
|
|
11245
11483
|
rowsPerPageOptions = input([6, 12, 24, 48], ...(ngDevMode ? [{ debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []));
|
|
11484
|
+
/** Paginateur affiché même avec une seule page. */
|
|
11246
11485
|
alwaysShowPaginator = input(true, { ...(ngDevMode ? { debugName: "alwaysShowPaginator" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
11486
|
+
/** Champ du tri (sinon : l'ordre de `value`). */
|
|
11247
11487
|
sortField = input(null, ...(ngDevMode ? [{ debugName: "sortField" }] : /* istanbul ignore next */ []));
|
|
11488
|
+
/** Ordre du tri : `1` croissant, `-1` décroissant. */
|
|
11248
11489
|
sortOrder = input(1, ...(ngDevMode ? [{ debugName: "sortOrder" }] : /* istanbul ignore next */ []));
|
|
11490
|
+
/** Texte recherché (sans accents ni casse) dans `filterBy`. */
|
|
11249
11491
|
filterValue = input('', ...(ngDevMode ? [{ debugName: "filterValue" }] : /* istanbul ignore next */ []));
|
|
11492
|
+
/** Champs de la recherche. */
|
|
11250
11493
|
filterBy = input([], ...(ngDevMode ? [{ debugName: "filterBy" }] : /* istanbul ignore next */ []));
|
|
11494
|
+
/** Colonnes de la grille : un nombre, ou par point de rupture (`"1 sm:2 lg:3"`). */
|
|
11251
11495
|
gridCols = input('1 sm:2 lg:3', ...(ngDevMode ? [{ debugName: "gridCols" }] : /* istanbul ignore next */ []));
|
|
11496
|
+
/** Largeur minimale d'une carte : la grille remplit la ligne (à la place de `gridCols`). */
|
|
11252
11497
|
gridMin = input('', ...(ngDevMode ? [{ debugName: "gridMin" }] : /* istanbul ignore next */ []));
|
|
11498
|
+
/** Chargement : squelettes à la place des éléments. */
|
|
11253
11499
|
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
11500
|
+
/** Nombre de squelettes. */
|
|
11254
11501
|
loadingRows = input(6, { ...(ngDevMode ? { debugName: "loadingRows" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
11502
|
+
/** Message du corps vide (défaut : message du catalogue). */
|
|
11255
11503
|
emptyMessage = input(...(ngDevMode ? [undefined, { debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
11504
|
+
/** L'utilisateur change de page ou de taille de page. */
|
|
11256
11505
|
pageChange = output();
|
|
11506
|
+
/** L'utilisateur change de disposition. */
|
|
11257
11507
|
layoutChange = output();
|
|
11508
|
+
/** Changement de tri (réservé ; le tri vient de `sortField` / `sortOrder`). */
|
|
11258
11509
|
sortChange = output();
|
|
11510
|
+
/** Gabarit d'un élément en liste (`let-item`, `index`) ; sinon celui de la grille. */
|
|
11259
11511
|
listTpl = contentChild(PoadDataviewListDirective, ...(ngDevMode ? [{ debugName: "listTpl" }] : /* istanbul ignore next */ []));
|
|
11512
|
+
/** Gabarit d'un élément en grille (`let-item`, `index`) ; sinon celui de la liste. */
|
|
11260
11513
|
gridTpl = contentChild(PoadDataviewGridDirective, ...(ngDevMode ? [{ debugName: "gridTpl" }] : /* istanbul ignore next */ []));
|
|
11261
|
-
|
|
11262
|
-
|
|
11514
|
+
/** Recherche, tri et page : modèle `dataview` d'@poadio/ui-core. */
|
|
11515
|
+
filtered = computed(() => dataviewItems(this.value(), { filterValue: this.filterValue(), filterBy: this.filterBy(), sortField: this.sortField(), sortOrder: this.sortOrder(), locale: this.i18n.locale() }), ...(ngDevMode ? [{ debugName: "filtered" }] : /* istanbul ignore next */ []));
|
|
11516
|
+
pageItems = computed(() => dataviewPage(this.filtered(), { paginator: this.paginator(), first: this.first(), rows: this.rows() }), ...(ngDevMode ? [{ debugName: "pageItems" }] : /* istanbul ignore next */ []));
|
|
11517
|
+
switchItems = computed(() => dataviewSwitchItems(this.layout()), ...(ngDevMode ? [{ debugName: "switchItems" }] : /* istanbul ignore next */ []));
|
|
11263
11518
|
skel = computed(() => Array.from({ length: this.loadingRows() }, (_, i) => i), ...(ngDevMode ? [{ debugName: "skel" }] : /* istanbul ignore next */ []));
|
|
11264
|
-
trackOf(it, i) {
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
this.
|
|
11519
|
+
trackOf(it, i) { return dataviewTrack(it, i, this.dataKey()); }
|
|
11520
|
+
/** Passe en liste ou en grille (comme la bascule). */
|
|
11521
|
+
setLayout(l) { const next = dataviewSetLayout(this.layout(), l); if (next) {
|
|
11522
|
+
this.layout.set(next);
|
|
11523
|
+
this.layoutChange.emit(next);
|
|
11268
11524
|
} }
|
|
11269
11525
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadDataviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11270
11526
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.20", type: PoadDataviewComponent, isStandalone: true, selector: "poad-dataview", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, showLayoutSwitch: { classPropertyName: "showLayoutSwitch", publicName: "showLayoutSwitch", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, alwaysShowPaginator: { classPropertyName: "alwaysShowPaginator", publicName: "alwaysShowPaginator", isSignal: true, isRequired: false, transformFunction: null }, sortField: { classPropertyName: "sortField", publicName: "sortField", isSignal: true, isRequired: false, transformFunction: null }, sortOrder: { classPropertyName: "sortOrder", publicName: "sortOrder", isSignal: true, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, gridCols: { classPropertyName: "gridCols", publicName: "gridCols", isSignal: true, isRequired: false, transformFunction: null }, gridMin: { classPropertyName: "gridMin", publicName: "gridMin", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingRows: { classPropertyName: "loadingRows", publicName: "loadingRows", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { layout: "layoutChange", first: "firstChange", rows: "rowsChange", pageChange: "pageChange", layoutChange: "layoutChange", sortChange: "sortChange" }, host: { properties: { "class.is-grid": "layout() === \"grid\"" }, classAttribute: "poad-dataview" }, queries: [{ propertyName: "listTpl", first: true, predicate: PoadDataviewListDirective, descendants: true, isSignal: true }, { propertyName: "gridTpl", first: true, predicate: PoadDataviewGridDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
11271
11527
|
<div class="dv__hd"><div class="dv__hd-slot"><ng-content select="[poadDataviewHeader]"/></div>
|
|
11272
11528
|
@if (showLayoutSwitch()) {
|
|
11273
11529
|
<div class="dv__switch" role="group" [attr.aria-label]="i18n.t('dataview.layout')">
|
|
11274
|
-
<button type="button" [class.
|
|
11275
|
-
<button type="button" [class.is-on]="layout() === 'grid'" [attr.aria-label]="i18n.t('dataview.grid')" (click)="setLayout('grid')"><poad-icon name="grid" [size]="15"/></button>
|
|
11530
|
+
@for (b of switchItems(); track b.layout) {<button type="button" [class]="b.className" [attr.aria-pressed]="b['aria-pressed']" [attr.aria-label]="i18n.t(b.labelKey)" (click)="setLayout(b.layout)"><poad-icon [name]="b.icon" [size]="15"/></button>}
|
|
11276
11531
|
</div>
|
|
11277
11532
|
}
|
|
11278
11533
|
</div>
|
|
11279
11534
|
@if (loading()) {
|
|
11280
|
-
<div class="dv__body">@if (layout() === 'grid') {<poad-grid [cols]="gridCols()" [min]="gridMin()" gap="md">@for (i of skel(); track i) {<poad-skeleton shape="rect" height="120px"/>}</poad-grid>} @else {@for (i of skel(); track i) {<div class="dv__row"><poad-skeleton [lines]="2"/></div>}}</div>
|
|
11535
|
+
<div class="dv__body">@if (layout() === 'grid') {<poad-grid class="dv__grid" [cols]="gridCols()" [min]="gridMin()" gap="md">@for (i of skel(); track i) {<poad-skeleton shape="rect" height="120px"/>}</poad-grid>} @else {@for (i of skel(); track i) {<div class="dv__row"><poad-skeleton [lines]="2"/></div>}}</div>
|
|
11281
11536
|
} @else if (!pageItems().length) {
|
|
11282
11537
|
<div class="dv__empty"><poad-icon name="inbox" [size]="24" [strokeWidth]="1.5"/><span>{{ i18n.text(emptyMessage(), 'dataview.empty') }}</span></div>
|
|
11283
11538
|
} @else if (layout() === 'grid') {
|
|
11284
|
-
<poad-grid class="dv__body" [cols]="gridCols()" [min]="gridMin()" gap="md">@for (it of pageItems(); track trackOf(it, $index); let i = $index) {<ng-container *ngTemplateOutlet="(gridTpl() || listTpl())!.tpl; context: { $implicit: it, index: first() + i }"/>}</poad-grid>
|
|
11539
|
+
<poad-grid class="dv__body dv__grid" [cols]="gridCols()" [min]="gridMin()" gap="md">@for (it of pageItems(); track trackOf(it, $index); let i = $index) {<ng-container *ngTemplateOutlet="(gridTpl() || listTpl())!.tpl; context: { $implicit: it, index: first() + i }"/>}</poad-grid>
|
|
11285
11540
|
} @else {
|
|
11286
11541
|
<div class="dv__body dv__list">@for (it of pageItems(); track trackOf(it, $index); let i = $index) {<div class="dv__row"><ng-container *ngTemplateOutlet="(listTpl() || gridTpl())!.tpl; context: { $implicit: it, index: first() + i }"/></div>}</div>
|
|
11287
11542
|
}
|
|
11288
11543
|
<div class="dv__ft"><ng-content select="[poadDataviewFooter]"/>
|
|
11289
11544
|
@if (paginator()) {<poad-paginator [(first)]="first" [(rows)]="rows" [totalRecords]="filtered().length" [rowsPerPageOptions]="rowsPerPageOptions()" [alwaysShow]="alwaysShowPaginator()" (pageChange)="pageChange.emit($event)"/>}
|
|
11290
11545
|
</div>
|
|
11291
|
-
`, isInline: true, styles: [":host{display:block;font-family:var(--poad-font);font-size:var(--poad-font-size);color:var(--poad-fg)}.dv__hd{display:flex;align-items:center;gap:8px}.dv__hd:has(>.dv__hd-slot:not(:empty)),.dv__hd:has(.dv__switch){margin-bottom:12px}.dv__hd-slot{flex:1;min-width:0}.dv__switch{display:inline-flex;padding:3px;gap:2px;background:var(--poad-bg-subtle);border:1px solid var(--poad-border);border-radius:var(--poad-radius)}.dv__switch button{width:28px;height:24px;border:0;border-radius:6px;background:transparent;color:var(--poad-fg-secondary);display:grid;place-items:center;cursor:pointer}.dv__switch button.is-on{background:var(--poad-surface);color:var(--poad-fg);box-shadow:0 1px 2px #0000001f}.dv__list{display:flex;flex-direction:column;border:1px solid var(--poad-border);border-radius:var(--poad-radius-lg);overflow:hidden;background:var(--poad-surface)}.dv__row{padding:12px 14px;border-bottom:1px solid var(--poad-border)}.dv__row:last-child{border-bottom:0}.dv__empty{display:grid;place-items:center;gap:6px;padding:32px;color:var(--poad-fg-muted);border:1px dashed var(--poad-border-strong);border-radius:var(--poad-radius-lg)}.dv__ft{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.dv__ft:empty{display:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PoadPaginatorComponent, selector: "poad-paginator", inputs: ["first", "rows", "totalRecords", "rowsPerPageOptions", "rowsPerPageLabel", "pageLinks", "showCurrentPageReport", "currentPageReportTemplate", "showFirstLastIcon", "showPageLinks", "alwaysShow"], outputs: ["firstChange", "rowsChange", "pageChange"] }, { kind: "component", type: PoadIconComponent, selector: "poad-icon", inputs: ["name", "size", "strokeWidth", "label", "title", "spin", "filled", "flip", "rotate"] }, { kind: "component", type: PoadSkeletonComponent, selector: "poad-skeleton", inputs: ["width", "height", "shape", "lines", "animation", "lastWidth"] }, { kind: "component", type: PoadGridComponent, selector: "poad-grid", inputs: ["cols", "min", "gap", "rowGap", "align", "dense"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11546
|
+
`, isInline: true, styles: [":host{display:block;font-family:var(--poad-font);font-size:var(--poad-font-size);color:var(--poad-fg)}.dv__hd{display:flex;align-items:center;gap:8px}.dv__hd:has(>.dv__hd-slot:not(:empty)),.dv__hd:has(.dv__switch){margin-bottom:12px}.dv__hd-slot{flex:1;min-width:0}.dv__switch{display:inline-flex;padding:3px;gap:2px;background:var(--poad-bg-subtle);border:1px solid var(--poad-border);border-radius:var(--poad-radius)}.dv__switch button{width:28px;height:24px;border:0;border-radius:6px;background:transparent;color:var(--poad-fg-secondary);display:grid;place-items:center;cursor:pointer}.dv__switch button.is-on{background:var(--poad-surface);color:var(--poad-fg);box-shadow:0 1px 2px #0000001f}.dv__list{display:flex;flex-direction:column;border:1px solid var(--poad-border);border-radius:var(--poad-radius-lg);overflow:hidden;background:var(--poad-surface)}.dv__row{padding:12px 14px;border-bottom:1px solid var(--poad-border)}.dv__row:last-child{border-bottom:0}.dv__empty{display:grid;place-items:center;gap:6px;padding:32px;color:var(--poad-fg-muted);border:1px dashed var(--poad-border-strong);border-radius:var(--poad-radius-lg)}.dv__ft{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.dv__ft:empty{display:none}.dv__ft{flex-wrap:wrap}:host ::ng-deep .dv__ft .poad-paginator{flex:1;flex-wrap:wrap;row-gap:8px;min-width:0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PoadPaginatorComponent, selector: "poad-paginator", inputs: ["first", "rows", "totalRecords", "rowsPerPageOptions", "rowsPerPageLabel", "pageLinks", "showCurrentPageReport", "currentPageReportTemplate", "showFirstLastIcon", "showPageLinks", "alwaysShow"], outputs: ["firstChange", "rowsChange", "pageChange"] }, { kind: "component", type: PoadIconComponent, selector: "poad-icon", inputs: ["name", "size", "strokeWidth", "label", "title", "spin", "filled", "flip", "rotate"] }, { kind: "component", type: PoadSkeletonComponent, selector: "poad-skeleton", inputs: ["width", "height", "shape", "lines", "animation", "lastWidth"] }, { kind: "component", type: PoadGridComponent, selector: "poad-grid", inputs: ["cols", "min", "gap", "rowGap", "align", "dense"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11292
11547
|
}
|
|
11293
11548
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: PoadDataviewComponent, decorators: [{
|
|
11294
11549
|
type: Component,
|
|
@@ -11296,24 +11551,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
11296
11551
|
<div class="dv__hd"><div class="dv__hd-slot"><ng-content select="[poadDataviewHeader]"/></div>
|
|
11297
11552
|
@if (showLayoutSwitch()) {
|
|
11298
11553
|
<div class="dv__switch" role="group" [attr.aria-label]="i18n.t('dataview.layout')">
|
|
11299
|
-
<button type="button" [class.
|
|
11300
|
-
<button type="button" [class.is-on]="layout() === 'grid'" [attr.aria-label]="i18n.t('dataview.grid')" (click)="setLayout('grid')"><poad-icon name="grid" [size]="15"/></button>
|
|
11554
|
+
@for (b of switchItems(); track b.layout) {<button type="button" [class]="b.className" [attr.aria-pressed]="b['aria-pressed']" [attr.aria-label]="i18n.t(b.labelKey)" (click)="setLayout(b.layout)"><poad-icon [name]="b.icon" [size]="15"/></button>}
|
|
11301
11555
|
</div>
|
|
11302
11556
|
}
|
|
11303
11557
|
</div>
|
|
11304
11558
|
@if (loading()) {
|
|
11305
|
-
<div class="dv__body">@if (layout() === 'grid') {<poad-grid [cols]="gridCols()" [min]="gridMin()" gap="md">@for (i of skel(); track i) {<poad-skeleton shape="rect" height="120px"/>}</poad-grid>} @else {@for (i of skel(); track i) {<div class="dv__row"><poad-skeleton [lines]="2"/></div>}}</div>
|
|
11559
|
+
<div class="dv__body">@if (layout() === 'grid') {<poad-grid class="dv__grid" [cols]="gridCols()" [min]="gridMin()" gap="md">@for (i of skel(); track i) {<poad-skeleton shape="rect" height="120px"/>}</poad-grid>} @else {@for (i of skel(); track i) {<div class="dv__row"><poad-skeleton [lines]="2"/></div>}}</div>
|
|
11306
11560
|
} @else if (!pageItems().length) {
|
|
11307
11561
|
<div class="dv__empty"><poad-icon name="inbox" [size]="24" [strokeWidth]="1.5"/><span>{{ i18n.text(emptyMessage(), 'dataview.empty') }}</span></div>
|
|
11308
11562
|
} @else if (layout() === 'grid') {
|
|
11309
|
-
<poad-grid class="dv__body" [cols]="gridCols()" [min]="gridMin()" gap="md">@for (it of pageItems(); track trackOf(it, $index); let i = $index) {<ng-container *ngTemplateOutlet="(gridTpl() || listTpl())!.tpl; context: { $implicit: it, index: first() + i }"/>}</poad-grid>
|
|
11563
|
+
<poad-grid class="dv__body dv__grid" [cols]="gridCols()" [min]="gridMin()" gap="md">@for (it of pageItems(); track trackOf(it, $index); let i = $index) {<ng-container *ngTemplateOutlet="(gridTpl() || listTpl())!.tpl; context: { $implicit: it, index: first() + i }"/>}</poad-grid>
|
|
11310
11564
|
} @else {
|
|
11311
11565
|
<div class="dv__body dv__list">@for (it of pageItems(); track trackOf(it, $index); let i = $index) {<div class="dv__row"><ng-container *ngTemplateOutlet="(listTpl() || gridTpl())!.tpl; context: { $implicit: it, index: first() + i }"/></div>}</div>
|
|
11312
11566
|
}
|
|
11313
11567
|
<div class="dv__ft"><ng-content select="[poadDataviewFooter]"/>
|
|
11314
11568
|
@if (paginator()) {<poad-paginator [(first)]="first" [(rows)]="rows" [totalRecords]="filtered().length" [rowsPerPageOptions]="rowsPerPageOptions()" [alwaysShow]="alwaysShowPaginator()" (pageChange)="pageChange.emit($event)"/>}
|
|
11315
11569
|
</div>
|
|
11316
|
-
`, styles: [":host{display:block;font-family:var(--poad-font);font-size:var(--poad-font-size);color:var(--poad-fg)}.dv__hd{display:flex;align-items:center;gap:8px}.dv__hd:has(>.dv__hd-slot:not(:empty)),.dv__hd:has(.dv__switch){margin-bottom:12px}.dv__hd-slot{flex:1;min-width:0}.dv__switch{display:inline-flex;padding:3px;gap:2px;background:var(--poad-bg-subtle);border:1px solid var(--poad-border);border-radius:var(--poad-radius)}.dv__switch button{width:28px;height:24px;border:0;border-radius:6px;background:transparent;color:var(--poad-fg-secondary);display:grid;place-items:center;cursor:pointer}.dv__switch button.is-on{background:var(--poad-surface);color:var(--poad-fg);box-shadow:0 1px 2px #0000001f}.dv__list{display:flex;flex-direction:column;border:1px solid var(--poad-border);border-radius:var(--poad-radius-lg);overflow:hidden;background:var(--poad-surface)}.dv__row{padding:12px 14px;border-bottom:1px solid var(--poad-border)}.dv__row:last-child{border-bottom:0}.dv__empty{display:grid;place-items:center;gap:6px;padding:32px;color:var(--poad-fg-muted);border:1px dashed var(--poad-border-strong);border-radius:var(--poad-radius-lg)}.dv__ft{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.dv__ft:empty{display:none}\n"] }]
|
|
11570
|
+
`, styles: [":host{display:block;font-family:var(--poad-font);font-size:var(--poad-font-size);color:var(--poad-fg)}.dv__hd{display:flex;align-items:center;gap:8px}.dv__hd:has(>.dv__hd-slot:not(:empty)),.dv__hd:has(.dv__switch){margin-bottom:12px}.dv__hd-slot{flex:1;min-width:0}.dv__switch{display:inline-flex;padding:3px;gap:2px;background:var(--poad-bg-subtle);border:1px solid var(--poad-border);border-radius:var(--poad-radius)}.dv__switch button{width:28px;height:24px;border:0;border-radius:6px;background:transparent;color:var(--poad-fg-secondary);display:grid;place-items:center;cursor:pointer}.dv__switch button.is-on{background:var(--poad-surface);color:var(--poad-fg);box-shadow:0 1px 2px #0000001f}.dv__list{display:flex;flex-direction:column;border:1px solid var(--poad-border);border-radius:var(--poad-radius-lg);overflow:hidden;background:var(--poad-surface)}.dv__row{padding:12px 14px;border-bottom:1px solid var(--poad-border)}.dv__row:last-child{border-bottom:0}.dv__empty{display:grid;place-items:center;gap:6px;padding:32px;color:var(--poad-fg-muted);border:1px dashed var(--poad-border-strong);border-radius:var(--poad-radius-lg)}.dv__ft{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.dv__ft:empty{display:none}.dv__ft{flex-wrap:wrap}:host ::ng-deep .dv__ft .poad-paginator{flex:1;flex-wrap:wrap;row-gap:8px;min-width:0}\n"] }]
|
|
11317
11571
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }, { type: i0.Output, args: ["layoutChange"] }], showLayoutSwitch: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLayoutSwitch", required: false }] }], paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }, { type: i0.Output, args: ["firstChange"] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }, { type: i0.Output, args: ["rowsChange"] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], alwaysShowPaginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "alwaysShowPaginator", required: false }] }], sortField: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortField", required: false }] }], sortOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortOrder", required: false }] }], filterValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterValue", required: false }] }], filterBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterBy", required: false }] }], gridCols: [{ type: i0.Input, args: [{ isSignal: true, alias: "gridCols", required: false }] }], gridMin: [{ type: i0.Input, args: [{ isSignal: true, alias: "gridMin", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingRows", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }], layoutChange: [{ type: i0.Output, args: ["layoutChange"] }], sortChange: [{ type: i0.Output, args: ["sortChange"] }], listTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PoadDataviewListDirective), { isSignal: true }] }], gridTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PoadDataviewGridDirective), { isSignal: true }] }] } });
|
|
11318
11572
|
|
|
11319
11573
|
/**
|
|
@@ -27688,7 +27942,7 @@ const CATALOGUE = {
|
|
|
27688
27942
|
{
|
|
27689
27943
|
"name": "responsive",
|
|
27690
27944
|
"required": false,
|
|
27691
|
-
"type": "
|
|
27945
|
+
"type": "PoadTableResponsiveMode",
|
|
27692
27946
|
"default": "scroll"
|
|
27693
27947
|
},
|
|
27694
27948
|
{
|
|
@@ -31041,6 +31295,11 @@ const CATALOGUE = {
|
|
|
31041
31295
|
"name": "poadIf",
|
|
31042
31296
|
"required": true,
|
|
31043
31297
|
"type": "string"
|
|
31298
|
+
},
|
|
31299
|
+
{
|
|
31300
|
+
"name": "poadIfElse",
|
|
31301
|
+
"required": false,
|
|
31302
|
+
"type": "TemplateRef<unknown> | null"
|
|
31044
31303
|
}
|
|
31045
31304
|
],
|
|
31046
31305
|
"outputs": []
|
|
@@ -31072,13 +31331,13 @@ const CATALOGUE = {
|
|
|
31072
31331
|
{
|
|
31073
31332
|
"name": "align",
|
|
31074
31333
|
"required": false,
|
|
31075
|
-
"type": "
|
|
31334
|
+
"type": "Align",
|
|
31076
31335
|
"default": "stretch"
|
|
31077
31336
|
},
|
|
31078
31337
|
{
|
|
31079
31338
|
"name": "justify",
|
|
31080
31339
|
"required": false,
|
|
31081
|
-
"type": "
|
|
31340
|
+
"type": "Justify",
|
|
31082
31341
|
"default": "start"
|
|
31083
31342
|
},
|
|
31084
31343
|
{
|
|
@@ -31111,13 +31370,13 @@ const CATALOGUE = {
|
|
|
31111
31370
|
{
|
|
31112
31371
|
"name": "align",
|
|
31113
31372
|
"required": false,
|
|
31114
|
-
"type": "
|
|
31373
|
+
"type": "Align",
|
|
31115
31374
|
"default": "center"
|
|
31116
31375
|
},
|
|
31117
31376
|
{
|
|
31118
31377
|
"name": "justify",
|
|
31119
31378
|
"required": false,
|
|
31120
|
-
"type": "
|
|
31379
|
+
"type": "Justify",
|
|
31121
31380
|
"default": "start"
|
|
31122
31381
|
},
|
|
31123
31382
|
{
|
|
@@ -31174,7 +31433,7 @@ const CATALOGUE = {
|
|
|
31174
31433
|
{
|
|
31175
31434
|
"name": "align",
|
|
31176
31435
|
"required": false,
|
|
31177
|
-
"type": "
|
|
31436
|
+
"type": "Align",
|
|
31178
31437
|
"default": "stretch"
|
|
31179
31438
|
},
|
|
31180
31439
|
{
|
|
@@ -31225,7 +31484,7 @@ const CATALOGUE = {
|
|
|
31225
31484
|
{
|
|
31226
31485
|
"name": "align",
|
|
31227
31486
|
"required": false,
|
|
31228
|
-
"type": "
|
|
31487
|
+
"type": "Align",
|
|
31229
31488
|
"default": "stretch"
|
|
31230
31489
|
},
|
|
31231
31490
|
{
|
|
@@ -31249,7 +31508,7 @@ const CATALOGUE = {
|
|
|
31249
31508
|
"symbol": "PoadSidebarComponent",
|
|
31250
31509
|
"selector": "poad-sidebar",
|
|
31251
31510
|
"kind": "component",
|
|
31252
|
-
"role":
|
|
31511
|
+
"role": "Contenu et panneau latéral (le panneau : `[poadSidebarPanel]`). Style : `@poadio/ui-core/layout.css` ; valeurs de",
|
|
31253
31512
|
"atelier": {
|
|
31254
31513
|
"icone": "panel-left"
|
|
31255
31514
|
},
|
|
@@ -31281,7 +31540,7 @@ const CATALOGUE = {
|
|
|
31281
31540
|
{
|
|
31282
31541
|
"name": "align",
|
|
31283
31542
|
"required": false,
|
|
31284
|
-
"type": "
|
|
31543
|
+
"type": "Align",
|
|
31285
31544
|
"default": "stretch"
|
|
31286
31545
|
},
|
|
31287
31546
|
{
|
|
@@ -31344,7 +31603,7 @@ const CATALOGUE = {
|
|
|
31344
31603
|
{
|
|
31345
31604
|
"name": "size",
|
|
31346
31605
|
"required": false,
|
|
31347
|
-
"type": "
|
|
31606
|
+
"type": "LayoutContainerSize",
|
|
31348
31607
|
"default": "full"
|
|
31349
31608
|
},
|
|
31350
31609
|
{
|
|
@@ -33384,19 +33643,17 @@ const CATALOGUE = {
|
|
|
33384
33643
|
{
|
|
33385
33644
|
"name": "labels",
|
|
33386
33645
|
"required": false,
|
|
33387
|
-
"type": "
|
|
33646
|
+
"type": "BottomNavLabels",
|
|
33388
33647
|
"default": "always"
|
|
33389
33648
|
},
|
|
33390
33649
|
{
|
|
33391
33650
|
"name": "maxItems",
|
|
33392
|
-
"required": false
|
|
33393
|
-
"type": "number",
|
|
33394
|
-
"default": 5
|
|
33651
|
+
"required": false
|
|
33395
33652
|
},
|
|
33396
33653
|
{
|
|
33397
33654
|
"name": "breakpoint",
|
|
33398
33655
|
"required": false,
|
|
33399
|
-
"type": "
|
|
33656
|
+
"type": "PoadBreakpoint",
|
|
33400
33657
|
"default": "md"
|
|
33401
33658
|
},
|
|
33402
33659
|
{
|
|
@@ -33647,6 +33904,11 @@ const CATALOGUE = {
|
|
|
33647
33904
|
"required": false,
|
|
33648
33905
|
"type": "boolean",
|
|
33649
33906
|
"default": true
|
|
33907
|
+
},
|
|
33908
|
+
{
|
|
33909
|
+
"name": "current",
|
|
33910
|
+
"required": false,
|
|
33911
|
+
"type": "string | null"
|
|
33650
33912
|
}
|
|
33651
33913
|
],
|
|
33652
33914
|
"outputs": [
|
|
@@ -33682,7 +33944,7 @@ const CATALOGUE = {
|
|
|
33682
33944
|
"symbol": "PoadNavDrawerFooterDirective",
|
|
33683
33945
|
"selector": "[poadNavDrawerFooter]",
|
|
33684
33946
|
"kind": "directive",
|
|
33685
|
-
"role":
|
|
33947
|
+
"role": "Pied du tiroir (compte, déconnexion…) : marqueur de slot, sur n'importe quel élément.",
|
|
33686
33948
|
"inputs": [],
|
|
33687
33949
|
"outputs": []
|
|
33688
33950
|
},
|
|
@@ -33736,6 +33998,11 @@ const CATALOGUE = {
|
|
|
33736
33998
|
"twoWay": true,
|
|
33737
33999
|
"type": "string | null"
|
|
33738
34000
|
},
|
|
34001
|
+
{
|
|
34002
|
+
"name": "current",
|
|
34003
|
+
"required": false,
|
|
34004
|
+
"type": "string | null"
|
|
34005
|
+
},
|
|
33739
34006
|
{
|
|
33740
34007
|
"name": "collapsed",
|
|
33741
34008
|
"twoWay": true,
|
|
@@ -33744,15 +34011,21 @@ const CATALOGUE = {
|
|
|
33744
34011
|
{
|
|
33745
34012
|
"name": "mode",
|
|
33746
34013
|
"required": false,
|
|
33747
|
-
"type": "
|
|
34014
|
+
"type": "PoadNavDrawerMode",
|
|
33748
34015
|
"default": "auto"
|
|
33749
34016
|
},
|
|
33750
34017
|
{
|
|
33751
34018
|
"name": "breakpoint",
|
|
33752
34019
|
"required": false,
|
|
33753
|
-
"type": "
|
|
34020
|
+
"type": "PoadBreakpoint",
|
|
33754
34021
|
"default": "md"
|
|
33755
34022
|
},
|
|
34023
|
+
{
|
|
34024
|
+
"name": "railBelow",
|
|
34025
|
+
"required": false,
|
|
34026
|
+
"type": "PoadBreakpoint | ''",
|
|
34027
|
+
"default": ""
|
|
34028
|
+
},
|
|
33756
34029
|
{
|
|
33757
34030
|
"name": "position",
|
|
33758
34031
|
"required": false,
|
|
@@ -37080,8 +37353,8 @@ const CATALOGUE = {
|
|
|
37080
37353
|
"symbols": 175,
|
|
37081
37354
|
"components": 113,
|
|
37082
37355
|
"directives": 62,
|
|
37083
|
-
"inputs":
|
|
37084
|
-
"inputsTypes":
|
|
37356
|
+
"inputs": 1205,
|
|
37357
|
+
"inputsTypes": 1204,
|
|
37085
37358
|
"outputs": 233,
|
|
37086
37359
|
"outputsTypes": 233
|
|
37087
37360
|
}
|