@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,111 @@
|
|
|
1
|
+
/* JSDoc prettify.js theme */
|
|
2
|
+
|
|
3
|
+
/* plain text */
|
|
4
|
+
.pln {
|
|
5
|
+
color: #000000;
|
|
6
|
+
font-weight: normal;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* string content */
|
|
11
|
+
.str {
|
|
12
|
+
color: #006400;
|
|
13
|
+
font-weight: normal;
|
|
14
|
+
font-style: normal;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* a keyword */
|
|
18
|
+
.kwd {
|
|
19
|
+
color: #000000;
|
|
20
|
+
font-weight: bold;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* a comment */
|
|
25
|
+
.com {
|
|
26
|
+
font-weight: normal;
|
|
27
|
+
font-style: italic;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* a type name */
|
|
31
|
+
.typ {
|
|
32
|
+
color: #000000;
|
|
33
|
+
font-weight: normal;
|
|
34
|
+
font-style: normal;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* a literal value */
|
|
38
|
+
.lit {
|
|
39
|
+
color: #006400;
|
|
40
|
+
font-weight: normal;
|
|
41
|
+
font-style: normal;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* punctuation */
|
|
45
|
+
.pun {
|
|
46
|
+
color: #000000;
|
|
47
|
+
font-weight: bold;
|
|
48
|
+
font-style: normal;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* lisp open bracket */
|
|
52
|
+
.opn {
|
|
53
|
+
color: #000000;
|
|
54
|
+
font-weight: bold;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* lisp close bracket */
|
|
59
|
+
.clo {
|
|
60
|
+
color: #000000;
|
|
61
|
+
font-weight: bold;
|
|
62
|
+
font-style: normal;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* a markup tag name */
|
|
66
|
+
.tag {
|
|
67
|
+
color: #006400;
|
|
68
|
+
font-weight: normal;
|
|
69
|
+
font-style: normal;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* a markup attribute name */
|
|
73
|
+
.atn {
|
|
74
|
+
color: #006400;
|
|
75
|
+
font-weight: normal;
|
|
76
|
+
font-style: normal;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* a markup attribute value */
|
|
80
|
+
.atv {
|
|
81
|
+
color: #006400;
|
|
82
|
+
font-weight: normal;
|
|
83
|
+
font-style: normal;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* a declaration */
|
|
87
|
+
.dec {
|
|
88
|
+
color: #000000;
|
|
89
|
+
font-weight: bold;
|
|
90
|
+
font-style: normal;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* a variable name */
|
|
94
|
+
.var {
|
|
95
|
+
color: #000000;
|
|
96
|
+
font-weight: normal;
|
|
97
|
+
font-style: normal;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* a function name */
|
|
101
|
+
.fun {
|
|
102
|
+
color: #000000;
|
|
103
|
+
font-weight: bold;
|
|
104
|
+
font-style: normal;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Specify class=linenums on a pre to get line numbering */
|
|
108
|
+
ol.linenums {
|
|
109
|
+
margin-top: 0;
|
|
110
|
+
margin-bottom: 0;
|
|
111
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/* Tomorrow Theme */
|
|
2
|
+
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
|
|
3
|
+
/* Pretty printing styles. Used with prettify.js. */
|
|
4
|
+
/* SPAN elements with the classes below are added by prettyprint. */
|
|
5
|
+
/* plain text */
|
|
6
|
+
.pln {
|
|
7
|
+
color: #4d4d4c; }
|
|
8
|
+
|
|
9
|
+
@media screen {
|
|
10
|
+
/* string content */
|
|
11
|
+
.str {
|
|
12
|
+
color: #718c00; }
|
|
13
|
+
|
|
14
|
+
/* a keyword */
|
|
15
|
+
.kwd {
|
|
16
|
+
color: #8959a8; }
|
|
17
|
+
|
|
18
|
+
/* a comment */
|
|
19
|
+
.com {
|
|
20
|
+
color: #8e908c; }
|
|
21
|
+
|
|
22
|
+
/* a type name */
|
|
23
|
+
.typ {
|
|
24
|
+
color: #4271ae; }
|
|
25
|
+
|
|
26
|
+
/* a literal value */
|
|
27
|
+
.lit {
|
|
28
|
+
color: #f5871f; }
|
|
29
|
+
|
|
30
|
+
/* punctuation */
|
|
31
|
+
.pun {
|
|
32
|
+
color: #4d4d4c; }
|
|
33
|
+
|
|
34
|
+
/* lisp open bracket */
|
|
35
|
+
.opn {
|
|
36
|
+
color: #4d4d4c; }
|
|
37
|
+
|
|
38
|
+
/* lisp close bracket */
|
|
39
|
+
.clo {
|
|
40
|
+
color: #4d4d4c; }
|
|
41
|
+
|
|
42
|
+
/* a markup tag name */
|
|
43
|
+
.tag {
|
|
44
|
+
color: #c82829; }
|
|
45
|
+
|
|
46
|
+
/* a markup attribute name */
|
|
47
|
+
.atn {
|
|
48
|
+
color: #f5871f; }
|
|
49
|
+
|
|
50
|
+
/* a markup attribute value */
|
|
51
|
+
.atv {
|
|
52
|
+
color: #3e999f; }
|
|
53
|
+
|
|
54
|
+
/* a declaration */
|
|
55
|
+
.dec {
|
|
56
|
+
color: #f5871f; }
|
|
57
|
+
|
|
58
|
+
/* a variable name */
|
|
59
|
+
.var {
|
|
60
|
+
color: #c82829; }
|
|
61
|
+
|
|
62
|
+
/* a function name */
|
|
63
|
+
.fun {
|
|
64
|
+
color: #4271ae; } }
|
|
65
|
+
/* Use higher contrast and text-weight for printable form. */
|
|
66
|
+
@media print, projection {
|
|
67
|
+
.str {
|
|
68
|
+
color: #060; }
|
|
69
|
+
|
|
70
|
+
.kwd {
|
|
71
|
+
color: #006;
|
|
72
|
+
font-weight: bold; }
|
|
73
|
+
|
|
74
|
+
.com {
|
|
75
|
+
color: #600;
|
|
76
|
+
font-style: italic; }
|
|
77
|
+
|
|
78
|
+
.typ {
|
|
79
|
+
color: #404;
|
|
80
|
+
font-weight: bold; }
|
|
81
|
+
|
|
82
|
+
.lit {
|
|
83
|
+
color: #044; }
|
|
84
|
+
|
|
85
|
+
.pun, .opn, .clo {
|
|
86
|
+
color: #440; }
|
|
87
|
+
|
|
88
|
+
.tag {
|
|
89
|
+
color: #006;
|
|
90
|
+
font-weight: bold; }
|
|
91
|
+
|
|
92
|
+
.atn {
|
|
93
|
+
color: #404; }
|
|
94
|
+
|
|
95
|
+
.atv {
|
|
96
|
+
color: #060; } }
|
|
97
|
+
/* Style */
|
|
98
|
+
/*
|
|
99
|
+
pre.prettyprint {
|
|
100
|
+
background: white;
|
|
101
|
+
font-family: Menlo, Monaco, Consolas, monospace;
|
|
102
|
+
font-size: 12px;
|
|
103
|
+
line-height: 1.5;
|
|
104
|
+
border: 1px solid #ccc;
|
|
105
|
+
padding: 10px; }
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
/* Specify class=linenums on a pre to get line numbering */
|
|
109
|
+
ol.linenums {
|
|
110
|
+
margin-top: 0;
|
|
111
|
+
margin-bottom: 0; }
|
|
112
|
+
|
|
113
|
+
/* IE indents via margin-left */
|
|
114
|
+
li.L0,
|
|
115
|
+
li.L1,
|
|
116
|
+
li.L2,
|
|
117
|
+
li.L3,
|
|
118
|
+
li.L4,
|
|
119
|
+
li.L5,
|
|
120
|
+
li.L6,
|
|
121
|
+
li.L7,
|
|
122
|
+
li.L8,
|
|
123
|
+
li.L9 {
|
|
124
|
+
/* */ }
|
|
125
|
+
|
|
126
|
+
/* Alternate shading for lines */
|
|
127
|
+
li.L1,
|
|
128
|
+
li.L3,
|
|
129
|
+
li.L5,
|
|
130
|
+
li.L7,
|
|
131
|
+
li.L9 {
|
|
132
|
+
/* */ }
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>Module: text-area</title>
|
|
6
|
+
|
|
7
|
+
<script src="scripts/prettify/prettify.js"> </script>
|
|
8
|
+
<script src="scripts/prettify/lang-css.js"> </script>
|
|
9
|
+
<!--[if lt IE 9]>
|
|
10
|
+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
11
|
+
<![endif]-->
|
|
12
|
+
<script src="scripts/deprecated.js"></script>
|
|
13
|
+
|
|
14
|
+
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
|
15
|
+
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
|
|
16
|
+
</head>
|
|
17
|
+
|
|
18
|
+
<body>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<nav id="nav" data-current-item="text-area">
|
|
22
|
+
<h2>Oracle® JET</h2>
|
|
23
|
+
<h2>Core Pack Components</h2>
|
|
24
|
+
<h3>14.0.0</h3
|
|
25
|
+
<div class="deprecation-checkboxes" style="display: none">
|
|
26
|
+
<ul style="list-style: none; display: none;">
|
|
27
|
+
<li style="margin-top:0px">
|
|
28
|
+
<label for="deprecated">
|
|
29
|
+
<div class="deprecated-cb-common"><input type="checkbox" id="deprecated"><span style="padding:2px">Show Deprecated APIs</span></div>
|
|
30
|
+
</label>
|
|
31
|
+
</li>
|
|
32
|
+
<li style="margin-top:0px">
|
|
33
|
+
<label for="jsonly"></label>
|
|
34
|
+
<div class="deprecated-cb-common"><input type="checkbox" id="jsonly"><span style="padding:2px 12px 2px 2px">Javascript Only APIs</span></div>
|
|
35
|
+
</li>
|
|
36
|
+
</ul>
|
|
37
|
+
</div>
|
|
38
|
+
<ul><li id="idx"><h2 id="navIndex"><a href="index.html" id="navIndexFocusable">Index</a></h2></li><li><div id="nav_toggle">
|
|
39
|
+
<input type="radio" id="elements_rb" name="toggle" value="Elements">
|
|
40
|
+
<label for="elements">Elements</label>
|
|
41
|
+
<input type="radio" id="modules_rb" name="toggle" value="Modules">
|
|
42
|
+
<label for="modules">Modules</label><br>
|
|
43
|
+
</div></li><li id="nav_elements" style="display: none"><h3 id="navElements">Elements</h3><ul class="subList"><li id="navItem0"><a href="oj-c.Avatar.html"><oj-c-avatar></a></li><li id="navItem1"><a href="oj-c.Button.html"><oj-c-button></a></li><li id="navItem2"><a href="oj-c.Collapsible.html"><oj-c-collapsible></a></li><li id="navItem3"><a href="oj-c.FilePicker.html"><oj-c-file-picker></a></li><li id="navItem4"><a href="oj-c.InputNumber.html"><oj-c-input-number></a></li><li id="navItem5"><a href="oj-c.InputPassword.html"><oj-c-input-password></a></li><li id="navItem6"><a href="oj-c.InputText.html"><oj-c-input-text></a></li><li id="navItem7"><a href="oj-c.ListItemLayout.html"><oj-c-list-item-layout></a></li><li id="navItem8"><a href="oj-c.MessageToast.html"><oj-c-message-toast></a></li><li id="navItem9"><a href="oj-c.MeterBar.html"><oj-c-meter-bar></a></li><li id="navItem10"><a href="oj-c.MeterCircle.html"><oj-c-meter-circle></a></li><li id="navItem11"><a href="oj-c.ProgressBar.html"><oj-c-progress-bar></a></li><li id="navItem12"><a href="oj-c.ProgressCircle.html"><oj-c-progress-circle></a></li><li id="navItem13"><a href="oj-c.RatingGauge.html"><oj-c-rating-gauge></a></li><li id="navItem14"><a href="oj-c.SelectMultiple.html"><oj-c-select-multiple></a></li><li id="navItem15"><a href="oj-c.SelectSingle.html"><oj-c-select-single></a></li><li id="navItem16"><a href="oj-c.SplitMenuButton.html"><oj-c-split-menu-button></a></li><li id="navItem17"><a href="oj-c.TextArea.html"><oj-c-text-area></a></li></ul></li><li id="nav_modules" style="display: none"><h3 id="navElements">Modules</h3><ul class="subList_lev2"><li class="module">
|
|
44
|
+
<div id="avatar" class="module_element">
|
|
45
|
+
<a href="avatar.html">avatar</a>
|
|
46
|
+
</div><ul class="subList_lev3"><li id="navItem18"><a href="oj-c.Avatar.html"><oj-c-avatar></a></li></ul></li><li class="module">
|
|
47
|
+
<div id="button" class="module_element">
|
|
48
|
+
<a href="button.html">button</a>
|
|
49
|
+
</div><ul class="subList_lev3"><li id="navItem19"><a href="oj-c.Button.html"><oj-c-button></a></li></ul></li><li class="module">
|
|
50
|
+
<div id="collapsible" class="module_element">
|
|
51
|
+
<a href="collapsible.html">collapsible</a>
|
|
52
|
+
</div><ul class="subList_lev3"><li id="navItem20"><a href="oj-c.Collapsible.html"><oj-c-collapsible></a></li></ul></li><li class="module">
|
|
53
|
+
<div id="file-picker" class="module_element">
|
|
54
|
+
<a href="file-picker.html">file-picker</a>
|
|
55
|
+
</div><ul class="subList_lev3"><li id="navItem21"><a href="oj-c.FilePicker.html"><oj-c-file-picker></a></li></ul></li><li class="module">
|
|
56
|
+
<div id="input-number" class="module_element">
|
|
57
|
+
<a href="input-number.html">input-number</a>
|
|
58
|
+
</div><ul class="subList_lev3"><li id="navItem22"><a href="oj-c.InputNumber.html"><oj-c-input-number></a></li></ul></li><li class="module">
|
|
59
|
+
<div id="input-password" class="module_element">
|
|
60
|
+
<a href="input-password.html">input-password</a>
|
|
61
|
+
</div><ul class="subList_lev3"><li id="navItem23"><a href="oj-c.InputPassword.html"><oj-c-input-password></a></li></ul></li><li class="module">
|
|
62
|
+
<div id="input-text" class="module_element">
|
|
63
|
+
<a href="input-text.html">input-text</a>
|
|
64
|
+
</div><ul class="subList_lev3"><li id="navItem24"><a href="oj-c.InputText.html"><oj-c-input-text></a></li></ul></li><li class="module">
|
|
65
|
+
<div id="list-item-layout" class="module_element">
|
|
66
|
+
<a href="list-item-layout.html">list-item-layout</a>
|
|
67
|
+
</div><ul class="subList_lev3"><li id="navItem25"><a href="oj-c.ListItemLayout.html"><oj-c-list-item-layout></a></li></ul></li><li class="module">
|
|
68
|
+
<div id="message-toast" class="module_element">
|
|
69
|
+
<a href="message-toast.html">message-toast</a>
|
|
70
|
+
</div><ul class="subList_lev3"><li id="navItem26"><a href="oj-c.MessageToast.html"><oj-c-message-toast></a></li></ul></li><li class="module">
|
|
71
|
+
<div id="meter-bar" class="module_element">
|
|
72
|
+
<a href="meter-bar.html">meter-bar</a>
|
|
73
|
+
</div><ul class="subList_lev3"><li id="navItem27"><a href="oj-c.MeterBar.html"><oj-c-meter-bar></a></li></ul></li><li class="module">
|
|
74
|
+
<div id="meter-circle" class="module_element">
|
|
75
|
+
<a href="meter-circle.html">meter-circle</a>
|
|
76
|
+
</div><ul class="subList_lev3"><li id="navItem28"><a href="oj-c.MeterCircle.html"><oj-c-meter-circle></a></li></ul></li><li class="module">
|
|
77
|
+
<div id="progress-bar" class="module_element">
|
|
78
|
+
<a href="progress-bar.html">progress-bar</a>
|
|
79
|
+
</div><ul class="subList_lev3"><li id="navItem29"><a href="oj-c.ProgressBar.html"><oj-c-progress-bar></a></li></ul></li><li class="module">
|
|
80
|
+
<div id="progress-circle" class="module_element">
|
|
81
|
+
<a href="progress-circle.html">progress-circle</a>
|
|
82
|
+
</div><ul class="subList_lev3"><li id="navItem30"><a href="oj-c.ProgressCircle.html"><oj-c-progress-circle></a></li></ul></li><li class="module">
|
|
83
|
+
<div id="rating-gauge" class="module_element">
|
|
84
|
+
<a href="rating-gauge.html">rating-gauge</a>
|
|
85
|
+
</div><ul class="subList_lev3"><li id="navItem31"><a href="oj-c.RatingGauge.html"><oj-c-rating-gauge></a></li></ul></li><li class="module">
|
|
86
|
+
<div id="select-multiple" class="module_element">
|
|
87
|
+
<a href="select-multiple.html">select-multiple</a>
|
|
88
|
+
</div><ul class="subList_lev3"><li id="navItem32"><a href="oj-c.SelectMultiple.html"><oj-c-select-multiple></a></li></ul></li><li class="module">
|
|
89
|
+
<div id="select-single" class="module_element">
|
|
90
|
+
<a href="select-single.html">select-single</a>
|
|
91
|
+
</div><ul class="subList_lev3"><li id="navItem33"><a href="oj-c.SelectSingle.html"><oj-c-select-single></a></li></ul></li><li class="module">
|
|
92
|
+
<div id="split-menu-button" class="module_element">
|
|
93
|
+
<a href="split-menu-button.html">split-menu-button</a>
|
|
94
|
+
</div><ul class="subList_lev3"><li id="navItem34"><a href="oj-c.SplitMenuButton.html"><oj-c-split-menu-button></a></li></ul></li><li class="module">
|
|
95
|
+
<div id="text-area" class="module_element">
|
|
96
|
+
<a href="text-area.html">text-area</a>
|
|
97
|
+
</div><ul class="subList_lev3"><li id="navItem35"><a href="oj-c.TextArea.html"><oj-c-text-area></a></li></ul></li></ul></li></ul>
|
|
98
|
+
</nav>
|
|
99
|
+
|
|
100
|
+
<div id="main">
|
|
101
|
+
|
|
102
|
+
<button onclick="topFunction()" id="jump-to-top-btn" title="Go to top"></button>
|
|
103
|
+
<div class="page-title">
|
|
104
|
+
<h1>Module: text-area</h1>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<p class="product-docs-header">
|
|
108
|
+
<span style="font-weight:bold">Oracle® JavaScript Extension Toolkit (JET)<br>
|
|
109
|
+
14.0.0</span><br>
|
|
110
|
+
</p>
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
<section id="quick-nav">
|
|
114
|
+
<header>
|
|
115
|
+
<h2>QuickNav</h2>
|
|
116
|
+
</header>
|
|
117
|
+
|
|
118
|
+
<div class="quick-nav-section1">
|
|
119
|
+
<h3>Elements</h3>
|
|
120
|
+
<ul class="subList">
|
|
121
|
+
|
|
122
|
+
<li><a href="oj-c.TextArea.html"><oj-c-text-area></a></li>
|
|
123
|
+
|
|
124
|
+
</ul>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
</section>
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
<section>
|
|
131
|
+
<header>
|
|
132
|
+
<h3>JET Modules</h3>
|
|
133
|
+
<p>See
|
|
134
|
+
<a href="../../../jsdocs/ModuleLoadingOverview.html" target="_blank">JET Module Loading</a> for an overview of module usage within JET.</p>
|
|
135
|
+
|
|
136
|
+
</header>
|
|
137
|
+
<article>
|
|
138
|
+
|
|
139
|
+
</article>
|
|
140
|
+
</section>
|
|
141
|
+
<footer>
|
|
142
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Fri Jan 06 2023 02:37:41 GMT+0000 (Coordinated Universal Time)<br>
|
|
143
|
+
<span class="product-docs-footer">Copyright © 2014, 2023 Oracle. All rights reserved.<span>
|
|
144
|
+
</footer>
|
|
145
|
+
</div>
|
|
146
|
+
|
|
147
|
+
<script> prettyPrint(); </script>
|
|
148
|
+
</body>
|
|
149
|
+
</html>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
define(["require", "exports", "preact/hooks"], function (require, exports, hooks_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.useAssistiveText = void 0;
|
|
5
|
+
function determineAssistiveText(help, validatorHint, helpHints, converterHint, displayOptions) {
|
|
6
|
+
return ((help === null || help === void 0 ? void 0 : help.instruction) ||
|
|
7
|
+
((displayOptions === null || displayOptions === void 0 ? void 0 : displayOptions.validatorHint) === 'none' ? undefined : validatorHint) ||
|
|
8
|
+
(helpHints === null || helpHints === void 0 ? void 0 : helpHints.definition) ||
|
|
9
|
+
((displayOptions === null || displayOptions === void 0 ? void 0 : displayOptions.converterHint) === 'none' ? undefined : converterHint));
|
|
10
|
+
}
|
|
11
|
+
function determineSyncValidatorHints(validators) {
|
|
12
|
+
if (!validators.length) {
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
const syncHints = validators
|
|
16
|
+
.map((validator) => typeof validator.getHint === 'function'
|
|
17
|
+
? validator.getHint()
|
|
18
|
+
: undefined)
|
|
19
|
+
.filter(Boolean);
|
|
20
|
+
return syncHints.join('\n');
|
|
21
|
+
}
|
|
22
|
+
function useAssistiveText({ addBusyState, converter, displayOptions, help, helpHints, validators }) {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
const [validatorHint, setValidatorHint] = (0, hooks_1.useState)(!validators || !validators.length ? undefined : determineSyncValidatorHints(validators));
|
|
25
|
+
const staleIdentity = (0, hooks_1.useRef)();
|
|
26
|
+
(0, hooks_1.useEffect)(() => {
|
|
27
|
+
if (!validators || !validators.length) {
|
|
28
|
+
setValidatorHint(undefined);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
setValidatorHint(determineSyncValidatorHints(validators));
|
|
32
|
+
const asyncHints = validators
|
|
33
|
+
.map((validator) => validator.hint)
|
|
34
|
+
.filter(Boolean);
|
|
35
|
+
const localStaleIdentity = (staleIdentity.current = Symbol());
|
|
36
|
+
const resolver = addBusyState === null || addBusyState === void 0 ? void 0 : addBusyState('resolving the async validator hints');
|
|
37
|
+
Promise.allSettled(asyncHints).then((hints) => {
|
|
38
|
+
setValidatorHint((currentHints) => {
|
|
39
|
+
const treatedHints = hints
|
|
40
|
+
.map((result) => (result.status === 'fulfilled' ? result.value : undefined))
|
|
41
|
+
.filter(Boolean);
|
|
42
|
+
if (localStaleIdentity !== staleIdentity.current || !treatedHints.length) {
|
|
43
|
+
return currentHints;
|
|
44
|
+
}
|
|
45
|
+
return [currentHints, ...treatedHints].join('\n');
|
|
46
|
+
});
|
|
47
|
+
resolver === null || resolver === void 0 ? void 0 : resolver();
|
|
48
|
+
});
|
|
49
|
+
}, [validators]);
|
|
50
|
+
return {
|
|
51
|
+
assistiveText: determineAssistiveText(help, validatorHint, helpHints, (_b = (_a = converter === null || converter === void 0 ? void 0 : converter.getHint) === null || _a === void 0 ? void 0 : _a.call(converter)) !== null && _b !== void 0 ? _b : undefined, displayOptions),
|
|
52
|
+
helpSourceLink: helpHints === null || helpHints === void 0 ? void 0 : helpHints.source,
|
|
53
|
+
helpSourceText: helpHints === null || helpHints === void 0 ? void 0 : helpHints.sourceText
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.useAssistiveText = useAssistiveText;
|
|
57
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
define(["require", "exports", "@oracle/oraclejet-preact/hooks/UNSAFE_useUncontrolledState", "preact/hooks", "../utils/utils"], function (require, exports, UNSAFE_useUncontrolledState_1, hooks_1, utils_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.useComponentMessaging = void 0;
|
|
5
|
+
function useComponentMessaging({ messagesCustom: messagesCustomProp = [], onMessagesCustomChanged }) {
|
|
6
|
+
const [messagesCustom, setMessagesCustom] = (0, UNSAFE_useUncontrolledState_1.useUncontrolledState)(messagesCustomProp, onMessagesCustomChanged);
|
|
7
|
+
const [componentMessages, setComponentMessages] = (0, hooks_1.useState)([]);
|
|
8
|
+
const [deferredComponentMessages, setDeferredComponentMessages] = (0, hooks_1.useState)([]);
|
|
9
|
+
const prevMessagesCustomPropRef = (0, hooks_1.useRef)(messagesCustomProp);
|
|
10
|
+
const addComponentMessage = (0, hooks_1.useCallback)((...messages) => {
|
|
11
|
+
setComponentMessages((prevMessages) => [...prevMessages, ...messages]);
|
|
12
|
+
}, []);
|
|
13
|
+
const addDeferredComponentMessage = (0, hooks_1.useCallback)((message) => {
|
|
14
|
+
setComponentMessages((prevMessages) => [...prevMessages, message]);
|
|
15
|
+
}, []);
|
|
16
|
+
const clearAllComponentMessages = (0, hooks_1.useCallback)(() => {
|
|
17
|
+
setComponentMessages([]);
|
|
18
|
+
setDeferredComponentMessages([]);
|
|
19
|
+
}, []);
|
|
20
|
+
const clearDeferredComponentMessages = (0, hooks_1.useCallback)(() => {
|
|
21
|
+
setDeferredComponentMessages([]);
|
|
22
|
+
}, []);
|
|
23
|
+
const clearAllMessages = (0, hooks_1.useCallback)(() => {
|
|
24
|
+
setComponentMessages([]);
|
|
25
|
+
setDeferredComponentMessages([]);
|
|
26
|
+
setMessagesCustom([]);
|
|
27
|
+
}, []);
|
|
28
|
+
const hasCustomErrorMessages = (0, hooks_1.useCallback)(() => {
|
|
29
|
+
return messagesCustom.some((message) => message.severity === 'error');
|
|
30
|
+
}, [messagesCustom]);
|
|
31
|
+
const hasNoErrorMessages = (0, hooks_1.useCallback)(() => {
|
|
32
|
+
return (componentMessages.length === 0 &&
|
|
33
|
+
deferredComponentMessages.length === 0 &&
|
|
34
|
+
hasCustomErrorMessages() === false);
|
|
35
|
+
}, [componentMessages, deferredComponentMessages, hasCustomErrorMessages]);
|
|
36
|
+
const hasHiddenMessages = (0, hooks_1.useCallback)(() => {
|
|
37
|
+
return deferredComponentMessages.length !== 0;
|
|
38
|
+
}, [deferredComponentMessages]);
|
|
39
|
+
const showHiddenMessages = (0, hooks_1.useCallback)(() => {
|
|
40
|
+
setComponentMessages((prevMessages) => [...prevMessages, ...deferredComponentMessages]);
|
|
41
|
+
setDeferredComponentMessages([]);
|
|
42
|
+
}, [deferredComponentMessages]);
|
|
43
|
+
(0, hooks_1.useEffect)(() => {
|
|
44
|
+
if (prevMessagesCustomPropRef.current === messagesCustomProp) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
prevMessagesCustomPropRef.current = messagesCustomProp;
|
|
48
|
+
if ((0, utils_1.isShallowEqual)(messagesCustom, messagesCustomProp)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
setMessagesCustom(messagesCustomProp);
|
|
52
|
+
}, [messagesCustom, messagesCustomProp]);
|
|
53
|
+
return (0, hooks_1.useMemo)(() => ({
|
|
54
|
+
componentMessages,
|
|
55
|
+
deferredComponentMessages,
|
|
56
|
+
messagesCustom,
|
|
57
|
+
visibleMessages: [...messagesCustom, ...componentMessages],
|
|
58
|
+
addComponentMessage,
|
|
59
|
+
addDeferredComponentMessage,
|
|
60
|
+
clearAllComponentMessages,
|
|
61
|
+
clearAllMessages,
|
|
62
|
+
clearDeferredComponentMessages,
|
|
63
|
+
hasCustomErrorMessages,
|
|
64
|
+
hasHiddenMessages,
|
|
65
|
+
hasNoErrorMessages,
|
|
66
|
+
setComponentMessages,
|
|
67
|
+
setDeferredComponentMessages,
|
|
68
|
+
showHiddenMessages
|
|
69
|
+
}), [
|
|
70
|
+
componentMessages,
|
|
71
|
+
deferredComponentMessages,
|
|
72
|
+
messagesCustom,
|
|
73
|
+
hasCustomErrorMessages,
|
|
74
|
+
hasHiddenMessages,
|
|
75
|
+
hasNoErrorMessages,
|
|
76
|
+
showHiddenMessages
|
|
77
|
+
]);
|
|
78
|
+
}
|
|
79
|
+
exports.useComponentMessaging = useComponentMessaging;
|
|
80
|
+
});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
define(["require", "exports", "ojs/ojconverter-nativenumber", "preact/hooks", "@oracle/oraclejet-preact/hooks/UNSAFE_useTranslationBundle", "../utils/utils"], function (require, exports, ojconverter_nativenumber_1, hooks_1, UNSAFE_useTranslationBundle_1, utils_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.useConverter = exports.ConverterErrorSymbol = void 0;
|
|
5
|
+
exports.ConverterErrorSymbol = Symbol('ConverterError');
|
|
6
|
+
function shouldSkipParse(value) {
|
|
7
|
+
return value === '' || value === null;
|
|
8
|
+
}
|
|
9
|
+
function shouldSkipFormat(value) {
|
|
10
|
+
return value === null;
|
|
11
|
+
}
|
|
12
|
+
function useConverter({ componentMessagingState, validationState, converter }) {
|
|
13
|
+
const translations = (0, UNSAFE_useTranslationBundle_1.useTranslationBundle)('@oracle/oraclejet-preact');
|
|
14
|
+
const converterParseError = translations.inputNumber_converterParseError();
|
|
15
|
+
const parse = (0, hooks_1.useCallback)((displayValue) => {
|
|
16
|
+
if (!converter || shouldSkipParse(displayValue)) {
|
|
17
|
+
return displayValue;
|
|
18
|
+
}
|
|
19
|
+
try {
|
|
20
|
+
return converter.parse(displayValue);
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
const errorMsg = (error === null || error === void 0 ? void 0 : error.cause) === ojconverter_nativenumber_1.USER_INPUT_ERROR
|
|
24
|
+
? {
|
|
25
|
+
severity: 'error',
|
|
26
|
+
detail: converterParseError
|
|
27
|
+
}
|
|
28
|
+
: (0, utils_1.createMessageFromError)(error);
|
|
29
|
+
componentMessagingState.setComponentMessages([errorMsg]);
|
|
30
|
+
validationState.setValid('invalidShown');
|
|
31
|
+
return exports.ConverterErrorSymbol;
|
|
32
|
+
}
|
|
33
|
+
}, [converter, componentMessagingState, validationState]);
|
|
34
|
+
const format = (0, hooks_1.useCallback)((value, shouldSuppressError = false) => {
|
|
35
|
+
var _a;
|
|
36
|
+
if (!converter || shouldSkipFormat(value)) {
|
|
37
|
+
return (_a = (0, utils_1.treatNull)(value, '')) !== null && _a !== void 0 ? _a : '';
|
|
38
|
+
}
|
|
39
|
+
try {
|
|
40
|
+
return converter.format(value);
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
if (!shouldSuppressError) {
|
|
44
|
+
componentMessagingState.setComponentMessages([(0, utils_1.createMessageFromError)(error)]);
|
|
45
|
+
validationState.setValid('invalidShown');
|
|
46
|
+
}
|
|
47
|
+
return (0, utils_1.treatNull)(value, '');
|
|
48
|
+
}
|
|
49
|
+
}, [converter, componentMessagingState, validationState]);
|
|
50
|
+
return (0, hooks_1.useMemo)(() => ({
|
|
51
|
+
format,
|
|
52
|
+
parse
|
|
53
|
+
}), [format, parse]);
|
|
54
|
+
}
|
|
55
|
+
exports.useConverter = useConverter;
|
|
56
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
define(["require", "exports", "preact/hooks"], function (require, exports, hooks_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.useConverterLifecycle = void 0;
|
|
5
|
+
function useConverterLifecycle({ converter, validationState, refreshDisplayValue, runFullValidationAndUpdateValue }) {
|
|
6
|
+
const prevConverterRef = (0, hooks_1.useRef)(converter);
|
|
7
|
+
(0, hooks_1.useEffect)(() => {
|
|
8
|
+
if (prevConverterRef.current === converter) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
prevConverterRef.current = converter;
|
|
12
|
+
const { valid } = validationState;
|
|
13
|
+
switch (valid) {
|
|
14
|
+
case 'invalidShown':
|
|
15
|
+
runFullValidationAndUpdateValue();
|
|
16
|
+
break;
|
|
17
|
+
case 'valid':
|
|
18
|
+
case 'invalidHidden':
|
|
19
|
+
default:
|
|
20
|
+
refreshDisplayValue();
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
}, [converter, validationState, refreshDisplayValue, runFullValidationAndUpdateValue]);
|
|
24
|
+
}
|
|
25
|
+
exports.useConverterLifecycle = useConverterLifecycle;
|
|
26
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3
|
+
};
|
|
4
|
+
define(["require", "exports", "ojs/ojvalidator-required", "preact/hooks"], function (require, exports, ojvalidator_required_1, hooks_1) {
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.useDeferredValidators = void 0;
|
|
8
|
+
ojvalidator_required_1 = __importDefault(ojvalidator_required_1);
|
|
9
|
+
function useDeferredValidators({ labelHint, required, requiredMessageDetail }) {
|
|
10
|
+
const requiredValidator = (0, hooks_1.useMemo)(() => {
|
|
11
|
+
if (required) {
|
|
12
|
+
return new ojvalidator_required_1.default({
|
|
13
|
+
label: labelHint,
|
|
14
|
+
messageDetail: requiredMessageDetail
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return null;
|
|
18
|
+
}, [required]);
|
|
19
|
+
return (0, hooks_1.useMemo)(() => [requiredValidator].filter(Boolean), [requiredValidator]);
|
|
20
|
+
}
|
|
21
|
+
exports.useDeferredValidators = useDeferredValidators;
|
|
22
|
+
});
|