@akcelik/strct 0.8.1 → 0.9.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": "0.8.1",
3
+ "version": "0.9.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",
@@ -1843,6 +1843,44 @@ declare class StrctGauge {
1843
1843
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctGauge, "strct-gauge", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "thickness": { "alias": "thickness"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1844
1844
  }
1845
1845
 
1846
+ /** Accent colour for a metric tile. */
1847
+ type StrctMetricStatus = 'neutral' | 'accent' | 'success' | 'warning' | 'critical';
1848
+ /**
1849
+ * Dense KPI tile: a label, a large value (+ unit), an optional change indicator
1850
+ * and an optional inline sparkline. Built for at-a-glance dashboards.
1851
+ *
1852
+ * <strct-metric-tile label="CPU" [value]="62" unit="%" icon="cpu"
1853
+ * status="warning" [delta]="8" [data]="cpuTrend" />
1854
+ */
1855
+ declare class StrctMetricTile {
1856
+ /** Small caption above the value. */
1857
+ readonly label: _angular_core.InputSignal<string>;
1858
+ /** The headline value. */
1859
+ readonly value: _angular_core.InputSignal<string | number>;
1860
+ /** Unit shown after the value (e.g. `%`, `GB`). */
1861
+ readonly unit: _angular_core.InputSignal<string>;
1862
+ /** Optional leading icon name. */
1863
+ readonly icon: _angular_core.InputSignal<string>;
1864
+ /** Tints the value (defaults to neutral primary text). */
1865
+ readonly status: _angular_core.InputSignal<StrctMetricStatus>;
1866
+ /** Change indicator; sign drives the arrow + colour. Null hides it. */
1867
+ readonly delta: _angular_core.InputSignal<number | null>;
1868
+ /** Suffix for the delta number. */
1869
+ readonly deltaSuffix: _angular_core.InputSignal<string>;
1870
+ /** Treat a positive delta as bad (e.g. error rate, latency). */
1871
+ readonly invertDelta: _angular_core.InputSignalWithTransform<boolean, unknown>;
1872
+ /** Small sub-text under the value (e.g. "of 256 GB"). */
1873
+ readonly caption: _angular_core.InputSignal<string>;
1874
+ /** Sparkline series; empty hides the chart. */
1875
+ readonly data: _angular_core.InputSignal<number[]>;
1876
+ protected readonly hasDelta: _angular_core.Signal<boolean>;
1877
+ protected readonly absDelta: _angular_core.Signal<number>;
1878
+ protected readonly deltaTone: _angular_core.Signal<"flat" | "up" | "down">;
1879
+ protected readonly sparkStatus: _angular_core.Signal<StrctChartStatus>;
1880
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctMetricTile, never>;
1881
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctMetricTile, "strct-metric-tile", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "delta": { "alias": "delta"; "required": false; "isSignal": true; }; "deltaSuffix": { "alias": "deltaSuffix"; "required": false; "isSignal": true; }; "invertDelta": { "alias": "invertDelta"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1882
+ }
1883
+
1846
1884
  /** Alert visual types. */
1847
1885
  type StrctAlertType = 'info' | 'success' | 'warning' | 'critical';
1848
1886
  /** Inline contextual banner. `<strct-alert type="warning">…</strct-alert>`. */
@@ -1947,5 +1985,31 @@ declare class StrctToastOutlet {
1947
1985
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctToastOutlet, "strct-toast-outlet", never, {}, {}, never, never, true, never>;
1948
1986
  }
1949
1987
 
1950
- export { STRCT_ICONS, STRCT_ICON_GROUPS, STRCT_MASKS, STRCT_PALETTES, STRCT_RAW_ICONS, StrctAccordion, StrctAccordionPanel, StrctAlert, StrctAvatar, StrctBadge, StrctBreadcrumb, StrctBreadcrumbItem, StrctButton, StrctButtonGroup, StrctCard, StrctCardBlock, StrctCardFooter, StrctCardHeader, StrctCascadeHost, StrctCascadeNode, StrctCascadeSelect, StrctCellDef, StrctChart, StrctCheckbox, StrctChips, StrctColorPicker, StrctCombobox, StrctContextMenu, StrctContextMenuTrigger, StrctDatagrid, StrctDatagridActionBar, StrctDatepicker, StrctDivider, StrctDonut, StrctDrawer, StrctDrawerFooter, StrctDropdown, StrctDropdownDivider, StrctDropdownItem, StrctField, StrctFile, StrctFooter, StrctGauge, StrctHeader, StrctIcon, StrctInput, StrctInputMask, StrctInputOtp, StrctKnob, StrctLogin, StrctMenuPanel, StrctMenuService, StrctModal, StrctNav, StrctNavItem, StrctOverlay, StrctPagination, StrctPassword, StrctProgress, StrctRadio, StrctRadioGroup, StrctRail, StrctRange, StrctRating, StrctRowDetailDef, StrctShell, StrctShellService, StrctSignpost, StrctSkeleton, StrctSparkline, StrctSpeedDial, StrctSpinner, StrctStack, StrctStackItem, StrctStep, StrctSubmenu, StrctTab, StrctTable, StrctTabs, StrctTag, StrctThemeService, StrctThemeSwitcher, StrctTimeline, StrctTimelineItem, StrctToastOutlet, StrctToastService, StrctToggle, StrctTooltip, StrctTree, StrctTreeNode, StrctVerticalNav, StrctWizard, registerStrctIcon };
1951
- export type { StrctAlertType, StrctAvatarSize, StrctAvatarStatus, StrctBadgeStatus, StrctButtonSize, StrctButtonVariant, StrctCascadeOption, StrctCellContext, StrctChartStatus, StrctChartType, StrctColumn, StrctDatagridColumn, StrctDonutSegment, StrctDrawerSide, StrctDrawerSize, StrctIconBadge, StrctKnobStatus, StrctMenuItem, StrctMenuOpenOptions, StrctModalSize, StrctMode, StrctOption, StrctOverlayPlacement, StrctPalette, StrctPaletteInfo, StrctProgressStatus, StrctRailItem, StrctRailStatus, StrctRow, StrctRowId, StrctSignpostPosition, StrctSpeedDialDirection, StrctSpinnerSize, StrctTagStatus, StrctTimelineState, StrctToast, StrctToastOptions, StrctToastType, StrctTooltipPosition, StrctTreeMenuEvent, StrctTreeNodeData, StrctTreeNodeMenuFn };
1988
+ /** Preset zero/permission/error states with a sensible icon + tone. */
1989
+ type StrctEmptyVariant = 'empty' | 'denied' | 'error' | 'notfound';
1990
+ /**
1991
+ * A centered empty / permission / error state — an icon, a title, an optional
1992
+ * description and a slot for call-to-action buttons. Project actions as children.
1993
+ *
1994
+ * <strct-empty-state variant="denied" title="Insufficient privileges"
1995
+ * description="You don't have access to this cluster.">
1996
+ * <button strct-button variant="primary">Request access</button>
1997
+ * </strct-empty-state>
1998
+ */
1999
+ declare class StrctEmptyState {
2000
+ /** Preset that supplies a default icon + tone. */
2001
+ readonly variant: _angular_core.InputSignal<StrctEmptyVariant>;
2002
+ /** Override the preset icon. */
2003
+ readonly icon: _angular_core.InputSignal<string>;
2004
+ /** Override the preset tone (neutral / warning / critical / accent). */
2005
+ readonly tone: _angular_core.InputSignal<string>;
2006
+ readonly title: _angular_core.InputSignal<string>;
2007
+ readonly description: _angular_core.InputSignal<string>;
2008
+ protected readonly resolvedIcon: _angular_core.Signal<string>;
2009
+ protected readonly toneClass: _angular_core.Signal<string>;
2010
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctEmptyState, never>;
2011
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctEmptyState, "strct-empty-state", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
2012
+ }
2013
+
2014
+ export { STRCT_ICONS, STRCT_ICON_GROUPS, STRCT_MASKS, STRCT_PALETTES, STRCT_RAW_ICONS, StrctAccordion, StrctAccordionPanel, StrctAlert, StrctAvatar, StrctBadge, StrctBreadcrumb, StrctBreadcrumbItem, StrctButton, StrctButtonGroup, StrctCard, StrctCardBlock, StrctCardFooter, StrctCardHeader, StrctCascadeHost, StrctCascadeNode, StrctCascadeSelect, StrctCellDef, StrctChart, StrctCheckbox, StrctChips, StrctColorPicker, StrctCombobox, StrctContextMenu, StrctContextMenuTrigger, StrctDatagrid, StrctDatagridActionBar, StrctDatepicker, StrctDivider, StrctDonut, StrctDrawer, StrctDrawerFooter, StrctDropdown, StrctDropdownDivider, StrctDropdownItem, StrctEmptyState, StrctField, StrctFile, StrctFooter, StrctGauge, StrctHeader, StrctIcon, StrctInput, StrctInputMask, StrctInputOtp, StrctKnob, StrctLogin, StrctMenuPanel, StrctMenuService, StrctMetricTile, StrctModal, StrctNav, StrctNavItem, StrctOverlay, StrctPagination, StrctPassword, StrctProgress, StrctRadio, StrctRadioGroup, StrctRail, StrctRange, StrctRating, StrctRowDetailDef, StrctShell, StrctShellService, StrctSignpost, StrctSkeleton, StrctSparkline, StrctSpeedDial, StrctSpinner, StrctStack, StrctStackItem, StrctStep, StrctSubmenu, StrctTab, StrctTable, StrctTabs, StrctTag, StrctThemeService, StrctThemeSwitcher, StrctTimeline, StrctTimelineItem, StrctToastOutlet, StrctToastService, StrctToggle, StrctTooltip, StrctTree, StrctTreeNode, StrctVerticalNav, StrctWizard, registerStrctIcon };
2015
+ export type { StrctAlertType, StrctAvatarSize, StrctAvatarStatus, StrctBadgeStatus, StrctButtonSize, StrctButtonVariant, StrctCascadeOption, StrctCellContext, StrctChartStatus, StrctChartType, StrctColumn, StrctDatagridColumn, StrctDonutSegment, StrctDrawerSide, StrctDrawerSize, StrctEmptyVariant, StrctIconBadge, StrctKnobStatus, StrctMenuItem, StrctMenuOpenOptions, StrctMetricStatus, StrctModalSize, StrctMode, StrctOption, StrctOverlayPlacement, StrctPalette, StrctPaletteInfo, StrctProgressStatus, StrctRailItem, StrctRailStatus, StrctRow, StrctRowId, StrctSignpostPosition, StrctSpeedDialDirection, StrctSpinnerSize, StrctTagStatus, StrctTimelineState, StrctToast, StrctToastOptions, StrctToastType, StrctTooltipPosition, StrctTreeMenuEvent, StrctTreeNodeData, StrctTreeNodeMenuFn };