@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
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
define(["require", "exports", "oj-c/editable-value/UNSAFE_useEditableValue/
|
|
1
|
+
define(["require", "exports", "oj-c/editable-value/UNSAFE_useDeferredValidators/useDeferredValidators", "oj-c/hooks/UNSAFE_useEditableValue/index", "oj-c/editable-value/utils/utils"], function (require, exports, useDeferredValidators_1, index_1, utils_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.useInputSensitiveTextPreact = void 0;
|
|
5
5
|
function useInputSensitiveTextPreact({ autofocus, clearIcon = 'never', disabled, displayOptions, labelEdge, labelHint, labelStartWidth, length, maskIcon, maskIconLabel, messagesCustom, placeholder, readonly, required, requiredMessageDetail, textAlign, userAssistanceDensity, validators, value: propValue, virtualKeyboard, onMessagesCustomChanged, onRawValueChanged, onValidChanged, onValueChanged, ...otherProps }, addBusyState) {
|
|
6
|
-
const
|
|
6
|
+
const deferredValidators = (0, useDeferredValidators_1.useDeferredValidators)({
|
|
7
|
+
labelHint,
|
|
8
|
+
required,
|
|
9
|
+
requiredMessageDetail
|
|
10
|
+
});
|
|
11
|
+
const { methods, textFieldProps, value } = (0, index_1.useEditableValue)({
|
|
12
|
+
addBusyState,
|
|
7
13
|
ariaDescribedBy: otherProps['aria-describedby'],
|
|
14
|
+
defaultDisplayValue: '',
|
|
15
|
+
deferredValidators,
|
|
8
16
|
disabled,
|
|
9
17
|
displayOptions,
|
|
10
18
|
messagesCustom,
|
|
11
|
-
readonly,
|
|
12
|
-
required,
|
|
13
|
-
requiredMessageDetail,
|
|
14
|
-
validators,
|
|
15
|
-
value: propValue,
|
|
16
|
-
addBusyState,
|
|
17
19
|
onMessagesCustomChanged,
|
|
18
20
|
onRawValueChanged,
|
|
19
21
|
onValidChanged,
|
|
20
|
-
onValueChanged
|
|
22
|
+
onValueChanged,
|
|
23
|
+
readonly,
|
|
24
|
+
validators: (0, utils_1.treatNull)(validators, undefined),
|
|
25
|
+
value: propValue
|
|
21
26
|
});
|
|
22
27
|
const hasNoValue = value === null || (typeof value === 'string' && value === '');
|
|
23
28
|
const hasClearIcon = clearIcon === 'conditional' ? 'conditionally' : clearIcon;
|
|
24
29
|
const hasRevealToggle = maskIcon === 'hidden' ? 'never' : 'always';
|
|
25
30
|
return {
|
|
26
|
-
value,
|
|
27
|
-
setValue,
|
|
28
31
|
methods,
|
|
29
32
|
inputSensitiveTextProps: {
|
|
30
33
|
...textFieldProps,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "input-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",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
]
|
|
30
30
|
},
|
|
31
31
|
"webelement": {
|
|
32
|
-
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-
|
|
32
|
+
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/InputTextWebElement.html"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"propertyLayout": [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(["require", "exports", "oj-c/editable-value/utils/utils", "oj-c/hooks/UNSAFE_useEditableValue/index", "oj-c/editable-value/UNSAFE_useDeferredValidators/useDeferredValidators"], function (require, exports, utils_1, index_1, useDeferredValidators_1) {
|
|
1
|
+
define(["require", "exports", "oj-c/editable-value/utils/utils", "oj-c/hooks/UNSAFE_useEditableValue/index", "oj-c/editable-value/UNSAFE_useDeferredValidators/useDeferredValidators", "oj-c/editable-value/utils/utils"], function (require, exports, utils_1, index_1, useDeferredValidators_1, utils_2) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.useInputTextPreact = void 0;
|
|
@@ -22,11 +22,12 @@ define(["require", "exports", "oj-c/editable-value/utils/utils", "oj-c/hooks/UNS
|
|
|
22
22
|
onValidChanged,
|
|
23
23
|
onValueChanged,
|
|
24
24
|
readonly,
|
|
25
|
-
validators: validators
|
|
25
|
+
validators: (0, utils_1.treatNull)(validators, undefined),
|
|
26
26
|
value: propValue
|
|
27
27
|
});
|
|
28
28
|
const hasNoValue = value === null || (typeof value === 'string' && value === '');
|
|
29
29
|
const hasClearIcon = clearIcon === 'conditional' ? 'conditionally' : clearIcon;
|
|
30
|
+
const normalizedVirtualKeyboard = virtualKeyboard === 'auto' ? (0, utils_2.getVirtualKeyboardHintFromConverter)(converter) : virtualKeyboard;
|
|
30
31
|
return {
|
|
31
32
|
methods,
|
|
32
33
|
inputTextProps: {
|
|
@@ -49,7 +50,7 @@ define(["require", "exports", "oj-c/editable-value/utils/utils", "oj-c/hooks/UNS
|
|
|
49
50
|
suffix: inputSuffix,
|
|
50
51
|
textAlign,
|
|
51
52
|
userAssistanceDensity,
|
|
52
|
-
virtualKeyboard,
|
|
53
|
+
virtualKeyboard: normalizedVirtualKeyboard,
|
|
53
54
|
...textFieldProps
|
|
54
55
|
}
|
|
55
56
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "labelled-link",
|
|
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",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"webelement": {
|
|
41
|
-
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-
|
|
41
|
+
"docUrl": "https://www.oracle.com/webfolder/technetwork/jet-1710/cpwdtsdoc/classes/LabelledLinkWebElement.html"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"propertyLayout": [
|
|
@@ -10,7 +10,7 @@ export declare class LegendWebElementBase extends OjWebElement {
|
|
|
10
10
|
* Gets the value of <code>data</code> property.
|
|
11
11
|
* Specifies the DataProvider for the sections and items of the legend.
|
|
12
12
|
* @return The value of <code>data</code> property.
|
|
13
|
-
*
|
|
13
|
+
* @deprecated Since 17.1.0. Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead.
|
|
14
14
|
*/
|
|
15
15
|
getData(): Promise<null>;
|
|
16
16
|
/**
|
|
@@ -13,7 +13,7 @@ class LegendWebElementBase extends elements_1.OjWebElement {
|
|
|
13
13
|
* Gets the value of <code>data</code> property.
|
|
14
14
|
* Specifies the DataProvider for the sections and items of the legend.
|
|
15
15
|
* @return The value of <code>data</code> property.
|
|
16
|
-
*
|
|
16
|
+
* @deprecated Since 17.1.0. Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead.
|
|
17
17
|
*/
|
|
18
18
|
getData() {
|
|
19
19
|
return this.getProperty('data');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendWebElementBase.js","sourceRoot":"","sources":["LegendWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,oBAAqB,SAAQ,uBAAY;IACpD;;;;;OAKG;IACI,OAAO;QACZ,OAAO,IAAI,CAAC,WAAW,CAAO,MAAM,CAAC,CAAC;IACxC,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAS,UAAU,CAAC,CAAC;IAC9C,CAAC;IAED;;;;;OAKG;IACI,SAAS;QACd,OAAO,IAAI,CAAC,WAAW,CAAS,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACI,sBAAsB,CAAC,gBAA+B;QAC3D,OAAO,IAAI,CAAC,WAAW,CAAgB,kBAAkB,EAAE,gBAAgB,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;OAKG;IACI,mBAAmB;QACxB,OAAO,IAAI,CAAC,WAAW,CAAgB,kBAAkB,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACI,sBAAsB;QAC3B,OAAO,IAAI,CAAC,WAAW,CAAS,qBAAqB,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACI,2BAA2B,CAAC,qBAAoC;QACrE,OAAO,IAAI,CAAC,WAAW,CAAgB,uBAAuB,EAAE,qBAAqB,CAAC,CAAC;IACzF,CAAC;IAED;;;;;OAKG;IACI,wBAAwB;QAC7B,OAAO,IAAI,CAAC,WAAW,CAAgB,uBAAuB,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,WAAW,CAAS,aAAa,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,eAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAS,cAAc,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,WAAW,CAAS,aAAa,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,YAAY;QACjB,OAAO,IAAI,CAAC,WAAW,CAAY,WAAW,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,SAAS;QACd,OAAO,IAAI,CAAC,WAAW,CAAS,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACI,oBAAoB;QACzB,OAAO,IAAI,CAAC,WAAW,CAAoB,mBAAmB,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACI,qBAAqB;QAC1B,OAAO,IAAI,CAAC,WAAW,CAAS,oBAAoB,CAAC,CAAC;IACxD,CAAC;CACF;AAhKD,oDAgKC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-legend 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, LegendWebElement.ts.\n */\nexport class LegendWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>data</code> property.\n * Specifies the DataProvider for the sections and items of the legend.\n * @return The value of <code>data</code> property.\n
|
|
1
|
+
{"version":3,"file":"LegendWebElementBase.js","sourceRoot":"","sources":["LegendWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,oBAAqB,SAAQ,uBAAY;IACpD;;;;;OAKG;IACI,OAAO;QACZ,OAAO,IAAI,CAAC,WAAW,CAAO,MAAM,CAAC,CAAC;IACxC,CAAC;IAED;;;;;OAKG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,WAAW,CAAS,UAAU,CAAC,CAAC;IAC9C,CAAC;IAED;;;;;OAKG;IACI,SAAS;QACd,OAAO,IAAI,CAAC,WAAW,CAAS,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACI,sBAAsB,CAAC,gBAA+B;QAC3D,OAAO,IAAI,CAAC,WAAW,CAAgB,kBAAkB,EAAE,gBAAgB,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;OAKG;IACI,mBAAmB;QACxB,OAAO,IAAI,CAAC,WAAW,CAAgB,kBAAkB,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACI,sBAAsB;QAC3B,OAAO,IAAI,CAAC,WAAW,CAAS,qBAAqB,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACI,2BAA2B,CAAC,qBAAoC;QACrE,OAAO,IAAI,CAAC,WAAW,CAAgB,uBAAuB,EAAE,qBAAqB,CAAC,CAAC;IACzF,CAAC;IAED;;;;;OAKG;IACI,wBAAwB;QAC7B,OAAO,IAAI,CAAC,WAAW,CAAgB,uBAAuB,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACI,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAS,eAAe,CAAC,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,WAAW,CAAS,aAAa,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,eAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAS,cAAc,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,WAAW,CAAS,aAAa,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,YAAY;QACjB,OAAO,IAAI,CAAC,WAAW,CAAY,WAAW,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,SAAS;QACd,OAAO,IAAI,CAAC,WAAW,CAAS,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACI,oBAAoB;QACzB,OAAO,IAAI,CAAC,WAAW,CAAoB,mBAAmB,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACI,qBAAqB;QAC1B,OAAO,IAAI,CAAC,WAAW,CAAS,oBAAoB,CAAC,CAAC;IACxD,CAAC;CACF;AAhKD,oDAgKC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-legend 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, LegendWebElement.ts.\n */\nexport class LegendWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>data</code> property.\n * Specifies the DataProvider for the sections and items of the legend.\n * @return The value of <code>data</code> property.\n * @deprecated Since 17.1.0. Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead.\n */\n public getData(): Promise<null> {\n return this.getProperty<null>('data');\n }\n\n /**\n * Gets the value of <code>drilling</code> property.\n * Specifies whether drilling is enabled.\n * @return The value of <code>drilling</code> property.\n *\n */\n public getDrilling(): Promise<string> {\n return this.getProperty<string>('drilling');\n }\n\n /**\n * Gets the value of <code>halign</code> property.\n * Defines the horizontal alignment of the legend contents.\n * @return The value of <code>halign</code> property.\n *\n */\n public getHalign(): Promise<string> {\n return this.getProperty<string>('halign');\n }\n\n /**\n * Sets the value of <code>hiddenCategories</code> property.\n * An array of categories that will be hidden.\n * @param hiddenCategories The value to set for <code>hiddenCategories</code>\n *\n */\n public changeHiddenCategories(hiddenCategories: Array<string>): Promise<void> {\n return this.setProperty<Array<string>>('hiddenCategories', hiddenCategories);\n }\n\n /**\n * Gets the value of <code>hiddenCategories</code> property.\n * An array of categories that will be hidden.\n * @return The value of <code>hiddenCategories</code> property.\n *\n */\n public getHiddenCategories(): Promise<Array<string>> {\n return this.getProperty<Array<string>>('hiddenCategories');\n }\n\n /**\n * Gets the value of <code>hideAndShowBehavior</code> property.\n * Defines whether the legend can be used to initiate hide and show behavior on referenced data items.\n * @return The value of <code>hideAndShowBehavior</code> property.\n *\n */\n public getHideAndShowBehavior(): Promise<string> {\n return this.getProperty<string>('hideAndShowBehavior');\n }\n\n /**\n * Sets the value of <code>highlightedCategories</code> property.\n * An array of categories that will be highlighted.\n * @param highlightedCategories The value to set for <code>highlightedCategories</code>\n *\n */\n public changeHighlightedCategories(highlightedCategories: Array<string>): Promise<void> {\n return this.setProperty<Array<string>>('highlightedCategories', highlightedCategories);\n }\n\n /**\n * Gets the value of <code>highlightedCategories</code> property.\n * An array of categories that will be highlighted.\n * @return The value of <code>highlightedCategories</code> property.\n *\n */\n public getHighlightedCategories(): Promise<Array<string>> {\n return this.getProperty<Array<string>>('highlightedCategories');\n }\n\n /**\n * Gets the value of <code>hoverBehavior</code> property.\n * Defines the behavior applied when hovering over a legend item.\n * @return The value of <code>hoverBehavior</code> property.\n *\n */\n public getHoverBehavior(): Promise<string> {\n return this.getProperty<string>('hoverBehavior');\n }\n\n /**\n * Gets the value of <code>orientation</code> property.\n * Defines the orientation of the legend, which determines the direction in which the legend items are laid out.\n * @return The value of <code>orientation</code> property.\n *\n */\n public getOrientation(): Promise<string> {\n return this.getProperty<string>('orientation');\n }\n\n /**\n * Gets the value of <code>symbolHeight</code> property.\n * The height of the legend symbol in pixels.\n * @return The value of <code>symbolHeight</code> property.\n *\n */\n public getSymbolHeight(): Promise<number> {\n return this.getProperty<number>('symbolHeight');\n }\n\n /**\n * Gets the value of <code>symbolWidth</code> property.\n * The width of the legend symbol in pixels.\n * @return The value of <code>symbolWidth</code> property.\n *\n */\n public getSymbolWidth(): Promise<number> {\n return this.getProperty<number>('symbolWidth');\n }\n\n /**\n * Gets the value of <code>textStyle</code> property.\n * The CSS style object defining the style of the legend item text.\n * @return The value of <code>textStyle</code> property.\n *\n */\n public getTextStyle(): Promise<TextStyle> {\n return this.getProperty<TextStyle>('textStyle');\n }\n\n /**\n * Gets the value of <code>valign</code> property.\n * Defines the vertical alignment of the legend contents.\n * @return The value of <code>valign</code> property.\n *\n */\n public getValign(): Promise<string> {\n return this.getProperty<string>('valign');\n }\n\n /**\n * Gets the value of <code>sectionTitleStyle</code> property.\n * The CSS style object defining the style of the section titles' text.\n * @return The value of <code>sectionTitleStyle</code> property.\n *\n */\n public getSectionTitleStyle(): Promise<SectionTitleStyle> {\n return this.getProperty<SectionTitleStyle>('sectionTitleStyle');\n }\n\n /**\n * Gets the value of <code>sectionTitleHalign</code> property.\n * The horizontal alignment of the section titles.\n * @return The value of <code>sectionTitleHalign</code> property.\n *\n */\n public getSectionTitleHalign(): Promise<string> {\n return this.getProperty<string>('sectionTitleHalign');\n }\n}\nexport interface TextStyle {\n /**\n *\n */\n color: string;\n /**\n *\n */\n fontFamily: string;\n /**\n *\n */\n fontSize: string;\n /**\n *\n */\n fontStyle: string;\n /**\n *\n */\n fontWeight: string;\n /**\n *\n */\n textDecoration: string;\n}\nexport interface SectionTitleStyle {\n /**\n *\n */\n color: string;\n /**\n *\n */\n fontFamily: string;\n /**\n *\n */\n fontSize: string;\n /**\n *\n */\n fontStyle: string;\n /**\n *\n */\n fontWeight: string;\n /**\n *\n */\n textDecoration: string;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "legend",
|
|
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/LegendWebElement.html"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"propertyLayout": [
|
|
@@ -63,6 +63,17 @@
|
|
|
63
63
|
"description": "Specifies the DataProvider for the sections and items of the legend.",
|
|
64
64
|
"displayName": "Data",
|
|
65
65
|
"help": "#data",
|
|
66
|
+
"extension": {
|
|
67
|
+
"webelement": {
|
|
68
|
+
"exceptionStatus": [
|
|
69
|
+
{
|
|
70
|
+
"type": "deprecated",
|
|
71
|
+
"since": "17.1.0",
|
|
72
|
+
"description": "Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead."
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
66
77
|
"value": null
|
|
67
78
|
},
|
|
68
79
|
"drilling": {
|
package/oj-c/legend/legend.js
CHANGED
|
@@ -2,7 +2,11 @@ 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.LinearLegend = exports.Legend = void 0;
|
|
5
|
-
|
|
5
|
+
const HIGHLIGHTED_DEFAULT = [];
|
|
6
|
+
const HIDDEN_DEFAULT = [];
|
|
7
|
+
const TEXTSTYLE_DEFAULT = {};
|
|
8
|
+
const SECTION_TITLE_DEFAULT = {};
|
|
9
|
+
function LegendComp({ data = null, drilling = 'off', halign = 'start', valign = 'top', hiddenCategories = HIDDEN_DEFAULT, hideAndShowBehavior = 'off', highlightedCategories = HIGHLIGHTED_DEFAULT, hoverBehavior = 'none', orientation = 'vertical', symbolHeight = 0, symbolWidth = 0, textStyle = TEXTSTYLE_DEFAULT, sectionTitleStyle = SECTION_TITLE_DEFAULT, sectionTitleHalign = 'start', ...props }) {
|
|
6
10
|
const rootRef = (0, hooks_1.useRef)(null);
|
|
7
11
|
const addBusyState = (0, useVisBusyState_1.useVisBusyState)(rootRef, 'oj-c-legend');
|
|
8
12
|
const isTreeData = (0, utils_1.isTreeDataProvider)(data);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "legend-section",
|
|
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",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"displayName": "Text",
|
|
42
42
|
"help": "#text",
|
|
43
43
|
"translatable": true,
|
|
44
|
-
"required": true,
|
|
45
44
|
"value": ""
|
|
46
45
|
}
|
|
47
46
|
},
|
|
@@ -87,7 +87,7 @@ export declare class LineChartWebElementBase extends OjWebElement {
|
|
|
87
87
|
* Gets the value of <code>data</code> property.
|
|
88
88
|
* Specifies the DataProvider for the sections and items of the line-chart.
|
|
89
89
|
* @return The value of <code>data</code> property.
|
|
90
|
-
*
|
|
90
|
+
* @deprecated Since 17.1.0. Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead.
|
|
91
91
|
*/
|
|
92
92
|
getData(): Promise<null>;
|
|
93
93
|
/**
|
|
@@ -365,7 +365,7 @@ export interface XAxisTickLabel {
|
|
|
365
365
|
/**
|
|
366
366
|
* The converter to format the axis tick labels.
|
|
367
367
|
*/
|
|
368
|
-
converter: object
|
|
368
|
+
converter: object | Array<object>;
|
|
369
369
|
/**
|
|
370
370
|
* Whether the tick labels are rendered or not.
|
|
371
371
|
*/
|
|
@@ -112,7 +112,7 @@ class LineChartWebElementBase extends elements_1.OjWebElement {
|
|
|
112
112
|
* Gets the value of <code>data</code> property.
|
|
113
113
|
* Specifies the DataProvider for the sections and items of the line-chart.
|
|
114
114
|
* @return The value of <code>data</code> property.
|
|
115
|
-
*
|
|
115
|
+
* @deprecated Since 17.1.0. Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead.
|
|
116
116
|
*/
|
|
117
117
|
getData() {
|
|
118
118
|
return this.getProperty('data');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineChartWebElementBase.js","sourceRoot":"","sources":["LineChartWebElementBase.ts"],"names":[],"mappings":"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","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-line-chart 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, LineChartWebElement.ts.\n */\nexport class LineChartWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>groupComparator</code> property.\n * A comparator function that determines the ordering of the chart groups when using a DataProvider. If undefined, the group will follow the order in which they are found in the data.\n * @return The value of <code>groupComparator</code> property.\n *\n */\n public getGroupComparator(): Promise<null> {\n return this.getProperty<null>('groupComparator');\n }\n\n /**\n * Gets the value of <code>stack</code> property.\n * Defines whether the data items are stacked.\n * @return The value of <code>stack</code> property.\n *\n */\n public getStack(): Promise<string> {\n return this.getProperty<string>('stack');\n }\n\n /**\n * Gets the value of <code>drilling</code> property.\n * Whether drilling is enabled. Drillable objects will show a pointer cursor on hover and fire an <code class=\"prettyprint\">ojDrill</code> event on click (double click if selection is enabled). Use \"on\" to enable drilling for all series objects (legend items), group objects (x-axis labels), and data items. Use \"seriesOnly\" or \"groupsOnly\" to enable drilling for series objects or group objects only. To enable or disable drilling on individual series, group, or data item, use the drilling attribute in each series, group, or data item.\n * @return The value of <code>drilling</code> property.\n *\n */\n public getDrilling(): Promise<string> {\n return this.getProperty<string>('drilling');\n }\n\n /**\n * Gets the value of <code>orientation</code> property.\n * The orientation of the chart.\n * @return The value of <code>orientation</code> property.\n *\n */\n public getOrientation(): Promise<string> {\n return this.getProperty<string>('orientation');\n }\n\n /**\n * Gets the value of <code>timeAxisType</code> property.\n * The time axis type of the chart x axis.\n * @return The value of <code>timeAxisType</code> property.\n *\n */\n public getTimeAxisType(): Promise<string> {\n return this.getProperty<string>('timeAxisType');\n }\n\n /**\n * Gets the value of <code>yAxis</code> property.\n * The yAxis options for the chart.\n * @return The value of <code>yAxis</code> property.\n *\n */\n public getYAxis(): Promise<YAxis> {\n return this.getProperty<YAxis>('yAxis');\n }\n\n /**\n * Gets the value of <code>xAxis</code> property.\n * The xAxis options for the chart.\n * @return The value of <code>xAxis</code> property.\n *\n */\n public getXAxis(): Promise<XAxis> {\n return this.getProperty<XAxis>('xAxis');\n }\n\n /**\n * Gets the value of <code>plotArea</code> property.\n * The plot area of the chart.\n * @return The value of <code>plotArea</code> property.\n *\n */\n public getPlotArea(): Promise<PlotArea> {\n return this.getProperty<PlotArea>('plotArea');\n }\n\n /**\n * Gets the value of <code>zoomAndScroll</code> property.\n * The zoom and scroll behavior.\n * @return The value of <code>zoomAndScroll</code> property.\n *\n */\n public getZoomAndScroll(): Promise<string> {\n return this.getProperty<string>('zoomAndScroll');\n }\n\n /**\n * Gets the value of <code>valueFormats</code> property.\n * An object specifying value formatting and tooltip behavior, whose keys generally correspond to the attribute names on the data items.\n * @return The value of <code>valueFormats</code> property.\n *\n */\n public getValueFormats(): Promise<ValueFormats> {\n return this.getProperty<ValueFormats>('valueFormats');\n }\n\n /**\n * Gets the value of <code>seriesComparator</code> property.\n * A comparator function that determines the ordering of the chart series when using a DataProvider. If undefined, the series will follow the order in which they are found in the data.\n * @return The value of <code>seriesComparator</code> property.\n *\n */\n public getSeriesComparator(): Promise<null> {\n return this.getProperty<null>('seriesComparator');\n }\n\n /**\n * Gets the value of <code>data</code> property.\n * Specifies the DataProvider for the sections and items of the line-chart.\n * @return The value of <code>data</code> property.\n *\n */\n public getData(): Promise<null> {\n return this.getProperty<null>('data');\n }\n\n /**\n * Gets the value of <code>selectionMode</code> property.\n * Specifies the selection mode.\n * @return The value of <code>selectionMode</code> property.\n *\n */\n public getSelectionMode(): Promise<string> {\n return this.getProperty<string>('selectionMode');\n }\n\n /**\n * Sets the value of <code>selection</code> property.\n * An array containing the ids of the initially selected data items.\n * @param selection The value to set for <code>selection</code>\n *\n */\n public changeSelection(selection: Array<any>): Promise<void> {\n return this.setProperty<Array<any>>('selection', selection);\n }\n\n /**\n * Gets the value of <code>selection</code> property.\n * An array containing the ids of the initially selected data items.\n * @return The value of <code>selection</code> property.\n *\n */\n public getSelection(): Promise<Array<any>> {\n return this.getProperty<Array<any>>('selection');\n }\n\n /**\n * Gets the value of <code>dragMode</code> property.\n * The action that is performed when a drag occurs on the chart.\n * @return The value of <code>dragMode</code> property.\n *\n */\n public getDragMode(): Promise<string> {\n return this.getProperty<string>('dragMode');\n }\n\n /**\n * Sets the value of <code>hiddenCategories</code> property.\n * An array of category strings used for filtering.\n * @param hiddenCategories The value to set for <code>hiddenCategories</code>\n *\n */\n public changeHiddenCategories(hiddenCategories: Array<string>): Promise<void> {\n return this.setProperty<Array<string>>('hiddenCategories', hiddenCategories);\n }\n\n /**\n * Gets the value of <code>hiddenCategories</code> property.\n * An array of category strings used for filtering.\n * @return The value of <code>hiddenCategories</code> property.\n *\n */\n public getHiddenCategories(): Promise<Array<string>> {\n return this.getProperty<Array<string>>('hiddenCategories');\n }\n\n /**\n * Sets the value of <code>highlightedCategories</code> property.\n * An array of category strings used for highlighting.\n * @param highlightedCategories The value to set for <code>highlightedCategories</code>\n *\n */\n public changeHighlightedCategories(highlightedCategories: Array<string>): Promise<void> {\n return this.setProperty<Array<string>>('highlightedCategories', highlightedCategories);\n }\n\n /**\n * Gets the value of <code>highlightedCategories</code> property.\n * An array of category strings used for highlighting.\n * @return The value of <code>highlightedCategories</code> property.\n *\n */\n public getHighlightedCategories(): Promise<Array<string>> {\n return this.getProperty<Array<string>>('highlightedCategories');\n }\n\n /**\n * Gets the value of <code>hideAndShowBehavior</code> property.\n * Defines the hide and show behavior that is performed when clicking on a leegnd item.\n * @return The value of <code>hideAndShowBehavior</code> property.\n *\n */\n public getHideAndShowBehavior(): Promise<string> {\n return this.getProperty<string>('hideAndShowBehavior');\n }\n\n /**\n * Gets the value of <code>hoverBehavior</code> property.\n * Defines the behavior applied when hovering over data items.\n * @return The value of <code>hoverBehavior</code> property.\n *\n */\n public getHoverBehavior(): Promise<string> {\n return this.getProperty<string>('hoverBehavior');\n }\n\n /**\n * Gets the value of <code>highlightMatch</code> property.\n * The matching condition for the highlighted property.\n * @return The value of <code>highlightMatch</code> property.\n *\n */\n public getHighlightMatch(): Promise<string> {\n return this.getProperty<string>('highlightMatch');\n }\n\n /**\n * Gets the value of <code>legend</code> property.\n * An object defining the style, positioning, and behavior of the legend.\n * @return The value of <code>legend</code> property.\n *\n */\n public getLegend(): Promise<Legend> {\n return this.getProperty<Legend>('legend');\n }\n}\nexport interface YAxis {\n /**\n * The maximum value of the chart data.\n */\n dataMax: number;\n /**\n * The minimum value of the chart data.\n */\n dataMin: number;\n /**\n * The maximum value of the y axis.\n */\n max: number;\n /**\n * The minimum value of the y axis.\n */\n min: number;\n /**\n * The y axis major tick properties.\n */\n majorTick: YAxisMajorTick;\n /**\n * The y axis minor tick properties.\n */\n minorTick: YAxisMinorTick;\n /**\n * The y axis tick label properties.\n */\n tickLabel: YAxisTickLabel;\n /**\n * The current minimum value of y axis viewport.\n */\n viewportMin: number;\n /**\n * The current maximum value of y axis viewport.\n */\n viewportMax: number;\n /**\n * The increment between major tick marks in y axis.\n */\n step: number;\n /**\n * The size of the axis.\n */\n size: number;\n /**\n * The scale of the axis.\n */\n scale: string;\n /**\n * The axis title.\n */\n title: string;\n /**\n * The axis title style.\n */\n titleStyle: object;\n}\nexport interface YAxisMajorTick {\n /**\n * The color of the line.\n */\n lineColor: string;\n /**\n * The style of the line.\n */\n lineStyle: string;\n /**\n * The width of the line.\n */\n lineWidth: number;\n /**\n * The color of the line.\n */\n rendered: string;\n}\nexport interface YAxisMinorTick {\n /**\n * The color of the line.\n */\n lineColor: string;\n /**\n * The style of the line.\n */\n lineStyle: string;\n /**\n * The width of the line.\n */\n lineWidth: number;\n /**\n * Whether the minor tick are rendered.\n */\n rendered: string;\n}\nexport interface YAxisTickLabel {\n /**\n * The converter to format the axis tick labels.\n */\n converter: object;\n /**\n * Whether the tick labels are rendered or not.\n */\n rendered: string;\n /**\n * The style of the tick labels.\n */\n style: object;\n}\nexport interface XAxis {\n /**\n * The x axis major tick properties.\n */\n majorTick: XAxisMajorTick;\n /**\n * The x axis minor tick properties.\n */\n minorTick: XAxisMinorTick;\n /**\n * The x axis tick label properties.\n */\n tickLabel: XAxisTickLabel;\n /**\n * The current minimum value of x axis viewport.\n */\n viewportMin: number;\n /**\n * The current maximum value of x axis viewport.\n */\n viewportMax: number;\n /**\n * The increment between major tick marks in x axis.\n */\n step: number;\n /**\n * The size of the axis.\n */\n size: number;\n /**\n * The scale of the axis.\n */\n scale: string;\n /**\n * The axis title.\n */\n title: string;\n /**\n * The axis title style.\n */\n titleStyle: object;\n}\nexport interface XAxisMajorTick {\n /**\n * The color of the line.\n */\n lineColor: string;\n /**\n * The style of the line.\n */\n lineStyle: string;\n /**\n * The width of the line.\n */\n lineWidth: number;\n /**\n * The color of the line.\n */\n rendered: string;\n}\nexport interface XAxisMinorTick {\n /**\n * The color of the line.\n */\n lineColor: string;\n /**\n * The style of the line.\n */\n lineStyle: string;\n /**\n * The width of the line.\n */\n lineWidth: number;\n /**\n * Whether the minor tick are rendered.\n */\n rendered: string;\n}\nexport interface XAxisTickLabel {\n /**\n * The converter to format the axis tick labels.\n */\n converter: object;\n /**\n * Whether the tick labels are rendered or not.\n */\n rendered: string;\n /**\n * Whether the ticklabels can be rotated.\n */\n rotation: string;\n /**\n * The style of the tick labels.\n */\n style: object;\n}\nexport interface PlotArea {\n /**\n * The background color of the plot area.\n */\n backgroundColor: string;\n}\nexport interface ValueFormats {\n /**\n * The object defining formatting and tooltip behavior for the group.\n */\n group: ValueFormatsGroup;\n /**\n * The object defining formatting and tooltip behavior for the series.\n */\n series: ValueFormatsSeries;\n /**\n * The object defining formatting and tooltip behavior for the value.\n */\n value: ValueFormatsValue;\n}\nexport interface ValueFormatsGroup {\n /**\n * A string representing the label that is displayed before the value in the tooltip.\n */\n tooltipLabel: string;\n /**\n * Whether the value is displayed in the tooltip.\n */\n tooltipDisplay: string;\n}\nexport interface ValueFormatsSeries {\n /**\n * A string representing the label that is displayed before the value in the tooltip.\n */\n tooltipLabel: string;\n /**\n * Whether the value is displayed in the tooltip.\n */\n tooltipDisplay: string;\n}\nexport interface ValueFormatsValue {\n /**\n * The converter to format the numerical value for the tooltip.\n */\n converter: object;\n /**\n * A string representing the label that is displayed before the value in the tooltip.\n */\n tooltipLabel: string;\n /**\n * Whether the value is displayed in the tooltip.\n */\n tooltipDisplay: string;\n}\nexport interface Legend {\n /**\n *\n */\n position: string;\n /**\n *\n */\n rendered: string;\n /**\n *\n */\n maxSize: number | string;\n /**\n *\n */\n size: number | string;\n /**\n *\n */\n symbolHeight: number;\n /**\n *\n */\n symbolWidth: number;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"LineChartWebElementBase.js","sourceRoot":"","sources":["LineChartWebElementBase.ts"],"names":[],"mappings":"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","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-line-chart 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, LineChartWebElement.ts.\n */\nexport class LineChartWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>groupComparator</code> property.\n * A comparator function that determines the ordering of the chart groups when using a DataProvider. If undefined, the group will follow the order in which they are found in the data.\n * @return The value of <code>groupComparator</code> property.\n *\n */\n public getGroupComparator(): Promise<null> {\n return this.getProperty<null>('groupComparator');\n }\n\n /**\n * Gets the value of <code>stack</code> property.\n * Defines whether the data items are stacked.\n * @return The value of <code>stack</code> property.\n *\n */\n public getStack(): Promise<string> {\n return this.getProperty<string>('stack');\n }\n\n /**\n * Gets the value of <code>drilling</code> property.\n * Whether drilling is enabled. Drillable objects will show a pointer cursor on hover and fire an <code class=\"prettyprint\">ojDrill</code> event on click (double click if selection is enabled). Use \"on\" to enable drilling for all series objects (legend items), group objects (x-axis labels), and data items. Use \"seriesOnly\" or \"groupsOnly\" to enable drilling for series objects or group objects only. To enable or disable drilling on individual series, group, or data item, use the drilling attribute in each series, group, or data item.\n * @return The value of <code>drilling</code> property.\n *\n */\n public getDrilling(): Promise<string> {\n return this.getProperty<string>('drilling');\n }\n\n /**\n * Gets the value of <code>orientation</code> property.\n * The orientation of the chart.\n * @return The value of <code>orientation</code> property.\n *\n */\n public getOrientation(): Promise<string> {\n return this.getProperty<string>('orientation');\n }\n\n /**\n * Gets the value of <code>timeAxisType</code> property.\n * The time axis type of the chart x axis.\n * @return The value of <code>timeAxisType</code> property.\n *\n */\n public getTimeAxisType(): Promise<string> {\n return this.getProperty<string>('timeAxisType');\n }\n\n /**\n * Gets the value of <code>yAxis</code> property.\n * The yAxis options for the chart.\n * @return The value of <code>yAxis</code> property.\n *\n */\n public getYAxis(): Promise<YAxis> {\n return this.getProperty<YAxis>('yAxis');\n }\n\n /**\n * Gets the value of <code>xAxis</code> property.\n * The xAxis options for the chart.\n * @return The value of <code>xAxis</code> property.\n *\n */\n public getXAxis(): Promise<XAxis> {\n return this.getProperty<XAxis>('xAxis');\n }\n\n /**\n * Gets the value of <code>plotArea</code> property.\n * The plot area of the chart.\n * @return The value of <code>plotArea</code> property.\n *\n */\n public getPlotArea(): Promise<PlotArea> {\n return this.getProperty<PlotArea>('plotArea');\n }\n\n /**\n * Gets the value of <code>zoomAndScroll</code> property.\n * The zoom and scroll behavior.\n * @return The value of <code>zoomAndScroll</code> property.\n *\n */\n public getZoomAndScroll(): Promise<string> {\n return this.getProperty<string>('zoomAndScroll');\n }\n\n /**\n * Gets the value of <code>valueFormats</code> property.\n * An object specifying value formatting and tooltip behavior, whose keys generally correspond to the attribute names on the data items.\n * @return The value of <code>valueFormats</code> property.\n *\n */\n public getValueFormats(): Promise<ValueFormats> {\n return this.getProperty<ValueFormats>('valueFormats');\n }\n\n /**\n * Gets the value of <code>seriesComparator</code> property.\n * A comparator function that determines the ordering of the chart series when using a DataProvider. If undefined, the series will follow the order in which they are found in the data.\n * @return The value of <code>seriesComparator</code> property.\n *\n */\n public getSeriesComparator(): Promise<null> {\n return this.getProperty<null>('seriesComparator');\n }\n\n /**\n * Gets the value of <code>data</code> property.\n * Specifies the DataProvider for the sections and items of the line-chart.\n * @return The value of <code>data</code> property.\n * @deprecated Since 17.1.0. Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead.\n */\n public getData(): Promise<null> {\n return this.getProperty<null>('data');\n }\n\n /**\n * Gets the value of <code>selectionMode</code> property.\n * Specifies the selection mode.\n * @return The value of <code>selectionMode</code> property.\n *\n */\n public getSelectionMode(): Promise<string> {\n return this.getProperty<string>('selectionMode');\n }\n\n /**\n * Sets the value of <code>selection</code> property.\n * An array containing the ids of the initially selected data items.\n * @param selection The value to set for <code>selection</code>\n *\n */\n public changeSelection(selection: Array<any>): Promise<void> {\n return this.setProperty<Array<any>>('selection', selection);\n }\n\n /**\n * Gets the value of <code>selection</code> property.\n * An array containing the ids of the initially selected data items.\n * @return The value of <code>selection</code> property.\n *\n */\n public getSelection(): Promise<Array<any>> {\n return this.getProperty<Array<any>>('selection');\n }\n\n /**\n * Gets the value of <code>dragMode</code> property.\n * The action that is performed when a drag occurs on the chart.\n * @return The value of <code>dragMode</code> property.\n *\n */\n public getDragMode(): Promise<string> {\n return this.getProperty<string>('dragMode');\n }\n\n /**\n * Sets the value of <code>hiddenCategories</code> property.\n * An array of category strings used for filtering.\n * @param hiddenCategories The value to set for <code>hiddenCategories</code>\n *\n */\n public changeHiddenCategories(hiddenCategories: Array<string>): Promise<void> {\n return this.setProperty<Array<string>>('hiddenCategories', hiddenCategories);\n }\n\n /**\n * Gets the value of <code>hiddenCategories</code> property.\n * An array of category strings used for filtering.\n * @return The value of <code>hiddenCategories</code> property.\n *\n */\n public getHiddenCategories(): Promise<Array<string>> {\n return this.getProperty<Array<string>>('hiddenCategories');\n }\n\n /**\n * Sets the value of <code>highlightedCategories</code> property.\n * An array of category strings used for highlighting.\n * @param highlightedCategories The value to set for <code>highlightedCategories</code>\n *\n */\n public changeHighlightedCategories(highlightedCategories: Array<string>): Promise<void> {\n return this.setProperty<Array<string>>('highlightedCategories', highlightedCategories);\n }\n\n /**\n * Gets the value of <code>highlightedCategories</code> property.\n * An array of category strings used for highlighting.\n * @return The value of <code>highlightedCategories</code> property.\n *\n */\n public getHighlightedCategories(): Promise<Array<string>> {\n return this.getProperty<Array<string>>('highlightedCategories');\n }\n\n /**\n * Gets the value of <code>hideAndShowBehavior</code> property.\n * Defines the hide and show behavior that is performed when clicking on a leegnd item.\n * @return The value of <code>hideAndShowBehavior</code> property.\n *\n */\n public getHideAndShowBehavior(): Promise<string> {\n return this.getProperty<string>('hideAndShowBehavior');\n }\n\n /**\n * Gets the value of <code>hoverBehavior</code> property.\n * Defines the behavior applied when hovering over data items.\n * @return The value of <code>hoverBehavior</code> property.\n *\n */\n public getHoverBehavior(): Promise<string> {\n return this.getProperty<string>('hoverBehavior');\n }\n\n /**\n * Gets the value of <code>highlightMatch</code> property.\n * The matching condition for the highlighted property.\n * @return The value of <code>highlightMatch</code> property.\n *\n */\n public getHighlightMatch(): Promise<string> {\n return this.getProperty<string>('highlightMatch');\n }\n\n /**\n * Gets the value of <code>legend</code> property.\n * An object defining the style, positioning, and behavior of the legend.\n * @return The value of <code>legend</code> property.\n *\n */\n public getLegend(): Promise<Legend> {\n return this.getProperty<Legend>('legend');\n }\n}\nexport interface YAxis {\n /**\n * The maximum value of the chart data.\n */\n dataMax: number;\n /**\n * The minimum value of the chart data.\n */\n dataMin: number;\n /**\n * The maximum value of the y axis.\n */\n max: number;\n /**\n * The minimum value of the y axis.\n */\n min: number;\n /**\n * The y axis major tick properties.\n */\n majorTick: YAxisMajorTick;\n /**\n * The y axis minor tick properties.\n */\n minorTick: YAxisMinorTick;\n /**\n * The y axis tick label properties.\n */\n tickLabel: YAxisTickLabel;\n /**\n * The current minimum value of y axis viewport.\n */\n viewportMin: number;\n /**\n * The current maximum value of y axis viewport.\n */\n viewportMax: number;\n /**\n * The increment between major tick marks in y axis.\n */\n step: number;\n /**\n * The size of the axis.\n */\n size: number;\n /**\n * The scale of the axis.\n */\n scale: string;\n /**\n * The axis title.\n */\n title: string;\n /**\n * The axis title style.\n */\n titleStyle: object;\n}\nexport interface YAxisMajorTick {\n /**\n * The color of the line.\n */\n lineColor: string;\n /**\n * The style of the line.\n */\n lineStyle: string;\n /**\n * The width of the line.\n */\n lineWidth: number;\n /**\n * The color of the line.\n */\n rendered: string;\n}\nexport interface YAxisMinorTick {\n /**\n * The color of the line.\n */\n lineColor: string;\n /**\n * The style of the line.\n */\n lineStyle: string;\n /**\n * The width of the line.\n */\n lineWidth: number;\n /**\n * Whether the minor tick are rendered.\n */\n rendered: string;\n}\nexport interface YAxisTickLabel {\n /**\n * The converter to format the axis tick labels.\n */\n converter: object;\n /**\n * Whether the tick labels are rendered or not.\n */\n rendered: string;\n /**\n * The style of the tick labels.\n */\n style: object;\n}\nexport interface XAxis {\n /**\n * The x axis major tick properties.\n */\n majorTick: XAxisMajorTick;\n /**\n * The x axis minor tick properties.\n */\n minorTick: XAxisMinorTick;\n /**\n * The x axis tick label properties.\n */\n tickLabel: XAxisTickLabel;\n /**\n * The current minimum value of x axis viewport.\n */\n viewportMin: number;\n /**\n * The current maximum value of x axis viewport.\n */\n viewportMax: number;\n /**\n * The increment between major tick marks in x axis.\n */\n step: number;\n /**\n * The size of the axis.\n */\n size: number;\n /**\n * The scale of the axis.\n */\n scale: string;\n /**\n * The axis title.\n */\n title: string;\n /**\n * The axis title style.\n */\n titleStyle: object;\n}\nexport interface XAxisMajorTick {\n /**\n * The color of the line.\n */\n lineColor: string;\n /**\n * The style of the line.\n */\n lineStyle: string;\n /**\n * The width of the line.\n */\n lineWidth: number;\n /**\n * The color of the line.\n */\n rendered: string;\n}\nexport interface XAxisMinorTick {\n /**\n * The color of the line.\n */\n lineColor: string;\n /**\n * The style of the line.\n */\n lineStyle: string;\n /**\n * The width of the line.\n */\n lineWidth: number;\n /**\n * Whether the minor tick are rendered.\n */\n rendered: string;\n}\nexport interface XAxisTickLabel {\n /**\n * The converter to format the axis tick labels.\n */\n converter: object | Array<object>;\n /**\n * Whether the tick labels are rendered or not.\n */\n rendered: string;\n /**\n * Whether the ticklabels can be rotated.\n */\n rotation: string;\n /**\n * The style of the tick labels.\n */\n style: object;\n}\nexport interface PlotArea {\n /**\n * The background color of the plot area.\n */\n backgroundColor: string;\n}\nexport interface ValueFormats {\n /**\n * The object defining formatting and tooltip behavior for the group.\n */\n group: ValueFormatsGroup;\n /**\n * The object defining formatting and tooltip behavior for the series.\n */\n series: ValueFormatsSeries;\n /**\n * The object defining formatting and tooltip behavior for the value.\n */\n value: ValueFormatsValue;\n}\nexport interface ValueFormatsGroup {\n /**\n * A string representing the label that is displayed before the value in the tooltip.\n */\n tooltipLabel: string;\n /**\n * Whether the value is displayed in the tooltip.\n */\n tooltipDisplay: string;\n}\nexport interface ValueFormatsSeries {\n /**\n * A string representing the label that is displayed before the value in the tooltip.\n */\n tooltipLabel: string;\n /**\n * Whether the value is displayed in the tooltip.\n */\n tooltipDisplay: string;\n}\nexport interface ValueFormatsValue {\n /**\n * The converter to format the numerical value for the tooltip.\n */\n converter: object;\n /**\n * A string representing the label that is displayed before the value in the tooltip.\n */\n tooltipLabel: string;\n /**\n * Whether the value is displayed in the tooltip.\n */\n tooltipDisplay: string;\n}\nexport interface Legend {\n /**\n *\n */\n position: string;\n /**\n *\n */\n rendered: string;\n /**\n *\n */\n maxSize: number | string;\n /**\n *\n */\n size: number | string;\n /**\n *\n */\n symbolHeight: number;\n /**\n *\n */\n symbolWidth: number;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "line-chart",
|
|
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/LineChartWebElement.html"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"propertyLayout": [
|
|
@@ -144,6 +144,20 @@
|
|
|
144
144
|
"description": "The time axis type of the chart x axis.",
|
|
145
145
|
"displayName": "TimeAxisType",
|
|
146
146
|
"help": "#timeAxisType",
|
|
147
|
+
"propertyEditorValues": {
|
|
148
|
+
"enabled": {
|
|
149
|
+
"description": "The regular time axis type. Time values are passed using <a target='_blank' href='oj-c.LineChartItem.html'>oj-c-line-chart-item</a> group-id attribute.",
|
|
150
|
+
"displayName": "Regular"
|
|
151
|
+
},
|
|
152
|
+
"mixedFrequency": {
|
|
153
|
+
"description": "The mixed frequency time axis type. The mixed frequency time axis type is used when different series have different sampling frequencies. Time values are passed using <a target='_blank' href='oj-c.LineChartItem.html'>oj-c-line-chart-item</a> x attribute.",
|
|
154
|
+
"displayName": "MixedFrequency"
|
|
155
|
+
},
|
|
156
|
+
"skipGaps": {
|
|
157
|
+
"description": "The regular time axis type. Time values are passed using <a target='_blank' href='oj-c.LineChartItem.html'>oj-c-line-chart-item</a> group-id attribute. Gap between time values will be ignored.",
|
|
158
|
+
"displayName": "SkipGaps"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
147
161
|
"enumValues": [
|
|
148
162
|
"enabled",
|
|
149
163
|
"mixedFrequency",
|
|
@@ -539,7 +553,7 @@
|
|
|
539
553
|
"displayName": "Tick Label",
|
|
540
554
|
"properties": {
|
|
541
555
|
"converter": {
|
|
542
|
-
"type": "object|",
|
|
556
|
+
"type": "object|Array<object>",
|
|
543
557
|
"description": "The converter to format the axis tick labels.",
|
|
544
558
|
"displayName": "Converter"
|
|
545
559
|
},
|
|
@@ -765,7 +779,18 @@
|
|
|
765
779
|
"type": "DataProvider|null",
|
|
766
780
|
"description": "Specifies the DataProvider for the sections and items of the line-chart.",
|
|
767
781
|
"displayName": "Data",
|
|
768
|
-
"help": "#data"
|
|
782
|
+
"help": "#data",
|
|
783
|
+
"extension": {
|
|
784
|
+
"webelement": {
|
|
785
|
+
"exceptionStatus": [
|
|
786
|
+
{
|
|
787
|
+
"type": "deprecated",
|
|
788
|
+
"since": "17.1.0",
|
|
789
|
+
"description": "Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead."
|
|
790
|
+
}
|
|
791
|
+
]
|
|
792
|
+
}
|
|
793
|
+
}
|
|
769
794
|
},
|
|
770
795
|
"selectionMode": {
|
|
771
796
|
"type": "string",
|
|
@@ -2,10 +2,11 @@ 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.LineChart = void 0;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const HIGHLIGHTED_DEFAULT = [];
|
|
6
|
+
const SELECTION_DEFAULT = [];
|
|
7
|
+
const HIDDEN_DEFAULT = [];
|
|
8
|
+
const LEGEND_DEFAULT = { rendered: 'on', position: 'auto' };
|
|
9
|
+
function LineChartComp({ data, hideAndShowBehavior = 'none', orientation = 'vertical', xAxis, yAxis, hoverBehavior = 'none', valueFormats, plotArea, zoomAndScroll, itemTemplate, seriesTemplate, groupTemplate, seriesComparator, groupComparator, drilling = 'off', hiddenCategories = HIDDEN_DEFAULT, timeAxisType, highlightedCategories = HIGHLIGHTED_DEFAULT, highlightMatch = 'any', selection = SELECTION_DEFAULT, selectionMode = 'none', stack = 'off', legend = LEGEND_DEFAULT, ...props }) {
|
|
9
10
|
const rootRef = (0, hooks_1.useRef)(null);
|
|
10
11
|
const addBusyState = (0, useVisBusyState_1.useVisBusyState)(rootRef, 'oj-c-line-chart');
|
|
11
12
|
const { series, groups, getDataItem, isLoading } = (0, useChartData_1.useChartData)(data, addBusyState, itemTemplate, seriesTemplate, groupTemplate, 'oj-c-line-chart-item', 'oj-c-line-chart-series', 'oj-c-line-chart-group', seriesComparator, groupComparator);
|
|
@@ -46,7 +47,7 @@ define(["require", "exports", "preact/jsx-runtime", '@oracle/oraclejet-preact/tr
|
|
|
46
47
|
const chartLegend = isLegendRendered && legendData.length > 0 ? ((0, jsx_runtime_1.jsx)(UNSAFE_Legend_1.Legend, { items: legendData, orientation: legendPosition === 'start' || legendPosition === 'end' ? 'vertical' : 'horizontal', isReadOnly: !isLegendInteractive, highlightedIds: highlightedIds.length === 0 ? undefined : highlightedIds, hiddenIds: hiddenIds.length === 0 ? undefined : hiddenIds, symbolHeight: legend.symbolHeight, symbolWidth: legend.symbolWidth, onItemAction: legendItemActionHandler, onItemHover: legendItemInputHandler, onItemFocus: legendItemInputHandler })) : undefined;
|
|
47
48
|
return ((0, jsx_runtime_1.jsx)(ojvcomponent_1.Root, { ref: rootRef, children: (0, jsx_runtime_1.jsx)(UNSAFE_VisProgressiveLoader_1.VisProgressiveLoader, { isLoading: isLoading, type: "line", "aria-label": props['aria-label'], "aria-describedBy": props['aria-describedby'], "aria-labelledBy": props['aria-labelledby'], children: (0, jsx_runtime_1.jsx)(UNSAFE_ChartWithLegend_1.ChartWithLegend, { chart: chart, position: legendPosition, maxSize: legend.maxSize, size: legend.size, legend: chartLegend }) }) }));
|
|
48
49
|
}
|
|
49
|
-
exports.LineChart = (0, ojvcomponent_1.registerCustomElement)('oj-c-line-chart', LineChartComp, "LineChart", { "properties": { "groupComparator": { "type": "function" }, "stack": { "type": "string", "enumValues": ["off", "on"] }, "drilling": { "type": "string", "enumValues": ["off", "on", "groupsOnly", "seriesOnly"] }, "orientation": { "type": "string", "enumValues": ["horizontal", "vertical"] }, "timeAxisType": { "type": "string", "enumValues": ["enabled", "mixedFrequency", "skipGaps"] }, "yAxis": { "type": "object", "properties": { "dataMax": { "type": "number" }, "dataMin": { "type": "number" }, "max": { "type": "number" }, "min": { "type": "number" }, "majorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "solid", "dotted"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "minorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "solid", "dotted"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "tickLabel": { "type": "object", "properties": { "converter": { "type": "object" }, "rendered": { "type": "string", "enumValues": ["off", "on"] }, "style": { "type": "object" } } }, "viewportMin": { "type": "number" }, "viewportMax": { "type": "number" }, "step": { "type": "number" }, "size": { "type": "number" }, "scale": { "type": "string", "enumValues": ["linear", "log"] }, "title": { "type": "string" }, "titleStyle": { "type": "object" } } }, "xAxis": { "type": "object", "properties": { "majorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "solid", "dotted"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "minorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "solid", "dotted"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "tickLabel": { "type": "object", "properties": { "converter": { "type": "object|" }, "rendered": { "type": "string", "enumValues": ["off", "on"] }, "rotation": { "type": "string", "enumValues": ["auto", "none"] }, "style": { "type": "object" } } }, "viewportMin": { "type": "number" }, "viewportMax": { "type": "number" }, "step": { "type": "number" }, "size": { "type": "number" }, "scale": { "type": "string", "enumValues": ["linear", "log"] }, "title": { "type": "string" }, "titleStyle": { "type": "object" } } }, "plotArea": { "type": "object", "properties": { "backgroundColor": { "type": "string" } } }, "zoomAndScroll": { "type": "string", "enumValues": ["off", "live"] }, "valueFormats": { "type": "object", "properties": { "group": { "type": "object", "properties": { "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } }, "series": { "type": "object", "properties": { "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } }, "value": { "type": "object", "properties": { "converter": { "type": "object" }, "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } } } }, "seriesComparator": { "type": "function" }, "data": { "type": "DataProvider|null" }, "selectionMode": { "type": "string", "enumValues": ["none", "multiple", "single"] }, "selection": { "type": "Array<any>", "writeback": true }, "dragMode": { "type": "string", "enumValues": ["pan", "select", "off", "user", "zoom"] }, "hiddenCategories": { "type": "Array<string>", "writeback": true }, "highlightedCategories": { "type": "Array<string>", "writeback": true }, "hideAndShowBehavior": { "type": "string", "enumValues": ["none", "withoutRescale", "withRescale"] }, "hoverBehavior": { "type": "string", "enumValues": ["none", "dim"] }, "highlightMatch": { "type": "string", "enumValues": ["all", "any"] }, "legend": { "type": "object", "properties": { "position": { "type": "string", "enumValues": ["auto", "end", "start", "top", "bottom"] }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] }, "maxSize": { "type": "number|string" }, "size": { "type": "number|string" }, "symbolHeight": { "type": "number" }, "symbolWidth": { "type": "number" } } } }, "slots": { "itemTemplate": { "data": {} }, "seriesTemplate": { "data": {} }, "groupTemplate": { "data": {} } }, "events": { "ojItemDrill": {}, "ojSeriesDrill": {}, "ojGroupDrill": {}, "ojViewportChange": {} }, "extension": { "_WRITEBACK_PROPS": ["selection", "hiddenCategories", "highlightedCategories"], "_READ_ONLY_PROPS": [], "_OBSERVED_GLOBAL_PROPS": ["aria-label", "aria-describedby", "aria-labelledby"] } }, { "hideAndShowBehavior": "none", "orientation": "vertical", "hoverBehavior": "none", "drilling": "off", "hiddenCategories": [], "highlightedCategories": [], "highlightMatch": "any", "selection": [], "selectionMode": "none", "stack": "off", "legend": { "rendered": "on", "position": "auto" } }, {
|
|
50
|
+
exports.LineChart = (0, ojvcomponent_1.registerCustomElement)('oj-c-line-chart', LineChartComp, "LineChart", { "properties": { "groupComparator": { "type": "function" }, "stack": { "type": "string", "enumValues": ["off", "on"] }, "drilling": { "type": "string", "enumValues": ["off", "on", "groupsOnly", "seriesOnly"] }, "orientation": { "type": "string", "enumValues": ["horizontal", "vertical"] }, "timeAxisType": { "type": "string", "enumValues": ["enabled", "mixedFrequency", "skipGaps"] }, "yAxis": { "type": "object", "properties": { "dataMax": { "type": "number" }, "dataMin": { "type": "number" }, "max": { "type": "number" }, "min": { "type": "number" }, "majorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "solid", "dotted"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "minorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "solid", "dotted"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "tickLabel": { "type": "object", "properties": { "converter": { "type": "object" }, "rendered": { "type": "string", "enumValues": ["off", "on"] }, "style": { "type": "object" } } }, "viewportMin": { "type": "number" }, "viewportMax": { "type": "number" }, "step": { "type": "number" }, "size": { "type": "number" }, "scale": { "type": "string", "enumValues": ["linear", "log"] }, "title": { "type": "string" }, "titleStyle": { "type": "object" } } }, "xAxis": { "type": "object", "properties": { "majorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "solid", "dotted"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "minorTick": { "type": "object", "properties": { "lineColor": { "type": "string" }, "lineStyle": { "type": "string", "enumValues": ["dashed", "solid", "dotted"] }, "lineWidth": { "type": "number" }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] } } }, "tickLabel": { "type": "object", "properties": { "converter": { "type": "object|Array<object>" }, "rendered": { "type": "string", "enumValues": ["off", "on"] }, "rotation": { "type": "string", "enumValues": ["auto", "none"] }, "style": { "type": "object" } } }, "viewportMin": { "type": "number" }, "viewportMax": { "type": "number" }, "step": { "type": "number" }, "size": { "type": "number" }, "scale": { "type": "string", "enumValues": ["linear", "log"] }, "title": { "type": "string" }, "titleStyle": { "type": "object" } } }, "plotArea": { "type": "object", "properties": { "backgroundColor": { "type": "string" } } }, "zoomAndScroll": { "type": "string", "enumValues": ["off", "live"] }, "valueFormats": { "type": "object", "properties": { "group": { "type": "object", "properties": { "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } }, "series": { "type": "object", "properties": { "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } }, "value": { "type": "object", "properties": { "converter": { "type": "object" }, "tooltipLabel": { "type": "string" }, "tooltipDisplay": { "type": "string", "enumValues": ["auto", "off"] } } } } }, "seriesComparator": { "type": "function" }, "data": { "type": "DataProvider|null" }, "selectionMode": { "type": "string", "enumValues": ["none", "multiple", "single"] }, "selection": { "type": "Array<any>", "writeback": true }, "dragMode": { "type": "string", "enumValues": ["pan", "select", "off", "user", "zoom"] }, "hiddenCategories": { "type": "Array<string>", "writeback": true }, "highlightedCategories": { "type": "Array<string>", "writeback": true }, "hideAndShowBehavior": { "type": "string", "enumValues": ["none", "withoutRescale", "withRescale"] }, "hoverBehavior": { "type": "string", "enumValues": ["none", "dim"] }, "highlightMatch": { "type": "string", "enumValues": ["all", "any"] }, "legend": { "type": "object", "properties": { "position": { "type": "string", "enumValues": ["auto", "end", "start", "top", "bottom"] }, "rendered": { "type": "string", "enumValues": ["auto", "off", "on"] }, "maxSize": { "type": "number|string" }, "size": { "type": "number|string" }, "symbolHeight": { "type": "number" }, "symbolWidth": { "type": "number" } } } }, "slots": { "itemTemplate": { "data": {} }, "seriesTemplate": { "data": {} }, "groupTemplate": { "data": {} } }, "events": { "ojItemDrill": {}, "ojSeriesDrill": {}, "ojGroupDrill": {}, "ojViewportChange": {} }, "extension": { "_WRITEBACK_PROPS": ["selection", "hiddenCategories", "highlightedCategories"], "_READ_ONLY_PROPS": [], "_OBSERVED_GLOBAL_PROPS": ["aria-label", "aria-describedby", "aria-labelledby"] } }, { "hideAndShowBehavior": "none", "orientation": "vertical", "hoverBehavior": "none", "drilling": "off", "hiddenCategories": [], "highlightedCategories": [], "highlightMatch": "any", "selection": [], "selectionMode": "none", "stack": "off", "legend": { "rendered": "on", "position": "auto" } }, {
|
|
50
51
|
'@oracle/oraclejet-preact': translationBundle_1.default
|
|
51
52
|
});
|
|
52
53
|
});
|
|
@@ -13,4 +13,11 @@ export declare class ListItemLayoutWebElementBase extends OjWebElement {
|
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
15
|
getInset(): Promise<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Gets the value of <code>verticalAlignment</code> property.
|
|
18
|
+
* Default is 'middle' which vertically aligns layout content to center of the row.
|
|
19
|
+
* @return The value of <code>verticalAlignment</code> property.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
getVerticalAlignment(): Promise<string>;
|
|
16
23
|
}
|
|
@@ -18,6 +18,15 @@ class ListItemLayoutWebElementBase extends elements_1.OjWebElement {
|
|
|
18
18
|
getInset() {
|
|
19
19
|
return this.getProperty('inset');
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Gets the value of <code>verticalAlignment</code> property.
|
|
23
|
+
* Default is 'middle' which vertically aligns layout content to center of the row.
|
|
24
|
+
* @return The value of <code>verticalAlignment</code> property.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
getVerticalAlignment() {
|
|
28
|
+
return this.getProperty('verticalAlignment');
|
|
29
|
+
}
|
|
21
30
|
}
|
|
22
31
|
exports.ListItemLayoutWebElementBase = ListItemLayoutWebElementBase;
|
|
23
32
|
//# sourceMappingURL=ListItemLayoutWebElementBase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemLayoutWebElementBase.js","sourceRoot":"","sources":["ListItemLayoutWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,4BAA6B,SAAQ,uBAAY;IAC5D;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAS,OAAO,CAAC,CAAC;IAC3C,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"ListItemLayoutWebElementBase.js","sourceRoot":"","sources":["ListItemLayoutWebElementBase.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE;;;;;GAKG;AACH,MAAa,4BAA6B,SAAQ,uBAAY;IAC5D;;;;;OAKG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,WAAW,CAAS,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;OAKG;IACI,oBAAoB;QACzB,OAAO,IAAI,CAAC,WAAW,CAAS,mBAAmB,CAAC,CAAC;IACvD,CAAC;CACF;AApBD,oEAoBC","sourcesContent":["import { OjWebElement } from '@oracle/oraclejet-webdriver/elements';\n\n/**\n * This is the base class for oj-c-list-item-layout 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, ListItemLayoutWebElement.ts.\n */\nexport class ListItemLayoutWebElementBase extends OjWebElement {\n /**\n * Gets the value of <code>inset</code> property.\n * Controls padding around outside of list item layouts.\n * @return The value of <code>inset</code> property.\n *\n */\n public getInset(): Promise<string> {\n return this.getProperty<string>('inset');\n }\n\n /**\n * Gets the value of <code>verticalAlignment</code> property.\n * Default is 'middle' which vertically aligns layout content to center of the row.\n * @return The value of <code>verticalAlignment</code> property.\n *\n */\n public getVerticalAlignment(): Promise<string> {\n return this.getProperty<string>('verticalAlignment');\n }\n}\n"]}
|