@oracle/oraclejet-core-pack 14.0.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/Avatar.json +458 -0
- package/oj-c/Button.json +536 -0
- package/oj-c/Collapsible.json +396 -0
- package/oj-c/FilePicker.json +555 -0
- package/oj-c/InputNumber.json +1321 -0
- package/oj-c/InputPassword.json +1164 -0
- package/oj-c/InputText.json +1411 -0
- package/oj-c/ListItemLayout.json +313 -0
- package/oj-c/MessageToast.json +334 -0
- package/oj-c/MeterBar.json +735 -0
- package/oj-c/MeterCircle.json +797 -0
- package/oj-c/ProgressBar.json +212 -0
- package/oj-c/ProgressCircle.json +223 -0
- package/oj-c/RatingGauge.json +495 -0
- package/oj-c/SelectMultiple.json +1143 -0
- package/oj-c/SelectSingle.json +1450 -0
- package/oj-c/SplitMenuButton.json +495 -0
- package/oj-c/TextArea.json +1283 -0
- package/oj-c/avatar/__webdriver__/AvatarWebElement.js +32 -0
- package/oj-c/avatar/__webdriver__/AvatarWebElementBase.js +87 -0
- package/oj-c/avatar/__webdriver__/index.js +74 -0
- package/oj-c/avatar/avatar-styles.css +10 -0
- package/oj-c/avatar/avatar.js +27 -0
- package/oj-c/avatar/component.json +227 -0
- package/oj-c/avatar/index.js +6 -0
- package/oj-c/avatar.js +6 -0
- package/oj-c/button/__tests__/button.test.js +20 -0
- package/oj-c/button/__webdriver__/ButtonWebElement.js +96 -0
- package/oj-c/button/__webdriver__/ButtonWebElementBase.js +96 -0
- package/oj-c/button/__webdriver__/index.js +74 -0
- package/oj-c/button/button-styles.css +11 -0
- package/oj-c/button/button.js +71 -0
- package/oj-c/button/component.json +243 -0
- package/oj-c/button/index.js +6 -0
- package/oj-c/button.js +6 -0
- package/oj-c/collapsible/__webdriver__/CollapsibleWebElement.js +116 -0
- package/oj-c/collapsible/__webdriver__/CollapsibleWebElementBase.js +60 -0
- package/oj-c/collapsible/__webdriver__/index.js +74 -0
- package/oj-c/collapsible/collapsible-styles.css +11 -0
- package/oj-c/collapsible/collapsible.js +69 -0
- package/oj-c/collapsible/component.json +184 -0
- package/oj-c/collapsible/index.js +6 -0
- package/oj-c/collapsible.js +6 -0
- package/oj-c/component.json +104 -0
- package/oj-c/corepackbundle.js +4049 -0
- package/oj-c/docs/avatar.html +149 -0
- package/oj-c/docs/button.html +149 -0
- package/oj-c/docs/collapsible.html +149 -0
- package/oj-c/docs/file-picker.html +149 -0
- package/oj-c/docs/index.html +168 -0
- package/oj-c/docs/input-number.html +149 -0
- package/oj-c/docs/input-password.html +149 -0
- package/oj-c/docs/input-text.html +149 -0
- package/oj-c/docs/jsDocMd.json +1 -0
- package/oj-c/docs/list-item-layout.html +149 -0
- package/oj-c/docs/message-toast.html +149 -0
- package/oj-c/docs/meter-bar.html +149 -0
- package/oj-c/docs/meter-circle.html +149 -0
- package/oj-c/docs/oj-c.Avatar.html +1778 -0
- package/oj-c/docs/oj-c.Button.html +2065 -0
- package/oj-c/docs/oj-c.Collapsible.html +1990 -0
- package/oj-c/docs/oj-c.FilePicker.html +2380 -0
- package/oj-c/docs/oj-c.InputNumber.html +5850 -0
- package/oj-c/docs/oj-c.InputPassword.html +4891 -0
- package/oj-c/docs/oj-c.InputText.html +5772 -0
- package/oj-c/docs/oj-c.ListItemLayout.html +1549 -0
- package/oj-c/docs/oj-c.MessageToast.html +1574 -0
- package/oj-c/docs/oj-c.MeterBar.html +3193 -0
- package/oj-c/docs/oj-c.MeterCircle.html +3502 -0
- package/oj-c/docs/oj-c.ProgressBar.html +1122 -0
- package/oj-c/docs/oj-c.ProgressCircle.html +1138 -0
- package/oj-c/docs/oj-c.RatingGauge.html +2320 -0
- package/oj-c/docs/oj-c.SelectMultiple.html +4720 -0
- package/oj-c/docs/oj-c.SelectSingle.html +5920 -0
- package/oj-c/docs/oj-c.SplitMenuButton.html +1891 -0
- package/oj-c/docs/oj-c.TextArea.html +5447 -0
- package/oj-c/docs/progress-bar.html +149 -0
- package/oj-c/docs/progress-circle.html +149 -0
- package/oj-c/docs/rating-gauge.html +149 -0
- package/oj-c/docs/scripts/deprecated.js +268 -0
- package/oj-c/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
- package/oj-c/docs/scripts/prettify/lang-css.js +9 -0
- package/oj-c/docs/scripts/prettify/prettify.js +35 -0
- package/oj-c/docs/select-multiple.html +149 -0
- package/oj-c/docs/select-single.html +149 -0
- package/oj-c/docs/split-menu-button.html +149 -0
- package/oj-c/docs/styles/images/bookmark.png +0 -0
- package/oj-c/docs/styles/images/linesarrowup.png +0 -0
- package/oj-c/docs/styles/images/linesarrowup_blue.png +0 -0
- package/oj-c/docs/styles/images/linesarrowup_hov.png +0 -0
- package/oj-c/docs/styles/images/linesarrowup_white.png +0 -0
- package/oj-c/docs/styles/images/oracle_logo_sm.png +0 -0
- package/oj-c/docs/styles/jsdoc-default.css +851 -0
- package/oj-c/docs/styles/prettify-jsdoc.css +111 -0
- package/oj-c/docs/styles/prettify-tomorrow.css +132 -0
- package/oj-c/docs/text-area.html +149 -0
- package/oj-c/editable-value/UNSAFE_useAssistiveText/useAssistiveText.js +57 -0
- package/oj-c/editable-value/UNSAFE_useComponentMessaging/useComponentMessaging.js +80 -0
- package/oj-c/editable-value/UNSAFE_useConverter/useConverter.js +56 -0
- package/oj-c/editable-value/UNSAFE_useConverterLifecycle/useConverterLifecycle.js +26 -0
- package/oj-c/editable-value/UNSAFE_useDeferredValidators/useDeferredValidators.js +22 -0
- package/oj-c/editable-value/UNSAFE_useEditableValue/useEditableValue.js +154 -0
- package/oj-c/editable-value/UNSAFE_useStaleIdentity/useStaleIdentity.js +17 -0
- package/oj-c/editable-value/UNSAFE_useValidationLifecycle/useValidationLifecycle.js +118 -0
- package/oj-c/editable-value/UNSAFE_useValidators/useValidators.js +153 -0
- package/oj-c/editable-value/UNSAFE_useValue/useValue.js +42 -0
- package/oj-c/editable-value/UNSAFE_useValueLifecycle/useValueLifecycle.js +27 -0
- package/oj-c/editable-value/component.json +9 -0
- package/oj-c/editable-value/utils/utils.js +31 -0
- package/oj-c/file-picker/__webdriver__/FilePickerWebElement.js +32 -0
- package/oj-c/file-picker/__webdriver__/FilePickerWebElementBase.js +87 -0
- package/oj-c/file-picker/__webdriver__/index.js +74 -0
- package/oj-c/file-picker/component.json +209 -0
- package/oj-c/file-picker/file-picker-styles.css +17 -0
- package/oj-c/file-picker/file-picker.js +59 -0
- package/oj-c/file-picker/index.js +6 -0
- package/oj-c/file-picker.js +6 -0
- package/oj-c/hooks/UNSAFE_useDataProvider/DataProviderHandler.js +89 -0
- package/oj-c/hooks/UNSAFE_useDataProvider/useDataProvider.js +25 -0
- package/oj-c/hooks/UNSAFE_useDataProvider/utils.js +202 -0
- package/oj-c/hooks/UNSAFE_useListData/__tests__/useListData.test.js +124 -0
- package/oj-c/hooks/UNSAFE_useListData/useListData.js +297 -0
- package/oj-c/hooks/UNSAFE_useTreeData/__tests__/useTreeData.test.js +62 -0
- package/oj-c/hooks/UNSAFE_useTreeData/useTreeData.js +130 -0
- package/oj-c/hooks/component.json +9 -0
- package/oj-c/input-number/__dev__/input-number.doc.mdx +31 -0
- package/oj-c/input-number/__webdriver__/InputNumberWebElement.js +32 -0
- package/oj-c/input-number/__webdriver__/InputNumberWebElementBase.js +339 -0
- package/oj-c/input-number/__webdriver__/index.js +74 -0
- package/oj-c/input-number/component.json +536 -0
- package/oj-c/input-number/index.js +6 -0
- package/oj-c/input-number/input-number-styles.css +13 -0
- package/oj-c/input-number/input-number.js +119 -0
- package/oj-c/input-number/stepBasisUtils.js +76 -0
- package/oj-c/input-number/useImplicitNumberConverter.js +12 -0
- package/oj-c/input-number/useImplicitNumberRangeValidator.js +28 -0
- package/oj-c/input-number/useNumberInputTextPreact.js +153 -0
- package/oj-c/input-number.js +6 -0
- package/oj-c/input-password/__webdriver__/InputPasswordWebElement.js +32 -0
- package/oj-c/input-password/__webdriver__/InputPasswordWebElementBase.js +258 -0
- package/oj-c/input-password/__webdriver__/index.js +74 -0
- package/oj-c/input-password/component.json +488 -0
- package/oj-c/input-password/index.js +6 -0
- package/oj-c/input-password/input-password-styles.css +13 -0
- package/oj-c/input-password/input-password.js +112 -0
- package/oj-c/input-password/useInputPasswordPreact.js +46 -0
- package/oj-c/input-password.js +6 -0
- package/oj-c/input-text/__dev__/input-text.doc.mdx +30 -0
- package/oj-c/input-text/__tests__/input-text.test.js +70 -0
- package/oj-c/input-text/__webdriver__/InputTextWebElement.js +32 -0
- package/oj-c/input-text/__webdriver__/InputTextWebElementBase.js +294 -0
- package/oj-c/input-text/__webdriver__/index.js +74 -0
- package/oj-c/input-text/component.json +580 -0
- package/oj-c/input-text/index.js +6 -0
- package/oj-c/input-text/input-text-styles.css +13 -0
- package/oj-c/input-text/input-text.js +118 -0
- package/oj-c/input-text/useInputTextPreact.js +46 -0
- package/oj-c/input-text.js +6 -0
- package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElement.js +32 -0
- package/oj-c/list-item-layout/__webdriver__/ListItemLayoutWebElementBase.js +42 -0
- package/oj-c/list-item-layout/__webdriver__/index.js +74 -0
- package/oj-c/list-item-layout/component.json +139 -0
- package/oj-c/list-item-layout/index.js +6 -0
- package/oj-c/list-item-layout/list-item-layout-styles.css +12 -0
- package/oj-c/list-item-layout/list-item-layout.js +30 -0
- package/oj-c/list-item-layout.js +6 -0
- package/oj-c/message-toast/__webdriver__/MessageToastWebElement.js +32 -0
- package/oj-c/message-toast/__webdriver__/MessageToastWebElementBase.js +78 -0
- package/oj-c/message-toast/__webdriver__/index.js +74 -0
- package/oj-c/message-toast/component.json +244 -0
- package/oj-c/message-toast/index.js +6 -0
- package/oj-c/message-toast/message-toast-styles.css +8 -0
- package/oj-c/message-toast/message-toast.js +35 -0
- package/oj-c/message-toast.js +6 -0
- package/oj-c/metadata/allComponents.json +5552 -0
- package/oj-c/meter-bar/__webdriver__/MeterBarWebElement.js +32 -0
- package/oj-c/meter-bar/__webdriver__/MeterBarWebElementBase.js +195 -0
- package/oj-c/meter-bar/__webdriver__/index.js +74 -0
- package/oj-c/meter-bar/component.json +246 -0
- package/oj-c/meter-bar/index.js +6 -0
- package/oj-c/meter-bar/meter-bar-styles.css +21 -0
- package/oj-c/meter-bar/meter-bar.js +44 -0
- package/oj-c/meter-bar.js +6 -0
- package/oj-c/meter-circle/__webdriver__/MeterCircleWebElement.js +32 -0
- package/oj-c/meter-circle/__webdriver__/MeterCircleWebElementBase.js +213 -0
- package/oj-c/meter-circle/__webdriver__/index.js +74 -0
- package/oj-c/meter-circle/component.json +289 -0
- package/oj-c/meter-circle/index.js +6 -0
- package/oj-c/meter-circle/meter-circle-styles.css +14 -0
- package/oj-c/meter-circle/meter-circle.js +47 -0
- package/oj-c/meter-circle.js +6 -0
- package/oj-c/min/avatar/avatar-styles.css +10 -0
- package/oj-c/min/avatar.js +2 -0
- package/oj-c/min/avatar.js.map +1 -0
- package/oj-c/min/button/button-styles.css +11 -0
- package/oj-c/min/button.js +2 -0
- package/oj-c/min/button.js.map +1 -0
- package/oj-c/min/collapsible/collapsible-styles.css +11 -0
- package/oj-c/min/collapsible.js +2 -0
- package/oj-c/min/collapsible.js.map +1 -0
- package/oj-c/min/corepackbundle.css +226 -0
- package/oj-c/min/corepackbundle.js +6 -0
- package/oj-c/min/corepackbundle.js.map +1 -0
- package/oj-c/min/editable-value/UNSAFE_useAssistiveText/useAssistiveText.d.ts +32 -0
- package/oj-c/min/editable-value/UNSAFE_useAssistiveText/useAssistiveText.js +57 -0
- package/oj-c/min/editable-value/UNSAFE_useComponentMessaging/useComponentMessaging.d.ts +24 -0
- package/oj-c/min/editable-value/UNSAFE_useComponentMessaging/useComponentMessaging.js +80 -0
- package/oj-c/min/editable-value/UNSAFE_useConverter/useConverter.d.ts +14 -0
- package/oj-c/min/editable-value/UNSAFE_useConverter/useConverter.js +56 -0
- package/oj-c/min/editable-value/UNSAFE_useConverterLifecycle/useConverterLifecycle.d.ts +11 -0
- package/oj-c/min/editable-value/UNSAFE_useConverterLifecycle/useConverterLifecycle.js +26 -0
- package/oj-c/min/editable-value/UNSAFE_useDeferredValidators/useDeferredValidators.d.ts +8 -0
- package/oj-c/min/editable-value/UNSAFE_useDeferredValidators/useDeferredValidators.js +22 -0
- package/oj-c/min/editable-value/UNSAFE_useEditableValue/useEditableValue.d.ts +47 -0
- package/oj-c/min/editable-value/UNSAFE_useEditableValue/useEditableValue.js +154 -0
- package/oj-c/min/editable-value/UNSAFE_useStaleIdentity/useStaleIdentity.d.ts +5 -0
- package/oj-c/min/editable-value/UNSAFE_useStaleIdentity/useStaleIdentity.js +17 -0
- package/oj-c/min/editable-value/UNSAFE_useValidationLifecycle/useValidationLifecycle.d.ts +15 -0
- package/oj-c/min/editable-value/UNSAFE_useValidationLifecycle/useValidationLifecycle.js +118 -0
- package/oj-c/min/editable-value/UNSAFE_useValidators/useValidators.d.ts +35 -0
- package/oj-c/min/editable-value/UNSAFE_useValidators/useValidators.js +153 -0
- package/oj-c/min/editable-value/UNSAFE_useValue/useValue.d.ts +23 -0
- package/oj-c/min/editable-value/UNSAFE_useValue/useValue.js +42 -0
- package/oj-c/min/editable-value/UNSAFE_useValueLifecycle/useValueLifecycle.d.ts +9 -0
- package/oj-c/min/editable-value/UNSAFE_useValueLifecycle/useValueLifecycle.js +27 -0
- package/oj-c/min/editable-value/component.json +9 -0
- package/oj-c/min/editable-value/utils/utils.d.ts +6 -0
- package/oj-c/min/editable-value/utils/utils.js +31 -0
- package/oj-c/min/file-picker/file-picker-styles.css +17 -0
- package/oj-c/min/file-picker.js +2 -0
- package/oj-c/min/file-picker.js.map +1 -0
- package/oj-c/min/hooks/UNSAFE_useDataProvider/DataProviderHandler.d.ts +18 -0
- package/oj-c/min/hooks/UNSAFE_useDataProvider/DataProviderHandler.js +89 -0
- package/oj-c/min/hooks/UNSAFE_useDataProvider/useDataProvider.d.ts +10 -0
- package/oj-c/min/hooks/UNSAFE_useDataProvider/useDataProvider.js +25 -0
- package/oj-c/min/hooks/UNSAFE_useDataProvider/utils.d.ts +3 -0
- package/oj-c/min/hooks/UNSAFE_useDataProvider/utils.js +202 -0
- package/oj-c/min/hooks/UNSAFE_useListData/__tests__/useListData.test.d.ts +1 -0
- package/oj-c/min/hooks/UNSAFE_useListData/__tests__/useListData.test.js +124 -0
- package/oj-c/min/hooks/UNSAFE_useListData/useListData.d.ts +21 -0
- package/oj-c/min/hooks/UNSAFE_useListData/useListData.js +297 -0
- package/oj-c/min/hooks/UNSAFE_useTreeData/__tests__/useTreeData.test.d.ts +1 -0
- package/oj-c/min/hooks/UNSAFE_useTreeData/__tests__/useTreeData.test.js +62 -0
- package/oj-c/min/hooks/UNSAFE_useTreeData/useTreeData.d.ts +27 -0
- package/oj-c/min/hooks/UNSAFE_useTreeData/useTreeData.js +130 -0
- package/oj-c/min/hooks/component.json +9 -0
- package/oj-c/min/input-number/input-number-styles.css +13 -0
- package/oj-c/min/input-number.js +2 -0
- package/oj-c/min/input-number.js.map +1 -0
- package/oj-c/min/input-password/input-password-styles.css +13 -0
- package/oj-c/min/input-password.js +2 -0
- package/oj-c/min/input-password.js.map +1 -0
- package/oj-c/min/input-text/input-text-styles.css +13 -0
- package/oj-c/min/input-text.js +2 -0
- package/oj-c/min/input-text.js.map +1 -0
- package/oj-c/min/list-item-layout/list-item-layout-styles.css +12 -0
- package/oj-c/min/list-item-layout.js +2 -0
- package/oj-c/min/list-item-layout.js.map +1 -0
- package/oj-c/min/message-toast/message-toast-styles.css +8 -0
- package/oj-c/min/message-toast.js +2 -0
- package/oj-c/min/message-toast.js.map +1 -0
- package/oj-c/min/meter-bar/meter-bar-styles.css +21 -0
- package/oj-c/min/meter-bar.js +2 -0
- package/oj-c/min/meter-bar.js.map +1 -0
- package/oj-c/min/meter-circle/meter-circle-styles.css +14 -0
- package/oj-c/min/meter-circle.js +2 -0
- package/oj-c/min/meter-circle.js.map +1 -0
- package/oj-c/min/progress-bar/progress-bar-styles.css +11 -0
- package/oj-c/min/progress-bar.js +2 -0
- package/oj-c/min/progress-bar.js.map +1 -0
- package/oj-c/min/progress-circle/progress-circle-styles.css +14 -0
- package/oj-c/min/progress-circle.js +2 -0
- package/oj-c/min/progress-circle.js.map +1 -0
- package/oj-c/min/rating-gauge/rating-gauge-styles.css +12 -0
- package/oj-c/min/rating-gauge.js +2 -0
- package/oj-c/min/rating-gauge.js.map +1 -0
- package/oj-c/min/select-common/UNSAFE_useDataProviderListeners/index.d.ts +2 -0
- package/oj-c/min/select-common/UNSAFE_useDataProviderListeners/index.js +6 -0
- package/oj-c/min/select-common/UNSAFE_useDataProviderListeners/useDataProviderListeners.d.ts +13 -0
- package/oj-c/min/select-common/UNSAFE_useDataProviderListeners/useDataProviderListeners.js +96 -0
- package/oj-c/min/select-common/UNSAFE_useWrapDataProvider/index.d.ts +1 -0
- package/oj-c/min/select-common/UNSAFE_useWrapDataProvider/index.js +6 -0
- package/oj-c/min/select-common/UNSAFE_useWrapDataProvider/useWrapDataProvider.d.ts +3 -0
- package/oj-c/min/select-common/UNSAFE_useWrapDataProvider/useWrapDataProvider.js +16 -0
- package/oj-c/min/select-common/UNSAFE_useWrapValueState/index.d.ts +1 -0
- package/oj-c/min/select-common/UNSAFE_useWrapValueState/index.js +6 -0
- package/oj-c/min/select-common/UNSAFE_useWrapValueState/useWrapValueState.d.ts +23 -0
- package/oj-c/min/select-common/UNSAFE_useWrapValueState/useWrapValueState.js +23 -0
- package/oj-c/min/select-common/component.json +9 -0
- package/oj-c/min/select-common/utils/utils.d.ts +10 -0
- package/oj-c/min/select-common/utils/utils.js +19 -0
- package/oj-c/min/select-multiple/select-multiple-styles.css +13 -0
- package/oj-c/min/select-multiple.js +3 -0
- package/oj-c/min/select-multiple.js.map +1 -0
- package/oj-c/min/select-single/select-single-styles.css +22 -0
- package/oj-c/min/select-single.js +3 -0
- package/oj-c/min/select-single.js.map +1 -0
- package/oj-c/min/split-menu-button/split-menu-button-styles.css +11 -0
- package/oj-c/min/split-menu-button.js +2 -0
- package/oj-c/min/split-menu-button.js.map +1 -0
- package/oj-c/min/text-area/text-area-styles.css +13 -0
- package/oj-c/min/text-area.js +2 -0
- package/oj-c/min/text-area.js.map +1 -0
- package/oj-c/min/utils/UNSAFE_focusTabUtils/focusUtils.d.ts +2 -0
- package/oj-c/min/utils/UNSAFE_focusTabUtils/focusUtils.js +23 -0
- package/oj-c/min/utils/UNSAFE_focusTabUtils/index.d.ts +1 -0
- package/oj-c/min/utils/UNSAFE_focusTabUtils/index.js +6 -0
- package/oj-c/min/utils/UNSAFE_keyUtils/index.d.ts +1 -0
- package/oj-c/min/utils/UNSAFE_keyUtils/index.js +19 -0
- package/oj-c/min/utils/UNSAFE_keyUtils/keySetUtils.d.ts +4 -0
- package/oj-c/min/utils/UNSAFE_keyUtils/keySetUtils.js +33 -0
- package/oj-c/min/utils/UNSAFE_meterUtils/index.d.ts +1 -0
- package/oj-c/min/utils/UNSAFE_meterUtils/index.js +6 -0
- package/oj-c/min/utils/UNSAFE_meterUtils/meterUtils.d.ts +2 -0
- package/oj-c/min/utils/UNSAFE_meterUtils/meterUtils.js +12 -0
- package/oj-c/min/utils/component.json +9 -0
- package/oj-c/progress-bar/__webdriver__/ProgressBarWebElement.js +32 -0
- package/oj-c/progress-bar/__webdriver__/ProgressBarWebElementBase.js +60 -0
- package/oj-c/progress-bar/__webdriver__/index.js +74 -0
- package/oj-c/progress-bar/component.json +123 -0
- package/oj-c/progress-bar/index.js +6 -0
- package/oj-c/progress-bar/progress-bar-styles.css +11 -0
- package/oj-c/progress-bar/progress-bar.js +26 -0
- package/oj-c/progress-bar.js +6 -0
- package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElement.js +32 -0
- package/oj-c/progress-circle/__webdriver__/ProgressCircleWebElementBase.js +60 -0
- package/oj-c/progress-circle/__webdriver__/index.js +74 -0
- package/oj-c/progress-circle/component.json +128 -0
- package/oj-c/progress-circle/index.js +6 -0
- package/oj-c/progress-circle/progress-circle-styles.css +14 -0
- package/oj-c/progress-circle/progress-circle.js +26 -0
- package/oj-c/progress-circle.js +6 -0
- package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElement.js +32 -0
- package/oj-c/rating-gauge/__webdriver__/RatingGaugeWebElementBase.js +168 -0
- package/oj-c/rating-gauge/__webdriver__/index.js +74 -0
- package/oj-c/rating-gauge/component.json +188 -0
- package/oj-c/rating-gauge/index.js +6 -0
- package/oj-c/rating-gauge/rating-gauge-styles.css +12 -0
- package/oj-c/rating-gauge/rating-gauge.js +44 -0
- package/oj-c/rating-gauge.js +6 -0
- package/oj-c/select-common/UNSAFE_useDataProviderListeners/index.js +6 -0
- package/oj-c/select-common/UNSAFE_useDataProviderListeners/useDataProviderListeners.js +96 -0
- package/oj-c/select-common/UNSAFE_useWrapDataProvider/index.js +6 -0
- package/oj-c/select-common/UNSAFE_useWrapDataProvider/useWrapDataProvider.js +16 -0
- package/oj-c/select-common/UNSAFE_useWrapValueState/index.js +6 -0
- package/oj-c/select-common/UNSAFE_useWrapValueState/useWrapValueState.js +23 -0
- package/oj-c/select-common/component.json +9 -0
- package/oj-c/select-common/utils/utils.js +19 -0
- package/oj-c/select-multiple/__dev__/select-multiple.doc.mdx +30 -0
- package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElement.js +32 -0
- package/oj-c/select-multiple/__webdriver__/SelectMultipleWebElementBase.js +258 -0
- package/oj-c/select-multiple/__webdriver__/index.js +74 -0
- package/oj-c/select-multiple/component.json +475 -0
- package/oj-c/select-multiple/index.js +6 -0
- package/oj-c/select-multiple/select-multiple-styles.css +13 -0
- package/oj-c/select-multiple/select-multiple.js +108 -0
- package/oj-c/select-multiple/useSelectMultiplePreact.js +123 -0
- package/oj-c/select-multiple/useSyncValueAndValueItems.js +125 -0
- package/oj-c/select-multiple/useValueItems.js +22 -0
- package/oj-c/select-multiple.js +6 -0
- package/oj-c/select-single/__dev__/select-single.doc.mdx +30 -0
- package/oj-c/select-single/__webdriver__/SelectSingleWebElement.js +32 -0
- package/oj-c/select-single/__webdriver__/SelectSingleWebElementBase.js +258 -0
- package/oj-c/select-single/__webdriver__/index.js +74 -0
- package/oj-c/select-single/component.json +545 -0
- package/oj-c/select-single/index.js +6 -0
- package/oj-c/select-single/select-single-styles.css +22 -0
- package/oj-c/select-single/select-single.js +108 -0
- package/oj-c/select-single/useSelectSinglePreact.js +157 -0
- package/oj-c/select-single/useSyncValueAndValueItem.js +110 -0
- package/oj-c/select-single/useValueItem.js +18 -0
- package/oj-c/select-single.js +6 -0
- package/oj-c/split-menu-button/__dev__/split-menu-button.doc.mdx +32 -0
- package/oj-c/split-menu-button/__tests__/split-menu-button.test.js +17 -0
- package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElement.js +32 -0
- package/oj-c/split-menu-button/__webdriver__/SplitMenuButtonWebElementBase.js +87 -0
- package/oj-c/split-menu-button/__webdriver__/index.js +74 -0
- package/oj-c/split-menu-button/component.json +205 -0
- package/oj-c/split-menu-button/index.js +6 -0
- package/oj-c/split-menu-button/split-menu-button-styles.css +11 -0
- package/oj-c/split-menu-button/split-menu-button.js +76 -0
- package/oj-c/split-menu-button.js +6 -0
- package/oj-c/text-area/__webdriver__/TextAreaWebElement.js +32 -0
- package/oj-c/text-area/__webdriver__/TextAreaWebElementBase.js +285 -0
- package/oj-c/text-area/__webdriver__/index.js +74 -0
- package/oj-c/text-area/component.json +497 -0
- package/oj-c/text-area/index.js +6 -0
- package/oj-c/text-area/text-area-styles.css +13 -0
- package/oj-c/text-area/text-area.js +138 -0
- package/oj-c/text-area/useTextAreaAutosizePreact.js +44 -0
- package/oj-c/text-area/useTextAreaPreact.js +46 -0
- package/oj-c/text-area.js +6 -0
- package/oj-c/types/avatar/avatar.d.ts +68 -0
- package/oj-c/types/avatar/index.d.ts +2 -0
- package/oj-c/types/button/__tests__/button.test.d.ts +1 -0
- package/oj-c/types/button/button.d.ts +91 -0
- package/oj-c/types/button/index.d.ts +2 -0
- package/oj-c/types/collapsible/collapsible.d.ts +88 -0
- package/oj-c/types/collapsible/index.d.ts +2 -0
- package/oj-c/types/editable-value/UNSAFE_useAssistiveText/useAssistiveText.d.ts +32 -0
- package/oj-c/types/editable-value/UNSAFE_useComponentMessaging/useComponentMessaging.d.ts +24 -0
- package/oj-c/types/editable-value/UNSAFE_useConverter/useConverter.d.ts +14 -0
- package/oj-c/types/editable-value/UNSAFE_useConverterLifecycle/useConverterLifecycle.d.ts +11 -0
- package/oj-c/types/editable-value/UNSAFE_useDeferredValidators/useDeferredValidators.d.ts +8 -0
- package/oj-c/types/editable-value/UNSAFE_useEditableValue/useEditableValue.d.ts +47 -0
- package/oj-c/types/editable-value/UNSAFE_useStaleIdentity/useStaleIdentity.d.ts +5 -0
- package/oj-c/types/editable-value/UNSAFE_useValidationLifecycle/useValidationLifecycle.d.ts +15 -0
- package/oj-c/types/editable-value/UNSAFE_useValidators/useValidators.d.ts +35 -0
- package/oj-c/types/editable-value/UNSAFE_useValue/useValue.d.ts +23 -0
- package/oj-c/types/editable-value/UNSAFE_useValueLifecycle/useValueLifecycle.d.ts +9 -0
- package/oj-c/types/editable-value/utils/utils.d.ts +6 -0
- package/oj-c/types/file-picker/file-picker.d.ts +103 -0
- package/oj-c/types/file-picker/index.d.ts +2 -0
- package/oj-c/types/hooks/UNSAFE_useDataProvider/DataProviderHandler.d.ts +18 -0
- package/oj-c/types/hooks/UNSAFE_useDataProvider/useDataProvider.d.ts +10 -0
- package/oj-c/types/hooks/UNSAFE_useDataProvider/utils.d.ts +3 -0
- package/oj-c/types/hooks/UNSAFE_useListData/__tests__/useListData.test.d.ts +1 -0
- package/oj-c/types/hooks/UNSAFE_useListData/useListData.d.ts +21 -0
- package/oj-c/types/hooks/UNSAFE_useTreeData/__tests__/useTreeData.test.d.ts +1 -0
- package/oj-c/types/hooks/UNSAFE_useTreeData/useTreeData.d.ts +27 -0
- package/oj-c/types/input-number/index.d.ts +2 -0
- package/oj-c/types/input-number/input-number.d.ts +231 -0
- package/oj-c/types/input-number/stepBasisUtils.d.ts +1 -0
- package/oj-c/types/input-number/useImplicitNumberConverter.d.ts +10 -0
- package/oj-c/types/input-number/useImplicitNumberRangeValidator.d.ts +17 -0
- package/oj-c/types/input-number/useNumberInputTextPreact.d.ts +54 -0
- package/oj-c/types/input-password/index.d.ts +2 -0
- package/oj-c/types/input-password/input-password.d.ts +183 -0
- package/oj-c/types/input-password/useInputPasswordPreact.d.ts +40 -0
- package/oj-c/types/input-text/__tests__/input-text.test.d.ts +1 -0
- package/oj-c/types/input-text/index.d.ts +2 -0
- package/oj-c/types/input-text/input-text.d.ts +212 -0
- package/oj-c/types/input-text/useInputTextPreact.d.ts +47 -0
- package/oj-c/types/list-item-layout/index.d.ts +2 -0
- package/oj-c/types/list-item-layout/list-item-layout.d.ts +53 -0
- package/oj-c/types/message-toast/index.d.ts +2 -0
- package/oj-c/types/message-toast/message-toast.d.ts +83 -0
- package/oj-c/types/meter-bar/index.d.ts +2 -0
- package/oj-c/types/meter-bar/meter-bar.d.ts +133 -0
- package/oj-c/types/meter-circle/index.d.ts +2 -0
- package/oj-c/types/meter-circle/meter-circle.d.ts +148 -0
- package/oj-c/types/progress-bar/index.d.ts +2 -0
- package/oj-c/types/progress-bar/progress-bar.d.ts +53 -0
- package/oj-c/types/progress-circle/index.d.ts +2 -0
- package/oj-c/types/progress-circle/progress-circle.d.ts +53 -0
- package/oj-c/types/rating-gauge/index.d.ts +2 -0
- package/oj-c/types/rating-gauge/rating-gauge.d.ts +109 -0
- package/oj-c/types/select-common/UNSAFE_useDataProviderListeners/index.d.ts +2 -0
- package/oj-c/types/select-common/UNSAFE_useDataProviderListeners/useDataProviderListeners.d.ts +13 -0
- package/oj-c/types/select-common/UNSAFE_useWrapDataProvider/index.d.ts +1 -0
- package/oj-c/types/select-common/UNSAFE_useWrapDataProvider/useWrapDataProvider.d.ts +3 -0
- package/oj-c/types/select-common/UNSAFE_useWrapValueState/index.d.ts +1 -0
- package/oj-c/types/select-common/UNSAFE_useWrapValueState/useWrapValueState.d.ts +23 -0
- package/oj-c/types/select-common/utils/utils.d.ts +10 -0
- package/oj-c/types/select-multiple/index.d.ts +2 -0
- package/oj-c/types/select-multiple/select-multiple.d.ts +176 -0
- package/oj-c/types/select-multiple/useSelectMultiplePreact.d.ts +42 -0
- package/oj-c/types/select-multiple/useSyncValueAndValueItems.d.ts +17 -0
- package/oj-c/types/select-multiple/useValueItems.d.ts +6 -0
- package/oj-c/types/select-single/index.d.ts +2 -0
- package/oj-c/types/select-single/select-single.d.ts +186 -0
- package/oj-c/types/select-single/useSelectSinglePreact.d.ts +42 -0
- package/oj-c/types/select-single/useSyncValueAndValueItem.d.ts +17 -0
- package/oj-c/types/select-single/useValueItem.d.ts +5 -0
- package/oj-c/types/split-menu-button/__tests__/split-menu-button.test.d.ts +1 -0
- package/oj-c/types/split-menu-button/index.d.ts +2 -0
- package/oj-c/types/split-menu-button/split-menu-button.d.ts +93 -0
- package/oj-c/types/text-area/index.d.ts +2 -0
- package/oj-c/types/text-area/text-area.d.ts +209 -0
- package/oj-c/types/text-area/useTextAreaAutosizePreact.d.ts +44 -0
- package/oj-c/types/text-area/useTextAreaPreact.d.ts +44 -0
- package/oj-c/types/utils/UNSAFE_focusTabUtils/focusUtils.d.ts +2 -0
- package/oj-c/types/utils/UNSAFE_focusTabUtils/index.d.ts +1 -0
- package/oj-c/types/utils/UNSAFE_keyUtils/index.d.ts +1 -0
- package/oj-c/types/utils/UNSAFE_keyUtils/keySetUtils.d.ts +4 -0
- package/oj-c/types/utils/UNSAFE_meterUtils/index.d.ts +1 -0
- package/oj-c/types/utils/UNSAFE_meterUtils/meterUtils.d.ts +2 -0
- package/oj-c/utils/UNSAFE_focusTabUtils/focusUtils.js +23 -0
- package/oj-c/utils/UNSAFE_focusTabUtils/index.js +6 -0
- package/oj-c/utils/UNSAFE_keyUtils/index.js +19 -0
- package/oj-c/utils/UNSAFE_keyUtils/keySetUtils.js +33 -0
- package/oj-c/utils/UNSAFE_meterUtils/index.js +6 -0
- package/oj-c/utils/UNSAFE_meterUtils/meterUtils.js +12 -0
- package/oj-c/utils/component.json +9 -0
- package/package.json +22 -0
- package/webdriver/docs/.nojekyll +1 -0
- package/webdriver/docs/assets/highlight.css +78 -0
- package/webdriver/docs/assets/icons.css +1043 -0
- package/webdriver/docs/assets/icons.png +0 -0
- package/webdriver/docs/assets/icons@2x.png +0 -0
- package/webdriver/docs/assets/main.js +52 -0
- package/webdriver/docs/assets/search.js +1 -0
- package/webdriver/docs/assets/style.css +1414 -0
- package/webdriver/docs/assets/widgets.png +0 -0
- package/webdriver/docs/assets/widgets@2x.png +0 -0
- package/webdriver/docs/classes/AvatarWebElement.html +117 -0
- package/webdriver/docs/classes/ButtonWebElement.html +163 -0
- package/webdriver/docs/classes/CollapsibleWebElement.html +111 -0
- package/webdriver/docs/classes/FilePickerWebElement.html +117 -0
- package/webdriver/docs/classes/InputNumberWebElement.html +231 -0
- package/webdriver/docs/classes/InputPasswordWebElement.html +195 -0
- package/webdriver/docs/classes/InputTextWebElement.html +211 -0
- package/webdriver/docs/classes/ListItemLayoutWebElement.html +97 -0
- package/webdriver/docs/classes/MessageToastWebElement.html +113 -0
- package/webdriver/docs/classes/MeterBarWebElement.html +153 -0
- package/webdriver/docs/classes/MeterCircleWebElement.html +159 -0
- package/webdriver/docs/classes/ProgressBarWebElement.html +105 -0
- package/webdriver/docs/classes/ProgressCircleWebElement.html +105 -0
- package/webdriver/docs/classes/RatingGaugeWebElement.html +147 -0
- package/webdriver/docs/classes/SelectMultipleWebElement.html +196 -0
- package/webdriver/docs/classes/SelectSingleWebElement.html +196 -0
- package/webdriver/docs/classes/SplitMenuButtonWebElement.html +117 -0
- package/webdriver/docs/classes/TextAreaWebElement.html +207 -0
- package/webdriver/docs/index.html +16 -0
- package/webdriver/docs/modules.html +181 -0
- package/webdriver/index.js +34 -0
- package/webdriver/index.ts +18 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12
|
+
};
|
|
13
|
+
define(["require", "exports", "ojs/ojflattenedtreedataproviderview", "../UNSAFE_useListData/useListData", "preact/hooks"], function (require, exports, ojflattenedtreedataproviderview_1, useListData_1, hooks_1) {
|
|
14
|
+
"use strict";
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.useTreeData = void 0;
|
|
17
|
+
ojflattenedtreedataproviderview_1 = __importDefault(ojflattenedtreedataproviderview_1);
|
|
18
|
+
const defaultOptions = {
|
|
19
|
+
isInitialFetchDeferred: false
|
|
20
|
+
};
|
|
21
|
+
const useTreeData = (data, options = defaultOptions) => {
|
|
22
|
+
const actualExpandedRef = (0, hooks_1.useRef)(options.expanded);
|
|
23
|
+
const currentExpandedRef = (0, hooks_1.useRef)(options.expanded);
|
|
24
|
+
const dataProvider = (0, hooks_1.useMemo)(() => new ojflattenedtreedataproviderview_1.default(data, {
|
|
25
|
+
expanded: options.expanded
|
|
26
|
+
}), [data, options.expanded]);
|
|
27
|
+
const [listDataState, onLoadRange] = (0, useListData_1.useListData)(dataProvider, options);
|
|
28
|
+
const [treeDataState, setTreeDataState] = (0, hooks_1.useState)(() => {
|
|
29
|
+
const initialState = listToTreeData(listDataState, keySetToKeys(actualExpandedRef.current), null);
|
|
30
|
+
return initialState;
|
|
31
|
+
});
|
|
32
|
+
(0, hooks_1.useEffect)(() => {
|
|
33
|
+
const expandedObservable = dataProvider.getExpandedObservable();
|
|
34
|
+
const subscriber = expandedObservable.subscribe((value) => {
|
|
35
|
+
currentExpandedRef.current = value.value;
|
|
36
|
+
value.completionPromise.then(() => {
|
|
37
|
+
actualExpandedRef.current = value.value;
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
return () => {
|
|
41
|
+
subscriber.unsubscribe();
|
|
42
|
+
};
|
|
43
|
+
}, [dataProvider]);
|
|
44
|
+
const toggleExpanded = (0, hooks_1.useCallback)((detail) => {
|
|
45
|
+
const key = detail.key;
|
|
46
|
+
if (!currentExpandedRef.current.has(key)) {
|
|
47
|
+
dataProvider.setExpanded(currentExpandedRef.current.add([key]));
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
dataProvider.setExpanded(currentExpandedRef.current.delete([key]));
|
|
51
|
+
}
|
|
52
|
+
}, [dataProvider]);
|
|
53
|
+
(0, hooks_1.useEffect)(() => {
|
|
54
|
+
if (options.includeClosestParents &&
|
|
55
|
+
listDataState.status === 'success' &&
|
|
56
|
+
listDataState.data.data.length > 0) {
|
|
57
|
+
fetchParents(listDataState, dataProvider).then((resultParent) => {
|
|
58
|
+
setTreeDataState(listToTreeData(listDataState, keySetToKeys(actualExpandedRef.current), resultParent));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
setTreeDataState(listToTreeData(listDataState, keySetToKeys(actualExpandedRef.current), []));
|
|
63
|
+
}
|
|
64
|
+
}, [listDataState, dataProvider, options.includeClosestParents]);
|
|
65
|
+
return [treeDataState, onLoadRange, toggleExpanded];
|
|
66
|
+
};
|
|
67
|
+
exports.useTreeData = useTreeData;
|
|
68
|
+
const fetchParents = (listDataState, dataProvider) => __awaiter(void 0, void 0, void 0, function* () {
|
|
69
|
+
if (listDataState.status === 'success' && listDataState.data.data.length > 0) {
|
|
70
|
+
let parentKey = listDataState.data.data[0].metadata.parentKey;
|
|
71
|
+
const parents = [];
|
|
72
|
+
while (parentKey != null) {
|
|
73
|
+
const fetchByKeyResults = yield dataProvider.fetchByKeys({ keys: new Set([parentKey]) });
|
|
74
|
+
const parent = fetchByKeyResults.results.get(parentKey);
|
|
75
|
+
parentKey = parent === null || parent === void 0 ? void 0 : parent.metadata.parentKey;
|
|
76
|
+
if (parent) {
|
|
77
|
+
parents.push(parent);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return parents;
|
|
81
|
+
}
|
|
82
|
+
return null;
|
|
83
|
+
});
|
|
84
|
+
const keySetToKeys = (keySet) => {
|
|
85
|
+
if (!keySet) {
|
|
86
|
+
return getEmptyExpanded();
|
|
87
|
+
}
|
|
88
|
+
let keys = {};
|
|
89
|
+
if (keySet.isAddAll()) {
|
|
90
|
+
keys = {
|
|
91
|
+
all: true,
|
|
92
|
+
deletedKeys: new Set(keySet.deletedValues().values())
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
else if (!keySet.isAddAll()) {
|
|
96
|
+
keys = { all: false, keys: new Set(keySet.values().values()) };
|
|
97
|
+
}
|
|
98
|
+
return keys;
|
|
99
|
+
};
|
|
100
|
+
const getEmptyExpanded = () => {
|
|
101
|
+
return { all: false, keys: new Set() };
|
|
102
|
+
};
|
|
103
|
+
const listToTreeData = (listData, expanded, parents) => {
|
|
104
|
+
if (!expanded) {
|
|
105
|
+
expanded = getEmptyExpanded();
|
|
106
|
+
}
|
|
107
|
+
const treeDataState = {
|
|
108
|
+
status: listData.status
|
|
109
|
+
};
|
|
110
|
+
if (treeDataState.status === 'loading' && listData.status === 'loading') {
|
|
111
|
+
treeDataState.data = listData.data;
|
|
112
|
+
}
|
|
113
|
+
else if (treeDataState.status === 'error' && listData.status === 'error') {
|
|
114
|
+
treeDataState.error = listData.error;
|
|
115
|
+
}
|
|
116
|
+
else if (treeDataState.status === 'success' && listData.status === 'success') {
|
|
117
|
+
const flattenedDataState = Object.assign({}, listData.data);
|
|
118
|
+
flattenedDataState.expanded = expanded;
|
|
119
|
+
if (parents !== null) {
|
|
120
|
+
flattenedDataState.closestParents = [];
|
|
121
|
+
parents.forEach((item) => {
|
|
122
|
+
const dataState = { data: item.data, metadata: item.metadata };
|
|
123
|
+
flattenedDataState.closestParents.push(dataState);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
treeDataState.data = flattenedDataState;
|
|
127
|
+
}
|
|
128
|
+
return treeDataState;
|
|
129
|
+
};
|
|
130
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import 'oj-c/input-number';
|
|
3
|
+
|
|
4
|
+
<Meta title="InputNumber" component="oj-c-input-number" />
|
|
5
|
+
|
|
6
|
+
# Input Number
|
|
7
|
+
|
|
8
|
+
The `oj-c-input-number` component enhances a browser input type="text" element by formatting numbers
|
|
9
|
+
and allowing you to step up and down.
|
|
10
|
+
|
|
11
|
+
## Import
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
//To typecheck the element APIs, import as below.
|
|
15
|
+
import { CInputNumberElement } from 'oj-c/input-number';
|
|
16
|
+
|
|
17
|
+
//For the transpiled javascript to load the element's module, import as below
|
|
18
|
+
import 'oj-c/input-number';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
Here's how to implement a basic `oj-c-input-number`.
|
|
24
|
+
|
|
25
|
+
<Canvas>
|
|
26
|
+
<Story id="form-inputnumber--basic" name="Basic" height={150} />
|
|
27
|
+
</Canvas>
|
|
28
|
+
|
|
29
|
+
## Props
|
|
30
|
+
|
|
31
|
+
<ArgsTable of="oj-c-input-number" />
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
exports.__esModule = true;
|
|
18
|
+
exports.InputNumberWebElement = void 0;
|
|
19
|
+
var InputNumberWebElementBase_1 = require("./InputNumberWebElementBase");
|
|
20
|
+
/**
|
|
21
|
+
* The component WebElement for [oj-c-input-number](../../../oj-c/docs/oj.InputNumber.html).
|
|
22
|
+
* Do not instantiate this class directly, instead, use
|
|
23
|
+
* [findInputNumber](../modules.html#findInputNumber).
|
|
24
|
+
*/
|
|
25
|
+
var InputNumberWebElement = /** @class */ (function (_super) {
|
|
26
|
+
__extends(InputNumberWebElement, _super);
|
|
27
|
+
function InputNumberWebElement() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
return InputNumberWebElement;
|
|
31
|
+
}(InputNumberWebElementBase_1.InputNumberWebElementBase));
|
|
32
|
+
exports.InputNumberWebElement = InputNumberWebElement;
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
exports.__esModule = true;
|
|
18
|
+
exports.InputNumberWebElementBase = void 0;
|
|
19
|
+
var elements_1 = require("@oracle/oraclejet-webdriver/elements");
|
|
20
|
+
/**
|
|
21
|
+
* This is the base class for oj-c-input-number WebElement, and is generated from the
|
|
22
|
+
* component's metadata. Do not modify these contents since they'll be replaced
|
|
23
|
+
* during the next generation.
|
|
24
|
+
* Put overrides into the WebElements's subclass, InputNumberWebElement.ts.
|
|
25
|
+
*/
|
|
26
|
+
var InputNumberWebElementBase = /** @class */ (function (_super) {
|
|
27
|
+
__extends(InputNumberWebElementBase, _super);
|
|
28
|
+
function InputNumberWebElementBase() {
|
|
29
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Gets the value of <code>autocomplete</code> property.
|
|
33
|
+
* Dictates component's autocomplete state
|
|
34
|
+
* @return The value of <code>autocomplete</code> property.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
InputNumberWebElementBase.prototype.getAutocomplete = function () {
|
|
38
|
+
return this.getProperty('autocomplete');
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Gets the value of <code>containerReadonly</code> property.
|
|
42
|
+
* Specifies whether an ancestor container, like oj-form-layout, is readonly.
|
|
43
|
+
* @return The value of <code>containerReadonly</code> property.
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
InputNumberWebElementBase.prototype.getContainerReadonly = function () {
|
|
47
|
+
return this.getProperty('containerReadonly');
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Gets the value of <code>converter</code> property.
|
|
51
|
+
* Specifies the converter instance.
|
|
52
|
+
* @return The value of <code>converter</code> property.
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
InputNumberWebElementBase.prototype.getConverter = function () {
|
|
56
|
+
return this.getProperty('converter');
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Gets the value of <code>disabled</code> property.
|
|
60
|
+
* Specifies whether the component is disabled.
|
|
61
|
+
* @return The value of <code>disabled</code> property.
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
InputNumberWebElementBase.prototype.getDisabled = function () {
|
|
65
|
+
return this.getProperty('disabled');
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Gets the value of <code>displayOptions</code> property.
|
|
69
|
+
* Display options for auxiliary content that determines whether or not it should be displayed.
|
|
70
|
+
* @return The value of <code>displayOptions</code> property.
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
InputNumberWebElementBase.prototype.getDisplayOptions = function () {
|
|
74
|
+
return this.getProperty('displayOptions');
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Gets the value of <code>help</code> property.
|
|
78
|
+
* Form component help information.
|
|
79
|
+
* @return The value of <code>help</code> property.
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
InputNumberWebElementBase.prototype.getHelp = function () {
|
|
83
|
+
return this.getProperty('help');
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Gets the value of <code>helpHints</code> property.
|
|
87
|
+
* The helpHints object contains a definition property and a source property.
|
|
88
|
+
* @return The value of <code>helpHints</code> property.
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
InputNumberWebElementBase.prototype.getHelpHints = function () {
|
|
92
|
+
return this.getProperty('helpHints');
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Gets the value of <code>inputPrefix</code> property.
|
|
96
|
+
* The text before the input text.
|
|
97
|
+
* @return The value of <code>inputPrefix</code> property.
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
InputNumberWebElementBase.prototype.getInputPrefix = function () {
|
|
101
|
+
return this.getProperty('inputPrefix');
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Gets the value of <code>inputSuffix</code> property.
|
|
105
|
+
* The text after the input text.
|
|
106
|
+
* @return The value of <code>inputSuffix</code> property.
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
InputNumberWebElementBase.prototype.getInputSuffix = function () {
|
|
110
|
+
return this.getProperty('inputSuffix');
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Gets the value of <code>labelEdge</code> property.
|
|
114
|
+
* Specifies how the label is positioned for the component
|
|
115
|
+
* @return The value of <code>labelEdge</code> property.
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
InputNumberWebElementBase.prototype.getLabelEdge = function () {
|
|
119
|
+
return this.getProperty('labelEdge');
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Gets the value of <code>labelHint</code> property.
|
|
123
|
+
* Represents a hint for rendering a label on the component.
|
|
124
|
+
* @return The value of <code>labelHint</code> property.
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
InputNumberWebElementBase.prototype.getLabelHint = function () {
|
|
128
|
+
return this.getProperty('labelHint');
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Gets the value of <code>labelStartWidth</code> property.
|
|
132
|
+
* The width of the label when labelEdge is 'start'.
|
|
133
|
+
* @return The value of <code>labelStartWidth</code> property.
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
136
|
+
InputNumberWebElementBase.prototype.getLabelStartWidth = function () {
|
|
137
|
+
return this.getProperty('labelStartWidth');
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Gets the value of <code>labelWrapping</code> property.
|
|
141
|
+
* Should the labels wrap or truncate when there is not enough available space.
|
|
142
|
+
* @return The value of <code>labelWrapping</code> property.
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
145
|
+
InputNumberWebElementBase.prototype.getLabelWrapping = function () {
|
|
146
|
+
return this.getProperty('labelWrapping');
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Gets the value of <code>max</code> property.
|
|
150
|
+
* The maximum allowed value
|
|
151
|
+
* @return The value of <code>max</code> property.
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
InputNumberWebElementBase.prototype.getMax = function () {
|
|
155
|
+
return this.getProperty('max');
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Gets the value of <code>min</code> property.
|
|
159
|
+
* The maximum allowed value
|
|
160
|
+
* @return The value of <code>min</code> property.
|
|
161
|
+
*
|
|
162
|
+
*/
|
|
163
|
+
InputNumberWebElementBase.prototype.getMin = function () {
|
|
164
|
+
return this.getProperty('min');
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Sets the value of <code>messagesCustom</code> property.
|
|
168
|
+
* List of custom component messages
|
|
169
|
+
* @param messagesCustom The value to set for <code>messagesCustom</code>
|
|
170
|
+
*
|
|
171
|
+
*/
|
|
172
|
+
InputNumberWebElementBase.prototype.changeMessagesCustom = function (messagesCustom) {
|
|
173
|
+
return this.setProperty('messagesCustom', messagesCustom);
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Gets the value of <code>messagesCustom</code> property.
|
|
177
|
+
* List of custom component messages
|
|
178
|
+
* @return The value of <code>messagesCustom</code> property.
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
181
|
+
InputNumberWebElementBase.prototype.getMessagesCustom = function () {
|
|
182
|
+
return this.getProperty('messagesCustom');
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Gets the value of <code>numberRangeExactMessageDetail</code> property.
|
|
186
|
+
* Overrides the default NumberRangeValidator's exact message detail.
|
|
187
|
+
* @return The value of <code>numberRangeExactMessageDetail</code> property.
|
|
188
|
+
*
|
|
189
|
+
*/
|
|
190
|
+
InputNumberWebElementBase.prototype.getNumberRangeExactMessageDetail = function () {
|
|
191
|
+
return this.getProperty('numberRangeExactMessageDetail');
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Gets the value of <code>numberRangeOverflowMessageDetail</code> property.
|
|
195
|
+
* Overrides the default NumberRangeValidator's exact message detail.
|
|
196
|
+
* @return The value of <code>numberRangeOverflowMessageDetail</code> property.
|
|
197
|
+
*
|
|
198
|
+
*/
|
|
199
|
+
InputNumberWebElementBase.prototype.getNumberRangeOverflowMessageDetail = function () {
|
|
200
|
+
return this.getProperty('numberRangeOverflowMessageDetail');
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Gets the value of <code>numberRangeUnderflowMessageDetail</code> property.
|
|
204
|
+
* Overrides the default NumberRangeValidator's exact message detail.
|
|
205
|
+
* @return The value of <code>numberRangeUnderflowMessageDetail</code> property.
|
|
206
|
+
*
|
|
207
|
+
*/
|
|
208
|
+
InputNumberWebElementBase.prototype.getNumberRangeUnderflowMessageDetail = function () {
|
|
209
|
+
return this.getProperty('numberRangeUnderflowMessageDetail');
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* Gets the value of <code>placeholder</code> property.
|
|
213
|
+
* The placeholder text to set on the element.
|
|
214
|
+
* @return The value of <code>placeholder</code> property.
|
|
215
|
+
*
|
|
216
|
+
*/
|
|
217
|
+
InputNumberWebElementBase.prototype.getPlaceholder = function () {
|
|
218
|
+
return this.getProperty('placeholder');
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Gets the value of <code>readonly</code> property.
|
|
222
|
+
* Whether the component is readonly
|
|
223
|
+
* @return The value of <code>readonly</code> property.
|
|
224
|
+
*
|
|
225
|
+
*/
|
|
226
|
+
InputNumberWebElementBase.prototype.getReadonly = function () {
|
|
227
|
+
return this.getProperty('readonly');
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Gets the value of <code>required</code> property.
|
|
231
|
+
* Specifies whether or not the component is required.
|
|
232
|
+
* @return The value of <code>required</code> property.
|
|
233
|
+
*
|
|
234
|
+
*/
|
|
235
|
+
InputNumberWebElementBase.prototype.getRequired = function () {
|
|
236
|
+
return this.getProperty('required');
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* Gets the value of <code>requiredMessageDetail</code> property.
|
|
240
|
+
* Overrides the default Required error message.
|
|
241
|
+
* @return The value of <code>requiredMessageDetail</code> property.
|
|
242
|
+
*
|
|
243
|
+
*/
|
|
244
|
+
InputNumberWebElementBase.prototype.getRequiredMessageDetail = function () {
|
|
245
|
+
return this.getProperty('requiredMessageDetail');
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Gets the value of <code>step</code> property.
|
|
249
|
+
* Specifies the amount to increase or decrease the value when moving in step increments. If 0, no step functionality.
|
|
250
|
+
* @return The value of <code>step</code> property.
|
|
251
|
+
*
|
|
252
|
+
*/
|
|
253
|
+
InputNumberWebElementBase.prototype.getStep = function () {
|
|
254
|
+
return this.getProperty('step');
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* Gets the value of <code>textAlign</code> property.
|
|
258
|
+
* Specifies how the text is aligned within the text field
|
|
259
|
+
* @return The value of <code>textAlign</code> property.
|
|
260
|
+
*
|
|
261
|
+
*/
|
|
262
|
+
InputNumberWebElementBase.prototype.getTextAlign = function () {
|
|
263
|
+
return this.getProperty('textAlign');
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* Gets the value of <code>userAssistanceDensity</code> property.
|
|
267
|
+
* Specifies the density of the form component's user assistance presentation.
|
|
268
|
+
* @return The value of <code>userAssistanceDensity</code> property.
|
|
269
|
+
*
|
|
270
|
+
*/
|
|
271
|
+
InputNumberWebElementBase.prototype.getUserAssistanceDensity = function () {
|
|
272
|
+
return this.getProperty('userAssistanceDensity');
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Gets the value of <code>validators</code> property.
|
|
276
|
+
* Specifies the validators for the component.
|
|
277
|
+
* @return The value of <code>validators</code> property.
|
|
278
|
+
*
|
|
279
|
+
*/
|
|
280
|
+
InputNumberWebElementBase.prototype.getValidators = function () {
|
|
281
|
+
return this.getProperty('validators');
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Sets the value of <code>value</code> property.
|
|
285
|
+
* The value of the component.
|
|
286
|
+
* @param value The value to set for <code>value</code>
|
|
287
|
+
*
|
|
288
|
+
*/
|
|
289
|
+
InputNumberWebElementBase.prototype.changeValue = function (value) {
|
|
290
|
+
return this.setProperty('value', value);
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* Gets the value of <code>value</code> property.
|
|
294
|
+
* The value of the component.
|
|
295
|
+
* @return The value of <code>value</code> property.
|
|
296
|
+
*
|
|
297
|
+
*/
|
|
298
|
+
InputNumberWebElementBase.prototype.getValue = function () {
|
|
299
|
+
return this.getProperty('value');
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* Gets the value of <code>virtualKeyboard</code> property.
|
|
303
|
+
* The type of virtual keyboard to display for entering a value on mobile browsers
|
|
304
|
+
* @return The value of <code>virtualKeyboard</code> property.
|
|
305
|
+
*
|
|
306
|
+
*/
|
|
307
|
+
InputNumberWebElementBase.prototype.getVirtualKeyboard = function () {
|
|
308
|
+
return this.getProperty('virtualKeyboard');
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* Gets the value of <code>rawValue</code> property.
|
|
312
|
+
* Specifies how the raw value of the component
|
|
313
|
+
* @return The value of <code>rawValue</code> property.
|
|
314
|
+
*
|
|
315
|
+
*/
|
|
316
|
+
InputNumberWebElementBase.prototype.getRawValue = function () {
|
|
317
|
+
return this.getProperty('rawValue');
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* Gets the value of <code>transientValue</code> property.
|
|
321
|
+
* Specifies the transient value of the component
|
|
322
|
+
* @return The value of <code>transientValue</code> property.
|
|
323
|
+
*
|
|
324
|
+
*/
|
|
325
|
+
InputNumberWebElementBase.prototype.getTransientValue = function () {
|
|
326
|
+
return this.getProperty('transientValue');
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* Gets the value of <code>valid</code> property.
|
|
330
|
+
* Specifies how the valid state of the component
|
|
331
|
+
* @return The value of <code>valid</code> property.
|
|
332
|
+
*
|
|
333
|
+
*/
|
|
334
|
+
InputNumberWebElementBase.prototype.getValid = function () {
|
|
335
|
+
return this.getProperty('valid');
|
|
336
|
+
};
|
|
337
|
+
return InputNumberWebElementBase;
|
|
338
|
+
}(elements_1.OjWebElement));
|
|
339
|
+
exports.InputNumberWebElementBase = InputNumberWebElementBase;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.__esModule = true;
|
|
39
|
+
exports.findInputNumber = exports.InputNumberWebElement = void 0;
|
|
40
|
+
var oraclejet_webdriver_1 = require("@oracle/oraclejet-webdriver");
|
|
41
|
+
var InputNumberWebElement_1 = require("./InputNumberWebElement");
|
|
42
|
+
exports.InputNumberWebElement = InputNumberWebElement_1.InputNumberWebElement;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieve an instance of [[InputNumberWebElement]].
|
|
45
|
+
* @example
|
|
46
|
+
* ```javascript
|
|
47
|
+
* import { findInputNumber } from '@oracle/oraclejet-core-pack/webdriver';
|
|
48
|
+
* const el = await findInputNumber(driver, By.id('my-oj-c-input-number'));
|
|
49
|
+
* ```
|
|
50
|
+
* @param driver A WebDriver/WebElement instance from where the element will be
|
|
51
|
+
* searched. If WebDriver is passed, the element will be searched globally in the
|
|
52
|
+
* document. If WebElement is passed, the search will be relative to this element.
|
|
53
|
+
* @param by The locator with which to find the element
|
|
54
|
+
*/
|
|
55
|
+
function findInputNumber(driver, by) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
57
|
+
var webEl, tagName;
|
|
58
|
+
return __generator(this, function (_a) {
|
|
59
|
+
switch (_a.label) {
|
|
60
|
+
case 0: return [4 /*yield*/, driver.findElement(by)];
|
|
61
|
+
case 1:
|
|
62
|
+
webEl = _a.sent();
|
|
63
|
+
if (!!(webEl instanceof InputNumberWebElement_1.InputNumberWebElement)) return [3 /*break*/, 3];
|
|
64
|
+
return [4 /*yield*/, webEl.getTagName()];
|
|
65
|
+
case 2:
|
|
66
|
+
tagName = _a.sent();
|
|
67
|
+
throw Error("findInputNumber(".concat(by, ") created ").concat(webEl.constructor.name, " for <").concat(tagName, ">, but expected ").concat(InputNumberWebElement_1.InputNumberWebElement.name));
|
|
68
|
+
case 3: return [2 /*return*/, webEl];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
exports.findInputNumber = findInputNumber;
|
|
74
|
+
(0, oraclejet_webdriver_1.register)('oj-c-input-number', InputNumberWebElement_1.InputNumberWebElement);
|