@charcuterie/ui 2.13.0 → 2.15.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/dist/Picker/Picker.d.ts +83 -0
- package/dist/Picker/Picker.d.ts.map +1 -0
- package/dist/Picker/Picker.js +85 -0
- package/dist/Picker/Picker.js.map +1 -0
- package/dist/QueryBuilder/QueryBuilder.d.ts +32 -1
- package/dist/QueryBuilder/QueryBuilder.d.ts.map +1 -1
- package/dist/QueryBuilder/QueryBuilder.js +3 -2
- package/dist/QueryBuilder/QueryBuilder.js.map +1 -1
- package/dist/QueryBuilder/QueryBuilderCombinator.d.ts +32 -0
- package/dist/QueryBuilder/QueryBuilderCombinator.d.ts.map +1 -0
- package/dist/QueryBuilder/QueryBuilderCombinator.js +41 -0
- package/dist/QueryBuilder/QueryBuilderCombinator.js.map +1 -0
- package/dist/QueryBuilder/QueryBuilderGroup.d.ts +14 -9
- package/dist/QueryBuilder/QueryBuilderGroup.d.ts.map +1 -1
- package/dist/QueryBuilder/QueryBuilderGroup.js +16 -22
- package/dist/QueryBuilder/QueryBuilderGroup.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Picker/Picker.mdx +63 -0
- package/src/Picker/Picker.stories.tsx +184 -0
- package/src/Picker/Picker.test.tsx +98 -0
- package/src/Picker/Picker.tsx +186 -0
- package/src/QueryBuilder/QueryBuilder.mdx +11 -4
- package/src/QueryBuilder/QueryBuilder.stories.tsx +140 -3
- package/src/QueryBuilder/QueryBuilder.test.tsx +95 -23
- package/src/QueryBuilder/QueryBuilder.tsx +34 -0
- package/src/QueryBuilder/QueryBuilderCombinator.tsx +69 -0
- package/src/QueryBuilder/QueryBuilderGroup.tsx +33 -29
- package/src/index.ts +5 -0
- package/src/sourceRules.test.ts +7 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { ControlSize, IntentName } from "@charcuterie/tokens";
|
|
2
|
+
import type { Placement } from "@floating-ui/react";
|
|
3
|
+
import type { ComponentPropsWithRef, ReactNode } from "react";
|
|
4
|
+
import type { IntentAppearance } from "../intentStyles.ts";
|
|
5
|
+
import type { ListboxItem } from "../Listbox/Listbox.tsx";
|
|
6
|
+
export type PickerOption = ListboxItem;
|
|
7
|
+
export type PickerProps = Omit<ComponentPropsWithRef<"button">, "disabled" | "onChange" | "value"> & {
|
|
8
|
+
appearance?: IntentAppearance;
|
|
9
|
+
className?: string;
|
|
10
|
+
intent?: IntentName;
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* What the control is FOR — "Language", "Quantifier", "Rule type".
|
|
14
|
+
* Not the current value; that is read off `options`.
|
|
15
|
+
*/
|
|
16
|
+
label: string;
|
|
17
|
+
/**
|
|
18
|
+
* Defaults to a chevron. Pass `null` to drop it — a picker rendered
|
|
19
|
+
* inside a denser control row may not want the affordance, and a
|
|
20
|
+
* refactor moving an existing hand-rolled trigger onto `Picker`
|
|
21
|
+
* stays pixel-identical by passing `null` rather than re-baselining
|
|
22
|
+
* every screenshot that contains it.
|
|
23
|
+
*/
|
|
24
|
+
iconEnd?: ReactNode;
|
|
25
|
+
onChange: (value: string) => void;
|
|
26
|
+
options: readonly PickerOption[];
|
|
27
|
+
placement?: Placement;
|
|
28
|
+
/** Read by the trigger when `value` matches no option. */
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
size?: ControlSize;
|
|
31
|
+
value?: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* A `Listbox` with the trigger already attached — the shape every app
|
|
35
|
+
* reaches for when it wants "a select, but ours".
|
|
36
|
+
*
|
|
37
|
+
* ### Four repos wrote this, and the fourth is this package
|
|
38
|
+
*
|
|
39
|
+
* `Listbox` is deliberately trigger-agnostic: it takes a `trigger`
|
|
40
|
+
* element and owns none of the open state, which is what lets it hang
|
|
41
|
+
* off a button, a tile, a table header. The cost is that the *common*
|
|
42
|
+
* case — a button showing the current value — is about thirty lines,
|
|
43
|
+
* and the fleet wrote them four times: queuepilot's `SelectListbox`,
|
|
44
|
+
* board-games' `SelectMenu` (on `useState` rather than
|
|
45
|
+
* `useVisibility`), mux-magic's `ListboxPicker`, and — the tell —
|
|
46
|
+
* **twice inside this package**, in `QueryBuilderCombinator` and in
|
|
47
|
+
* `QueryBuilder`'s own story. Each also hand-rolled the same chevron.
|
|
48
|
+
*
|
|
49
|
+
* `Listbox` stays exactly as it is. This is the assembled default.
|
|
50
|
+
*
|
|
51
|
+
* ### Why it is not called `SinglePicker`
|
|
52
|
+
*
|
|
53
|
+
* The state layer has `useSinglePicker` and `useMultiplePicker`, so a
|
|
54
|
+
* name near "picker" invites the question of whether this is their
|
|
55
|
+
* component. It is not, and no component is: `useSinglePicker` is a
|
|
56
|
+
* state kind that `Listbox`, `Combobox` and `Tabs` all compose. This
|
|
57
|
+
* component owns a `useVisibility` and delegates selection to
|
|
58
|
+
* `Listbox`, which is where the picker state actually lives. The name
|
|
59
|
+
* is the owner's, chosen over `SelectListbox` and `ListboxButton`.
|
|
60
|
+
*
|
|
61
|
+
* ### The accessible name carries the current value
|
|
62
|
+
*
|
|
63
|
+
* `"Language: English"`, not `"Language"`. The trigger's visible text
|
|
64
|
+
* IS the current value, and WCAG 2.5.3 requires the visible text to be
|
|
65
|
+
* contained in the accessible name — so a bare `aria-label={label}`
|
|
66
|
+
* fails it, which is a latent defect in one of the hand-rolled
|
|
67
|
+
* versions this replaces. It also makes each control uniquely findable
|
|
68
|
+
* when a form has several, which is the property `expectAgentDrivable`
|
|
69
|
+
* exists to protect.
|
|
70
|
+
*
|
|
71
|
+
* Query it as `getByRole("button", { name: /^Language: / })`.
|
|
72
|
+
*
|
|
73
|
+
* ### `id` does not survive; `data-testid` does
|
|
74
|
+
*
|
|
75
|
+
* `useAnchoredOverlay` overwrites the trigger's `id` with a generated
|
|
76
|
+
* one, so the portalled listbox can point `aria-labelledby` across at
|
|
77
|
+
* it. An `id` passed here is therefore silently replaced — queuepilot
|
|
78
|
+
* found this the hard way and switched its e2e handles to
|
|
79
|
+
* `data-testid`, which nothing injects. Everything else on the button
|
|
80
|
+
* (`data-*`, `onClick`, `form`, …) passes straight through.
|
|
81
|
+
*/
|
|
82
|
+
export declare const Picker: ({ appearance, className, iconEnd, intent, isDisabled, label, onChange, options, placement, placeholder, size, value, ...buttonProps }: PickerProps) => ReactNode;
|
|
83
|
+
//# sourceMappingURL=Picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Picker.d.ts","sourceRoot":"","sources":["../../src/Picker/Picker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACX,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,EACV,qBAAqB,EACrB,SAAS,EACV,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGzD,MAAM,MAAM,YAAY,GAAG,WAAW,CAAA;AAwBtC,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,qBAAqB,CAAC,QAAQ,CAAC,EAC/B,UAAU,GAAG,UAAU,GAAG,OAAO,CAClC,GAAG;IACF,UAAU,CAAC,EAAE,gBAAgB,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;IAChC,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,eAAO,MAAM,MAAM,GAAI,uIAcpB,WAAW,KAAG,SAoDhB,CAAA"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useVisibility } from "@charcuterie/logic";
|
|
3
|
+
import { Button } from "../Button/Button.js";
|
|
4
|
+
import { Listbox } from "../Listbox/Listbox.js";
|
|
5
|
+
/**
|
|
6
|
+
* A constant element rather than a component, for the same reason
|
|
7
|
+
* `Select` inlines its own: a second component in this file trips the
|
|
8
|
+
* house rule, and this never varies.
|
|
9
|
+
*/
|
|
10
|
+
const CHEVRON_DOWN = (_jsx("svg", { "aria-hidden": "true", className: "size-4", fill: "none", focusable: false, stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.75, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "m6 9 6 6 6-6" }) }));
|
|
11
|
+
/**
|
|
12
|
+
* A `Listbox` with the trigger already attached — the shape every app
|
|
13
|
+
* reaches for when it wants "a select, but ours".
|
|
14
|
+
*
|
|
15
|
+
* ### Four repos wrote this, and the fourth is this package
|
|
16
|
+
*
|
|
17
|
+
* `Listbox` is deliberately trigger-agnostic: it takes a `trigger`
|
|
18
|
+
* element and owns none of the open state, which is what lets it hang
|
|
19
|
+
* off a button, a tile, a table header. The cost is that the *common*
|
|
20
|
+
* case — a button showing the current value — is about thirty lines,
|
|
21
|
+
* and the fleet wrote them four times: queuepilot's `SelectListbox`,
|
|
22
|
+
* board-games' `SelectMenu` (on `useState` rather than
|
|
23
|
+
* `useVisibility`), mux-magic's `ListboxPicker`, and — the tell —
|
|
24
|
+
* **twice inside this package**, in `QueryBuilderCombinator` and in
|
|
25
|
+
* `QueryBuilder`'s own story. Each also hand-rolled the same chevron.
|
|
26
|
+
*
|
|
27
|
+
* `Listbox` stays exactly as it is. This is the assembled default.
|
|
28
|
+
*
|
|
29
|
+
* ### Why it is not called `SinglePicker`
|
|
30
|
+
*
|
|
31
|
+
* The state layer has `useSinglePicker` and `useMultiplePicker`, so a
|
|
32
|
+
* name near "picker" invites the question of whether this is their
|
|
33
|
+
* component. It is not, and no component is: `useSinglePicker` is a
|
|
34
|
+
* state kind that `Listbox`, `Combobox` and `Tabs` all compose. This
|
|
35
|
+
* component owns a `useVisibility` and delegates selection to
|
|
36
|
+
* `Listbox`, which is where the picker state actually lives. The name
|
|
37
|
+
* is the owner's, chosen over `SelectListbox` and `ListboxButton`.
|
|
38
|
+
*
|
|
39
|
+
* ### The accessible name carries the current value
|
|
40
|
+
*
|
|
41
|
+
* `"Language: English"`, not `"Language"`. The trigger's visible text
|
|
42
|
+
* IS the current value, and WCAG 2.5.3 requires the visible text to be
|
|
43
|
+
* contained in the accessible name — so a bare `aria-label={label}`
|
|
44
|
+
* fails it, which is a latent defect in one of the hand-rolled
|
|
45
|
+
* versions this replaces. It also makes each control uniquely findable
|
|
46
|
+
* when a form has several, which is the property `expectAgentDrivable`
|
|
47
|
+
* exists to protect.
|
|
48
|
+
*
|
|
49
|
+
* Query it as `getByRole("button", { name: /^Language: / })`.
|
|
50
|
+
*
|
|
51
|
+
* ### `id` does not survive; `data-testid` does
|
|
52
|
+
*
|
|
53
|
+
* `useAnchoredOverlay` overwrites the trigger's `id` with a generated
|
|
54
|
+
* one, so the portalled listbox can point `aria-labelledby` across at
|
|
55
|
+
* it. An `id` passed here is therefore silently replaced — queuepilot
|
|
56
|
+
* found this the hard way and switched its e2e handles to
|
|
57
|
+
* `data-testid`, which nothing injects. Everything else on the button
|
|
58
|
+
* (`data-*`, `onClick`, `form`, …) passes straight through.
|
|
59
|
+
*/
|
|
60
|
+
export const Picker = ({ appearance = "outline", className, iconEnd = CHEVRON_DOWN, intent = "neutral", isDisabled = false, label, onChange, options, placement, placeholder, size, value, ...buttonProps }) => {
|
|
61
|
+
const { hide, isVisible, toggle } = useVisibility();
|
|
62
|
+
const currentOption = options.find((option) => option.value === value);
|
|
63
|
+
const currentText = currentOption === undefined
|
|
64
|
+
? placeholder
|
|
65
|
+
: (currentOption.textValue ??
|
|
66
|
+
(typeof currentOption.label === "string"
|
|
67
|
+
? currentOption.label
|
|
68
|
+
: undefined));
|
|
69
|
+
const triggerText = currentText ?? placeholder ?? "";
|
|
70
|
+
return (_jsx(Listbox
|
|
71
|
+
// A disabled control must not open, and hiding the panel is a
|
|
72
|
+
// truer way to say that than trusting the trigger's click alone —
|
|
73
|
+
// Escape and outside-press both route through `onDismiss`.
|
|
74
|
+
, {
|
|
75
|
+
// A disabled control must not open, and hiding the panel is a
|
|
76
|
+
// truer way to say that than trusting the trigger's click alone —
|
|
77
|
+
// Escape and outside-press both route through `onDismiss`.
|
|
78
|
+
isVisible: isVisible && !isDisabled, onDismiss: hide, onSelect: onChange, options: options, placement: placement, selectedValue: value, trigger: _jsx(Button, { ...buttonProps, appearance: appearance, "aria-label": `${label}: ${triggerText}`, className: className, iconEnd: iconEnd, intent: intent, isDisabled: isDisabled, onClick: (clickEvent) => {
|
|
79
|
+
buttonProps.onClick?.(clickEvent);
|
|
80
|
+
toggle();
|
|
81
|
+
}, size: size, type: "button", children: currentOption === undefined
|
|
82
|
+
? placeholder
|
|
83
|
+
: currentOption.label }) }));
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=Picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Picker.js","sourceRoot":"","sources":["../../src/Picker/Picker.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAWlD,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AW,IAAI,EAAE,CAAA;IAEpD,OAAO,CACL,KAAC,OAAO;IACN,8DAA8D;IAC9D,kEAAkE;IAClE,2DAA2D;;QAF3D,8DAA8D;QAC9D,kEAAkE;QAClE,2DAA2D;QAC3D,SAAS,EAAE,SAAS,IAAI,CAAC,UAAU,EACnC,SAAS,EAAE,IAAI,EACf,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,KAAK,EACpB,OAAO,EACL,KAAC,MAAM,OACD,WAAW,EACf,UAAU,EAAE,UAAU,gBACV,GAAG,KAAK,KAAK,WAAW,EAAE,EACtC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,CAAC,UAAU,EAAE,EAAE;gBACtB,WAAW,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,CAAA;gBAEjC,MAAM,EAAE,CAAA;YACV,CAAC,EACD,IAAI,EAAE,IAAI,EACV,IAAI,EAAC,QAAQ,YAEZ,aAAa,KAAK,SAAS;gBAC1B,CAAC,CAAC,WAAW;gBACb,CAAC,CAAC,aAAa,CAAC,KAAK,GAChB,GAEX,CACH,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -3,6 +3,8 @@ import type { ReactNode } from "react";
|
|
|
3
3
|
export type QueryBuilderLabels = {
|
|
4
4
|
addGroup?: string;
|
|
5
5
|
addLeaf?: string;
|
|
6
|
+
/** The caption over each group's combinator picker. */
|
|
7
|
+
match?: string;
|
|
6
8
|
removeGroup?: string;
|
|
7
9
|
removeLeaf?: string;
|
|
8
10
|
};
|
|
@@ -19,6 +21,35 @@ export type QueryBuilderProps<Combinator, Leaf> = {
|
|
|
19
21
|
/** The value a fresh leaf is born with when "+ Condition" is pressed. */
|
|
20
22
|
createLeafValue: () => Leaf;
|
|
21
23
|
labels?: QueryBuilderLabels;
|
|
24
|
+
/**
|
|
25
|
+
* The group's combinator control, when one `Listbox` over a flat
|
|
26
|
+
* option list is the wrong shape for it.
|
|
27
|
+
*
|
|
28
|
+
* Optional, and the default is the right answer for most consumers:
|
|
29
|
+
* a combinator that is a plain enum reads as one picker. But a
|
|
30
|
+
* combinator can be a *composite* — mux-magic's is a quantifier
|
|
31
|
+
* (ANY/ALL/NO) crossed with a target (a nested group, a style row,
|
|
32
|
+
* a script-info block), and the legal pairs are asymmetric
|
|
33
|
+
* (`notAllScriptInfo` exists, `notAllStyle` does not). Flattened
|
|
34
|
+
* into one list that is nine options where the user is making two
|
|
35
|
+
* choices, and the illegal pairs are invisible until they are
|
|
36
|
+
* missing.
|
|
37
|
+
*
|
|
38
|
+
* So the combinator is app-ownable for the same reason `renderLeaf`
|
|
39
|
+
* is: `Combinator` is opaque here, and only the app knows whether
|
|
40
|
+
* its shape is an enum or a product. `options` and the current
|
|
41
|
+
* `value` are handed over unchanged; the app calls `onChange` with a
|
|
42
|
+
* real `Combinator`.
|
|
43
|
+
*/
|
|
44
|
+
renderCombinator?: (args: {
|
|
45
|
+
nodeId: string;
|
|
46
|
+
onChange: (combinator: Combinator) => void;
|
|
47
|
+
options: readonly {
|
|
48
|
+
label: string;
|
|
49
|
+
value: Combinator;
|
|
50
|
+
}[];
|
|
51
|
+
value: Combinator;
|
|
52
|
+
}) => ReactNode;
|
|
22
53
|
/**
|
|
23
54
|
* The leaf UI, owned by the app. `QueryBuilder` knows nothing about
|
|
24
55
|
* what a condition *is* — a field/operator/value triple, a
|
|
@@ -60,5 +91,5 @@ export type QueryBuilderProps<Combinator, Leaf> = {
|
|
|
60
91
|
* renders groups, and both are rendered inside a `.map`, which is
|
|
61
92
|
* exactly the shape the member-file rule is for.
|
|
62
93
|
*/
|
|
63
|
-
export declare const QueryBuilder: <Combinator, Leaf>({ combinatorOptions, createLeafValue, labels, renderLeaf, tree, }: QueryBuilderProps<Combinator, Leaf>) => ReactNode;
|
|
94
|
+
export declare const QueryBuilder: <Combinator, Leaf>({ combinatorOptions, createLeafValue, labels, renderCombinator, renderLeaf, tree, }: QueryBuilderProps<Combinator, Leaf>) => ReactNode;
|
|
64
95
|
//# sourceMappingURL=QueryBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryBuilder.d.ts","sourceRoot":"","sources":["../../src/QueryBuilder/QueryBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAK9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,iBAAiB,CAAC,UAAU,EAAE,IAAI,IAAI;IAChD;;;;OAIG;IACH,iBAAiB,EAAE,SAAS;QAC1B,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,UAAU,CAAA;KAClB,EAAE,CAAA;IACH,yEAAyE;IACzE,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,MAAM,CAAC,EAAE,kBAAkB,CAAA;IAC3B;;;;;OAKG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE;QACjB,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,IAAI,CAAA;QAC/B,KAAK,EAAE,IAAI,CAAA;KACZ,KAAK,SAAS,CAAA;IACf;;;;;OAKG;IACH,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;CAC7B,CAAA;
|
|
1
|
+
{"version":3,"file":"QueryBuilder.d.ts","sourceRoot":"","sources":["../../src/QueryBuilder/QueryBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,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AACH,eAAO,MAAM,YAAY,GAAI,UAAU,EAAE,IAAI,EAAE,qFAO5C,iBAAiB,CAAC,UAAU,EAAE,IAAI,CAAC,KAAG,SAkBxC,CAAA"}
|
|
@@ -4,6 +4,7 @@ import { QueryBuilderGroup } from "./QueryBuilderGroup.js";
|
|
|
4
4
|
const DEFAULT_LABELS = {
|
|
5
5
|
addGroup: "Add group",
|
|
6
6
|
addLeaf: "Add condition",
|
|
7
|
+
match: "Match",
|
|
7
8
|
removeGroup: "Remove group",
|
|
8
9
|
removeLeaf: "Remove condition",
|
|
9
10
|
};
|
|
@@ -29,9 +30,9 @@ const DEFAULT_LABELS = {
|
|
|
29
30
|
* renders groups, and both are rendered inside a `.map`, which is
|
|
30
31
|
* exactly the shape the member-file rule is for.
|
|
31
32
|
*/
|
|
32
|
-
export const QueryBuilder = ({ combinatorOptions, createLeafValue, labels, renderLeaf, tree, }) => {
|
|
33
|
+
export const QueryBuilder = ({ combinatorOptions, createLeafValue, labels, renderCombinator, renderLeaf, tree, }) => {
|
|
33
34
|
const state = useStoreValue(tree);
|
|
34
35
|
const resolvedLabels = { ...DEFAULT_LABELS, ...labels };
|
|
35
|
-
return (_jsx(QueryBuilderGroup, { combinatorOptions: combinatorOptions, createLeafValue: createLeafValue, depth: 0, labels: resolvedLabels, node: selectRootGroup(state), renderLeaf: renderLeaf, state: state, tree: tree }));
|
|
36
|
+
return (_jsx(QueryBuilderGroup, { combinatorOptions: combinatorOptions, createLeafValue: createLeafValue, depth: 0, labels: resolvedLabels, node: selectRootGroup(state), renderCombinator: renderCombinator, renderLeaf: renderLeaf, state: state, tree: tree }));
|
|
36
37
|
};
|
|
37
38
|
//# sourceMappingURL=QueryBuilder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryBuilder.js","sourceRoot":"","sources":["../../src/QueryBuilder/QueryBuilder.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,eAAe,EACf,aAAa,GACd,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"QueryBuilder.js","sourceRoot":"","sources":["../../src/QueryBuilder/QueryBuilder.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,eAAe,EACf,aAAa,GACd,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAyB,CAAA;AAyE3D,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,eAAe;IACxB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,cAAc;IAC3B,UAAU,EAAE,kBAAkB;CACQ,CAAA;AAExC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAmB,EAC7C,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,gBAAgB,EAChB,UAAU,EACV,IAAI,GACgC,EAAa,EAAE;IACnD,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,CAAA;IAEjC,MAAM,cAAc,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,MAAM,EAAE,CAAA;IAEvD,OAAO,CACL,KAAC,iBAAiB,IAChB,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,CAAC,EACR,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,eAAe,CAAC,KAAK,CAAC,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,GACV,CACH,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type QueryBuilderCombinatorProps<Combinator> = {
|
|
3
|
+
/** The visible caption above the control, e.g. "Match". */
|
|
4
|
+
label: string;
|
|
5
|
+
onChange: (combinator: Combinator) => void;
|
|
6
|
+
options: readonly {
|
|
7
|
+
label: string;
|
|
8
|
+
value: Combinator;
|
|
9
|
+
}[];
|
|
10
|
+
value: Combinator;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* One group's combinator picker.
|
|
14
|
+
*
|
|
15
|
+
* A `Picker` — a `Listbox` with its trigger attached — rather than a
|
|
16
|
+
* native `Select`, per
|
|
17
|
+
* [the 2026-08-10 demotion](../../../../docs/decisions/2026-08-10-listbox-and-combobox-are-the-default-and-select-is-demoted.md).
|
|
18
|
+
* This file used to assemble the trigger by hand; `Picker` exists
|
|
19
|
+
* because it was the fourth place in the fleet doing so.
|
|
20
|
+
*
|
|
21
|
+
* ### What is left here, and why it is still a component
|
|
22
|
+
*
|
|
23
|
+
* Only the bridging. `Combinator` is opaque to `QueryBuilder`, so it
|
|
24
|
+
* cannot reach `Picker`'s string-valued API directly: `String(value)`
|
|
25
|
+
* carries it out and the matching option carries it back, so the
|
|
26
|
+
* generic never leaks. The caption is plain text rather than a
|
|
27
|
+
* `Field`, because `useAnchoredOverlay` overwrites the trigger's `id`
|
|
28
|
+
* and a `<label htmlFor>` would then address an element that no longer
|
|
29
|
+
* carries it — the exact defect `Field` exists to prevent.
|
|
30
|
+
*/
|
|
31
|
+
export declare const QueryBuilderCombinator: <Combinator>({ label, onChange, options, value, }: QueryBuilderCombinatorProps<Combinator>) => ReactNode;
|
|
32
|
+
//# sourceMappingURL=QueryBuilderCombinator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryBuilderCombinator.d.ts","sourceRoot":"","sources":["../../src/QueryBuilder/QueryBuilderCombinator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,MAAM,MAAM,2BAA2B,CAAC,UAAU,IAAI;IACpD,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAA;IAC1C,OAAO,EAAE,SAAS;QAChB,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,UAAU,CAAA;KAClB,EAAE,CAAA;IACH,KAAK,EAAE,UAAU,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,sBAAsB,GAAI,UAAU,EAAG,sCAKjD,2BAA2B,CAAC,UAAU,CAAC,KAAG,SA6B5C,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Picker } from "../Picker/Picker.js";
|
|
3
|
+
/**
|
|
4
|
+
* One group's combinator picker.
|
|
5
|
+
*
|
|
6
|
+
* A `Picker` — a `Listbox` with its trigger attached — rather than a
|
|
7
|
+
* native `Select`, per
|
|
8
|
+
* [the 2026-08-10 demotion](../../../../docs/decisions/2026-08-10-listbox-and-combobox-are-the-default-and-select-is-demoted.md).
|
|
9
|
+
* This file used to assemble the trigger by hand; `Picker` exists
|
|
10
|
+
* because it was the fourth place in the fleet doing so.
|
|
11
|
+
*
|
|
12
|
+
* ### What is left here, and why it is still a component
|
|
13
|
+
*
|
|
14
|
+
* Only the bridging. `Combinator` is opaque to `QueryBuilder`, so it
|
|
15
|
+
* cannot reach `Picker`'s string-valued API directly: `String(value)`
|
|
16
|
+
* carries it out and the matching option carries it back, so the
|
|
17
|
+
* generic never leaks. The caption is plain text rather than a
|
|
18
|
+
* `Field`, because `useAnchoredOverlay` overwrites the trigger's `id`
|
|
19
|
+
* and a `<label htmlFor>` would then address an element that no longer
|
|
20
|
+
* carries it — the exact defect `Field` exists to prevent.
|
|
21
|
+
*/
|
|
22
|
+
export const QueryBuilderCombinator = ({ label, onChange, options, value, }) => (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx("span", { className: "font-medium text-content-primary text-sm", children: label }), _jsx(Picker
|
|
23
|
+
// No chevron: this is a refactor onto the shared component, and
|
|
24
|
+
// the trigger that shipped in 2.14.0 had none. Adding the
|
|
25
|
+
// affordance here is a visual change and belongs in its own PR,
|
|
26
|
+
// not smuggled in under an extraction.
|
|
27
|
+
, {
|
|
28
|
+
// No chevron: this is a refactor onto the shared component, and
|
|
29
|
+
// the trigger that shipped in 2.14.0 had none. Adding the
|
|
30
|
+
// affordance here is a visual change and belongs in its own PR,
|
|
31
|
+
// not smuggled in under an extraction.
|
|
32
|
+
iconEnd: null, label: label, onChange: (nextValue) => {
|
|
33
|
+
const match = options.find((option) => String(option.value) === nextValue);
|
|
34
|
+
if (match) {
|
|
35
|
+
onChange(match.value);
|
|
36
|
+
}
|
|
37
|
+
}, options: options.map((option) => ({
|
|
38
|
+
label: option.label,
|
|
39
|
+
value: String(option.value),
|
|
40
|
+
})), value: String(value) })] }));
|
|
41
|
+
//# sourceMappingURL=QueryBuilderCombinator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryBuilderCombinator.js","sourceRoot":"","sources":["../../src/QueryBuilder/QueryBuilderCombinator.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAsB,CAAA;AAa7C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAc,EAClD,KAAK,EACL,QAAQ,EACR,OAAO,EACP,KAAK,GACmC,EAAa,EAAE,CAAC,CACxD,eAAK,SAAS,EAAC,uBAAuB,aACpC,eAAM,SAAS,EAAC,0CAA0C,YACvD,KAAK,GACD,EAEP,KAAC,MAAM;QACL,gEAAgE;QAChE,0DAA0D;QAC1D,gEAAgE;QAChE,uCAAuC;;YAHvC,gEAAgE;YAChE,0DAA0D;YAC1D,gEAAgE;YAChE,uCAAuC;YACvC,OAAO,EAAE,IAAI,EACb,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE;gBACtB,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CACxB,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,SAAS,CAC/C,CAAA;gBAED,IAAI,KAAK,EAAE,CAAC;oBACV,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;gBACvB,CAAC;YACH,CAAC,EACD,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAChC,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;aAC5B,CAAC,CAAC,EACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,GACpB,IACE,CACP,CAAA"}
|
|
@@ -11,6 +11,15 @@ export type QueryBuilderGroupProps<Combinator, Leaf> = {
|
|
|
11
11
|
depth: number;
|
|
12
12
|
labels: Required<QueryBuilderLabels>;
|
|
13
13
|
node: TreeGroupNode<Combinator>;
|
|
14
|
+
renderCombinator?: (args: {
|
|
15
|
+
nodeId: string;
|
|
16
|
+
onChange: (combinator: Combinator) => void;
|
|
17
|
+
options: readonly {
|
|
18
|
+
label: string;
|
|
19
|
+
value: Combinator;
|
|
20
|
+
}[];
|
|
21
|
+
value: Combinator;
|
|
22
|
+
}) => ReactNode;
|
|
14
23
|
renderLeaf: (args: {
|
|
15
24
|
nodeId: string;
|
|
16
25
|
onChange: (value: Leaf) => void;
|
|
@@ -20,18 +29,14 @@ export type QueryBuilderGroupProps<Combinator, Leaf> = {
|
|
|
20
29
|
tree: Tree<Combinator, Leaf>;
|
|
21
30
|
};
|
|
22
31
|
/**
|
|
23
|
-
* One match group: a "Match" combinator
|
|
32
|
+
* One match group: a "Match" combinator picker, its children (leaf
|
|
24
33
|
* rows and nested groups), and a toolbar to add either. Its own file
|
|
25
34
|
* because it renders itself recursively for nested groups and is
|
|
26
35
|
* itself rendered inside the parent's `.map` — the member-file case.
|
|
27
36
|
*
|
|
28
|
-
* The
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* `Combinator` before it reaches `setCombinator`. That keeps
|
|
32
|
-
* `Combinator` fully generic while still using the platform control
|
|
33
|
-
* that brings type-ahead, the mobile wheel, and form semantics for
|
|
34
|
-
* free.
|
|
37
|
+
* The picker is `QueryBuilderCombinator`, a `Listbox` rather than the
|
|
38
|
+
* native `Select` this shipped with — see that file for why it is a
|
|
39
|
+
* component and how it stays generic over an opaque `Combinator`.
|
|
35
40
|
*/
|
|
36
|
-
export declare const QueryBuilderGroup: <Combinator, Leaf>({ combinatorOptions, createLeafValue, depth, labels, node, renderLeaf, state, tree, }: QueryBuilderGroupProps<Combinator, Leaf>) => ReactNode;
|
|
41
|
+
export declare const QueryBuilderGroup: <Combinator, Leaf>({ combinatorOptions, createLeafValue, depth, labels, node, renderCombinator, renderLeaf, state, tree, }: QueryBuilderGroupProps<Combinator, Leaf>) => ReactNode;
|
|
37
42
|
//# sourceMappingURL=QueryBuilderGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryBuilderGroup.d.ts","sourceRoot":"","sources":["../../src/QueryBuilder/QueryBuilderGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACJ,aAAa,EACb,SAAS,EACV,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"QueryBuilderGroup.d.ts","sourceRoot":"","sources":["../../src/QueryBuilder/QueryBuilderGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACJ,aAAa,EACb,SAAS,EACV,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAI5D,MAAM,MAAM,sBAAsB,CAAC,UAAU,EAAE,IAAI,IAAI;IACrD,iBAAiB,EAAE,SAAS;QAC1B,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,UAAU,CAAA;KAClB,EAAE,CAAA;IACH,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAA;IACpC,IAAI,EAAE,aAAa,CAAC,UAAU,CAAC,CAAA;IAC/B,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE;QACxB,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAA;QAC1C,OAAO,EAAE,SAAS;YAChB,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,UAAU,CAAA;SAClB,EAAE,CAAA;QACH,KAAK,EAAE,UAAU,CAAA;KAClB,KAAK,SAAS,CAAA;IACf,UAAU,EAAE,CAAC,IAAI,EAAE;QACjB,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,IAAI,CAAA;QAC/B,KAAK,EAAE,IAAI,CAAA;KACZ,KAAK,SAAS,CAAA;IACf,KAAK,EAAE,SAAS,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;IAClC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;CAC7B,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,EAAE,IAAI,EAAE,yGAUjD,sBAAsB,CAAC,UAAU,EAAE,IAAI,CAAC,KAAG,SA4H7C,CAAA"}
|
|
@@ -2,45 +2,39 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { selectChildNodes } from "@charcuterie/logic";
|
|
3
3
|
import { Button } from "../Button/Button.js";
|
|
4
4
|
import { Card } from "../Card/Card.js";
|
|
5
|
-
import { Field } from "../Field/Field.js";
|
|
6
5
|
import { IconButton } from "../IconButton/IconButton.js";
|
|
7
|
-
import { Select } from "../Select/Select.js";
|
|
8
6
|
import { toClassName } from "../toClassName.js";
|
|
7
|
+
import { QueryBuilderCombinator } from "./QueryBuilderCombinator.js";
|
|
9
8
|
import { QueryBuilderRow } from "./QueryBuilderRow.js";
|
|
10
9
|
/**
|
|
11
|
-
* One match group: a "Match" combinator
|
|
10
|
+
* One match group: a "Match" combinator picker, its children (leaf
|
|
12
11
|
* rows and nested groups), and a toolbar to add either. Its own file
|
|
13
12
|
* because it renders itself recursively for nested groups and is
|
|
14
13
|
* itself rendered inside the parent's `.map` — the member-file case.
|
|
15
14
|
*
|
|
16
|
-
* The
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* `Combinator` before it reaches `setCombinator`. That keeps
|
|
20
|
-
* `Combinator` fully generic while still using the platform control
|
|
21
|
-
* that brings type-ahead, the mobile wheel, and form semantics for
|
|
22
|
-
* free.
|
|
15
|
+
* The picker is `QueryBuilderCombinator`, a `Listbox` rather than the
|
|
16
|
+
* native `Select` this shipped with — see that file for why it is a
|
|
17
|
+
* component and how it stays generic over an opaque `Combinator`.
|
|
23
18
|
*/
|
|
24
|
-
export const QueryBuilderGroup = ({ combinatorOptions, createLeafValue, depth, labels, node, renderLeaf, state, tree, }) => {
|
|
19
|
+
export const QueryBuilderGroup = ({ combinatorOptions, createLeafValue, depth, labels, node, renderCombinator, renderLeaf, state, tree, }) => {
|
|
25
20
|
const children = selectChildNodes(state, node.id);
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}));
|
|
21
|
+
const setCombinator = (nextCombinator) => {
|
|
22
|
+
tree.setCombinator(node.id, nextCombinator);
|
|
23
|
+
};
|
|
30
24
|
const card = (_jsx(Card
|
|
31
25
|
// Nested groups sit on the sunken surface so the depth reads as
|
|
32
26
|
// recession, not another raised card floating at the same level.
|
|
33
27
|
, {
|
|
34
28
|
// Nested groups sit on the sunken surface so the depth reads as
|
|
35
29
|
// recession, not another raised card floating at the same level.
|
|
36
|
-
surface: depth === 0 ? "raised" : "sunken", children: _jsxs("div", { className: "flex flex-col gap-3", children: [_jsxs("div", { className: "flex items-start justify-between gap-2", children: [_jsx("div", { className: "min-w-52", children:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
surface: depth === 0 ? "raised" : "sunken", children: _jsxs("div", { className: "flex flex-col gap-3", children: [_jsxs("div", { className: "flex items-start justify-between gap-2", children: [_jsx("div", { className: "min-w-52", children: renderCombinator ? (renderCombinator({
|
|
31
|
+
nodeId: node.id,
|
|
32
|
+
onChange: setCombinator,
|
|
33
|
+
options: combinatorOptions,
|
|
34
|
+
value: node.combinator,
|
|
35
|
+
})) : (_jsx(QueryBuilderCombinator, { label: labels.match, onChange: setCombinator, options: combinatorOptions, value: node.combinator })) }), depth === 0 ? null : (_jsx(IconButton, { appearance: "ghost", intent: "danger", label: labels.removeGroup, onClick: () => {
|
|
42
36
|
tree.removeNode(node.id);
|
|
43
|
-
}, size: "sm", children: "\u2715" }))] }), children.length === 0 ? null : (_jsx("div", { className: "flex flex-col gap-2", children: children.map((child) => child.kind === "group" ? (_jsx(QueryBuilderGroup, { combinatorOptions: combinatorOptions, createLeafValue: createLeafValue, depth: depth + 1, labels: labels, node: child, renderLeaf: renderLeaf, state: state, tree: tree }, child.id)) : (_jsx(QueryBuilderRow, { label: labels.removeLeaf, nodeId: child.id, onChange: (value) => {
|
|
37
|
+
}, size: "sm", children: "\u2715" }))] }), children.length === 0 ? null : (_jsx("div", { className: "flex flex-col gap-2", children: children.map((child) => child.kind === "group" ? (_jsx(QueryBuilderGroup, { combinatorOptions: combinatorOptions, createLeafValue: createLeafValue, depth: depth + 1, labels: labels, node: child, renderCombinator: renderCombinator, renderLeaf: renderLeaf, state: state, tree: tree }, child.id)) : (_jsx(QueryBuilderRow, { label: labels.removeLeaf, nodeId: child.id, onChange: (value) => {
|
|
44
38
|
tree.patchLeaf(child.id, value);
|
|
45
39
|
}, onRemove: () => {
|
|
46
40
|
tree.removeNode(child.id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryBuilderGroup.js","sourceRoot":"","sources":["../../src/QueryBuilder/QueryBuilderGroup.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGrD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAsB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAkB,CAAA;AACvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"QueryBuilderGroup.js","sourceRoot":"","sources":["../../src/QueryBuilder/QueryBuilderGroup.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGrD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAsB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAkB,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA8B,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA8B,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAuB,CAAA;AA8BvD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAmB,EAClD,iBAAiB,EACjB,eAAe,EACf,KAAK,EACL,MAAM,EACN,IAAI,EACJ,gBAAgB,EAChB,UAAU,EACV,KAAK,EACL,IAAI,GACqC,EAAa,EAAE;IACxD,MAAM,QAAQ,GAAG,gBAAgB,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;IAEjD,MAAM,aAAa,GAAG,CAAC,cAA0B,EAAE,EAAE;QACnD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,cAAc,CAAC,CAAA;I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AChB,IACL,IACF,GACD,CACR,CAAA;IAED,qEAAqE;IACrE,oEAAoE;IACpE,gEAAgE;IAChE,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CACnB,IAAI,CACL,CAAC,CAAC,CAAC,CACF,cACE,SAAS,EAAE,WAAW,CACpB,6CAA6C,CAC9C,YAEA,IAAI,GACD,CACP,CAAA;AACH,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -92,6 +92,8 @@ export type { MenuItem, MenuProps, } from "./Menu/Menu.tsx";
|
|
|
92
92
|
export { Menu } from "./Menu/Menu.tsx";
|
|
93
93
|
export type { ModalProps } from "./Modal/Modal.tsx";
|
|
94
94
|
export { Modal } from "./Modal/Modal.tsx";
|
|
95
|
+
export type { PickerOption, PickerProps, } from "./Picker/Picker.tsx";
|
|
96
|
+
export { Picker } from "./Picker/Picker.tsx";
|
|
95
97
|
export type { PopoverProps } from "./Popover/Popover.tsx";
|
|
96
98
|
export { Popover } from "./Popover/Popover.tsx";
|
|
97
99
|
export type { ProgressBarProps, ProgressBarSize, } from "./ProgressBar/ProgressBar.tsx";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,YAAY,EACV,qBAAqB,EACrB,aAAa,EACb,cAAc,GACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,YAAY,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAC9D,YAAY,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,0BAA0B,EAC1B,iCAAiC,EACjC,gBAAgB,EAChB,uBAAu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EAClB,mBAAmB,GACpB,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,OAAO,EACP,cAAc,EACd,eAAe,EACf,SAAS,GACV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,YAAY,EACV,kBAAkB,EAClB,aAAa,GACd,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAClD,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,YAAY,EACV,WAAW,EACX,gBAAgB,GACjB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACpE,YAAY,EACV,aAAa,EACb,cAAc,EACd,WAAW,EACX,YAAY,GACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,YAAY,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -61,6 +61,7 @@ export { MediaTile } from "./MediaTile/MediaTile.js";
|
|
|
61
61
|
export { mediaTransitions } from "./MediaTile/mediaStatus.js";
|
|
62
62
|
export { Menu } from "./Menu/Menu.js";
|
|
63
63
|
export { Modal } from "./Modal/Modal.js";
|
|
64
|
+
export { Picker } from "./Picker/Picker.js";
|
|
64
65
|
export { Popover } from "./Popover/Popover.js";
|
|
65
66
|
export { ProgressBar } from "./ProgressBar/ProgressBar.js";
|
|
66
67
|
export { getProgressIntent, toProgressPercent, toProgressValue, } from "./ProgressBar/progressValue.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAOH,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA2B,CAAA;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAiC,CAAA;AAE9D,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,0BAA0B,EAC1B,iCAAiC,EACjC,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,iCAAiC,CAAA;AAKxC,OAAO,EACL,6BAA6B,EAC7B,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,sCAAsC,CAAA;AAK7C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAmB,CAAA;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAmB,CAAA;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAqB,CAAA;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA6B,CAAA;AAMxD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAiB,CAAA;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAyB,CAAA;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA+C,CAAA;AAKnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA2C,CAAA;AAE7E,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAyB,CAAA;AAElD,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,mBAA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