@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,54 @@
|
|
|
1
|
+
import { ComponentProps } from 'preact';
|
|
2
|
+
import { ValueUpdateDetail } from '@oracle/oraclejet-preact/utils/UNSAFE_valueUpdateDetail';
|
|
3
|
+
import type { InputNumber } from 'oj-c/input-number';
|
|
4
|
+
declare type InputNumberProps = ComponentProps<typeof InputNumber>;
|
|
5
|
+
import { StepEvent } from '@oracle/oraclejet-preact/UNSAFE_NumberInputText/useSteppers';
|
|
6
|
+
export declare function useNumberInputTextPreact({ autocomplete, autofocus, converter: propConverter, disabled, displayOptions, inputPrefix, inputSuffix, labelEdge, labelHint, labelStartWidth, max, messagesCustom, min, numberRangeExactMessageDetail, numberRangeOverflowMessageDetail, numberRangeUnderflowMessageDetail, placeholder, readonly, required, requiredMessageDetail, step, textAlign, userAssistanceDensity, validators, value: propValue, virtualKeyboard, onMessagesCustomChanged, onRawValueChanged, onTransientValueChanged, onValidChanged, onValueChanged, ...otherProps }: InputNumberProps, addBusyState?: (desc?: string) => () => void): {
|
|
7
|
+
value: number | null;
|
|
8
|
+
setValue: import("preact/hooks").StateUpdater<number | null>;
|
|
9
|
+
methods: {
|
|
10
|
+
reset: () => void;
|
|
11
|
+
validate: () => Promise<"valid" | "invalid">;
|
|
12
|
+
showMessages: () => void;
|
|
13
|
+
};
|
|
14
|
+
inputNumberProps: Omit<{
|
|
15
|
+
hasSteppers?: boolean | undefined;
|
|
16
|
+
isStepDownDisabled?: boolean | undefined;
|
|
17
|
+
isStepUpDisabled?: boolean | undefined;
|
|
18
|
+
onSpin?: ((event: StepEvent) => void) | undefined;
|
|
19
|
+
onSpinComplete?: (() => void) | undefined;
|
|
20
|
+
onStep?: ((event: StepEvent) => void) | undefined;
|
|
21
|
+
} & {
|
|
22
|
+
ariaDescribedBy?: string | undefined;
|
|
23
|
+
ariaValueMax?: number | undefined;
|
|
24
|
+
ariaValueMin?: number | undefined;
|
|
25
|
+
ariaValueNow?: number | undefined;
|
|
26
|
+
ariaValueText?: string | undefined;
|
|
27
|
+
assistiveText?: string | undefined;
|
|
28
|
+
autoComplete?: string | undefined;
|
|
29
|
+
autoFocus?: boolean | undefined;
|
|
30
|
+
helpSourceLink?: string | undefined;
|
|
31
|
+
helpSourceText?: string | undefined;
|
|
32
|
+
isDisabled?: boolean | undefined;
|
|
33
|
+
isReadonly?: boolean | undefined;
|
|
34
|
+
isRequired?: boolean | undefined;
|
|
35
|
+
isRequiredShown?: boolean | undefined;
|
|
36
|
+
label: string;
|
|
37
|
+
labelEdge?: "start" | "none" | "top" | "inside" | undefined;
|
|
38
|
+
labelStartWidth?: import("@oracle/oraclejet-preact/utils/UNSAFE_size").Size | undefined;
|
|
39
|
+
messages?: import("@oracle/oraclejet-preact/UNSAFE_ComponentMessage").ComponentMessageItem[] | undefined;
|
|
40
|
+
placeholder?: string | undefined;
|
|
41
|
+
prefix?: string | undefined;
|
|
42
|
+
suffix?: string | undefined;
|
|
43
|
+
textAlign?: "start" | "right" | "end" | undefined;
|
|
44
|
+
userAssistanceDensity?: import("@oracle/oraclejet-preact/UNSAFE_UserAssistance").UserAssistanceDensityType | undefined;
|
|
45
|
+
value?: string | undefined;
|
|
46
|
+
variant?: "default" | "embedded" | undefined;
|
|
47
|
+
virtualKeyboard?: "number" | "text" | "auto" | undefined;
|
|
48
|
+
onCommit?: ((detail: ValueUpdateDetail<string>) => void) | undefined;
|
|
49
|
+
onInput: ((detail: ValueUpdateDetail<string>) => void) | undefined;
|
|
50
|
+
}, "ref"> & {
|
|
51
|
+
ref?: import("preact").Ref<import("@oracle/oraclejet-preact/hooks/UNSAFE_useFocusableTextField").FocusableHandle> | undefined;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/// <reference types="ojvalidator-async" />
|
|
2
|
+
/// <reference types="ojvalidator" />
|
|
3
|
+
import { JetElement, JetSettableProperties, JetElementCustomEventStrict, JetSetPropertyType } from 'ojs/index';
|
|
4
|
+
import { GlobalProps } from 'ojs/ojvcomponent';
|
|
5
|
+
import 'ojs/oj-jsx-interfaces';
|
|
6
|
+
import { InputPassword as PreactInputPassword } from '@oracle/oraclejet-preact/UNSAFE_InputPassword';
|
|
7
|
+
import { DisplayOptions, Help, HelpHints } from 'oj-c/editable-value/UNSAFE_useAssistiveText/useAssistiveText';
|
|
8
|
+
import Validator from 'ojs/ojvalidator';
|
|
9
|
+
import AsyncValidator from 'ojs/ojvalidator-async';
|
|
10
|
+
import { ExtendGlobalProps, ObservedGlobalProps, PropertyChanged, ReadOnlyPropertyChanged } from 'ojs/ojvcomponent';
|
|
11
|
+
import { Component, ComponentProps } from 'preact';
|
|
12
|
+
import 'css!oj-c/input-password/input-password-styles.css';
|
|
13
|
+
declare type PreactInputPasswordProps = ComponentProps<typeof PreactInputPassword>;
|
|
14
|
+
declare type ValidState = 'valid' | 'pending' | 'invalidHidden' | 'invalidShown';
|
|
15
|
+
declare type Props = ObservedGlobalProps<'aria-describedby' | 'autofocus' | 'id'> & {
|
|
16
|
+
autocomplete?: 'on' | 'off' | string;
|
|
17
|
+
clearIcon?: 'always' | 'never' | 'conditional';
|
|
18
|
+
containerReadonly?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
displayOptions?: DisplayOptions;
|
|
21
|
+
help?: Help;
|
|
22
|
+
helpHints?: HelpHints;
|
|
23
|
+
labelEdge?: PreactInputPasswordProps['labelEdge'];
|
|
24
|
+
labelHint: string;
|
|
25
|
+
labelStartWidth?: string;
|
|
26
|
+
labelWrapping?: 'truncate' | 'wrap';
|
|
27
|
+
maskIcon?: 'visible' | 'hidden';
|
|
28
|
+
messagesCustom?: PreactInputPasswordProps['messages'];
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
readonly?: boolean;
|
|
31
|
+
required?: boolean;
|
|
32
|
+
requiredMessageDetail?: string;
|
|
33
|
+
textAlign?: PreactInputPasswordProps['textAlign'];
|
|
34
|
+
userAssistanceDensity?: PreactInputPasswordProps['userAssistanceDensity'];
|
|
35
|
+
validators?: (AsyncValidator<string> | Validator<string>)[] | null;
|
|
36
|
+
value?: string | null;
|
|
37
|
+
onMessagesCustomChanged?: PropertyChanged<PreactInputPasswordProps['messages']>;
|
|
38
|
+
onRawValueChanged?: ReadOnlyPropertyChanged<string>;
|
|
39
|
+
onValidChanged?: ReadOnlyPropertyChanged<ValidState>;
|
|
40
|
+
onValueChanged?: PropertyChanged<string>;
|
|
41
|
+
};
|
|
42
|
+
export declare class InputPassword extends Component<ExtendGlobalProps<Props>> {
|
|
43
|
+
static defaultProps: Partial<Props>;
|
|
44
|
+
private busyContextRef;
|
|
45
|
+
private inputPasswordRef;
|
|
46
|
+
private rootRef;
|
|
47
|
+
componentDidMount(): void;
|
|
48
|
+
render(props: ExtendGlobalProps<Props>): import("preact").JSX.Element;
|
|
49
|
+
componentWillUnmount(): void;
|
|
50
|
+
reset(): void;
|
|
51
|
+
showMessages(): void;
|
|
52
|
+
validate(): Promise<'valid' | 'invalid'>;
|
|
53
|
+
blur(): void;
|
|
54
|
+
focus(): void;
|
|
55
|
+
}
|
|
56
|
+
export declare type InputPasswordProps = Props;
|
|
57
|
+
export {};
|
|
58
|
+
export interface CInputPasswordElement extends JetElement<CInputPasswordElementSettableProperties>, CInputPasswordElementSettableProperties {
|
|
59
|
+
readonly rawValue?: Parameters<Required<Props>['onRawValueChanged']>[0];
|
|
60
|
+
readonly valid?: Parameters<Required<Props>['onValidChanged']>[0];
|
|
61
|
+
addEventListener<T extends keyof CInputPasswordElementEventMap>(type: T, listener: (this: HTMLElement, ev: CInputPasswordElementEventMap[T]) => any, options?: (boolean | AddEventListenerOptions)): void;
|
|
62
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: (boolean | AddEventListenerOptions)): void;
|
|
63
|
+
getProperty<T extends keyof CInputPasswordElementSettableProperties>(property: T): CInputPasswordElement[T];
|
|
64
|
+
getProperty(property: string): any;
|
|
65
|
+
setProperty<T extends keyof CInputPasswordElementSettableProperties>(property: T, value: CInputPasswordElementSettableProperties[T]): void;
|
|
66
|
+
setProperty<T extends string>(property: T, value: JetSetPropertyType<T, CInputPasswordElementSettableProperties>): void;
|
|
67
|
+
setProperties(properties: CInputPasswordElementSettablePropertiesLenient): void;
|
|
68
|
+
blur: InputPassword['blur'];
|
|
69
|
+
focus: InputPassword['focus'];
|
|
70
|
+
reset: InputPassword['reset'];
|
|
71
|
+
showMessages: InputPassword['showMessages'];
|
|
72
|
+
validate: InputPassword['validate'];
|
|
73
|
+
}
|
|
74
|
+
export namespace CInputPasswordElement {
|
|
75
|
+
type autocompleteChanged = JetElementCustomEventStrict<CInputPasswordElement['autocomplete']>;
|
|
76
|
+
type clearIconChanged = JetElementCustomEventStrict<CInputPasswordElement['clearIcon']>;
|
|
77
|
+
type containerReadonlyChanged = JetElementCustomEventStrict<CInputPasswordElement['containerReadonly']>;
|
|
78
|
+
type disabledChanged = JetElementCustomEventStrict<CInputPasswordElement['disabled']>;
|
|
79
|
+
type displayOptionsChanged = JetElementCustomEventStrict<CInputPasswordElement['displayOptions']>;
|
|
80
|
+
type helpChanged = JetElementCustomEventStrict<CInputPasswordElement['help']>;
|
|
81
|
+
type helpHintsChanged = JetElementCustomEventStrict<CInputPasswordElement['helpHints']>;
|
|
82
|
+
type labelEdgeChanged = JetElementCustomEventStrict<CInputPasswordElement['labelEdge']>;
|
|
83
|
+
type labelHintChanged = JetElementCustomEventStrict<CInputPasswordElement['labelHint']>;
|
|
84
|
+
type labelStartWidthChanged = JetElementCustomEventStrict<CInputPasswordElement['labelStartWidth']>;
|
|
85
|
+
type labelWrappingChanged = JetElementCustomEventStrict<CInputPasswordElement['labelWrapping']>;
|
|
86
|
+
type maskIconChanged = JetElementCustomEventStrict<CInputPasswordElement['maskIcon']>;
|
|
87
|
+
type messagesCustomChanged = JetElementCustomEventStrict<CInputPasswordElement['messagesCustom']>;
|
|
88
|
+
type placeholderChanged = JetElementCustomEventStrict<CInputPasswordElement['placeholder']>;
|
|
89
|
+
type rawValueChanged = JetElementCustomEventStrict<CInputPasswordElement['rawValue']>;
|
|
90
|
+
type readonlyChanged = JetElementCustomEventStrict<CInputPasswordElement['readonly']>;
|
|
91
|
+
type requiredChanged = JetElementCustomEventStrict<CInputPasswordElement['required']>;
|
|
92
|
+
type requiredMessageDetailChanged = JetElementCustomEventStrict<CInputPasswordElement['requiredMessageDetail']>;
|
|
93
|
+
type textAlignChanged = JetElementCustomEventStrict<CInputPasswordElement['textAlign']>;
|
|
94
|
+
type userAssistanceDensityChanged = JetElementCustomEventStrict<CInputPasswordElement['userAssistanceDensity']>;
|
|
95
|
+
type validChanged = JetElementCustomEventStrict<CInputPasswordElement['valid']>;
|
|
96
|
+
type validatorsChanged = JetElementCustomEventStrict<CInputPasswordElement['validators']>;
|
|
97
|
+
type valueChanged = JetElementCustomEventStrict<CInputPasswordElement['value']>;
|
|
98
|
+
}
|
|
99
|
+
export interface CInputPasswordElementEventMap extends HTMLElementEventMap {
|
|
100
|
+
'autocompleteChanged': JetElementCustomEventStrict<CInputPasswordElement['autocomplete']>;
|
|
101
|
+
'clearIconChanged': JetElementCustomEventStrict<CInputPasswordElement['clearIcon']>;
|
|
102
|
+
'containerReadonlyChanged': JetElementCustomEventStrict<CInputPasswordElement['containerReadonly']>;
|
|
103
|
+
'disabledChanged': JetElementCustomEventStrict<CInputPasswordElement['disabled']>;
|
|
104
|
+
'displayOptionsChanged': JetElementCustomEventStrict<CInputPasswordElement['displayOptions']>;
|
|
105
|
+
'helpChanged': JetElementCustomEventStrict<CInputPasswordElement['help']>;
|
|
106
|
+
'helpHintsChanged': JetElementCustomEventStrict<CInputPasswordElement['helpHints']>;
|
|
107
|
+
'labelEdgeChanged': JetElementCustomEventStrict<CInputPasswordElement['labelEdge']>;
|
|
108
|
+
'labelHintChanged': JetElementCustomEventStrict<CInputPasswordElement['labelHint']>;
|
|
109
|
+
'labelStartWidthChanged': JetElementCustomEventStrict<CInputPasswordElement['labelStartWidth']>;
|
|
110
|
+
'labelWrappingChanged': JetElementCustomEventStrict<CInputPasswordElement['labelWrapping']>;
|
|
111
|
+
'maskIconChanged': JetElementCustomEventStrict<CInputPasswordElement['maskIcon']>;
|
|
112
|
+
'messagesCustomChanged': JetElementCustomEventStrict<CInputPasswordElement['messagesCustom']>;
|
|
113
|
+
'placeholderChanged': JetElementCustomEventStrict<CInputPasswordElement['placeholder']>;
|
|
114
|
+
'rawValueChanged': JetElementCustomEventStrict<CInputPasswordElement['rawValue']>;
|
|
115
|
+
'readonlyChanged': JetElementCustomEventStrict<CInputPasswordElement['readonly']>;
|
|
116
|
+
'requiredChanged': JetElementCustomEventStrict<CInputPasswordElement['required']>;
|
|
117
|
+
'requiredMessageDetailChanged': JetElementCustomEventStrict<CInputPasswordElement['requiredMessageDetail']>;
|
|
118
|
+
'textAlignChanged': JetElementCustomEventStrict<CInputPasswordElement['textAlign']>;
|
|
119
|
+
'userAssistanceDensityChanged': JetElementCustomEventStrict<CInputPasswordElement['userAssistanceDensity']>;
|
|
120
|
+
'validChanged': JetElementCustomEventStrict<CInputPasswordElement['valid']>;
|
|
121
|
+
'validatorsChanged': JetElementCustomEventStrict<CInputPasswordElement['validators']>;
|
|
122
|
+
'valueChanged': JetElementCustomEventStrict<CInputPasswordElement['value']>;
|
|
123
|
+
}
|
|
124
|
+
export interface CInputPasswordElementSettableProperties extends JetSettableProperties {
|
|
125
|
+
autocomplete?: Props['autocomplete'];
|
|
126
|
+
clearIcon?: Props['clearIcon'];
|
|
127
|
+
containerReadonly?: Props['containerReadonly'];
|
|
128
|
+
disabled?: Props['disabled'];
|
|
129
|
+
displayOptions?: Props['displayOptions'];
|
|
130
|
+
help?: Props['help'];
|
|
131
|
+
helpHints?: Props['helpHints'];
|
|
132
|
+
labelEdge?: Props['labelEdge'];
|
|
133
|
+
labelHint: Props['labelHint'];
|
|
134
|
+
labelStartWidth?: Props['labelStartWidth'];
|
|
135
|
+
labelWrapping?: Props['labelWrapping'];
|
|
136
|
+
maskIcon?: Props['maskIcon'];
|
|
137
|
+
messagesCustom?: Props['messagesCustom'];
|
|
138
|
+
placeholder?: Props['placeholder'];
|
|
139
|
+
readonly?: Props['readonly'];
|
|
140
|
+
required?: Props['required'];
|
|
141
|
+
requiredMessageDetail?: Props['requiredMessageDetail'];
|
|
142
|
+
textAlign?: Props['textAlign'];
|
|
143
|
+
userAssistanceDensity?: Props['userAssistanceDensity'];
|
|
144
|
+
validators?: Props['validators'];
|
|
145
|
+
value?: Props['value'];
|
|
146
|
+
}
|
|
147
|
+
export interface CInputPasswordElementSettablePropertiesLenient extends Partial<CInputPasswordElementSettableProperties> {
|
|
148
|
+
[key: string]: any;
|
|
149
|
+
}
|
|
150
|
+
export interface InputPasswordIntrinsicProps extends Partial<Readonly<CInputPasswordElementSettableProperties>>, GlobalProps, Pick<preact.JSX.HTMLAttributes, 'ref' | 'key'> {
|
|
151
|
+
rawValue?: never;
|
|
152
|
+
valid?: never;
|
|
153
|
+
onautocompleteChanged?: (value: CInputPasswordElementEventMap['autocompleteChanged']) => void;
|
|
154
|
+
onclearIconChanged?: (value: CInputPasswordElementEventMap['clearIconChanged']) => void;
|
|
155
|
+
oncontainerReadonlyChanged?: (value: CInputPasswordElementEventMap['containerReadonlyChanged']) => void;
|
|
156
|
+
ondisabledChanged?: (value: CInputPasswordElementEventMap['disabledChanged']) => void;
|
|
157
|
+
ondisplayOptionsChanged?: (value: CInputPasswordElementEventMap['displayOptionsChanged']) => void;
|
|
158
|
+
onhelpChanged?: (value: CInputPasswordElementEventMap['helpChanged']) => void;
|
|
159
|
+
onhelpHintsChanged?: (value: CInputPasswordElementEventMap['helpHintsChanged']) => void;
|
|
160
|
+
onlabelEdgeChanged?: (value: CInputPasswordElementEventMap['labelEdgeChanged']) => void;
|
|
161
|
+
onlabelHintChanged?: (value: CInputPasswordElementEventMap['labelHintChanged']) => void;
|
|
162
|
+
onlabelStartWidthChanged?: (value: CInputPasswordElementEventMap['labelStartWidthChanged']) => void;
|
|
163
|
+
onlabelWrappingChanged?: (value: CInputPasswordElementEventMap['labelWrappingChanged']) => void;
|
|
164
|
+
onmaskIconChanged?: (value: CInputPasswordElementEventMap['maskIconChanged']) => void;
|
|
165
|
+
onmessagesCustomChanged?: (value: CInputPasswordElementEventMap['messagesCustomChanged']) => void;
|
|
166
|
+
onplaceholderChanged?: (value: CInputPasswordElementEventMap['placeholderChanged']) => void;
|
|
167
|
+
onrawValueChanged?: (value: CInputPasswordElementEventMap['rawValueChanged']) => void;
|
|
168
|
+
onreadonlyChanged?: (value: CInputPasswordElementEventMap['readonlyChanged']) => void;
|
|
169
|
+
onrequiredChanged?: (value: CInputPasswordElementEventMap['requiredChanged']) => void;
|
|
170
|
+
onrequiredMessageDetailChanged?: (value: CInputPasswordElementEventMap['requiredMessageDetailChanged']) => void;
|
|
171
|
+
ontextAlignChanged?: (value: CInputPasswordElementEventMap['textAlignChanged']) => void;
|
|
172
|
+
onuserAssistanceDensityChanged?: (value: CInputPasswordElementEventMap['userAssistanceDensityChanged']) => void;
|
|
173
|
+
onvalidChanged?: (value: CInputPasswordElementEventMap['validChanged']) => void;
|
|
174
|
+
onvalidatorsChanged?: (value: CInputPasswordElementEventMap['validatorsChanged']) => void;
|
|
175
|
+
onvalueChanged?: (value: CInputPasswordElementEventMap['valueChanged']) => void;
|
|
176
|
+
}
|
|
177
|
+
declare global {
|
|
178
|
+
namespace preact.JSX {
|
|
179
|
+
interface IntrinsicElements {
|
|
180
|
+
'oj-c-input-password': InputPasswordIntrinsicProps;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComponentProps } from 'preact';
|
|
2
|
+
import type { InputPassword } from 'oj-c/input-password';
|
|
3
|
+
declare type InputPasswordProps = ComponentProps<typeof InputPassword>;
|
|
4
|
+
export declare function useInputPasswordPreact({ autocomplete, autofocus, clearIcon, disabled, displayOptions, labelEdge, labelHint, labelStartWidth, maskIcon, messagesCustom, placeholder, readonly, required, requiredMessageDetail, textAlign, userAssistanceDensity, validators, value: propValue, onMessagesCustomChanged, onRawValueChanged, onValidChanged, onValueChanged, ...otherProps }: InputPasswordProps, addBusyState?: (desc?: string) => () => void): {
|
|
5
|
+
value: string | null;
|
|
6
|
+
setValue: import("preact/hooks").StateUpdater<string | null>;
|
|
7
|
+
methods: {
|
|
8
|
+
reset: () => void;
|
|
9
|
+
validate: () => Promise<"valid" | "invalid">;
|
|
10
|
+
showMessages: () => void;
|
|
11
|
+
};
|
|
12
|
+
inputPasswordProps: Omit<{
|
|
13
|
+
ariaDescribedBy?: string | undefined;
|
|
14
|
+
assistiveText?: string | undefined;
|
|
15
|
+
autoComplete?: string | undefined;
|
|
16
|
+
autoFocus?: boolean | undefined;
|
|
17
|
+
hasClearIcon?: "always" | "never" | "conditionally" | undefined;
|
|
18
|
+
hasRevealToggle?: "always" | "never" | undefined;
|
|
19
|
+
helpSourceLink?: string | undefined;
|
|
20
|
+
helpSourceText?: string | undefined;
|
|
21
|
+
isDisabled?: boolean | undefined;
|
|
22
|
+
isReadonly?: boolean | undefined;
|
|
23
|
+
isRequired?: boolean | undefined;
|
|
24
|
+
isRequiredShown?: boolean | undefined;
|
|
25
|
+
label: string;
|
|
26
|
+
labelEdge?: "start" | "none" | "top" | "inside" | undefined;
|
|
27
|
+
labelStartWidth?: import("@oracle/oraclejet-preact/utils/UNSAFE_size").Size | undefined;
|
|
28
|
+
messages?: import("@oracle/oraclejet-preact/UNSAFE_ComponentMessage").ComponentMessageItem[] | undefined;
|
|
29
|
+
placeholder?: string | undefined;
|
|
30
|
+
textAlign?: "start" | "right" | "end" | undefined;
|
|
31
|
+
userAssistanceDensity?: import("@oracle/oraclejet-preact/UNSAFE_UserAssistance").UserAssistanceDensityType | undefined;
|
|
32
|
+
value?: string | undefined;
|
|
33
|
+
variant?: "default" | "embedded" | undefined;
|
|
34
|
+
onCommit?: ((detail: import("@oracle/oraclejet-preact/utils/UNSAFE_valueUpdateDetail").ValueUpdateDetail<string>) => void) | undefined;
|
|
35
|
+
onInput: ((detail: import("@oracle/oraclejet-preact/utils/UNSAFE_valueUpdateDetail").ValueUpdateDetail<string>) => void) | undefined;
|
|
36
|
+
}, "ref"> & {
|
|
37
|
+
ref?: import("preact").Ref<import("@oracle/oraclejet-preact/hooks/UNSAFE_useFocusableTextField").FocusableHandle> | undefined;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/// <reference types="ojconverter" />
|
|
2
|
+
/// <reference types="ojvalidator-async" />
|
|
3
|
+
/// <reference types="ojvalidator" />
|
|
4
|
+
import { JetElement, JetSettableProperties, JetElementCustomEventStrict, JetSetPropertyType } from 'ojs/index';
|
|
5
|
+
import { GlobalProps } from 'ojs/ojvcomponent';
|
|
6
|
+
import 'ojs/oj-jsx-interfaces';
|
|
7
|
+
import { InputText as PreactInputText } from '@oracle/oraclejet-preact/UNSAFE_InputText';
|
|
8
|
+
import { DisplayOptions, Help, HelpHints } from 'oj-c/editable-value/UNSAFE_useAssistiveText/useAssistiveText';
|
|
9
|
+
import Converter from 'ojs/ojconverter';
|
|
10
|
+
import Validator from 'ojs/ojvalidator';
|
|
11
|
+
import AsyncValidator from 'ojs/ojvalidator-async';
|
|
12
|
+
import { ExtendGlobalProps, ObservedGlobalProps, PropertyChanged, ReadOnlyPropertyChanged, Slot } from 'ojs/ojvcomponent';
|
|
13
|
+
import { Component, ComponentProps } from 'preact';
|
|
14
|
+
import 'css!oj-c/input-text/input-text-styles.css';
|
|
15
|
+
declare type PreactInputTextProps = ComponentProps<typeof PreactInputText>;
|
|
16
|
+
declare type Length = {
|
|
17
|
+
countBy?: 'codePoint' | 'codeUnit';
|
|
18
|
+
max?: number | null;
|
|
19
|
+
};
|
|
20
|
+
declare type ValidState = 'valid' | 'pending' | 'invalidHidden' | 'invalidShown';
|
|
21
|
+
declare type Props<V> = ObservedGlobalProps<'aria-describedby' | 'autofocus' | 'id'> & {
|
|
22
|
+
autocomplete?: 'on' | 'off' | string;
|
|
23
|
+
clearIcon?: 'always' | 'never' | 'conditional';
|
|
24
|
+
containerReadonly?: boolean;
|
|
25
|
+
converter?: Converter<V> | null;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
displayOptions?: DisplayOptions;
|
|
28
|
+
end?: Slot;
|
|
29
|
+
help?: Help;
|
|
30
|
+
helpHints?: HelpHints;
|
|
31
|
+
inputPrefix?: PreactInputTextProps['prefix'];
|
|
32
|
+
inputSuffix?: PreactInputTextProps['suffix'];
|
|
33
|
+
labelEdge?: PreactInputTextProps['labelEdge'];
|
|
34
|
+
labelHint: string;
|
|
35
|
+
labelStartWidth?: string;
|
|
36
|
+
labelWrapping?: 'truncate' | 'wrap';
|
|
37
|
+
length?: Length;
|
|
38
|
+
messagesCustom?: PreactInputTextProps['messages'];
|
|
39
|
+
placeholder?: string;
|
|
40
|
+
readonly?: boolean;
|
|
41
|
+
required?: boolean;
|
|
42
|
+
requiredMessageDetail?: string;
|
|
43
|
+
start?: Slot;
|
|
44
|
+
textAlign?: PreactInputTextProps['textAlign'];
|
|
45
|
+
userAssistanceDensity?: PreactInputTextProps['userAssistanceDensity'];
|
|
46
|
+
validators?: (AsyncValidator<V> | Validator<V>)[] | null;
|
|
47
|
+
value?: V | null;
|
|
48
|
+
virtualKeyboard?: PreactInputTextProps['virtualKeyboard'];
|
|
49
|
+
onMessagesCustomChanged?: PropertyChanged<PreactInputTextProps['messages']>;
|
|
50
|
+
onRawValueChanged?: ReadOnlyPropertyChanged<string>;
|
|
51
|
+
onValidChanged?: ReadOnlyPropertyChanged<ValidState>;
|
|
52
|
+
onValueChanged?: PropertyChanged<V>;
|
|
53
|
+
};
|
|
54
|
+
export declare class InputText<V> extends Component<ExtendGlobalProps<Props<V>>> {
|
|
55
|
+
static defaultProps: Partial<Props<any>>;
|
|
56
|
+
private busyContextRef;
|
|
57
|
+
private inputTextRef;
|
|
58
|
+
private rootRef;
|
|
59
|
+
componentDidMount(): void;
|
|
60
|
+
render(props: ExtendGlobalProps<Props<V>>): import("preact").JSX.Element;
|
|
61
|
+
componentWillUnmount(): void;
|
|
62
|
+
reset(): void;
|
|
63
|
+
showMessages(): void;
|
|
64
|
+
validate(): Promise<'valid' | 'invalid'>;
|
|
65
|
+
blur(): void;
|
|
66
|
+
focus(): void;
|
|
67
|
+
}
|
|
68
|
+
export declare type InputTextProps<V> = Props<V>;
|
|
69
|
+
export {};
|
|
70
|
+
export interface CInputTextElement<V> extends JetElement<CInputTextElementSettableProperties<V>>, CInputTextElementSettableProperties<V> {
|
|
71
|
+
readonly rawValue?: Parameters<Required<Props<V>>['onRawValueChanged']>[0];
|
|
72
|
+
readonly valid?: Parameters<Required<Props<V>>['onValidChanged']>[0];
|
|
73
|
+
addEventListener<T extends keyof CInputTextElementEventMap<V>>(type: T, listener: (this: HTMLElement, ev: CInputTextElementEventMap<V>[T]) => any, options?: (boolean | AddEventListenerOptions)): void;
|
|
74
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: (boolean | AddEventListenerOptions)): void;
|
|
75
|
+
getProperty<T extends keyof CInputTextElementSettableProperties<V>>(property: T): CInputTextElement<V>[T];
|
|
76
|
+
getProperty(property: string): any;
|
|
77
|
+
setProperty<T extends keyof CInputTextElementSettableProperties<V>>(property: T, value: CInputTextElementSettableProperties<V>[T]): void;
|
|
78
|
+
setProperty<T extends string>(property: T, value: JetSetPropertyType<T, CInputTextElementSettableProperties<V>>): void;
|
|
79
|
+
setProperties(properties: CInputTextElementSettablePropertiesLenient<V>): void;
|
|
80
|
+
blur: InputText<V>['blur'];
|
|
81
|
+
focus: InputText<V>['focus'];
|
|
82
|
+
reset: InputText<V>['reset'];
|
|
83
|
+
showMessages: InputText<V>['showMessages'];
|
|
84
|
+
validate: InputText<V>['validate'];
|
|
85
|
+
}
|
|
86
|
+
export namespace CInputTextElement {
|
|
87
|
+
type autocompleteChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['autocomplete']>;
|
|
88
|
+
type clearIconChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['clearIcon']>;
|
|
89
|
+
type containerReadonlyChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['containerReadonly']>;
|
|
90
|
+
type converterChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['converter']>;
|
|
91
|
+
type disabledChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['disabled']>;
|
|
92
|
+
type displayOptionsChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['displayOptions']>;
|
|
93
|
+
type helpChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['help']>;
|
|
94
|
+
type helpHintsChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['helpHints']>;
|
|
95
|
+
type inputPrefixChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['inputPrefix']>;
|
|
96
|
+
type inputSuffixChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['inputSuffix']>;
|
|
97
|
+
type labelEdgeChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['labelEdge']>;
|
|
98
|
+
type labelHintChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['labelHint']>;
|
|
99
|
+
type labelStartWidthChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['labelStartWidth']>;
|
|
100
|
+
type labelWrappingChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['labelWrapping']>;
|
|
101
|
+
type lengthChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['length']>;
|
|
102
|
+
type messagesCustomChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['messagesCustom']>;
|
|
103
|
+
type placeholderChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['placeholder']>;
|
|
104
|
+
type rawValueChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['rawValue']>;
|
|
105
|
+
type readonlyChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['readonly']>;
|
|
106
|
+
type requiredChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['required']>;
|
|
107
|
+
type requiredMessageDetailChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['requiredMessageDetail']>;
|
|
108
|
+
type textAlignChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['textAlign']>;
|
|
109
|
+
type userAssistanceDensityChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['userAssistanceDensity']>;
|
|
110
|
+
type validChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['valid']>;
|
|
111
|
+
type validatorsChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['validators']>;
|
|
112
|
+
type valueChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['value']>;
|
|
113
|
+
type virtualKeyboardChanged<V> = JetElementCustomEventStrict<CInputTextElement<V>['virtualKeyboard']>;
|
|
114
|
+
}
|
|
115
|
+
export interface CInputTextElementEventMap<V> extends HTMLElementEventMap {
|
|
116
|
+
'autocompleteChanged': JetElementCustomEventStrict<CInputTextElement<V>['autocomplete']>;
|
|
117
|
+
'clearIconChanged': JetElementCustomEventStrict<CInputTextElement<V>['clearIcon']>;
|
|
118
|
+
'containerReadonlyChanged': JetElementCustomEventStrict<CInputTextElement<V>['containerReadonly']>;
|
|
119
|
+
'converterChanged': JetElementCustomEventStrict<CInputTextElement<V>['converter']>;
|
|
120
|
+
'disabledChanged': JetElementCustomEventStrict<CInputTextElement<V>['disabled']>;
|
|
121
|
+
'displayOptionsChanged': JetElementCustomEventStrict<CInputTextElement<V>['displayOptions']>;
|
|
122
|
+
'helpChanged': JetElementCustomEventStrict<CInputTextElement<V>['help']>;
|
|
123
|
+
'helpHintsChanged': JetElementCustomEventStrict<CInputTextElement<V>['helpHints']>;
|
|
124
|
+
'inputPrefixChanged': JetElementCustomEventStrict<CInputTextElement<V>['inputPrefix']>;
|
|
125
|
+
'inputSuffixChanged': JetElementCustomEventStrict<CInputTextElement<V>['inputSuffix']>;
|
|
126
|
+
'labelEdgeChanged': JetElementCustomEventStrict<CInputTextElement<V>['labelEdge']>;
|
|
127
|
+
'labelHintChanged': JetElementCustomEventStrict<CInputTextElement<V>['labelHint']>;
|
|
128
|
+
'labelStartWidthChanged': JetElementCustomEventStrict<CInputTextElement<V>['labelStartWidth']>;
|
|
129
|
+
'labelWrappingChanged': JetElementCustomEventStrict<CInputTextElement<V>['labelWrapping']>;
|
|
130
|
+
'lengthChanged': JetElementCustomEventStrict<CInputTextElement<V>['length']>;
|
|
131
|
+
'messagesCustomChanged': JetElementCustomEventStrict<CInputTextElement<V>['messagesCustom']>;
|
|
132
|
+
'placeholderChanged': JetElementCustomEventStrict<CInputTextElement<V>['placeholder']>;
|
|
133
|
+
'rawValueChanged': JetElementCustomEventStrict<CInputTextElement<V>['rawValue']>;
|
|
134
|
+
'readonlyChanged': JetElementCustomEventStrict<CInputTextElement<V>['readonly']>;
|
|
135
|
+
'requiredChanged': JetElementCustomEventStrict<CInputTextElement<V>['required']>;
|
|
136
|
+
'requiredMessageDetailChanged': JetElementCustomEventStrict<CInputTextElement<V>['requiredMessageDetail']>;
|
|
137
|
+
'textAlignChanged': JetElementCustomEventStrict<CInputTextElement<V>['textAlign']>;
|
|
138
|
+
'userAssistanceDensityChanged': JetElementCustomEventStrict<CInputTextElement<V>['userAssistanceDensity']>;
|
|
139
|
+
'validChanged': JetElementCustomEventStrict<CInputTextElement<V>['valid']>;
|
|
140
|
+
'validatorsChanged': JetElementCustomEventStrict<CInputTextElement<V>['validators']>;
|
|
141
|
+
'valueChanged': JetElementCustomEventStrict<CInputTextElement<V>['value']>;
|
|
142
|
+
'virtualKeyboardChanged': JetElementCustomEventStrict<CInputTextElement<V>['virtualKeyboard']>;
|
|
143
|
+
}
|
|
144
|
+
export interface CInputTextElementSettableProperties<V> extends JetSettableProperties {
|
|
145
|
+
autocomplete?: Props<V>['autocomplete'];
|
|
146
|
+
clearIcon?: Props<V>['clearIcon'];
|
|
147
|
+
containerReadonly?: Props<V>['containerReadonly'];
|
|
148
|
+
converter?: Props<V>['converter'];
|
|
149
|
+
disabled?: Props<V>['disabled'];
|
|
150
|
+
displayOptions?: Props<V>['displayOptions'];
|
|
151
|
+
help?: Props<V>['help'];
|
|
152
|
+
helpHints?: Props<V>['helpHints'];
|
|
153
|
+
inputPrefix?: Props<V>['inputPrefix'];
|
|
154
|
+
inputSuffix?: Props<V>['inputSuffix'];
|
|
155
|
+
labelEdge?: Props<V>['labelEdge'];
|
|
156
|
+
labelHint: Props<V>['labelHint'];
|
|
157
|
+
labelStartWidth?: Props<V>['labelStartWidth'];
|
|
158
|
+
labelWrapping?: Props<V>['labelWrapping'];
|
|
159
|
+
length?: Props<V>['length'];
|
|
160
|
+
messagesCustom?: Props<V>['messagesCustom'];
|
|
161
|
+
placeholder?: Props<V>['placeholder'];
|
|
162
|
+
readonly?: Props<V>['readonly'];
|
|
163
|
+
required?: Props<V>['required'];
|
|
164
|
+
requiredMessageDetail?: Props<V>['requiredMessageDetail'];
|
|
165
|
+
textAlign?: Props<V>['textAlign'];
|
|
166
|
+
userAssistanceDensity?: Props<V>['userAssistanceDensity'];
|
|
167
|
+
validators?: Props<V>['validators'];
|
|
168
|
+
value?: Props<V>['value'];
|
|
169
|
+
virtualKeyboard?: Props<V>['virtualKeyboard'];
|
|
170
|
+
}
|
|
171
|
+
export interface CInputTextElementSettablePropertiesLenient<V> extends Partial<CInputTextElementSettableProperties<V>> {
|
|
172
|
+
[key: string]: any;
|
|
173
|
+
}
|
|
174
|
+
export interface InputTextIntrinsicProps extends Partial<Readonly<CInputTextElementSettableProperties<any>>>, GlobalProps, Pick<preact.JSX.HTMLAttributes, 'ref' | 'key'> {
|
|
175
|
+
rawValue?: never;
|
|
176
|
+
valid?: never;
|
|
177
|
+
children?: import('preact').ComponentChildren;
|
|
178
|
+
onautocompleteChanged?: (value: CInputTextElementEventMap<any>['autocompleteChanged']) => void;
|
|
179
|
+
onclearIconChanged?: (value: CInputTextElementEventMap<any>['clearIconChanged']) => void;
|
|
180
|
+
oncontainerReadonlyChanged?: (value: CInputTextElementEventMap<any>['containerReadonlyChanged']) => void;
|
|
181
|
+
onconverterChanged?: (value: CInputTextElementEventMap<any>['converterChanged']) => void;
|
|
182
|
+
ondisabledChanged?: (value: CInputTextElementEventMap<any>['disabledChanged']) => void;
|
|
183
|
+
ondisplayOptionsChanged?: (value: CInputTextElementEventMap<any>['displayOptionsChanged']) => void;
|
|
184
|
+
onhelpChanged?: (value: CInputTextElementEventMap<any>['helpChanged']) => void;
|
|
185
|
+
onhelpHintsChanged?: (value: CInputTextElementEventMap<any>['helpHintsChanged']) => void;
|
|
186
|
+
oninputPrefixChanged?: (value: CInputTextElementEventMap<any>['inputPrefixChanged']) => void;
|
|
187
|
+
oninputSuffixChanged?: (value: CInputTextElementEventMap<any>['inputSuffixChanged']) => void;
|
|
188
|
+
onlabelEdgeChanged?: (value: CInputTextElementEventMap<any>['labelEdgeChanged']) => void;
|
|
189
|
+
onlabelHintChanged?: (value: CInputTextElementEventMap<any>['labelHintChanged']) => void;
|
|
190
|
+
onlabelStartWidthChanged?: (value: CInputTextElementEventMap<any>['labelStartWidthChanged']) => void;
|
|
191
|
+
onlabelWrappingChanged?: (value: CInputTextElementEventMap<any>['labelWrappingChanged']) => void;
|
|
192
|
+
onlengthChanged?: (value: CInputTextElementEventMap<any>['lengthChanged']) => void;
|
|
193
|
+
onmessagesCustomChanged?: (value: CInputTextElementEventMap<any>['messagesCustomChanged']) => void;
|
|
194
|
+
onplaceholderChanged?: (value: CInputTextElementEventMap<any>['placeholderChanged']) => void;
|
|
195
|
+
onrawValueChanged?: (value: CInputTextElementEventMap<any>['rawValueChanged']) => void;
|
|
196
|
+
onreadonlyChanged?: (value: CInputTextElementEventMap<any>['readonlyChanged']) => void;
|
|
197
|
+
onrequiredChanged?: (value: CInputTextElementEventMap<any>['requiredChanged']) => void;
|
|
198
|
+
onrequiredMessageDetailChanged?: (value: CInputTextElementEventMap<any>['requiredMessageDetailChanged']) => void;
|
|
199
|
+
ontextAlignChanged?: (value: CInputTextElementEventMap<any>['textAlignChanged']) => void;
|
|
200
|
+
onuserAssistanceDensityChanged?: (value: CInputTextElementEventMap<any>['userAssistanceDensityChanged']) => void;
|
|
201
|
+
onvalidChanged?: (value: CInputTextElementEventMap<any>['validChanged']) => void;
|
|
202
|
+
onvalidatorsChanged?: (value: CInputTextElementEventMap<any>['validatorsChanged']) => void;
|
|
203
|
+
onvalueChanged?: (value: CInputTextElementEventMap<any>['valueChanged']) => void;
|
|
204
|
+
onvirtualKeyboardChanged?: (value: CInputTextElementEventMap<any>['virtualKeyboardChanged']) => void;
|
|
205
|
+
}
|
|
206
|
+
declare global {
|
|
207
|
+
namespace preact.JSX {
|
|
208
|
+
interface IntrinsicElements {
|
|
209
|
+
'oj-c-input-text': InputTextIntrinsicProps;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ComponentProps } from 'preact';
|
|
2
|
+
import type { InputText } from 'oj-c/input-text';
|
|
3
|
+
declare type InputTextProps = ComponentProps<typeof InputText>;
|
|
4
|
+
export declare function useInputTextPreact<V>({ autocomplete, autofocus, clearIcon, converter, disabled, displayOptions, end, inputPrefix, inputSuffix, labelEdge, labelHint, labelStartWidth, length, messagesCustom, placeholder, readonly, required, requiredMessageDetail, start, textAlign, userAssistanceDensity, validators, value: propValue, virtualKeyboard, onMessagesCustomChanged, onRawValueChanged, onValidChanged, onValueChanged, ...otherProps }: InputTextProps, addBusyState?: (desc?: string) => () => void): {
|
|
5
|
+
value: V;
|
|
6
|
+
setValue: import("preact/hooks").StateUpdater<V>;
|
|
7
|
+
methods: {
|
|
8
|
+
reset: () => void;
|
|
9
|
+
validate: () => Promise<"valid" | "invalid">;
|
|
10
|
+
showMessages: () => void;
|
|
11
|
+
};
|
|
12
|
+
inputTextProps: Omit<{
|
|
13
|
+
ariaDescribedBy?: string | undefined;
|
|
14
|
+
assistiveText?: string | undefined;
|
|
15
|
+
autoComplete?: string | undefined;
|
|
16
|
+
autoFocus?: boolean | undefined;
|
|
17
|
+
endContent?: import("preact").ComponentChildren;
|
|
18
|
+
hasClearIcon?: "always" | "never" | "conditionally" | undefined;
|
|
19
|
+
helpSourceLink?: string | undefined;
|
|
20
|
+
helpSourceText?: string | undefined;
|
|
21
|
+
isDisabled?: boolean | undefined;
|
|
22
|
+
isReadonly?: boolean | undefined;
|
|
23
|
+
isRequired?: boolean | undefined;
|
|
24
|
+
isRequiredShown?: boolean | undefined;
|
|
25
|
+
label: string;
|
|
26
|
+
labelEdge?: "start" | "none" | "top" | "inside" | undefined;
|
|
27
|
+
labelStartWidth?: import("@oracle/oraclejet-preact/utils/UNSAFE_size").Size | undefined;
|
|
28
|
+
maxLength?: number | undefined;
|
|
29
|
+
maxLengthUnit?: import("@oracle/oraclejet-preact/utils/UNSAFE_lengthFilter").CountUnit | undefined;
|
|
30
|
+
messages?: import("@oracle/oraclejet-preact/UNSAFE_ComponentMessage").ComponentMessageItem[] | undefined;
|
|
31
|
+
placeholder?: string | undefined;
|
|
32
|
+
prefix?: string | undefined;
|
|
33
|
+
role?: string | undefined;
|
|
34
|
+
startContent?: import("preact").ComponentChildren;
|
|
35
|
+
suffix?: string | undefined;
|
|
36
|
+
textAlign?: "start" | "right" | "end" | undefined;
|
|
37
|
+
userAssistanceDensity?: import("@oracle/oraclejet-preact/UNSAFE_UserAssistance").UserAssistanceDensityType | undefined;
|
|
38
|
+
value?: string | undefined;
|
|
39
|
+
variant?: "default" | "embedded" | undefined;
|
|
40
|
+
virtualKeyboard?: "number" | "text" | "auto" | "search" | "email" | "tel" | "url" | undefined;
|
|
41
|
+
onCommit?: ((detail: import("@oracle/oraclejet-preact/utils/UNSAFE_valueUpdateDetail").ValueUpdateDetail<string>) => void) | undefined;
|
|
42
|
+
onInput: ((detail: import("@oracle/oraclejet-preact/utils/UNSAFE_valueUpdateDetail").ValueUpdateDetail<string>) => void) | undefined;
|
|
43
|
+
}, "ref"> & {
|
|
44
|
+
ref?: import("preact").Ref<import("@oracle/oraclejet-preact/hooks/UNSAFE_useFocusableTextField").FocusableHandle> | undefined;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ComponentProps } from 'preact';
|
|
2
|
+
import { JetElement, JetSettableProperties, JetElementCustomEventStrict, JetSetPropertyType } from 'ojs/index';
|
|
3
|
+
import { GlobalProps } from 'ojs/ojvcomponent';
|
|
4
|
+
import 'ojs/oj-jsx-interfaces';
|
|
5
|
+
import { ComponentChildren } from 'preact';
|
|
6
|
+
import { ObservedGlobalProps, Slot } from 'ojs/ojvcomponent';
|
|
7
|
+
import 'css!oj-c/list-item-layout/list-item-layout-styles.css';
|
|
8
|
+
export declare const ListItemLayout: import("preact").ComponentType<import("ojs/ojvcomponent").ExtendGlobalProps<ObservedGlobalProps<"aria-label"> & {
|
|
9
|
+
children?: ComponentChildren;
|
|
10
|
+
overline?: Slot;
|
|
11
|
+
selector?: Slot;
|
|
12
|
+
leading?: Slot;
|
|
13
|
+
secondary?: Slot;
|
|
14
|
+
tertiary?: Slot;
|
|
15
|
+
metadata?: Slot;
|
|
16
|
+
trailing?: Slot;
|
|
17
|
+
action?: Slot;
|
|
18
|
+
quaternary?: Slot;
|
|
19
|
+
navigation?: Slot;
|
|
20
|
+
inset?: "none" | "listInset" | undefined;
|
|
21
|
+
}>>;
|
|
22
|
+
export interface CListItemLayoutElement extends JetElement<CListItemLayoutElementSettableProperties>, CListItemLayoutElementSettableProperties {
|
|
23
|
+
addEventListener<T extends keyof CListItemLayoutElementEventMap>(type: T, listener: (this: HTMLElement, ev: CListItemLayoutElementEventMap[T]) => any, options?: (boolean | AddEventListenerOptions)): void;
|
|
24
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: (boolean | AddEventListenerOptions)): void;
|
|
25
|
+
getProperty<T extends keyof CListItemLayoutElementSettableProperties>(property: T): CListItemLayoutElement[T];
|
|
26
|
+
getProperty(property: string): any;
|
|
27
|
+
setProperty<T extends keyof CListItemLayoutElementSettableProperties>(property: T, value: CListItemLayoutElementSettableProperties[T]): void;
|
|
28
|
+
setProperty<T extends string>(property: T, value: JetSetPropertyType<T, CListItemLayoutElementSettableProperties>): void;
|
|
29
|
+
setProperties(properties: CListItemLayoutElementSettablePropertiesLenient): void;
|
|
30
|
+
}
|
|
31
|
+
export namespace CListItemLayoutElement {
|
|
32
|
+
type insetChanged = JetElementCustomEventStrict<CListItemLayoutElement['inset']>;
|
|
33
|
+
}
|
|
34
|
+
export interface CListItemLayoutElementEventMap extends HTMLElementEventMap {
|
|
35
|
+
'insetChanged': JetElementCustomEventStrict<CListItemLayoutElement['inset']>;
|
|
36
|
+
}
|
|
37
|
+
export interface CListItemLayoutElementSettableProperties extends JetSettableProperties {
|
|
38
|
+
inset?: ComponentProps<typeof ListItemLayout>['inset'];
|
|
39
|
+
}
|
|
40
|
+
export interface CListItemLayoutElementSettablePropertiesLenient extends Partial<CListItemLayoutElementSettableProperties> {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}
|
|
43
|
+
export interface ListItemLayoutIntrinsicProps extends Partial<Readonly<CListItemLayoutElementSettableProperties>>, GlobalProps, Pick<preact.JSX.HTMLAttributes, 'ref' | 'key'> {
|
|
44
|
+
children?: import('preact').ComponentChildren;
|
|
45
|
+
oninsetChanged?: (value: CListItemLayoutElementEventMap['insetChanged']) => void;
|
|
46
|
+
}
|
|
47
|
+
declare global {
|
|
48
|
+
namespace preact.JSX {
|
|
49
|
+
interface IntrinsicElements {
|
|
50
|
+
'oj-c-list-item-layout': ListItemLayoutIntrinsicProps;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|