@oracle/oraclejet-preact 18.0.0 → 18.0.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/amd/{BarChart-077c5f02.js → BarChart-5e9f46b4.js} +2 -2
- package/amd/{BarChart-077c5f02.js.map → BarChart-5e9f46b4.js.map} +1 -1
- package/amd/{BaseCardView-ab799b69.js → BaseCardView-70b177ed.js} +2 -2
- package/amd/{BaseCardView-ab799b69.js.map → BaseCardView-70b177ed.js.map} +1 -1
- package/amd/CardFlexView-bb5c4369.js +2 -0
- package/amd/{CardFlexView-296f97f5.js.map → CardFlexView-bb5c4369.js.map} +1 -1
- package/amd/{CardGridView-054ffc3f.js → CardGridView-c28ff2f7.js} +2 -2
- package/amd/{CardGridView-054ffc3f.js.map → CardGridView-c28ff2f7.js.map} +1 -1
- package/amd/{Chart-3621e125.js → Chart-e2807ff7.js} +2 -2
- package/amd/{Chart-3621e125.js.map → Chart-e2807ff7.js.map} +1 -1
- package/amd/{ComboChart-fd7da90e.js → ComboChart-71c0f51f.js} +2 -2
- package/amd/{ComboChart-fd7da90e.js.map → ComboChart-71c0f51f.js.map} +1 -1
- package/amd/ExpandableList-dd3a05b4.js +1 -1
- package/amd/GroupLoadingIndicator-6b2ab709.js +1 -1
- package/amd/{Indexer-1531dbc3.js → Indexer-357554c4.js} +2 -2
- package/amd/{Indexer-1531dbc3.js.map → Indexer-357554c4.js.map} +1 -1
- package/amd/InputDatePicker-18e2546b.js +2 -0
- package/amd/{InputDatePicker-fc39f0a6.js.map → InputDatePicker-18e2546b.js.map} +1 -1
- package/amd/{LineAreaChart-ae915d7a.js → LineAreaChart-dda5240f.js} +2 -2
- package/amd/{LineAreaChart-ae915d7a.js.map → LineAreaChart-dda5240f.js.map} +1 -1
- package/amd/List-04c4fed0.js +2 -0
- package/amd/{List-0b764e84.js.map → List-04c4fed0.js.map} +1 -1
- package/amd/{ListView-5bb45f81.js → ListView-bf740071.js} +2 -2
- package/amd/{ListView-5bb45f81.js.map → ListView-bf740071.js.map} +1 -1
- package/amd/LoadMoreCollection-a6adbc3f.js +2 -0
- package/amd/{LoadMoreCollection-83413a59.js.map → LoadMoreCollection-a6adbc3f.js.map} +1 -1
- package/amd/PRIVATE_BaseCardView.js +1 -1
- package/amd/PRIVATE_Chart.js +1 -1
- package/amd/PRIVATE_List.js +1 -1
- package/amd/PRIVATE_LoadMoreCollection.js +1 -1
- package/amd/PRIVATE_SelectCommon.js +1 -1
- package/amd/PRIVATE_Table.js +1 -1
- package/amd/PRIVATE_VirtualizedCollection.js +1 -1
- package/amd/{ScatterChart-bb9854b0.js → ScatterChart-7f0b817b.js} +2 -2
- package/amd/{ScatterChart-bb9854b0.js.map → ScatterChart-7f0b817b.js.map} +1 -1
- package/amd/{SelectMultiple-7e9bd455.js → SelectMultiple-e3a6732b.js} +2 -2
- package/amd/{SelectMultiple-7e9bd455.js.map → SelectMultiple-e3a6732b.js.map} +1 -1
- package/amd/{SelectSingle-466bcd67.js → SelectSingle-9d0dca8f.js} +2 -2
- package/amd/{SelectSingle-466bcd67.js.map → SelectSingle-9d0dca8f.js.map} +1 -1
- package/amd/{Table-87f7e3c4.js → Table-31cc83c6.js} +2 -2
- package/amd/{Table-87f7e3c4.js.map → Table-31cc83c6.js.map} +1 -1
- package/amd/{TableView-2b884e2c.js → TableView-ab5d0c12.js} +2 -2
- package/amd/{TableView-2b884e2c.js.map → TableView-ab5d0c12.js.map} +1 -1
- package/amd/Theme-redwood/theme.css +243 -243
- package/amd/Theme-stable/theme.css +266 -266
- package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
- package/amd/UNSAFE_BarChart.js +1 -1
- package/amd/UNSAFE_CardFlexView.js +1 -1
- package/amd/UNSAFE_CardGridView.js +1 -1
- package/amd/UNSAFE_ComboChart.js +1 -1
- package/amd/UNSAFE_ExpandableList.js +1 -1
- package/amd/UNSAFE_Indexer.js +1 -1
- package/amd/UNSAFE_InputDatePicker.js +1 -1
- package/amd/UNSAFE_LineAreaChart.js +1 -1
- package/amd/UNSAFE_ListView.js +1 -1
- package/amd/UNSAFE_ScatterChart.js +1 -1
- package/amd/UNSAFE_SelectMultiple.js +1 -1
- package/amd/UNSAFE_SelectSingle.js +1 -1
- package/amd/UNSAFE_TableView.js +1 -1
- package/amd/UNSAFE_VirtualizedListView.js +1 -1
- package/amd/{VirtualizedCollection-897516a5.js → VirtualizedCollection-63223f5e.js} +2 -2
- package/amd/{VirtualizedCollection-897516a5.js.map → VirtualizedCollection-63223f5e.js.map} +1 -1
- package/amd/{VirtualizedListView-cbe87ec2.js → VirtualizedListView-554eaee6.js} +2 -2
- package/amd/{VirtualizedListView-cbe87ec2.js.map → VirtualizedListView-554eaee6.js.map} +1 -1
- package/amd/{useSelectCommon-d9c4a7bd.js → useSelectCommon-e7f123ce.js} +2 -2
- package/amd/{useSelectCommon-d9c4a7bd.js.map → useSelectCommon-e7f123ce.js.map} +1 -1
- package/cjs/{BarChart-ca7f8ed5.js → BarChart-93a3813c.js} +2 -2
- package/cjs/{BarChart-ca7f8ed5.js.map → BarChart-93a3813c.js.map} +1 -1
- package/cjs/{useNavigationListItem-ae481fdc.js → BaseNavigationListItem-50e4c603.js} +40 -2
- package/cjs/BaseNavigationListItem-50e4c603.js.map +1 -0
- package/cjs/{Chart-fbbd3329.js → Chart-40d95d14.js} +2 -2
- package/cjs/{Chart-fbbd3329.js.map → Chart-40d95d14.js.map} +1 -1
- package/cjs/CheckboxSetContext-c62db26d.js +12 -0
- package/{es/CheckboxSetContext-1be56556.js.map → cjs/CheckboxSetContext-c62db26d.js.map} +1 -1
- package/cjs/{ComboChart-95863e7a.js → ComboChart-cffd0759.js} +2 -2
- package/cjs/{ComboChart-95863e7a.js.map → ComboChart-cffd0759.js.map} +1 -1
- package/cjs/{LineAreaChart-4a54a017.js → LineAreaChart-53aa461c.js} +2 -2
- package/cjs/{LineAreaChart-4a54a017.js.map → LineAreaChart-53aa461c.js.map} +1 -1
- package/cjs/{NavigationList-7495908b.js → NavigationListItem-4c4e804d.js} +21 -3
- package/cjs/NavigationListItem-4c4e804d.js.map +1 -0
- package/cjs/{OverflowTabBar-e92bab53.js → OverflowTabBar-428798a0.js} +3 -3
- package/cjs/{OverflowTabBar-e92bab53.js.map → OverflowTabBar-428798a0.js.map} +1 -1
- package/cjs/{OverflowTabBarItem-5820e1fa.js → OverflowTabBarItem-3c7adb01.js} +4 -5
- package/cjs/{OverflowTabBarItem-5820e1fa.js.map → OverflowTabBarItem-3c7adb01.js.map} +1 -1
- package/cjs/PRIVATE_Chart.js +4 -4
- package/cjs/{RemovableNavigationListItem-39312f9c.js → RemovableNavigationListItem-0eea31bc.js} +3 -4
- package/cjs/{RemovableNavigationListItem-39312f9c.js.map → RemovableNavigationListItem-0eea31bc.js.map} +1 -1
- package/cjs/{ReorderableTabBar-5614d872.js → ReorderableTabBar-344938e7.js} +2 -2
- package/cjs/{ReorderableTabBar-5614d872.js.map → ReorderableTabBar-344938e7.js.map} +1 -1
- package/cjs/{ScatterChart-80ef4bee.js → ScatterChart-9c748a81.js} +2 -2
- package/cjs/{ScatterChart-80ef4bee.js.map → ScatterChart-9c748a81.js.map} +1 -1
- package/cjs/{TabBar-bcf66387.js → TabBar-bf94b95a.js} +1 -6
- package/cjs/{TabBar-bcf66387.js.map → TabBar-bf94b95a.js.map} +1 -1
- package/cjs/{TabBarMixed-ac642788.js → TabBarMixed-975141a6.js} +1 -6
- package/cjs/{TabBarMixed-ac642788.js.map → TabBarMixed-975141a6.js.map} +1 -1
- package/cjs/Theme-redwood/theme.css +143 -143
- package/cjs/Theme-stable/theme.css +241 -241
- package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +5 -5
- package/cjs/UNSAFE_BarChart.js +5 -5
- package/cjs/UNSAFE_CheckboxItem.js +30 -81
- package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
- package/cjs/UNSAFE_CheckboxSet.js +44 -15
- package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
- package/cjs/UNSAFE_ComboChart.js +5 -5
- package/cjs/UNSAFE_LineAreaChart.js +5 -5
- package/cjs/UNSAFE_NavigationList.js +14 -16
- package/cjs/UNSAFE_NavigationList.js.map +1 -1
- package/cjs/UNSAFE_NavigationListCommon.js +55 -56
- package/cjs/UNSAFE_NavigationListCommon.js.map +1 -1
- package/cjs/UNSAFE_OverflowTabBar.js +27 -29
- package/cjs/UNSAFE_OverflowTabBar.js.map +1 -1
- package/cjs/UNSAFE_ReorderableTabBar.js +14 -25
- package/cjs/UNSAFE_ReorderableTabBar.js.map +1 -1
- package/cjs/UNSAFE_RichCheckboxSet.js +13 -15
- package/cjs/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/cjs/UNSAFE_RichSelectionItem.js +44 -181
- package/cjs/UNSAFE_RichSelectionItem.js.map +1 -1
- package/cjs/UNSAFE_ScatterChart.js +5 -5
- package/cjs/UNSAFE_TabBar.js +26 -28
- package/cjs/UNSAFE_TabBar.js.map +1 -1
- package/cjs/UNSAFE_TabBarCommon.js +18 -20
- package/cjs/UNSAFE_TabBarCommon.js.map +1 -1
- package/cjs/UNSAFE_TabBarMixed.js +37 -39
- package/cjs/UNSAFE_TabBarMixed.js.map +1 -1
- package/es/{BarChart-dd37d569.js → BarChart-a3209793.js} +2 -2
- package/es/{BarChart-dd37d569.js.map → BarChart-a3209793.js.map} +1 -1
- package/es/{Chart-b046fb6a.js → Chart-b97e00f1.js} +2 -2
- package/es/{Chart-b046fb6a.js.map → Chart-b97e00f1.js.map} +1 -1
- package/es/CheckboxSet-3c3b7c71.js +49 -0
- package/{cjs/CheckboxSet-1bdbc419.js.map → es/CheckboxSet-3c3b7c71.js.map} +1 -1
- package/es/CollapsibleVariants.styles.css +3 -3
- package/es/CollapsibleVariants.styles2.css +3 -3
- package/es/{ComboChart-58ac07b4.js → ComboChart-b8c2be4d.js} +2 -2
- package/es/{ComboChart-58ac07b4.js.map → ComboChart-b8c2be4d.js.map} +1 -1
- package/es/{InputDatePicker-dd3b6c89.js → InputDatePicker-59bbd31d.js} +2 -2
- package/es/{InputDatePicker-dd3b6c89.js.map → InputDatePicker-59bbd31d.js.map} +1 -1
- package/es/{LineAreaChart-8711bbfd.js → LineAreaChart-d4ed8c0d.js} +2 -2
- package/es/{LineAreaChart-8711bbfd.js.map → LineAreaChart-d4ed8c0d.js.map} +1 -1
- package/es/PRIVATE_Chart.js +4 -4
- package/es/{ScatterChart-4bfeca5d.js → ScatterChart-d26d4ea9.js} +2 -2
- package/es/{ScatterChart-4bfeca5d.js.map → ScatterChart-d26d4ea9.js.map} +1 -1
- package/es/Theme-redwood/theme.css +692 -692
- package/es/Theme-stable/theme.css +570 -570
- package/es/TrainVariants.styles.css +6 -6
- package/es/TrainVariants.styles2.css +6 -6
- package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +5 -5
- package/es/UNSAFE_BarChart.js +5 -5
- package/es/UNSAFE_CheckboxItem.js +81 -30
- package/es/UNSAFE_CheckboxItem.js.map +1 -1
- package/es/UNSAFE_CheckboxSet.js +10 -44
- package/es/UNSAFE_CheckboxSet.js.map +1 -1
- package/es/UNSAFE_Collapsible/themes/redwood/CollapsibleTheme.js +1 -1
- package/es/UNSAFE_Collapsible/themes/redwood/CollapsibleVariants.css.js +1 -1
- package/es/UNSAFE_Collapsible/themes/stable/CollapsibleTheme.js +1 -1
- package/es/UNSAFE_Collapsible/themes/stable/CollapsibleVariants.css.js +1 -1
- package/es/UNSAFE_Collapsible.js +1 -1
- package/es/UNSAFE_ComboChart.js +5 -5
- package/es/UNSAFE_InputDatePicker.js +91 -91
- package/es/UNSAFE_LineAreaChart.js +5 -5
- package/es/UNSAFE_RichCheckboxSet.js +14 -12
- package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/es/UNSAFE_RichSelectionItem.js +179 -42
- package/es/UNSAFE_RichSelectionItem.js.map +1 -1
- package/es/UNSAFE_ScatterChart.js +5 -5
- package/es/UNSAFE_Train/themes/redwood/TrainTheme.js +1 -1
- package/es/UNSAFE_Train/themes/redwood/TrainVariants.css.js +1 -1
- package/es/UNSAFE_Train/themes/stable/TrainTheme.js +1 -1
- package/es/UNSAFE_Train/themes/stable/TrainVariants.css.js +1 -1
- package/es/UNSAFE_Train.js +1 -1
- package/package.json +2 -2
- package/amd/CardFlexView-296f97f5.js +0 -2
- package/amd/InputDatePicker-fc39f0a6.js +0 -2
- package/amd/List-0b764e84.js +0 -2
- package/amd/LoadMoreCollection-83413a59.js +0 -2
- package/cjs/BaseNavigationListItem-ac85812c.js +0 -49
- package/cjs/BaseNavigationListItem-ac85812c.js.map +0 -1
- package/cjs/CheckboxSet-1bdbc419.js +0 -53
- package/cjs/NavigationList-7495908b.js.map +0 -1
- package/cjs/NavigationListItem-d927906d.js +0 -12
- package/cjs/NavigationListItem-d927906d.js.map +0 -1
- package/cjs/useNavigationListItem-ae481fdc.js.map +0 -1
- package/es/CheckboxSetContext-1be56556.js +0 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
-
export { I as InputDatePicker } from './InputDatePicker-
|
|
2
|
+
export { I as InputDatePicker } from './InputDatePicker-59bbd31d.js';
|
|
3
3
|
import 'preact/jsx-runtime';
|
|
4
4
|
import 'preact/compat';
|
|
5
5
|
import 'preact/hooks';
|
|
@@ -69,33 +69,16 @@ import './vanilla-extract-dynamic.esm-2955d60a.js';
|
|
|
69
69
|
import './UNSAFE_Floating/themes/FloatingContract.css.js';
|
|
70
70
|
import './UNSAFE_Icon/themes/IconStyle.css.js';
|
|
71
71
|
import './IconStyle.styles.css';
|
|
72
|
-
import './
|
|
73
|
-
import './
|
|
74
|
-
import './useTranslationBundle-6da03e52.js';
|
|
75
|
-
import './UserAssistanceStyles.styles.css';
|
|
76
|
-
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.styles.css';
|
|
77
|
-
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css.js';
|
|
78
|
-
import './InlineUserAssistance-04cce83e.js';
|
|
79
|
-
import './Flex-2d51e914.js';
|
|
80
|
-
import './boxalignment-7d41dd5e.js';
|
|
81
|
-
import './boxalignment.styles.css';
|
|
82
|
-
import './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-2d655d37.js';
|
|
83
|
-
import './dimensions-e4b8a67e.js';
|
|
84
|
-
import './flexbox-529f25da.js';
|
|
85
|
-
import './flexbox.styles.css';
|
|
86
|
-
import './flexitem-7b7f7920.js';
|
|
87
|
-
import './flexitem.styles.css';
|
|
88
|
-
import './FlexStyles.styles.css';
|
|
89
|
-
import './MessageBannerStyles.styles.css';
|
|
90
|
-
import './UNSAFE_MessageBanner/themes/redwood/MessageBannerBaseTheme.styles.css';
|
|
91
|
-
import './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css.js';
|
|
92
|
-
import './MessageBannerVariants.styles.css';
|
|
72
|
+
import './HiddenAccessible-61197e7c.js';
|
|
73
|
+
import './HiddenAccessibleStyles.styles.css';
|
|
93
74
|
import './IconButton-62cd1cf9.js';
|
|
94
75
|
import './BaseButton-3ce1f027.js';
|
|
95
76
|
import './usePress-051f5adb.js';
|
|
96
77
|
import './usePressClick-2ec8e098.js';
|
|
97
78
|
import './useActive-fb6d4d52.js';
|
|
79
|
+
import './TabbableModeContext-7d8ad946.js';
|
|
98
80
|
import './useTabbableMode-a3a351d0.js';
|
|
81
|
+
import './dimensions-e4b8a67e.js';
|
|
99
82
|
import './clientHints-05a97aba.js';
|
|
100
83
|
import './UNSAFE_BaseButton/themes/redwood/BaseButtonTheme.js';
|
|
101
84
|
import './UNSAFE_BaseButton/themes/BaseButtonStyles.css.js';
|
|
@@ -116,13 +99,31 @@ import './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css.
|
|
|
116
99
|
import './ButtonLabelLayoutVariants.styles.css';
|
|
117
100
|
import './buttonUtils-be059939.js';
|
|
118
101
|
import './id-83adac50.js';
|
|
102
|
+
import './FormFieldContext-68eb5946.js';
|
|
103
|
+
import './useTranslationBundle-6da03e52.js';
|
|
104
|
+
import './UserAssistanceStyles.styles.css';
|
|
105
|
+
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.styles.css';
|
|
106
|
+
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css.js';
|
|
107
|
+
import './InlineUserAssistance-04cce83e.js';
|
|
108
|
+
import './Flex-2d51e914.js';
|
|
109
|
+
import './boxalignment-7d41dd5e.js';
|
|
110
|
+
import './boxalignment.styles.css';
|
|
111
|
+
import './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-2d655d37.js';
|
|
112
|
+
import './flexbox-529f25da.js';
|
|
113
|
+
import './flexbox.styles.css';
|
|
114
|
+
import './flexitem-7b7f7920.js';
|
|
115
|
+
import './flexitem.styles.css';
|
|
116
|
+
import './FlexStyles.styles.css';
|
|
117
|
+
import './MessageBannerStyles.styles.css';
|
|
118
|
+
import './UNSAFE_MessageBanner/themes/redwood/MessageBannerBaseTheme.styles.css';
|
|
119
|
+
import './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css.js';
|
|
120
|
+
import './MessageBannerVariants.styles.css';
|
|
119
121
|
import './MessageStyles.styles.css';
|
|
120
122
|
import './MessageFormattingUtils-34c9b1aa.js';
|
|
121
123
|
import './getLocale-1c41e86a.js';
|
|
122
124
|
import './stringUtils-16f617bc.js';
|
|
123
125
|
import './TransitionGroup-5fd80dc9.js';
|
|
124
126
|
import './MessagesContext-76544845.js';
|
|
125
|
-
import './HiddenAccessibleStyles.styles.css';
|
|
126
127
|
import './ComponentMessageStyles.styles.css';
|
|
127
128
|
import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.styles.css';
|
|
128
129
|
import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css.js';
|
|
@@ -136,7 +137,6 @@ import './PRIVATE_Message/themes/MessageStyles.css.js';
|
|
|
136
137
|
import './soundUtils-88264cb5.js';
|
|
137
138
|
import './useMessagesContext-9e1dbe91.js';
|
|
138
139
|
import './Transition-f9501682.js';
|
|
139
|
-
import './HiddenAccessible-61197e7c.js';
|
|
140
140
|
import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageTheme.js';
|
|
141
141
|
import './UNSAFE_ComponentMessage/themes/ComponentMessageStyles.css.js';
|
|
142
142
|
import './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.css.js';
|
|
@@ -145,13 +145,11 @@ import './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css.js';
|
|
|
145
145
|
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.css.js';
|
|
146
146
|
import './FormContext-4d71f9c7.js';
|
|
147
147
|
import './useFormContext-875cacd7.js';
|
|
148
|
-
import './FormFieldContext-68eb5946.js';
|
|
149
148
|
import './useFormFieldContext-626574fd.js';
|
|
150
149
|
import './InlineHelp-9f4042ba.js';
|
|
151
150
|
import './InlineHelpSource-fcdcd122.js';
|
|
152
151
|
import './InputGroupContext-20bdbd6e.js';
|
|
153
152
|
import './useInputGroupContext-1d19411e.js';
|
|
154
|
-
import './CompactUserAssistance-12950e48.js';
|
|
155
153
|
import './Popup-a4be2769.js';
|
|
156
154
|
import './tabbableUtils-b4fa6fe6.js';
|
|
157
155
|
import './head-6f17c50c.js';
|
|
@@ -182,23 +180,81 @@ import './UNSAFE_Popup/themes/redwood/PopupBaseTheme.css.js';
|
|
|
182
180
|
import './UNSAFE_Popup/themes/redwood/PopupBaseTheme.styles.css';
|
|
183
181
|
import './UNSAFE_Popup/themes/redwood/PopupVariants.css.js';
|
|
184
182
|
import './PopupStyles.styles.css';
|
|
185
|
-
import './Separator-93c70737.js';
|
|
186
183
|
import './UNSAFE_Separator/themes/SeparatorStyles.css.js';
|
|
187
184
|
import './SeparatorStyles.styles.css';
|
|
188
|
-
import './CompactHelpSource-9c0d4cb4.js';
|
|
189
|
-
import './Help-a8e99b58.js';
|
|
190
|
-
import './useFocusWithin-30b1e2d8.js';
|
|
191
|
-
import './UNSAFE_Label/themes/redwood/LabelTheme.js';
|
|
192
|
-
import './UNSAFE_Label/themes/LabelStyles.css.js';
|
|
193
185
|
import './LabelStyles.styles.css';
|
|
194
|
-
import './UNSAFE_Label/themes/redwood/LabelBaseTheme.css.js';
|
|
195
186
|
import './UNSAFE_Label/themes/redwood/LabelBaseTheme.styles.css';
|
|
196
187
|
import './UNSAFE_Label/themes/redwood/LabelVariants.css.js';
|
|
197
|
-
import './
|
|
188
|
+
import './UNSAFE_InputDatePicker/themes/InputDatePickerDropdownStyles.css.js';
|
|
189
|
+
import './InputDatePickerDropdownStyles.styles.css';
|
|
190
|
+
import './Sheet-31e6970c.js';
|
|
191
|
+
import './UNSAFE_Sheet/themes/SheetStyles.css.js';
|
|
192
|
+
import './SheetStyles.styles.css';
|
|
193
|
+
import './animationUtils-e6081007.js';
|
|
194
|
+
import './DatePicker-38a71007.js';
|
|
195
|
+
import './useFocusWithin-30b1e2d8.js';
|
|
196
|
+
import './calendarDateUtils-763c571d.js';
|
|
198
197
|
import './getFormatParse-4721cf15.js';
|
|
199
198
|
import './types-ad8fe56f.js';
|
|
199
|
+
import './useBreakpointValues-de03c6fa.js';
|
|
200
|
+
import './useBreakpoints-13aa87e6.js';
|
|
201
|
+
import './Button-94bdbda5.js';
|
|
202
|
+
import './UNSAFE_DatePicker/themes/DatePickerContract.css.js';
|
|
203
|
+
import './UNSAFE_DatePicker/themes/redwood/DatePickerTheme.js';
|
|
204
|
+
import './UNSAFE_DatePicker/themes/DatePickerStyles.css.js';
|
|
205
|
+
import './DatePickerStyles.styles.css';
|
|
206
|
+
import './UNSAFE_DatePicker/themes/redwood/DatePickerBaseTheme.css.js';
|
|
207
|
+
import './UNSAFE_DatePicker/themes/redwood/DatePickerBaseTheme.styles.css';
|
|
208
|
+
import './DatePickerHeader-5806fbea.js';
|
|
209
|
+
import './CaretDown-b6269bc7.js';
|
|
210
|
+
import './ChevronRight-ba157ffd.js';
|
|
211
|
+
import './ToggleButton-eadb0f5a.js';
|
|
212
|
+
import './useToggleAction-fc0f5399.js';
|
|
213
|
+
import './toggleButtonUtils-db5d5d21.js';
|
|
214
|
+
import './ToggleButtonLabel-1e23823e.js';
|
|
215
|
+
import './View-a8a64eb1.js';
|
|
216
|
+
import './borders-98a63040.js';
|
|
217
|
+
import './colors-d82326ea.js';
|
|
218
|
+
import './padding-ddeb1692.js';
|
|
219
|
+
import './aria-efa0582c.js';
|
|
220
|
+
import './equals-160da165.js';
|
|
200
221
|
import './maskUtils-3f96bfc4.js';
|
|
201
|
-
import './
|
|
222
|
+
import './PRIVATE_DatePickerHeader/themes/DatePickerHeaderStyles.css.js';
|
|
223
|
+
import './DatePickerHeaderStyles.styles.css';
|
|
224
|
+
import './MonthView-9c0b40f1.js';
|
|
225
|
+
import './dayUtils-cce4f1bb.js';
|
|
226
|
+
import './supplementalData-ed66ab4e.js';
|
|
227
|
+
import './StyledDatePickerButton-aede0e3c.js';
|
|
228
|
+
import './PRIVATE_StyledDatePickerButton/themes/StyledDatePickerButtonStyles.css.js';
|
|
229
|
+
import './StyledDatePickerButtonStyles.styles.css';
|
|
230
|
+
import './useCellNavigation-00d575ca.js';
|
|
231
|
+
import './PRIVATE_MonthView/themes/DayCellStyles.css.js';
|
|
232
|
+
import './DayCellStyles.styles.css';
|
|
233
|
+
import './Grid-c2385b22.js';
|
|
234
|
+
import './grid-65aa641c.js';
|
|
235
|
+
import './GridStyles.styles.css';
|
|
236
|
+
import './PRIVATE_MonthView/themes/redwood/MonthViewTheme.js';
|
|
237
|
+
import './PRIVATE_MonthView/themes/MonthViewStyles.css.js';
|
|
238
|
+
import './MonthViewStyles.styles.css';
|
|
239
|
+
import './PRIVATE_MonthView/themes/MonthViewContract.css.js';
|
|
240
|
+
import './PRIVATE_MonthView/themes/WeekNumberCellStyle.css.js';
|
|
241
|
+
import './WeekNumberCellStyle.styles.css';
|
|
242
|
+
import './YearsGridView-cb510d1e.js';
|
|
243
|
+
import './SectionedContent-2d0a744d.js';
|
|
244
|
+
import './Dropdown-f7fbfa81.js';
|
|
245
|
+
import './keyboardUtils-40eea0a6.js';
|
|
246
|
+
import './CollectionInteractionContext-7cf19abc.js';
|
|
247
|
+
import './UNSAFE_Dropdown/themes/dropdownStyles.css.js';
|
|
248
|
+
import './dropdownStyles.styles.css';
|
|
249
|
+
import './useOutsideMousedown-7307de8b.js';
|
|
250
|
+
import './InputDateMask-23aef570.js';
|
|
251
|
+
import './CompactUserAssistance-12950e48.js';
|
|
252
|
+
import './Separator-93c70737.js';
|
|
253
|
+
import './CompactHelpSource-9c0d4cb4.js';
|
|
254
|
+
import './Help-a8e99b58.js';
|
|
255
|
+
import './UNSAFE_Label/themes/redwood/LabelTheme.js';
|
|
256
|
+
import './UNSAFE_Label/themes/LabelStyles.css.js';
|
|
257
|
+
import './UNSAFE_Label/themes/redwood/LabelBaseTheme.css.js';
|
|
202
258
|
import './UNSAFE_InputDateMask/themes/SegmentStyles.css.js';
|
|
203
259
|
import './SegmentStyles.styles.css';
|
|
204
260
|
import './LiveRegion-5302331c.js';
|
|
@@ -269,60 +325,4 @@ import './useFocusableTextField-8fe41cd4.js';
|
|
|
269
325
|
import './useTextField-f57cfb8d.js';
|
|
270
326
|
import './useMessageSeverity-65295e8f.js';
|
|
271
327
|
import './useFormFieldContextProps-d07cd618.js';
|
|
272
|
-
import './UNSAFE_InputDatePicker/themes/InputDatePickerDropdownStyles.css.js';
|
|
273
|
-
import './InputDatePickerDropdownStyles.styles.css';
|
|
274
|
-
import './Sheet-31e6970c.js';
|
|
275
|
-
import './UNSAFE_Sheet/themes/SheetStyles.css.js';
|
|
276
|
-
import './SheetStyles.styles.css';
|
|
277
|
-
import './animationUtils-e6081007.js';
|
|
278
|
-
import './DatePicker-38a71007.js';
|
|
279
|
-
import './useBreakpointValues-de03c6fa.js';
|
|
280
|
-
import './useBreakpoints-13aa87e6.js';
|
|
281
|
-
import './Button-94bdbda5.js';
|
|
282
|
-
import './UNSAFE_DatePicker/themes/DatePickerContract.css.js';
|
|
283
|
-
import './UNSAFE_DatePicker/themes/redwood/DatePickerTheme.js';
|
|
284
|
-
import './UNSAFE_DatePicker/themes/DatePickerStyles.css.js';
|
|
285
|
-
import './DatePickerStyles.styles.css';
|
|
286
|
-
import './UNSAFE_DatePicker/themes/redwood/DatePickerBaseTheme.css.js';
|
|
287
|
-
import './UNSAFE_DatePicker/themes/redwood/DatePickerBaseTheme.styles.css';
|
|
288
|
-
import './DatePickerHeader-5806fbea.js';
|
|
289
|
-
import './CaretDown-b6269bc7.js';
|
|
290
|
-
import './ChevronRight-ba157ffd.js';
|
|
291
|
-
import './ToggleButton-eadb0f5a.js';
|
|
292
|
-
import './useToggleAction-fc0f5399.js';
|
|
293
|
-
import './toggleButtonUtils-db5d5d21.js';
|
|
294
|
-
import './ToggleButtonLabel-1e23823e.js';
|
|
295
|
-
import './View-a8a64eb1.js';
|
|
296
|
-
import './borders-98a63040.js';
|
|
297
|
-
import './colors-d82326ea.js';
|
|
298
|
-
import './padding-ddeb1692.js';
|
|
299
|
-
import './aria-efa0582c.js';
|
|
300
|
-
import './equals-160da165.js';
|
|
301
|
-
import './PRIVATE_DatePickerHeader/themes/DatePickerHeaderStyles.css.js';
|
|
302
|
-
import './DatePickerHeaderStyles.styles.css';
|
|
303
|
-
import './MonthView-9c0b40f1.js';
|
|
304
|
-
import './dayUtils-cce4f1bb.js';
|
|
305
|
-
import './supplementalData-ed66ab4e.js';
|
|
306
|
-
import './StyledDatePickerButton-aede0e3c.js';
|
|
307
|
-
import './PRIVATE_StyledDatePickerButton/themes/StyledDatePickerButtonStyles.css.js';
|
|
308
|
-
import './StyledDatePickerButtonStyles.styles.css';
|
|
309
|
-
import './useCellNavigation-00d575ca.js';
|
|
310
|
-
import './PRIVATE_MonthView/themes/DayCellStyles.css.js';
|
|
311
|
-
import './DayCellStyles.styles.css';
|
|
312
|
-
import './Grid-c2385b22.js';
|
|
313
|
-
import './grid-65aa641c.js';
|
|
314
|
-
import './GridStyles.styles.css';
|
|
315
|
-
import './PRIVATE_MonthView/themes/redwood/MonthViewTheme.js';
|
|
316
|
-
import './PRIVATE_MonthView/themes/MonthViewStyles.css.js';
|
|
317
|
-
import './MonthViewStyles.styles.css';
|
|
318
|
-
import './PRIVATE_MonthView/themes/MonthViewContract.css.js';
|
|
319
|
-
import './PRIVATE_MonthView/themes/WeekNumberCellStyle.css.js';
|
|
320
|
-
import './WeekNumberCellStyle.styles.css';
|
|
321
|
-
import './YearsGridView-cb510d1e.js';
|
|
322
|
-
import './SectionedContent-2d0a744d.js';
|
|
323
|
-
import './Dropdown-f7fbfa81.js';
|
|
324
|
-
import './CollectionInteractionContext-7cf19abc.js';
|
|
325
|
-
import './UNSAFE_Dropdown/themes/dropdownStyles.css.js';
|
|
326
|
-
import './dropdownStyles.styles.css';
|
|
327
|
-
import './useOutsideMousedown-7307de8b.js';
|
|
328
328
|
//# sourceMappingURL=UNSAFE_InputDatePicker.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
-
export { L as LineAreaChart } from './LineAreaChart-
|
|
2
|
+
export { L as LineAreaChart } from './LineAreaChart-d4ed8c0d.js';
|
|
3
3
|
import 'preact/jsx-runtime';
|
|
4
4
|
import './layoutUtils-3bbcb977.js';
|
|
5
5
|
import './scale-3b7850b9.js';
|
|
@@ -38,7 +38,7 @@ import './PRIVATE_Chart/themes/ChartStyles.css.js';
|
|
|
38
38
|
import './ChartStyles.styles.css';
|
|
39
39
|
import './classNames-4e12b00d.js';
|
|
40
40
|
import './useUser-bca8cf2d.js';
|
|
41
|
-
import './Chart-
|
|
41
|
+
import './Chart-b97e00f1.js';
|
|
42
42
|
import './TrackResizeContainer-aa13760c.js';
|
|
43
43
|
import './useSize-9eea84eb.js';
|
|
44
44
|
import './useResizeObserver-838164c1.js';
|
|
@@ -75,9 +75,6 @@ import './mergeProps-88ea8306.js';
|
|
|
75
75
|
import './useChartNav-3f0e3881.js';
|
|
76
76
|
import './layoutUtils-6725789c.js';
|
|
77
77
|
import './useVisHover-d7a0b2f3.js';
|
|
78
|
-
import './ScrollBar-a431a4f0.js';
|
|
79
|
-
import './PRIVATE_ChartScrollBar/themes/ScrollBarStyles.css.js';
|
|
80
|
-
import './ScrollBarStyles.styles.css';
|
|
81
78
|
import './useSelectDrill-232b571c.js';
|
|
82
79
|
import './useChartDataCursor-8d53123d.js';
|
|
83
80
|
import './hooks/PRIVATE_useChartDataCursor/themes/DataCursorStyles.css.js';
|
|
@@ -260,4 +257,7 @@ import './OverviewSlidingWindow-9e38aaaa.js';
|
|
|
260
257
|
import './PRIVATE_VisOverview/themes/VisOverview.css.js';
|
|
261
258
|
import './VisOverview.styles.css';
|
|
262
259
|
import './DragH-748254cd.js';
|
|
260
|
+
import './ScrollBar-a431a4f0.js';
|
|
261
|
+
import './PRIVATE_ChartScrollBar/themes/ScrollBarStyles.css.js';
|
|
262
|
+
import './ScrollBarStyles.styles.css';
|
|
263
263
|
//# sourceMappingURL=UNSAFE_LineAreaChart.js.map
|
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
import { jsx } from 'preact/jsx-runtime';
|
|
3
3
|
import { useCallback, useMemo } from 'preact/hooks';
|
|
4
4
|
import { forwardRef } from 'preact/compat';
|
|
5
|
+
import { a as CheckboxSetContext } from './CheckboxSet-3c3b7c71.js';
|
|
5
6
|
import { u as useId } from './useId-03dbfdf0.js';
|
|
6
|
-
import { C as CheckboxSetContext } from './CheckboxSetContext-1be56556.js';
|
|
7
7
|
import { B as BaseRichSelection } from './BaseRichSelection-9fa49816.js';
|
|
8
8
|
import 'preact';
|
|
9
9
|
import './FormContext-4d71f9c7.js';
|
|
10
10
|
import './useFormContext-875cacd7.js';
|
|
11
11
|
import './FormFieldContext-68eb5946.js';
|
|
12
12
|
import './useFormFieldContextProps-d07cd618.js';
|
|
13
|
+
import './CheckboxSetStyles.styles.css';
|
|
14
|
+
import './CheckboxRadioField-a4db2c10.js';
|
|
13
15
|
import './useCollectionFocusRing-0395110a.js';
|
|
14
16
|
import './collectionUtils-ccfce5b4.js';
|
|
15
17
|
import './keys-49c92dbb.js';
|
|
@@ -18,18 +20,9 @@ import './useTranslationBundle-6da03e52.js';
|
|
|
18
20
|
import './LayerHost-7a2149f5.js';
|
|
19
21
|
import './Common/themes/redwood/theme.js';
|
|
20
22
|
import './Common/themes/themeContract.css.js';
|
|
21
|
-
import './Label-6d90e627.js';
|
|
22
|
-
import './useFormFieldContext-626574fd.js';
|
|
23
|
-
import './classNames-4e12b00d.js';
|
|
24
|
-
import './useComponentTheme-d2f9e47f.js';
|
|
25
|
-
import './logger-c92f309c.js';
|
|
26
|
-
import './TabbableModeContext-7d8ad946.js';
|
|
27
|
-
import './UserAssistanceStyles.styles.css';
|
|
28
|
-
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.styles.css';
|
|
29
|
-
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css.js';
|
|
30
|
-
import './vanilla-extract-recipes-createRuntimeFn.esm-2aaf8c98.js';
|
|
31
23
|
import './Flex-2d51e914.js';
|
|
32
24
|
import './useTestId-af32a9eb.js';
|
|
25
|
+
import './classNames-4e12b00d.js';
|
|
33
26
|
import './boxalignment-7d41dd5e.js';
|
|
34
27
|
import './size-88f26574.js';
|
|
35
28
|
import './utils-d65cb4fb.js';
|
|
@@ -49,6 +42,15 @@ import './_curry3-0b4222d7.js';
|
|
|
49
42
|
import './_curry2-34316bcf.js';
|
|
50
43
|
import './_isObject-1fab0f5b.js';
|
|
51
44
|
import './FlexStyles.styles.css';
|
|
45
|
+
import './Label-6d90e627.js';
|
|
46
|
+
import './useFormFieldContext-626574fd.js';
|
|
47
|
+
import './useComponentTheme-d2f9e47f.js';
|
|
48
|
+
import './logger-c92f309c.js';
|
|
49
|
+
import './TabbableModeContext-7d8ad946.js';
|
|
50
|
+
import './UserAssistanceStyles.styles.css';
|
|
51
|
+
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.styles.css';
|
|
52
|
+
import './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css.js';
|
|
53
|
+
import './vanilla-extract-recipes-createRuntimeFn.esm-2aaf8c98.js';
|
|
52
54
|
import './MessageBannerStyles.styles.css';
|
|
53
55
|
import './UNSAFE_MessageBanner/themes/redwood/MessageBannerBaseTheme.styles.css';
|
|
54
56
|
import './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css.js';
|
|
@@ -209,7 +211,6 @@ import './useInputGroupContext-1d19411e.js';
|
|
|
209
211
|
import './CheckboxRadioFieldStyles.css-cf673ef0.js';
|
|
210
212
|
import './useMessageSeverity-65295e8f.js';
|
|
211
213
|
import './CheckboxRadioFieldStyles.styles.css';
|
|
212
|
-
import './CheckboxRadioContext-fe425383.js';
|
|
213
214
|
import './LabelValueLayout-bcf482be.js';
|
|
214
215
|
import './LabelValueLayoutStyles.styles.css';
|
|
215
216
|
import './UNSAFE_RadioItem/themes/redwood/RadioTheme.js';
|
|
@@ -229,6 +230,7 @@ import './UNSAFE_Checkbox/themes/redwood/CheckboxBaseTheme.css.js';
|
|
|
229
230
|
import './UNSAFE_Checkbox/themes/redwood/CheckboxBaseTheme.styles.css';
|
|
230
231
|
import './UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js';
|
|
231
232
|
import './CheckboxVariants.styles.css';
|
|
233
|
+
import './CheckboxRadioContext-fe425383.js';
|
|
232
234
|
import './LayoutStyles.css-8a60c28c.js';
|
|
233
235
|
import './LayoutStyles.styles.css';
|
|
234
236
|
import './Grid-c2385b22.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UNSAFE_RichCheckboxSet.js","sources":["../../src/UNSAFE_RichCheckboxSet/RichCheckboxSet.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { ComponentChildren, ComponentProps, Ref } from 'preact';\nimport { useCallback, useMemo } from 'preact/hooks';\nimport { forwardRef } from 'preact/compat';\n\nimport { BaseRichSelection } from '#PRIVATE_RichSelectionCommon';\nimport type { FocusableHandle } from '#hooks/UNSAFE_useFocusableTextField';\nimport type { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport { CheckboxSetContext } from '#UNSAFE_CheckboxSet';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { InlineUserAssistance, type UserAssistanceDensityType } from '#UNSAFE_UserAssistance';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport type { AriaAttributesSignalExcluded } from '#utils/UNSAFE_attributeUtils';\nimport type { LayoutColumnSpan } from '#utils/UNSAFE_styles/Layout';\n\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\n// Typing should stay in sync with BaseRichSelection. They cannot be imported directly\n// because BaseRichSelection is in a PRIVATE directory and will be removed in the production build.\ntype Props = TestIdProps &\n Pick<AriaAttributesSignalExcluded, 'aria-describedby'> & {\n /**\n * Text to provide guidance to help the user understand what data to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Set of RichSelectionItems\n */\n children: ComponentChildren;\n /**\n * Specifies how many columns to span in a FormLayout with direction === 'row'\n */\n columnSpan?: LayoutColumnSpan;\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies if the set is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies if the set is read-only.\n */\n isReadonly?: boolean;\n /**\n * Specifies whether the set requires a selection to be made.\n */\n isRequired?: boolean;\n /**\n * Label text for the set.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field. Maps to \"top\" in forms using \"start\".\n */\n labelEdge?: 'none' | 'top' | 'inside';\n /**\n * Specifies the layout of the cards and media\n */\n layout: 'xl' | 'md' | 'sm';\n /**\n * Specifies the maximum number of selectable options. If both \"maxSelected\" and \"minSelected\" are defined,\n * \"maxSelected\" must be greater than or equal to \"minSelected\" and at least 2. To require an exact number\n * of options to be selected, set \"maxSelected\" and \"minSelected\" to the same value.\n */\n maxSelected?: number;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * Specifies the minimum number of selectable options. If both \"minSelected\" and \"maxSelected\" are defined,\n * \"minSelected\" must be less than or equal to \"maxSelected\" and at least 2. To require an exact number\n * of options to be selected, set \"minSelected\" and \"maxSelected\" to the same value. To require at least one\n * item to be selected, use \"isRequired\". To require exactly one item to be selected, use \"RichRadioSet\".\n */\n minSelected?: number;\n /**\n * Callback invoked each time the user changes selected option.\n */\n onCommit: (detail: ValueUpdateDetail<Set<string | number>>) => void;\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'compact'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * </ul>\n */\n userAssistanceDensity?: UserAssistanceDensityType;\n /**\n * Value of the checkbox option.\n */\n value?: Set<string | number>;\n };\n\n/**\n * A rich checkbox set allows the user to select options from a set of options.\n */\nexport const RichCheckboxSet = forwardRef(\n (\n { children, maxSelected, minSelected, onCommit: propOnCommit, value, ...otherProps }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const baseId = useId();\n const hasMin = minSelected != null;\n const hasMax = maxSelected != null;\n\n const onCommit = useCallback(\n (detail: ValueUpdateDetail<Set<string | number>>) => {\n const { value: updateValue } = detail;\n const hasValue = updateValue !== undefined && updateValue.size > 0;\n const hasExceededLimit = hasValue && hasMax && updateValue.size > maxSelected;\n\n // attempting to add a new value if hasExceededLimit will prevent propOnCommit from being called\n !hasExceededLimit && propOnCommit?.(detail);\n },\n [maxSelected, hasMax, propOnCommit]\n );\n\n const checkboxSetContext = useMemo(\n () => ({\n name: baseId,\n value,\n onCommit\n }),\n [baseId, onCommit, value]\n );\n\n // Runtime error checking\n if (hasMin && minSelected < 2) {\n throw new Error('RichCheckboxSet: minSelected should be equal to or greater than 2.');\n }\n if (hasMax && maxSelected < 2) {\n throw new Error('RichCheckboxSet: maxSelected should be equal to or greater than 2.');\n }\n if (hasMin && hasMax && minSelected > maxSelected) {\n throw new Error('RichCheckboxSet: minSelected should not be greater than maxSelected.');\n }\n\n return (\n <CheckboxSetContext.Provider value={checkboxSetContext}>\n <BaseRichSelection\n {...otherProps}\n baseId={baseId}\n ref={ref}\n selection=\"multiple\"\n value={value}>\n {children}\n </BaseRichSelection>\n </CheckboxSetContext.Provider>\n );\n }\n);\n"],"names":["_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"UNSAFE_RichCheckboxSet.js","sources":["../../src/UNSAFE_RichCheckboxSet/RichCheckboxSet.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport type { ComponentChildren, ComponentProps, Ref } from 'preact';\nimport { useCallback, useMemo } from 'preact/hooks';\nimport { forwardRef } from 'preact/compat';\n\nimport { BaseRichSelection } from '#PRIVATE_RichSelectionCommon';\nimport type { FocusableHandle } from '#hooks/UNSAFE_useFocusableTextField';\nimport type { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport { CheckboxSetContext } from '#UNSAFE_CheckboxSet';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { InlineUserAssistance, type UserAssistanceDensityType } from '#UNSAFE_UserAssistance';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport type { AriaAttributesSignalExcluded } from '#utils/UNSAFE_attributeUtils';\nimport type { LayoutColumnSpan } from '#utils/UNSAFE_styles/Layout';\n\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\n// Typing should stay in sync with BaseRichSelection. They cannot be imported directly\n// because BaseRichSelection is in a PRIVATE directory and will be removed in the production build.\ntype Props = TestIdProps &\n Pick<AriaAttributesSignalExcluded, 'aria-describedby'> & {\n /**\n * Text to provide guidance to help the user understand what data to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Set of RichSelectionItems\n */\n children: ComponentChildren;\n /**\n * Specifies how many columns to span in a FormLayout with direction === 'row'\n */\n columnSpan?: LayoutColumnSpan;\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies if the set is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies if the set is read-only.\n */\n isReadonly?: boolean;\n /**\n * Specifies whether the set requires a selection to be made.\n */\n isRequired?: boolean;\n /**\n * Label text for the set.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field. Maps to \"top\" in forms using \"start\".\n */\n labelEdge?: 'none' | 'top' | 'inside';\n /**\n * Specifies the layout of the cards and media\n */\n layout: 'xl' | 'md' | 'sm';\n /**\n * Specifies the maximum number of selectable options. If both \"maxSelected\" and \"minSelected\" are defined,\n * \"maxSelected\" must be greater than or equal to \"minSelected\" and at least 2. To require an exact number\n * of options to be selected, set \"maxSelected\" and \"minSelected\" to the same value.\n */\n maxSelected?: number;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * Specifies the minimum number of selectable options. If both \"minSelected\" and \"maxSelected\" are defined,\n * \"minSelected\" must be less than or equal to \"maxSelected\" and at least 2. To require an exact number\n * of options to be selected, set \"minSelected\" and \"maxSelected\" to the same value. To require at least one\n * item to be selected, use \"isRequired\". To require exactly one item to be selected, use \"RichRadioSet\".\n */\n minSelected?: number;\n /**\n * Callback invoked each time the user changes selected option.\n */\n onCommit: (detail: ValueUpdateDetail<Set<string | number>>) => void;\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'compact'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * </ul>\n */\n userAssistanceDensity?: UserAssistanceDensityType;\n /**\n * Value of the checkbox option.\n */\n value?: Set<string | number>;\n };\n\n/**\n * A rich checkbox set allows the user to select options from a set of options.\n */\nexport const RichCheckboxSet = forwardRef(\n (\n { children, maxSelected, minSelected, onCommit: propOnCommit, value, ...otherProps }: Props,\n ref?: Ref<FocusableHandle>\n ) => {\n const baseId = useId();\n const hasMin = minSelected != null;\n const hasMax = maxSelected != null;\n\n const onCommit = useCallback(\n (detail: ValueUpdateDetail<Set<string | number>>) => {\n const { value: updateValue } = detail;\n const hasValue = updateValue !== undefined && updateValue.size > 0;\n const hasExceededLimit = hasValue && hasMax && updateValue.size > maxSelected;\n\n // attempting to add a new value if hasExceededLimit will prevent propOnCommit from being called\n !hasExceededLimit && propOnCommit?.(detail);\n },\n [maxSelected, hasMax, propOnCommit]\n );\n\n const checkboxSetContext = useMemo(\n () => ({\n name: baseId,\n value,\n onCommit\n }),\n [baseId, onCommit, value]\n );\n\n // Runtime error checking\n if (hasMin && minSelected < 2) {\n throw new Error('RichCheckboxSet: minSelected should be equal to or greater than 2.');\n }\n if (hasMax && maxSelected < 2) {\n throw new Error('RichCheckboxSet: maxSelected should be equal to or greater than 2.');\n }\n if (hasMin && hasMax && minSelected > maxSelected) {\n throw new Error('RichCheckboxSet: minSelected should not be greater than maxSelected.');\n }\n\n return (\n <CheckboxSetContext.Provider value={checkboxSetContext}>\n <BaseRichSelection\n {...otherProps}\n baseId={baseId}\n ref={ref}\n selection=\"multiple\"\n value={value}>\n {children}\n </BaseRichSelection>\n </CheckboxSetContext.Provider>\n );\n }\n);\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GA;;AAEG;AACU,MAAA,eAAe,GAAG,UAAU,CACvC,CACE,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,UAAU,EAAS,EAC3F,GAA0B,KACxB;AACF,IAAA,MAAM,MAAM,GAAG,KAAK,EAAE,CAAC;AACvB,IAAA,MAAM,MAAM,GAAG,WAAW,IAAI,IAAI,CAAC;AACnC,IAAA,MAAM,MAAM,GAAG,WAAW,IAAI,IAAI,CAAC;AAEnC,IAAA,MAAM,QAAQ,GAAG,WAAW,CAC1B,CAAC,MAA+C,KAAI;AAClD,QAAA,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QACtC,MAAM,QAAQ,GAAG,WAAW,KAAK,SAAS,IAAI,WAAW,CAAC,IAAI,GAAG,CAAC,CAAC;QACnE,MAAM,gBAAgB,GAAG,QAAQ,IAAI,MAAM,IAAI,WAAW,CAAC,IAAI,GAAG,WAAW,CAAC;;AAG9E,QAAA,CAAC,gBAAgB,IAAI,YAAY,GAAG,MAAM,CAAC,CAAC;KAC7C,EACD,CAAC,WAAW,EAAE,MAAM,EAAE,YAAY,CAAC,CACpC,CAAC;AAEF,IAAA,MAAM,kBAAkB,GAAG,OAAO,CAChC,OAAO;AACL,QAAA,IAAI,EAAE,MAAM;QACZ,KAAK;QACL,QAAQ;KACT,CAAC,EACF,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAC1B,CAAC;;AAGF,IAAA,IAAI,MAAM,IAAI,WAAW,GAAG,CAAC,EAAE;AAC7B,QAAA,MAAM,IAAI,KAAK,CAAC,oEAAoE,CAAC,CAAC;KACvF;AACD,IAAA,IAAI,MAAM,IAAI,WAAW,GAAG,CAAC,EAAE;AAC7B,QAAA,MAAM,IAAI,KAAK,CAAC,oEAAoE,CAAC,CAAC;KACvF;IACD,IAAI,MAAM,IAAI,MAAM,IAAI,WAAW,GAAG,WAAW,EAAE;AACjD,QAAA,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;KACzF;AAED,IAAA,QACEA,GAAA,CAAC,kBAAkB,CAAC,QAAQ,EAAC,EAAA,KAAK,EAAE,kBAAkB,YACpDA,GAAC,CAAA,iBAAiB,EACZ,EAAA,GAAA,UAAU,EACd,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,UAAU,EACpB,KAAK,EAAE,KAAK,EACX,QAAA,EAAA,QAAQ,EACS,CAAA,EAAA,CACQ,EAC9B;AACJ,CAAC;;;;"}
|