@genesislcap/foundation-zero 14.488.2 → 14.489.0-canary.FUI-2574-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.
- package/dist/custom-elements.json +61 -1
- package/dist/dts/react.d.ts +4 -1
- package/dist/react.cjs +42 -6
- package/dist/react.mjs +42 -6
- package/package.json +12 -12
|
@@ -31599,8 +31599,8 @@
|
|
|
31599
31599
|
"text": "boolean"
|
|
31600
31600
|
},
|
|
31601
31601
|
"default": "false",
|
|
31602
|
-
"fieldName": "disabled",
|
|
31603
31602
|
"description": "The disabled state of the listbox.",
|
|
31603
|
+
"fieldName": "disabled",
|
|
31604
31604
|
"inheritedFrom": {
|
|
31605
31605
|
"name": "Combobox",
|
|
31606
31606
|
"module": "src/combobox/combobox.ts"
|
|
@@ -32336,6 +32336,7 @@
|
|
|
32336
32336
|
"text": "boolean"
|
|
32337
32337
|
},
|
|
32338
32338
|
"default": "false",
|
|
32339
|
+
"description": "Enables server-side filtering: typed input refetches from the server with a criteria\ninstead of filtering the already-loaded options client-side.",
|
|
32339
32340
|
"inheritedFrom": {
|
|
32340
32341
|
"name": "Combobox",
|
|
32341
32342
|
"module": "src/combobox/combobox.ts"
|
|
@@ -32474,6 +32475,20 @@
|
|
|
32474
32475
|
"module": "src/combobox/combobox.ts"
|
|
32475
32476
|
}
|
|
32476
32477
|
},
|
|
32478
|
+
{
|
|
32479
|
+
"kind": "field",
|
|
32480
|
+
"name": "scrollableListbox",
|
|
32481
|
+
"type": {
|
|
32482
|
+
"text": "HTMLElement | null"
|
|
32483
|
+
},
|
|
32484
|
+
"privacy": "public",
|
|
32485
|
+
"description": "The scrollable element hosting the dropdown options. Part of the public contract for\nslotted datasources (e.g. options-datasource infinite scroll) to observe scrolling.",
|
|
32486
|
+
"readonly": true,
|
|
32487
|
+
"inheritedFrom": {
|
|
32488
|
+
"name": "Combobox",
|
|
32489
|
+
"module": "src/combobox/combobox.ts"
|
|
32490
|
+
}
|
|
32491
|
+
},
|
|
32477
32492
|
{
|
|
32478
32493
|
"kind": "method",
|
|
32479
32494
|
"name": "slottedOptionsChanged",
|
|
@@ -32502,6 +32517,21 @@
|
|
|
32502
32517
|
"module": "src/combobox/combobox.ts"
|
|
32503
32518
|
}
|
|
32504
32519
|
},
|
|
32520
|
+
{
|
|
32521
|
+
"kind": "method",
|
|
32522
|
+
"name": "enableAsyncForInfiniteScrollDatasource",
|
|
32523
|
+
"privacy": "private",
|
|
32524
|
+
"return": {
|
|
32525
|
+
"type": {
|
|
32526
|
+
"text": "void"
|
|
32527
|
+
}
|
|
32528
|
+
},
|
|
32529
|
+
"description": "When the slotted datasource pages its options (infinite scroll), only a page of the\nresource is loaded client-side, so filtering typed input locally is meaningless.\nSwitch to async mode so input refetches from the server with a criteria instead;\nfurther pages honour that criteria. This overrides an explicit `async=\"false\"` on\nthe combobox — infinite-scroll datasources cannot support client-side filtering.",
|
|
32530
|
+
"inheritedFrom": {
|
|
32531
|
+
"name": "Combobox",
|
|
32532
|
+
"module": "src/combobox/combobox.ts"
|
|
32533
|
+
}
|
|
32534
|
+
},
|
|
32505
32535
|
{
|
|
32506
32536
|
"kind": "field",
|
|
32507
32537
|
"name": "indicator",
|
|
@@ -32572,6 +32602,14 @@
|
|
|
32572
32602
|
"name": "Combobox",
|
|
32573
32603
|
"module": "src/combobox/combobox.ts"
|
|
32574
32604
|
}
|
|
32605
|
+
},
|
|
32606
|
+
{
|
|
32607
|
+
"description": "Fired when the dropdown opens or closes. detail: `OpenChangeEventDetail`",
|
|
32608
|
+
"name": "open-change",
|
|
32609
|
+
"inheritedFrom": {
|
|
32610
|
+
"name": "Combobox",
|
|
32611
|
+
"module": "src/combobox/combobox.ts"
|
|
32612
|
+
}
|
|
32575
32613
|
}
|
|
32576
32614
|
]
|
|
32577
32615
|
},
|
|
@@ -35165,6 +35203,20 @@
|
|
|
35165
35203
|
}
|
|
35166
35204
|
],
|
|
35167
35205
|
"members": [
|
|
35206
|
+
{
|
|
35207
|
+
"kind": "field",
|
|
35208
|
+
"name": "scrollableListbox",
|
|
35209
|
+
"type": {
|
|
35210
|
+
"text": "HTMLElement | null"
|
|
35211
|
+
},
|
|
35212
|
+
"privacy": "public",
|
|
35213
|
+
"description": "The scrollable element hosting the dropdown options. Part of the public contract for\nslotted datasources (e.g. options-datasource infinite scroll) to observe scrolling.",
|
|
35214
|
+
"readonly": true,
|
|
35215
|
+
"inheritedFrom": {
|
|
35216
|
+
"name": "Select",
|
|
35217
|
+
"module": "src/select/select.ts"
|
|
35218
|
+
}
|
|
35219
|
+
},
|
|
35168
35220
|
{
|
|
35169
35221
|
"kind": "method",
|
|
35170
35222
|
"name": "openChanged",
|
|
@@ -35610,6 +35662,14 @@
|
|
|
35610
35662
|
}
|
|
35611
35663
|
],
|
|
35612
35664
|
"events": [
|
|
35665
|
+
{
|
|
35666
|
+
"description": "Fired when the dropdown opens or closes. detail: `OpenChangeEventDetail`",
|
|
35667
|
+
"name": "open-change",
|
|
35668
|
+
"inheritedFrom": {
|
|
35669
|
+
"name": "Select",
|
|
35670
|
+
"module": "src/select/select.ts"
|
|
35671
|
+
}
|
|
35672
|
+
},
|
|
35613
35673
|
{
|
|
35614
35674
|
"description": "Fires a custom 'input' event when the value updates",
|
|
35615
35675
|
"name": "input",
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ import type { TreeItem as TreeItemWC } from './tree-item/tree-item';
|
|
|
91
91
|
import type { TreeView as TreeViewWC } from './tree-view/tree-view';
|
|
92
92
|
import type { UrlInput as UrlInputWC } from './url-input/url-input';
|
|
93
93
|
import type { AddGroupEventDetail, AddRuleEventDetail, DelGroupEventDetail, DelRuleEventDetail, UpdateGroupEventDetail, UpdateRuleEventDetail } from '@genesislcap/expression-builder';
|
|
94
|
-
import type { ClearOptions, FileSelectedEventDetail, FilterChangedEventDetail, FilterClearedEventDetail, MultiselectOption, SelectedOption, StepClickEventDetail, ValidationError, ValidationFailureEventDetail } from '@genesislcap/foundation-ui';
|
|
94
|
+
import type { ClearOptions, FileSelectedEventDetail, FilterChangedEventDetail, FilterClearedEventDetail, MultiselectOption, OpenChangeEventDetail, SelectedOption, StepClickEventDetail, ValidationError, ValidationFailureEventDetail } from '@genesislcap/foundation-ui';
|
|
95
95
|
|
|
96
96
|
/** @internal Maps a web component class to its public props only.
|
|
97
97
|
* keyof T skips private/protected members, so this avoids the TS error
|
|
@@ -285,6 +285,7 @@ export declare const Combobox: React.ForwardRefExoticComponent<
|
|
|
285
285
|
React.PropsWithChildren<
|
|
286
286
|
Omit<PublicOf<ComboboxWC>, 'children' | 'style'> &
|
|
287
287
|
HTMLWCProps & {
|
|
288
|
+
onOpenChange?: (event: CustomEvent<OpenChangeEventDetail>) => void;
|
|
288
289
|
}
|
|
289
290
|
> & React.RefAttributes<ComboboxWC>
|
|
290
291
|
>;
|
|
@@ -716,6 +717,7 @@ export declare const SearchBarCombobox: React.ForwardRefExoticComponent<
|
|
|
716
717
|
React.PropsWithChildren<
|
|
717
718
|
Omit<PublicOf<SearchBarComboboxWC>, 'children' | 'style'> &
|
|
718
719
|
HTMLWCProps & {
|
|
720
|
+
onOpenChange?: (event: CustomEvent<OpenChangeEventDetail>) => void;
|
|
719
721
|
}
|
|
720
722
|
> & React.RefAttributes<SearchBarComboboxWC>
|
|
721
723
|
>;
|
|
@@ -766,6 +768,7 @@ export declare const Select: React.ForwardRefExoticComponent<
|
|
|
766
768
|
React.PropsWithChildren<
|
|
767
769
|
Omit<PublicOf<SelectWC>, 'children' | 'style'> &
|
|
768
770
|
HTMLWCProps & {
|
|
771
|
+
onOpenChange?: (event: CustomEvent<OpenChangeEventDetail>) => void;
|
|
769
772
|
}
|
|
770
773
|
> & React.RefAttributes<SelectWC>
|
|
771
774
|
>;
|
package/dist/react.cjs
CHANGED
|
@@ -246,8 +246,20 @@ const Checkbox = React.forwardRef(function Checkbox(props, ref) {
|
|
|
246
246
|
});
|
|
247
247
|
|
|
248
248
|
const Combobox = React.forwardRef(function Combobox(props, ref) {
|
|
249
|
-
const { children, ...rest } = props;
|
|
250
|
-
|
|
249
|
+
const { onOpenChange, children, ...rest } = props;
|
|
250
|
+
const _innerRef = React.useRef(null);
|
|
251
|
+
const _onOpenChangeRef = React.useRef(onOpenChange);
|
|
252
|
+
_onOpenChangeRef.current = onOpenChange;
|
|
253
|
+
React.useLayoutEffect(() => {
|
|
254
|
+
const el = _innerRef.current;
|
|
255
|
+
if (!el) return;
|
|
256
|
+
const _onOpenChangeFn = (e) => _onOpenChangeRef.current?.(e);
|
|
257
|
+
el.addEventListener('open-change', _onOpenChangeFn);
|
|
258
|
+
return () => {
|
|
259
|
+
el.removeEventListener('open-change', _onOpenChangeFn);
|
|
260
|
+
};
|
|
261
|
+
}, []);
|
|
262
|
+
return React.createElement(customElements.getName(ComboboxWC) ?? '%%prefix%%-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
251
263
|
});
|
|
252
264
|
|
|
253
265
|
const ConnectionIndicator = React.forwardRef(function ConnectionIndicator(props, ref) {
|
|
@@ -732,8 +744,20 @@ const SchedulerTimezone = React.forwardRef(function SchedulerTimezone(props, ref
|
|
|
732
744
|
});
|
|
733
745
|
|
|
734
746
|
const SearchBarCombobox = React.forwardRef(function SearchBarCombobox(props, ref) {
|
|
735
|
-
const { children, ...rest } = props;
|
|
736
|
-
|
|
747
|
+
const { onOpenChange, children, ...rest } = props;
|
|
748
|
+
const _innerRef = React.useRef(null);
|
|
749
|
+
const _onOpenChangeRef = React.useRef(onOpenChange);
|
|
750
|
+
_onOpenChangeRef.current = onOpenChange;
|
|
751
|
+
React.useLayoutEffect(() => {
|
|
752
|
+
const el = _innerRef.current;
|
|
753
|
+
if (!el) return;
|
|
754
|
+
const _onOpenChangeFn = (e) => _onOpenChangeRef.current?.(e);
|
|
755
|
+
el.addEventListener('open-change', _onOpenChangeFn);
|
|
756
|
+
return () => {
|
|
757
|
+
el.removeEventListener('open-change', _onOpenChangeFn);
|
|
758
|
+
};
|
|
759
|
+
}, []);
|
|
760
|
+
return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
737
761
|
});
|
|
738
762
|
|
|
739
763
|
const SearchBar = React.forwardRef(function SearchBar(props, ref) {
|
|
@@ -796,8 +820,20 @@ const SegmentedItem = React.forwardRef(function SegmentedItem(props, ref) {
|
|
|
796
820
|
});
|
|
797
821
|
|
|
798
822
|
const Select = React.forwardRef(function Select(props, ref) {
|
|
799
|
-
const { children, ...rest } = props;
|
|
800
|
-
|
|
823
|
+
const { onOpenChange, children, ...rest } = props;
|
|
824
|
+
const _innerRef = React.useRef(null);
|
|
825
|
+
const _onOpenChangeRef = React.useRef(onOpenChange);
|
|
826
|
+
_onOpenChangeRef.current = onOpenChange;
|
|
827
|
+
React.useLayoutEffect(() => {
|
|
828
|
+
const el = _innerRef.current;
|
|
829
|
+
if (!el) return;
|
|
830
|
+
const _onOpenChangeFn = (e) => _onOpenChangeRef.current?.(e);
|
|
831
|
+
el.addEventListener('open-change', _onOpenChangeFn);
|
|
832
|
+
return () => {
|
|
833
|
+
el.removeEventListener('open-change', _onOpenChangeFn);
|
|
834
|
+
};
|
|
835
|
+
}, []);
|
|
836
|
+
return React.createElement(customElements.getName(SelectWC) ?? '%%prefix%%-select', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
801
837
|
});
|
|
802
838
|
|
|
803
839
|
const Skeleton = React.forwardRef(function Skeleton(props, ref) {
|
package/dist/react.mjs
CHANGED
|
@@ -244,8 +244,20 @@ export const Checkbox = React.forwardRef(function Checkbox(props, ref) {
|
|
|
244
244
|
});
|
|
245
245
|
|
|
246
246
|
export const Combobox = React.forwardRef(function Combobox(props, ref) {
|
|
247
|
-
const { children, ...rest } = props;
|
|
248
|
-
|
|
247
|
+
const { onOpenChange, children, ...rest } = props;
|
|
248
|
+
const _innerRef = React.useRef(null);
|
|
249
|
+
const _onOpenChangeRef = React.useRef(onOpenChange);
|
|
250
|
+
_onOpenChangeRef.current = onOpenChange;
|
|
251
|
+
React.useLayoutEffect(() => {
|
|
252
|
+
const el = _innerRef.current;
|
|
253
|
+
if (!el) return;
|
|
254
|
+
const _onOpenChangeFn = (e) => _onOpenChangeRef.current?.(e);
|
|
255
|
+
el.addEventListener('open-change', _onOpenChangeFn);
|
|
256
|
+
return () => {
|
|
257
|
+
el.removeEventListener('open-change', _onOpenChangeFn);
|
|
258
|
+
};
|
|
259
|
+
}, []);
|
|
260
|
+
return React.createElement(customElements.getName(ComboboxWC) ?? '%%prefix%%-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
249
261
|
});
|
|
250
262
|
|
|
251
263
|
export const ConnectionIndicator = React.forwardRef(function ConnectionIndicator(props, ref) {
|
|
@@ -730,8 +742,20 @@ export const SchedulerTimezone = React.forwardRef(function SchedulerTimezone(pro
|
|
|
730
742
|
});
|
|
731
743
|
|
|
732
744
|
export const SearchBarCombobox = React.forwardRef(function SearchBarCombobox(props, ref) {
|
|
733
|
-
const { children, ...rest } = props;
|
|
734
|
-
|
|
745
|
+
const { onOpenChange, children, ...rest } = props;
|
|
746
|
+
const _innerRef = React.useRef(null);
|
|
747
|
+
const _onOpenChangeRef = React.useRef(onOpenChange);
|
|
748
|
+
_onOpenChangeRef.current = onOpenChange;
|
|
749
|
+
React.useLayoutEffect(() => {
|
|
750
|
+
const el = _innerRef.current;
|
|
751
|
+
if (!el) return;
|
|
752
|
+
const _onOpenChangeFn = (e) => _onOpenChangeRef.current?.(e);
|
|
753
|
+
el.addEventListener('open-change', _onOpenChangeFn);
|
|
754
|
+
return () => {
|
|
755
|
+
el.removeEventListener('open-change', _onOpenChangeFn);
|
|
756
|
+
};
|
|
757
|
+
}, []);
|
|
758
|
+
return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
735
759
|
});
|
|
736
760
|
|
|
737
761
|
export const SearchBar = React.forwardRef(function SearchBar(props, ref) {
|
|
@@ -794,8 +818,20 @@ export const SegmentedItem = React.forwardRef(function SegmentedItem(props, ref)
|
|
|
794
818
|
});
|
|
795
819
|
|
|
796
820
|
export const Select = React.forwardRef(function Select(props, ref) {
|
|
797
|
-
const { children, ...rest } = props;
|
|
798
|
-
|
|
821
|
+
const { onOpenChange, children, ...rest } = props;
|
|
822
|
+
const _innerRef = React.useRef(null);
|
|
823
|
+
const _onOpenChangeRef = React.useRef(onOpenChange);
|
|
824
|
+
_onOpenChangeRef.current = onOpenChange;
|
|
825
|
+
React.useLayoutEffect(() => {
|
|
826
|
+
const el = _innerRef.current;
|
|
827
|
+
if (!el) return;
|
|
828
|
+
const _onOpenChangeFn = (e) => _onOpenChangeRef.current?.(e);
|
|
829
|
+
el.addEventListener('open-change', _onOpenChangeFn);
|
|
830
|
+
return () => {
|
|
831
|
+
el.removeEventListener('open-change', _onOpenChangeFn);
|
|
832
|
+
};
|
|
833
|
+
}, []);
|
|
834
|
+
return React.createElement(customElements.getName(SelectWC) ?? '%%prefix%%-select', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
799
835
|
});
|
|
800
836
|
|
|
801
837
|
export const Skeleton = React.forwardRef(function Skeleton(props, ref) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-zero",
|
|
3
3
|
"description": "Genesis Foundation Zero Design System",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.489.0-canary.FUI-2574-1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -73,18 +73,18 @@
|
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
|
|
76
|
-
"@genesislcap/genx": "14.
|
|
77
|
-
"@genesislcap/rollup-builder": "14.
|
|
78
|
-
"@genesislcap/ts-builder": "14.
|
|
79
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
80
|
-
"@genesislcap/vite-builder": "14.
|
|
81
|
-
"@genesislcap/webpack-builder": "14.
|
|
76
|
+
"@genesislcap/genx": "14.489.0-canary.FUI-2574-1",
|
|
77
|
+
"@genesislcap/rollup-builder": "14.489.0-canary.FUI-2574-1",
|
|
78
|
+
"@genesislcap/ts-builder": "14.489.0-canary.FUI-2574-1",
|
|
79
|
+
"@genesislcap/uvu-playwright-builder": "14.489.0-canary.FUI-2574-1",
|
|
80
|
+
"@genesislcap/vite-builder": "14.489.0-canary.FUI-2574-1",
|
|
81
|
+
"@genesislcap/webpack-builder": "14.489.0-canary.FUI-2574-1"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@genesislcap/foundation-comms": "14.
|
|
85
|
-
"@genesislcap/foundation-logger": "14.
|
|
86
|
-
"@genesislcap/foundation-ui": "14.
|
|
87
|
-
"@genesislcap/foundation-utils": "14.
|
|
84
|
+
"@genesislcap/foundation-comms": "14.489.0-canary.FUI-2574-1",
|
|
85
|
+
"@genesislcap/foundation-logger": "14.489.0-canary.FUI-2574-1",
|
|
86
|
+
"@genesislcap/foundation-ui": "14.489.0-canary.FUI-2574-1",
|
|
87
|
+
"@genesislcap/foundation-utils": "14.489.0-canary.FUI-2574-1",
|
|
88
88
|
"@microsoft/fast-colors": "5.3.1",
|
|
89
89
|
"@microsoft/fast-components": "2.30.6",
|
|
90
90
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"require": "./dist/react.cjs"
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "6dbab0f331e0fa7a280534d5cf111f09138c31e4"
|
|
115
115
|
}
|