@genesislcap/rapid-design-system 15.104.0 → 15.105.0-GENC-2037.2
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/custom-elements.json +68 -52
- package/dist/dts/react.d.ts +12 -9
- package/dist/react.cjs +23 -8
- package/dist/react.mjs +22 -7
- package/package.json +10 -10
|
@@ -886,11 +886,11 @@
|
|
|
886
886
|
},
|
|
887
887
|
{
|
|
888
888
|
"kind": "javascript-module",
|
|
889
|
-
"path": "src/accordion/accordion.styles.ts",
|
|
889
|
+
"path": "src/accordion-item/accordion-item.styles.ts",
|
|
890
890
|
"declarations": [
|
|
891
891
|
{
|
|
892
892
|
"kind": "function",
|
|
893
|
-
"name": "
|
|
893
|
+
"name": "rapidAccordionItemStyles",
|
|
894
894
|
"return": {
|
|
895
895
|
"type": {
|
|
896
896
|
"text": "ElementStyles"
|
|
@@ -915,24 +915,24 @@
|
|
|
915
915
|
"exports": [
|
|
916
916
|
{
|
|
917
917
|
"kind": "js",
|
|
918
|
-
"name": "
|
|
918
|
+
"name": "rapidAccordionItemStyles",
|
|
919
919
|
"declaration": {
|
|
920
|
-
"name": "
|
|
921
|
-
"module": "src/accordion/accordion.styles.ts"
|
|
920
|
+
"name": "rapidAccordionItemStyles",
|
|
921
|
+
"module": "src/accordion-item/accordion-item.styles.ts"
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
]
|
|
925
925
|
},
|
|
926
926
|
{
|
|
927
927
|
"kind": "javascript-module",
|
|
928
|
-
"path": "src/accordion/accordion.template.ts",
|
|
928
|
+
"path": "src/accordion-item/accordion-item.template.ts",
|
|
929
929
|
"declarations": [
|
|
930
930
|
{
|
|
931
931
|
"kind": "function",
|
|
932
|
-
"name": "
|
|
932
|
+
"name": "rapidAccordionItemTemplate",
|
|
933
933
|
"return": {
|
|
934
934
|
"type": {
|
|
935
|
-
"text": "ViewTemplate<
|
|
935
|
+
"text": "ViewTemplate<AccordionItem>"
|
|
936
936
|
}
|
|
937
937
|
},
|
|
938
938
|
"parameters": [
|
|
@@ -954,56 +954,56 @@
|
|
|
954
954
|
"exports": [
|
|
955
955
|
{
|
|
956
956
|
"kind": "js",
|
|
957
|
-
"name": "
|
|
957
|
+
"name": "rapidAccordionItemTemplate",
|
|
958
958
|
"declaration": {
|
|
959
|
-
"name": "
|
|
960
|
-
"module": "src/accordion/accordion.template.ts"
|
|
959
|
+
"name": "rapidAccordionItemTemplate",
|
|
960
|
+
"module": "src/accordion-item/accordion-item.template.ts"
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
963
|
]
|
|
964
964
|
},
|
|
965
965
|
{
|
|
966
966
|
"kind": "javascript-module",
|
|
967
|
-
"path": "src/accordion/accordion.ts",
|
|
967
|
+
"path": "src/accordion-item/accordion-item.ts",
|
|
968
968
|
"declarations": [
|
|
969
969
|
{
|
|
970
970
|
"kind": "class",
|
|
971
971
|
"description": "",
|
|
972
|
-
"name": "
|
|
972
|
+
"name": "AccordionItem",
|
|
973
973
|
"superclass": {
|
|
974
|
-
"name": "
|
|
974
|
+
"name": "foundationAccordionItem",
|
|
975
975
|
"package": "@genesislcap/foundation-ui"
|
|
976
976
|
},
|
|
977
|
-
"tagName": "%%prefix%%-accordion",
|
|
977
|
+
"tagName": "%%prefix%%-accordion-item",
|
|
978
978
|
"customElement": true
|
|
979
979
|
},
|
|
980
980
|
{
|
|
981
981
|
"kind": "variable",
|
|
982
|
-
"name": "
|
|
982
|
+
"name": "rapidAccordionItem"
|
|
983
983
|
}
|
|
984
984
|
],
|
|
985
985
|
"exports": [
|
|
986
986
|
{
|
|
987
987
|
"kind": "js",
|
|
988
|
-
"name": "
|
|
988
|
+
"name": "AccordionItem",
|
|
989
989
|
"declaration": {
|
|
990
|
-
"name": "
|
|
991
|
-
"module": "src/accordion/accordion.ts"
|
|
990
|
+
"name": "AccordionItem",
|
|
991
|
+
"module": "src/accordion-item/accordion-item.ts"
|
|
992
992
|
}
|
|
993
993
|
},
|
|
994
994
|
{
|
|
995
995
|
"kind": "js",
|
|
996
|
-
"name": "
|
|
996
|
+
"name": "rapidAccordionItem",
|
|
997
997
|
"declaration": {
|
|
998
|
-
"name": "
|
|
999
|
-
"module": "src/accordion/accordion.ts"
|
|
998
|
+
"name": "rapidAccordionItem",
|
|
999
|
+
"module": "src/accordion-item/accordion-item.ts"
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
]
|
|
1003
1003
|
},
|
|
1004
1004
|
{
|
|
1005
1005
|
"kind": "javascript-module",
|
|
1006
|
-
"path": "src/accordion/index.ts",
|
|
1006
|
+
"path": "src/accordion-item/index.ts",
|
|
1007
1007
|
"declarations": [],
|
|
1008
1008
|
"exports": [
|
|
1009
1009
|
{
|
|
@@ -1011,7 +1011,7 @@
|
|
|
1011
1011
|
"name": "*",
|
|
1012
1012
|
"declaration": {
|
|
1013
1013
|
"name": "*",
|
|
1014
|
-
"package": "./accordion"
|
|
1014
|
+
"package": "./accordion-item"
|
|
1015
1015
|
}
|
|
1016
1016
|
},
|
|
1017
1017
|
{
|
|
@@ -1019,7 +1019,7 @@
|
|
|
1019
1019
|
"name": "*",
|
|
1020
1020
|
"declaration": {
|
|
1021
1021
|
"name": "*",
|
|
1022
|
-
"package": "./accordion.styles"
|
|
1022
|
+
"package": "./accordion-item.styles"
|
|
1023
1023
|
}
|
|
1024
1024
|
},
|
|
1025
1025
|
{
|
|
@@ -1027,18 +1027,18 @@
|
|
|
1027
1027
|
"name": "*",
|
|
1028
1028
|
"declaration": {
|
|
1029
1029
|
"name": "*",
|
|
1030
|
-
"package": "./accordion.template"
|
|
1030
|
+
"package": "./accordion-item.template"
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
1033
|
]
|
|
1034
1034
|
},
|
|
1035
1035
|
{
|
|
1036
1036
|
"kind": "javascript-module",
|
|
1037
|
-
"path": "src/accordion
|
|
1037
|
+
"path": "src/accordion/accordion.styles.ts",
|
|
1038
1038
|
"declarations": [
|
|
1039
1039
|
{
|
|
1040
1040
|
"kind": "function",
|
|
1041
|
-
"name": "
|
|
1041
|
+
"name": "rapidAccordionStyles",
|
|
1042
1042
|
"return": {
|
|
1043
1043
|
"type": {
|
|
1044
1044
|
"text": "ElementStyles"
|
|
@@ -1063,24 +1063,24 @@
|
|
|
1063
1063
|
"exports": [
|
|
1064
1064
|
{
|
|
1065
1065
|
"kind": "js",
|
|
1066
|
-
"name": "
|
|
1066
|
+
"name": "rapidAccordionStyles",
|
|
1067
1067
|
"declaration": {
|
|
1068
|
-
"name": "
|
|
1069
|
-
"module": "src/accordion
|
|
1068
|
+
"name": "rapidAccordionStyles",
|
|
1069
|
+
"module": "src/accordion/accordion.styles.ts"
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
1072
|
]
|
|
1073
1073
|
},
|
|
1074
1074
|
{
|
|
1075
1075
|
"kind": "javascript-module",
|
|
1076
|
-
"path": "src/accordion
|
|
1076
|
+
"path": "src/accordion/accordion.template.ts",
|
|
1077
1077
|
"declarations": [
|
|
1078
1078
|
{
|
|
1079
1079
|
"kind": "function",
|
|
1080
|
-
"name": "
|
|
1080
|
+
"name": "rapidAccordionTemplate",
|
|
1081
1081
|
"return": {
|
|
1082
1082
|
"type": {
|
|
1083
|
-
"text": "ViewTemplate<
|
|
1083
|
+
"text": "ViewTemplate<Accordion>"
|
|
1084
1084
|
}
|
|
1085
1085
|
},
|
|
1086
1086
|
"parameters": [
|
|
@@ -1102,56 +1102,56 @@
|
|
|
1102
1102
|
"exports": [
|
|
1103
1103
|
{
|
|
1104
1104
|
"kind": "js",
|
|
1105
|
-
"name": "
|
|
1105
|
+
"name": "rapidAccordionTemplate",
|
|
1106
1106
|
"declaration": {
|
|
1107
|
-
"name": "
|
|
1108
|
-
"module": "src/accordion
|
|
1107
|
+
"name": "rapidAccordionTemplate",
|
|
1108
|
+
"module": "src/accordion/accordion.template.ts"
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
]
|
|
1112
1112
|
},
|
|
1113
1113
|
{
|
|
1114
1114
|
"kind": "javascript-module",
|
|
1115
|
-
"path": "src/accordion
|
|
1115
|
+
"path": "src/accordion/accordion.ts",
|
|
1116
1116
|
"declarations": [
|
|
1117
1117
|
{
|
|
1118
1118
|
"kind": "class",
|
|
1119
1119
|
"description": "",
|
|
1120
|
-
"name": "
|
|
1120
|
+
"name": "Accordion",
|
|
1121
1121
|
"superclass": {
|
|
1122
|
-
"name": "
|
|
1122
|
+
"name": "foundationAccordion",
|
|
1123
1123
|
"package": "@genesislcap/foundation-ui"
|
|
1124
1124
|
},
|
|
1125
|
-
"tagName": "%%prefix%%-accordion
|
|
1125
|
+
"tagName": "%%prefix%%-accordion",
|
|
1126
1126
|
"customElement": true
|
|
1127
1127
|
},
|
|
1128
1128
|
{
|
|
1129
1129
|
"kind": "variable",
|
|
1130
|
-
"name": "
|
|
1130
|
+
"name": "rapidAccordion"
|
|
1131
1131
|
}
|
|
1132
1132
|
],
|
|
1133
1133
|
"exports": [
|
|
1134
1134
|
{
|
|
1135
1135
|
"kind": "js",
|
|
1136
|
-
"name": "
|
|
1136
|
+
"name": "Accordion",
|
|
1137
1137
|
"declaration": {
|
|
1138
|
-
"name": "
|
|
1139
|
-
"module": "src/accordion
|
|
1138
|
+
"name": "Accordion",
|
|
1139
|
+
"module": "src/accordion/accordion.ts"
|
|
1140
1140
|
}
|
|
1141
1141
|
},
|
|
1142
1142
|
{
|
|
1143
1143
|
"kind": "js",
|
|
1144
|
-
"name": "
|
|
1144
|
+
"name": "rapidAccordion",
|
|
1145
1145
|
"declaration": {
|
|
1146
|
-
"name": "
|
|
1147
|
-
"module": "src/accordion
|
|
1146
|
+
"name": "rapidAccordion",
|
|
1147
|
+
"module": "src/accordion/accordion.ts"
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
1150
|
]
|
|
1151
1151
|
},
|
|
1152
1152
|
{
|
|
1153
1153
|
"kind": "javascript-module",
|
|
1154
|
-
"path": "src/accordion
|
|
1154
|
+
"path": "src/accordion/index.ts",
|
|
1155
1155
|
"declarations": [],
|
|
1156
1156
|
"exports": [
|
|
1157
1157
|
{
|
|
@@ -1159,7 +1159,7 @@
|
|
|
1159
1159
|
"name": "*",
|
|
1160
1160
|
"declaration": {
|
|
1161
1161
|
"name": "*",
|
|
1162
|
-
"package": "./accordion
|
|
1162
|
+
"package": "./accordion"
|
|
1163
1163
|
}
|
|
1164
1164
|
},
|
|
1165
1165
|
{
|
|
@@ -1167,7 +1167,7 @@
|
|
|
1167
1167
|
"name": "*",
|
|
1168
1168
|
"declaration": {
|
|
1169
1169
|
"name": "*",
|
|
1170
|
-
"package": "./accordion
|
|
1170
|
+
"package": "./accordion.styles"
|
|
1171
1171
|
}
|
|
1172
1172
|
},
|
|
1173
1173
|
{
|
|
@@ -1175,7 +1175,7 @@
|
|
|
1175
1175
|
"name": "*",
|
|
1176
1176
|
"declaration": {
|
|
1177
1177
|
"name": "*",
|
|
1178
|
-
"package": "./accordion
|
|
1178
|
+
"package": "./accordion.template"
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
1181
|
]
|
|
@@ -30456,6 +30456,14 @@
|
|
|
30456
30456
|
"name": "Combobox",
|
|
30457
30457
|
"module": "src/combobox/combobox.ts"
|
|
30458
30458
|
}
|
|
30459
|
+
},
|
|
30460
|
+
{
|
|
30461
|
+
"description": "Fired by a slotted `options-datasource` when the selection changes, with `null` when nothing matches. detail: `ValueChangeEventDetail | null`",
|
|
30462
|
+
"name": "value-change",
|
|
30463
|
+
"inheritedFrom": {
|
|
30464
|
+
"name": "Combobox",
|
|
30465
|
+
"module": "src/combobox/combobox.ts"
|
|
30466
|
+
}
|
|
30459
30467
|
}
|
|
30460
30468
|
]
|
|
30461
30469
|
},
|
|
@@ -33516,6 +33524,14 @@
|
|
|
33516
33524
|
"module": "src/select/select.ts"
|
|
33517
33525
|
}
|
|
33518
33526
|
},
|
|
33527
|
+
{
|
|
33528
|
+
"description": "Fired by a slotted `options-datasource` when the selection changes, with `null` when nothing matches. detail: `ValueChangeEventDetail | null`",
|
|
33529
|
+
"name": "value-change",
|
|
33530
|
+
"inheritedFrom": {
|
|
33531
|
+
"name": "Select",
|
|
33532
|
+
"module": "src/select/select.ts"
|
|
33533
|
+
}
|
|
33534
|
+
},
|
|
33519
33535
|
{
|
|
33520
33536
|
"description": "Fires a custom 'input' event when the value updates",
|
|
33521
33537
|
"name": "input",
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ import type { UrlInput as UrlInputWC } from './url-input/url-input';
|
|
|
89
89
|
import type { VerificationCodeInput as VerificationCodeInputWC } from './verification-code-input/verification-code-input';
|
|
90
90
|
import type { RapidButtonAppearance } from './button/button.styles';
|
|
91
91
|
import type { AddGroupEventDetail, AddRuleEventDetail, DelGroupEventDetail, DelRuleEventDetail, UpdateGroupEventDetail, UpdateRuleEventDetail } from '@genesislcap/expression-builder';
|
|
92
|
-
import type { ClearOptions, FileSelectedEventDetail, FilterChangedEventDetail, FilterClearedEventDetail, MultiselectOption, OpenChangeEventDetail, SelectedOption, StepClickEventDetail, ValidationError, ValidationFailureEventDetail, VerificationCodeInputEventDetail } from '@genesislcap/foundation-ui';
|
|
92
|
+
import type { ClearOptions, FileSelectedEventDetail, FilterChangedEventDetail, FilterClearedEventDetail, MultiselectOption, OpenChangeEventDetail, SelectedOption, StepClickEventDetail, ValidationError, ValidationFailureEventDetail, ValueChangeEventDetail, VerificationCodeInputEventDetail } from '@genesislcap/foundation-ui';
|
|
93
93
|
|
|
94
94
|
/** @internal Maps a web component class to its public props only.
|
|
95
95
|
* keyof T skips private/protected members, so this avoids the TS error
|
|
@@ -120,23 +120,23 @@ interface HTMLWCProps extends React.AriaAttributes {
|
|
|
120
120
|
onInput?(e: Event): void;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
export declare const
|
|
123
|
+
export declare const AccordionItem: React.ForwardRefExoticComponent<
|
|
124
124
|
React.PropsWithChildren<
|
|
125
|
-
Omit<PublicOf<
|
|
125
|
+
Omit<PublicOf<AccordionItemWC>, 'children' | 'style'> &
|
|
126
126
|
HTMLWCProps & {
|
|
127
127
|
}
|
|
128
|
-
> & React.RefAttributes<
|
|
128
|
+
> & React.RefAttributes<AccordionItemWC>
|
|
129
129
|
>;
|
|
130
|
-
export type
|
|
130
|
+
export type AccordionItemRef = AccordionItemWC;
|
|
131
131
|
|
|
132
|
-
export declare const
|
|
132
|
+
export declare const Accordion: React.ForwardRefExoticComponent<
|
|
133
133
|
React.PropsWithChildren<
|
|
134
|
-
Omit<PublicOf<
|
|
134
|
+
Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
|
|
135
135
|
HTMLWCProps & {
|
|
136
136
|
}
|
|
137
|
-
> & React.RefAttributes<
|
|
137
|
+
> & React.RefAttributes<AccordionWC>
|
|
138
138
|
>;
|
|
139
|
-
export type
|
|
139
|
+
export type AccordionRef = AccordionWC;
|
|
140
140
|
|
|
141
141
|
export declare const ActionsMenu: React.ForwardRefExoticComponent<
|
|
142
142
|
React.PropsWithChildren<
|
|
@@ -285,6 +285,7 @@ export declare const Combobox: React.ForwardRefExoticComponent<
|
|
|
285
285
|
Omit<PublicOf<ComboboxWC>, 'children' | 'style'> &
|
|
286
286
|
HTMLWCProps & {
|
|
287
287
|
onOpenChange?: (event: CustomEvent<OpenChangeEventDetail>) => void;
|
|
288
|
+
onValueChange?: (event: CustomEvent<ValueChangeEventDetail | null>) => void;
|
|
288
289
|
}
|
|
289
290
|
> & React.RefAttributes<ComboboxWC>
|
|
290
291
|
>;
|
|
@@ -655,6 +656,7 @@ export declare const SearchBarCombobox: React.ForwardRefExoticComponent<
|
|
|
655
656
|
Omit<PublicOf<SearchBarComboboxWC>, 'children' | 'style'> &
|
|
656
657
|
HTMLWCProps & {
|
|
657
658
|
onOpenChange?: (event: CustomEvent<OpenChangeEventDetail>) => void;
|
|
659
|
+
onValueChange?: (event: CustomEvent<ValueChangeEventDetail | null>) => void;
|
|
658
660
|
}
|
|
659
661
|
> & React.RefAttributes<SearchBarComboboxWC>
|
|
660
662
|
>;
|
|
@@ -706,6 +708,7 @@ export declare const Select: React.ForwardRefExoticComponent<
|
|
|
706
708
|
Omit<PublicOf<SelectWC>, 'children' | 'style'> &
|
|
707
709
|
HTMLWCProps & {
|
|
708
710
|
onOpenChange?: (event: CustomEvent<OpenChangeEventDetail>) => void;
|
|
711
|
+
onValueChange?: (event: CustomEvent<ValueChangeEventDetail | null>) => void;
|
|
709
712
|
}
|
|
710
713
|
> & React.RefAttributes<SelectWC>
|
|
711
714
|
>;
|
package/dist/react.cjs
CHANGED
|
@@ -99,14 +99,14 @@ function _mergeRefs(...refs) {
|
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
const
|
|
102
|
+
const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
|
|
103
103
|
const { children, ...rest } = props;
|
|
104
|
-
return React.createElement(customElements.getName(
|
|
104
|
+
return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-accordion-item', { ...rest, ref }, children);
|
|
105
105
|
});
|
|
106
106
|
|
|
107
|
-
const
|
|
107
|
+
const Accordion = React.forwardRef(function Accordion(props, ref) {
|
|
108
108
|
const { children, ...rest } = props;
|
|
109
|
-
return React.createElement(customElements.getName(
|
|
109
|
+
return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
|
|
110
110
|
});
|
|
111
111
|
|
|
112
112
|
const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
|
|
@@ -243,17 +243,22 @@ const Checkbox = React.forwardRef(function Checkbox(props, ref) {
|
|
|
243
243
|
});
|
|
244
244
|
|
|
245
245
|
const Combobox = React.forwardRef(function Combobox(props, ref) {
|
|
246
|
-
const { onOpenChange, children, ...rest } = props;
|
|
246
|
+
const { onOpenChange, onValueChange, children, ...rest } = props;
|
|
247
247
|
const _innerRef = React.useRef(null);
|
|
248
248
|
const _onOpenChangeRef = React.useRef(onOpenChange);
|
|
249
249
|
_onOpenChangeRef.current = onOpenChange;
|
|
250
|
+
const _onValueChangeRef = React.useRef(onValueChange);
|
|
251
|
+
_onValueChangeRef.current = onValueChange;
|
|
250
252
|
React.useLayoutEffect(() => {
|
|
251
253
|
const el = _innerRef.current;
|
|
252
254
|
if (!el) return;
|
|
253
255
|
const _onOpenChangeFn = (e) => _onOpenChangeRef.current?.(e);
|
|
254
256
|
el.addEventListener('open-change', _onOpenChangeFn);
|
|
257
|
+
const _onValueChangeFn = (e) => _onValueChangeRef.current?.(e);
|
|
258
|
+
el.addEventListener('value-change', _onValueChangeFn);
|
|
255
259
|
return () => {
|
|
256
260
|
el.removeEventListener('open-change', _onOpenChangeFn);
|
|
261
|
+
el.removeEventListener('value-change', _onValueChangeFn);
|
|
257
262
|
};
|
|
258
263
|
}, []);
|
|
259
264
|
return React.createElement(customElements.getName(ComboboxWC) ?? '%%prefix%%-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
@@ -704,17 +709,22 @@ const SchedulerTimezone = React.forwardRef(function SchedulerTimezone(props, ref
|
|
|
704
709
|
});
|
|
705
710
|
|
|
706
711
|
const SearchBarCombobox = React.forwardRef(function SearchBarCombobox(props, ref) {
|
|
707
|
-
const { onOpenChange, children, ...rest } = props;
|
|
712
|
+
const { onOpenChange, onValueChange, children, ...rest } = props;
|
|
708
713
|
const _innerRef = React.useRef(null);
|
|
709
714
|
const _onOpenChangeRef = React.useRef(onOpenChange);
|
|
710
715
|
_onOpenChangeRef.current = onOpenChange;
|
|
716
|
+
const _onValueChangeRef = React.useRef(onValueChange);
|
|
717
|
+
_onValueChangeRef.current = onValueChange;
|
|
711
718
|
React.useLayoutEffect(() => {
|
|
712
719
|
const el = _innerRef.current;
|
|
713
720
|
if (!el) return;
|
|
714
721
|
const _onOpenChangeFn = (e) => _onOpenChangeRef.current?.(e);
|
|
715
722
|
el.addEventListener('open-change', _onOpenChangeFn);
|
|
723
|
+
const _onValueChangeFn = (e) => _onValueChangeRef.current?.(e);
|
|
724
|
+
el.addEventListener('value-change', _onValueChangeFn);
|
|
716
725
|
return () => {
|
|
717
726
|
el.removeEventListener('open-change', _onOpenChangeFn);
|
|
727
|
+
el.removeEventListener('value-change', _onValueChangeFn);
|
|
718
728
|
};
|
|
719
729
|
}, []);
|
|
720
730
|
return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
@@ -780,17 +790,22 @@ const SegmentedItem = React.forwardRef(function SegmentedItem(props, ref) {
|
|
|
780
790
|
});
|
|
781
791
|
|
|
782
792
|
const Select = React.forwardRef(function Select(props, ref) {
|
|
783
|
-
const { onOpenChange, children, ...rest } = props;
|
|
793
|
+
const { onOpenChange, onValueChange, children, ...rest } = props;
|
|
784
794
|
const _innerRef = React.useRef(null);
|
|
785
795
|
const _onOpenChangeRef = React.useRef(onOpenChange);
|
|
786
796
|
_onOpenChangeRef.current = onOpenChange;
|
|
797
|
+
const _onValueChangeRef = React.useRef(onValueChange);
|
|
798
|
+
_onValueChangeRef.current = onValueChange;
|
|
787
799
|
React.useLayoutEffect(() => {
|
|
788
800
|
const el = _innerRef.current;
|
|
789
801
|
if (!el) return;
|
|
790
802
|
const _onOpenChangeFn = (e) => _onOpenChangeRef.current?.(e);
|
|
791
803
|
el.addEventListener('open-change', _onOpenChangeFn);
|
|
804
|
+
const _onValueChangeFn = (e) => _onValueChangeRef.current?.(e);
|
|
805
|
+
el.addEventListener('value-change', _onValueChangeFn);
|
|
792
806
|
return () => {
|
|
793
807
|
el.removeEventListener('open-change', _onOpenChangeFn);
|
|
808
|
+
el.removeEventListener('value-change', _onValueChangeFn);
|
|
794
809
|
};
|
|
795
810
|
}, []);
|
|
796
811
|
return React.createElement(customElements.getName(SelectWC) ?? '%%prefix%%-select', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
@@ -1004,8 +1019,8 @@ const SystemHealthOverlay = React.forwardRef(function SystemHealthOverlay(props,
|
|
|
1004
1019
|
});
|
|
1005
1020
|
|
|
1006
1021
|
module.exports = {
|
|
1007
|
-
Accordion,
|
|
1008
1022
|
AccordionItem,
|
|
1023
|
+
Accordion,
|
|
1009
1024
|
ActionsMenu,
|
|
1010
1025
|
AiCriteriaSearch,
|
|
1011
1026
|
AiIndicator,
|
package/dist/react.mjs
CHANGED
|
@@ -97,14 +97,14 @@ function _mergeRefs(...refs) {
|
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
export const
|
|
100
|
+
export const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
|
|
101
101
|
const { children, ...rest } = props;
|
|
102
|
-
return React.createElement(customElements.getName(
|
|
102
|
+
return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-accordion-item', { ...rest, ref }, children);
|
|
103
103
|
});
|
|
104
104
|
|
|
105
|
-
export const
|
|
105
|
+
export const Accordion = React.forwardRef(function Accordion(props, ref) {
|
|
106
106
|
const { children, ...rest } = props;
|
|
107
|
-
return React.createElement(customElements.getName(
|
|
107
|
+
return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
|
|
108
108
|
});
|
|
109
109
|
|
|
110
110
|
export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
|
|
@@ -241,17 +241,22 @@ export const Checkbox = React.forwardRef(function Checkbox(props, ref) {
|
|
|
241
241
|
});
|
|
242
242
|
|
|
243
243
|
export const Combobox = React.forwardRef(function Combobox(props, ref) {
|
|
244
|
-
const { onOpenChange, children, ...rest } = props;
|
|
244
|
+
const { onOpenChange, onValueChange, children, ...rest } = props;
|
|
245
245
|
const _innerRef = React.useRef(null);
|
|
246
246
|
const _onOpenChangeRef = React.useRef(onOpenChange);
|
|
247
247
|
_onOpenChangeRef.current = onOpenChange;
|
|
248
|
+
const _onValueChangeRef = React.useRef(onValueChange);
|
|
249
|
+
_onValueChangeRef.current = onValueChange;
|
|
248
250
|
React.useLayoutEffect(() => {
|
|
249
251
|
const el = _innerRef.current;
|
|
250
252
|
if (!el) return;
|
|
251
253
|
const _onOpenChangeFn = (e) => _onOpenChangeRef.current?.(e);
|
|
252
254
|
el.addEventListener('open-change', _onOpenChangeFn);
|
|
255
|
+
const _onValueChangeFn = (e) => _onValueChangeRef.current?.(e);
|
|
256
|
+
el.addEventListener('value-change', _onValueChangeFn);
|
|
253
257
|
return () => {
|
|
254
258
|
el.removeEventListener('open-change', _onOpenChangeFn);
|
|
259
|
+
el.removeEventListener('value-change', _onValueChangeFn);
|
|
255
260
|
};
|
|
256
261
|
}, []);
|
|
257
262
|
return React.createElement(customElements.getName(ComboboxWC) ?? '%%prefix%%-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
@@ -702,17 +707,22 @@ export const SchedulerTimezone = React.forwardRef(function SchedulerTimezone(pro
|
|
|
702
707
|
});
|
|
703
708
|
|
|
704
709
|
export const SearchBarCombobox = React.forwardRef(function SearchBarCombobox(props, ref) {
|
|
705
|
-
const { onOpenChange, children, ...rest } = props;
|
|
710
|
+
const { onOpenChange, onValueChange, children, ...rest } = props;
|
|
706
711
|
const _innerRef = React.useRef(null);
|
|
707
712
|
const _onOpenChangeRef = React.useRef(onOpenChange);
|
|
708
713
|
_onOpenChangeRef.current = onOpenChange;
|
|
714
|
+
const _onValueChangeRef = React.useRef(onValueChange);
|
|
715
|
+
_onValueChangeRef.current = onValueChange;
|
|
709
716
|
React.useLayoutEffect(() => {
|
|
710
717
|
const el = _innerRef.current;
|
|
711
718
|
if (!el) return;
|
|
712
719
|
const _onOpenChangeFn = (e) => _onOpenChangeRef.current?.(e);
|
|
713
720
|
el.addEventListener('open-change', _onOpenChangeFn);
|
|
721
|
+
const _onValueChangeFn = (e) => _onValueChangeRef.current?.(e);
|
|
722
|
+
el.addEventListener('value-change', _onValueChangeFn);
|
|
714
723
|
return () => {
|
|
715
724
|
el.removeEventListener('open-change', _onOpenChangeFn);
|
|
725
|
+
el.removeEventListener('value-change', _onValueChangeFn);
|
|
716
726
|
};
|
|
717
727
|
}, []);
|
|
718
728
|
return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
@@ -778,17 +788,22 @@ export const SegmentedItem = React.forwardRef(function SegmentedItem(props, ref)
|
|
|
778
788
|
});
|
|
779
789
|
|
|
780
790
|
export const Select = React.forwardRef(function Select(props, ref) {
|
|
781
|
-
const { onOpenChange, children, ...rest } = props;
|
|
791
|
+
const { onOpenChange, onValueChange, children, ...rest } = props;
|
|
782
792
|
const _innerRef = React.useRef(null);
|
|
783
793
|
const _onOpenChangeRef = React.useRef(onOpenChange);
|
|
784
794
|
_onOpenChangeRef.current = onOpenChange;
|
|
795
|
+
const _onValueChangeRef = React.useRef(onValueChange);
|
|
796
|
+
_onValueChangeRef.current = onValueChange;
|
|
785
797
|
React.useLayoutEffect(() => {
|
|
786
798
|
const el = _innerRef.current;
|
|
787
799
|
if (!el) return;
|
|
788
800
|
const _onOpenChangeFn = (e) => _onOpenChangeRef.current?.(e);
|
|
789
801
|
el.addEventListener('open-change', _onOpenChangeFn);
|
|
802
|
+
const _onValueChangeFn = (e) => _onValueChangeRef.current?.(e);
|
|
803
|
+
el.addEventListener('value-change', _onValueChangeFn);
|
|
790
804
|
return () => {
|
|
791
805
|
el.removeEventListener('open-change', _onOpenChangeFn);
|
|
806
|
+
el.removeEventListener('value-change', _onValueChangeFn);
|
|
792
807
|
};
|
|
793
808
|
}, []);
|
|
794
809
|
return React.createElement(customElements.getName(SelectWC) ?? '%%prefix%%-select', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/rapid-design-system",
|
|
3
3
|
"description": "Rapid Design System",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.105.0-GENC-2037.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
|
|
40
|
-
"@genesislcap/foundation-testing": "15.
|
|
41
|
-
"@genesislcap/genx": "15.
|
|
42
|
-
"@genesislcap/ts-builder": "15.
|
|
43
|
-
"@genesislcap/uvu-playwright-builder": "15.
|
|
44
|
-
"@genesislcap/vite-builder": "15.
|
|
45
|
-
"@genesislcap/webpack-builder": "15.
|
|
40
|
+
"@genesislcap/foundation-testing": "15.105.0-GENC-2037.2",
|
|
41
|
+
"@genesislcap/genx": "15.105.0-GENC-2037.2",
|
|
42
|
+
"@genesislcap/ts-builder": "15.105.0-GENC-2037.2",
|
|
43
|
+
"@genesislcap/uvu-playwright-builder": "15.105.0-GENC-2037.2",
|
|
44
|
+
"@genesislcap/vite-builder": "15.105.0-GENC-2037.2",
|
|
45
|
+
"@genesislcap/webpack-builder": "15.105.0-GENC-2037.2",
|
|
46
46
|
"flexlayout-react": "0.10.8"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@genesislcap/foundation-logger": "15.
|
|
58
|
-
"@genesislcap/foundation-ui": "15.
|
|
59
|
-
"@genesislcap/foundation-utils": "15.
|
|
57
|
+
"@genesislcap/foundation-logger": "15.105.0-GENC-2037.2",
|
|
58
|
+
"@genesislcap/foundation-ui": "15.105.0-GENC-2037.2",
|
|
59
|
+
"@genesislcap/foundation-utils": "15.105.0-GENC-2037.2",
|
|
60
60
|
"@microsoft/fast-colors": "5.3.1",
|
|
61
61
|
"@microsoft/fast-components": "2.30.6",
|
|
62
62
|
"@microsoft/fast-element": "1.14.0",
|