@10x-media/fields 0.1.0-beta.7 → 0.1.0-beta.9
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/CHANGELOG.md +21 -0
- package/LICENSE +21 -21
- package/dist/exports/client.d.ts +7 -1
- package/dist/exports/client.js +6 -1
- package/dist/exports/phone-utils.d.ts +4 -0
- package/dist/exports/phone-utils.js +4 -0
- package/dist/exports/phone.d.ts +6 -0
- package/dist/exports/phone.js +3 -0
- package/dist/exports/rsc.d.ts +3 -1
- package/dist/exports/rsc.js +3 -1
- package/dist/exports/types.d.ts +3 -2
- package/dist/fields/color/client/ColorField.d.ts +2 -0
- package/dist/fields/color/client/ColorField.js +34 -337
- package/dist/fields/color/client/ColorField.js.map +1 -1
- package/dist/fields/color/client/ColorInput.d.ts +44 -0
- package/dist/fields/color/client/ColorInput.js +374 -0
- package/dist/fields/color/client/ColorInput.js.map +1 -0
- package/dist/fields/color/valueIssue.js +23 -0
- package/dist/fields/color/valueIssue.js.map +1 -0
- package/dist/fields/icon/rsc/IconFieldServer.js +1 -1
- package/dist/fields/icon/rsc/IconFieldServer.js.map +1 -1
- package/dist/fields/icon/rsc/IconLibrarySelectServer.js +1 -1
- package/dist/fields/icon/rsc/IconLibrarySelectServer.js.map +1 -1
- package/dist/fields/icon/shared/iconLabel.js +1 -1
- package/dist/fields/icon/shared/iconLabel.js.map +1 -1
- package/dist/fields/measurement/client/MeasurementField.d.ts +2 -0
- package/dist/fields/measurement/client/MeasurementField.js +29 -345
- package/dist/fields/measurement/client/MeasurementField.js.map +1 -1
- package/dist/fields/measurement/client/MeasurementInput.d.ts +42 -0
- package/dist/fields/measurement/client/MeasurementInput.js +327 -0
- package/dist/fields/measurement/client/MeasurementInput.js.map +1 -0
- package/dist/fields/measurement/client/useMeasurementModel.d.ts +19 -0
- package/dist/fields/measurement/client/useMeasurementModel.js +85 -0
- package/dist/fields/measurement/client/useMeasurementModel.js.map +1 -0
- package/dist/fields/phoneNumber/client/CountryFlag.d.ts +16 -0
- package/dist/fields/phoneNumber/client/CountryFlag.js +40 -0
- package/dist/fields/phoneNumber/client/CountryFlag.js.map +1 -0
- package/dist/fields/phoneNumber/client/CountryPicker.d.ts +21 -0
- package/dist/fields/phoneNumber/client/CountryPicker.js +255 -0
- package/dist/fields/phoneNumber/client/CountryPicker.js.map +1 -0
- package/dist/fields/phoneNumber/client/PhoneNumberField.d.ts +26 -0
- package/dist/fields/phoneNumber/client/PhoneNumberField.js +318 -0
- package/dist/fields/phoneNumber/client/PhoneNumberField.js.map +1 -0
- package/dist/fields/phoneNumber/client/editModel.js +86 -0
- package/dist/fields/phoneNumber/client/editModel.js.map +1 -0
- package/dist/fields/phoneNumber/client/phoneNumberField.css +305 -0
- package/dist/fields/phoneNumber/engine/countries.d.ts +36 -0
- package/dist/fields/phoneNumber/engine/countries.js +68 -0
- package/dist/fields/phoneNumber/engine/countries.js.map +1 -0
- package/dist/fields/phoneNumber/engine/draft.d.ts +13 -0
- package/dist/fields/phoneNumber/engine/draft.js +72 -0
- package/dist/fields/phoneNumber/engine/draft.js.map +1 -0
- package/dist/fields/phoneNumber/engine/metadata.d.ts +11 -0
- package/dist/fields/phoneNumber/engine/metadata.js +32 -0
- package/dist/fields/phoneNumber/engine/metadata.js.map +1 -0
- package/dist/fields/phoneNumber/engine/phone.d.ts +37 -0
- package/dist/fields/phoneNumber/engine/phone.js +59 -0
- package/dist/fields/phoneNumber/engine/phone.js.map +1 -0
- package/dist/fields/phoneNumber/options.d.ts +72 -0
- package/dist/fields/phoneNumber/options.js +37 -0
- package/dist/fields/phoneNumber/options.js.map +1 -0
- package/dist/fields/phoneNumber/phoneNumberField.d.ts +14 -0
- package/dist/fields/phoneNumber/phoneNumberField.js +167 -0
- package/dist/fields/phoneNumber/phoneNumberField.js.map +1 -0
- package/dist/fields/phoneNumber/server/PhoneNumberCellServer.d.ts +19 -0
- package/dist/fields/phoneNumber/server/PhoneNumberCellServer.js +73 -0
- package/dist/fields/phoneNumber/server/PhoneNumberCellServer.js.map +1 -0
- package/dist/fields/phoneNumber/server/PhoneNumberFieldServer.d.ts +16 -0
- package/dist/fields/phoneNumber/server/PhoneNumberFieldServer.js +57 -0
- package/dist/fields/phoneNumber/server/PhoneNumberFieldServer.js.map +1 -0
- package/dist/fields/phoneNumber/server/flagsEndpoint.js +51 -0
- package/dist/fields/phoneNumber/server/flagsEndpoint.js.map +1 -0
- package/dist/fields/phoneNumber/server/readPhoneOptions.js +18 -0
- package/dist/fields/phoneNumber/server/readPhoneOptions.js.map +1 -0
- package/dist/fields/phoneNumber/server/resolvePhoneOptionsSafe.js +33 -0
- package/dist/fields/phoneNumber/server/resolvePhoneOptionsSafe.js.map +1 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/dist/translations/ar.js +9 -1
- package/dist/translations/ar.js.map +1 -1
- package/dist/translations/de.js +9 -1
- package/dist/translations/de.js.map +1 -1
- package/dist/translations/en.js +9 -1
- package/dist/translations/en.js.map +1 -1
- package/dist/translations/es.js +9 -1
- package/dist/translations/es.js.map +1 -1
- package/dist/translations/fr.js +9 -1
- package/dist/translations/fr.js.map +1 -1
- package/dist/translations/id.js +9 -1
- package/dist/translations/id.js.map +1 -1
- package/dist/translations/keys.d.ts +8 -0
- package/dist/translations/keys.js +9 -1
- package/dist/translations/keys.js.map +1 -1
- package/dist/translations/ko.js +9 -1
- package/dist/translations/ko.js.map +1 -1
- package/dist/translations/pt.js +9 -1
- package/dist/translations/pt.js.map +1 -1
- package/dist/translations/ru.js +9 -1
- package/dist/translations/ru.js.map +1 -1
- package/dist/translations/uk.js +9 -1
- package/dist/translations/uk.js.map +1 -1
- package/dist/translations/zh.js +9 -1
- package/dist/translations/zh.js.map +1 -1
- package/dist/types.d.ts +22 -1
- package/dist/utils/resolveStaticLabel.js +13 -0
- package/dist/utils/resolveStaticLabel.js.map +1 -0
- package/package.json +16 -4
- package/dist/fields/icon/shared/resolveStaticLabel.js +0 -16
- package/dist/fields/icon/shared/resolveStaticLabel.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @10x-media/fields
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.9
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- `ColorInput` and `MeasurementInput` (`/client`) render the color and measurement rows without a form: controlled `value`/`onChange`, options and presets passed as props, and the same commit, salvage, preset-chip and unit-conversion behavior as the fields, which now wrap them with `useField`. Each reports its own format or bound errors unless the caller passes `error` or `showError`, and `MeasurementInput` defaults `units` and `preferenceKey` from `storageUnit` alone.
|
|
8
|
+
|
|
9
|
+
## 0.1.0-beta.8
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Add `phoneNumberField()`: an international phone number field with a searchable country picker, live as-you-type formatting, and validation and metadata sized to the install via `libphonenumber-js`.
|
|
14
|
+
|
|
15
|
+
- Two storage shapes: `storage: 'object'` (default) is a `group` of `number` + `country`, plus five `virtual: true` subfields (`national`, `international`, `callingCode`, `uri`, `type`) recomputed on every read by a single `afterRead` hook; `storage: 'e164'` is a plain `text` field holding the E.164 string alone. Virtual subfields can't be queried or sorted; filter and sort on `number` or `country` instead.
|
|
16
|
+
- Three validation modes (`'possible'`, `'valid'`, `'mobile'`) and three metadata sets (`'max'`, `'min'`, `'mobile'`) trading bundle size for classification detail. `validation: 'mobile'` needs metadata `'max'` or `'mobile'`; pairing it with `'min'` is rejected as a configuration error rather than silently failing every number, at plugin build time when set on the plugin and at validation time when set on a field.
|
|
17
|
+
- Country handling: `countries` scopes the picker without restricting what parses, validates, and saves; `priorityCountries` pins a subset above the alphabetized rest, optionally headed by `priorityCountriesLabel` (a string or per-locale map; no label means no heading, only the picker's own group divider); `defaultCountry` seeds the picker and calling-code prefix.
|
|
18
|
+
- Flag artwork: `flags: 'svg'` (default) serves real country flags from a new, unauthenticated `/10x-fields/flags/:code` endpoint; `'emoji'` draws a Unicode regional-indicator pair instead (renders as two separate letters on Windows, which ships no flag emoji font); `'none'` shows the ISO code. `fields({ phoneNumber: { serveFlags: false } })` skips mounting the endpoint. `@10x-media/fields/phone` exports `countryFlagSrc(serverURL, apiRoute, code)` so a frontend can build the same URL without hand-rolling its lowercasing and `.svg` suffix.
|
|
19
|
+
- `fields({ phoneNumber: {...} })` sets install-wide defaults (`defaultCountry`, `countries`, `priorityCountries`, `priorityCountriesLabel`, `validation`, `flags`, `cellFormat`, `metadata`, `serveFlags`); a field's own option always wins.
|
|
20
|
+
- `@10x-media/fields/phone/utils` exports the parsing, formatting, and validation engine standalone for frontend use (`parsePhone`, `formatPhone`, `phoneUri`, `detectCountry`, `salvagePhone`, `checkPhone`, `formatAsYouType`, `countryOptions`, `callingCodeFor`, `emojiFlag`, `isKnownCountry`, `isSupported`, `loadMetadata`).
|
|
21
|
+
|
|
22
|
+
Additive: new phone number field family; no changes to any existing field, option, export, or storage shape.
|
|
23
|
+
|
|
3
24
|
## 0.1.0-beta.7
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 10x Media GmbH
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 10x Media GmbH
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/exports/client.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ColorField, ColorFieldProps } from "../fields/color/client/ColorField.js";
|
|
2
|
+
import { ColorInput, ColorInputProps } from "../fields/color/client/ColorInput.js";
|
|
2
3
|
import { ColorPickerPanel } from "../fields/color/client/ColorPickerPanel.js";
|
|
3
4
|
import { ProtectedField } from "../fields/encrypted/components/ProtectedField.js";
|
|
4
5
|
import { RichTextRevealGate } from "../fields/encrypted/components/RichTextRevealGate.js";
|
|
@@ -6,5 +7,10 @@ import { IconField } from "../fields/icon/client/IconFieldClient.js";
|
|
|
6
7
|
import { IconLibrarySelect } from "../fields/icon/client/IconLibrarySelect.js";
|
|
7
8
|
import { MeasurementCell, MeasurementCellProps } from "../fields/measurement/client/MeasurementCell.js";
|
|
8
9
|
import { MeasurementField, MeasurementFieldProps } from "../fields/measurement/client/MeasurementField.js";
|
|
10
|
+
import { MeasurementInputOptions } from "../fields/measurement/client/useMeasurementModel.js";
|
|
11
|
+
import { MeasurementInput, MeasurementInputProps } from "../fields/measurement/client/MeasurementInput.js";
|
|
9
12
|
import { MeasurementUnitsProvider, useMeasurementUnits } from "../fields/measurement/client/MeasurementUnitsProvider.js";
|
|
10
|
-
|
|
13
|
+
import { CountryFlag, CountryFlagProps } from "../fields/phoneNumber/client/CountryFlag.js";
|
|
14
|
+
import { CountryOptionGroups, CountryPicker, CountryPickerProps } from "../fields/phoneNumber/client/CountryPicker.js";
|
|
15
|
+
import { PhoneNumberField, PhoneNumberFieldProps } from "../fields/phoneNumber/client/PhoneNumberField.js";
|
|
16
|
+
export { ColorField, type ColorFieldProps, ColorInput, type ColorInputProps, ColorPickerPanel, CountryFlag, type CountryFlagProps, type CountryOptionGroups, CountryPicker, type CountryPickerProps, IconField, IconLibrarySelect, MeasurementCell, type MeasurementCellProps, MeasurementField, type MeasurementFieldProps, MeasurementInput, type MeasurementInputOptions, type MeasurementInputProps, MeasurementUnitsProvider, PhoneNumberField, type PhoneNumberFieldProps, ProtectedField, RichTextRevealGate, useMeasurementUnits };
|
package/dist/exports/client.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { ColorPickerPanel } from "../fields/color/client/ColorPickerPanel.js";
|
|
3
|
+
import { ColorInput } from "../fields/color/client/ColorInput.js";
|
|
3
4
|
import { ColorField } from "../fields/color/client/ColorField.js";
|
|
4
5
|
import { ProtectedField } from "../fields/encrypted/components/ProtectedField.js";
|
|
5
6
|
import { RichTextRevealGate } from "../fields/encrypted/components/RichTextRevealGate.js";
|
|
@@ -7,5 +8,9 @@ import { IconField } from "../fields/icon/client/IconFieldClient.js";
|
|
|
7
8
|
import { IconLibrarySelect } from "../fields/icon/client/IconLibrarySelect.js";
|
|
8
9
|
import { MeasurementUnitsProvider, useMeasurementUnits } from "../fields/measurement/client/MeasurementUnitsProvider.js";
|
|
9
10
|
import { MeasurementCell } from "../fields/measurement/client/MeasurementCell.js";
|
|
11
|
+
import { MeasurementInput } from "../fields/measurement/client/MeasurementInput.js";
|
|
10
12
|
import { MeasurementField } from "../fields/measurement/client/MeasurementField.js";
|
|
11
|
-
|
|
13
|
+
import { CountryFlag } from "../fields/phoneNumber/client/CountryFlag.js";
|
|
14
|
+
import { CountryPicker } from "../fields/phoneNumber/client/CountryPicker.js";
|
|
15
|
+
import { PhoneNumberField } from "../fields/phoneNumber/client/PhoneNumberField.js";
|
|
16
|
+
export { ColorField, ColorInput, ColorPickerPanel, CountryFlag, CountryPicker, IconField, IconLibrarySelect, MeasurementCell, MeasurementField, MeasurementInput, MeasurementUnitsProvider, PhoneNumberField, ProtectedField, RichTextRevealGate, useMeasurementUnits };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DEFAULT_METADATA_SET, MetadataSet, PhoneMetadata, loadMetadata } from "../fields/phoneNumber/engine/metadata.js";
|
|
2
|
+
import { CountryCode, ParsedPhone, PhoneCheck, PhoneFormat, PhoneOptions, PhoneValidationMode, checkPhone, detectCountry, formatAsYouType, formatPhone, parsePhone, phoneUri, salvagePhone } from "../fields/phoneNumber/engine/phone.js";
|
|
3
|
+
import { CountryOption, KNOWN_COUNTRY_CODES, callingCodeFor, countryOptions, emojiFlag, isKnownCountry, isSupported } from "../fields/phoneNumber/engine/countries.js";
|
|
4
|
+
export { type CountryCode, type CountryOption, DEFAULT_METADATA_SET, KNOWN_COUNTRY_CODES, type MetadataSet, type ParsedPhone, type PhoneCheck, type PhoneFormat, type PhoneMetadata, type PhoneOptions, type PhoneValidationMode, callingCodeFor, checkPhone, countryOptions, detectCountry, emojiFlag, formatAsYouType, formatPhone, isKnownCountry, isSupported, loadMetadata, parsePhone, phoneUri, salvagePhone };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { KNOWN_COUNTRY_CODES, callingCodeFor, countryOptions, emojiFlag, isKnownCountry, isSupported } from "../fields/phoneNumber/engine/countries.js";
|
|
2
|
+
import { DEFAULT_METADATA_SET, loadMetadata } from "../fields/phoneNumber/engine/metadata.js";
|
|
3
|
+
import { checkPhone, detectCountry, formatAsYouType, formatPhone, parsePhone, phoneUri, salvagePhone } from "../fields/phoneNumber/engine/phone.js";
|
|
4
|
+
export { DEFAULT_METADATA_SET, KNOWN_COUNTRY_CODES, callingCodeFor, checkPhone, countryOptions, detectCountry, emojiFlag, formatAsYouType, formatPhone, isKnownCountry, isSupported, loadMetadata, parsePhone, phoneUri, salvagePhone };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MetadataSet } from "../fields/phoneNumber/engine/metadata.js";
|
|
2
|
+
import { CountryCode, PhoneFormat, PhoneValidationMode } from "../fields/phoneNumber/engine/phone.js";
|
|
3
|
+
import { AnyPhoneNumberFieldOptions, FLAGS_PATH, PHONE_CUSTOM_KEY, PhoneFlagMode, PhoneNumberE164FieldOptions, PhoneNumberFieldOptions, PhoneStorageMode, ResolvablePhoneFieldOptions, ResolvedPhoneOptions, countryFlagSrc } from "../fields/phoneNumber/options.js";
|
|
4
|
+
import { PhoneNumberGlobalConfig } from "../types.js";
|
|
5
|
+
import { phoneNumberField } from "../fields/phoneNumber/phoneNumberField.js";
|
|
6
|
+
export { type AnyPhoneNumberFieldOptions, type CountryCode, FLAGS_PATH, type MetadataSet, PHONE_CUSTOM_KEY, type PhoneFlagMode, type PhoneFormat, type PhoneNumberE164FieldOptions, type PhoneNumberFieldOptions, type PhoneNumberGlobalConfig, type PhoneStorageMode, type PhoneValidationMode, type ResolvablePhoneFieldOptions, type ResolvedPhoneOptions, countryFlagSrc, phoneNumberField };
|
package/dist/exports/rsc.d.ts
CHANGED
|
@@ -9,4 +9,6 @@ import { IconFieldServer } from "../fields/icon/rsc/IconFieldServer.js";
|
|
|
9
9
|
import { IconLibrarySelectServer } from "../fields/icon/rsc/IconLibrarySelectServer.js";
|
|
10
10
|
import { MeasurementCellServer } from "../fields/measurement/server/MeasurementCellServer.js";
|
|
11
11
|
import { MeasurementFieldServer } from "../fields/measurement/server/MeasurementFieldServer.js";
|
|
12
|
-
|
|
12
|
+
import { PhoneNumberCellServer } from "../fields/phoneNumber/server/PhoneNumberCellServer.js";
|
|
13
|
+
import { PhoneNumberFieldServer } from "../fields/phoneNumber/server/PhoneNumberFieldServer.js";
|
|
14
|
+
export { ColorCell, ColorFieldServer, type FieldsPluginRegistry, IconCell, IconFieldServer, IconLibrarySelectServer, MeasurementCellServer, MeasurementFieldServer, PhoneNumberCellServer, PhoneNumberFieldServer, ProtectedCell, ProtectedRichText, createRscIcon };
|
package/dist/exports/rsc.js
CHANGED
|
@@ -8,4 +8,6 @@ import { IconFieldServer } from "../fields/icon/rsc/IconFieldServer.js";
|
|
|
8
8
|
import { IconLibrarySelectServer } from "../fields/icon/rsc/IconLibrarySelectServer.js";
|
|
9
9
|
import { MeasurementCellServer } from "../fields/measurement/server/MeasurementCellServer.js";
|
|
10
10
|
import { MeasurementFieldServer } from "../fields/measurement/server/MeasurementFieldServer.js";
|
|
11
|
-
|
|
11
|
+
import { PhoneNumberCellServer } from "../fields/phoneNumber/server/PhoneNumberCellServer.js";
|
|
12
|
+
import { PhoneNumberFieldServer } from "../fields/phoneNumber/server/PhoneNumberFieldServer.js";
|
|
13
|
+
export { ColorCell, ColorFieldServer, IconCell, IconFieldServer, IconLibrarySelectServer, MeasurementCellServer, MeasurementFieldServer, PhoneNumberCellServer, PhoneNumberFieldServer, ProtectedCell, ProtectedRichText, createRscIcon };
|
package/dist/exports/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnyPhoneNumberFieldOptions, PhoneFlagMode, PhoneNumberE164FieldOptions, PhoneNumberFieldOptions, PhoneStorageMode, ResolvablePhoneFieldOptions, ResolvedPhoneOptions } from "../fields/phoneNumber/options.js";
|
|
2
|
+
import { ColorFormat, ColorGlobalConfig, ColorPreset, DecryptFailurePolicy, EncryptedGlobalConfig, FieldsPluginRegistry, FieldsResolverArgs, IconAdapter, IconGlobalConfig, IconManifest, IconMeta, IconNode, IconNodeMap, KeysConfig, PhoneNumberGlobalConfig } from "../types.js";
|
|
2
3
|
import { ColorFieldClientOptions, ColorFieldOptions, ColorLinkedOptions, ColorPresetsResolver, ColorPresetsSource, ResolvedColorPreset } from "../fields/color/options.js";
|
|
3
4
|
import { FieldsPluginOptions } from "../index.js";
|
|
4
|
-
export type { ColorFieldClientOptions, ColorFieldOptions, ColorFormat, ColorGlobalConfig, ColorLinkedOptions, ColorPreset, ColorPresetsResolver, ColorPresetsSource, DecryptFailurePolicy, EncryptedGlobalConfig, FieldsPluginOptions, FieldsPluginRegistry, FieldsResolverArgs, IconAdapter, IconGlobalConfig, IconManifest, IconMeta, IconNode, IconNodeMap, KeysConfig, ResolvedColorPreset };
|
|
5
|
+
export type { AnyPhoneNumberFieldOptions, ColorFieldClientOptions, ColorFieldOptions, ColorFormat, ColorGlobalConfig, ColorLinkedOptions, ColorPreset, ColorPresetsResolver, ColorPresetsSource, DecryptFailurePolicy, EncryptedGlobalConfig, FieldsPluginOptions, FieldsPluginRegistry, FieldsResolverArgs, IconAdapter, IconGlobalConfig, IconManifest, IconMeta, IconNode, IconNodeMap, KeysConfig, PhoneFlagMode, PhoneNumberE164FieldOptions, PhoneNumberFieldOptions, PhoneNumberGlobalConfig, PhoneStorageMode, ResolvablePhoneFieldOptions, ResolvedColorPreset, ResolvedPhoneOptions };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ColorFieldClientOptions, ResolvedColorPreset } from "../options.js";
|
|
2
2
|
import { TextFieldClientProps } from "payload";
|
|
3
3
|
import React from "react";
|
|
4
|
+
|
|
4
5
|
//#region src/fields/color/client/ColorField.d.ts
|
|
5
6
|
type ColorFieldProps = {
|
|
6
7
|
colorOptions: ColorFieldClientOptions;
|
|
7
8
|
presetsLabel?: string;
|
|
8
9
|
resolvedPresets?: ResolvedColorPreset[];
|
|
9
10
|
} & TextFieldClientProps;
|
|
11
|
+
/** `ColorInput` bound to the document form through `useField`, with the field's validation. */
|
|
10
12
|
declare const ColorField: React.FC<ColorFieldProps>;
|
|
11
13
|
//#endregion
|
|
12
14
|
export { ColorField, ColorFieldProps };
|
|
@@ -1,39 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { keys } from "../../../translations/keys.js";
|
|
3
3
|
import { useTranslation as useTranslation$1 } from "../../../translations/useTranslation.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { parseColor } from "../engine/parse.js";
|
|
7
|
-
import { formatColor } from "../engine/format.js";
|
|
8
|
-
import { salvageColor } from "../engine/salvage.js";
|
|
9
|
-
import { isColorSchemeValue } from "../engine/scheme.js";
|
|
10
|
-
import { PRESET_PREFIX } from "../options.js";
|
|
11
|
-
import { applyReferenceAlpha, formatPresetReference, parsePresetReference, presetReferenceIssue, presetReferenceParts } from "../presetReference.js";
|
|
12
|
-
import { derivePresetChip } from "../presetChip.js";
|
|
13
|
-
import { flatValue, swatchBackground } from "../schemeValue.js";
|
|
14
|
-
import { ColorPickerPanel } from "./ColorPickerPanel.js";
|
|
4
|
+
import { colorValueIssue } from "../valueIssue.js";
|
|
5
|
+
import { ColorInput } from "./ColorInput.js";
|
|
15
6
|
import { text } from "payload/shared";
|
|
16
|
-
import {
|
|
7
|
+
import { useField } from "@payloadcms/ui";
|
|
17
8
|
import { mergeFieldStyles } from "@payloadcms/ui/shared";
|
|
18
|
-
import { useCallback,
|
|
19
|
-
import { jsx
|
|
20
|
-
import "./colorField.css";
|
|
9
|
+
import { useCallback, useMemo } from "react";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
11
|
//#region src/fields/color/client/ColorField.tsx
|
|
22
|
-
const
|
|
12
|
+
const NO_PRESETS = [];
|
|
13
|
+
/** `ColorInput` bound to the document form through `useField`, with the field's validation. */
|
|
23
14
|
const ColorField = (props) => {
|
|
24
|
-
const { colorOptions, field, field: { admin: { className, description, placeholder, readOnly: readOnlyFromAdmin } = {}, label, localized, name, required }, path: pathFromProps, presetsLabel, readOnly: readOnlyFromProps, resolvedPresets =
|
|
25
|
-
const {
|
|
15
|
+
const { colorOptions, field, field: { admin: { className, description, placeholder, readOnly: readOnlyFromAdmin } = {}, label, localized, name, required }, path: pathFromProps, presetsLabel, readOnly: readOnlyFromProps, resolvedPresets = NO_PRESETS } = props;
|
|
16
|
+
const { linked } = colorOptions;
|
|
26
17
|
const { t } = useTranslation$1();
|
|
27
18
|
const { customComponents: { AfterInput, BeforeInput, Description, Error: ErrorComponent, Label } = {}, disabled, path, setValue, showError, value } = useField({
|
|
28
19
|
potentiallyStalePath: pathFromProps,
|
|
29
20
|
validate: useCallback((value, options) => {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} else if (!parseColor(value)) return t(keys.invalidColor);
|
|
36
|
-
}
|
|
21
|
+
const issue = colorValueIssue(value, {
|
|
22
|
+
linked,
|
|
23
|
+
presets: resolvedPresets
|
|
24
|
+
});
|
|
25
|
+
if (issue) return t(keys[issue]);
|
|
37
26
|
return text(value, {
|
|
38
27
|
...options,
|
|
39
28
|
name,
|
|
@@ -49,320 +38,28 @@ const ColorField = (props) => {
|
|
|
49
38
|
])
|
|
50
39
|
});
|
|
51
40
|
const isReadOnly = Boolean(readOnlyFromProps || disabled || readOnlyFromAdmin);
|
|
52
|
-
const stringValue = typeof value === "string" ? value : "";
|
|
53
|
-
const reference = linked ? parsePresetReference(stringValue) : null;
|
|
54
|
-
const presetKey = reference?.key ?? null;
|
|
55
|
-
const referenceAlpha = alpha ? reference?.alpha ?? 100 : 100;
|
|
56
|
-
const activePreset = presetKey !== null ? resolvedPresets.find((preset) => preset.key === presetKey) : void 0;
|
|
57
|
-
const presetMissing = presetKey !== null && !activePreset;
|
|
58
|
-
const rawValue = presetKey !== null ? activePreset?.value ?? linkedFallback : stringValue || null;
|
|
59
|
-
const cssValue = flatValue(rawValue);
|
|
60
|
-
const parsed = useMemo(() => cssValue ? parseColor(cssValue) : null, [cssValue]);
|
|
61
|
-
const [displayFormat, setDisplayFormat] = useState(format);
|
|
62
|
-
const displayValue = useMemo(() => {
|
|
63
|
-
if (presetKey !== null || !parsed || displayFormat === format) return stringValue;
|
|
64
|
-
return formatColor(parsed, displayFormat, { alpha });
|
|
65
|
-
}, [
|
|
66
|
-
alpha,
|
|
67
|
-
displayFormat,
|
|
68
|
-
format,
|
|
69
|
-
parsed,
|
|
70
|
-
presetKey,
|
|
71
|
-
stringValue
|
|
72
|
-
]);
|
|
73
|
-
const [draft, setDraft] = useState(displayValue);
|
|
74
|
-
const editingRef = useRef(false);
|
|
75
|
-
useEffect(() => {
|
|
76
|
-
if (!editingRef.current) setDraft(displayValue);
|
|
77
|
-
}, [displayValue]);
|
|
78
|
-
const [chipDismissed, setChipDismissed] = useState(false);
|
|
79
|
-
const chip = useMemo(() => derivePresetChip({
|
|
80
|
-
editing: chipDismissed,
|
|
81
|
-
linked,
|
|
82
|
-
presets: resolvedPresets,
|
|
83
|
-
value: stringValue
|
|
84
|
-
}), [
|
|
85
|
-
chipDismissed,
|
|
86
|
-
linked,
|
|
87
|
-
resolvedPresets,
|
|
88
|
-
stringValue
|
|
89
|
-
]);
|
|
90
|
-
const debounceRef = useRef(null);
|
|
91
|
-
useEffect(() => () => {
|
|
92
|
-
if (debounceRef.current) clearTimeout(debounceRef.current);
|
|
93
|
-
}, []);
|
|
94
|
-
const lastValidRef = useRef(null);
|
|
95
|
-
useEffect(() => {
|
|
96
|
-
if (stringValue === "") return;
|
|
97
|
-
if (presetKey ? true : parseColor(stringValue) !== null) lastValidRef.current = stringValue;
|
|
98
|
-
}, [presetKey, stringValue]);
|
|
99
|
-
const commitText = useCallback((raw) => {
|
|
100
|
-
let normalized = null;
|
|
101
|
-
if (linked && raw.startsWith("preset:")) {
|
|
102
|
-
const parts = presetReferenceParts(raw);
|
|
103
|
-
if (parts) normalized = formatPresetReference(parts.key, alpha ? parts.alpha : 100);
|
|
104
|
-
else if (raw.length > 7) normalized = raw;
|
|
105
|
-
} else {
|
|
106
|
-
const parsedRaw = parseColor(raw);
|
|
107
|
-
if (parsedRaw) normalized = formatColor(parsedRaw, format, { alpha });
|
|
108
|
-
}
|
|
109
|
-
const resolution = resolveCommitValue({
|
|
110
|
-
draft: raw,
|
|
111
|
-
isClearable,
|
|
112
|
-
lastValid: lastValidRef.current,
|
|
113
|
-
parsed: normalized
|
|
114
|
-
});
|
|
115
|
-
lastValidRef.current = resolution.lastValid;
|
|
116
|
-
setValue(resolution.value);
|
|
117
|
-
return resolution.reverted;
|
|
118
|
-
}, [
|
|
119
|
-
alpha,
|
|
120
|
-
format,
|
|
121
|
-
isClearable,
|
|
122
|
-
linked,
|
|
123
|
-
setValue
|
|
124
|
-
]);
|
|
125
|
-
const onTextChange = useCallback((event) => {
|
|
126
|
-
const raw = event.target.value;
|
|
127
|
-
editingRef.current = true;
|
|
128
|
-
setChipDismissed(true);
|
|
129
|
-
setDraft(raw);
|
|
130
|
-
if (debounceRef.current) clearTimeout(debounceRef.current);
|
|
131
|
-
debounceRef.current = setTimeout(() => commitText(raw), 250);
|
|
132
|
-
}, [commitText]);
|
|
133
|
-
const onTextBlur = useCallback(() => {
|
|
134
|
-
if (debounceRef.current) {
|
|
135
|
-
clearTimeout(debounceRef.current);
|
|
136
|
-
debounceRef.current = null;
|
|
137
|
-
}
|
|
138
|
-
if (editingRef.current) {
|
|
139
|
-
editingRef.current = false;
|
|
140
|
-
const salvaged = !(linked && draft.startsWith("preset:")) && draft.trim() !== "" && !parseColor(draft) ? salvageColor(draft) : null;
|
|
141
|
-
if (commitText(salvaged ?? draft)) setDraft(displayValue);
|
|
142
|
-
else if (salvaged !== null) {
|
|
143
|
-
const parsedSalvaged = parseColor(salvaged);
|
|
144
|
-
setDraft(parsedSalvaged ? formatColor(parsedSalvaged, displayFormat, { alpha }) : salvaged);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
setChipDismissed(false);
|
|
148
|
-
}, [
|
|
149
|
-
alpha,
|
|
150
|
-
commitText,
|
|
151
|
-
displayFormat,
|
|
152
|
-
displayValue,
|
|
153
|
-
draft,
|
|
154
|
-
linked
|
|
155
|
-
]);
|
|
156
|
-
const onTextKeyDown = useCallback((event) => {
|
|
157
|
-
if (!chip || isReadOnly) return;
|
|
158
|
-
if (event.key === "Backspace" || event.key === "Delete") {
|
|
159
|
-
event.preventDefault();
|
|
160
|
-
setDraft("");
|
|
161
|
-
if (isClearable) setValue(null);
|
|
162
|
-
else {
|
|
163
|
-
editingRef.current = true;
|
|
164
|
-
setChipDismissed(true);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}, [
|
|
168
|
-
chip,
|
|
169
|
-
isClearable,
|
|
170
|
-
isReadOnly,
|
|
171
|
-
setValue
|
|
172
|
-
]);
|
|
173
|
-
const commitCss = useCallback((css) => {
|
|
174
|
-
const parsedCss = parseColor(css);
|
|
175
|
-
if (parsedCss) setValue(formatColor(parsedCss, format, { alpha }));
|
|
176
|
-
}, [
|
|
177
|
-
alpha,
|
|
178
|
-
format,
|
|
179
|
-
setValue
|
|
180
|
-
]);
|
|
181
|
-
const initialHsva = useMemo(() => {
|
|
182
|
-
if (!parsed) return null;
|
|
183
|
-
const rgb = toRgb(parsed);
|
|
184
|
-
const hsv = rgbToHsv(rgb);
|
|
185
|
-
return {
|
|
186
|
-
a: presetKey !== null ? referenceAlpha / 100 : rgb.alpha,
|
|
187
|
-
h: hsv.h,
|
|
188
|
-
s: hsv.s,
|
|
189
|
-
v: hsv.v
|
|
190
|
-
};
|
|
191
|
-
}, [
|
|
192
|
-
parsed,
|
|
193
|
-
presetKey,
|
|
194
|
-
referenceAlpha
|
|
195
|
-
]);
|
|
196
|
-
const commitReferenceAlpha = useCallback((alpha100) => {
|
|
197
|
-
if (presetKey === null) return;
|
|
198
|
-
setValue(formatPresetReference(presetKey, alpha100));
|
|
199
|
-
}, [presetKey, setValue]);
|
|
200
|
-
const contentRef = useRef(null);
|
|
201
|
-
const [contentClipped, setContentClipped] = useState(false);
|
|
202
|
-
const measureClip = useCallback(() => {
|
|
203
|
-
const el = contentRef.current;
|
|
204
|
-
if (el) setContentClipped(el.scrollWidth > el.clientWidth + 1);
|
|
205
|
-
}, []);
|
|
206
|
-
useEffect(measureClip);
|
|
207
|
-
useEffect(() => {
|
|
208
|
-
const el = contentRef.current;
|
|
209
|
-
if (!el) return;
|
|
210
|
-
const observer = new ResizeObserver(measureClip);
|
|
211
|
-
observer.observe(el);
|
|
212
|
-
return () => observer.disconnect();
|
|
213
|
-
}, [measureClip]);
|
|
214
41
|
const styles = useMemo(() => mergeFieldStyles(field), [field]);
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
className: [
|
|
235
|
-
fieldBaseClass,
|
|
236
|
-
baseClass,
|
|
237
|
-
className,
|
|
238
|
-
showError && "error",
|
|
239
|
-
isReadOnly && "read-only"
|
|
240
|
-
].filter(Boolean).join(" "),
|
|
42
|
+
return /* @__PURE__ */ jsx(ColorInput, {
|
|
43
|
+
AfterInput,
|
|
44
|
+
BeforeInput,
|
|
45
|
+
className,
|
|
46
|
+
Description,
|
|
47
|
+
description,
|
|
48
|
+
Error: ErrorComponent,
|
|
49
|
+
Label,
|
|
50
|
+
label,
|
|
51
|
+
localized,
|
|
52
|
+
onChange: setValue,
|
|
53
|
+
options: colorOptions,
|
|
54
|
+
path,
|
|
55
|
+
placeholder: typeof placeholder === "string" ? placeholder : void 0,
|
|
56
|
+
presets: resolvedPresets,
|
|
57
|
+
presetsLabel,
|
|
58
|
+
readOnly: isReadOnly,
|
|
59
|
+
required,
|
|
60
|
+
showError,
|
|
241
61
|
style: styles,
|
|
242
|
-
|
|
243
|
-
CustomComponent: Label,
|
|
244
|
-
Fallback: /* @__PURE__ */ jsx(FieldLabel, {
|
|
245
|
-
label,
|
|
246
|
-
localized,
|
|
247
|
-
path,
|
|
248
|
-
required
|
|
249
|
-
})
|
|
250
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
251
|
-
className: `${fieldBaseClass}__wrap`,
|
|
252
|
-
children: [
|
|
253
|
-
/* @__PURE__ */ jsx(RenderCustomComponent, {
|
|
254
|
-
CustomComponent: ErrorComponent,
|
|
255
|
-
Fallback: /* @__PURE__ */ jsx(FieldError, {
|
|
256
|
-
path,
|
|
257
|
-
showError
|
|
258
|
-
})
|
|
259
|
-
}),
|
|
260
|
-
BeforeInput,
|
|
261
|
-
/* @__PURE__ */ jsxs("div", {
|
|
262
|
-
className: `${baseClass}__container`,
|
|
263
|
-
children: [
|
|
264
|
-
isReadOnly ? /* @__PURE__ */ jsx("span", {
|
|
265
|
-
className: `${baseClass}__swatch-button ${baseClass}__swatch-button--static`,
|
|
266
|
-
children: swatch
|
|
267
|
-
}) : /* @__PURE__ */ jsx(Popup, {
|
|
268
|
-
button: swatch,
|
|
269
|
-
buttonClassName: `${baseClass}__swatch-button`,
|
|
270
|
-
buttonType: "custom",
|
|
271
|
-
caret: false,
|
|
272
|
-
className: `${baseClass}__popup`,
|
|
273
|
-
horizontalAlign: "left",
|
|
274
|
-
render: ({ close }) => /* @__PURE__ */ jsx(ColorPickerPanel, {
|
|
275
|
-
activeReference: reference,
|
|
276
|
-
alphaEnabled: alpha,
|
|
277
|
-
close,
|
|
278
|
-
displayFormat,
|
|
279
|
-
enableEyedropper,
|
|
280
|
-
initial: initialHsva,
|
|
281
|
-
onPickAlpha: commitReferenceAlpha,
|
|
282
|
-
onPickCss: commitCss,
|
|
283
|
-
onPickPreset: (preset) => {
|
|
284
|
-
if (linked) setValue(`${PRESET_PREFIX}${preset.key}`);
|
|
285
|
-
else {
|
|
286
|
-
const flat = flatValue(preset.value);
|
|
287
|
-
if (flat) commitCss(flat);
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
presetMissing,
|
|
291
|
-
presets: resolvedPresets,
|
|
292
|
-
presetsLabel: presetsLabel ?? t(keys.presets),
|
|
293
|
-
setDisplayFormat
|
|
294
|
-
}),
|
|
295
|
-
size: "fit-content",
|
|
296
|
-
verticalAlign: "bottom"
|
|
297
|
-
}),
|
|
298
|
-
/* @__PURE__ */ jsxs("div", {
|
|
299
|
-
className: [`${baseClass}__content`, contentClipped && `${baseClass}__content--fade`].filter(Boolean).join(" "),
|
|
300
|
-
ref: contentRef,
|
|
301
|
-
children: [
|
|
302
|
-
chip ? /* @__PURE__ */ jsxs("span", {
|
|
303
|
-
className: `${baseClass}__chip`,
|
|
304
|
-
children: [
|
|
305
|
-
/* @__PURE__ */ jsxs("span", {
|
|
306
|
-
className: `${baseClass}__chip-swatch ${baseClass}__checker`,
|
|
307
|
-
children: [swatchCss ? /* @__PURE__ */ jsx("span", {
|
|
308
|
-
className: `${baseClass}__chip-color`,
|
|
309
|
-
style: { background: swatchCss }
|
|
310
|
-
}) : null, chip.missing && !swatchCss ? /* @__PURE__ */ jsx("span", {
|
|
311
|
-
className: `${baseClass}__chip-color`,
|
|
312
|
-
"data-missing": "true"
|
|
313
|
-
}) : null]
|
|
314
|
-
}),
|
|
315
|
-
/* @__PURE__ */ jsx("span", {
|
|
316
|
-
className: `${baseClass}__chip-label`,
|
|
317
|
-
children: chip.label
|
|
318
|
-
}),
|
|
319
|
-
alpha && chip.alpha !== 100 ? /* @__PURE__ */ jsxs("span", {
|
|
320
|
-
className: `${baseClass}__chip-alpha`,
|
|
321
|
-
children: [chip.alpha, "%"]
|
|
322
|
-
}) : null
|
|
323
|
-
]
|
|
324
|
-
}) : null,
|
|
325
|
-
/* @__PURE__ */ jsx("input", {
|
|
326
|
-
className: `${baseClass}__input`,
|
|
327
|
-
id: `field-${path?.replace(/\./g, "__")}`,
|
|
328
|
-
name: path,
|
|
329
|
-
onBlur: onTextBlur,
|
|
330
|
-
onChange: onTextChange,
|
|
331
|
-
onKeyDown: onTextKeyDown,
|
|
332
|
-
placeholder: chip || typeof placeholder !== "string" ? void 0 : placeholder,
|
|
333
|
-
readOnly: isReadOnly,
|
|
334
|
-
type: "text",
|
|
335
|
-
value: chip ? "" : draft
|
|
336
|
-
}),
|
|
337
|
-
/* @__PURE__ */ jsx("span", {
|
|
338
|
-
"aria-hidden": "true",
|
|
339
|
-
className: `${baseClass}__badge`,
|
|
340
|
-
children: chip ? t(keys.preset) : displayFormat
|
|
341
|
-
})
|
|
342
|
-
]
|
|
343
|
-
}),
|
|
344
|
-
isClearable && !required && !isReadOnly && stringValue !== "" ? /* @__PURE__ */ jsx("button", {
|
|
345
|
-
"aria-label": t(keys.clearColor),
|
|
346
|
-
className: `${baseClass}__clear`,
|
|
347
|
-
onClick: () => {
|
|
348
|
-
setDraft("");
|
|
349
|
-
setValue(null);
|
|
350
|
-
},
|
|
351
|
-
type: "button",
|
|
352
|
-
children: /* @__PURE__ */ jsx(XIcon, {})
|
|
353
|
-
}) : null
|
|
354
|
-
]
|
|
355
|
-
}),
|
|
356
|
-
AfterInput,
|
|
357
|
-
/* @__PURE__ */ jsx(RenderCustomComponent, {
|
|
358
|
-
CustomComponent: Description,
|
|
359
|
-
Fallback: /* @__PURE__ */ jsx(FieldDescription, {
|
|
360
|
-
description,
|
|
361
|
-
path
|
|
362
|
-
})
|
|
363
|
-
})
|
|
364
|
-
]
|
|
365
|
-
})]
|
|
62
|
+
value
|
|
366
63
|
});
|
|
367
64
|
};
|
|
368
65
|
//#endregion
|