@akcelik/strct 0.6.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akcelik/strct",
3
- "version": "0.6.0",
3
+ "version": "0.7.1",
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",
@@ -188,6 +188,47 @@ declare class StrctNavItem {
188
188
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctNavItem, "strct-nav-item", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
189
189
  }
190
190
 
191
+ /** Semantic colour for a rail item's count badge. */
192
+ type StrctRailStatus = 'accent' | 'success' | 'warning' | 'critical';
193
+ /** A single entry in a {@link StrctRail}. */
194
+ interface StrctRailItem {
195
+ /** Stable identity, matched against the rail's `activeId`. */
196
+ id: string;
197
+ label: string;
198
+ /** Icon name (see the icon set). */
199
+ icon: string;
200
+ /** Optional count/indicator — e.g. number of active alerts. */
201
+ badge?: string | number;
202
+ /** Badge colour (defaults to `accent`). When collapsed it renders as a dot. */
203
+ badgeStatus?: StrctRailStatus;
204
+ disabled?: boolean;
205
+ }
206
+ /**
207
+ * Collapsible, data-driven primary navigation rail for an application shell.
208
+ * Each item is an icon + label + optional status badge; collapsing shrinks it to
209
+ * an icon-only rail (badges become dots, labels become tooltips).
210
+ *
211
+ * <strct-rail [items]="navItems" [(activeId)]="section" [(collapsed)]="railOff"
212
+ * (select)="go($event)" />
213
+ */
214
+ declare class StrctRail {
215
+ /** Navigation entries. */
216
+ readonly items: _angular_core.InputSignal<StrctRailItem[]>;
217
+ /** Currently-active item id (two-way). */
218
+ readonly activeId: _angular_core.ModelSignal<string | null>;
219
+ /** Collapsed (icon-only) state (two-way). */
220
+ readonly collapsed: _angular_core.ModelSignal<boolean>;
221
+ /** Show the collapse toggle at the foot of the rail. */
222
+ readonly collapsible: _angular_core.InputSignal<boolean>;
223
+ /** Accessible label for the nav landmark. */
224
+ readonly ariaLabel: _angular_core.InputSignal<string>;
225
+ /** Emitted when an item is chosen. */
226
+ readonly select: _angular_core.OutputEmitterRef<StrctRailItem>;
227
+ protected pick(item: StrctRailItem): void;
228
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctRail, never>;
229
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctRail, "strct-rail", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "activeId": { "alias": "activeId"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "activeId": "activeIdChange"; "collapsed": "collapsedChange"; "select": "select"; }, never, never, true, never>;
230
+ }
231
+
191
232
  /**
192
233
  * Authentication layout. Two modes:
193
234
  * - default: a single centered column (drop a card + form inside).
@@ -664,6 +705,46 @@ declare class StrctModal {
664
705
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctModal, "strct-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "hideFooter": { "alias": "hideFooter"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["*", "[strctModalFooter]"], true, never>;
665
706
  }
666
707
 
708
+ /** Marks the drawer's footer action area: `<ng-container strctDrawerFooter>…`. */
709
+ declare class StrctDrawerFooter {
710
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctDrawerFooter, never>;
711
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StrctDrawerFooter, "[strctDrawerFooter]", never, {}, {}, never, never, true, never>;
712
+ }
713
+ /** Which edge the drawer slides in from. */
714
+ type StrctDrawerSide = 'start' | 'end' | 'top' | 'bottom';
715
+ /** Drawer extent along its sliding axis. */
716
+ type StrctDrawerSize = 'sm' | 'md' | 'lg';
717
+ /**
718
+ * Slide-out overlay panel anchored to an edge of the viewport — for inspecting
719
+ * or editing a record without losing the underlying table's scroll/selection.
720
+ *
721
+ * <strct-drawer [(open)]="editing" side="end" title="Virtual machine">
722
+ * … body …
723
+ * <ng-container strctDrawerFooter>
724
+ * <button strct-button (click)="editing.set(false)">Cancel</button>
725
+ * </ng-container>
726
+ * </strct-drawer>
727
+ */
728
+ declare class StrctDrawer {
729
+ /** Open state (two-way). */
730
+ readonly open: _angular_core.ModelSignal<boolean>;
731
+ /** Edge to anchor to. Defaults to `end` (right in LTR). */
732
+ readonly side: _angular_core.InputSignal<StrctDrawerSide>;
733
+ /** Extent along the sliding axis. */
734
+ readonly size: _angular_core.InputSignal<StrctDrawerSize>;
735
+ /** Header title. */
736
+ readonly title: _angular_core.InputSignal<string>;
737
+ /** Show the close button and allow backdrop/Esc dismissal. */
738
+ readonly dismissable: _angular_core.InputSignalWithTransform<boolean, unknown>;
739
+ protected readonly footerDef: _angular_core.Signal<StrctDrawerFooter | undefined>;
740
+ protected readonly hasFooter: _angular_core.Signal<boolean>;
741
+ protected onBackdrop(): void;
742
+ protected onEscape(): void;
743
+ close(): void;
744
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctDrawer, never>;
745
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctDrawer, "strct-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissable": { "alias": "dismissable"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, ["footerDef"], ["*", "[strctDrawerFooter]"], true, never>;
746
+ }
747
+
667
748
  /**
668
749
  * Click-to-open menu:
669
750
  * <strct-dropdown align="end">
@@ -1860,5 +1941,5 @@ declare class StrctToastOutlet {
1860
1941
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctToastOutlet, "strct-toast-outlet", never, {}, {}, never, never, true, never>;
1861
1942
  }
1862
1943
 
1863
- 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, 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, 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 };
1864
- export type { StrctAlertType, StrctAvatarSize, StrctAvatarStatus, StrctBadgeStatus, StrctButtonSize, StrctButtonVariant, StrctCascadeOption, StrctCellContext, StrctChartStatus, StrctChartType, StrctColumn, StrctDatagridColumn, StrctDonutSegment, StrctIconBadge, StrctKnobStatus, StrctMenuItem, StrctMenuOpenOptions, StrctModalSize, StrctMode, StrctOption, StrctOverlayPlacement, StrctPalette, StrctPaletteInfo, StrctProgressStatus, StrctRow, StrctRowId, StrctSignpostPosition, StrctSpeedDialDirection, StrctSpinnerSize, StrctTagStatus, StrctTimelineState, StrctToast, StrctToastOptions, StrctToastType, StrctTooltipPosition, StrctTreeMenuEvent, StrctTreeNodeData, StrctTreeNodeMenuFn };
1944
+ 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 };
1945
+ 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 };