@akcelik/strct 1.13.0 → 1.14.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/akcelik-strct.mjs +249 -86
- package/fesm2022/akcelik-strct.mjs.map +1 -1
- package/package.json +1 -1
- package/types/akcelik-strct.d.ts +51 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akcelik/strct",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.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
|
@@ -1309,10 +1309,12 @@ declare class StrctSubmenu {
|
|
|
1309
1309
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctSubmenu, "strct-submenu", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, ["[strctSubmenuLabel]", "*"], true, never>;
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
|
-
/** A single wizard step. `label` names it in the step header. */
|
|
1312
|
+
/** A single wizard step. `label` names it in the step header / rail. */
|
|
1313
1313
|
declare class StrctStep {
|
|
1314
1314
|
/** Label text. */
|
|
1315
1315
|
readonly label: _angular_core.InputSignal<string>;
|
|
1316
|
+
/** Rail sublabel (vertical mode; shown while the step is active). */
|
|
1317
|
+
readonly description: _angular_core.InputSignal<string>;
|
|
1316
1318
|
/** When false, the wizard's Next / Finish is disabled on this step. */
|
|
1317
1319
|
readonly canAdvance: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1318
1320
|
private readonly _active;
|
|
@@ -1320,17 +1322,54 @@ declare class StrctStep {
|
|
|
1320
1322
|
/** @internal */
|
|
1321
1323
|
setActive(value: boolean): void;
|
|
1322
1324
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctStep, never>;
|
|
1323
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctStep, "strct-step", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "canAdvance": { "alias": "canAdvance"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1325
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctStep, "strct-step", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "canAdvance": { "alias": "canAdvance"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1326
|
+
}
|
|
1327
|
+
/** Marks the live-summary column projected beside a vertical wizard. */
|
|
1328
|
+
declare class StrctWizardAside {
|
|
1329
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctWizardAside, never>;
|
|
1330
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StrctWizardAside, "[strctWizardAside]", never, {}, {}, never, never, true, never>;
|
|
1324
1331
|
}
|
|
1325
|
-
/**
|
|
1332
|
+
/**
|
|
1333
|
+
* Multi-step flow with Back / Next / Finish controls.
|
|
1334
|
+
*
|
|
1335
|
+
* Default: a numbered horizontal header. With `vertical`, steps become a left
|
|
1336
|
+
* rail — dashed-ring states (idle ⊙ / active ●⊙ / done ✓), a progress bar
|
|
1337
|
+
* with an “n/N” counter, and click-back navigation to visited steps — plus an
|
|
1338
|
+
* optional right column projected via `strctWizardAside` (live summaries).
|
|
1339
|
+
* The rail never flips horizontal: under ~720px of component width it
|
|
1340
|
+
* collapses to a compact vertical ring column (container query).
|
|
1341
|
+
*
|
|
1342
|
+
* <strct-wizard vertical title="Create virtual machine">
|
|
1343
|
+
* <strct-step label="Identity" description="Name, environment">…</strct-step>
|
|
1344
|
+
* …
|
|
1345
|
+
* <aside strctWizardAside>…live summary…</aside>
|
|
1346
|
+
* </strct-wizard>
|
|
1347
|
+
*/
|
|
1326
1348
|
declare class StrctWizard {
|
|
1327
1349
|
readonly steps: _angular_core.Signal<readonly StrctStep[]>;
|
|
1350
|
+
protected readonly asideDef: _angular_core.Signal<StrctWizardAside | undefined>;
|
|
1328
1351
|
readonly current: _angular_core.ModelSignal<number>;
|
|
1352
|
+
/**
|
|
1353
|
+
* Vertical mode: steps become a left rail with dashed-ring states, a
|
|
1354
|
+
* progress bar and click-back navigation; `strctWizardAside` projects a
|
|
1355
|
+
* right column. The rail collapses to a compact vertical ring column under
|
|
1356
|
+
* ~720px of component width — it never flips horizontal.
|
|
1357
|
+
*/
|
|
1358
|
+
readonly vertical: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1359
|
+
/** Rail heading shown above the progress bar (vertical mode). */
|
|
1360
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
1329
1361
|
/** Label for the final-step button (default "Finish"). */
|
|
1330
1362
|
readonly finishLabel: _angular_core.InputSignal<string>;
|
|
1331
|
-
/** Labels for the Back / Next buttons (localizable). */
|
|
1363
|
+
/** Labels for the Back / Next / Cancel buttons (localizable). */
|
|
1332
1364
|
readonly backLabel: _angular_core.InputSignal<string>;
|
|
1333
1365
|
readonly nextLabel: _angular_core.InputSignal<string>;
|
|
1366
|
+
readonly cancelLabel: _angular_core.InputSignal<string>;
|
|
1367
|
+
/** Busy label while `submitting` (localizable). */
|
|
1368
|
+
readonly submittingLabel: _angular_core.InputSignal<string>;
|
|
1369
|
+
/** Counter suffix in the rail: "2/5 {progressLabel}". */
|
|
1370
|
+
readonly progressLabel: _angular_core.InputSignal<string>;
|
|
1371
|
+
/** Accessible name of the vertical step rail. */
|
|
1372
|
+
readonly stepsLabel: _angular_core.InputSignal<string>;
|
|
1334
1373
|
/** Disable Finish and show a busy label while an async submit is in flight. */
|
|
1335
1374
|
readonly submitting: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1336
1375
|
/** Show a Cancel button on the left. */
|
|
@@ -1339,17 +1378,22 @@ declare class StrctWizard {
|
|
|
1339
1378
|
readonly finished: _angular_core.OutputEmitterRef<void>;
|
|
1340
1379
|
/** Emitted when the user clicks Cancel. */
|
|
1341
1380
|
readonly cancelled: _angular_core.OutputEmitterRef<void>;
|
|
1342
|
-
/** Emits the new step index after a Back / Next move. */
|
|
1381
|
+
/** Emits the new step index after a Back / Next / rail move. */
|
|
1343
1382
|
readonly stepChange: _angular_core.OutputEmitterRef<number>;
|
|
1383
|
+
/** Furthest step reached — drives the progress bar and rail clickability. */
|
|
1384
|
+
protected readonly maxVisited: _angular_core.WritableSignal<number>;
|
|
1385
|
+
protected readonly progressPct: _angular_core.Signal<number>;
|
|
1344
1386
|
protected readonly isLast: _angular_core.Signal<boolean>;
|
|
1345
1387
|
/** Whether the current step permits advancing (its `canAdvance`). */
|
|
1346
1388
|
protected readonly canAdvance: _angular_core.Signal<boolean>;
|
|
1347
1389
|
constructor();
|
|
1348
1390
|
next(): void;
|
|
1349
1391
|
back(): void;
|
|
1392
|
+
/** Jump to a visited step (rail click). Forward moves still go through Next. */
|
|
1393
|
+
goTo(index: number): void;
|
|
1350
1394
|
finish(): void;
|
|
1351
1395
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctWizard, never>;
|
|
1352
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctWizard, "strct-wizard", never, { "current": { "alias": "current"; "required": false; "isSignal": true; }; "finishLabel": { "alias": "finishLabel"; "required": false; "isSignal": true; }; "backLabel": { "alias": "backLabel"; "required": false; "isSignal": true; }; "nextLabel": { "alias": "nextLabel"; "required": false; "isSignal": true; }; "submitting": { "alias": "submitting"; "required": false; "isSignal": true; }; "cancelable": { "alias": "cancelable"; "required": false; "isSignal": true; }; }, { "current": "currentChange"; "finished": "finished"; "cancelled": "cancelled"; "stepChange": "stepChange"; }, ["steps"], ["*"], true, never>;
|
|
1396
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctWizard, "strct-wizard", never, { "current": { "alias": "current"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "finishLabel": { "alias": "finishLabel"; "required": false; "isSignal": true; }; "backLabel": { "alias": "backLabel"; "required": false; "isSignal": true; }; "nextLabel": { "alias": "nextLabel"; "required": false; "isSignal": true; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; "isSignal": true; }; "submittingLabel": { "alias": "submittingLabel"; "required": false; "isSignal": true; }; "progressLabel": { "alias": "progressLabel"; "required": false; "isSignal": true; }; "stepsLabel": { "alias": "stepsLabel"; "required": false; "isSignal": true; }; "submitting": { "alias": "submitting"; "required": false; "isSignal": true; }; "cancelable": { "alias": "cancelable"; "required": false; "isSignal": true; }; }, { "current": "currentChange"; "finished": "finished"; "cancelled": "cancelled"; "stepChange": "stepChange"; }, ["steps", "asideDef"], ["*", "[strctWizardAside]"], true, never>;
|
|
1353
1397
|
}
|
|
1354
1398
|
|
|
1355
1399
|
/**
|
|
@@ -4334,5 +4378,5 @@ declare class StrctReorderItem {
|
|
|
4334
4378
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StrctReorderItem, "[strctReorderItem]", never, {}, {}, never, never, true, never>;
|
|
4335
4379
|
}
|
|
4336
4380
|
|
|
4337
|
-
export { STRCT_ICONS, STRCT_ICON_GROUPS, STRCT_ICON_NAMES, STRCT_MASKS, STRCT_PALETTES, STRCT_RAW_ICONS, STRCT_TIME_RANGE_PRESETS, StrctAccordion, StrctAccordionPanel, StrctAlert, StrctAnnouncer, StrctAvatar, StrctBadge, StrctBreadcrumb, StrctBreadcrumbItem, StrctButton, StrctButtonGroup, StrctBytesPipe, StrctCard, StrctCardBlock, StrctCardFooter, StrctCardHeader, StrctCascadeHost, StrctCascadeNode, StrctCascadeSelect, StrctCellDef, StrctCellStatus, StrctChart, StrctCheckbox, StrctChips, StrctCode, StrctColorPicker, StrctCombobox, StrctCommandPalette, StrctContextMenu, StrctContextMenuTrigger, StrctCopy, StrctDatagrid, StrctDatagridActionBar, StrctDatepicker, StrctDesc, StrctDescriptionList, StrctDiff, StrctDivider, StrctDonut, StrctDrawer, StrctDrawerFooter, StrctDropdown, StrctDropdownDivider, StrctDropdownItem, StrctDropdownTrigger, StrctDurationPipe, StrctEmptyState, StrctField, StrctFile, StrctFilterBar, StrctFlow, StrctFooter, StrctGauge, StrctHeader, StrctHero, StrctHotkeysHelp, StrctHotkeysService, StrctIcon, StrctInput, StrctInputMask, StrctInputOtp, StrctKbd, StrctKnob, StrctLogViewer, StrctLogin, StrctMenuPanel, StrctMenuService, StrctMenubar, StrctMetricTile, StrctModal, StrctNav, StrctNavItem, StrctOverlay, StrctPageHeader, StrctPageHeaderActions, StrctPageHeaderCrumbs, StrctPagination, StrctPassword, StrctProgress, StrctRadio, StrctRadioGroup, StrctRail, StrctRange, StrctRatePipe, StrctRating, StrctReorder, StrctReorderItem, StrctRowDetailDef, StrctSearchbox, StrctSectionMenu, StrctSegmented, StrctShell, StrctShellService, StrctSiPipe, StrctSignpost, StrctSkeleton, StrctSparkline, StrctSpeedDial, StrctSpinner, StrctSplitButton, StrctSplitter, StrctStack, StrctStackItem, StrctStep, StrctSubmenu, StrctTab, StrctTable, StrctTabs, StrctTag, StrctThemeService, StrctThemeSwitcher, StrctTimeRangePicker, StrctTimeline, StrctTimelineItem, StrctToastOutlet, StrctToastService, StrctToggle, StrctTooltip, StrctTour, StrctTransfer, StrctTree, StrctTreeNode, StrctVerticalNav, StrctWatermark, StrctWizard, parseAnsi, registerStrctIcon, strctComputeDiff, strctFormatBytes, strctFormatDuration, strctFormatRate, strctFormatSi, strctValidationIcon, strctValidationTone };
|
|
4381
|
+
export { STRCT_ICONS, STRCT_ICON_GROUPS, STRCT_ICON_NAMES, STRCT_MASKS, STRCT_PALETTES, STRCT_RAW_ICONS, STRCT_TIME_RANGE_PRESETS, StrctAccordion, StrctAccordionPanel, StrctAlert, StrctAnnouncer, StrctAvatar, StrctBadge, StrctBreadcrumb, StrctBreadcrumbItem, StrctButton, StrctButtonGroup, StrctBytesPipe, StrctCard, StrctCardBlock, StrctCardFooter, StrctCardHeader, StrctCascadeHost, StrctCascadeNode, StrctCascadeSelect, StrctCellDef, StrctCellStatus, StrctChart, StrctCheckbox, StrctChips, StrctCode, StrctColorPicker, StrctCombobox, StrctCommandPalette, StrctContextMenu, StrctContextMenuTrigger, StrctCopy, StrctDatagrid, StrctDatagridActionBar, StrctDatepicker, StrctDesc, StrctDescriptionList, StrctDiff, StrctDivider, StrctDonut, StrctDrawer, StrctDrawerFooter, StrctDropdown, StrctDropdownDivider, StrctDropdownItem, StrctDropdownTrigger, StrctDurationPipe, StrctEmptyState, StrctField, StrctFile, StrctFilterBar, StrctFlow, StrctFooter, StrctGauge, StrctHeader, StrctHero, StrctHotkeysHelp, StrctHotkeysService, StrctIcon, StrctInput, StrctInputMask, StrctInputOtp, StrctKbd, StrctKnob, StrctLogViewer, StrctLogin, StrctMenuPanel, StrctMenuService, StrctMenubar, StrctMetricTile, StrctModal, StrctNav, StrctNavItem, StrctOverlay, StrctPageHeader, StrctPageHeaderActions, StrctPageHeaderCrumbs, StrctPagination, StrctPassword, StrctProgress, StrctRadio, StrctRadioGroup, StrctRail, StrctRange, StrctRatePipe, StrctRating, StrctReorder, StrctReorderItem, StrctRowDetailDef, StrctSearchbox, StrctSectionMenu, StrctSegmented, StrctShell, StrctShellService, StrctSiPipe, StrctSignpost, StrctSkeleton, StrctSparkline, StrctSpeedDial, StrctSpinner, StrctSplitButton, StrctSplitter, StrctStack, StrctStackItem, StrctStep, StrctSubmenu, StrctTab, StrctTable, StrctTabs, StrctTag, StrctThemeService, StrctThemeSwitcher, StrctTimeRangePicker, StrctTimeline, StrctTimelineItem, StrctToastOutlet, StrctToastService, StrctToggle, StrctTooltip, StrctTour, StrctTransfer, StrctTree, StrctTreeNode, StrctVerticalNav, StrctWatermark, StrctWizard, StrctWizardAside, parseAnsi, registerStrctIcon, strctComputeDiff, strctFormatBytes, strctFormatDuration, strctFormatRate, strctFormatSi, strctValidationIcon, strctValidationTone };
|
|
4338
4382
|
export type { StrctAlertType, StrctAvatarSize, StrctAvatarStatus, StrctBadgeStatus, StrctButtonSize, StrctButtonVariant, StrctCascadeOption, StrctCellContext, StrctChartAnnotation, StrctChartColor, StrctChartCurve, StrctChartSeries, StrctChartSlot, StrctChartStatus, StrctChartThreshold, StrctChartType, StrctColumn, StrctCommandItem, StrctDatagridColumn, StrctDatagridColumnState, StrctDatagridFilters, StrctDatagridLabels, StrctDatagridLazyState, StrctDescAlign, StrctDescItem, StrctDiffRow, StrctDonutSegment, StrctDrawerSide, StrctDrawerSize, StrctEmptyVariant, StrctFilterChip, StrctFlowDirection, StrctFlowNode, StrctFlowOrientation, StrctHotkey, StrctIconBadge, StrctIconName, StrctKnobStatus, StrctLogLine, StrctMenuItem, StrctMenuLink, StrctMenuOpenOptions, StrctMenuSection, StrctMenubarItem, StrctMetricStatus, StrctModalSize, StrctMode, StrctOption, StrctOverlayPlacement, StrctPalette, StrctPaletteInfo, StrctProgressStatus, StrctRailItem, StrctRailStatus, StrctReorderEvent, StrctRow, StrctRowId, StrctSegmentedOption, StrctSegmentedSize, StrctSignpostPosition, StrctSpeedDialDirection, StrctSpinnerSize, StrctStatus, StrctTagStatus, StrctThresholds, StrctTimeRange, StrctTimeRangePreset, StrctTimelineState, StrctToast, StrctToastOptions, StrctToastType, StrctTooltipPosition, StrctTourStep, StrctTransferItem, StrctTreeMenuEvent, StrctTreeNodeData, StrctTreeNodeMenuFn, StrctValidationState, StrctValidationStatus };
|