@akcelik/strct 4.2.1 → 4.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akcelik/strct",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "UIStruct — a standalone Angular component library with a tokenised, multi-palette theme system, built for datacenter / infrastructure management UIs.",
|
|
5
5
|
"author": "Serkan Akcelik <serkan.akcelik@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
package/types/akcelik-strct.d.ts
CHANGED
|
@@ -5811,6 +5811,30 @@ declare class StrctHeatmap {
|
|
|
5811
5811
|
readonly cols: _angular_core.InputSignal<string[] | null>;
|
|
5812
5812
|
/** Scale ceiling — the value that maps to full intensity. Auto (data max) when null. */
|
|
5813
5813
|
readonly max: _angular_core.InputSignal<number | null>;
|
|
5814
|
+
/**
|
|
5815
|
+
* Label every n-th column (1 = every column, today's behaviour). 24 hourly
|
|
5816
|
+
* columns in a narrow card cannot all carry a readable label; labelling every
|
|
5817
|
+
* third keeps "14:00" legible instead of forcing it down to "14".
|
|
5818
|
+
*/
|
|
5819
|
+
readonly colLabelEvery: _angular_core.InputSignal<number>;
|
|
5820
|
+
/**
|
|
5821
|
+
* Column label text, so a column can be keyed by an ISO time and shown as
|
|
5822
|
+
* "14:00". Return '' to drop a label. Applied after `colLabelEvery`.
|
|
5823
|
+
*/
|
|
5824
|
+
readonly colLabel: _angular_core.InputSignal<((col: string, index: number) => string) | null>;
|
|
5825
|
+
/**
|
|
5826
|
+
* Cell tooltip text. Without it a cell reads `row × col: value`, which for a
|
|
5827
|
+
* utilisation grid has no unit — `hv-05 · 14:00 — 47% CPU` is the readable form.
|
|
5828
|
+
*/
|
|
5829
|
+
readonly valueFormat: _angular_core.InputSignal<((value: number, row: string, col: string) => string) | null>;
|
|
5830
|
+
/**
|
|
5831
|
+
* Colour by band instead of one hue: `status` (accent by default) below
|
|
5832
|
+
* `warning`, the warning hue from there, the critical hue from `critical`.
|
|
5833
|
+
* Intensity is scaled by the value's position WITHIN its band, so a 96% cell
|
|
5834
|
+
* reads darker than an 81% one and both read as critical/warning at a glance.
|
|
5835
|
+
* Unset: today's single-hue ramp across the whole range.
|
|
5836
|
+
*/
|
|
5837
|
+
readonly thresholds: _angular_core.InputSignal<StrctThresholds | null>;
|
|
5814
5838
|
/** Base color of the intensity ramp. */
|
|
5815
5839
|
readonly status: _angular_core.InputSignal<StrctChartStatus>;
|
|
5816
5840
|
/** Shown when there is no data (localizable). */
|
|
@@ -5846,15 +5870,22 @@ declare class StrctHeatmap {
|
|
|
5846
5870
|
protected readonly cells: _angular_core.Signal<CellRender[]>;
|
|
5847
5871
|
protected readonly rowLabels: _angular_core.Signal<LabelRender[]>;
|
|
5848
5872
|
protected readonly colLabels: _angular_core.Signal<LabelRender[]>;
|
|
5873
|
+
private tipFor;
|
|
5849
5874
|
/** Screen-reader summary of the whole grid (role="img" name). */
|
|
5850
5875
|
protected readonly aria: _angular_core.Signal<string>;
|
|
5851
5876
|
/**
|
|
5852
5877
|
* Intensity ramp: 8% of the status hue for the smallest non-zero value up
|
|
5853
5878
|
* to 100% at the ceiling; zero stays on the empty-cell surface.
|
|
5879
|
+
*
|
|
5880
|
+
* With `thresholds`, the hue comes from the value's band and the intensity
|
|
5881
|
+
* from its position inside that band, floored at 45% — a band has to be
|
|
5882
|
+
* recognisable as itself, and a pale cell must not read as "no data".
|
|
5854
5883
|
*/
|
|
5855
5884
|
private fillFor;
|
|
5885
|
+
/** The band a value falls in: its hue and the range intensity scales over. */
|
|
5886
|
+
private bandFor;
|
|
5856
5887
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctHeatmap, never>;
|
|
5857
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctHeatmap, "strct-heatmap", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "cols": { "alias": "cols"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "summaryFormat": { "alias": "summaryFormat"; "required": false; "isSignal": true; }; "cellHeight": { "alias": "cellHeight"; "required": false; "isSignal": true; }; "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "rowLabelWidth": { "alias": "rowLabelWidth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5888
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctHeatmap, "strct-heatmap", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "cols": { "alias": "cols"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "colLabelEvery": { "alias": "colLabelEvery"; "required": false; "isSignal": true; }; "colLabel": { "alias": "colLabel"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "thresholds": { "alias": "thresholds"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "summaryFormat": { "alias": "summaryFormat"; "required": false; "isSignal": true; }; "cellHeight": { "alias": "cellHeight"; "required": false; "isSignal": true; }; "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "rowLabelWidth": { "alias": "rowLabelWidth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5858
5889
|
}
|
|
5859
5890
|
|
|
5860
5891
|
export { FOCUSABLE_SELECTOR, STRCT_DP_DOW, STRCT_DP_DOW_FULL, STRCT_DP_MONTHS, STRCT_ICONS, STRCT_ICON_GROUPS, STRCT_ICON_NAMES, STRCT_MASKS, STRCT_NOTIFICATION_HISTORY_LIMIT, STRCT_PALETTES, STRCT_RAW_ICONS, STRCT_TIME_RANGE_PRESETS, STRCT_WIZARD_DEFAULTS, StrctAccordion, StrctAccordionPanel, StrctAlert, StrctAnnouncer, StrctAvatar, StrctBadge, StrctBreadcrumb, StrctBreadcrumbItem, StrctButton, StrctButtonGroup, StrctBytesPipe, StrctCard, StrctCardBlock, StrctCardFooter, StrctCardHeader, StrctCascadeColumn, StrctCascadeHost, StrctCascadeSelect, StrctCellDef, StrctCellStatus, StrctChart, StrctCheckbox, StrctChips, StrctCode, StrctColorPicker, StrctCombobox, StrctCommandPalette, StrctConfirmOutlet, StrctConfirmService, StrctContextMenu, StrctContextMenuTrigger, StrctCopy, StrctDatagrid, StrctDatagridActionBar, StrctDatepicker, StrctDatetimePicker, StrctDesc, StrctDescriptionList, StrctDiff, StrctDivider, StrctDonut, StrctDrawer, StrctDrawerFooter, StrctDropdown, StrctDropdownDivider, StrctDropdownItem, StrctDropdownTrigger, StrctDurationPipe, StrctEmptyState, StrctField, StrctFile, StrctFilterBar, StrctFlow, StrctFooter, StrctGauge, StrctHeader, StrctHeatmap, StrctHero, StrctHotkeysHelp, StrctHotkeysService, StrctIcon, StrctInlineEdit, StrctInput, StrctInputMask, StrctInputOtp, StrctKbd, StrctKnob, StrctLogViewer, StrctLogin, StrctMenuPanel, StrctMenuService, StrctMenubar, StrctMetricTile, StrctModal, StrctModalContent, StrctNav, StrctNavItem, StrctNotificationCenter, StrctNumber, StrctOverlay, StrctPageHeader, StrctPageHeaderActions, StrctPageHeaderCrumbs, StrctPagination, StrctPassword, StrctPopover, StrctPopoverTrigger, StrctProgress, StrctRadio, StrctRadioGroup, StrctRail, StrctRange, StrctRatePipe, StrctRating, StrctReorder, StrctReorderItem, StrctRowDetailDef, StrctSearchbox, StrctSectionMenu, StrctSegmented, StrctSelect, StrctShell, StrctShellService, StrctSiPipe, StrctSignpost, StrctSignpostTrigger, StrctSkeleton, StrctSparkline, StrctSpeedDial, StrctSpinner, StrctSplitButton, StrctSplitter, StrctStack, StrctStackItem, StrctStatusDot, StrctStep, StrctSubmenu, StrctTab, StrctTable, StrctTabs, StrctTag, StrctThemeService, StrctThemeSwitcher, StrctTimeRangePicker, StrctTimeline, StrctTimelineItem, StrctToastOutlet, StrctToastService, StrctToggle, StrctToolbar, StrctToolbarSpacer, StrctTooltip, StrctTour, StrctTransfer, StrctTree, StrctTreeNode, StrctTreeSelect, StrctVerticalNav, StrctWatermark, StrctWizard, StrctWizardAside, focusFirstIn, keepTabInside, lockBodyScroll, parseAnsi, provideStrctWizardDefaults, registerStrctIcon, restoreFocus, saveFocusedElement, strctComputeDiff, strctDpPad, strctFormatBytes, strctFormatDuration, strctFormatRate, strctFormatSi, strctValidationIcon, strctValidationTone, unlockBodyScroll };
|