@genesislcap/rapid-design-system 15.103.2 → 15.105.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/custom-elements.json +16 -0
- package/dist/dts/react.d.ts +4 -1
- package/dist/react.cjs +18 -3
- package/dist/react.mjs +18 -3
- package/package.json +10 -10
|
@@ -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
|
|
@@ -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
|
@@ -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);
|
package/dist/react.mjs
CHANGED
|
@@ -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",
|
|
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",
|
|
41
|
+
"@genesislcap/genx": "15.105.0",
|
|
42
|
+
"@genesislcap/ts-builder": "15.105.0",
|
|
43
|
+
"@genesislcap/uvu-playwright-builder": "15.105.0",
|
|
44
|
+
"@genesislcap/vite-builder": "15.105.0",
|
|
45
|
+
"@genesislcap/webpack-builder": "15.105.0",
|
|
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",
|
|
58
|
+
"@genesislcap/foundation-ui": "15.105.0",
|
|
59
|
+
"@genesislcap/foundation-utils": "15.105.0",
|
|
60
60
|
"@microsoft/fast-colors": "5.3.1",
|
|
61
61
|
"@microsoft/fast-components": "2.30.6",
|
|
62
62
|
"@microsoft/fast-element": "1.14.0",
|