@genesislcap/expression-builder 14.483.3-alpha-92cb1f2a8.0 → 14.484.1

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.
@@ -644,30 +644,30 @@
644
644
  "type": {
645
645
  "text": "CustomEvent"
646
646
  },
647
- "description": "Fired when the expression model changes"
647
+ "description": "Fired when the expression model changes. detail: `ChangeEventDetail`"
648
648
  },
649
649
  {
650
- "description": "Bubbled when a nested group add is requested",
650
+ "description": "Bubbled when a nested group add is requested. detail: `AddGroupEventDetail`",
651
651
  "name": "add-group"
652
652
  },
653
653
  {
654
- "description": "Bubbled when a group delete is requested",
654
+ "description": "Bubbled when a group delete is requested. detail: `DelGroupEventDetail`",
655
655
  "name": "del-group"
656
656
  },
657
657
  {
658
- "description": "Bubbled when a rule add is requested",
658
+ "description": "Bubbled when a rule add is requested. detail: `AddRuleEventDetail`",
659
659
  "name": "add-rule"
660
660
  },
661
661
  {
662
- "description": "Bubbled when a rule delete is requested",
662
+ "description": "Bubbled when a rule delete is requested. detail: `DelRuleEventDetail`",
663
663
  "name": "del-rule"
664
664
  },
665
665
  {
666
- "description": "Bubbled when group data changes",
666
+ "description": "Bubbled when group data changes. detail: `UpdateGroupEventDetail`",
667
667
  "name": "update-group"
668
668
  },
669
669
  {
670
- "description": "Bubbled when rule data changes",
670
+ "description": "Bubbled when rule data changes. detail: `UpdateRuleEventDetail`",
671
671
  "name": "update-rule"
672
672
  }
673
673
  ],
@@ -703,6 +703,14 @@
703
703
  "path": "src/main/index.ts",
704
704
  "declarations": [],
705
705
  "exports": [
706
+ {
707
+ "kind": "js",
708
+ "name": "*",
709
+ "declaration": {
710
+ "name": "*",
711
+ "package": "./events"
712
+ }
713
+ },
706
714
  {
707
715
  "kind": "js",
708
716
  "name": "*",
@@ -1241,19 +1249,19 @@
1241
1249
  }
1242
1250
  },
1243
1251
  {
1244
- "description": "Bubbled when adding a child rule",
1252
+ "description": "Bubbled when adding a child rule. detail: `AddRuleEventDetail`",
1245
1253
  "name": "add-rule"
1246
1254
  },
1247
1255
  {
1248
- "description": "Bubbled when adding a child group",
1256
+ "description": "Bubbled when adding a child group. detail: `AddGroupEventDetail`",
1249
1257
  "name": "add-group"
1250
1258
  },
1251
1259
  {
1252
- "description": "Bubbled when deleting this group",
1260
+ "description": "Bubbled when deleting this group. detail: `DelGroupEventDetail`",
1253
1261
  "name": "del-group"
1254
1262
  },
1255
1263
  {
1256
- "description": "Bubbled when combinator changes",
1264
+ "description": "Bubbled when combinator changes. detail: `UpdateGroupEventDetail`",
1257
1265
  "name": "update-group"
1258
1266
  }
1259
1267
  ],
@@ -1684,11 +1692,11 @@
1684
1692
  }
1685
1693
  },
1686
1694
  {
1687
- "description": "Bubbled when deleting this rule",
1695
+ "description": "Bubbled when deleting this rule. detail: `DelRuleEventDetail`",
1688
1696
  "name": "del-rule"
1689
1697
  },
1690
1698
  {
1691
- "description": "Bubbled when field/operator/value changes",
1699
+ "description": "Bubbled when field/operator/value changes. detail: `UpdateRuleEventDetail`",
1692
1700
  "name": "update-rule"
1693
1701
  }
1694
1702
  ],
@@ -1815,7 +1823,7 @@
1815
1823
  }
1816
1824
  },
1817
1825
  {
1818
- "description": "Bubbled when the selected field changes",
1826
+ "description": "Bubbled when the selected field changes. detail: `FieldSelectedEventDetail`",
1819
1827
  "name": "field-selected"
1820
1828
  }
1821
1829
  ],
@@ -1949,7 +1957,7 @@
1949
1957
  }
1950
1958
  },
1951
1959
  {
1952
- "description": "Bubbled when the selected operator changes",
1960
+ "description": "Bubbled when the selected operator changes. detail: `OperatorSelectedEventDetail`",
1953
1961
  "name": "operator-selected"
1954
1962
  }
1955
1963
  ],
@@ -2238,11 +2246,11 @@
2238
2246
  }
2239
2247
  },
2240
2248
  {
2241
- "description": "Bubbled when operand value changes",
2249
+ "description": "Bubbled when operand value changes. detail: `ValueUpdatedEventDetail`",
2242
2250
  "name": "value-updated"
2243
2251
  },
2244
2252
  {
2245
- "description": "Bubbled when a variadic operand is removed",
2253
+ "description": "Bubbled when a variadic operand is removed. detail: `RemoveVarArgEventDetail`",
2246
2254
  "name": "remove-variadic-operand"
2247
2255
  }
2248
2256
  ],
@@ -1,4 +1,5 @@
1
1
  import { Group, GroupMetadata, Rule } from '../types';
2
+ /** @beta Event names dispatched by the expression builder component family. */
2
3
  export declare enum Events {
3
4
  AddGroup = "add-group",
4
5
  DelGroup = "del-group",
@@ -11,6 +12,7 @@ export declare enum Events {
11
12
  ValueUpdated = "value-updated",
12
13
  RemoveVarArg = "remove-variadic-operand"
13
14
  }
15
+ /** @beta Maps each event name to the `detail` payload carried by its CustomEvent. */
14
16
  export type EventsDetailMap = {
15
17
  [Events.AddGroup]: {
16
18
  parentGroupId: string;
@@ -47,4 +49,31 @@ export type EventsDetailMap = {
47
49
  index: number;
48
50
  };
49
51
  };
52
+ /** @beta Detail payload for the `add-group` event. */
53
+ export type AddGroupEventDetail = EventsDetailMap[Events.AddGroup];
54
+ /** @beta Detail payload for the `del-group` event. */
55
+ export type DelGroupEventDetail = EventsDetailMap[Events.DelGroup];
56
+ /** @beta Detail payload for the `add-rule` event. */
57
+ export type AddRuleEventDetail = EventsDetailMap[Events.AddRule];
58
+ /** @beta Detail payload for the `del-rule` event. */
59
+ export type DelRuleEventDetail = EventsDetailMap[Events.DelRule];
60
+ /** @beta Detail payload for the `update-group` event. */
61
+ export type UpdateGroupEventDetail = EventsDetailMap[Events.UpdateGroup];
62
+ /** @beta Detail payload for the `update-rule` event. */
63
+ export type UpdateRuleEventDetail = EventsDetailMap[Events.UpdateRule];
64
+ /** @beta Detail payload for the `field-selected` event. */
65
+ export type FieldSelectedEventDetail = EventsDetailMap[Events.FieldSelected];
66
+ /** @beta Detail payload for the `operator-selected` event. */
67
+ export type OperatorSelectedEventDetail = EventsDetailMap[Events.OperatorSelected];
68
+ /** @beta Detail payload for the `value-updated` event. */
69
+ export type ValueUpdatedEventDetail = EventsDetailMap[Events.ValueUpdated];
70
+ /** @beta Detail payload for the `remove-variadic-operand` event. */
71
+ export type RemoveVarArgEventDetail = EventsDetailMap[Events.RemoveVarArg];
72
+ /**
73
+ * @beta Detail payload for the `change` event fired by the expression builder component.
74
+ * Alias of `Types.Group` exposed as a plain identifier: `Group` is otherwise only reachable
75
+ * through the `Types` namespace re-export, which the generated React wrapper's detail-type
76
+ * resolution can't follow.
77
+ */
78
+ export type ChangeEventDetail = Group;
50
79
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/main/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEtD,oBAAY,MAAM;IAChB,QAAQ,cAAc;IACtB,QAAQ,cAAc;IAEtB,OAAO,aAAa;IACpB,OAAO,aAAa;IAEpB,WAAW,iBAAiB;IAE5B,UAAU,gBAAgB;IAC1B,aAAa,mBAAmB;IAChC,gBAAgB,sBAAsB;IACtC,YAAY,kBAAkB;IAC9B,YAAY,4BAA4B;CACzC;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC;IACrF,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAEvC,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAErC,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;K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xD,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;AAEvE,2DAA2D;AAC3D,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AAE7E,8DAA8D;AAC9D,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAEnF,0DAA0D;AAC1D,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAE3E,oEAAoE;AACpE,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAE3E;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC"}
@@ -13,13 +13,13 @@ import { MetadataProvider } from '../utils/data-model';
13
13
  * where you want to use a different (e.g. domain specific) model then it will likely override then emit event and instead emit
14
14
  * it's own model. To check the underlying `Types.Group` model check the {@link ExpressionBuilder.model} property.
15
15
  *
16
- * @fires change - Fired when the expression model changes
17
- * @fires add-group - Bubbled when a nested group add is requested
18
- * @fires del-group - Bubbled when a group delete is requested
19
- * @fires add-rule - Bubbled when a rule add is requested
20
- * @fires del-rule - Bubbled when a rule delete is requested
21
- * @fires update-group - Bubbled when group data changes
22
- * @fires update-rule - Bubbled when rule data changes
16
+ * @fires change - Fired when the expression model changes. detail: `ChangeEventDetail`
17
+ * @fires add-group - Bubbled when a nested group add is requested. detail: `AddGroupEventDetail`
18
+ * @fires del-group - Bubbled when a group delete is requested. detail: `DelGroupEventDetail`
19
+ * @fires add-rule - Bubbled when a rule add is requested. detail: `AddRuleEventDetail`
20
+ * @fires del-rule - Bubbled when a rule delete is requested. detail: `DelRuleEventDetail`
21
+ * @fires update-group - Bubbled when group data changes. detail: `UpdateGroupEventDetail`
22
+ * @fires update-rule - Bubbled when rule data changes. detail: `UpdateRuleEventDetail`
23
23
  *
24
24
  * @beta
25
25
  */
@@ -4,10 +4,10 @@ import { Combinator, Config, ModelGroup, Styles } from '../../types';
4
4
  * Group node used inside expression-builder.
5
5
  * @beta
6
6
  *
7
- * @fires add-rule - Bubbled when adding a child rule
8
- * @fires add-group - Bubbled when adding a child group
9
- * @fires del-group - Bubbled when deleting this group
10
- * @fires update-group - Bubbled when combinator changes
7
+ * @fires add-rule - Bubbled when adding a child rule. detail: `AddRuleEventDetail`
8
+ * @fires add-group - Bubbled when adding a child group. detail: `AddGroupEventDetail`
9
+ * @fires del-group - Bubbled when deleting this group. detail: `DelGroupEventDetail`
10
+ * @fires update-group - Bubbled when combinator changes. detail: `UpdateGroupEventDetail`
11
11
  */
12
12
  export declare class ExpressionGroup extends GenesisElement {
13
13
  config: Config;
@@ -5,8 +5,8 @@ import { Events, EventsDetailMap } from '../events';
5
5
  * Rule node used inside expression-builder.
6
6
  * @beta
7
7
  *
8
- * @fires del-rule - Bubbled when deleting this rule
9
- * @fires update-rule - Bubbled when field/operator/value changes
8
+ * @fires del-rule - Bubbled when deleting this rule. detail: `DelRuleEventDetail`
9
+ * @fires update-rule - Bubbled when field/operator/value changes. detail: `UpdateRuleEventDetail`
10
10
  */
11
11
  export declare class ExpressionRule extends GenesisElement {
12
12
  config: Config;
@@ -1,3 +1,4 @@
1
+ export * from './events';
1
2
  export * from './expression-builder';
2
3
  export * from './expression-builder.styles';
3
4
  export * from './expression-builder.template';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/main/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/main/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC"}
@@ -4,7 +4,7 @@ import { Config, Field, Styles } from '../../types';
4
4
  * Field selector for expression rules.
5
5
  * @beta
6
6
  *
7
- * @fires field-selected - Bubbled when the selected field changes
7
+ * @fires field-selected - Bubbled when the selected field changes. detail: `FieldSelectedEventDetail`
8
8
  */
9
9
  export declare class RuleField extends GenesisElement {
10
10
  fields: Field[];
@@ -4,7 +4,7 @@ import { Config, Field, Operator, Styles } from '../../types';
4
4
  * Operator selector for expression rules.
5
5
  * @beta
6
6
  *
7
- * @fires operator-selected - Bubbled when the selected operator changes
7
+ * @fires operator-selected - Bubbled when the selected operator changes. detail: `OperatorSelectedEventDetail`
8
8
  */
9
9
  export declare class RuleOperator extends GenesisElement {
10
10
  operators: Operator[];
@@ -4,8 +4,8 @@ import { Config, Field, Operator, Styles } from '../../types';
4
4
  * Value editor for expression rules.
5
5
  * @beta
6
6
  *
7
- * @fires value-updated - Bubbled when operand value changes
8
- * @fires remove-variadic-operand - Bubbled when a variadic operand is removed
7
+ * @fires value-updated - Bubbled when operand value changes. detail: `ValueUpdatedEventDetail`
8
+ * @fires remove-variadic-operand - Bubbled when a variadic operand is removed. detail: `RemoveVarArgEventDetail`
9
9
  */
10
10
  export declare class RuleValue extends GenesisElement {
11
11
  valueIndex: string;
@@ -10,6 +10,7 @@ import type { ExpressionRule as ExpressionRuleWC } from './main/expression-rule/
10
10
  import type { RuleField as RuleFieldWC } from './main/rule-field/rule-field';
11
11
  import type { RuleOperator as RuleOperatorWC } from './main/rule-operator/rule-operator';
12
12
  import type { RuleValue as RuleValueWC } from './main/rule-value/rule-value';
13
+ import type { AddGroupEventDetail, AddRuleEventDetail, DelGroupEventDetail, DelRuleEventDetail, FieldSelectedEventDetail, OperatorSelectedEventDetail, RemoveVarArgEventDetail, UpdateGroupEventDetail, UpdateRuleEventDetail, ValueUpdatedEventDetail } from '@genesislcap/expression-builder';
13
14
 
14
15
  /** @internal Maps a web component class to its public props only.
15
16
  * keyof T skips private/protected members, so this avoids the TS error
@@ -44,12 +45,12 @@ export declare const ExpressionBuilder: React.ForwardRefExoticComponent<
44
45
  React.PropsWithChildren<
45
46
  Omit<PublicOf<ExpressionBuilderWC>, 'children' | 'style'> &
46
47
  HTMLWCProps & {
47
- onAddGroup?: (event: CustomEvent<unknown>) => void;
48
- onDelGroup?: (event: CustomEvent<unknown>) => void;
49
- onAddRule?: (event: CustomEvent<unknown>) => void;
50
- onDelRule?: (event: CustomEvent<unknown>) => void;
51
- onUpdateGroup?: (event: CustomEvent<unknown>) => void;
52
- onUpdateRule?: (event: CustomEvent<unknown>) => void;
48
+ onAddGroup?: (event: CustomEvent<AddGroupEventDetail>) => void;
49
+ onDelGroup?: (event: CustomEvent<DelGroupEventDetail>) => void;
50
+ onAddRule?: (event: CustomEvent<AddRuleEventDetail>) => void;
51
+ onDelRule?: (event: CustomEvent<DelRuleEventDetail>) => void;
52
+ onUpdateGroup?: (event: CustomEvent<UpdateGroupEventDetail>) => void;
53
+ onUpdateRule?: (event: CustomEvent<UpdateRuleEventDetail>) => void;
53
54
  }
54
55
  > & React.RefAttributes<ExpressionBuilderWC>
55
56
  >;
@@ -59,10 +60,10 @@ export declare const ExpressionGroup: React.ForwardRefExoticComponent<
59
60
  React.PropsWithChildren<
60
61
  Omit<PublicOf<ExpressionGroupWC>, 'children' | 'style'> &
61
62
  HTMLWCProps & {
62
- onAddRule?: (event: CustomEvent<unknown>) => void;
63
- onAddGroup?: (event: CustomEvent<unknown>) => void;
64
- onDelGroup?: (event: CustomEvent<unknown>) => void;
65
- onUpdateGroup?: (event: CustomEvent<unknown>) => void;
63
+ onAddRule?: (event: CustomEvent<AddRuleEventDetail>) => void;
64
+ onAddGroup?: (event: CustomEvent<AddGroupEventDetail>) => void;
65
+ onDelGroup?: (event: CustomEvent<DelGroupEventDetail>) => void;
66
+ onUpdateGroup?: (event: CustomEvent<UpdateGroupEventDetail>) => void;
66
67
  }
67
68
  > & React.RefAttributes<ExpressionGroupWC>
68
69
  >;
@@ -72,8 +73,8 @@ export declare const ExpressionRule: React.ForwardRefExoticComponent<
72
73
  React.PropsWithChildren<
73
74
  Omit<PublicOf<ExpressionRuleWC>, 'children' | 'style'> &
74
75
  HTMLWCProps & {
75
- onDelRule?: (event: CustomEvent<unknown>) => void;
76
- onUpdateRule?: (event: CustomEvent<unknown>) => void;
76
+ onDelRule?: (event: CustomEvent<DelRuleEventDetail>) => void;
77
+ onUpdateRule?: (event: CustomEvent<UpdateRuleEventDetail>) => void;
77
78
  }
78
79
  > & React.RefAttributes<ExpressionRuleWC>
79
80
  >;
@@ -83,7 +84,7 @@ export declare const RuleField: React.ForwardRefExoticComponent<
83
84
  React.PropsWithChildren<
84
85
  Omit<PublicOf<RuleFieldWC>, 'children' | 'style'> &
85
86
  HTMLWCProps & {
86
- onFieldSelected?: (event: CustomEvent<unknown>) => void;
87
+ onFieldSelected?: (event: CustomEvent<FieldSelectedEventDetail>) => void;
87
88
  }
88
89
  > & React.RefAttributes<RuleFieldWC>
89
90
  >;
@@ -93,7 +94,7 @@ export declare const RuleOperator: React.ForwardRefExoticComponent<
93
94
  React.PropsWithChildren<
94
95
  Omit<PublicOf<RuleOperatorWC>, 'children' | 'style'> &
95
96
  HTMLWCProps & {
96
- onOperatorSelected?: (event: CustomEvent<unknown>) => void;
97
+ onOperatorSelected?: (event: CustomEvent<OperatorSelectedEventDetail>) => void;
97
98
  }
98
99
  > & React.RefAttributes<RuleOperatorWC>
99
100
  >;
@@ -103,8 +104,8 @@ export declare const RuleValue: React.ForwardRefExoticComponent<
103
104
  React.PropsWithChildren<
104
105
  Omit<PublicOf<RuleValueWC>, 'children' | 'style'> &
105
106
  HTMLWCProps & {
106
- onValueUpdated?: (event: CustomEvent<unknown>) => void;
107
- onRemoveVariadicOperand?: (event: CustomEvent<unknown>) => void;
107
+ onValueUpdated?: (event: CustomEvent<ValueUpdatedEventDetail>) => void;
108
+ onRemoveVariadicOperand?: (event: CustomEvent<RemoveVarArgEventDetail>) => void;
108
109
  }
109
110
  > & React.RefAttributes<RuleValueWC>
110
111
  >;
@@ -1,3 +1,4 @@
1
+ /** @beta Event names dispatched by the expression builder component family. */
1
2
  export var Events;
2
3
  (function (Events) {
3
4
  Events["AddGroup"] = "add-group";
@@ -21,13 +21,13 @@ ExpressionRule;
21
21
  * where you want to use a different (e.g. domain specific) model then it will likely override then emit event and instead emit
22
22
  * it's own model. To check the underlying `Types.Group` model check the {@link ExpressionBuilder.model} property.
23
23
  *
24
- * @fires change - Fired when the expression model changes
25
- * @fires add-group - Bubbled when a nested group add is requested
26
- * @fires del-group - Bubbled when a group delete is requested
27
- * @fires add-rule - Bubbled when a rule add is requested
28
- * @fires del-rule - Bubbled when a rule delete is requested
29
- * @fires update-group - Bubbled when group data changes
30
- * @fires update-rule - Bubbled when rule data changes
24
+ * @fires change - Fired when the expression model changes. detail: `ChangeEventDetail`
25
+ * @fires add-group - Bubbled when a nested group add is requested. detail: `AddGroupEventDetail`
26
+ * @fires del-group - Bubbled when a group delete is requested. detail: `DelGroupEventDetail`
27
+ * @fires add-rule - Bubbled when a rule add is requested. detail: `AddRuleEventDetail`
28
+ * @fires del-rule - Bubbled when a rule delete is requested. detail: `DelRuleEventDetail`
29
+ * @fires update-group - Bubbled when group data changes. detail: `UpdateGroupEventDetail`
30
+ * @fires update-rule - Bubbled when rule data changes. detail: `UpdateRuleEventDetail`
31
31
  *
32
32
  * @beta
33
33
  */
@@ -8,10 +8,10 @@ import { template } from './expression-group.template';
8
8
  * Group node used inside expression-builder.
9
9
  * @beta
10
10
  *
11
- * @fires add-rule - Bubbled when adding a child rule
12
- * @fires add-group - Bubbled when adding a child group
13
- * @fires del-group - Bubbled when deleting this group
14
- * @fires update-group - Bubbled when combinator changes
11
+ * @fires add-rule - Bubbled when adding a child rule. detail: `AddRuleEventDetail`
12
+ * @fires add-group - Bubbled when adding a child group. detail: `AddGroupEventDetail`
13
+ * @fires del-group - Bubbled when deleting this group. detail: `DelGroupEventDetail`
14
+ * @fires update-group - Bubbled when combinator changes. detail: `UpdateGroupEventDetail`
15
15
  */
16
16
  let ExpressionGroup = class ExpressionGroup extends GenesisElement {
17
17
  connectedCallback() {
@@ -15,8 +15,8 @@ RuleValue;
15
15
  * Rule node used inside expression-builder.
16
16
  * @beta
17
17
  *
18
- * @fires del-rule - Bubbled when deleting this rule
19
- * @fires update-rule - Bubbled when field/operator/value changes
18
+ * @fires del-rule - Bubbled when deleting this rule. detail: `DelRuleEventDetail`
19
+ * @fires update-rule - Bubbled when field/operator/value changes. detail: `UpdateRuleEventDetail`
20
20
  */
21
21
  let ExpressionRule = class ExpressionRule extends GenesisElement {
22
22
  constructor() {
@@ -1,3 +1,4 @@
1
+ export * from './events';
1
2
  export * from './expression-builder';
2
3
  export * from './expression-builder.styles';
3
4
  export * from './expression-builder.template';
@@ -7,7 +7,7 @@ import { template } from './rule-field.template';
7
7
  * Field selector for expression rules.
8
8
  * @beta
9
9
  *
10
- * @fires field-selected - Bubbled when the selected field changes
10
+ * @fires field-selected - Bubbled when the selected field changes. detail: `FieldSelectedEventDetail`
11
11
  */
12
12
  let RuleField = class RuleField extends GenesisElement {
13
13
  constructor() {
@@ -7,7 +7,7 @@ import { template } from './rule-operator.template';
7
7
  * Operator selector for expression rules.
8
8
  * @beta
9
9
  *
10
- * @fires operator-selected - Bubbled when the selected operator changes
10
+ * @fires operator-selected - Bubbled when the selected operator changes. detail: `OperatorSelectedEventDetail`
11
11
  */
12
12
  let RuleOperator = class RuleOperator extends GenesisElement {
13
13
  constructor() {
@@ -9,8 +9,8 @@ import { ruleValueTemplate } from './rule-value.template';
9
9
  * Value editor for expression rules.
10
10
  * @beta
11
11
  *
12
- * @fires value-updated - Bubbled when operand value changes
13
- * @fires remove-variadic-operand - Bubbled when a variadic operand is removed
12
+ * @fires value-updated - Bubbled when operand value changes. detail: `ValueUpdatedEventDetail`
13
+ * @fires remove-variadic-operand - Bubbled when a variadic operand is removed. detail: `RemoveVarArgEventDetail`
14
14
  */
15
15
  let RuleValue = class RuleValue extends GenesisElement {
16
16
  constructor() {