@envisiongroup/porygon 1.0.0-rc.9 → 1.0.1
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/README.md +50 -14
- package/dist/index.d.ts +9 -15
- package/dist/index.js +95 -55
- package/dist/react-components/buttons/EFWButton/EFWButton.d.ts +1 -1
- package/dist/react-components/buttons/EFWButton/EFWButton.hooks.js +32 -31
- package/dist/react-components/buttons/EFWButton/EFWButton.js +158 -90
- package/dist/react-components/buttons/EFWButton/EFWButton.types.d.ts +32 -6
- package/dist/react-components/buttons/EFWButton/index.d.ts +1 -1
- package/dist/react-components/buttons/EFWDrawerButton/EFWDrawerButton.d.ts +1 -1
- package/dist/react-components/buttons/EFWDrawerButton/EFWDrawerButton.types.d.ts +1 -1
- package/dist/react-components/buttons/EFWGroupButton/EFWGroupButton.d.ts +1 -63
- package/dist/react-components/buttons/EFWGroupButton/EFWGroupButton.js +120 -85
- package/dist/react-components/buttons/EFWGroupButton/EFWGroupButton.types.d.ts +7 -1
- package/dist/react-components/buttons/EFWGroupButton/index.d.ts +1 -1
- package/dist/react-components/commons/caretPositioning.d.ts +35 -0
- package/dist/react-components/commons/caretPositioning.js +28 -0
- package/dist/react-components/commons/utils.d.ts +1 -1
- package/dist/react-components/commons/utils.js +1 -1
- package/dist/react-components/commons/valueNormalization.d.ts +28 -0
- package/dist/react-components/commons/valueNormalization.js +6 -0
- package/dist/react-components/fields/Attachments/EFWAttachments.js +205 -0
- package/dist/react-components/fields/{EFWAttachments → Attachments}/EFWAttachments.types.d.ts +32 -2
- package/dist/react-components/fields/Attachments/EFWAttachments.utils.d.ts +8 -0
- package/dist/react-components/fields/Attachments/EFWAttachments.utils.js +4 -0
- package/dist/react-components/fields/{EFWAttachments/EFWAttachmentsCard → Attachments}/EFWAttachmentsCard.d.ts +2 -11
- package/dist/react-components/fields/Attachments/EFWAttachmentsCard.js +164 -0
- package/dist/react-components/fields/{EFWAttachments/EFWAttachmentsCard → Attachments}/EFWAttachmentsCard.types.d.ts +21 -1
- package/dist/react-components/fields/Attachments/EFWAttachmentsField.js +70 -0
- package/dist/react-components/fields/{EFWAttachmentsField → Attachments}/EFWAttachmentsField.types.d.ts +2 -2
- package/dist/react-components/fields/Attachments/index.d.ts +5 -0
- package/dist/react-components/fields/Attachments/index.js +8 -0
- package/dist/react-components/fields/{EFWDatePicker → DatePicker}/EFWDatePicker.d.ts +1 -3
- package/dist/react-components/fields/DatePicker/EFWDatePicker.js +134 -0
- package/dist/react-components/fields/{EFWDatePicker → DatePicker}/EFWDatePicker.types.d.ts +19 -7
- package/dist/react-components/fields/DatePicker/EFWDatePicker.utils.d.ts +19 -0
- package/dist/react-components/fields/DatePicker/EFWDatePicker.utils.js +179 -0
- package/dist/react-components/fields/DatePicker/EFWDatePickerField.js +251 -0
- package/dist/react-components/fields/DatePicker/EFWDatePickerField.types.d.ts +15 -0
- package/dist/react-components/fields/DatePicker/index.d.ts +6 -0
- package/dist/react-components/fields/DatePicker/index.js +11 -0
- package/dist/react-components/fields/Input/EFWInput.d.ts +10 -0
- package/dist/react-components/fields/Input/EFWInput.js +260 -0
- package/dist/react-components/fields/{EFWInput → Input}/EFWInput.types.d.ts +120 -25
- package/dist/react-components/fields/Input/EFWInput.utils.d.ts +101 -0
- package/dist/react-components/fields/Input/EFWInput.utils.js +222 -0
- package/dist/react-components/fields/Input/EFWInput.validation.d.ts +20 -0
- package/dist/react-components/fields/Input/EFWInput.validation.js +72 -0
- package/dist/react-components/fields/Input/EFWInputField.js +86 -0
- package/dist/react-components/fields/{EFWInputField → Input}/EFWInputField.types.d.ts +2 -2
- package/dist/react-components/fields/Input/index.d.ts +5 -0
- package/dist/react-components/fields/Input/index.js +8 -0
- package/dist/react-components/fields/NumberInput/EFWNumberInput.js +339 -0
- package/dist/react-components/fields/{EFWNumberInput → NumberInput}/EFWNumberInput.types.d.ts +33 -14
- package/dist/react-components/fields/{EFWNumberInput → NumberInput}/EFWNumberInput.utils.d.ts +20 -14
- package/dist/react-components/fields/NumberInput/EFWNumberInput.utils.js +86 -0
- package/dist/react-components/fields/NumberInput/EFWNumberInputField.js +84 -0
- package/dist/react-components/fields/{EFWNumberInputField → NumberInput}/EFWNumberInputField.types.d.ts +2 -2
- package/dist/react-components/fields/NumberInput/index.d.ts +5 -0
- package/dist/react-components/fields/NumberInput/index.js +8 -0
- package/dist/react-components/fields/Switch/EFWSwitch.js +75 -0
- package/dist/react-components/fields/{EFWSwitch → Switch}/EFWSwitch.types.d.ts +18 -10
- package/dist/react-components/fields/Switch/EFWSwitch.utils.d.ts +9 -0
- package/dist/react-components/fields/Switch/EFWSwitch.utils.js +4 -0
- package/dist/react-components/fields/Switch/EFWSwitchField.js +62 -0
- package/dist/react-components/fields/{EFWSwitchField → Switch}/EFWSwitchField.types.d.ts +6 -2
- package/dist/react-components/fields/Switch/index.d.ts +5 -0
- package/dist/react-components/fields/Switch/index.js +8 -0
- package/dist/react-components/fields/TagPicker/EFWTagPicker.js +388 -0
- package/dist/react-components/fields/{EFWTagPicker → TagPicker}/EFWTagPicker.types.d.ts +30 -17
- package/dist/react-components/fields/TagPicker/EFWTagPicker.utils.d.ts +6 -0
- package/dist/react-components/fields/TagPicker/EFWTagPicker.utils.js +4 -0
- package/dist/react-components/fields/TagPicker/EFWTagPickerField.js +83 -0
- package/dist/react-components/fields/{EFWTagPickerField → TagPicker}/EFWTagPickerField.types.d.ts +2 -2
- package/dist/react-components/fields/TagPicker/index.d.ts +5 -0
- package/dist/react-components/fields/TagPicker/index.js +8 -0
- package/dist/react-components/fields/TextArea/EFWTextArea.js +153 -0
- package/dist/react-components/fields/{EFWTextArea → TextArea}/EFWTextArea.types.d.ts +26 -8
- package/dist/react-components/fields/TextArea/EFWTextArea.utils.d.ts +6 -0
- package/dist/react-components/fields/TextArea/EFWTextArea.utils.js +4 -0
- package/dist/react-components/fields/TextArea/EFWTextAreaField.js +80 -0
- package/dist/react-components/fields/{EFWTextAreaField → TextArea}/EFWTextAreaField.types.d.ts +2 -2
- package/dist/react-components/fields/TextArea/index.d.ts +5 -0
- package/dist/react-components/fields/TextArea/index.js +8 -0
- package/dist/react-components/fields/_shared/EFWField/EFWField.js +119 -0
- package/dist/react-components/fields/{EFWField → _shared/EFWField}/EFWField.types.d.ts +24 -13
- package/dist/react-components/fields/_shared/EFWField/EFWField.utils.js +20 -0
- package/dist/react-components/fields/_shared/EFWField/useSyncedValidationState.d.ts +50 -0
- package/dist/react-components/fields/_shared/EFWField/useSyncedValidationState.js +41 -0
- package/dist/react-components/fields/test-utils/testUtils.js +10 -0
- package/dist/react-components/forms/EFWForm/EFWForm.converter.d.ts +16 -1
- package/dist/react-components/forms/EFWForm/EFWForm.converter.js +51 -20
- package/dist/react-components/forms/EFWForm/EFWForm.flatConverter.d.ts +130 -0
- package/dist/react-components/forms/EFWForm/EFWForm.flatConverter.js +279 -0
- package/dist/react-components/forms/EFWForm/EFWForm.hooks.js +21 -18
- package/dist/react-components/forms/EFWForm/EFWForm.js +866 -403
- package/dist/react-components/forms/EFWForm/EFWForm.types.d.ts +213 -89
- package/dist/react-components/forms/EFWForm/EFWForm.utils.d.ts +10 -5
- package/dist/react-components/forms/EFWForm/EFWForm.utils.js +356 -229
- package/dist/react-components/forms/EFWForm/index.d.ts +5 -2
- package/dist/react-components/forms/EFWForm/index.js +10 -6
- package/dist/react-components/forms/EFWFormMessageBarGroup/EFWFormMessageBarGroup.js +55 -55
- package/dist/react-components/forms/EFWMessageBarManager/EFWMessageBarManager.js +38 -29
- package/dist/react-components/hooks/useDrawer/component/EFWDrawer/EFWDrawer.js +49 -47
- package/dist/react-components/hooks/useDrawer/component/EFWDrawer/EFWDrawer.types.d.ts +1 -0
- package/dist/react-components/hooks/useDrawer/component/EFWDrawerLoader/EFWDrawerLoader.d.ts +5 -3
- package/dist/react-components/hooks/useDrawer/component/EFWDrawerLoader/EFWDrawerLoader.js +6 -6
- package/dist/react-components/hooks/useDrawer/index.d.ts +1 -1
- package/dist/react-components/hooks/useDrawer/useDrawer.d.ts +4 -2
- package/dist/react-components/hooks/useDrawer/useDrawer.js +216 -111
- package/dist/react-components/hooks/useDrawer/useDrawer.types.d.ts +15 -2
- package/dist/react-components/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +42 -0
- package/dist/react-components/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +5 -0
- package/dist/react-components/i18n/PorygonI18nProvider.d.ts +13 -0
- package/dist/react-components/i18n/PorygonI18nProvider.js +145 -0
- package/dist/react-components/i18n/defaultLocaleText.d.ts +6 -0
- package/dist/react-components/i18n/defaultLocaleText.js +176 -0
- package/dist/react-components/i18n/index.d.ts +4 -0
- package/dist/react-components/i18n/index.js +19 -0
- package/dist/react-components/i18n/localePresets.d.ts +10 -0
- package/dist/react-components/i18n/localePresets.js +366 -0
- package/dist/react-components/i18n/porygonI18n.types.d.ts +169 -0
- package/dist/react-components/layout/MainNavItems/MainNavItems.js +13 -13
- package/dist/react-components/tables/EFWTable/EFWTable.d.ts +2 -5
- package/dist/react-components/tables/EFWTable/EFWTable.js +916 -525
- package/dist/react-components/tables/EFWTable/EFWTable.types.d.ts +256 -62
- package/dist/react-components/tables/EFWTable/components/EFWTableBody/EFWTableBody.d.ts +5 -1
- package/dist/react-components/tables/EFWTable/components/EFWTableBody/EFWTableBody.js +97 -52
- package/dist/react-components/tables/EFWTable/components/EFWTableBody/EFWTableBody.types.d.ts +4 -1
- package/dist/react-components/tables/EFWTable/components/EFWTableCell/EFWTableCell.d.ts +1 -12
- package/dist/react-components/tables/EFWTable/components/EFWTableCell/EFWTableCell.js +47 -22
- package/dist/react-components/tables/EFWTable/components/EFWTableCell/EFWTableCell.types.d.ts +13 -0
- package/dist/react-components/tables/EFWTable/components/EFWTableCommandBar/EFWTableCommandBar.d.ts +1 -1
- package/dist/react-components/tables/EFWTable/components/EFWTableCommandBar/EFWTableCommandBar.js +94 -69
- package/dist/react-components/tables/EFWTable/components/EFWTableCommandBar/EFWTableCommandBar.types.d.ts +7 -16
- package/dist/react-components/tables/EFWTable/components/EFWTableCommandBar/index.d.ts +1 -1
- package/dist/react-components/tables/EFWTable/components/EFWTableHeader/EFWTableHeader.d.ts +1 -1
- package/dist/react-components/tables/EFWTable/components/EFWTableHeader/EFWTableHeader.js +218 -83
- package/dist/react-components/tables/EFWTable/components/EFWTableHeader/EFWTableHeader.types.d.ts +3 -0
- package/dist/react-components/tables/EFWTable/components/EFWTableOverlay/EFWTableOverlay.js +90 -88
- package/dist/react-components/tables/EFWTable/components/EFWTableOverlay/EFWTableOverlay.types.d.ts +5 -0
- package/dist/react-components/tables/EFWTable/components/EFWTableRow/EFWTableRow.d.ts +1 -18
- package/dist/react-components/tables/EFWTable/components/EFWTableRow/EFWTableRow.js +83 -45
- package/dist/react-components/tables/EFWTable/components/EFWTableRow/EFWTableRow.types.d.ts +23 -0
- package/dist/react-components/tables/EFWTable/hooks/useDefaultAddButton/useDefaultAddButton.d.ts +2 -1
- package/dist/react-components/tables/EFWTable/hooks/useDefaultAddButton/useDefaultAddButton.js +65 -48
- package/dist/react-components/tables/EFWTable/hooks/useDefaultDeleteButton/useDefaultDeleteButton.d.ts +2 -1
- package/dist/react-components/tables/EFWTable/hooks/useDefaultDeleteButton/useDefaultDeleteButton.js +71 -48
- package/dist/react-components/tables/EFWTable/hooks/useDefaultFilterButton/useDefaultFilterButton.d.ts +17 -0
- package/dist/react-components/tables/EFWTable/hooks/useDefaultFilterButton/useDefaultFilterButton.js +255 -0
- package/dist/react-components/tables/EFWTable/hooks/useDefaultUpdateButton/useDefaultUpdateButton.d.ts +2 -1
- package/dist/react-components/tables/EFWTable/hooks/useDefaultUpdateButton/useDefaultUpdateButton.js +72 -52
- package/dist/react-components/tables/EFWTable/hooks/useStableColumnRenderers/useStableColumnRenderers.d.ts +10 -0
- package/dist/react-components/tables/EFWTable/hooks/useStableColumnRenderers/useStableColumnRenderers.js +28 -0
- package/dist/react-components/tables/EFWTable/hooks/useTableController/useTableController.js +151 -115
- package/dist/react-components/tables/EFWTable/hooks/useTableSelection/useTableSelection.d.ts +1 -1
- package/dist/react-components/tables/EFWTable/hooks/useTableSelection/useTableSelection.js +100 -53
- package/dist/react-components/tables/EFWTable/hooks/useTableSelection/useTableSelection.types.d.ts +5 -1
- package/dist/react-components/tables/EFWTable/index.d.ts +4 -1
- package/dist/react-components/tables/EFWTable/index.js +7 -5
- package/dist/react-components/tables/EFWTable/utils/CellRenderer/CellRenderer.js +26 -23
- package/dist/react-components/tables/EFWTable/utils/cache.d.ts +1 -8
- package/dist/react-components/tables/EFWTable/utils/cache.js +40 -49
- package/dist/react-components/tables/EFWTable/utils/filterFunctions.d.ts +16 -0
- package/dist/react-components/tables/EFWTable/utils/filterFunctions.js +52 -0
- package/dist/react-components/tables/EFWTable/utils/hashing.d.ts +2 -2
- package/dist/react-components/tables/EFWTable/utils/hashing.js +2 -2
- package/package.json +49 -22
- package/dist/react-components/fields/EFWAttachments/EFWAttachments.js +0 -125
- package/dist/react-components/fields/EFWAttachments/EFWAttachmentsCard/EFWAttachmentsCard.js +0 -107
- package/dist/react-components/fields/EFWAttachments/EFWAttachmentsCard/index.d.ts +0 -1
- package/dist/react-components/fields/EFWAttachments/index.d.ts +0 -2
- package/dist/react-components/fields/EFWAttachments/index.js +0 -4
- package/dist/react-components/fields/EFWAttachmentsField/EFWAttachmentsField.js +0 -57
- package/dist/react-components/fields/EFWAttachmentsField/index.d.ts +0 -2
- package/dist/react-components/fields/EFWAttachmentsField/index.js +0 -4
- package/dist/react-components/fields/EFWDatePicker/EFWDatePicker.js +0 -114
- package/dist/react-components/fields/EFWDatePicker/EFWDatePicker.utils.d.ts +0 -24
- package/dist/react-components/fields/EFWDatePicker/EFWDatePicker.utils.js +0 -90
- package/dist/react-components/fields/EFWDatePicker/index.d.ts +0 -2
- package/dist/react-components/fields/EFWDatePicker/index.js +0 -4
- package/dist/react-components/fields/EFWDatePickerField/EFWDatePickerField.js +0 -65
- package/dist/react-components/fields/EFWDatePickerField/EFWDatePickerField.types.d.ts +0 -7
- package/dist/react-components/fields/EFWDatePickerField/index.d.ts +0 -2
- package/dist/react-components/fields/EFWDatePickerField/index.js +0 -4
- package/dist/react-components/fields/EFWField/EFWField.js +0 -96
- package/dist/react-components/fields/EFWField/EFWField.utils.js +0 -17
- package/dist/react-components/fields/EFWInput/EFWInput.d.ts +0 -26
- package/dist/react-components/fields/EFWInput/EFWInput.js +0 -119
- package/dist/react-components/fields/EFWInput/EFWInput.utils.d.ts +0 -20
- package/dist/react-components/fields/EFWInput/EFWInput.utils.js +0 -83
- package/dist/react-components/fields/EFWInput/index.d.ts +0 -2
- package/dist/react-components/fields/EFWInput/index.js +0 -4
- package/dist/react-components/fields/EFWInputField/EFWInputField.js +0 -73
- package/dist/react-components/fields/EFWInputField/EFWInputField.utils.d.ts +0 -1
- package/dist/react-components/fields/EFWInputField/EFWInputField.utils.js +0 -0
- package/dist/react-components/fields/EFWInputField/index.d.ts +0 -2
- package/dist/react-components/fields/EFWInputField/index.js +0 -4
- package/dist/react-components/fields/EFWNumberInput/EFWNumberInput.js +0 -198
- package/dist/react-components/fields/EFWNumberInput/EFWNumberInput.utils.js +0 -76
- package/dist/react-components/fields/EFWNumberInput/index.d.ts +0 -2
- package/dist/react-components/fields/EFWNumberInput/index.js +0 -4
- package/dist/react-components/fields/EFWNumberInputField/EFWNumberInputField.js +0 -67
- package/dist/react-components/fields/EFWNumberInputField/EFWNumberInputField.utils.d.ts +0 -1
- package/dist/react-components/fields/EFWNumberInputField/EFWNumberInputField.utils.js +0 -0
- package/dist/react-components/fields/EFWNumberInputField/index.d.ts +0 -2
- package/dist/react-components/fields/EFWNumberInputField/index.js +0 -4
- package/dist/react-components/fields/EFWSwitch/EFWSwitch.js +0 -55
- package/dist/react-components/fields/EFWSwitch/index.d.ts +0 -2
- package/dist/react-components/fields/EFWSwitch/index.js +0 -4
- package/dist/react-components/fields/EFWSwitchField/EFWSwitchField.js +0 -55
- package/dist/react-components/fields/EFWSwitchField/index.d.ts +0 -2
- package/dist/react-components/fields/EFWSwitchField/index.js +0 -4
- package/dist/react-components/fields/EFWTagPicker/EFWTagPicker.js +0 -244
- package/dist/react-components/fields/EFWTagPicker/index.d.ts +0 -2
- package/dist/react-components/fields/EFWTagPicker/index.js +0 -4
- package/dist/react-components/fields/EFWTagPickerField/EFWTagPickerField.js +0 -74
- package/dist/react-components/fields/EFWTagPickerField/EFWTagPickerField.utils.d.ts +0 -1
- package/dist/react-components/fields/EFWTagPickerField/EFWTagPickerField.utils.js +0 -0
- package/dist/react-components/fields/EFWTagPickerField/index.d.ts +0 -2
- package/dist/react-components/fields/EFWTagPickerField/index.js +0 -4
- package/dist/react-components/fields/EFWTextArea/EFWTextArea.js +0 -105
- package/dist/react-components/fields/EFWTextArea/EFWTextArea.utils.d.ts +0 -1
- package/dist/react-components/fields/EFWTextArea/EFWTextArea.utils.js +0 -0
- package/dist/react-components/fields/EFWTextArea/index.d.ts +0 -2
- package/dist/react-components/fields/EFWTextArea/index.js +0 -4
- package/dist/react-components/fields/EFWTextAreaField/EFWTextAreaField.js +0 -71
- package/dist/react-components/fields/EFWTextAreaField/EFWTextAreaField.utils.d.ts +0 -1
- package/dist/react-components/fields/EFWTextAreaField/EFWTextAreaField.utils.js +0 -0
- package/dist/react-components/fields/EFWTextAreaField/index.d.ts +0 -2
- package/dist/react-components/fields/EFWTextAreaField/index.js +0 -4
- package/dist/react-components/fields/types.d.ts +0 -1
- package/dist/react-components/fields/types.js +0 -0
- package/dist/utils/htmlConverter.d.ts +0 -15
- package/dist/utils/htmlConverter.js +0 -12
- /package/dist/react-components/fields/{EFWAttachments → Attachments}/EFWAttachments.d.ts +0 -0
- /package/dist/react-components/fields/{EFWAttachmentsField → Attachments}/EFWAttachmentsField.d.ts +0 -0
- /package/dist/react-components/fields/{EFWDatePickerField → DatePicker}/EFWDatePickerField.d.ts +0 -0
- /package/dist/react-components/fields/{EFWInputField → Input}/EFWInputField.d.ts +0 -0
- /package/dist/react-components/fields/{EFWNumberInput → NumberInput}/EFWNumberInput.d.ts +0 -0
- /package/dist/react-components/fields/{EFWNumberInputField → NumberInput}/EFWNumberInputField.d.ts +0 -0
- /package/dist/react-components/fields/{EFWSwitch → Switch}/EFWSwitch.d.ts +0 -0
- /package/dist/react-components/fields/{EFWSwitchField → Switch}/EFWSwitchField.d.ts +0 -0
- /package/dist/react-components/fields/{EFWTagPicker → TagPicker}/EFWTagPicker.d.ts +0 -0
- /package/dist/react-components/fields/{EFWTagPickerField → TagPicker}/EFWTagPickerField.d.ts +0 -0
- /package/dist/react-components/fields/{EFWTextArea → TextArea}/EFWTextArea.d.ts +0 -0
- /package/dist/react-components/fields/{EFWTextAreaField → TextArea}/EFWTextAreaField.d.ts +0 -0
- /package/dist/react-components/fields/{EFWField → _shared/EFWField}/EFWField.d.ts +0 -0
- /package/dist/react-components/fields/{EFWField → _shared/EFWField}/EFWField.utils.d.ts +0 -0
- /package/dist/react-components/fields/{EFWField → _shared/EFWField}/index.d.ts +0 -0
- /package/dist/react-components/fields/{EFWField → _shared/EFWField}/index.js +0 -0
- /package/dist/{react-components/fields/EFWAttachments/EFWAttachmentsCard/index.js → vite-raw.d.js} +0 -0
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { jsx as t, Fragment as pe, jsxs as V } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as y, useState as C, useMemo as q, useEffect as T, useCallback as u } from "react";
|
|
3
|
-
import { makeStyles as ue, tokens as r, useTagPickerFilter as fe, TagPickerOption as R, Avatar as ge, Spinner as me, mergeClasses as be, TagPicker as he, TagPickerControl as Ce, TagPickerGroup as Se, Tag as Oe, TagPickerInput as ke, Button as ye, TagPickerList as Te, Text as xe } from "@fluentui/react-components";
|
|
4
|
-
import { CollectionsEmpty20Regular as Pe, Eraser20Regular as ve } from "@fluentui/react-icons";
|
|
5
|
-
const E = [], Ne = ue({
|
|
6
|
-
efwTagPickerControlError: {
|
|
7
|
-
backgroundColor: r.colorPaletteRedBackground1,
|
|
8
|
-
"::after": {
|
|
9
|
-
borderBottomColor: r.colorPaletteRedBorder2,
|
|
10
|
-
borderBottomStyle: "solid",
|
|
11
|
-
borderBottomWidth: "2px"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
efwTagPickerControl: {
|
|
15
|
-
"& [disabled]": {
|
|
16
|
-
backgroundColor: r.colorNeutralBackground3,
|
|
17
|
-
color: r.colorNeutralForeground2,
|
|
18
|
-
"&::placeholder": {
|
|
19
|
-
color: "transparent"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
// Afectar el span que contiene el input disabled
|
|
23
|
-
// Aumentar especificidad repitiendo el selector
|
|
24
|
-
"&&:has([disabled])": {
|
|
25
|
-
backgroundColor: r.colorNeutralBackground3,
|
|
26
|
-
borderTopColor: r.colorNeutralStrokeDisabled,
|
|
27
|
-
borderBottomColor: r.colorNeutralStrokeDisabled,
|
|
28
|
-
borderLeftColor: r.colorNeutralStrokeDisabled,
|
|
29
|
-
borderRightColor: r.colorNeutralStrokeDisabled,
|
|
30
|
-
"& button": {
|
|
31
|
-
borderBottomColor: r.colorNeutralStrokeDisabled,
|
|
32
|
-
borderTopColor: r.colorNeutralStrokeDisabled,
|
|
33
|
-
borderLeftColor: r.colorNeutralStrokeDisabled,
|
|
34
|
-
borderRightColor: r.colorNeutralStrokeDisabled,
|
|
35
|
-
paddingRight: "5px",
|
|
36
|
-
"& .fui-Tag__dismissIcon": {
|
|
37
|
-
display: "none"
|
|
38
|
-
//visibility: 'hidden'
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}), De = (w) => {
|
|
44
|
-
const {
|
|
45
|
-
placeholder: Q = "Selecciona una opción",
|
|
46
|
-
noMatchesMessage: W = "No se encontraron coincidencias",
|
|
47
|
-
loadingMessage: G = "Buscando información...",
|
|
48
|
-
className: J = "",
|
|
49
|
-
minQueryLength: f = 0,
|
|
50
|
-
options: a = E,
|
|
51
|
-
hidden: Y = !1,
|
|
52
|
-
disabled: D = !1,
|
|
53
|
-
editable: H = !0,
|
|
54
|
-
selectedOptions: L = E,
|
|
55
|
-
defaultSelectedOptions: x = E,
|
|
56
|
-
noPopover: U = !1,
|
|
57
|
-
tagSize: X = "medium",
|
|
58
|
-
tagShape: Z = "rounded",
|
|
59
|
-
tagAppearance: $ = "brand",
|
|
60
|
-
onChange: S,
|
|
61
|
-
beforeRenderOptions: g,
|
|
62
|
-
multiple: M = !0,
|
|
63
|
-
validationState: z = "none",
|
|
64
|
-
validationMessage: K,
|
|
65
|
-
setParentComponentState: P
|
|
66
|
-
} = w, ee = y(z), oe = y(K), [l, A] = C(""), i = w.selectedOptions !== void 0, I = (i ? L : x) ?? [], [te, v] = C(I), s = i ? L ?? [] : te, d = q(() => s.map((e) => e.key), [s]), [c, m] = C([]), [re, N] = C(!1), [b, O] = C(!1), p = y(), k = y(
|
|
67
|
-
Object.fromEntries(I.map((e) => [e.key, e]))
|
|
68
|
-
), _ = q(
|
|
69
|
-
() => x ?? [],
|
|
70
|
-
[x]
|
|
71
|
-
);
|
|
72
|
-
T(() => {
|
|
73
|
-
s.forEach((e) => {
|
|
74
|
-
k.current[e.key] = e;
|
|
75
|
-
});
|
|
76
|
-
}, [s]);
|
|
77
|
-
const j = Ne(), ne = u((e) => (s.find((n) => n.key === e) || k.current[e])?.text || e, [s]);
|
|
78
|
-
T(() => {
|
|
79
|
-
typeof a == "function" && l.length < f && b && O(!1);
|
|
80
|
-
}, [l, f, a, b]), T(() => b ? (p.current?.abort(), p.current = new AbortController(), (async () => {
|
|
81
|
-
if (typeof a != "function") {
|
|
82
|
-
const o = g ? g(a) : a;
|
|
83
|
-
m(o);
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
P?.(ee.current, oe.current);
|
|
87
|
-
try {
|
|
88
|
-
N(!0), m([]);
|
|
89
|
-
const o = await a(l, { signal: p.current.signal }), n = g ? g(o) : o;
|
|
90
|
-
m(n);
|
|
91
|
-
} catch (o) {
|
|
92
|
-
p.current?.signal.aborted || (console.error("Error loading options:", o), m([]), P?.("error", JSON.stringify(o)));
|
|
93
|
-
} finally {
|
|
94
|
-
p.current?.signal.aborted || N(!1);
|
|
95
|
-
}
|
|
96
|
-
})(), () => p.current?.abort()) : void 0, [b, a, l, g, P, f]);
|
|
97
|
-
const ae = u(() => {
|
|
98
|
-
i || v([]), S?.([]);
|
|
99
|
-
}, [i, S]), le = u((e, o) => {
|
|
100
|
-
if (o.open && typeof a == "function" && l.length < f) {
|
|
101
|
-
O(!1);
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
o.open && typeof a == "function" && (N(!0), m([])), O(o.open);
|
|
105
|
-
}, [a, l, f]), se = u((e, o) => {
|
|
106
|
-
if (o.value === "no-matches") return;
|
|
107
|
-
let n;
|
|
108
|
-
M ? n = o.selectedOptions : (n = o.selectedOptions.slice(-1), O(!1)), A("");
|
|
109
|
-
const F = n.map((h) => {
|
|
110
|
-
const B = c.find((de) => de.key === h) || k.current[h];
|
|
111
|
-
return B && (k.current[h] = B), B || { key: h, text: h };
|
|
112
|
-
});
|
|
113
|
-
i || v(F), S?.(F);
|
|
114
|
-
}, [c, S, M, i]), ie = fe({
|
|
115
|
-
// La consulta actual ingresada por el usuario para filtrar opciones.
|
|
116
|
-
query: l,
|
|
117
|
-
// Lista de claves (como strings) de las opciones disponibles, obtenidas de 'availableOptions'.
|
|
118
|
-
options: c.map((e) => e.key.toString()),
|
|
119
|
-
// Elemento a mostrar cuando no hay opciones disponibles.
|
|
120
|
-
noOptionsElement: re ? (
|
|
121
|
-
// Si está cargando ('isLoading' es true), muestra un spinner pequeño.
|
|
122
|
-
/* @__PURE__ */ t(
|
|
123
|
-
me,
|
|
124
|
-
{
|
|
125
|
-
style: { height: "30px" },
|
|
126
|
-
size: "extra-tiny",
|
|
127
|
-
appearance: "primary",
|
|
128
|
-
label: {
|
|
129
|
-
size: "small",
|
|
130
|
-
children: G
|
|
131
|
-
// Mensaje como "Buscando información...".
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
)
|
|
135
|
-
) : (
|
|
136
|
-
// Si no está cargando y no hay opciones, muestra un mensaje de "sin coincidencias".
|
|
137
|
-
/* @__PURE__ */ t(
|
|
138
|
-
R,
|
|
139
|
-
{
|
|
140
|
-
value: "no-matches",
|
|
141
|
-
media: /* @__PURE__ */ t(Pe, {}),
|
|
142
|
-
children: W
|
|
143
|
-
}
|
|
144
|
-
)
|
|
145
|
-
),
|
|
146
|
-
/**
|
|
147
|
-
* Función para renderizar una opción individual en la lista.
|
|
148
|
-
* @param {string} optionKey - Clave de la opción a renderizar.
|
|
149
|
-
* @returns {JSX.Element} - Elemento JSX que representa la opción.
|
|
150
|
-
*/
|
|
151
|
-
renderOption: u((e) => {
|
|
152
|
-
const o = c.find((n) => n.key === e);
|
|
153
|
-
return o ? /* @__PURE__ */ t(
|
|
154
|
-
R,
|
|
155
|
-
{
|
|
156
|
-
secondaryContent: o.secondaryContent || "",
|
|
157
|
-
media: /* @__PURE__ */ t(ge, { shape: "square", "aria-hidden": !0, name: o.text, color: "colorful" }),
|
|
158
|
-
value: o.key,
|
|
159
|
-
children: o.text
|
|
160
|
-
},
|
|
161
|
-
o.key
|
|
162
|
-
) : (
|
|
163
|
-
// Si no se encuentra la opción, renderiza una versión básica con solo la clave.
|
|
164
|
-
/* @__PURE__ */ t(R, { value: e, children: e }, e)
|
|
165
|
-
);
|
|
166
|
-
}, [c]),
|
|
167
|
-
// Dependencia: se recrea si 'availableOptions' cambia.
|
|
168
|
-
/**
|
|
169
|
-
* Función de filtrado para determinar qué opciones mostrar.
|
|
170
|
-
* @param {string} optionKey - Clave de la opción a evaluar.
|
|
171
|
-
* @returns {boolean} - True si la opción debe mostrarse, false si no.
|
|
172
|
-
*/
|
|
173
|
-
filter: u((e) => {
|
|
174
|
-
const o = c.find((n) => n.key === e);
|
|
175
|
-
return o ? !d.includes(e) && o.text.toLowerCase().includes(l.toLowerCase()) : !1;
|
|
176
|
-
}, [c, d, l])
|
|
177
|
-
});
|
|
178
|
-
if (Y) return null;
|
|
179
|
-
const ce = be(
|
|
180
|
-
J,
|
|
181
|
-
j.efwTagPickerControl,
|
|
182
|
-
z === "error" && j.efwTagPickerControlError
|
|
183
|
-
);
|
|
184
|
-
return T(() => {
|
|
185
|
-
i || v(_);
|
|
186
|
-
}, [i, _]), /* @__PURE__ */ t(pe, { children: H ? /* @__PURE__ */ V(
|
|
187
|
-
he,
|
|
188
|
-
{
|
|
189
|
-
open: b,
|
|
190
|
-
size: X,
|
|
191
|
-
disabled: D,
|
|
192
|
-
onOptionSelect: se,
|
|
193
|
-
onOpenChange: le,
|
|
194
|
-
selectedOptions: d,
|
|
195
|
-
noPopover: U,
|
|
196
|
-
children: [
|
|
197
|
-
/* @__PURE__ */ V(
|
|
198
|
-
Ce,
|
|
199
|
-
{
|
|
200
|
-
className: ce,
|
|
201
|
-
secondaryAction: !D && d.length ? /* @__PURE__ */ t(
|
|
202
|
-
ye,
|
|
203
|
-
{
|
|
204
|
-
appearance: "transparent",
|
|
205
|
-
size: "small",
|
|
206
|
-
shape: "rounded",
|
|
207
|
-
onClick: ae,
|
|
208
|
-
icon: /* @__PURE__ */ t(ve, {}),
|
|
209
|
-
iconPosition: "before"
|
|
210
|
-
}
|
|
211
|
-
) : void 0,
|
|
212
|
-
children: [
|
|
213
|
-
/* @__PURE__ */ t(Se, { "aria-label": "Selected items", children: d.map((e) => /* @__PURE__ */ t(
|
|
214
|
-
Oe,
|
|
215
|
-
{
|
|
216
|
-
style: { paddingTop: "0px", paddingBottom: "0px" },
|
|
217
|
-
shape: Z,
|
|
218
|
-
appearance: $,
|
|
219
|
-
value: e,
|
|
220
|
-
children: ne(e)
|
|
221
|
-
},
|
|
222
|
-
e
|
|
223
|
-
)) }),
|
|
224
|
-
/* @__PURE__ */ t(
|
|
225
|
-
ke,
|
|
226
|
-
{
|
|
227
|
-
placeholder: d.length ? "" : Q,
|
|
228
|
-
autoComplete: "off",
|
|
229
|
-
"aria-label": "Select items",
|
|
230
|
-
value: l,
|
|
231
|
-
onChange: (e) => A(e.target.value)
|
|
232
|
-
}
|
|
233
|
-
)
|
|
234
|
-
]
|
|
235
|
-
}
|
|
236
|
-
),
|
|
237
|
-
/* @__PURE__ */ t(Te, { children: ie })
|
|
238
|
-
]
|
|
239
|
-
}
|
|
240
|
-
) : /* @__PURE__ */ t(xe, { style: s.length ? void 0 : { opacity: 0.7 }, children: s.length ? s.map((e) => e.text).join(", ") : "Sin datos disponibles" }) });
|
|
241
|
-
};
|
|
242
|
-
export {
|
|
243
|
-
De as EFWTagPicker
|
|
244
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { EFWField as L } from "../EFWField/EFWField.js";
|
|
3
|
-
import { EFWTagPicker as O } from "../EFWTagPicker/EFWTagPicker.js";
|
|
4
|
-
const q = (n) => {
|
|
5
|
-
const {
|
|
6
|
-
title: i,
|
|
7
|
-
// description,
|
|
8
|
-
infoLabel: o,
|
|
9
|
-
hint: t,
|
|
10
|
-
style: l = {},
|
|
11
|
-
required: d = !1,
|
|
12
|
-
placeholder: r = "Selecciona una opción",
|
|
13
|
-
noMatchesMessage: s = "No se encontraron coincidencias",
|
|
14
|
-
loadingMessage: c = "Buscando información...",
|
|
15
|
-
validationState: g = "none",
|
|
16
|
-
validationMessage: h = "",
|
|
17
|
-
minQueryLength: p = 0,
|
|
18
|
-
options: f = [],
|
|
19
|
-
selectedOptions: m,
|
|
20
|
-
defaultSelectedOptions: u,
|
|
21
|
-
editable: e = !0,
|
|
22
|
-
disabled: b = !1,
|
|
23
|
-
hidden: F = !1,
|
|
24
|
-
noPopover: C = !1,
|
|
25
|
-
multiple: S = !1,
|
|
26
|
-
tagSize: E = "medium",
|
|
27
|
-
tagShape: M = "rounded",
|
|
28
|
-
tagAppearance: P = "brand",
|
|
29
|
-
onChange: W,
|
|
30
|
-
beforeRenderOptions: _,
|
|
31
|
-
onValidationChange: k
|
|
32
|
-
} = n;
|
|
33
|
-
return /* @__PURE__ */ a(
|
|
34
|
-
L,
|
|
35
|
-
{
|
|
36
|
-
hint: t,
|
|
37
|
-
style: l,
|
|
38
|
-
title: i,
|
|
39
|
-
infoLabel: o,
|
|
40
|
-
weightLabel: e ? "regular" : "semibold",
|
|
41
|
-
required: d,
|
|
42
|
-
validationState: g,
|
|
43
|
-
validationMessage: h,
|
|
44
|
-
onValidationChange: k,
|
|
45
|
-
hidden: F,
|
|
46
|
-
children: /* @__PURE__ */ a(
|
|
47
|
-
O,
|
|
48
|
-
{
|
|
49
|
-
editable: e,
|
|
50
|
-
noMatchesMessage: s,
|
|
51
|
-
loadingMessage: c,
|
|
52
|
-
placeholder: r,
|
|
53
|
-
selectedOptions: m,
|
|
54
|
-
defaultSelectedOptions: u,
|
|
55
|
-
minQueryLength: p,
|
|
56
|
-
options: f,
|
|
57
|
-
onChange: (v = []) => {
|
|
58
|
-
W?.(v, "[EFWTagPickerField]: __handleChange__");
|
|
59
|
-
},
|
|
60
|
-
beforeRenderOptions: _,
|
|
61
|
-
disabled: b,
|
|
62
|
-
noPopover: C,
|
|
63
|
-
tagSize: E,
|
|
64
|
-
tagShape: M,
|
|
65
|
-
tagAppearance: P,
|
|
66
|
-
multiple: S
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
};
|
|
72
|
-
export {
|
|
73
|
-
q as EFWTagPickerField
|
|
74
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { jsx as m, Fragment as j } from "react/jsx-runtime";
|
|
2
|
-
import { makeStyles as L, tokens as l, mergeClasses as $, Textarea as U, Text as W } from "@fluentui/react-components";
|
|
3
|
-
import { useId as _, useRef as z, useState as q, useCallback as s, useEffect as h, useLayoutEffect as G } from "react";
|
|
4
|
-
const J = L({
|
|
5
|
-
efwTextArea: {
|
|
6
|
-
"& textarea": {
|
|
7
|
-
maxHeight: "none",
|
|
8
|
-
"&[disabled]": {
|
|
9
|
-
backgroundColor: l.colorNeutralBackground3,
|
|
10
|
-
color: l.colorNeutralForeground3
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
// Afectar el span que contiene el textarea disabled
|
|
14
|
-
"&:has([disabled])": {
|
|
15
|
-
backgroundColor: l.colorNeutralBackground3
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
efwTextAreaError: {
|
|
19
|
-
backgroundColor: l.colorPaletteRedBackground1
|
|
20
|
-
// '& textarea': {
|
|
21
|
-
// maxHeight: 'none',
|
|
22
|
-
// backgroundColor: "var(--colorPaletteRedBackground1)",
|
|
23
|
-
// },
|
|
24
|
-
// '.fui-Textarea': {
|
|
25
|
-
// backgroundColor: "var(--colorPaletteRedBackground1)",
|
|
26
|
-
// borderBottom: "2px solid var(--colorPaletteRedBorder2) !important"
|
|
27
|
-
// },
|
|
28
|
-
// '& textarea::after': {
|
|
29
|
-
// borderBottom: "2px solid var(--colorPaletteRedBorder2) !important"
|
|
30
|
-
// }
|
|
31
|
-
}
|
|
32
|
-
}), x = (i) => i ?? "", X = (i) => {
|
|
33
|
-
const {
|
|
34
|
-
value: u,
|
|
35
|
-
defaultValue: p,
|
|
36
|
-
onKeyDown: C,
|
|
37
|
-
onChange: y,
|
|
38
|
-
editable: S = !0,
|
|
39
|
-
disabled: N = !1,
|
|
40
|
-
autoComplete: A = "off",
|
|
41
|
-
className: E = "",
|
|
42
|
-
placeholder: D,
|
|
43
|
-
maxLength: c = 250,
|
|
44
|
-
size: H,
|
|
45
|
-
validationState: I = "none",
|
|
46
|
-
setParentComponentState: d,
|
|
47
|
-
autoResize: f = !0
|
|
48
|
-
// Nuevo prop con valor por defecto true
|
|
49
|
-
} = i, t = u !== void 0, R = x(t ? u : p), r = x(p), k = J(), v = _(), g = z(null), [B, V] = q(R), b = z(!1), o = t ? x(u) : B, T = s(() => {
|
|
50
|
-
if (!f || !g.current) return;
|
|
51
|
-
const e = g.current;
|
|
52
|
-
e.style.height = "auto", e.style.height = `${e.scrollHeight}px`;
|
|
53
|
-
}, [f]), a = s((e) => {
|
|
54
|
-
e.length > c ? d?.("error", `Por favor introduzca menos de ${c} caracteres.`) : d?.("none", "");
|
|
55
|
-
}, [c, d]);
|
|
56
|
-
h(() => {
|
|
57
|
-
t && a(o);
|
|
58
|
-
}, [t, o, a]), h(() => {
|
|
59
|
-
t || b.current || (b.current = !0, a(o));
|
|
60
|
-
}, [t, o, a]), G(() => {
|
|
61
|
-
T();
|
|
62
|
-
}, [o, T]);
|
|
63
|
-
const F = s((e, w) => {
|
|
64
|
-
if (typeof w.value == "string") {
|
|
65
|
-
const n = w.value ?? "";
|
|
66
|
-
a(n), t || V(n), y?.(n, n);
|
|
67
|
-
}
|
|
68
|
-
}, [a, t, y]), K = s((e) => {
|
|
69
|
-
C?.(e, o);
|
|
70
|
-
}, [C, o]), P = $(
|
|
71
|
-
E,
|
|
72
|
-
k.efwTextArea,
|
|
73
|
-
I === "error" && k.efwTextAreaError
|
|
74
|
-
);
|
|
75
|
-
return h(() => {
|
|
76
|
-
t || (V((e) => e === r ? e : r), a(r));
|
|
77
|
-
}, [t, r, a]), /* @__PURE__ */ m(j, { children: S ? /* @__PURE__ */ m(
|
|
78
|
-
U,
|
|
79
|
-
{
|
|
80
|
-
ref: g,
|
|
81
|
-
className: P,
|
|
82
|
-
id: v,
|
|
83
|
-
name: v,
|
|
84
|
-
placeholder: D,
|
|
85
|
-
disabled: N,
|
|
86
|
-
value: o,
|
|
87
|
-
autoComplete: A,
|
|
88
|
-
autoCorrect: "off",
|
|
89
|
-
autoCapitalize: "off",
|
|
90
|
-
spellCheck: "false",
|
|
91
|
-
onChange: F,
|
|
92
|
-
onKeyDown: K,
|
|
93
|
-
size: H,
|
|
94
|
-
style: {
|
|
95
|
-
resize: f ? "none" : "vertical",
|
|
96
|
-
overflow: "hidden",
|
|
97
|
-
minHeight: "40px"
|
|
98
|
-
// Altura mínima para mantener usabilidad
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
) : /* @__PURE__ */ m(W, { style: o ? void 0 : { opacity: 0.7 }, children: o || "Sin datos disponibles" }) });
|
|
102
|
-
};
|
|
103
|
-
export {
|
|
104
|
-
X as EFWTextArea
|
|
105
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { EFWField as T } from "../EFWField/EFWField.js";
|
|
3
|
-
import { EFWTextArea as V } from "../EFWTextArea/EFWTextArea.js";
|
|
4
|
-
const D = (t) => {
|
|
5
|
-
const {
|
|
6
|
-
title: n,
|
|
7
|
-
infoLabel: o,
|
|
8
|
-
hint: l,
|
|
9
|
-
className: i,
|
|
10
|
-
style: r = {},
|
|
11
|
-
required: d = !1,
|
|
12
|
-
contentBefore: s,
|
|
13
|
-
contentAfter: f,
|
|
14
|
-
maxLength: h = 1e3,
|
|
15
|
-
size: m,
|
|
16
|
-
validationState: c,
|
|
17
|
-
validationMessage: g,
|
|
18
|
-
value: u,
|
|
19
|
-
defaultValue: p,
|
|
20
|
-
editable: e = !0,
|
|
21
|
-
disabled: C = !1,
|
|
22
|
-
hidden: F = !1,
|
|
23
|
-
onChange: b,
|
|
24
|
-
onKeyDown: x,
|
|
25
|
-
autoComplete: v = "off",
|
|
26
|
-
placeholder: A,
|
|
27
|
-
formatPattern: E,
|
|
28
|
-
formatFunction: L,
|
|
29
|
-
onValidationChange: W
|
|
30
|
-
} = t;
|
|
31
|
-
return /* @__PURE__ */ a(
|
|
32
|
-
T,
|
|
33
|
-
{
|
|
34
|
-
className: i,
|
|
35
|
-
style: r,
|
|
36
|
-
title: n,
|
|
37
|
-
infoLabel: o,
|
|
38
|
-
weightLabel: e ? "regular" : "semibold",
|
|
39
|
-
hint: l,
|
|
40
|
-
required: d,
|
|
41
|
-
validationState: c,
|
|
42
|
-
validationMessage: g,
|
|
43
|
-
onValidationChange: W,
|
|
44
|
-
hidden: F,
|
|
45
|
-
children: /* @__PURE__ */ a(
|
|
46
|
-
V,
|
|
47
|
-
{
|
|
48
|
-
value: u,
|
|
49
|
-
defaultValue: p,
|
|
50
|
-
editable: e,
|
|
51
|
-
onChange: (w, y) => {
|
|
52
|
-
b?.(w, y);
|
|
53
|
-
},
|
|
54
|
-
onKeyDown: x,
|
|
55
|
-
maxLength: h,
|
|
56
|
-
size: m,
|
|
57
|
-
disabled: C,
|
|
58
|
-
autoComplete: v,
|
|
59
|
-
placeholder: A,
|
|
60
|
-
contentBefore: s,
|
|
61
|
-
contentAfter: f,
|
|
62
|
-
formatPattern: E,
|
|
63
|
-
formatFunction: L
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
};
|
|
69
|
-
export {
|
|
70
|
-
D as EFWTextAreaField
|
|
71
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Convierte un nodo JSX en un string HTML.
|
|
5
|
-
* @param jsx Nodo JSX o ReactNode a convertir.
|
|
6
|
-
* @returns string con el HTML resultante.
|
|
7
|
-
*/
|
|
8
|
-
export declare function jsxToString(jsx: ReactNode): string;
|
|
9
|
-
/**
|
|
10
|
-
* Convierte un string HTML en JSX utilizando dangerouslySetInnerHTML.
|
|
11
|
-
* Usar con contenido controlado para evitar XSS.
|
|
12
|
-
* @param html String con el HTML.
|
|
13
|
-
* @returns JSX renderizable en React.
|
|
14
|
-
*/
|
|
15
|
-
export declare function stringToJsx(html: string): JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as n, Fragment as t } from "react/jsx-runtime";
|
|
2
|
-
import { renderToStaticMarkup as o } from "react-dom/server";
|
|
3
|
-
function m(r) {
|
|
4
|
-
return o(/* @__PURE__ */ n(t, { children: r }));
|
|
5
|
-
}
|
|
6
|
-
function u(r) {
|
|
7
|
-
return /* @__PURE__ */ n("div", { dangerouslySetInnerHTML: { __html: r } });
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
m as jsxToString,
|
|
11
|
-
u as stringToJsx
|
|
12
|
-
};
|
|
File without changes
|
/package/dist/react-components/fields/{EFWAttachmentsField → Attachments}/EFWAttachmentsField.d.ts
RENAMED
|
File without changes
|
/package/dist/react-components/fields/{EFWDatePickerField → DatePicker}/EFWDatePickerField.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/react-components/fields/{EFWNumberInputField → NumberInput}/EFWNumberInputField.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/react-components/fields/{EFWTagPickerField → TagPicker}/EFWTagPickerField.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{react-components/fields/EFWAttachments/EFWAttachmentsCard/index.js → vite-raw.d.js}
RENAMED
|
File without changes
|