foldkit 0.100.1 → 0.102.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 +3 -2
- package/dist/canvas/view.d.ts +1 -1
- package/dist/canvas/view.d.ts.map +1 -1
- package/dist/canvas/view.js +5 -5
- package/dist/command/index.d.ts +71 -0
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +34 -1
- package/dist/command/public.d.ts +1 -1
- package/dist/command/public.d.ts.map +1 -1
- package/dist/command/public.js +1 -1
- package/dist/devTools/overlay.d.ts.map +1 -1
- package/dist/devTools/overlay.js +156 -149
- package/dist/dom/dom.d.ts +8 -11
- package/dist/dom/dom.d.ts.map +1 -1
- package/dist/dom/dom.js +8 -11
- package/dist/dom/elementMovement.d.ts +1 -3
- package/dist/dom/elementMovement.d.ts.map +1 -1
- package/dist/dom/elementMovement.js +1 -3
- package/dist/dom/inert.d.ts +2 -4
- package/dist/dom/inert.d.ts.map +1 -1
- package/dist/dom/inert.js +2 -4
- package/dist/dom/scrollLock.d.ts +2 -2
- package/dist/dom/scrollLock.js +2 -2
- package/dist/dom/waitForAnimation.d.ts +1 -1
- package/dist/dom/waitForAnimation.js +1 -1
- package/dist/html/boundary.d.ts +98 -0
- package/dist/html/boundary.d.ts.map +1 -0
- package/dist/html/boundary.js +176 -0
- package/dist/html/childAttribute.d.ts +44 -0
- package/dist/html/childAttribute.d.ts.map +1 -0
- package/dist/html/childAttribute.js +34 -0
- package/dist/html/index.d.ts +70 -23
- package/dist/html/index.d.ts.map +1 -1
- package/dist/html/index.js +639 -575
- package/dist/html/lazy.d.ts +12 -7
- package/dist/html/lazy.d.ts.map +1 -1
- package/dist/html/lazy.js +30 -11
- package/dist/html/public.d.ts +2 -2
- package/dist/html/public.d.ts.map +1 -1
- package/dist/html/public.js +1 -1
- package/dist/html/runtimeSingleton.d.ts +72 -0
- package/dist/html/runtimeSingleton.d.ts.map +1 -0
- package/dist/html/runtimeSingleton.js +112 -0
- package/dist/html/submodel.d.ts +98 -0
- package/dist/html/submodel.d.ts.map +1 -0
- package/dist/html/submodel.js +190 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/render/render.d.ts +1 -1
- package/dist/render/render.js +1 -1
- package/dist/runtime/messagePriority.d.ts +5 -1
- package/dist/runtime/messagePriority.d.ts.map +1 -1
- package/dist/runtime/messagePriority.js +25 -4
- package/dist/runtime/runtime.d.ts +11 -11
- package/dist/runtime/runtime.d.ts.map +1 -1
- package/dist/runtime/runtime.js +118 -63
- package/dist/runtime/subscription.d.ts +139 -19
- package/dist/runtime/subscription.d.ts.map +1 -1
- package/dist/runtime/subscription.js +90 -9
- package/dist/submodel/public.d.ts +4 -0
- package/dist/submodel/public.d.ts.map +1 -0
- package/dist/submodel/public.js +1 -0
- package/dist/submodel/submodel.d.ts +32 -0
- package/dist/submodel/submodel.d.ts.map +1 -0
- package/dist/submodel/submodel.js +1 -0
- package/dist/subscription/animationFrame.d.ts +23 -26
- package/dist/subscription/animationFrame.d.ts.map +1 -1
- package/dist/subscription/animationFrame.js +17 -18
- package/dist/subscription/public.d.ts +2 -2
- package/dist/subscription/public.d.ts.map +1 -1
- package/dist/subscription/public.js +1 -1
- package/dist/test/apps/disabledButton.d.ts +4 -5
- package/dist/test/apps/disabledButton.d.ts.map +1 -1
- package/dist/test/apps/disabledButton.js +16 -16
- package/dist/test/scene.d.ts +8 -8
- package/dist/test/scene.d.ts.map +1 -1
- package/dist/test/scene.js +25 -13
- package/dist/test/story.d.ts +15 -8
- package/dist/test/story.d.ts.map +1 -1
- package/dist/test/story.js +21 -9
- package/dist/ui/animation/index.d.ts +30 -14
- package/dist/ui/animation/index.d.ts.map +1 -1
- package/dist/ui/animation/index.js +9 -19
- package/dist/ui/animation/public.d.ts +2 -2
- package/dist/ui/animation/public.d.ts.map +1 -1
- package/dist/ui/animation/public.js +1 -1
- package/dist/ui/calendar/index.d.ts +199 -84
- package/dist/ui/calendar/index.d.ts.map +1 -1
- package/dist/ui/calendar/index.js +129 -140
- package/dist/ui/calendar/public.d.ts +2 -2
- package/dist/ui/calendar/public.d.ts.map +1 -1
- package/dist/ui/calendar/public.js +1 -1
- package/dist/ui/checkbox/index.d.ts +93 -21
- package/dist/ui/checkbox/index.d.ts.map +1 -1
- package/dist/ui/checkbox/index.js +62 -33
- package/dist/ui/checkbox/public.d.ts +2 -2
- package/dist/ui/checkbox/public.d.ts.map +1 -1
- package/dist/ui/checkbox/public.js +1 -1
- package/dist/ui/combobox/multi.d.ts +35 -91
- package/dist/ui/combobox/multi.d.ts.map +1 -1
- package/dist/ui/combobox/multi.js +34 -17
- package/dist/ui/combobox/multiPublic.d.ts +2 -2
- package/dist/ui/combobox/multiPublic.d.ts.map +1 -1
- package/dist/ui/combobox/multiPublic.js +1 -1
- package/dist/ui/combobox/public.d.ts +3 -3
- package/dist/ui/combobox/public.d.ts.map +1 -1
- package/dist/ui/combobox/public.js +2 -2
- package/dist/ui/combobox/shared.d.ts +56 -31
- package/dist/ui/combobox/shared.d.ts.map +1 -1
- package/dist/ui/combobox/shared.js +333 -322
- package/dist/ui/combobox/single.d.ts +46 -93
- package/dist/ui/combobox/single.d.ts.map +1 -1
- package/dist/ui/combobox/single.js +44 -17
- package/dist/ui/datePicker/index.d.ts +256 -48
- package/dist/ui/datePicker/index.d.ts.map +1 -1
- package/dist/ui/datePicker/index.js +149 -104
- package/dist/ui/datePicker/public.d.ts +2 -2
- package/dist/ui/datePicker/public.d.ts.map +1 -1
- package/dist/ui/datePicker/public.js +1 -1
- package/dist/ui/dialog/index.d.ts +95 -39
- package/dist/ui/dialog/index.d.ts.map +1 -1
- package/dist/ui/dialog/index.js +71 -62
- package/dist/ui/dialog/public.d.ts +2 -2
- package/dist/ui/dialog/public.d.ts.map +1 -1
- package/dist/ui/dialog/public.js +1 -1
- package/dist/ui/disclosure/index.d.ts +71 -31
- package/dist/ui/disclosure/index.d.ts.map +1 -1
- package/dist/ui/disclosure/index.js +57 -62
- package/dist/ui/disclosure/public.d.ts +2 -2
- package/dist/ui/disclosure/public.d.ts.map +1 -1
- package/dist/ui/disclosure/public.js +1 -1
- package/dist/ui/dragAndDrop/index.d.ts +385 -103
- package/dist/ui/dragAndDrop/index.d.ts.map +1 -1
- package/dist/ui/dragAndDrop/index.js +26 -31
- package/dist/ui/dragAndDrop/public.d.ts +1 -1
- package/dist/ui/dragAndDrop/public.d.ts.map +1 -1
- package/dist/ui/dragAndDrop/public.js +1 -1
- package/dist/ui/fileDrop/index.d.ts +42 -46
- package/dist/ui/fileDrop/index.d.ts.map +1 -1
- package/dist/ui/fileDrop/index.js +30 -46
- package/dist/ui/fileDrop/public.d.ts +2 -2
- package/dist/ui/fileDrop/public.d.ts.map +1 -1
- package/dist/ui/fileDrop/public.js +1 -1
- package/dist/ui/listbox/multi.d.ts +39 -84
- package/dist/ui/listbox/multi.d.ts.map +1 -1
- package/dist/ui/listbox/multi.js +38 -20
- package/dist/ui/listbox/multiPublic.d.ts +2 -2
- package/dist/ui/listbox/multiPublic.d.ts.map +1 -1
- package/dist/ui/listbox/multiPublic.js +1 -1
- package/dist/ui/listbox/public.d.ts +3 -3
- package/dist/ui/listbox/public.d.ts.map +1 -1
- package/dist/ui/listbox/public.js +2 -2
- package/dist/ui/listbox/shared.d.ts +71 -30
- package/dist/ui/listbox/shared.d.ts.map +1 -1
- package/dist/ui/listbox/shared.js +319 -296
- package/dist/ui/listbox/single.d.ts +57 -85
- package/dist/ui/listbox/single.d.ts.map +1 -1
- package/dist/ui/listbox/single.js +48 -24
- package/dist/ui/menu/index.d.ts +80 -36
- package/dist/ui/menu/index.d.ts.map +1 -1
- package/dist/ui/menu/index.js +117 -86
- package/dist/ui/menu/public.d.ts +2 -2
- package/dist/ui/menu/public.d.ts.map +1 -1
- package/dist/ui/menu/public.js +1 -1
- package/dist/ui/popover/index.d.ts +117 -44
- package/dist/ui/popover/index.d.ts.map +1 -1
- package/dist/ui/popover/index.js +88 -101
- package/dist/ui/popover/public.d.ts +2 -2
- package/dist/ui/popover/public.d.ts.map +1 -1
- package/dist/ui/popover/public.js +1 -1
- package/dist/ui/radioGroup/index.d.ts +122 -45
- package/dist/ui/radioGroup/index.d.ts.map +1 -1
- package/dist/ui/radioGroup/index.js +111 -72
- package/dist/ui/radioGroup/public.d.ts +2 -2
- package/dist/ui/radioGroup/public.d.ts.map +1 -1
- package/dist/ui/radioGroup/public.js +1 -1
- package/dist/ui/slider/index.d.ts +247 -103
- package/dist/ui/slider/index.d.ts.map +1 -1
- package/dist/ui/slider/index.js +52 -68
- package/dist/ui/slider/public.d.ts +2 -2
- package/dist/ui/slider/public.d.ts.map +1 -1
- package/dist/ui/slider/public.js +1 -1
- package/dist/ui/switch/index.d.ts +74 -21
- package/dist/ui/switch/index.d.ts.map +1 -1
- package/dist/ui/switch/index.js +62 -33
- package/dist/ui/switch/public.d.ts +2 -2
- package/dist/ui/switch/public.d.ts.map +1 -1
- package/dist/ui/switch/public.js +1 -1
- package/dist/ui/tabs/index.d.ts +107 -45
- package/dist/ui/tabs/index.d.ts.map +1 -1
- package/dist/ui/tabs/index.js +99 -81
- package/dist/ui/tabs/public.d.ts +2 -2
- package/dist/ui/tabs/public.d.ts.map +1 -1
- package/dist/ui/tabs/public.js +1 -1
- package/dist/ui/toast/index.d.ts +93 -109
- package/dist/ui/toast/index.d.ts.map +1 -1
- package/dist/ui/toast/index.js +16 -29
- package/dist/ui/toast/schema.d.ts +15 -4
- package/dist/ui/toast/schema.d.ts.map +1 -1
- package/dist/ui/toast/schema.js +11 -4
- package/dist/ui/toast/update.d.ts +36 -18
- package/dist/ui/toast/update.d.ts.map +1 -1
- package/dist/ui/toast/update.js +33 -14
- package/dist/ui/tooltip/index.d.ts +94 -42
- package/dist/ui/tooltip/index.d.ts.map +1 -1
- package/dist/ui/tooltip/index.js +64 -73
- package/dist/ui/tooltip/public.d.ts +2 -2
- package/dist/ui/tooltip/public.d.ts.map +1 -1
- package/dist/ui/tooltip/public.js +1 -1
- package/dist/ui/virtualList/index.d.ts +63 -80
- package/dist/ui/virtualList/index.d.ts.map +1 -1
- package/dist/ui/virtualList/index.js +22 -49
- package/dist/ui/virtualList/public.d.ts +2 -2
- package/dist/ui/virtualList/public.d.ts.map +1 -1
- package/dist/ui/virtualList/public.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Schema as S } from 'effect';
|
|
1
|
+
import { Option, Schema as S } from 'effect';
|
|
2
2
|
import type { Command } from '../../command/index.js';
|
|
3
|
-
import { type
|
|
3
|
+
import { type ChildAttribute, type Html } from '../../html/index.js';
|
|
4
|
+
import type { Reflect } from '../../submodel/submodel.js';
|
|
4
5
|
/** Schema for the switch component's state, tracking the toggle's checked status. */
|
|
5
6
|
export declare const Model: S.Struct<{
|
|
6
7
|
readonly id: S.String;
|
|
@@ -9,10 +10,35 @@ export declare const Model: S.Struct<{
|
|
|
9
10
|
export type Model = typeof Model.Type;
|
|
10
11
|
/** Sent when the user toggles the switch via click or Space key. */
|
|
11
12
|
export declare const Toggled: import("../../schema/index.js").CallableTaggedStruct<"Toggled", {}>;
|
|
13
|
+
/** Sent to set the checked state to a specific value. Use this for
|
|
14
|
+
* programmatic state assignment (e.g. a "select all" handler that forces
|
|
15
|
+
* all child switches to the same state) where `Toggled`'s flip semantics
|
|
16
|
+
* would not reliably reach the desired state. */
|
|
17
|
+
export declare const SetChecked: import("../../schema/index.js").CallableTaggedStruct<"SetChecked", {
|
|
18
|
+
isChecked: S.Boolean;
|
|
19
|
+
}>;
|
|
12
20
|
/** Schema for all messages the switch component can produce. */
|
|
13
|
-
export declare const Message: import("../../schema/index.js").CallableTaggedStruct<"Toggled", {}
|
|
21
|
+
export declare const Message: S.Union<readonly [import("../../schema/index.js").CallableTaggedStruct<"Toggled", {}>, import("../../schema/index.js").CallableTaggedStruct<"SetChecked", {
|
|
22
|
+
isChecked: S.Boolean;
|
|
23
|
+
}>]>;
|
|
14
24
|
export type Toggled = typeof Toggled.Type;
|
|
25
|
+
export type SetChecked = typeof SetChecked.Type;
|
|
15
26
|
export type Message = typeof Message.Type;
|
|
27
|
+
/** Sent to the parent each time the switch toggles. Carries the new
|
|
28
|
+
* checked state. Consumers pattern-match this in their `GotSwitchMessage`
|
|
29
|
+
* handler to lift the toggle into a domain Message (e.g., persisting the
|
|
30
|
+
* setting, dispatching a sync command). */
|
|
31
|
+
export declare const ToggledChecked: import("../../schema/index.js").CallableTaggedStruct<"ToggledChecked", {
|
|
32
|
+
isChecked: S.Boolean;
|
|
33
|
+
}>;
|
|
34
|
+
/** Union of out-messages the switch component can produce. Surfaced as
|
|
35
|
+
* the third element of `update`'s return tuple and pattern-matched by
|
|
36
|
+
* the parent. */
|
|
37
|
+
export declare const OutMessage: S.Union<readonly [import("../../schema/index.js").CallableTaggedStruct<"ToggledChecked", {
|
|
38
|
+
isChecked: S.Boolean;
|
|
39
|
+
}>]>;
|
|
40
|
+
export type ToggledChecked = typeof ToggledChecked.Type;
|
|
41
|
+
export type OutMessage = typeof OutMessage.Type;
|
|
16
42
|
/** Configuration for creating a switch model with `init`. */
|
|
17
43
|
export type InitConfig = Readonly<{
|
|
18
44
|
id: string;
|
|
@@ -20,27 +46,54 @@ export type InitConfig = Readonly<{
|
|
|
20
46
|
}>;
|
|
21
47
|
/** Creates an initial switch model from a config. Defaults to unchecked. */
|
|
22
48
|
export declare const init: (config: InitConfig) => Model;
|
|
23
|
-
/** Processes a switch message and returns the next model
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
49
|
+
/** Processes a switch message and returns the next model, commands, and
|
|
50
|
+
* a `ToggledChecked` OutMessage carrying the new checked state. */
|
|
51
|
+
export declare const update: (model: Model, message: Message) => readonly [Model, ReadonlyArray<Command<Message>>, Option.Option<OutMessage>];
|
|
52
|
+
/** Programmatically sets the checked state. Emits a `ToggledChecked`
|
|
53
|
+
* OutMessage just like a user-initiated toggle. Use this in domain-event
|
|
54
|
+
* handlers where you need to force a specific state. */
|
|
55
|
+
export declare const setChecked: (model: Model, isChecked: boolean) => readonly [Model, ReadonlyArray<Command<Message>>, Option.Option<OutMessage>];
|
|
56
|
+
/** Reflects an externally-sourced checked state onto the model without
|
|
57
|
+
* emitting an OutMessage. Use this to mirror external truth (saved
|
|
58
|
+
* settings, a server value) onto the switch without triggering the
|
|
59
|
+
* downstream reaction a user toggle would cause. Contrast with
|
|
60
|
+
* `setChecked`, which emits `ToggledChecked` so the parent reacts to a
|
|
61
|
+
* programmatic assignment the same way it reacts to a user toggle. Returns
|
|
62
|
+
* the model directly because it produces no commands and no OutMessage. */
|
|
63
|
+
export declare const reflectChecked: Reflect<Model, boolean>;
|
|
64
|
+
/** Attribute groups the switch component provides to the consumer's
|
|
65
|
+
* `toView` callback. Each group is a `ReadonlyArray<ChildAttribute>`
|
|
66
|
+
* whose event handlers dispatch through the Switch's boundary at
|
|
67
|
+
* event-fire time. See {@link Checkbox.CheckboxAttributes} for the full
|
|
68
|
+
* routing model. */
|
|
69
|
+
export type SwitchAttributes = Readonly<{
|
|
70
|
+
button: ReadonlyArray<ChildAttribute>;
|
|
71
|
+
label: ReadonlyArray<ChildAttribute>;
|
|
72
|
+
description: ReadonlyArray<ChildAttribute>;
|
|
73
|
+
hiddenInput: ReadonlyArray<ChildAttribute>;
|
|
31
74
|
}>;
|
|
32
|
-
/**
|
|
33
|
-
export type
|
|
34
|
-
|
|
35
|
-
toParentMessage: (message: Toggled) => ParentMessage;
|
|
36
|
-
toView: (attributes: SwitchAttributes<ParentMessage>) => Html;
|
|
75
|
+
/** Per-render view inputs passed to `view` via `h.submodel`'s `viewInputs` field. */
|
|
76
|
+
export type ViewInputs = Readonly<{
|
|
77
|
+
toView: (attributes: SwitchAttributes) => Html;
|
|
37
78
|
isDisabled?: boolean;
|
|
38
79
|
name?: string;
|
|
39
80
|
value?: string;
|
|
40
81
|
}>;
|
|
41
|
-
/** Renders an accessible switch toggle by building ARIA attribute groups
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
82
|
+
/** Renders an accessible switch toggle by building ARIA attribute groups
|
|
83
|
+
* and delegating layout to the consumer's `toView` callback. Designed
|
|
84
|
+
* to be embedded via `h.submodel`. */
|
|
85
|
+
export declare const view: import("../../html/submodel.js").SubmodelView<{
|
|
86
|
+
readonly id: string;
|
|
87
|
+
readonly isChecked: boolean;
|
|
88
|
+
}, {
|
|
89
|
+
readonly _tag: "Toggled";
|
|
90
|
+
} | {
|
|
91
|
+
readonly _tag: "SetChecked";
|
|
92
|
+
readonly isChecked: boolean;
|
|
93
|
+
}, Readonly<{
|
|
94
|
+
toView: (attributes: SwitchAttributes) => Html;
|
|
95
|
+
isDisabled?: boolean;
|
|
96
|
+
name?: string;
|
|
97
|
+
value?: string;
|
|
98
|
+
}>>;
|
|
46
99
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,MAAM,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAA;AAElE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,IAAI,EAIV,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAIzD,qFAAqF;AACrF,eAAO,MAAM,KAAK;;;EAGhB,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAA;AAIrC,oEAAoE;AACpE,eAAO,MAAM,OAAO,qEAAe,CAAA;AAEnC;;;kDAGk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AID;;;;qBAIqB;AACrB,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;IACtC,MAAM,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IACrC,KAAK,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IACpC,WAAW,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IAC1C,WAAW,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;CAC3C,CAAC,CAAA;AAEF,qFAAqF;AACrF,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;IAChC,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC,CAAA;AAKF;;uCAEuC;AACvC,eAAO,MAAM,IAAI;;;;;;;;;YAZP,CAAC,UAAU,EAAE,gBAAgB,KAAK,IAAI;iBACjC,OAAO;WACb,MAAM;YACL,MAAM;GA2Df,CAAA"}
|
package/dist/ui/switch/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Match as M, Option, Schema as S } from 'effect';
|
|
2
|
-
import {
|
|
1
|
+
import { Function, Match as M, Option, Schema as S } from 'effect';
|
|
2
|
+
import { childAttributes, defineView, html, } from '../../html/index.js';
|
|
3
3
|
import { m } from '../../message/index.js';
|
|
4
4
|
import { evo } from '../../struct/index.js';
|
|
5
5
|
// MODEL
|
|
@@ -11,26 +11,68 @@ export const Model = S.Struct({
|
|
|
11
11
|
// MESSAGE
|
|
12
12
|
/** Sent when the user toggles the switch via click or Space key. */
|
|
13
13
|
export const Toggled = m('Toggled');
|
|
14
|
+
/** Sent to set the checked state to a specific value. Use this for
|
|
15
|
+
* programmatic state assignment (e.g. a "select all" handler that forces
|
|
16
|
+
* all child switches to the same state) where `Toggled`'s flip semantics
|
|
17
|
+
* would not reliably reach the desired state. */
|
|
18
|
+
export const SetChecked = m('SetChecked', { isChecked: S.Boolean });
|
|
14
19
|
/** Schema for all messages the switch component can produce. */
|
|
15
|
-
export const Message = Toggled;
|
|
20
|
+
export const Message = S.Union([Toggled, SetChecked]);
|
|
21
|
+
// OUT MESSAGE
|
|
22
|
+
/** Sent to the parent each time the switch toggles. Carries the new
|
|
23
|
+
* checked state. Consumers pattern-match this in their `GotSwitchMessage`
|
|
24
|
+
* handler to lift the toggle into a domain Message (e.g., persisting the
|
|
25
|
+
* setting, dispatching a sync command). */
|
|
26
|
+
export const ToggledChecked = m('ToggledChecked', { isChecked: S.Boolean });
|
|
27
|
+
/** Union of out-messages the switch component can produce. Surfaced as
|
|
28
|
+
* the third element of `update`'s return tuple and pattern-matched by
|
|
29
|
+
* the parent. */
|
|
30
|
+
export const OutMessage = S.Union([ToggledChecked]);
|
|
16
31
|
/** Creates an initial switch model from a config. Defaults to unchecked. */
|
|
17
32
|
export const init = (config) => ({
|
|
18
33
|
id: config.id,
|
|
19
34
|
isChecked: config.isChecked ?? false,
|
|
20
35
|
});
|
|
21
36
|
// UPDATE
|
|
22
|
-
/** Processes a switch message and returns the next model
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
37
|
+
/** Processes a switch message and returns the next model, commands, and
|
|
38
|
+
* a `ToggledChecked` OutMessage carrying the new checked state. */
|
|
39
|
+
export const update = (model, message) => M.value(message).pipe(M.withReturnType(), M.tagsExhaustive({
|
|
40
|
+
Toggled: () => {
|
|
41
|
+
const nextIsChecked = !model.isChecked;
|
|
42
|
+
return [
|
|
43
|
+
evo(model, { isChecked: () => nextIsChecked }),
|
|
44
|
+
[],
|
|
45
|
+
Option.some(ToggledChecked({ isChecked: nextIsChecked })),
|
|
46
|
+
];
|
|
47
|
+
},
|
|
48
|
+
SetChecked: ({ isChecked }) => [
|
|
49
|
+
evo(model, { isChecked: () => isChecked }),
|
|
50
|
+
[],
|
|
51
|
+
Option.some(ToggledChecked({ isChecked })),
|
|
52
|
+
],
|
|
53
|
+
}));
|
|
54
|
+
/** Programmatically sets the checked state. Emits a `ToggledChecked`
|
|
55
|
+
* OutMessage just like a user-initiated toggle. Use this in domain-event
|
|
56
|
+
* handlers where you need to force a specific state. */
|
|
57
|
+
export const setChecked = (model, isChecked) => update(model, SetChecked({ isChecked }));
|
|
58
|
+
/** Reflects an externally-sourced checked state onto the model without
|
|
59
|
+
* emitting an OutMessage. Use this to mirror external truth (saved
|
|
60
|
+
* settings, a server value) onto the switch without triggering the
|
|
61
|
+
* downstream reaction a user toggle would cause. Contrast with
|
|
62
|
+
* `setChecked`, which emits `ToggledChecked` so the parent reacts to a
|
|
63
|
+
* programmatic assignment the same way it reacts to a user toggle. Returns
|
|
64
|
+
* the model directly because it produces no commands and no OutMessage. */
|
|
65
|
+
export const reflectChecked = Function.dual(2, (model, isChecked) => evo(model, { isChecked: () => isChecked }));
|
|
27
66
|
const labelId = (id) => `${id}-label`;
|
|
28
67
|
const descriptionId = (id) => `${id}-description`;
|
|
29
|
-
/** Renders an accessible switch toggle by building ARIA attribute groups
|
|
30
|
-
|
|
68
|
+
/** Renders an accessible switch toggle by building ARIA attribute groups
|
|
69
|
+
* and delegating layout to the consumer's `toView` callback. Designed
|
|
70
|
+
* to be embedded via `h.submodel`. */
|
|
71
|
+
export const view = defineView((model, viewInputs) => {
|
|
31
72
|
const h = html();
|
|
32
|
-
const {
|
|
33
|
-
const
|
|
73
|
+
const { id, isChecked } = model;
|
|
74
|
+
const { isDisabled = false, name, value: formValue = 'on' } = viewInputs;
|
|
75
|
+
const handleKeyUp = (key) => M.value(key).pipe(M.when(' ', () => Option.some(Toggled())), M.orElse(() => Option.none()));
|
|
34
76
|
const checkedAttributes = isChecked ? [h.DataAttribute('checked', '')] : [];
|
|
35
77
|
const disabledAttributes = isDisabled
|
|
36
78
|
? [h.AriaDisabled(true), h.DataAttribute('disabled', '')]
|
|
@@ -45,33 +87,20 @@ export const view = (config) => {
|
|
|
45
87
|
...disabledAttributes,
|
|
46
88
|
...(isDisabled
|
|
47
89
|
? []
|
|
48
|
-
: [
|
|
49
|
-
h.OnClick(toParentMessage(Toggled())),
|
|
50
|
-
h.OnKeyUpPreventDefault(handleKeyUp),
|
|
51
|
-
]),
|
|
90
|
+
: [h.OnClick(Toggled()), h.OnKeyUpPreventDefault(handleKeyUp)]),
|
|
52
91
|
];
|
|
53
92
|
const labelAttributes = [
|
|
54
93
|
h.Id(labelId(id)),
|
|
55
|
-
...(isDisabled ? [] : [h.OnClick(
|
|
94
|
+
...(isDisabled ? [] : [h.OnClick(Toggled())]),
|
|
56
95
|
];
|
|
57
96
|
const descriptionAttributes = [h.Id(descriptionId(id))];
|
|
58
97
|
const hiddenInputAttributes = name
|
|
59
98
|
? [h.Type('hidden'), h.Name(name), h.Value(isChecked ? formValue : '')]
|
|
60
99
|
: [];
|
|
61
|
-
return
|
|
62
|
-
button: buttonAttributes,
|
|
63
|
-
label: labelAttributes,
|
|
64
|
-
description: descriptionAttributes,
|
|
65
|
-
hiddenInput: hiddenInputAttributes,
|
|
100
|
+
return viewInputs.toView({
|
|
101
|
+
button: childAttributes(buttonAttributes),
|
|
102
|
+
label: childAttributes(labelAttributes),
|
|
103
|
+
description: childAttributes(descriptionAttributes),
|
|
104
|
+
hiddenInput: childAttributes(hiddenInputAttributes),
|
|
66
105
|
});
|
|
67
|
-
};
|
|
68
|
-
/** Creates a memoized switch view. Static config is captured in a closure;
|
|
69
|
-
* only `model` and `toParentMessage` are compared per render via `createLazy`. */
|
|
70
|
-
export const lazy = (staticConfig) => {
|
|
71
|
-
const lazyView = createLazy();
|
|
72
|
-
return (model, toParentMessage) => lazyView((currentModel, currentToParentMessage) => view({
|
|
73
|
-
...staticConfig,
|
|
74
|
-
model: currentModel,
|
|
75
|
-
toParentMessage: currentToParentMessage,
|
|
76
|
-
}), [model, toParentMessage]);
|
|
77
|
-
};
|
|
106
|
+
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { init, update,
|
|
2
|
-
export type { Toggled, InitConfig,
|
|
1
|
+
export { init, update, setChecked, reflectChecked, view, Model, Message, OutMessage, SetChecked, ToggledChecked, } from './index.js';
|
|
2
|
+
export type { Toggled, InitConfig, ViewInputs, SwitchAttributes, } from './index.js';
|
|
3
3
|
//# sourceMappingURL=public.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/ui/switch/public.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/ui/switch/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,MAAM,EACN,UAAU,EACV,cAAc,EACd,IAAI,EACJ,KAAK,EACL,OAAO,EACP,UAAU,EACV,UAAU,EACV,cAAc,GACf,MAAM,YAAY,CAAA;AAEnB,YAAY,EACV,OAAO,EACP,UAAU,EACV,UAAU,EACV,gBAAgB,GACjB,MAAM,YAAY,CAAA"}
|
package/dist/ui/switch/public.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { init, update,
|
|
1
|
+
export { init, update, setChecked, reflectChecked, view, Model, Message, OutMessage, SetChecked, ToggledChecked, } from './index.js';
|
package/dist/ui/tabs/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Effect, Schema as S } from 'effect';
|
|
1
|
+
import { Effect, Option, Schema as S } from 'effect';
|
|
2
2
|
import * as Command from '../../command/index.js';
|
|
3
|
-
import { type
|
|
3
|
+
import { type ChildAttribute, type Html, type SubmodelView } from '../../html/index.js';
|
|
4
|
+
import type { Reflect2 } from '../../submodel/submodel.js';
|
|
4
5
|
export { wrapIndex, findFirstEnabledIndex, keyToIndex } from '../keyboard.js';
|
|
5
6
|
/** Controls the tab list layout direction and which arrow keys navigate between tabs. */
|
|
6
7
|
export declare const Orientation: S.Literals<readonly ["Horizontal", "Vertical"]>;
|
|
@@ -17,24 +18,44 @@ export declare const Model: S.Struct<{
|
|
|
17
18
|
}>;
|
|
18
19
|
export type Model = typeof Model.Type;
|
|
19
20
|
/** Sent when a tab is selected via click or keyboard. Updates both the active and focused indices. */
|
|
20
|
-
export declare const
|
|
21
|
+
export declare const SelectedTab: import("../../schema/index.js").CallableTaggedStruct<"SelectedTab", {
|
|
21
22
|
index: S.Number;
|
|
23
|
+
value: S.String;
|
|
22
24
|
}>;
|
|
23
25
|
/** Sent when a tab receives keyboard focus in `Manual` mode without being activated. */
|
|
24
|
-
export declare const
|
|
26
|
+
export declare const FocusedTab: import("../../schema/index.js").CallableTaggedStruct<"FocusedTab", {
|
|
25
27
|
index: S.Number;
|
|
26
28
|
}>;
|
|
27
29
|
/** Sent when the focus-tab command completes. */
|
|
28
30
|
export declare const CompletedFocusTab: import("../../schema/index.js").CallableTaggedStruct<"CompletedFocusTab", {}>;
|
|
29
31
|
/** Union of all messages the tabs component can produce. */
|
|
30
32
|
export declare const Message: S.Union<[
|
|
31
|
-
typeof
|
|
32
|
-
typeof
|
|
33
|
+
typeof SelectedTab,
|
|
34
|
+
typeof FocusedTab,
|
|
33
35
|
typeof CompletedFocusTab
|
|
34
36
|
]>;
|
|
35
|
-
export type
|
|
36
|
-
export type
|
|
37
|
+
export type SelectedTab = typeof SelectedTab.Type;
|
|
38
|
+
export type FocusedTab = typeof FocusedTab.Type;
|
|
37
39
|
export type Message = typeof Message.Type;
|
|
40
|
+
/** Sent to the parent when a tab is committed via click or keyboard. Carries both the tab's value (typed as `Value` via `Ui.Tabs.create<Value>()`) and its index. Generic at the type level; the schema stores `value: string` and the factory's fenced cast types it as `Value`. */
|
|
41
|
+
export declare const Selected: import("../../schema/index.js").CallableTaggedStruct<"Selected", {
|
|
42
|
+
value: S.String;
|
|
43
|
+
index: S.Number;
|
|
44
|
+
}>;
|
|
45
|
+
export type Selected<Value extends string = string> = Readonly<{
|
|
46
|
+
readonly _tag: 'Selected';
|
|
47
|
+
readonly value: Value;
|
|
48
|
+
readonly index: number;
|
|
49
|
+
}>;
|
|
50
|
+
/** Union of out-messages the tabs component can produce. Surfaced as the third element of `update`'s return tuple and pattern-matched by the parent. */
|
|
51
|
+
export declare const OutMessage: S.Union<readonly [import("../../schema/index.js").CallableTaggedStruct<"Selected", {
|
|
52
|
+
value: S.String;
|
|
53
|
+
index: S.Number;
|
|
54
|
+
}>]>;
|
|
55
|
+
/** Generic over `Value extends string` so consumers using
|
|
56
|
+
* `Ui.Tabs.create<MyUnion>()` receive `value: MyUnion` in the
|
|
57
|
+
* `Selected` OutMessage. Defaults to `string`. */
|
|
58
|
+
export type OutMessage<Value extends string = string> = Selected<Value>;
|
|
38
59
|
/** Configuration for creating a tabs model with `init`. */
|
|
39
60
|
export type InitConfig = Readonly<{
|
|
40
61
|
id: string;
|
|
@@ -50,44 +71,85 @@ export declare const FocusTab: Command.CommandDefinitionWithArgs<"FocusTab", {
|
|
|
50
71
|
}, Effect.Effect<{
|
|
51
72
|
readonly _tag: "CompletedFocusTab";
|
|
52
73
|
}, never, never>>;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
74
|
+
type UpdateReturn = readonly [
|
|
75
|
+
Model,
|
|
76
|
+
ReadonlyArray<Command.Command<Message>>,
|
|
77
|
+
Option.Option<OutMessage>
|
|
78
|
+
];
|
|
79
|
+
/** Processes a tabs message and returns the next model, commands, and an optional OutMessage. `Selected` fires when a tab is committed via click or keyboard. */
|
|
80
|
+
export declare const update: (model: Model, message: Message) => UpdateReturn;
|
|
81
|
+
/** Programmatically selects a tab. Emits a `Selected` OutMessage. */
|
|
82
|
+
export declare const selectTab: (model: Model, value: string, index: number) => UpdateReturn;
|
|
83
|
+
/** Reflects an externally-sourced active tab onto the model without
|
|
84
|
+
* emitting an OutMessage or running the focus command. Use this to mirror
|
|
85
|
+
* external truth (a deep link, restored storage) onto the active tab.
|
|
86
|
+
* Contrast with `selectTab`, which represents a user or programmatic
|
|
87
|
+
* *choice*: it focuses the tab and emits `Selected`. Takes the tab `value`
|
|
88
|
+
* plus the `options` list (mirroring `RadioGroup.select`) because Tabs
|
|
89
|
+
* stores the active *index* internally, so the value is resolved to an
|
|
90
|
+
* index. A value not present in `options` is a no-op. Returns the model
|
|
91
|
+
* directly because it produces no commands and no OutMessage. */
|
|
92
|
+
export declare const reflectSelectedTab: Reflect2<Model, string, ReadonlyArray<string>>;
|
|
93
|
+
/** Per-tab render info passed to the consumer's `toView`. Generic over
|
|
94
|
+
* `Value extends string`: when `Ui.Tabs.create<MyUnion>()` is declared,
|
|
95
|
+
* `tab.value` is typed `MyUnion` so the consumer can switch on it without
|
|
96
|
+
* casting. */
|
|
97
|
+
export type TabInfo<Value extends string = string> = Readonly<{
|
|
98
|
+
value: Value;
|
|
99
|
+
index: number;
|
|
100
|
+
isActive: boolean;
|
|
101
|
+
isFocused: boolean;
|
|
102
|
+
isDisabled: boolean;
|
|
103
|
+
tab: ReadonlyArray<ChildAttribute>;
|
|
104
|
+
panel: ReadonlyArray<ChildAttribute>;
|
|
105
|
+
}>;
|
|
106
|
+
/** Render-time payload published to the consumer's `toView`.
|
|
107
|
+
*
|
|
108
|
+
* - `tablist`: ARIA + role attributes for the wrapping tablist element.
|
|
109
|
+
* - `tabs`: one entry per tab in `viewInputs.tabs`, in the same order, with
|
|
110
|
+
* the tab button's attribute bundle, the panel's attribute bundle,
|
|
111
|
+
* and derived state.
|
|
112
|
+
* - `activeIndex`: the currently-active tab index, convenient when the
|
|
113
|
+
* consumer wants to render only the active panel (vs all panels with
|
|
114
|
+
* `Hidden` for transitions). */
|
|
115
|
+
export type RenderInfo<Value extends string = string> = Readonly<{
|
|
116
|
+
tablist: ReadonlyArray<ChildAttribute>;
|
|
117
|
+
tabs: ReadonlyArray<TabInfo<Value>>;
|
|
118
|
+
activeIndex: number;
|
|
63
119
|
}>;
|
|
64
|
-
/**
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
isTabDisabled?: (
|
|
74
|
-
persistPanels?: boolean;
|
|
120
|
+
/** Per-render view inputs passed to `view` via `h.submodel`'s `viewInputs` field.
|
|
121
|
+
* Generic over `Value extends string` so consumers using
|
|
122
|
+
* `Ui.Tabs.create<MyUnion>()` receive `tab.value: MyUnion` in `toView`
|
|
123
|
+
* and `(value: MyUnion, index) => boolean` in `isTabDisabled`, without
|
|
124
|
+
* casting. */
|
|
125
|
+
export type ViewInputs<Value extends string = string> = Readonly<{
|
|
126
|
+
tabs: ReadonlyArray<Value>;
|
|
127
|
+
ariaLabel: string;
|
|
128
|
+
toView: (render: RenderInfo<Value>) => Html;
|
|
129
|
+
isTabDisabled?: (value: Value, index: number) => boolean;
|
|
75
130
|
orientation?: Orientation;
|
|
76
|
-
tabListElement?: TagName;
|
|
77
|
-
tabElement?: TagName;
|
|
78
|
-
panelElement?: TagName;
|
|
79
|
-
className?: string;
|
|
80
|
-
attributes?: ReadonlyArray<Attribute<ParentMessage>>;
|
|
81
|
-
tabListClassName?: string;
|
|
82
|
-
tabListAttributes?: ReadonlyArray<Attribute<ParentMessage>>;
|
|
83
|
-
tabListAriaLabel: string;
|
|
84
131
|
}>;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
*
|
|
92
|
-
|
|
132
|
+
/** Pairs the tabs `view`, `update`, and `selectTab` behind a single
|
|
133
|
+
* Value-typed entry point. Declare once at module scope so consumers
|
|
134
|
+
* receive `tab.value: Value` in `toView` without an `as` cast:
|
|
135
|
+
*
|
|
136
|
+
* ```ts
|
|
137
|
+
* const DemoTabs = Ui.Tabs.create<DemoTab>()
|
|
138
|
+
*
|
|
139
|
+
* // In view:
|
|
140
|
+
* h.submodel({ view: DemoTabs.view, ... })
|
|
141
|
+
*
|
|
142
|
+
* // In update:
|
|
143
|
+
* const [next, commands] = DemoTabs.update(model, message)
|
|
144
|
+
* ```
|
|
145
|
+
*
|
|
146
|
+
* The internal view stays typed `ReadonlyArray<string>`; consumers can
|
|
147
|
+
* pass a `ReadonlyArray<MyUnion>` (assignable) and the fenced cast inside
|
|
148
|
+
* `create` types `TabInfo.value` as `MyUnion`. */
|
|
149
|
+
export declare const create: <Value extends string = string>() => Readonly<{
|
|
150
|
+
view: SubmodelView<Model, Message, ViewInputs<Value>>;
|
|
151
|
+
update: (model: Model, message: Message) => readonly [Model, ReadonlyArray<Command.Command<Message>>, Option.Option<OutMessage<Value>>];
|
|
152
|
+
selectTab: (model: Model, value: Value, index: number) => readonly [Model, ReadonlyArray<Command.Command<Message>>, Option.Option<OutMessage<Value>>];
|
|
153
|
+
reflectSelectedTab: Reflect2<Model, Value, ReadonlyArray<Value>>;
|
|
154
|
+
}>;
|
|
93
155
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAGN,MAAM,IAAI,CAAC,EAGZ,MAAM,QAAQ,CAAA;AAEf,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAA;AAEjD,OAAO,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAGN,MAAM,EACN,MAAM,IAAI,CAAC,EAGZ,MAAM,QAAQ,CAAA;AAEf,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAA;AAEjD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,IAAI,EACT,KAAK,YAAY,EAIlB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAG1D,OAAO,EAAE,SAAS,EAAE,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