@akcelik/strct 5.2.0 → 5.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": "5.2.0",
3
+ "version": "5.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",
@@ -49,6 +49,15 @@
49
49
  }
50
50
 
51
51
  // Native <select> gets a custom chevron.
52
+ /* FR-49-10 — a PEM block, a key=value mapping or an id reads as code: the
53
+ mono face, with the tabular figures the rest of the library uses for data.
54
+ `mono` on the directive sets it; the class is there for a control the
55
+ directive does not own. */
56
+ .strct-control--mono {
57
+ font-family: var(--mono);
58
+ font-variant-numeric: tabular-nums;
59
+ }
60
+
52
61
  select.strct-control {
53
62
  appearance: none;
54
63
  padding-inline-end: 30px;
@@ -2598,6 +2598,15 @@ declare class StrctFieldHint {
2598
2598
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctFieldHint, never>;
2599
2599
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StrctFieldHint, "ng-template[strctFieldHint]", never, {}, {}, never, never, true, never>;
2600
2600
  }
2601
+ /**
2602
+ * A value that is read-only *here* — a name, a badge, a switch that only shows
2603
+ * state — placed in an inline field's control column. Without it the text sits
2604
+ * 9px above the label's line, because the column centres on a 34px control.
2605
+ */
2606
+ declare class StrctFieldValue {
2607
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctFieldValue, never>;
2608
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StrctFieldValue, "[strctFieldValue]", never, {}, {}, never, never, true, never>;
2609
+ }
2601
2610
  /**
2602
2611
  * Wrapper that opts a run of `layout="inline"` fields out of the hairlines
2603
2612
  * between them — for settings that belong together and should read as one
@@ -2677,10 +2686,15 @@ declare class StrctField {
2677
2686
  * <select strctInput>…</select>
2678
2687
  * The visual definition lives in `strct/styles/_forms.scss` (shipped via the
2679
2688
  * theme entry point), so this directive only attaches the class.
2689
+ *
2690
+ * `mono` sets the monospace face, for a PEM block, a `key=value` mapping or an
2691
+ * identifier — the three things consumers were restyling by hand.
2680
2692
  */
2681
2693
  declare class StrctInput {
2694
+ /** Monospace text with tabular figures — a PEM block, an id, a mapping. */
2695
+ readonly mono: _angular_core.InputSignalWithTransform<boolean, unknown>;
2682
2696
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctInput, never>;
2683
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StrctInput, "input[strctInput], textarea[strctInput], select[strctInput], input[strct-input], textarea[strct-input], select[strct-input]", never, {}, {}, never, never, true, never>;
2697
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StrctInput, "input[strctInput], textarea[strctInput], select[strctInput], input[strct-input], textarea[strct-input], select[strct-input]", never, { "mono": { "alias": "mono"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2684
2698
  }
2685
2699
 
2686
2700
  /**
@@ -2895,6 +2909,13 @@ declare class StrctRange implements ControlValueAccessor {
2895
2909
  readonly step: _angular_core.InputSignal<number>;
2896
2910
  /** Display the current numeric value. */
2897
2911
  readonly showValue: _angular_core.InputSignalWithTransform<boolean, unknown>;
2912
+ /**
2913
+ * How the shown value reads: memory is "4 GB" and a weight is "20%", not 4
2914
+ * and 20. It formats the label only — the model stays the number.
2915
+ */
2916
+ readonly valueFormat: _angular_core.InputSignal<((value: number) => string) | null>;
2917
+ /** What `showValue` prints: the format, or the number itself. */
2918
+ protected readonly valueText: _angular_core.Signal<string>;
2898
2919
  /** Static disable; forms' setDisabledState also drives the disabled state. */
2899
2920
  readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
2900
2921
  readonly value: _angular_core.WritableSignal<number>;
@@ -2910,7 +2931,7 @@ declare class StrctRange implements ControlValueAccessor {
2910
2931
  registerOnTouched(fn: () => void): void;
2911
2932
  setDisabledState(isDisabled: boolean): void;
2912
2933
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctRange, never>;
2913
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctRange, "strct-range", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2934
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctRange, "strct-range", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2914
2935
  }
2915
2936
 
2916
2937
  /**
@@ -5213,6 +5234,11 @@ declare class StrctHero {
5213
5234
 
5214
5235
  /** Alert visual types. */
5215
5236
  type StrctAlertType = 'info' | 'success' | 'warning' | 'critical';
5237
+ /** Controls at the alert's end — the fix the alert is about. */
5238
+ declare class StrctAlertActions {
5239
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctAlertActions, never>;
5240
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StrctAlertActions, "[strctAlertActions]", never, {}, {}, never, never, true, never>;
5241
+ }
5216
5242
  /** Inline contextual banner. `<strct-alert type="warning">…</strct-alert>`. */
5217
5243
  declare class StrctAlert {
5218
5244
  private readonly hostEl;
@@ -5234,7 +5260,7 @@ declare class StrctAlert {
5234
5260
  protected readonly iconName: _angular_core.Signal<string>;
5235
5261
  private readonly derivedIcon;
5236
5262
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctAlert, never>;
5237
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctAlert, "strct-alert", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "dismissLabel": { "alias": "dismissLabel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
5263
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctAlert, "strct-alert", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "dismissLabel": { "alias": "dismissLabel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["[strctAlertActions]", "*"], true, never>;
5238
5264
  }
5239
5265
 
5240
5266
  /** Tooltip placement relative to the host element. */
@@ -6848,6 +6874,11 @@ declare class StrctNumber implements ControlValueAccessor {
6848
6874
  readonly step: _angular_core.InputSignal<number>;
6849
6875
  /** Placeholder text when empty. */
6850
6876
  readonly placeholder: _angular_core.InputSignal<string>;
6877
+ /**
6878
+ * The field's accessible name, for a number that is not inside a
6879
+ * `strct-field` — in a grid cell, or beside a label it does not own.
6880
+ */
6881
+ readonly ariaLabel: _angular_core.InputSignal<string>;
6851
6882
  /** Accessible label of the + button (localizable). */
6852
6883
  readonly incrementLabel: _angular_core.InputSignal<string>;
6853
6884
  /** Accessible label of the − button (localizable). */
@@ -6881,7 +6912,7 @@ declare class StrctNumber implements ControlValueAccessor {
6881
6912
  registerOnTouched(fn: () => void): void;
6882
6913
  setDisabledState(isDisabled: boolean): void;
6883
6914
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctNumber, never>;
6884
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctNumber, "strct-number", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "incrementLabel": { "alias": "incrementLabel"; "required": false; "isSignal": true; }; "decrementLabel": { "alias": "decrementLabel"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
6915
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctNumber, "strct-number", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "incrementLabel": { "alias": "incrementLabel"; "required": false; "isSignal": true; }; "decrementLabel": { "alias": "decrementLabel"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
6885
6916
  }
6886
6917
 
6887
6918
  /**
@@ -7460,5 +7491,5 @@ declare function strctCheckHostInputs(host: HTMLElement, selector: string, owns:
7460
7491
  */
7461
7492
  declare function strctCheckHostDisplay(host: HTMLElement, selector: string, expected: string): void;
7462
7493
 
7463
- 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, StrctCardHeaderActions, StrctCardHeaderLeading, StrctCardHeaderMeta, StrctCardHeaderNote, StrctCascadeColumn, StrctCascadeHost, StrctCascadeSelect, StrctCellDef, StrctCellStatus, StrctChange, StrctChart, StrctChatAttachment, StrctChatComposer, StrctChatMessage, StrctChatThread, StrctCheckbox, StrctChips, StrctCode, StrctCodeInline, StrctColorPicker, StrctCombobox, StrctCommandPalette, StrctConfirmOutlet, StrctConfirmService, StrctContextMenu, StrctContextMenuTrigger, StrctControlDescription, StrctCopy, StrctDatagrid, StrctDatagridActionBar, StrctDatagridActionBarCaption, StrctDatepicker, StrctDatetimePicker, StrctDesc, StrctDescriptionList, StrctDiff, StrctDivider, StrctDonut, StrctDrawer, StrctDrawerFooter, StrctDropdown, StrctDropdownDivider, StrctDropdownItem, StrctDropdownItemAction, StrctDropdownTrigger, StrctDurationPipe, StrctEmptyState, StrctField, StrctFieldGroup, StrctFieldHint, StrctFieldPrefix, StrctFieldSuffix, StrctFile, StrctFilterBar, StrctFlow, StrctFlowNodeTemplate, StrctFooter, StrctGauge, StrctHeader, StrctHeatmap, StrctHero, StrctHotkeysHelp, StrctHotkeysService, StrctIcon, StrctInlineEdit, StrctInput, StrctInputMask, StrctInputOtp, StrctKbd, StrctKnob, StrctLegend, StrctList, StrctListItem, StrctListItemDescription, StrctListItemLeading, StrctListItemMeta, StrctListItemTrailing, StrctLiveIndicator, StrctLogViewer, StrctLogin, StrctMediaFrame, StrctMenuPanel, StrctMenuService, StrctMenubar, StrctMetricTile, StrctModal, StrctModalContent, StrctNav, StrctNavItem, StrctNotificationCenter, StrctNumber, StrctOverlay, StrctPageHeader, StrctPageHeaderActions, StrctPageHeaderCrumbs, StrctPageHeaderTitleMeta, StrctPagination, StrctPassword, StrctPopover, StrctPopoverTrigger, StrctProgress, StrctQr, StrctRadio, StrctRadioGroup, StrctRail, StrctRange, StrctRatePipe, StrctRating, StrctReorder, StrctReorderGroup, StrctReorderHandle, StrctReorderItem, StrctResizeHandle, StrctRowDetailDef, StrctSearchbox, StrctSectionHeader, StrctSectionHeaderActions, StrctSectionHeaderMeta, StrctSectionMenu, StrctSegmented, StrctSelect, StrctShell, StrctShellService, StrctSiPipe, StrctSignpost, StrctSignpostTrigger, StrctSkeleton, StrctSparkline, StrctSpeedDial, StrctSpinner, StrctSplitButton, StrctSplitter, StrctStack, StrctStackItem, StrctStatusDot, StrctStep, StrctStepAction, StrctSteps, StrctSubmenu, StrctTab, StrctTable, StrctTabs, StrctTag, StrctTagLeading, StrctThemeService, StrctThemeSwitcher, StrctTimeRangePicker, StrctTimeline, StrctTimelineItem, StrctToastOutlet, StrctToastService, StrctToggle, StrctToolbar, StrctToolbarCaption, StrctToolbarSpacer, StrctTooltip, StrctTour, StrctTransfer, StrctTree, StrctTreeNode, StrctTreeSelect, StrctVerticalNav, StrctWatermark, StrctWindow, StrctWindowDock, StrctWindowService, StrctWizard, StrctWizardAside, __qrInternals, focusFirstIn, keepTabInside, lockBodyScroll, parseAnsi, provideStrctWizardDefaults, registerStrctIcon, restoreFocus, saveFocusedElement, strctCheckHostDisplay, strctCheckHostInputs, strctComputeDiff, strctDpPad, strctFormatBytes, strctFormatDuration, strctFormatRate, strctFormatSi, strctQrMatrix, strctValidationIcon, strctValidationTone, unlockBodyScroll };
7494
+ 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, StrctAlertActions, StrctAnnouncer, StrctAvatar, StrctBadge, StrctBreadcrumb, StrctBreadcrumbItem, StrctButton, StrctButtonGroup, StrctBytesPipe, StrctCard, StrctCardBlock, StrctCardFooter, StrctCardHeader, StrctCardHeaderActions, StrctCardHeaderLeading, StrctCardHeaderMeta, StrctCardHeaderNote, StrctCascadeColumn, StrctCascadeHost, StrctCascadeSelect, StrctCellDef, StrctCellStatus, StrctChange, StrctChart, StrctChatAttachment, StrctChatComposer, StrctChatMessage, StrctChatThread, StrctCheckbox, StrctChips, StrctCode, StrctCodeInline, StrctColorPicker, StrctCombobox, StrctCommandPalette, StrctConfirmOutlet, StrctConfirmService, StrctContextMenu, StrctContextMenuTrigger, StrctControlDescription, StrctCopy, StrctDatagrid, StrctDatagridActionBar, StrctDatagridActionBarCaption, StrctDatepicker, StrctDatetimePicker, StrctDesc, StrctDescriptionList, StrctDiff, StrctDivider, StrctDonut, StrctDrawer, StrctDrawerFooter, StrctDropdown, StrctDropdownDivider, StrctDropdownItem, StrctDropdownItemAction, StrctDropdownTrigger, StrctDurationPipe, StrctEmptyState, StrctField, StrctFieldGroup, StrctFieldHint, StrctFieldPrefix, StrctFieldSuffix, StrctFieldValue, StrctFile, StrctFilterBar, StrctFlow, StrctFlowNodeTemplate, StrctFooter, StrctGauge, StrctHeader, StrctHeatmap, StrctHero, StrctHotkeysHelp, StrctHotkeysService, StrctIcon, StrctInlineEdit, StrctInput, StrctInputMask, StrctInputOtp, StrctKbd, StrctKnob, StrctLegend, StrctList, StrctListItem, StrctListItemDescription, StrctListItemLeading, StrctListItemMeta, StrctListItemTrailing, StrctLiveIndicator, StrctLogViewer, StrctLogin, StrctMediaFrame, StrctMenuPanel, StrctMenuService, StrctMenubar, StrctMetricTile, StrctModal, StrctModalContent, StrctNav, StrctNavItem, StrctNotificationCenter, StrctNumber, StrctOverlay, StrctPageHeader, StrctPageHeaderActions, StrctPageHeaderCrumbs, StrctPageHeaderTitleMeta, StrctPagination, StrctPassword, StrctPopover, StrctPopoverTrigger, StrctProgress, StrctQr, StrctRadio, StrctRadioGroup, StrctRail, StrctRange, StrctRatePipe, StrctRating, StrctReorder, StrctReorderGroup, StrctReorderHandle, StrctReorderItem, StrctResizeHandle, StrctRowDetailDef, StrctSearchbox, StrctSectionHeader, StrctSectionHeaderActions, StrctSectionHeaderMeta, StrctSectionMenu, StrctSegmented, StrctSelect, StrctShell, StrctShellService, StrctSiPipe, StrctSignpost, StrctSignpostTrigger, StrctSkeleton, StrctSparkline, StrctSpeedDial, StrctSpinner, StrctSplitButton, StrctSplitter, StrctStack, StrctStackItem, StrctStatusDot, StrctStep, StrctStepAction, StrctSteps, StrctSubmenu, StrctTab, StrctTable, StrctTabs, StrctTag, StrctTagLeading, StrctThemeService, StrctThemeSwitcher, StrctTimeRangePicker, StrctTimeline, StrctTimelineItem, StrctToastOutlet, StrctToastService, StrctToggle, StrctToolbar, StrctToolbarCaption, StrctToolbarSpacer, StrctTooltip, StrctTour, StrctTransfer, StrctTree, StrctTreeNode, StrctTreeSelect, StrctVerticalNav, StrctWatermark, StrctWindow, StrctWindowDock, StrctWindowService, StrctWizard, StrctWizardAside, __qrInternals, focusFirstIn, keepTabInside, lockBodyScroll, parseAnsi, provideStrctWizardDefaults, registerStrctIcon, restoreFocus, saveFocusedElement, strctCheckHostDisplay, strctCheckHostInputs, strctComputeDiff, strctDpPad, strctFormatBytes, strctFormatDuration, strctFormatRate, strctFormatSi, strctQrMatrix, strctValidationIcon, strctValidationTone, unlockBodyScroll };
7464
7495
  export type { StrctAlertType, StrctAvatarSize, StrctAvatarStatus, StrctBadgeStatus, StrctButtonSize, StrctButtonVariant, StrctCascadeOption, StrctCellContext, StrctChartAnnotation, StrctChartColor, StrctChartCurve, StrctChartSeries, StrctChartSlot, StrctChartStatus, StrctChartSummaryInfo, StrctChartThreshold, StrctChartType, StrctChatAuthor, StrctColumn, StrctCommandItem, StrctConfirmOptions, StrctConfirmTone, StrctDatagridColumn, StrctDatagridColumnState, StrctDatagridFilters, StrctDatagridLabels, StrctDatagridLazyState, StrctDescAlign, StrctDescItem, StrctDiffRow, StrctDonutSegment, StrctDrawerSide, StrctDrawerSize, StrctEmptyVariant, StrctFilterChip, StrctFlowDirection, StrctFlowEdge, StrctFlowNode, StrctFlowOrientation, StrctHeatmapCell, StrctHeatmapSummaryInfo, StrctHotkey, StrctIconBadge, StrctIconName, StrctKnobStatus, StrctLegendItem, StrctLiveLabels, StrctLiveState, StrctLogLine, StrctMediaState, StrctMenuItem, StrctMenuLink, StrctMenuOpenOptions, StrctMenuPlacement, StrctMenuSection, StrctMenubarItem, StrctMetricStatus, StrctModalSize, StrctMode, StrctNotification, StrctOption, StrctOverlayPlacement, StrctPalette, StrctPaletteInfo, StrctProgressSegment, StrctProgressStatus, StrctQrEcc, StrctRailItem, StrctRailStatus, StrctReorderEvent, StrctReorderMoveEvent, StrctRow, StrctRowId, StrctSegmentedOption, StrctSegmentedSize, StrctSignpostPosition, StrctSpeedDialDirection, StrctSpinnerSize, StrctStatus, StrctStatusDotSize, StrctStepPhase, StrctStepState, StrctStepsLabels, StrctTagStatus, StrctThresholds, StrctTimeRange, StrctTimeRangePreset, StrctTimelineState, StrctToast, StrctToastOptions, StrctToastType, StrctTooltipPosition, StrctTourStep, StrctTransferItem, StrctTreeDropEvent, StrctTreeMenuEvent, StrctTreeNodeData, StrctTreeNodeMenuFn, StrctValidationState, StrctValidationStatus, StrctWindowBounds, StrctWindowLabels, StrctWizardDefaults };