@akcelik/strct 1.15.0 → 1.18.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": "1.15.0",
3
+ "version": "1.18.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",
@@ -1107,6 +1107,13 @@ declare class StrctModal {
1107
1107
  readonly size: _angular_core.InputSignal<StrctModalSize>;
1108
1108
  /** Hide the footer slot. */
1109
1109
  readonly hideFooter: _angular_core.InputSignalWithTransform<boolean, unknown>;
1110
+ /**
1111
+ * Wizard-hosting mode: no head, no body padding, no footer — the projected
1112
+ * content (a `flush` vertical wizard) is the dialog surface. `title` still
1113
+ * names the dialog for assistive tech; backdrop/Escape dismissal follow
1114
+ * `dismissible` as usual.
1115
+ */
1116
+ readonly chromeless: _angular_core.InputSignalWithTransform<boolean, unknown>;
1110
1117
  /** Accessible label of the X close button (localizable). */
1111
1118
  readonly closeLabel: _angular_core.InputSignal<string>;
1112
1119
  /**
@@ -1149,7 +1156,7 @@ declare class StrctModal {
1149
1156
  private focusable;
1150
1157
  private focusInitial;
1151
1158
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctModal, never>;
1152
- 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; }; "closeLabel": { "alias": "closeLabel"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["*", "[strctModalFooter]"], true, never>;
1159
+ 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; }; "chromeless": { "alias": "chromeless"; "required": false; "isSignal": true; }; "closeLabel": { "alias": "closeLabel"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["*", "[strctModalFooter]"], true, never>;
1153
1160
  }
1154
1161
 
1155
1162
  /** Marks the drawer's footer action area: `<ng-container strctDrawerFooter>…`. */
@@ -1351,7 +1358,7 @@ declare function provideStrctWizardDefaults(defaults: StrctWizardDefaults): Prov
1351
1358
  * rail — dashed-ring states (idle ⊙ / active ●⊙ / done ✓), a progress bar
1352
1359
  * with an “n/N” counter, and click-back navigation to visited steps — plus an
1353
1360
  * optional right column projected via `strctWizardAside` (live summaries).
1354
- * The rail never flips horizontal: under ~720px of component width it
1361
+ * The rail never flips horizontal: under ~700px of component width it
1355
1362
  * collapses to a compact vertical ring column (container query).
1356
1363
  *
1357
1364
  * <strct-wizard vertical title="Create virtual machine">
@@ -1359,6 +1366,11 @@ declare function provideStrctWizardDefaults(defaults: StrctWizardDefaults): Prov
1359
1366
  * …
1360
1367
  * <aside strctWizardAside>…live summary…</aside>
1361
1368
  * </strct-wizard>
1369
+ *
1370
+ * Hosted in a dialog, the wizard IS the surface: pair `flush` here with
1371
+ * `chromeless` on `strct-modal` (keep `cancelable` — the head's X is gone).
1372
+ * Size the host with width/height only; overriding its `display` turns the
1373
+ * grid into a content-sized flex item and silently breaks the layout.
1362
1374
  */
1363
1375
  declare class StrctWizard {
1364
1376
  private readonly defaults;
@@ -1375,8 +1387,22 @@ declare class StrctWizard {
1375
1387
  * this input always wins when bound.
1376
1388
  */
1377
1389
  readonly vertical: _angular_core.InputSignalWithTransform<boolean, unknown>;
1390
+ /**
1391
+ * The wizard IS the surface: drops the vertical layout's own card
1392
+ * (border / radius / background) and fills its host — pair with
1393
+ * `strct-modal`'s `chromeless` so the rail reaches the dialog edges.
1394
+ * Size the host with width/height only; do not override its `display`.
1395
+ */
1396
+ readonly flush: _angular_core.InputSignalWithTransform<boolean, unknown>;
1378
1397
  /** Rail heading shown above the progress bar (vertical mode). */
1379
1398
  readonly title: _angular_core.InputSignal<string>;
1399
+ /**
1400
+ * Name the content pane after the active step (vertical mode): the step's
1401
+ * `label` as a heading, its `description` as the lede. In the compact
1402
+ * narrow rail this is the only visible step name. On by default;
1403
+ * `[contentHeader]="false"` opts out.
1404
+ */
1405
+ readonly contentHeader: _angular_core.InputSignalWithTransform<boolean, unknown>;
1380
1406
  /** Label for the final-step button (default "Finish"). */
1381
1407
  readonly finishLabel: _angular_core.InputSignal<string>;
1382
1408
  /** Labels for the Back / Next / Cancel buttons (localizable). */
@@ -1402,6 +1428,7 @@ declare class StrctWizard {
1402
1428
  /** Furthest step reached — drives the progress bar and rail clickability. */
1403
1429
  protected readonly maxVisited: _angular_core.WritableSignal<number>;
1404
1430
  protected readonly progressPct: _angular_core.Signal<number>;
1431
+ protected readonly activeStep: _angular_core.Signal<StrctStep>;
1405
1432
  protected readonly isLast: _angular_core.Signal<boolean>;
1406
1433
  /** Whether the current step permits advancing (its `canAdvance`). */
1407
1434
  protected readonly canAdvance: _angular_core.Signal<boolean>;
@@ -1412,7 +1439,7 @@ declare class StrctWizard {
1412
1439
  goTo(index: number): void;
1413
1440
  finish(): void;
1414
1441
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctWizard, never>;
1415
- 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>;
1442
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctWizard, "strct-wizard", never, { "current": { "alias": "current"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "flush": { "alias": "flush"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "contentHeader": { "alias": "contentHeader"; "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>;
1416
1443
  }
1417
1444
 
1418
1445
  /**