@oracle/oraclejet-core-pack 17.0.4 → 17.1.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/oj-c/ActionCard.json +1 -1
- package/oj-c/AreaChart.json +270 -178
- package/oj-c/Button.json +1 -1
- package/oj-c/ButtonsetMultiple.json +8 -8
- package/oj-c/ButtonsetSingle.json +8 -8
- package/oj-c/CardView.json +25 -12
- package/oj-c/Checkbox.json +4 -4
- package/oj-c/Checkboxset.json +92 -7
- package/oj-c/Collapsible.json +8 -8
- package/oj-c/ConveyorBelt.json +67 -5
- package/oj-c/DatePicker.json +96 -3
- package/oj-c/FilePicker.json +6 -6
- package/oj-c/FormControlWrapper/FormControlWrapper.js +54 -0
- package/oj-c/FormControlWrapper/index.js +6 -0
- package/oj-c/InputDateMask.json +16 -5
- package/oj-c/InputDatePicker.json +115 -58
- package/oj-c/InputDateText.json +62 -51
- package/oj-c/InputMonthMask.json +67 -149
- package/oj-c/InputNumber.json +25 -4
- package/oj-c/InputPassword.json +12 -1
- package/oj-c/InputSensitiveText.json +16 -5
- package/oj-c/InputText.json +23 -2
- package/oj-c/Legend.json +358 -321
- package/oj-c/LegendSection.json +1 -1
- package/oj-c/LineChart.json +270 -178
- package/oj-c/ListItemLayout.json +20 -0
- package/oj-c/ListView.json +84 -62
- package/oj-c/MenuButton.json +432 -4
- package/oj-c/MessageBanner.json +20 -17
- package/oj-c/MessageToast.json +21 -18
- package/oj-c/MeterBar.json +1627 -35
- package/oj-c/MeterCircle.json +1579 -6
- package/oj-c/Popup.json +56 -1
- package/oj-c/ProgressButton.json +567 -0
- package/oj-c/Radioset.json +92 -7
- package/oj-c/RatingGauge.json +2 -2
- package/oj-c/SelectMultiple.json +156 -10
- package/oj-c/SelectSingle.json +140 -11
- package/oj-c/SelectionCard.json +1 -2
- package/oj-c/Selector.json +11 -1
- package/oj-c/SelectorAll.json +11 -1
- package/oj-c/SplitMenuButton.json +161 -327
- package/oj-c/TabBar.json +169 -12
- package/oj-c/TabBarMixed.json +14 -14
- package/oj-c/Table.json +2117 -0
- package/oj-c/TagCloud.json +114 -8
- package/oj-c/TextArea.json +23 -2
- package/oj-c/action-card/component.json +4 -4
- package/oj-c/area-chart/__webdriver__/AreaChartWebElementBase.d.ts +2 -2
- package/oj-c/area-chart/__webdriver__/AreaChartWebElementBase.js +1 -1
- package/oj-c/area-chart/__webdriver__/AreaChartWebElementBase.js.map +1 -1
- package/oj-c/area-chart/area-chart.js +6 -5
- package/oj-c/area-chart/component.json +30 -5
- package/oj-c/area-chart-group/component.json +2 -2
- package/oj-c/area-chart-item/component.json +2 -2
- package/oj-c/area-chart-series/component.json +2 -2
- package/oj-c/avatar/component.json +3 -3
- package/oj-c/button/component.json +4 -4
- package/oj-c/buttonset-multiple/component.json +4 -4
- package/oj-c/buttonset-single/component.json +4 -4
- package/oj-c/card-view/__webdriver__/CardViewWebElement.js +5 -13
- package/oj-c/card-view/__webdriver__/CardViewWebElement.js.map +1 -1
- package/oj-c/card-view/card-view.js +7 -4
- package/oj-c/card-view/component.json +3 -3
- package/oj-c/checkbox/checkbox.js +1 -17
- package/oj-c/checkbox/component.json +3 -3
- package/oj-c/checkbox/useCheckboxPreact.js +26 -13
- package/oj-c/checkboxset/component.json +3 -3
- package/oj-c/checkboxset/useCheckboxsetPreact.js +17 -13
- package/oj-c/collapsible/component.json +3 -3
- package/oj-c/component.json +13 -5
- package/oj-c/conveyor-belt/component.json +3 -3
- package/oj-c/corepackbundle.js +1474 -315
- package/oj-c/date-picker/__webdriver__/DatePickerWebElementBase.d.ts +7 -0
- package/oj-c/date-picker/__webdriver__/DatePickerWebElementBase.js +9 -0
- package/oj-c/date-picker/__webdriver__/DatePickerWebElementBase.js.map +1 -1
- package/oj-c/date-picker/component.json +26 -5
- package/oj-c/date-picker/date-picker.js +3 -3
- package/oj-c/drag-handle/component.json +3 -3
- package/oj-c/drawer-layout/component.json +3 -3
- package/oj-c/drawer-popup/component.json +3 -3
- package/oj-c/editable-value/UNSAFE_useConverterLifecycle/useConverterLifecycle.js +3 -3
- package/oj-c/editable-value/UNSAFE_useEditableValue/useEditableValue.js +2 -1
- package/oj-c/editable-value/UNSAFE_useValue/useValue.js +3 -3
- package/oj-c/editable-value/utils/utils.js +13 -1
- package/oj-c/file-picker/__webdriver__/FilePickerWebElement.js +20 -10
- package/oj-c/file-picker/__webdriver__/FilePickerWebElement.js.map +1 -1
- package/oj-c/file-picker/component.json +3 -3
- package/oj-c/form-layout/component.json +3 -3
- package/oj-c/highlight-text/component.json +3 -3
- package/oj-c/hooks/UNSAFE_useEditableValue/useEditableValue.js +36 -18
- package/oj-c/hooks/UNSAFE_useListData/useListData.js +10 -6
- package/oj-c/input-date-mask/component.json +3 -3
- package/oj-c/input-date-picker/__webdriver__/InputDatePickerWebElementBase.d.ts +7 -0
- package/oj-c/input-date-picker/__webdriver__/InputDatePickerWebElementBase.js +9 -0
- package/oj-c/input-date-picker/__webdriver__/InputDatePickerWebElementBase.js.map +1 -1
- package/oj-c/input-date-picker/component.json +29 -5
- package/oj-c/input-date-picker/input-date-picker.js +3 -2
- package/oj-c/input-date-picker/useInputDatePicker.js +2 -1
- package/oj-c/input-date-text/component.json +3 -3
- package/oj-c/input-month-mask/component.json +3 -3
- package/oj-c/input-number/__webdriver__/InputNumberWebElementBase.d.ts +1 -1
- package/oj-c/input-number/__webdriver__/InputNumberWebElementBase.js +1 -1
- package/oj-c/input-number/__webdriver__/InputNumberWebElementBase.js.map +1 -1
- package/oj-c/input-number/component.json +6 -6
- package/oj-c/input-number/useNumberInputTextPreact.js +3 -2
- package/oj-c/input-password/component.json +3 -3
- package/oj-c/input-password/useInputPasswordPreact.js +14 -11
- package/oj-c/input-sensitive-text/component.json +3 -3
- package/oj-c/input-sensitive-text/useInputSensitiveTextPreact.js +14 -11
- package/oj-c/input-text/component.json +3 -3
- package/oj-c/input-text/useInputTextPreact.js +4 -3
- package/oj-c/labelled-link/component.json +3 -3
- package/oj-c/legend/__webdriver__/LegendWebElementBase.d.ts +1 -1
- package/oj-c/legend/__webdriver__/LegendWebElementBase.js +1 -1
- package/oj-c/legend/__webdriver__/LegendWebElementBase.js.map +1 -1
- package/oj-c/legend/component.json +14 -3
- package/oj-c/legend/legend.js +5 -1
- package/oj-c/legend-item/component.json +2 -2
- package/oj-c/legend-section/component.json +2 -3
- package/oj-c/line-chart/__webdriver__/LineChartWebElementBase.d.ts +2 -2
- package/oj-c/line-chart/__webdriver__/LineChartWebElementBase.js +1 -1
- package/oj-c/line-chart/__webdriver__/LineChartWebElementBase.js.map +1 -1
- package/oj-c/line-chart/component.json +30 -5
- package/oj-c/line-chart/line-chart.js +6 -5
- package/oj-c/line-chart-group/component.json +2 -2
- package/oj-c/line-chart-item/component.json +2 -2
- package/oj-c/line-chart-series/component.json +2 -2
- package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElementBase.d.ts +7 -0
- package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElementBase.js +9 -0
- package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElementBase.js.map +1 -1
- package/oj-c/list-item-layout/component.json +13 -3
- package/oj-c/list-item-layout/list-item-layout.js +4 -4
- package/oj-c/list-view/__webdriver__/ListViewWebElement.js +4 -13
- package/oj-c/list-view/__webdriver__/ListViewWebElement.js.map +1 -1
- package/oj-c/list-view/component.json +6 -3
- package/oj-c/list-view/list-view-styles.css +4 -0
- package/oj-c/list-view/list-view.js +9 -5
- package/oj-c/list-view/useHandleRemoveCurrentKey.js +13 -7
- package/oj-c/list-view/useListViewPreact.js +10 -6
- package/oj-c/menu-button/component.json +50 -5
- package/oj-c/message-banner/component.json +3 -3
- package/oj-c/message-toast/component.json +3 -3
- package/oj-c/metadata/allComponents.json +1967 -319
- package/oj-c/meter-bar/__webdriver__/MeterBarWebElementBase.d.ts +33 -0
- package/oj-c/meter-bar/__webdriver__/MeterBarWebElementBase.js +9 -0
- package/oj-c/meter-bar/__webdriver__/MeterBarWebElementBase.js.map +1 -1
- package/oj-c/meter-bar/component.json +215 -3
- package/oj-c/meter-bar/meter-bar.js +7 -5
- package/oj-c/meter-circle/__webdriver__/MeterCircleWebElementBase.d.ts +26 -0
- package/oj-c/meter-circle/__webdriver__/MeterCircleWebElementBase.js.map +1 -1
- package/oj-c/meter-circle/component.json +209 -3
- package/oj-c/meter-circle/meter-circle.js +5 -3
- package/oj-c/min/FormControlWrapper/FormControlWrapper.js +54 -0
- package/oj-c/min/FormControlWrapper/index.js +6 -0
- package/oj-c/min/area-chart.js +1 -1
- package/oj-c/min/area-chart.js.map +1 -1
- package/oj-c/min/card-view.js +1 -1
- package/oj-c/min/card-view.js.map +1 -1
- package/oj-c/min/checkbox.js +1 -1
- package/oj-c/min/checkbox.js.map +1 -1
- package/oj-c/min/checkboxset.js +1 -1
- package/oj-c/min/checkboxset.js.map +1 -1
- package/oj-c/min/corepackbundle.css +54 -1
- package/oj-c/min/corepackbundle.js +1 -1
- package/oj-c/min/corepackbundle.js.map +1 -1
- package/oj-c/min/date-picker.js +1 -1
- package/oj-c/min/date-picker.js.map +1 -1
- package/oj-c/min/editable-value/UNSAFE_useConverterLifecycle/useConverterLifecycle.js +3 -3
- package/oj-c/min/editable-value/UNSAFE_useEditableValue/useEditableValue.js +2 -1
- package/oj-c/min/editable-value/UNSAFE_useValue/useValue.js +3 -3
- package/oj-c/min/editable-value/utils/utils.js +13 -1
- package/oj-c/min/hooks/UNSAFE_useEditableValue/useEditableValue.js +36 -18
- package/oj-c/min/hooks/UNSAFE_useListData/useListData.js +10 -6
- package/oj-c/min/input-date-mask.js +1 -1
- package/oj-c/min/input-date-mask.js.map +1 -1
- package/oj-c/min/input-date-picker.js +2 -2
- package/oj-c/min/input-date-picker.js.map +1 -1
- package/oj-c/min/input-date-text.js +1 -1
- package/oj-c/min/input-date-text.js.map +1 -1
- package/oj-c/min/input-month-mask.js +1 -1
- package/oj-c/min/input-month-mask.js.map +1 -1
- package/oj-c/min/input-number.js +1 -1
- package/oj-c/min/input-number.js.map +1 -1
- package/oj-c/min/input-password.js +1 -1
- package/oj-c/min/input-password.js.map +1 -1
- package/oj-c/min/input-sensitive-text.js +1 -1
- package/oj-c/min/input-sensitive-text.js.map +1 -1
- package/oj-c/min/input-text.js +1 -1
- package/oj-c/min/input-text.js.map +1 -1
- package/oj-c/min/legend.js +1 -1
- package/oj-c/min/legend.js.map +1 -1
- package/oj-c/min/line-chart.js +1 -1
- package/oj-c/min/line-chart.js.map +1 -1
- package/oj-c/min/list-item-layout.js +1 -1
- package/oj-c/min/list-item-layout.js.map +1 -1
- package/oj-c/min/list-view/list-view-styles.css +4 -0
- package/oj-c/min/list-view.js +1 -1
- package/oj-c/min/list-view.js.map +1 -1
- package/oj-c/min/menu-button.js +1 -1
- package/oj-c/min/menu-button.js.map +1 -1
- package/oj-c/min/meter-bar.js +1 -1
- package/oj-c/min/meter-bar.js.map +1 -1
- package/oj-c/min/meter-circle.js +1 -1
- package/oj-c/min/meter-circle.js.map +1 -1
- package/oj-c/min/progress-button/progress-button-styles.css +12 -0
- package/oj-c/min/progress-button.js +2 -0
- package/oj-c/min/progress-button.js.map +1 -0
- package/oj-c/min/radioset.js +1 -1
- package/oj-c/min/radioset.js.map +1 -1
- package/oj-c/min/rating-gauge.js +1 -1
- package/oj-c/min/rating-gauge.js.map +1 -1
- package/oj-c/min/select-common/PRIVATE_DebouncingDataProviderView/Debouncer.js +78 -0
- package/oj-c/min/select-common/PRIVATE_DebouncingDataProviderView/DebouncingDataProviderView.js +92 -0
- package/oj-c/min/select-common/PRIVATE_useCache/index.js +6 -0
- package/oj-c/min/select-common/PRIVATE_useCache/useCache.js +30 -0
- package/oj-c/min/select-common/PRIVATE_useSelectData/CollectionTemplateDataProviderView.js +208 -0
- package/oj-c/min/select-common/PRIVATE_useSelectData/index.js +7 -0
- package/oj-c/min/select-common/PRIVATE_useSelectData/useCollectionTemplateDataProviderView.js +98 -0
- package/oj-c/min/select-common/PRIVATE_useSelectData/useSelectData.js +24 -0
- package/oj-c/min/select-common/UNSAFE_useDataProviderListeners/useDataProviderListeners.js +13 -4
- package/oj-c/min/select-common/UNSAFE_useWrapDataProvider/useWrapDataProvider.js +10 -6
- package/oj-c/min/select-multiple.js +2 -2
- package/oj-c/min/select-multiple.js.map +1 -1
- package/oj-c/min/select-single.js +2 -2
- package/oj-c/min/select-single.js.map +1 -1
- package/oj-c/min/selector.js +1 -1
- package/oj-c/min/selector.js.map +1 -1
- package/oj-c/min/split-menu-button.js +1 -1
- package/oj-c/min/split-menu-button.js.map +1 -1
- package/oj-c/min/tab-bar-mixed.js +1 -1
- package/oj-c/min/tab-bar-mixed.js.map +1 -1
- package/oj-c/min/tab-bar.js +1 -1
- package/oj-c/min/tab-bar.js.map +1 -1
- package/oj-c/min/table/table-styles.css +39 -0
- package/oj-c/min/table.js +2 -0
- package/oj-c/min/table.js.map +1 -0
- package/oj-c/min/tag-cloud.js +1 -1
- package/oj-c/min/tag-cloud.js.map +1 -1
- package/oj-c/min/text-area.js +1 -1
- package/oj-c/min/text-area.js.map +1 -1
- package/oj-c/min/utils/PRIVATE_ItemsMenu/items-menu.js +2 -2
- package/oj-c/popup/component.json +3 -3
- package/oj-c/progress-bar/component.json +3 -3
- package/oj-c/progress-button/__webdriver__/ProgressButtonWebElement.d.ts +16 -0
- package/oj-c/progress-button/__webdriver__/ProgressButtonWebElement.js +29 -0
- package/oj-c/progress-button/__webdriver__/ProgressButtonWebElement.js.map +1 -0
- package/oj-c/progress-button/__webdriver__/ProgressButtonWebElementBase.d.ts +72 -0
- package/oj-c/progress-button/__webdriver__/ProgressButtonWebElementBase.js +95 -0
- package/oj-c/progress-button/__webdriver__/ProgressButtonWebElementBase.js.map +1 -0
- package/oj-c/progress-button/__webdriver__/index.d.ts +17 -0
- package/oj-c/progress-button/__webdriver__/index.js +34 -0
- package/oj-c/progress-button/__webdriver__/index.js.map +1 -0
- package/oj-c/progress-button/component.json +258 -0
- package/oj-c/progress-button/index.js +6 -0
- package/oj-c/progress-button/progress-button-styles.css +12 -0
- package/oj-c/progress-button/progress-button.js +50 -0
- package/oj-c/progress-button.js +6 -0
- package/oj-c/progress-circle/component.json +3 -3
- package/oj-c/radioset/component.json +3 -3
- package/oj-c/radioset/useRadiosetPreact.js +9 -5
- package/oj-c/rating-gauge/component.json +3 -3
- package/oj-c/rating-gauge/rating-gauge.js +11 -3
- package/oj-c/select-common/PRIVATE_DebouncingDataProviderView/Debouncer.js +78 -0
- package/oj-c/select-common/PRIVATE_DebouncingDataProviderView/DebouncingDataProviderView.js +92 -0
- package/oj-c/select-common/PRIVATE_useCache/index.js +6 -0
- package/oj-c/select-common/PRIVATE_useCache/useCache.js +30 -0
- package/oj-c/select-common/PRIVATE_useSelectData/CollectionTemplateDataProviderView.js +208 -0
- package/oj-c/select-common/PRIVATE_useSelectData/index.js +7 -0
- package/oj-c/select-common/PRIVATE_useSelectData/useCollectionTemplateDataProviderView.js +98 -0
- package/oj-c/select-common/PRIVATE_useSelectData/useSelectData.js +24 -0
- package/oj-c/select-common/UNSAFE_useDataProviderListeners/useDataProviderListeners.js +13 -4
- package/oj-c/select-common/UNSAFE_useWrapDataProvider/useWrapDataProvider.js +10 -6
- package/oj-c/select-multiple/component.json +101 -67
- package/oj-c/select-multiple/select-multiple.js +2 -2
- package/oj-c/select-multiple/useSelectMultiplePreact.js +68 -27
- package/oj-c/select-single/component.json +37 -3
- package/oj-c/select-single/select-single.js +2 -2
- package/oj-c/select-single/useSelectSinglePreact.js +50 -18
- package/oj-c/selection-card/component.json +3 -3
- package/oj-c/selector/component.json +3 -3
- package/oj-c/selector/selector.js +2 -2
- package/oj-c/selector-all/component.json +3 -3
- package/oj-c/split-menu-button/component.json +21 -4
- package/oj-c/tab-bar/__webdriver__/TabBarWebElement.d.ts +29 -0
- package/oj-c/tab-bar/__webdriver__/TabBarWebElement.js +89 -0
- package/oj-c/tab-bar/__webdriver__/TabBarWebElement.js.map +1 -1
- package/oj-c/tab-bar/component.json +13 -3
- package/oj-c/tab-bar/tab-bar.js +10 -4
- package/oj-c/tab-bar-mixed/DataTabBarMixed.js +1 -1
- package/oj-c/tab-bar-mixed/__webdriver__/TabBarMixedWebElement.d.ts +15 -0
- package/oj-c/tab-bar-mixed/__webdriver__/TabBarMixedWebElement.js +36 -0
- package/oj-c/tab-bar-mixed/__webdriver__/TabBarMixedWebElement.js.map +1 -1
- package/oj-c/tab-bar-mixed/component.json +3 -3
- package/oj-c/tab-bar-mixed/tab-bar-mixed.js +2 -2
- package/oj-c/table/__webdriver__/TableWebElement.d.ts +106 -0
- package/oj-c/table/__webdriver__/TableWebElement.js +166 -0
- package/oj-c/table/__webdriver__/TableWebElement.js.map +1 -0
- package/oj-c/table/__webdriver__/TableWebElementBase.d.ts +153 -0
- package/oj-c/table/__webdriver__/TableWebElementBase.js +158 -0
- package/oj-c/table/__webdriver__/TableWebElementBase.js.map +1 -0
- package/oj-c/table/__webdriver__/index.d.ts +17 -0
- package/oj-c/table/__webdriver__/index.js +34 -0
- package/oj-c/table/__webdriver__/index.js.map +1 -0
- package/oj-c/table/component.json +703 -0
- package/oj-c/table/index.js +6 -0
- package/oj-c/table/table-styles.css +39 -0
- package/oj-c/table/table.js +353 -0
- package/oj-c/table.js +6 -0
- package/oj-c/tag-cloud/__webdriver__/TagCloudWebElementBase.d.ts +1 -1
- package/oj-c/tag-cloud/__webdriver__/TagCloudWebElementBase.js +1 -1
- package/oj-c/tag-cloud/__webdriver__/TagCloudWebElementBase.js.map +1 -1
- package/oj-c/tag-cloud/component.json +14 -3
- package/oj-c/tag-cloud/tag-cloud.js +4 -1
- package/oj-c/tag-cloud-item/component.json +2 -2
- package/oj-c/text-area/component.json +3 -3
- package/oj-c/text-area/useTextAreaAutosizePreact.js +2 -2
- package/oj-c/text-area/useTextAreaPreact.js +2 -2
- package/oj-c/toggle-button/component.json +3 -3
- package/oj-c/types/FormControlWrapper/FormControlWrapper.d.ts +36 -0
- package/oj-c/types/FormControlWrapper/index.d.ts +2 -0
- package/oj-c/types/checkbox/checkbox.d.ts +2 -1
- package/oj-c/types/checkbox/useCheckboxPreact.d.ts +3 -6
- package/oj-c/types/checkboxset/checkboxset.d.ts +3 -2
- package/oj-c/types/checkboxset/useCheckboxsetPreact.d.ts +3 -6
- package/oj-c/types/date-picker/date-picker.d.ts +6 -0
- package/oj-c/types/editable-value/UNSAFE_useConverterLifecycle/useConverterLifecycle.d.ts +3 -2
- package/oj-c/types/editable-value/UNSAFE_useValue/useValue.d.ts +1 -1
- package/oj-c/types/editable-value/utils/utils.d.ts +2 -0
- package/oj-c/types/hooks/UNSAFE_useEditableValue/useEditableValue.d.ts +3 -1
- package/oj-c/types/hooks/UNSAFE_useListData/useListData.d.ts +2 -1
- package/oj-c/types/input-date-mask/input-date-mask.d.ts +2 -1
- package/oj-c/types/input-date-picker/input-date-picker.d.ts +8 -2
- package/oj-c/types/input-date-picker/useInputDatePicker.d.ts +1 -0
- package/oj-c/types/input-date-text/useInputDateTextPreact.d.ts +1 -1
- package/oj-c/types/input-month-mask/input-month-mask.d.ts +2 -1
- package/oj-c/types/input-number/useNumberInputTextPreact.d.ts +1 -1
- package/oj-c/types/input-password/useInputPasswordPreact.d.ts +2 -4
- package/oj-c/types/input-sensitive-text/input-sensitive-text.d.ts +2 -1
- package/oj-c/types/input-sensitive-text/useInputSensitiveTextPreact.d.ts +2 -4
- package/oj-c/types/input-text/useInputTextPreact.d.ts +1 -1
- package/oj-c/types/legend-section/legend-section.d.ts +2 -2
- package/oj-c/types/list-item-layout/list-item-layout.d.ts +5 -0
- package/oj-c/types/list-view/list-view.d.ts +6 -4
- package/oj-c/types/list-view/useHandleRemoveCurrentKey.d.ts +4 -2
- package/oj-c/types/list-view/useListViewPreact.d.ts +1 -1
- package/oj-c/types/meter-bar/meter-bar.d.ts +6 -1
- package/oj-c/types/meter-circle/meter-circle.d.ts +1 -1
- package/oj-c/types/progress-button/index.d.ts +2 -0
- package/oj-c/types/progress-button/progress-button.d.ts +101 -0
- package/oj-c/types/radioset/radioset.d.ts +3 -2
- package/oj-c/types/radioset/useRadiosetPreact.d.ts +3 -6
- package/oj-c/types/rating-gauge/rating-gauge.d.ts +1 -1
- package/oj-c/types/select-common/PRIVATE_DebouncingDataProviderView/Debouncer.d.ts +11 -0
- package/oj-c/types/select-common/PRIVATE_DebouncingDataProviderView/DebouncingDataProviderView.d.ts +16 -0
- package/oj-c/types/select-common/PRIVATE_useCache/index.d.ts +1 -0
- package/oj-c/types/select-common/PRIVATE_useCache/useCache.d.ts +1 -0
- package/oj-c/types/select-common/PRIVATE_useSelectData/CollectionTemplateDataProviderView.d.ts +43 -0
- package/oj-c/types/select-common/PRIVATE_useSelectData/index.d.ts +2 -0
- package/oj-c/types/select-common/PRIVATE_useSelectData/useCollectionTemplateDataProviderView.d.ts +15 -0
- package/oj-c/types/select-common/PRIVATE_useSelectData/useSelectData.d.ts +15 -0
- package/oj-c/types/select-common/UNSAFE_useDataProviderListeners/useDataProviderListeners.d.ts +4 -4
- package/oj-c/types/select-common/UNSAFE_useWrapDataProvider/useWrapDataProvider.d.ts +2 -1
- package/oj-c/types/select-multiple/select-multiple.d.ts +26 -9
- package/oj-c/types/select-multiple/useSelectMultiplePreact.d.ts +28 -36
- package/oj-c/types/select-single/select-single.d.ts +26 -8
- package/oj-c/types/select-single/useSelectSinglePreact.d.ts +30 -53
- package/oj-c/types/tab-bar/tab-bar.d.ts +1 -0
- package/oj-c/types/table/index.d.ts +2 -0
- package/oj-c/types/table/table.d.ts +239 -0
- package/oj-c/types/text-area/useTextAreaAutosizePreact.d.ts +1 -1
- package/oj-c/types/text-area/useTextAreaPreact.d.ts +1 -1
- package/oj-c/types/utils/PRIVATE_ItemsMenu/items-menu.d.ts +3 -1
- package/oj-c/types/utils/UNSAFE_vizTypes/meterTypes.d.ts +2 -0
- package/oj-c/utils/PRIVATE_ItemsMenu/items-menu.js +2 -2
- package/package.json +4 -4
- package/webdriver/docs/assets/navigation.js +1 -1
- package/webdriver/docs/assets/search.js +1 -1
- package/webdriver/docs/classes/AreaChartWebElement.html +4 -3
- package/webdriver/docs/classes/DatePickerWebElement.html +5 -2
- package/webdriver/docs/classes/InputDatePickerWebElement.html +6 -2
- package/webdriver/docs/classes/InputNumberWebElement.html +1 -1
- package/webdriver/docs/classes/LegendWebElement.html +4 -3
- package/webdriver/docs/classes/LineChartWebElement.html +4 -3
- package/webdriver/docs/classes/ListItemLayoutWebElement.html +6 -2
- package/webdriver/docs/classes/MeterBarWebElement.html +6 -2
- package/webdriver/docs/classes/ProgressButtonWebElement.html +142 -0
- package/webdriver/docs/classes/TabBarMixedWebElement.html +11 -2
- package/webdriver/docs/classes/TabBarWebElement.html +18 -2
- package/webdriver/docs/classes/TableWebElement.html +192 -0
- package/webdriver/docs/classes/TagCloudWebElement.html +4 -3
- package/webdriver/docs/functions/findProgressButton.html +8 -0
- package/webdriver/docs/functions/findTable.html +8 -0
- package/webdriver/docs/modules.html +4 -0
- package/webdriver/index.d.ts +2 -0
- package/webdriver/index.js +2 -0
- package/webdriver/index.js.map +1 -1
- package/webdriver/index.ts +2 -0
|
@@ -83,6 +83,13 @@ export declare class DatePickerWebElementBase extends OjWebElement {
|
|
|
83
83
|
*
|
|
84
84
|
*/
|
|
85
85
|
getValue(): Promise<string | null>;
|
|
86
|
+
/**
|
|
87
|
+
* Gets the value of <code>weekDisplay</code> property.
|
|
88
|
+
*
|
|
89
|
+
* @return The value of <code>weekDisplay</code> property.
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
getWeekDisplay(): Promise<string>;
|
|
86
93
|
/**
|
|
87
94
|
* Gets the value of <code>width</code> property.
|
|
88
95
|
* Specifies the component style width.
|
|
@@ -108,6 +108,15 @@ class DatePickerWebElementBase extends elements_1.OjWebElement {
|
|
|
108
108
|
getValue() {
|
|
109
109
|
return this.getProperty('value');
|
|
110
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* Gets the value of <code>weekDisplay</code> property.
|
|
113
|
+
*
|
|
114
|
+
* @return The value of <code>weekDisplay</code> property.
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
getWeekDisplay() {
|
|
118
|
+
return this.getProperty('weekDisplay');
|
|
119
|
+
}
|
|
111
120
|
/**
|
|
112
121
|
* Gets the value of <code>width</code> property.
|
|
113
122
|
* Specifies the component style width.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePickerWebElementBase.js","sourceRoot":"","sources":["DatePickerWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,wBAAyB,SAAQ,uBAAY;IACxD;;;;;OAKG;IACI,eAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAO,cAAc,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,mBAAmB;QACxB,OAAO,IAAI,CAAC,WAAW,CAAS,kBAAkB,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,qBAAqB;QAC1B,OAAO,IAAI,CAAC,WAAW,CAAS,oBAAoB,CAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAgB,KAAK,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAkB,UAAU,CAAC,CAAC;IACvD,CAAC;IAED;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAgB,KAAK,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAU,UAAU,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,WAAW,CAAS,aAAa,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAAC,KAAoB;QACrC,OAAO,IAAI,CAAC,WAAW,CAAgB,OAAO,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAgB,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAkB,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"DatePickerWebElementBase.js","sourceRoot":"","sources":["DatePickerWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,wBAAyB,SAAQ,uBAAY;IACxD;;;;;OAKG;IACI,eAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAO,cAAc,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,mBAAmB;QACxB,OAAO,IAAI,CAAC,WAAW,CAAS,kBAAkB,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,qBAAqB;QAC1B,OAAO,IAAI,CAAC,WAAW,CAAS,oBAAoB,CAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAgB,KAAK,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAkB,UAAU,CAAC,CAAC;IACvD,CAAC;IAED;;;;;OAKG;IACI,MAAM;QACX,OAAO,IAAI,CAAC,WAAW,CAAgB,KAAK,CAAC,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAU,UAAU,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,WAAW,CAAS,aAAa,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAAC,KAAoB;QACrC,OAAO,IAAI,CAAC,WAAW,CAAgB,OAAO,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAgB,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,WAAW,CAAS,aAAa,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAkB,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;AAlID,4DAkIC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-date-picker WebElement, and is generated from the\n * component's metadata. Do not modify these contents since they'll be replaced\n * during the next generation.\n * Put overrides into the WebElements's subclass, DatePickerWebElement.ts.\n */\nexport class DatePickerWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>dayFormatter</code> property.\n *\n * @return The value of <code>dayFormatter</code> property.\n *\n */\n public getDayFormatter(): Promise<null> {\n return this.getProperty<null>('dayFormatter');\n }\n\n /**\n * Gets the value of <code>daysOutsideMonth</code> property.\n *\n * @return The value of <code>daysOutsideMonth</code> property.\n *\n */\n public getDaysOutsideMonth(): Promise<string> {\n return this.getProperty<string>('daysOutsideMonth');\n }\n\n /**\n * Gets the value of <code>monthAndYearPicker</code> property.\n *\n * @return The value of <code>monthAndYearPicker</code> property.\n *\n */\n public getMonthAndYearPicker(): Promise<string> {\n return this.getProperty<string>('monthAndYearPicker');\n }\n\n /**\n * Gets the value of <code>max</code> property.\n * The maximum selectable date, in ISO string format\n * @return The value of <code>max</code> property.\n *\n */\n public getMax(): Promise<string | null> {\n return this.getProperty<string | null>('max');\n }\n\n /**\n * Gets the value of <code>maxWidth</code> property.\n * Specifies the component style maxWidth.\n * @return The value of <code>maxWidth</code> property.\n *\n */\n public getMaxWidth(): Promise<number | string> {\n return this.getProperty<number | string>('maxWidth');\n }\n\n /**\n * Gets the value of <code>min</code> property.\n * The maximum selectable date, in ISO string format\n * @return The value of <code>min</code> property.\n *\n */\n public getMin(): Promise<string | null> {\n return this.getProperty<string | null>('min');\n }\n\n /**\n * Gets the value of <code>readonly</code> property.\n *\n * @return The value of <code>readonly</code> property.\n *\n */\n public getReadonly(): Promise<boolean> {\n return this.getProperty<boolean>('readonly');\n }\n\n /**\n * Gets the value of <code>todayButton</code> property.\n *\n * @return The value of <code>todayButton</code> property.\n *\n */\n public getTodayButton(): Promise<string> {\n return this.getProperty<string>('todayButton');\n }\n\n /**\n * Gets the value of <code>todayTimeZone</code> property.\n *\n * @return The value of <code>todayTimeZone</code> property.\n *\n */\n public getTodayTimeZone(): Promise<string> {\n return this.getProperty<string>('todayTimeZone');\n }\n\n /**\n * Sets the value of <code>value</code> property.\n *\n * @param value The value to set for <code>value</code>\n *\n */\n public changeValue(value: string | null): Promise<void> {\n return this.setProperty<string | null>('value', value);\n }\n\n /**\n * Gets the value of <code>value</code> property.\n *\n * @return The value of <code>value</code> property.\n *\n */\n public getValue(): Promise<string | null> {\n return this.getProperty<string | null>('value');\n }\n\n /**\n * Gets the value of <code>weekDisplay</code> property.\n *\n * @return The value of <code>weekDisplay</code> property.\n *\n */\n public getWeekDisplay(): Promise<string> {\n return this.getProperty<string>('weekDisplay');\n }\n\n /**\n * Gets the value of <code>width</code> property.\n * Specifies the component style width.\n * @return The value of <code>width</code> property.\n *\n */\n public getWidth(): Promise<number | string> {\n return this.getProperty<number | string>('width');\n }\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "date-picker",
|
|
3
|
-
"version": "17.0
|
|
4
|
-
"jetVersion": "^17.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
|
+
"jetVersion": "^17.1.0",
|
|
5
5
|
"pack": "oj-c",
|
|
6
6
|
"type": "composite",
|
|
7
7
|
"dependencyScope": "runtime",
|
|
@@ -24,14 +24,17 @@
|
|
|
24
24
|
"icon": "oj-ux-ico-date"
|
|
25
25
|
},
|
|
26
26
|
"webelement": {
|
|
27
|
-
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-
|
|
27
|
+
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/DatePickerWebElement.html"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"since": "17.0.0",
|
|
31
31
|
"status": [
|
|
32
32
|
{
|
|
33
|
-
"type": "
|
|
34
|
-
"since": "17.
|
|
33
|
+
"type": "supersedes",
|
|
34
|
+
"since": "17.1.0",
|
|
35
|
+
"value": [
|
|
36
|
+
"oj-date-picker"
|
|
37
|
+
]
|
|
35
38
|
}
|
|
36
39
|
],
|
|
37
40
|
"properties": {
|
|
@@ -126,6 +129,24 @@
|
|
|
126
129
|
"writeback": true,
|
|
127
130
|
"value": null
|
|
128
131
|
},
|
|
132
|
+
"weekDisplay": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"propertyEditorValues": {
|
|
135
|
+
"none": {
|
|
136
|
+
"description": "The week of the year column will not be shown.",
|
|
137
|
+
"displayName": "None"
|
|
138
|
+
},
|
|
139
|
+
"number": {
|
|
140
|
+
"description": "Will show the week of the year as a number.",
|
|
141
|
+
"displayName": "Number"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"enumValues": [
|
|
145
|
+
"number",
|
|
146
|
+
"none"
|
|
147
|
+
],
|
|
148
|
+
"value": "none"
|
|
149
|
+
},
|
|
129
150
|
"width": {
|
|
130
151
|
"type": "number|string",
|
|
131
152
|
"description": "Specifies the component style width.",
|
|
@@ -2,7 +2,7 @@ define(["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/tr
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.DatePicker = void 0;
|
|
5
|
-
exports.DatePicker = (0, ojvcomponent_1.registerCustomElement)('oj-c-date-picker', ({ dayFormatter, daysOutsideMonth = 'hidden', monthAndYearPicker = 'on', max = null, maxWidth, min = null, readonly = false, todayButton = 'visible', todayTimeZone, value = null, width, onValueChanged, ...otherProps }) => {
|
|
5
|
+
exports.DatePicker = (0, ojvcomponent_1.registerCustomElement)('oj-c-date-picker', ({ dayFormatter, daysOutsideMonth = 'hidden', monthAndYearPicker = 'on', max = null, maxWidth, min = null, readonly = false, todayButton = 'visible', todayTimeZone, value = null, width, weekDisplay = 'none', onValueChanged, ...otherProps }) => {
|
|
6
6
|
if (!UNSAFE_IntlDateTime_1.DateTimeUtils.isDateOnlyIsoString(value)) {
|
|
7
7
|
throw new Error('value must be a date-only ISO string');
|
|
8
8
|
}
|
|
@@ -27,8 +27,8 @@ define(["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/tr
|
|
|
27
27
|
: onValueChanged(null);
|
|
28
28
|
}
|
|
29
29
|
}, [onValueChanged]);
|
|
30
|
-
return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { id: otherProps.id, children: (0, jsx_runtime_1.jsx)(UNSAFE_DatePicker_1.DatePicker, { dayFormatter: dayFormatter ?? undefined, daysOutsideMonth: daysOutsideMonth, monthAndYearPicker: monthAndYearPicker, max: maxCalendarDate, min: minCalendarDate, isReadonly: readonly, todayButton: todayButton, todayTimeZone: todayTimeZone ?? undefined, value: valueCalendarDate, width: width, maxWidth: maxWidth, onCommit: onCommitHandler }) }));
|
|
31
|
-
}, "DatePicker", { "properties": { "dayFormatter": { "type": "function" }, "daysOutsideMonth": { "type": "string", "enumValues": ["hidden", "selectable"] }, "monthAndYearPicker": { "type": "string", "enumValues": ["off", "on"] }, "max": { "type": "string|null" }, "maxWidth": { "type": "number|string" }, "min": { "type": "string|null" }, "readonly": { "type": "boolean" }, "todayButton": { "type": "string", "enumValues": ["hidden", "visible"] }, "todayTimeZone": { "type": "string" }, "value": { "type": "string|null", "writeback": true }, "width": { "type": "number|string" } }, "extension": { "_WRITEBACK_PROPS": ["value"], "_READ_ONLY_PROPS": [], "_OBSERVED_GLOBAL_PROPS": ["aria-describedby", "id"] } }, { "daysOutsideMonth": "hidden", "monthAndYearPicker": "on", "max": null, "min": null, "readonly": false, "todayButton": "visible", "value": null }, {
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { id: otherProps.id, children: (0, jsx_runtime_1.jsx)(UNSAFE_DatePicker_1.DatePicker, { dayFormatter: dayFormatter ?? undefined, daysOutsideMonth: daysOutsideMonth, monthAndYearPicker: monthAndYearPicker, max: maxCalendarDate, min: minCalendarDate, isReadonly: readonly, todayButton: todayButton, todayTimeZone: todayTimeZone ?? undefined, value: valueCalendarDate, weekDisplay: weekDisplay, width: width, maxWidth: maxWidth, onCommit: onCommitHandler }) }));
|
|
31
|
+
}, "DatePicker", { "properties": { "dayFormatter": { "type": "function" }, "daysOutsideMonth": { "type": "string", "enumValues": ["hidden", "selectable"] }, "monthAndYearPicker": { "type": "string", "enumValues": ["off", "on"] }, "max": { "type": "string|null" }, "maxWidth": { "type": "number|string" }, "min": { "type": "string|null" }, "readonly": { "type": "boolean" }, "todayButton": { "type": "string", "enumValues": ["hidden", "visible"] }, "todayTimeZone": { "type": "string" }, "value": { "type": "string|null", "writeback": true }, "weekDisplay": { "type": "string", "enumValues": ["number", "none"] }, "width": { "type": "number|string" } }, "extension": { "_WRITEBACK_PROPS": ["value"], "_READ_ONLY_PROPS": [], "_OBSERVED_GLOBAL_PROPS": ["aria-describedby", "id"] } }, { "daysOutsideMonth": "hidden", "monthAndYearPicker": "on", "max": null, "min": null, "readonly": false, "todayButton": "visible", "value": null, "weekDisplay": "none" }, {
|
|
32
32
|
'@oracle/oraclejet-preact': translationBundle_1.default
|
|
33
33
|
}, { consume: [UNSAFE_useTabbableMode_1.TabbableModeContext] });
|
|
34
34
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drag-handle",
|
|
3
|
-
"version": "17.0
|
|
4
|
-
"jetVersion": "^17.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
|
+
"jetVersion": "^17.1.0",
|
|
5
5
|
"pack": "oj-c",
|
|
6
6
|
"type": "composite",
|
|
7
7
|
"dependencyScope": "runtime",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
"webelement": {
|
|
35
|
-
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-
|
|
35
|
+
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/DragHandleWebElement.html"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"since": "17.0.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drawer-layout",
|
|
3
|
-
"version": "17.0
|
|
4
|
-
"jetVersion": "^17.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
|
+
"jetVersion": "^17.1.0",
|
|
5
5
|
"pack": "oj-c",
|
|
6
6
|
"type": "composite",
|
|
7
7
|
"dependencyScope": "runtime",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
38
|
"webelement": {
|
|
39
|
-
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-
|
|
39
|
+
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/DrawerLayoutWebElement.html"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"propertyLayout": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drawer-popup",
|
|
3
|
-
"version": "17.0
|
|
4
|
-
"jetVersion": "^17.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
|
+
"jetVersion": "^17.1.0",
|
|
5
5
|
"pack": "oj-c",
|
|
6
6
|
"type": "composite",
|
|
7
7
|
"dependencyScope": "runtime",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
65
|
"webelement": {
|
|
66
|
-
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-
|
|
66
|
+
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/DrawerPopupWebElement.html"
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"since": "16.0.0",
|
|
@@ -2,7 +2,7 @@ define(["require", "exports", "preact/hooks"], function (require, exports, hooks
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.useConverterLifecycle = void 0;
|
|
5
|
-
function useConverterLifecycle({ converter, validationState, refreshDisplayValue, runFullValidationAndUpdateValue }) {
|
|
5
|
+
function useConverterLifecycle({ converter, validationState, value, refreshDisplayValue, runFullValidationAndUpdateValue }) {
|
|
6
6
|
const prevConverterRef = (0, hooks_1.useRef)(converter);
|
|
7
7
|
(0, hooks_1.useEffect)(() => {
|
|
8
8
|
if (prevConverterRef.current === converter) {
|
|
@@ -17,10 +17,10 @@ define(["require", "exports", "preact/hooks"], function (require, exports, hooks
|
|
|
17
17
|
case 'valid':
|
|
18
18
|
case 'invalidHidden':
|
|
19
19
|
default:
|
|
20
|
-
refreshDisplayValue();
|
|
20
|
+
value && refreshDisplayValue(value);
|
|
21
21
|
break;
|
|
22
22
|
}
|
|
23
|
-
}, [converter, validationState, refreshDisplayValue, runFullValidationAndUpdateValue]);
|
|
23
|
+
}, [converter, validationState, refreshDisplayValue, runFullValidationAndUpdateValue, value]);
|
|
24
24
|
}
|
|
25
25
|
exports.useConverterLifecycle = useConverterLifecycle;
|
|
26
26
|
});
|
|
@@ -55,6 +55,7 @@ define(["require", "exports", "preact/hooks", "../UNSAFE_useComponentMessaging/u
|
|
|
55
55
|
(0, useConverterLifecycle_1.useConverterLifecycle)({
|
|
56
56
|
converter,
|
|
57
57
|
validationState,
|
|
58
|
+
value: valueProp,
|
|
58
59
|
refreshDisplayValue,
|
|
59
60
|
runFullValidationAndUpdateValue
|
|
60
61
|
});
|
|
@@ -91,7 +92,7 @@ define(["require", "exports", "preact/hooks", "../UNSAFE_useComponentMessaging/u
|
|
|
91
92
|
const reset = (0, hooks_1.useCallback)(() => {
|
|
92
93
|
clearAllMessages();
|
|
93
94
|
validateValueOnExternalChange(value);
|
|
94
|
-
refreshDisplayValue();
|
|
95
|
+
refreshDisplayValue(value);
|
|
95
96
|
}, [value, clearAllMessages, refreshDisplayValue, validateValueOnExternalChange]);
|
|
96
97
|
const validate = (0, hooks_1.useCallback)(async () => {
|
|
97
98
|
if (readonly || disabled) {
|
|
@@ -29,13 +29,13 @@ define(["require", "exports", "@oracle/oraclejet-preact/hooks/UNSAFE_useUncontro
|
|
|
29
29
|
setValueAfterValidation: (0, hooks_1.useCallback)((value) => {
|
|
30
30
|
setValue(value);
|
|
31
31
|
setDisplayValue(format(value));
|
|
32
|
-
}, [format]),
|
|
32
|
+
}, [format, setDisplayValue, setValue]),
|
|
33
33
|
setDisplayValue,
|
|
34
34
|
setTransientValue,
|
|
35
35
|
setValue,
|
|
36
|
-
refreshDisplayValue: (0, hooks_1.useCallback)(() => {
|
|
36
|
+
refreshDisplayValue: (0, hooks_1.useCallback)((value) => {
|
|
37
37
|
setDisplayValue(format(value));
|
|
38
|
-
}, [
|
|
38
|
+
}, [format, setDisplayValue])
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
exports.useValue = useValue;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
define(["require", "exports"], function (require, exports) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.isShallowEqual = exports.normalizeValue = exports.treatNull = exports.createMessageFromError = void 0;
|
|
4
|
+
exports.isShallowEqual = exports.normalizeValue = exports.treatNull = exports.getVirtualKeyboardHintFromConverter = exports.createMessageFromError = void 0;
|
|
5
5
|
function createMessageFromError(error) {
|
|
6
6
|
if (typeof error.getMessage === 'function') {
|
|
7
7
|
return {
|
|
@@ -12,6 +12,18 @@ define(["require", "exports"], function (require, exports) {
|
|
|
12
12
|
return { severity: 'error', detail: error.message };
|
|
13
13
|
}
|
|
14
14
|
exports.createMessageFromError = createMessageFromError;
|
|
15
|
+
function getVirtualKeyboardHintFromConverter(converter) {
|
|
16
|
+
let virtualKeyboardHint;
|
|
17
|
+
if (converter && converter.resolvedOptions) {
|
|
18
|
+
const resOptions = converter.resolvedOptions();
|
|
19
|
+
virtualKeyboardHint = resOptions?.virtualKeyboardHint ?? 'text';
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
virtualKeyboardHint = 'text';
|
|
23
|
+
}
|
|
24
|
+
return virtualKeyboardHint;
|
|
25
|
+
}
|
|
26
|
+
exports.getVirtualKeyboardHintFromConverter = getVirtualKeyboardHintFromConverter;
|
|
15
27
|
function treatNull(value, defaultValue) {
|
|
16
28
|
if (value === null) {
|
|
17
29
|
return defaultValue;
|
|
@@ -5,6 +5,8 @@ var FilePickerWebElementBase_1 = require("./FilePickerWebElementBase");
|
|
|
5
5
|
var fs = require("fs");
|
|
6
6
|
var path = require("path");
|
|
7
7
|
var busy_context_utils_1 = require("@oracle/oraclejet-webdriver/lib/busy-context-utils");
|
|
8
|
+
const filestoreName = '__oj_filepicker_files';
|
|
9
|
+
const filenamePrefix = 'file_';
|
|
8
10
|
/**
|
|
9
11
|
* The component WebElement for [oj-c-file-picker](../../../oj-c/docs/oj.FilePicker.html).
|
|
10
12
|
* Do not instantiate this class directly, instead, use
|
|
@@ -70,28 +72,36 @@ class FilePickerWebElement extends FilePickerWebElementBase_1.FilePickerWebEleme
|
|
|
70
72
|
fileNumber: i
|
|
71
73
|
};
|
|
72
74
|
await driver.executeScript(`const file = arguments[0];
|
|
75
|
+
const filestoreName = arguments[1];
|
|
76
|
+
const filenamePrefix = arguments[2];
|
|
77
|
+
const filestore = window[filestoreName] = window[filestoreName] || {};
|
|
73
78
|
const chunkNumber = file.chunkNumber;
|
|
74
|
-
|
|
79
|
+
const data = {
|
|
75
80
|
bytes: file.bytes,
|
|
76
81
|
path: file.path,
|
|
77
82
|
type: file.type
|
|
78
83
|
}
|
|
84
|
+
const fileKey = filenamePrefix + file.fileNumber;
|
|
79
85
|
if (chunkNumber == 0) {
|
|
80
|
-
|
|
86
|
+
filestore[fileKey] = [data];
|
|
81
87
|
} else {
|
|
82
|
-
|
|
83
|
-
}`, file);
|
|
88
|
+
filestore[fileKey].push(data);
|
|
89
|
+
}`, file, filestoreName, filenamePrefix);
|
|
84
90
|
}
|
|
85
91
|
}
|
|
86
92
|
driver.executeScript(`const numFiles = arguments[0];
|
|
93
|
+
const filestoreName = arguments[1];
|
|
94
|
+
const filenamePrefix = arguments[2];
|
|
95
|
+
const filestore = window[filestoreName];
|
|
87
96
|
const list = [];
|
|
88
97
|
for ( let i = 0; i < numFiles; i++) {
|
|
89
|
-
const
|
|
90
|
-
|
|
98
|
+
const fileKey = filenamePrefix + i;
|
|
99
|
+
const chunks = filestore[fileKey];
|
|
100
|
+
delete filestore[fileKey];
|
|
91
101
|
list.push({
|
|
92
|
-
bytes:
|
|
93
|
-
path:
|
|
94
|
-
type:
|
|
102
|
+
bytes: chunks.reduce((acc, chunk) => acc.concat(chunk.bytes), []),
|
|
103
|
+
path: chunks[0].path,
|
|
104
|
+
type: chunks[0].type
|
|
95
105
|
});
|
|
96
106
|
}
|
|
97
107
|
const fileList = list.map((data) => {
|
|
@@ -110,7 +120,7 @@ class FilePickerWebElement extends FilePickerWebElementBase_1.FilePickerWebEleme
|
|
|
110
120
|
}
|
|
111
121
|
}
|
|
112
122
|
HTMLInputElement.prototype._pickerTestData = fileList;
|
|
113
|
-
`, dataList.length);
|
|
123
|
+
`, dataList.length, filestoreName, filenamePrefix);
|
|
114
124
|
}
|
|
115
125
|
}
|
|
116
126
|
exports.FilePickerWebElement = FilePickerWebElement;
|
|
@@ -1 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nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { WebDriver } from 'selenium-webdriver';\nimport { whenBusyContextReady } from '@oracle/oraclejet-webdriver/lib/busy-context-utils';\n\nconst filestoreName = '__oj_filepicker_files';\nconst filenamePrefix = 'file_';\n\n/**\n * The component WebElement for [oj-c-file-picker](../../../oj-c/docs/oj.FilePicker.html).\n * Do not instantiate this class directly, instead, use\n * [findFilePicker](../functions/findFilePicker.html).\n */\nexport class FilePickerWebElement extends FilePickerWebElementBase {\n /**\n * Takes an Array of objects containing file paths + types.\n * These files will be read from the local filesystem and then sent\n * to the oj-file-picker to simulate user file selection. Only the basename of\n * the file will be sent, not the entire path to make it consistent with how\n * the browser sets the value.\n * @param files An array of objects containing the path and type of selected files\n */\n async doSelect(files: Array<{ path: string; type: string }>) {\n await FilePickerWebElement.setupPickFiles(this.getDriver(), files);\n\n await this.getDriver().executeScript(`arguments[0].firstChild.click();`, this);\n\n await this.whenBusyContextReady();\n }\n\n /**\n * This method should be called right before ojfilepickerutils.pickFiles\n * Takes the webdriver and an Array of objects containing file paths + types.\n * These files will be read from the local filesystem and then sent\n * to the pickFiles method to simulate user file selection. Only the basename of\n * the file will be sent, not the entire path to make it consistent with how\n * the browser sets the value.\n * @param driver the Webdriver of the test\n * @param files An array of objects containing the path and type of selected files\n */\n static async setupPickFiles(driver: WebDriver, files: Array<{ path: string; type: string }>) {\n await whenBusyContextReady(driver);\n //create a buffer with the files\n const dataList = files.map(({ path: filePath, type }) => {\n const fileSizeInMB = fs.statSync(filePath).size / (1024 * 1024);\n const numberChunks = Math.ceil(fileSizeInMB / 8);\n const fileContent = Array.from(fs.readFileSync(filePath));\n const chunkSize = Math.floor(fileContent.length / numberChunks);\n const fileChunks = [];\n for (let i = 0; i < numberChunks; i++) {\n if (i + 1 == numberChunks) {\n fileChunks.push(fileContent.slice(i * chunkSize));\n } else {\n fileChunks.push(fileContent.slice(i * chunkSize, (i + 1) * chunkSize));\n }\n }\n\n return {\n bytes: fileChunks, //split it into 8MB chunks\n path: path.basename(filePath),\n type,\n numberChunks\n };\n });\n\n for (let i = 0; i < dataList.length; i++) {\n const { bytes, path, type, numberChunks } = dataList[i];\n for (let j = 0; j < bytes.length; j++) {\n const file = {\n bytes: bytes[j],\n path,\n type,\n numberChunks,\n chunkNumber: j,\n fileNumber: i\n };\n await driver.executeScript(\n `const file = arguments[0];\n const filestoreName = arguments[1];\n const filenamePrefix = arguments[2];\n const filestore = window[filestoreName] = window[filestoreName] || {};\n const chunkNumber = file.chunkNumber;\n const data = {\n bytes: file.bytes,\n path: file.path,\n type: file.type\n }\n const fileKey = filenamePrefix + file.fileNumber;\n if (chunkNumber == 0) {\n filestore[fileKey] = [data];\n } else {\n filestore[fileKey].push(data);\n }`,\n file,\n filestoreName,\n filenamePrefix\n );\n }\n }\n\n driver.executeScript(\n `const numFiles = arguments[0];\n const filestoreName = arguments[1];\n const filenamePrefix = arguments[2];\n const filestore = window[filestoreName];\n const list = [];\n for ( let i = 0; i < numFiles; i++) {\n const fileKey = filenamePrefix + i;\n const chunks = filestore[fileKey];\n delete filestore[fileKey];\n list.push({\n bytes: chunks.reduce((acc, chunk) => acc.concat(chunk.bytes), []),\n path: chunks[0].path,\n type: chunks[0].type\n });\n }\n const fileList = list.map((data) => {\n return new File([Uint8Array.from(data.bytes)], data.path, {type: data.type});\n })\n // Only if setupPickFiles has not been called yet\n if (!HTMLInputElement.prototype._pickerTestData) {\n //Save the native click method\n const clickMethod = HTMLInputElement.prototype.click;\n //Overwrite the click method\n HTMLInputElement.prototype.click = function() {\n const event = new CustomEvent(\"change\");\n this.dispatchEvent(event);\n delete HTMLInputElement.prototype._pickerTestData;\n HTMLInputElement.prototype.click = clickMethod;\n }\n }\n HTMLInputElement.prototype._pickerTestData = fileList;\n `,\n dataList.length,\n filestoreName,\n filenamePrefix\n );\n }\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "file-picker",
|
|
3
|
-
"version": "17.0
|
|
4
|
-
"jetVersion": "^17.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
|
+
"jetVersion": "^17.1.0",
|
|
5
5
|
"pack": "oj-c",
|
|
6
6
|
"type": "composite",
|
|
7
7
|
"dependencyScope": "runtime",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
38
|
"webelement": {
|
|
39
|
-
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-
|
|
39
|
+
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/FilePickerWebElement.html"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"propertyLayout": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "form-layout",
|
|
3
|
-
"version": "17.0
|
|
4
|
-
"jetVersion": "^17.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
|
+
"jetVersion": "^17.1.0",
|
|
5
5
|
"pack": "oj-c",
|
|
6
6
|
"type": "composite",
|
|
7
7
|
"dependencyScope": "runtime",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
37
|
"webelement": {
|
|
38
|
-
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-
|
|
38
|
+
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/FormLayoutWebElement.html"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"propertyLayout": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "highlight-text",
|
|
3
|
-
"version": "17.0
|
|
4
|
-
"jetVersion": "^17.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
|
+
"jetVersion": "^17.1.0",
|
|
5
5
|
"pack": "oj-c",
|
|
6
6
|
"type": "composite",
|
|
7
7
|
"dependencyScope": "runtime",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"icon": "oj-ux-ico-background-color"
|
|
27
27
|
},
|
|
28
28
|
"webelement": {
|
|
29
|
-
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-
|
|
29
|
+
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/HighlightTextWebElement.html"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"propertyLayout": [
|
|
@@ -31,6 +31,14 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
|
|
|
31
31
|
});
|
|
32
32
|
return true;
|
|
33
33
|
}, [dispatch, onMessagesCustomChanged, onRawValueChanged, onValidChanged, onValueChanged]);
|
|
34
|
+
const validateDeferredSync = (0, hooks_1.useCallback)((value) => {
|
|
35
|
+
const valueToSendToDeferredValidation = typeof value === 'string' ? value.trim() : value;
|
|
36
|
+
const deferredValidate = (0, validationUtils_1.validateSync)({
|
|
37
|
+
validators: deferredValidators ?? [],
|
|
38
|
+
value: valueToSendToDeferredValidation
|
|
39
|
+
});
|
|
40
|
+
return deferredValidate;
|
|
41
|
+
}, [deferredValidators]);
|
|
34
42
|
const refreshDisplayValue = (0, hooks_1.useCallback)((value) => {
|
|
35
43
|
let newDisplayValue;
|
|
36
44
|
if (!converter) {
|
|
@@ -92,7 +100,7 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
|
|
|
92
100
|
return true;
|
|
93
101
|
}
|
|
94
102
|
const errors = [];
|
|
95
|
-
const deferredValidate = (
|
|
103
|
+
const deferredValidate = validateDeferredSync(value);
|
|
96
104
|
deferredValidate.result === 'failure' && errors.push(...deferredValidate.errors);
|
|
97
105
|
let nonDeferredValidate = undefined;
|
|
98
106
|
if (value !== null && value !== undefined) {
|
|
@@ -131,7 +139,15 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
|
|
|
131
139
|
}
|
|
132
140
|
resolver?.();
|
|
133
141
|
return !hasSyncError && !hasAsyncError;
|
|
134
|
-
}, [
|
|
142
|
+
}, [
|
|
143
|
+
addBusyState,
|
|
144
|
+
_dispatch,
|
|
145
|
+
deferredValidators,
|
|
146
|
+
messagesCustom,
|
|
147
|
+
setStaleIdentity,
|
|
148
|
+
validateDeferredSync,
|
|
149
|
+
validators
|
|
150
|
+
]);
|
|
135
151
|
const runFullValidationAndUpdateValue = async () => {
|
|
136
152
|
if (disabled || readonly)
|
|
137
153
|
return;
|
|
@@ -154,15 +170,21 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
|
|
|
154
170
|
}
|
|
155
171
|
return validationResult;
|
|
156
172
|
}, [addBusyState, fullValidate, setStaleIdentity]);
|
|
173
|
+
const onCommitValue = (0, hooks_1.useCallback)(async (value, doCommitOnValid = true) => {
|
|
174
|
+
const validated = await validateValueOnInternalChange(value);
|
|
175
|
+
validated && doCommitOnValid && _dispatch(reducer_1.updateValue, value);
|
|
176
|
+
return validated;
|
|
177
|
+
}, [_dispatch, validateValueOnInternalChange]);
|
|
157
178
|
const onCommit = (0, hooks_1.useCallback)(async ({ value }) => {
|
|
158
179
|
const parsedValueOrSymbol = normalizeAndParseValue(value);
|
|
159
180
|
if (parsedValueOrSymbol === ConverterErrorSymbol) {
|
|
160
|
-
return;
|
|
181
|
+
return false;
|
|
161
182
|
}
|
|
162
183
|
const parsedValue = parsedValueOrSymbol;
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
|
|
184
|
+
const succeeded = await onCommitValue(parsedValue);
|
|
185
|
+
succeeded && refreshDisplayValue(parsedValue);
|
|
186
|
+
return succeeded;
|
|
187
|
+
}, [onCommitValue, normalizeAndParseValue, refreshDisplayValue]);
|
|
166
188
|
const onInput = (0, hooks_1.useCallback)(({ value }) => {
|
|
167
189
|
_dispatch(reducer_1.updateDisplayValue, value ?? defaultDisplayValue);
|
|
168
190
|
}, [_dispatch, defaultDisplayValue]);
|
|
@@ -200,14 +222,11 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
|
|
|
200
222
|
const reset = (0, hooks_1.useCallback)(() => {
|
|
201
223
|
_dispatch(reducer_1.clearAllMessages);
|
|
202
224
|
const valueToValidate = state.value;
|
|
203
|
-
const validated = (
|
|
204
|
-
validators: deferredValidators ?? [],
|
|
205
|
-
value: valueToValidate
|
|
206
|
-
});
|
|
225
|
+
const validated = validateDeferredSync(valueToValidate);
|
|
207
226
|
validated.result === 'failure' && _dispatch(reducer_1.updateHiddenMessages, validated.errors);
|
|
208
227
|
_dispatch(reducer_1.updateValidStatus, validated.result === 'failure' ? 'invalidHidden' : 'valid');
|
|
209
228
|
refreshDisplayValue(state.value);
|
|
210
|
-
}, [
|
|
229
|
+
}, [_dispatch, refreshDisplayValue, state.value, validateDeferredSync]);
|
|
211
230
|
const showMessages = (0, hooks_1.useCallback)(() => {
|
|
212
231
|
if (state.hiddenMessages && state.hiddenMessages.length > 0) {
|
|
213
232
|
_dispatch(reducer_1.showHiddenMessages);
|
|
@@ -218,7 +237,7 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
|
|
|
218
237
|
_dispatch(reducer_1.updatePreviousValue, value);
|
|
219
238
|
if (value !== state.value) {
|
|
220
239
|
_dispatch(reducer_1.clearAllMessages);
|
|
221
|
-
const validated = (
|
|
240
|
+
const validated = validateDeferredSync(value);
|
|
222
241
|
validated.result === 'success' && _dispatch(reducer_1.updateValidStatus, 'valid');
|
|
223
242
|
validated.result === 'failure' &&
|
|
224
243
|
_dispatch(reducer_1.updateValidStatus, 'invalidHidden') &&
|
|
@@ -269,10 +288,7 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
|
|
|
269
288
|
case 'valid':
|
|
270
289
|
const newValue = getValueForValidation();
|
|
271
290
|
if (newValue !== ConverterErrorSymbol) {
|
|
272
|
-
const deferredValidate = (
|
|
273
|
-
validators: deferredValidators ?? [],
|
|
274
|
-
value: newValue
|
|
275
|
-
});
|
|
291
|
+
const deferredValidate = validateDeferredSync(newValue);
|
|
276
292
|
deferredValidate.result === 'failure' &&
|
|
277
293
|
_dispatch(reducer_1.updateHiddenMessages, deferredValidate.errors) &&
|
|
278
294
|
_dispatch(reducer_1.updateValidStatus, 'invalidHidden');
|
|
@@ -302,10 +318,10 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
|
|
|
302
318
|
_dispatch(reducer_1.updatePreviousReadonly, readonly);
|
|
303
319
|
_dispatch(reducer_1.updateCustomMessages, messagesCustom);
|
|
304
320
|
if (!disabled && !readonly) {
|
|
305
|
-
const validated = (
|
|
321
|
+
const validated = validateDeferredSync(value);
|
|
306
322
|
validated.result === 'failure' &&
|
|
307
323
|
_dispatch(reducer_1.updateHiddenMessages, validated.errors) &&
|
|
308
|
-
_dispatch(reducer_1.updateValidStatus, 'invalidHidden');
|
|
324
|
+
_dispatch(reducer_1.updateValidStatus, (0, utils_1.hasErrorMessages)(messagesCustom) ? 'invalidShown' : 'invalidHidden');
|
|
309
325
|
validated.result === 'success' &&
|
|
310
326
|
_dispatch(reducer_1.updateValidStatus, (0, utils_1.hasErrorMessages)(messagesCustom) ? 'invalidShown' : 'valid') &&
|
|
311
327
|
refreshDisplayValue(value);
|
|
@@ -323,6 +339,8 @@ define(["require", "exports", "preact/hooks", "./converterUtils", "./utils", "oj
|
|
|
323
339
|
showMessages,
|
|
324
340
|
validate
|
|
325
341
|
},
|
|
342
|
+
onCommitValue,
|
|
343
|
+
refreshDisplayValue,
|
|
326
344
|
textFieldProps: {
|
|
327
345
|
'aria-describedby': ariaDescribedBy,
|
|
328
346
|
messages: displayOptions?.messages !== 'none' ? state.shownMessages : undefined,
|