@cssints/apg-specs 0.6.0 → 0.7.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/README.md +1 -1
- package/dist/apg/accordion.bridge.d.mts +1 -3
- package/dist/apg/accordion.bridge.mjs +1 -2
- package/dist/apg/alert.bridge.d.mts +1 -3
- package/dist/apg/alert.bridge.mjs +1 -2
- package/dist/apg/alertdialog.bridge.d.mts +1 -3
- package/dist/apg/alertdialog.bridge.mjs +1 -2
- package/dist/apg/breadcrumb.bridge.d.mts +1 -3
- package/dist/apg/breadcrumb.bridge.mjs +1 -2
- package/dist/apg/button.bridge.d.mts +1 -3
- package/dist/apg/button.bridge.mjs +1 -2
- package/dist/apg/carousel.bridge.d.mts +1 -3
- package/dist/apg/carousel.bridge.mjs +1 -2
- package/dist/apg/checkbox-group.bridge.d.mts +1 -3
- package/dist/apg/checkbox-group.bridge.mjs +1 -2
- package/dist/apg/checkbox.bridge.d.mts +1 -3
- package/dist/apg/checkbox.bridge.mjs +1 -2
- package/dist/apg/combobox-autocomplete.bridge.d.mts +1 -3
- package/dist/apg/combobox-autocomplete.bridge.mjs +1 -2
- package/dist/apg/combobox-dialog.bridge.d.mts +1 -3
- package/dist/apg/combobox-dialog.bridge.mjs +1 -2
- package/dist/apg/combobox-grid.bridge.d.mts +1 -3
- package/dist/apg/combobox-grid.bridge.mjs +1 -2
- package/dist/apg/combobox-select-only.bridge.d.mts +1 -3
- package/dist/apg/combobox-select-only.bridge.mjs +1 -2
- package/dist/apg/combobox-tree.bridge.d.mts +1 -3
- package/dist/apg/combobox-tree.bridge.mjs +1 -2
- package/dist/apg/dialog-modal.bridge.d.mts +1 -3
- package/dist/apg/dialog-modal.bridge.mjs +1 -2
- package/dist/apg/disclosure.bridge.d.mts +1 -3
- package/dist/apg/disclosure.bridge.mjs +1 -2
- package/dist/apg/feed.bridge.d.mts +1 -3
- package/dist/apg/feed.bridge.mjs +1 -2
- package/dist/apg/grid-selection.bridge.d.mts +1 -3
- package/dist/apg/grid-selection.bridge.mjs +1 -2
- package/dist/apg/grid-sort.bridge.d.mts +1 -3
- package/dist/apg/grid-sort.bridge.mjs +1 -2
- package/dist/apg/grid.bridge.d.mts +1 -3
- package/dist/apg/grid.bridge.mjs +1 -2
- package/dist/apg/link.bridge.d.mts +1 -3
- package/dist/apg/link.bridge.mjs +1 -2
- package/dist/apg/listbox-multi.bridge.d.mts +1 -3
- package/dist/apg/listbox-multi.bridge.mjs +1 -2
- package/dist/apg/listbox-rearrangeable.bridge.d.mts +1 -3
- package/dist/apg/listbox-rearrangeable.bridge.mjs +1 -2
- package/dist/apg/listbox-shared.d.mts +1 -3
- package/dist/apg/listbox-shared.mjs +1 -2
- package/dist/apg/listbox-single.bridge.d.mts +1 -3
- package/dist/apg/listbox-single.bridge.mjs +1 -2
- package/dist/apg/listbox-typeahead.bridge.d.mts +1 -3
- package/dist/apg/listbox-typeahead.bridge.mjs +1 -2
- package/dist/apg/menu-button.bridge.d.mts +1 -3
- package/dist/apg/menu-button.bridge.mjs +1 -2
- package/dist/apg/menu-checkable.bridge.d.mts +1 -3
- package/dist/apg/menu-checkable.bridge.mjs +1 -2
- package/dist/apg/menu-menubar.bridge.d.mts +1 -3
- package/dist/apg/menu-menubar.bridge.mjs +1 -2
- package/dist/apg/meter.bridge.d.mts +1 -3
- package/dist/apg/meter.bridge.mjs +1 -2
- package/dist/apg/player.bridge.d.mts +1 -3
- package/dist/apg/player.bridge.mjs +1 -2
- package/dist/apg/radio.bridge.d.mts +1 -3
- package/dist/apg/radio.bridge.mjs +1 -2
- package/dist/apg/slider-multithumb.bridge.d.mts +1 -3
- package/dist/apg/slider-multithumb.bridge.mjs +1 -2
- package/dist/apg/slider.bridge.d.mts +1 -3
- package/dist/apg/slider.bridge.mjs +1 -2
- package/dist/apg/spinbutton.bridge.d.mts +1 -3
- package/dist/apg/spinbutton.bridge.mjs +1 -2
- package/dist/apg/switch.bridge.d.mts +1 -3
- package/dist/apg/switch.bridge.mjs +1 -2
- package/dist/apg/tabs.bridge.d.mts +1 -3
- package/dist/apg/tabs.bridge.mjs +1 -2
- package/dist/apg/timeline.bridge.d.mts +1 -3
- package/dist/apg/timeline.bridge.mjs +1 -2
- package/dist/apg/toolbar.bridge.d.mts +1 -3
- package/dist/apg/toolbar.bridge.mjs +1 -2
- package/dist/apg/tooltip.bridge.d.mts +1 -3
- package/dist/apg/tooltip.bridge.mjs +1 -2
- package/dist/apg/treegrid.bridge.d.mts +1 -3
- package/dist/apg/treegrid.bridge.mjs +1 -2
- package/dist/apg/treeview.bridge.d.mts +1 -3
- package/dist/apg/treeview.bridge.mjs +1 -2
- package/dist/apg/windowsplitter.bridge.d.mts +1 -3
- package/dist/apg/windowsplitter.bridge.mjs +1 -2
- package/dist/canvas/canvas.bridge.d.mts +1 -2
- package/dist/canvas/canvas.bridge.mjs +1 -2
- package/dist/patterns/resizable-panels.bridge.d.mts +1 -3
- package/dist/patterns/resizable-panels.bridge.mjs +1 -2
- package/dist/scenario.d.mts +0 -2
- package/dist/scenario.mjs +1 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Run in `packages/apg-specs`:
|
|
|
32
32
|
- `bun run generate:all [specs/apg/tabs.qnt ...]` — regenerate artifacts (`node scripts/generate-all.ts`). Each generated file carries the sha256 of its spec; edit a spec, then regenerate. The formatter skips the generated files (`.prettierignore`).
|
|
33
33
|
- `bun run typecheck:quint` — Quint's own typechecker over every spec (~90 s).
|
|
34
34
|
- `bun run test` — spec-only verification (`vp test run`). The exhaustive explorations (player, camera) take a minute each and can time out on a loaded machine; run them alone before calling a failure real.
|
|
35
|
-
- `bun run typecheck` — `
|
|
35
|
+
- `bun run typecheck` — `effect-tsrs` over `src`, `test` and `scripts`.
|
|
36
36
|
- `bun run check` — all of the above, in order.
|
|
37
37
|
- `bun run build` — `vp pack`: `dist/` (the runner and the bridges as ESM with `.d.mts`, the generated models as `.json`).
|
|
38
38
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/accordion.bridge.d.ts
|
|
3
2
|
export interface AccordionConfig {
|
|
4
3
|
readonly items: number;
|
|
5
4
|
/** `defaultValue` when uncontrolled, the initial `value` prop when controlled. */
|
|
@@ -31,5 +30,4 @@ export declare const accordionConfig: (config: ScenarioConfig) => AccordionConfi
|
|
|
31
30
|
export declare const accordionBridge: SpecBridge;
|
|
32
31
|
/** The user-level steps a differential walk draws from. */
|
|
33
32
|
export declare const accordionSteps: ReadonlyArray<ActionStep>;
|
|
34
|
-
export declare const accordionProbe: Probe;
|
|
35
|
-
//#endregion
|
|
33
|
+
export declare const accordionProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/accordion.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -322,5 +322,4 @@ const accordionProbe = {
|
|
|
322
322
|
],
|
|
323
323
|
events: ["onExpandedChange"]
|
|
324
324
|
};
|
|
325
|
-
//#endregion
|
|
326
325
|
export { accordionBridge, accordionConfig, accordionProbe, accordionSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/alert.bridge.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Scenario `config` -> what both targets are mounted with. `titleId` /
|
|
5
4
|
* `descriptionId` are static label associations the alert carries.
|
|
@@ -18,5 +17,4 @@ export declare const alertConfig: (config: ScenarioConfig) => AlertConfig;
|
|
|
18
17
|
export declare const alertBridge: SpecBridge;
|
|
19
18
|
/** The user-level steps a differential walk draws from. */
|
|
20
19
|
export declare const alertSteps: ReadonlyArray<ActionStep>;
|
|
21
|
-
export declare const alertProbe: Probe;
|
|
22
|
-
//#endregion
|
|
20
|
+
export declare const alertProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/alert.bridge.ts
|
|
3
3
|
const specEvent = (tag) => ({ _tag: tag });
|
|
4
4
|
const asString = (key, value) => {
|
|
5
5
|
if (typeof value === "string") return value;
|
|
@@ -82,5 +82,4 @@ const alertProbe = {
|
|
|
82
82
|
],
|
|
83
83
|
events: []
|
|
84
84
|
};
|
|
85
|
-
//#endregion
|
|
86
85
|
export { alertBridge, alertConfig, alertProbe, alertSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/alertdialog.bridge.d.ts
|
|
3
2
|
export interface AlertDialogConfig {
|
|
4
3
|
readonly open: boolean;
|
|
5
4
|
readonly role: "alertdialog";
|
|
@@ -17,5 +16,4 @@ export declare const alertdialogConfig: (config: ScenarioConfig) => AlertDialogC
|
|
|
17
16
|
export declare const alertdialogBridge: SpecBridge;
|
|
18
17
|
/** The user-level steps a differential walk draws from. */
|
|
19
18
|
export declare const alertdialogSteps: ReadonlyArray<ActionStep>;
|
|
20
|
-
export declare const alertdialogProbe: Probe;
|
|
21
|
-
//#endregion
|
|
19
|
+
export declare const alertdialogProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/alertdialog.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -217,5 +217,4 @@ const alertdialogProbe = {
|
|
|
217
217
|
],
|
|
218
218
|
events: ["onOpenChange"]
|
|
219
219
|
};
|
|
220
|
-
//#endregion
|
|
221
220
|
export { alertdialogBridge, alertdialogConfig, alertdialogProbe, alertdialogSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/breadcrumb.bridge.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Scenario `config` -> what both targets are mounted with. `items` is the trail
|
|
5
4
|
* length; `label`/`labelledby`/`describedby` name the navigation landmark.
|
|
@@ -22,5 +21,4 @@ export declare const breadcrumbConfig: (config: ScenarioConfig) => BreadcrumbCon
|
|
|
22
21
|
export declare const breadcrumbBridge: SpecBridge;
|
|
23
22
|
/** The user-level steps a differential walk draws from. */
|
|
24
23
|
export declare const breadcrumbSteps: ReadonlyArray<ActionStep>;
|
|
25
|
-
export declare const breadcrumbProbe: Probe;
|
|
26
|
-
//#endregion
|
|
24
|
+
export declare const breadcrumbProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/breadcrumb.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -116,5 +116,4 @@ const breadcrumbProbe = {
|
|
|
116
116
|
],
|
|
117
117
|
events: []
|
|
118
118
|
};
|
|
119
|
-
//#endregion
|
|
120
119
|
export { breadcrumbBridge, breadcrumbConfig, breadcrumbProbe, breadcrumbSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/button.bridge.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Scenario `config` -> what both targets are mounted with. `toggle` (or a
|
|
5
4
|
* `pressed`/`defaultPressed` value) makes it a toggle button; `disabled` uses
|
|
@@ -31,5 +30,4 @@ export declare const canonicalEvent: (name: string) => string;
|
|
|
31
30
|
export declare const buttonBridge: SpecBridge;
|
|
32
31
|
/** The user-level steps a differential walk draws from. */
|
|
33
32
|
export declare const buttonSteps: ReadonlyArray<ActionStep>;
|
|
34
|
-
export declare const buttonProbe: Probe;
|
|
35
|
-
//#endregion
|
|
33
|
+
export declare const buttonProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/button.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -204,5 +204,4 @@ const buttonProbe = {
|
|
|
204
204
|
],
|
|
205
205
|
events: ["onPressedChange"]
|
|
206
206
|
};
|
|
207
|
-
//#endregion
|
|
208
207
|
export { buttonBridge, buttonConfig, buttonProbe, buttonSteps, canonicalEvent };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/carousel.bridge.d.ts
|
|
3
2
|
export interface CarouselConfig {
|
|
4
3
|
/** DOM slide count (the generated model caps at three; the page may render more). */
|
|
5
4
|
readonly items: number;
|
|
@@ -40,5 +39,4 @@ export declare const carouselConfig: (config: ScenarioConfig) => CarouselConfig;
|
|
|
40
39
|
export declare const carouselBridge: SpecBridge;
|
|
41
40
|
/** The user-level steps a differential walk draws from. */
|
|
42
41
|
export declare const carouselSteps: ReadonlyArray<ActionStep>;
|
|
43
|
-
export declare const carouselProbe: Probe;
|
|
44
|
-
//#endregion
|
|
42
|
+
export declare const carouselProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/carousel.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -258,5 +258,4 @@ const carouselProbe = {
|
|
|
258
258
|
],
|
|
259
259
|
events: ["onIndexChange"]
|
|
260
260
|
};
|
|
261
|
-
//#endregion
|
|
262
261
|
export { carouselBridge, carouselConfig, carouselProbe, carouselSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/checkbox-group.bridge.d.ts
|
|
3
2
|
/** Scenario `config` -> what both targets are mounted with. */
|
|
4
3
|
export interface CheckboxGroupConfig {
|
|
5
4
|
readonly parent: boolean;
|
|
@@ -21,5 +20,4 @@ export declare const checkboxGroupConfig: (config: ScenarioConfig) => CheckboxGr
|
|
|
21
20
|
export declare const checkboxGroupBridge: SpecBridge;
|
|
22
21
|
/** The user-level steps a differential walk draws from. */
|
|
23
22
|
export declare const checkboxGroupSteps: ReadonlyArray<ActionStep>;
|
|
24
|
-
export declare const checkboxGroupProbe: Probe;
|
|
25
|
-
//#endregion
|
|
23
|
+
export declare const checkboxGroupProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/checkbox-group.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -272,5 +272,4 @@ const checkboxGroupProbe = {
|
|
|
272
272
|
],
|
|
273
273
|
events: []
|
|
274
274
|
};
|
|
275
|
-
//#endregion
|
|
276
275
|
export { checkboxGroupBridge, checkboxGroupConfig, checkboxGroupProbe, checkboxGroupSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/checkbox.bridge.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Scenario `config` -> what both targets are mounted with. `checked` (base-ui)
|
|
5
4
|
* is the controlled value with a host that answers every request (a click
|
|
@@ -30,5 +29,4 @@ export declare const canonicalEvent: (name: string) => string;
|
|
|
30
29
|
export declare const checkboxBridge: SpecBridge;
|
|
31
30
|
/** The user-level steps a differential walk draws from. */
|
|
32
31
|
export declare const checkboxSteps: ReadonlyArray<ActionStep>;
|
|
33
|
-
export declare const checkboxProbe: Probe;
|
|
34
|
-
//#endregion
|
|
32
|
+
export declare const checkboxProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/checkbox.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -249,5 +249,4 @@ const checkboxProbe = {
|
|
|
249
249
|
],
|
|
250
250
|
events: ["onChange"]
|
|
251
251
|
};
|
|
252
|
-
//#endregion
|
|
253
252
|
export { canonicalEvent, checkboxBridge, checkboxConfig, checkboxProbe, checkboxSteps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
2
|
import { ComboboxSelectOnlyConfig } from "./combobox-select-only.bridge.mjs";
|
|
3
|
-
//#region src/apg/combobox-autocomplete.bridge.d.ts
|
|
4
3
|
/** The spec's fixed corpus (Alabama…Delaware), used when no items are supplied. */
|
|
5
4
|
export declare const COMBOBOX_AUTOCOMPLETE_ITEMS: ReadonlyArray<string>;
|
|
6
5
|
export interface ComboboxAutocompleteConfig extends ComboboxSelectOnlyConfig {
|
|
@@ -10,5 +9,4 @@ export interface ComboboxAutocompleteConfig extends ComboboxSelectOnlyConfig {
|
|
|
10
9
|
export declare const comboboxAutocompleteConfig: (config: ScenarioConfig) => ComboboxAutocompleteConfig;
|
|
11
10
|
export declare const comboboxAutocompleteBridge: SpecBridge;
|
|
12
11
|
export declare const comboboxAutocompleteSteps: ReadonlyArray<ActionStep>;
|
|
13
|
-
export declare const comboboxAutocompleteProbe: Probe;
|
|
14
|
-
//#endregion
|
|
12
|
+
export declare const comboboxAutocompleteProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/combobox-autocomplete.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -322,5 +322,4 @@ const comboboxAutocompleteProbe = {
|
|
|
322
322
|
],
|
|
323
323
|
events: ["onOpenChange"]
|
|
324
324
|
};
|
|
325
|
-
//#endregion
|
|
326
325
|
export { COMBOBOX_AUTOCOMPLETE_ITEMS, comboboxAutocompleteBridge, comboboxAutocompleteConfig, comboboxAutocompleteProbe, comboboxAutocompleteSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/combobox-dialog.bridge.d.ts
|
|
3
2
|
export interface ComboboxDialogConfig {
|
|
4
3
|
/** A valid date in the spec's calendar, or `null`. */
|
|
5
4
|
readonly value: number | null;
|
|
@@ -13,5 +12,4 @@ export interface ComboboxDialogConfig {
|
|
|
13
12
|
export declare const comboboxDialogConfig: (config: ScenarioConfig) => ComboboxDialogConfig;
|
|
14
13
|
export declare const comboboxDialogBridge: SpecBridge;
|
|
15
14
|
export declare const comboboxDialogSteps: ReadonlyArray<ActionStep>;
|
|
16
|
-
export declare const comboboxDialogProbe: Probe;
|
|
17
|
-
//#endregion
|
|
15
|
+
export declare const comboboxDialogProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/combobox-dialog.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -246,5 +246,4 @@ const comboboxDialogProbe = {
|
|
|
246
246
|
],
|
|
247
247
|
events: ["onOpenChange"]
|
|
248
248
|
};
|
|
249
|
-
//#endregion
|
|
250
249
|
export { comboboxDialogBridge, comboboxDialogConfig, comboboxDialogProbe, comboboxDialogSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/combobox-grid.bridge.d.ts
|
|
3
2
|
/** cellValues: true = one suggestion per cell, false = one per row. */
|
|
4
3
|
export interface ComboboxGridConfig {
|
|
5
4
|
readonly cellValues: boolean;
|
|
@@ -13,5 +12,4 @@ export interface ComboboxGridConfig {
|
|
|
13
12
|
export declare const comboboxGridConfig: (config: ScenarioConfig) => ComboboxGridConfig;
|
|
14
13
|
export declare const comboboxGridBridge: SpecBridge;
|
|
15
14
|
export declare const comboboxGridSteps: ReadonlyArray<ActionStep>;
|
|
16
|
-
export declare const comboboxGridProbe: Probe;
|
|
17
|
-
//#endregion
|
|
15
|
+
export declare const comboboxGridProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/combobox-grid.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -223,5 +223,4 @@ const comboboxGridProbe = {
|
|
|
223
223
|
],
|
|
224
224
|
events: ["onOpenChange"]
|
|
225
225
|
};
|
|
226
|
-
//#endregion
|
|
227
226
|
export { comboboxGridBridge, comboboxGridConfig, comboboxGridProbe, comboboxGridSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/combobox-select-only.bridge.d.ts
|
|
3
2
|
/** The spec's fixed corpus; the differential walk mounts exactly these. */
|
|
4
3
|
export declare const COMBOBOX_SELECT_ONLY_ITEMS: ReadonlyArray<string>;
|
|
5
4
|
/** Scenario config -> what both targets are mounted with. */
|
|
@@ -20,5 +19,4 @@ export declare const comboboxSelectOnlyConfig: (config: ScenarioConfig) => Combo
|
|
|
20
19
|
export declare const comboboxSelectOnlyBridge: SpecBridge;
|
|
21
20
|
/** The user-level steps the differential walk draws from. */
|
|
22
21
|
export declare const comboboxSelectOnlySteps: ReadonlyArray<ActionStep>;
|
|
23
|
-
export declare const comboboxSelectOnlyProbe: Probe;
|
|
24
|
-
//#endregion
|
|
22
|
+
export declare const comboboxSelectOnlyProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/combobox-select-only.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -300,5 +300,4 @@ const comboboxSelectOnlyProbe = {
|
|
|
300
300
|
],
|
|
301
301
|
events: ["onOpenChange"]
|
|
302
302
|
};
|
|
303
|
-
//#endregion
|
|
304
303
|
export { COMBOBOX_SELECT_ONLY_ITEMS, comboboxSelectOnlyBridge, comboboxSelectOnlyConfig, comboboxSelectOnlyProbe, comboboxSelectOnlySteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/combobox-tree.bridge.d.ts
|
|
3
2
|
export interface ComboboxTreeConfig {
|
|
4
3
|
/** 0 all selectable, 1 labels + sticky selection, 2 labels + cleared selection. */
|
|
5
4
|
readonly labelMode: 0 | 1 | 2;
|
|
@@ -13,5 +12,4 @@ export interface ComboboxTreeConfig {
|
|
|
13
12
|
export declare const comboboxTreeConfig: (config: ScenarioConfig) => ComboboxTreeConfig;
|
|
14
13
|
export declare const comboboxTreeBridge: SpecBridge;
|
|
15
14
|
export declare const comboboxTreeSteps: ReadonlyArray<ActionStep>;
|
|
16
|
-
export declare const comboboxTreeProbe: Probe;
|
|
17
|
-
//#endregion
|
|
15
|
+
export declare const comboboxTreeProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/combobox-tree.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -207,5 +207,4 @@ const comboboxTreeProbe = {
|
|
|
207
207
|
],
|
|
208
208
|
events: ["onOpenChange"]
|
|
209
209
|
};
|
|
210
|
-
//#endregion
|
|
211
210
|
export { comboboxTreeBridge, comboboxTreeConfig, comboboxTreeProbe, comboboxTreeSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/dialog-modal.bridge.d.ts
|
|
3
2
|
export interface DialogModalConfig {
|
|
4
3
|
readonly modal: boolean;
|
|
5
4
|
readonly role: "dialog" | "alertdialog";
|
|
@@ -31,5 +30,4 @@ export declare const dialogModalConfig: (config: ScenarioConfig) => DialogModalC
|
|
|
31
30
|
export declare const dialogModalBridge: SpecBridge;
|
|
32
31
|
/** The user-level steps a differential walk draws from. */
|
|
33
32
|
export declare const dialogModalSteps: ReadonlyArray<ActionStep>;
|
|
34
|
-
export declare const dialogModalProbe: Probe;
|
|
35
|
-
//#endregion
|
|
33
|
+
export declare const dialogModalProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/dialog-modal.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -182,5 +182,4 @@ const dialogModalProbe = {
|
|
|
182
182
|
attrs: [["dialog", "role"], ["dialog", "aria-modal"]],
|
|
183
183
|
events: ["onOpenChange"]
|
|
184
184
|
};
|
|
185
|
-
//#endregion
|
|
186
185
|
export { dialogModalBridge, dialogModalConfig, dialogModalProbe, dialogModalSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/disclosure.bridge.d.ts
|
|
3
2
|
export interface DisclosureConfig {
|
|
4
3
|
/** `defaultValue` when uncontrolled, the initial `value` prop when controlled. */
|
|
5
4
|
readonly expanded: boolean;
|
|
@@ -21,5 +20,4 @@ export declare const canonicalEvent: (name: string) => string;
|
|
|
21
20
|
export declare const disclosureBridge: SpecBridge;
|
|
22
21
|
/** The user-level steps a differential walk draws from. */
|
|
23
22
|
export declare const disclosureSteps: ReadonlyArray<ActionStep>;
|
|
24
|
-
export declare const disclosureProbe: Probe;
|
|
25
|
-
//#endregion
|
|
23
|
+
export declare const disclosureProbe: Probe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/disclosure.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -198,5 +198,4 @@ const disclosureProbe = {
|
|
|
198
198
|
],
|
|
199
199
|
events: ["onExpandedChange"]
|
|
200
200
|
};
|
|
201
|
-
//#endregion
|
|
202
201
|
export { canonicalEvent, disclosureBridge, disclosureConfig, disclosureProbe, disclosureSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/feed.bridge.d.ts
|
|
3
2
|
export interface FeedConfig {
|
|
4
3
|
readonly loaded: number;
|
|
5
4
|
readonly totalArticles: number | null;
|
|
@@ -27,5 +26,4 @@ export declare const feedConfig: (config: ScenarioConfig) => FeedConfig;
|
|
|
27
26
|
export declare const feedBridge: SpecBridge;
|
|
28
27
|
/** The user-level steps a differential walk draws from. */
|
|
29
28
|
export declare const feedSteps: ReadonlyArray<ActionStep>;
|
|
30
|
-
export declare const feedProbe: Probe;
|
|
31
|
-
//#endregion
|
|
29
|
+
export declare const feedProbe: Probe;
|
package/dist/apg/feed.bridge.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/feed.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -242,5 +242,4 @@ const feedProbe = {
|
|
|
242
242
|
],
|
|
243
243
|
events: ["onLoadedChange"]
|
|
244
244
|
};
|
|
245
|
-
//#endregion
|
|
246
245
|
export { feedBridge, feedConfig, feedProbe, feedSteps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
2
|
import { GridConfig } from "./grid.bridge.mjs";
|
|
3
|
-
//#region src/apg/grid-selection.bridge.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* `grid-selection.qnt`: cell/row/column selection over the fixed 4x3 grid.
|
|
6
5
|
* Mounts `createGrid` with `selectable: true`; reads `aria-selected` (present
|
|
@@ -9,5 +8,4 @@ import { GridConfig } from "./grid.bridge.mjs";
|
|
|
9
8
|
export declare const gridSelectionConfig: (config: ScenarioConfig) => GridConfig;
|
|
10
9
|
export declare const gridSelectionBridge: SpecBridge;
|
|
11
10
|
export declare const gridSelectionSteps: ReadonlyArray<ActionStep>;
|
|
12
|
-
export declare const gridSelectionProbe: Probe;
|
|
13
|
-
//#endregion
|
|
11
|
+
export declare const gridSelectionProbe: Probe;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
2
|
import { isSelectionValue, normalizeGridConfig } from "./grid.bridge.mjs";
|
|
3
|
-
|
|
3
|
+
// src/apg/grid-selection.bridge.ts
|
|
4
4
|
const specEvent = (tag, params = {}) => ({
|
|
5
5
|
_tag: tag,
|
|
6
6
|
...params
|
|
@@ -156,5 +156,4 @@ const gridSelectionProbe = {
|
|
|
156
156
|
}).flat(),
|
|
157
157
|
events: ["onValueChange"]
|
|
158
158
|
};
|
|
159
|
-
//#endregion
|
|
160
159
|
export { gridSelectionBridge, gridSelectionConfig, gridSelectionProbe, gridSelectionSteps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
2
|
import { GridConfig } from "./grid.bridge.mjs";
|
|
3
|
-
//#region src/apg/grid-sort.bridge.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* `grid-sort.qnt`: the header row of a sortable data grid. Mounts `createGrid`
|
|
6
5
|
* with `sortEnabled: true`; reads `aria-sort` and the header roving tabindex.
|
|
@@ -8,5 +7,4 @@ import { GridConfig } from "./grid.bridge.mjs";
|
|
|
8
7
|
export declare const gridSortConfig: (config: ScenarioConfig) => GridConfig;
|
|
9
8
|
export declare const gridSortBridge: SpecBridge;
|
|
10
9
|
export declare const gridSortSteps: ReadonlyArray<ActionStep>;
|
|
11
|
-
export declare const gridSortProbe: Probe;
|
|
12
|
-
//#endregion
|
|
10
|
+
export declare const gridSortProbe: Probe;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
2
|
import { isSortValue, normalizeGridConfig } from "./grid.bridge.mjs";
|
|
3
|
-
|
|
3
|
+
// src/apg/grid-sort.bridge.ts
|
|
4
4
|
const specEvent = (tag, params = {}) => ({
|
|
5
5
|
_tag: tag,
|
|
6
6
|
...params
|
|
@@ -134,5 +134,4 @@ const gridSortProbe = {
|
|
|
134
134
|
}).flat(),
|
|
135
135
|
events: ["onValueChange"]
|
|
136
136
|
};
|
|
137
|
-
//#endregion
|
|
138
137
|
export { gridSortBridge, gridSortConfig, gridSortProbe, gridSortSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/grid.bridge.d.ts
|
|
3
2
|
/** The spec's fixed grid size (`specs/apg/grid.qnt`). */
|
|
4
3
|
export declare const GRID_ROWS = 4;
|
|
5
4
|
export declare const GRID_COLS = 3;
|
|
@@ -50,5 +49,4 @@ export declare const gridConfig: (config: ScenarioConfig) => GridConfig;
|
|
|
50
49
|
export declare const gridBridge: SpecBridge;
|
|
51
50
|
/** The user-level steps a differential walk draws from. */
|
|
52
51
|
export declare const gridSteps: ReadonlyArray<ActionStep>;
|
|
53
|
-
export declare const gridProbe: Probe;
|
|
54
|
-
//#endregion
|
|
52
|
+
export declare const gridProbe: Probe;
|
package/dist/apg/grid.bridge.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/grid.bridge.ts
|
|
3
3
|
const specEvent = (tag, params = {}) => ({
|
|
4
4
|
_tag: tag,
|
|
5
5
|
...params
|
|
@@ -437,5 +437,4 @@ const gridProbe = {
|
|
|
437
437
|
],
|
|
438
438
|
events: []
|
|
439
439
|
};
|
|
440
|
-
//#endregion
|
|
441
440
|
export { GRID_COLS, GRID_ROWS, gridBridge, gridConfig, gridProbe, gridSteps, isSelectionValue, isSortValue, normalizeGridConfig };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/link.bridge.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Scenario `config` -> what both targets are mounted with. A config with `href`
|
|
5
4
|
* (or `native: true`) renders a native anchor; `elementType` picks a custom
|
|
@@ -20,5 +19,4 @@ export declare const linkConfig: (config: ScenarioConfig) => LinkConfig;
|
|
|
20
19
|
export declare const linkBridge: SpecBridge;
|
|
21
20
|
/** The user-level steps a differential walk draws from. */
|
|
22
21
|
export declare const linkSteps: ReadonlyArray<ActionStep>;
|
|
23
|
-
export declare const linkProbe: Probe;
|
|
24
|
-
//#endregion
|
|
22
|
+
export declare const linkProbe: Probe;
|
package/dist/apg/link.bridge.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
|
-
|
|
2
|
+
// src/apg/link.bridge.ts
|
|
3
3
|
const specEvent = (tag) => ({ _tag: tag });
|
|
4
4
|
const PART_URLS = /* @__PURE__ */ new Set(["elementType", "render"]);
|
|
5
5
|
const linkConfig = (config) => {
|
|
@@ -122,5 +122,4 @@ const linkProbe = {
|
|
|
122
122
|
attrs: [["link", "role"], ["link", "tabindex"]],
|
|
123
123
|
events: []
|
|
124
124
|
};
|
|
125
|
-
//#endregion
|
|
126
125
|
export { linkBridge, linkConfig, linkProbe, linkSteps };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
2
|
import { ListboxMountConfig } from "./listbox-shared.mjs";
|
|
3
|
-
//#region src/apg/listbox-multi.bridge.d.ts
|
|
4
3
|
/** Scenario `config` -> mount config; only the multi-select model is modelled. */
|
|
5
4
|
export declare const listboxMultiConfig: (config: ScenarioConfig) => ListboxMountConfig;
|
|
6
5
|
export declare const listboxMultiBridge: SpecBridge;
|
|
7
6
|
/** The user-level steps a differential walk draws from (recommended model). */
|
|
8
7
|
export declare const listboxMultiSteps: ReadonlyArray<ActionStep>;
|
|
9
|
-
export declare const listboxMultiProbe: Probe;
|
|
10
|
-
//#endregion
|
|
8
|
+
export declare const listboxMultiProbe: Probe;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
2
|
import { bit, indicesMask, indicesOf, jsonRecord, keyModifiers, listboxConfig, maskOf, optionIndexOf, partOf, requestedIndices, specEvent } from "./listbox-shared.mjs";
|
|
3
|
-
|
|
3
|
+
// src/apg/listbox-multi.bridge.ts
|
|
4
4
|
/** Scenario `config` -> mount config; only the multi-select model is modelled. */
|
|
5
5
|
const listboxMultiConfig = (config) => {
|
|
6
6
|
const mount = listboxConfig(config, "multiple");
|
|
@@ -257,5 +257,4 @@ const listboxMultiProbe = {
|
|
|
257
257
|
],
|
|
258
258
|
events: ["onValueChange"]
|
|
259
259
|
};
|
|
260
|
-
//#endregion
|
|
261
260
|
export { listboxMultiBridge, listboxMultiConfig, listboxMultiProbe, listboxMultiSteps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionStep, Probe, ScenarioConfig, SpecBridge } from "../scenario.mjs";
|
|
2
|
-
//#region src/apg/listbox-rearrangeable.bridge.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Rearrangeable listbox vocabulary <-> `specs/apg/listbox-rearrangeable.qnt`.
|
|
5
4
|
* Two lists (`listA`, `listB`) share four options; parts are `listA`/`listB`
|
|
@@ -16,5 +15,4 @@ export declare const listboxRearrangeableConfig: (config: ScenarioConfig) => Rea
|
|
|
16
15
|
export declare const listboxRearrangeableBridge: SpecBridge;
|
|
17
16
|
/** The user-level steps a differential walk draws from. */
|
|
18
17
|
export declare const listboxRearrangeableSteps: ReadonlyArray<ActionStep>;
|
|
19
|
-
export declare const listboxRearrangeableProbe: Probe;
|
|
20
|
-
//#endregion
|
|
18
|
+
export declare const listboxRearrangeableProbe: Probe;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Unsupported } from "../scenario.mjs";
|
|
2
2
|
import { bit, indicesMask, indicesOf, jsonRecord, requestedIndices, specEvent } from "./listbox-shared.mjs";
|
|
3
|
-
|
|
3
|
+
// src/apg/listbox-rearrangeable.bridge.ts
|
|
4
4
|
const ITEM_COUNT = 4;
|
|
5
5
|
const NO_ITEM = 4;
|
|
6
6
|
const listboxRearrangeableConfig = (config) => {
|
|
@@ -233,5 +233,4 @@ const listboxRearrangeableProbe = {
|
|
|
233
233
|
],
|
|
234
234
|
events: ["onValueChange"]
|
|
235
235
|
};
|
|
236
|
-
//#endregion
|
|
237
236
|
export { listboxRearrangeableBridge, listboxRearrangeableConfig, listboxRearrangeableProbe, listboxRearrangeableSteps };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ScenarioConfig } from "../scenario.mjs";
|
|
2
2
|
import { QuintEvent, QuintModelValue } from "@quint-machine/core";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
|
-
//#region src/apg/listbox-shared.d.ts
|
|
5
4
|
export declare const specEvent: (tag: string, params?: Record<string, bigint | string | boolean>) => QuintEvent;
|
|
6
5
|
export type ListboxSelectionMode = "single" | "multiple" | "none";
|
|
7
6
|
export type ListboxAutoFocus = boolean | number | "first";
|
|
@@ -54,5 +53,4 @@ export declare const indicesMask: (indices: ReadonlyArray<number>) => number;
|
|
|
54
53
|
/** Parse a `prop setValue`/`value`/`selected` payload into option indices. */
|
|
55
54
|
export declare const indicesOf: (value: Schema.Json | undefined) => ReadonlyArray<number>;
|
|
56
55
|
/** The last request's intent, as option indices (reads the `requested` mask). */
|
|
57
|
-
export declare const requestedIndices: (state: QuintModelValue, count: number) => ReadonlyArray<number>;
|
|
58
|
-
//#endregion
|
|
56
|
+
export declare const requestedIndices: (state: QuintModelValue, count: number) => ReadonlyArray<number>;
|