@povio/ui 3.4.0-rc.38 → 3.4.0-rc.39
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/dist/{Autocomplete-BI6FtdoW.d.ts → Autocomplete-CWiSRejc.d.ts} +2 -2
- package/dist/{Checkbox-CNkicnJS.d.ts → Checkbox-BIZoNFiX.d.ts} +2 -2
- package/dist/{CheckboxGroup-DZh_fLq5.d.ts → CheckboxGroup-U4poUqlk.d.ts} +2 -2
- package/dist/{DatePicker-DeG6fCcH.d.ts → DatePicker-IZwn9hAk.d.ts} +2 -2
- package/dist/{DateRangePicker-Cv68Vaea.d.ts → DateRangePicker-DLuRwuw1.d.ts} +2 -2
- package/dist/{DateTimePicker-C6bq3q29.d.ts → DateTimePicker-Co6UXSVA.d.ts} +2 -2
- package/dist/{FileUpload-Bq9rj-1Y.d.ts → FileUpload-B1L78k7y.d.ts} +2 -2
- package/dist/{FileUploadContainer-B1eKCPgg.d.ts → FileUploadContainer-CLPREIin.d.ts} +1 -1
- package/dist/{Form-Btgksbz7.d.ts → Form-fI9WMU9d.d.ts} +7 -7
- package/dist/{InputUpload-DPsdXnOa.d.ts → InputUpload-RPnj3b1Y.d.ts} +2 -2
- package/dist/Inputs-a9CXrVRS.d.ts +13 -0
- package/dist/{NumberInput-Dg6hLL09.d.ts → NumberInput-gqs4vYJf.d.ts} +2 -2
- package/dist/{NumberRangeInput-wnGLWvN2.d.ts → NumberRangeInput-CMHI9yks.d.ts} +2 -2
- package/dist/{PasswordInput-BOB31j1R.d.ts → PasswordInput-CcoU8g5c.d.ts} +3 -3
- package/dist/{QuerySelect-DizouUye.d.ts → QuerySelect-D_vXxG1S.d.ts} +3 -3
- package/dist/{RadioGroup-CF2UQgUc.d.ts → RadioGroup-Cs718lkQ.d.ts} +2 -2
- package/dist/{Segment-DK6lc8YX.d.ts → Segment-C_Vbrl9f.d.ts} +2 -2
- package/dist/{Select-C8oFyP8m.d.ts → Select-DIso4xMG.d.ts} +2 -2
- package/dist/{SelectBase-BJHmul89.d.ts → SelectBase-72enBk-1.d.ts} +2 -2
- package/dist/{Slider-CYGltM5_.d.ts → Slider-Baw84mjN.d.ts} +2 -2
- package/dist/{TextArea-Daj_Q1rm.d.ts → TextArea-vdp0uSFx.d.ts} +2 -2
- package/dist/{TextEditor-DLRbKQc5.d.ts → TextEditor-B7vdoTeN.d.ts} +2 -2
- package/dist/{TextInput-C4nfMF8d.d.ts → TextInput-Dxq5XKdp.d.ts} +2 -2
- package/dist/{TimePicker-Cmz97DBj.d.ts → TimePicker-B_atBC0F.d.ts} +2 -2
- package/dist/{Toggle-C4NzfhYl.d.ts → Toggle-CaBvb0l0.d.ts} +2 -2
- package/dist/{autocomplete-UphTTkS4.d.ts → autocomplete-CQqxdk49.d.ts} +2 -2
- package/dist/{checkbox-DY-2CBBN.d.ts → checkbox-Dx7xlf6g.d.ts} +1 -1
- package/dist/{checkbox-group-6Rcs6tZV.d.ts → checkbox-group-C4afLmyg.d.ts} +1 -1
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-range-picker.d.ts +1 -1
- package/dist/components/date-time-picker.d.ts +1 -1
- package/dist/components/file-upload-container.d.ts +2 -2
- package/dist/components/file-upload.d.ts +2 -2
- package/dist/components/input-upload.d.ts +1 -1
- package/dist/components/number-input.d.ts +1 -1
- package/dist/components/number-range-input.d.ts +1 -1
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/query-autocomplete.d.ts +3 -3
- package/dist/components/query-autocomplete.js +4 -3
- package/dist/components/query-select.d.ts +1 -1
- package/dist/components/query-select.js +4 -3
- package/dist/components/radio-group.d.ts +1 -1
- package/dist/components/segment.d.ts +2 -2
- package/dist/components/select.d.ts +2 -2
- package/dist/components/slider.d.ts +1 -1
- package/dist/components/text-area.d.ts +1 -1
- package/dist/components/text-input.d.ts +1 -1
- package/dist/components/time-picker.d.ts +1 -1
- package/dist/components/toggle.d.ts +1 -1
- package/dist/config/theme-context.d.ts +1 -1
- package/dist/config/theme-context.js +1 -1
- package/dist/config/ui-config.d.ts +1 -1
- package/dist/{date-picker-BYdmoeCA.d.ts → date-picker-BT9DHqNa.d.ts} +1 -1
- package/dist/{date-range-picker-DNXQEi8K.d.ts → date-range-picker-VxlXnCVb.d.ts} +1 -1
- package/dist/{date-time-picker-DDMrga9d.d.ts → date-time-picker-HxtcGQjQ.d.ts} +1 -1
- package/dist/{dynamicInputs-D8j0ko24.js → dynamicInputs-0GjoOaz5.js} +14 -14
- package/dist/{dynamicInputs-CccdH-Ub.d.ts → dynamicInputs-Be0THQ7Z.d.ts} +99 -103
- package/dist/{dynamicInputs-4JB41qRW.js → dynamicInputs-bhlywWDy.js} +4 -4
- package/dist/{file-upload-CTRjAmXJ.d.ts → file-upload-CNJFJ3Jx.d.ts} +2 -2
- package/dist/{fileUpload.types-DAPGUiNJ.d.ts → fileUpload.types-BMs6Zkhr.d.ts} +2 -2
- package/dist/{form.binding-DWlFTecs.d.ts → form.binding-QO3Py45C.d.ts} +6 -3
- package/dist/{form.types-B9Vp8q2g.d.ts → form.types-CefwT7Po.d.ts} +1 -1
- package/dist/hooks/use-filters.d.ts +1 -1
- package/dist/hooks/use-filters.js +1 -1
- package/dist/hooks/use-local-storage.d.ts +1 -1
- package/dist/index.d.ts +47 -47
- package/dist/index.js +5 -5
- package/dist/{input-upload-D7bB0OTh.d.ts → input-upload-D3IM2ZuK.d.ts} +1 -1
- package/dist/{number-input-BtQFDlS1.d.ts → number-input-nwfbc3kN.d.ts} +1 -1
- package/dist/{number-range-input-BG2xxkmT.d.ts → number-range-input-BxoPQzi8.d.ts} +1 -1
- package/dist/{password-input-qbDKPJXN.d.ts → password-input-BEneLWqN.d.ts} +1 -1
- package/dist/{query-autocomplete-Wyffk38N.d.ts → query-autocomplete-rqGMbEP9.d.ts} +2 -2
- package/dist/{query-select-C5aXABf0.d.ts → query-select-DbQpRcE3.d.ts} +2 -2
- package/dist/{queryAutocomplete.types-B2k1Dbpj.d.ts → queryAutocomplete.types-Cnn4GjUo.d.ts} +3 -3
- package/dist/{radio-group-rT7SDzMI.d.ts → radio-group-Cc6b39Jt.d.ts} +1 -1
- package/dist/rhf/autocomplete.d.ts +2 -2
- package/dist/rhf/checkbox-group.d.ts +2 -2
- package/dist/rhf/checkbox.d.ts +2 -2
- package/dist/rhf/date-picker.d.ts +2 -2
- package/dist/rhf/date-range-picker.d.ts +2 -2
- package/dist/rhf/date-time-picker.d.ts +2 -2
- package/dist/rhf/file-upload.d.ts +2 -2
- package/dist/rhf/input-upload.d.ts +2 -2
- package/dist/rhf/inputs.d.ts +1 -1
- package/dist/rhf/inputs.js +1 -1
- package/dist/rhf/number-input.d.ts +2 -2
- package/dist/rhf/number-range-input.d.ts +2 -2
- package/dist/rhf/password-input.d.ts +2 -2
- package/dist/rhf/query-autocomplete.d.ts +1 -1
- package/dist/rhf/query-select.d.ts +1 -1
- package/dist/rhf/radio-group.d.ts +2 -2
- package/dist/rhf/segment.d.ts +2 -2
- package/dist/rhf/select.d.ts +2 -2
- package/dist/rhf/slider.d.ts +2 -2
- package/dist/rhf/text-area.d.ts +2 -2
- package/dist/rhf/text-editor.d.ts +2 -2
- package/dist/rhf/text-input.d.ts +2 -2
- package/dist/rhf/time-picker.d.ts +2 -2
- package/dist/rhf/toggle.d.ts +2 -2
- package/dist/rhf.d.ts +47 -47
- package/dist/rhf.js +5 -5
- package/dist/{segment-oh4z5h5S.d.ts → segment-Csrt70e1.d.ts} +1 -1
- package/dist/{segment.types-CW-stocu.d.ts → segment.types-BAFG_n38.d.ts} +2 -2
- package/dist/{select-BurKoPIP.d.ts → select-v-_bJmJ_.d.ts} +2 -2
- package/dist/{slider-CPcjmgXV.d.ts → slider-B2wS9JNA.d.ts} +1 -1
- package/dist/tanstack/autocomplete.d.ts +1 -1
- package/dist/tanstack/checkbox-group.d.ts +1 -1
- package/dist/tanstack/checkbox.d.ts +1 -1
- package/dist/tanstack/date-picker.d.ts +1 -1
- package/dist/tanstack/date-range-picker.d.ts +1 -1
- package/dist/tanstack/date-time-picker.d.ts +1 -1
- package/dist/tanstack/file-upload.d.ts +2 -2
- package/dist/tanstack/form.d.ts +2 -2
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/input-upload.d.ts +1 -1
- package/dist/tanstack/inputs.d.ts +2 -2
- package/dist/tanstack/inputs.js +1 -1
- package/dist/tanstack/number-input.d.ts +1 -1
- package/dist/tanstack/number-range-input.d.ts +1 -1
- package/dist/tanstack/password-input.d.ts +1 -1
- package/dist/tanstack/query-select.d.ts +1 -1
- package/dist/tanstack/radio-group.d.ts +1 -1
- package/dist/tanstack/segment.d.ts +2 -2
- package/dist/tanstack/select.d.ts +1 -1
- package/dist/tanstack/slider.d.ts +1 -1
- package/dist/tanstack/table.d.ts +1 -1
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack/text-area.d.ts +1 -1
- package/dist/tanstack/text-editor.d.ts +1 -1
- package/dist/tanstack/text-input.d.ts +1 -1
- package/dist/tanstack/time-picker.d.ts +1 -1
- package/dist/tanstack/toggle.d.ts +1 -1
- package/dist/tanstack.d.ts +32 -32
- package/dist/tanstack.js +6 -6
- package/dist/{text-area-CCDmHkAZ.d.ts → text-area-CYY-d5HB.d.ts} +1 -1
- package/dist/{text-editor-BD-5Q4VD.d.ts → text-editor-Bz57chW2.d.ts} +1 -1
- package/dist/text-editor.d.ts +1 -1
- package/dist/{text-input-CdZKbMu3.d.ts → text-input-CkMv3VpB.d.ts} +1 -1
- package/dist/{theme.context-rPpAYJZo.d.ts → theme.context-B10jqjvZ.d.ts} +3 -3
- package/dist/{theme.context-CCXz56lV.js → theme.context-B3wQDJ-i.js} +2 -2
- package/dist/{time-picker-D3gWP1hd.d.ts → time-picker-CjqmM5sQ.d.ts} +1 -1
- package/dist/{toggle-DsRL_hSk.d.ts → toggle-BYNFK_xQ.d.ts} +1 -1
- package/dist/{useFilters-Cc_lW3jH.js → useFilters-20jpzc29.js} +5 -5
- package/dist/{useFilters-6IOuvBTm.d.ts → useFilters-BxRScJdn.d.ts} +2 -2
- package/dist/{useFormAutosave-MWfz07Xf.js → useFormAutosave-CBtT6V83.js} +4 -4
- package/dist/{useLocalStorage-kcEdRxqC.d.ts → useLocalStorage-DGsBUCT6.d.ts} +2 -2
- package/dist/{useTableColumnConfig-jYZYcSlm.js → useTableColumnConfig-DzdaxZ50.js} +11 -11
- package/dist/{useTableNav-B_mH8Lcl.d.ts → useTableNav-DZjPiQUb.d.ts} +17 -17
- package/dist/zod.utils-DrrPDT9v.js +24 -0
- package/package.json +4 -4
- package/dist/Inputs-BJ7TDMHF.d.ts +0 -13
- package/dist/schemas-BkfyFvBp.js +0 -4004
- package/dist/schemas-CAtYiHoz.d.ts +0 -2127
- package/dist/zod.utils-Nz_Tbo_v.js +0 -24
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { x as Key } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
3
|
-
import { n as GroupedSelectControlProps, o as SelectBaseProps, r as GroupedSelectProps, t as DefaultInitialSelectItem } from "./SelectBase-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
|
+
import { n as GroupedSelectControlProps, o as SelectBaseProps, r as GroupedSelectProps, t as DefaultInitialSelectItem } from "./SelectBase-72enBk-1.js";
|
|
4
4
|
import { s as OmitDiscriminatedUnion } from "./common-UBFya8WY.js";
|
|
5
5
|
import { ReactElement } from "react";
|
|
6
6
|
//#region src/components/inputs/Selection/Autocomplete/Autocomplete.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as CheckboxProps$1 } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
3
|
import { t as CheckboxVariantProps } from "./checkbox.cva-Caaf2Ysq.js";
|
|
4
4
|
import { t as FormFieldErrorProps } from "./FormFieldError-BT4uxbKY.js";
|
|
5
|
-
import { t as ControlProps } from "./form.types-
|
|
5
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
6
6
|
import { ComponentType, ReactElement, Ref, SVGProps } from "react";
|
|
7
7
|
//#region src/components/inputs/Checkbox/Checkbox.d.ts
|
|
8
8
|
interface CheckboxBaseProps extends FormFieldErrorProps, CheckboxVariantProps, Omit<CheckboxProps$1, "className"> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as CheckboxGroupProps$1 } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
3
|
import { t as CheckboxVariantProps } from "./checkbox.cva-Caaf2Ysq.js";
|
|
4
|
-
import { t as ControlProps } from "./form.types-
|
|
4
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
5
5
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
6
6
|
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
7
7
|
import { ReactElement, Ref } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { y as DatePickerStateOptions } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
3
|
-
import { t as ControlProps } from "./form.types-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
4
4
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
5
5
|
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
6
6
|
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-B7yVoI9Y.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as DateValue$1 } from "./types-BT18i837.js";
|
|
2
2
|
import { b as DateRangePickerStateOptions } from "./types-ZbFfCz06.js";
|
|
3
|
-
import { n as FieldValues } from "./form.binding-
|
|
4
|
-
import { t as ControlProps } from "./form.types-
|
|
3
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
4
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
5
5
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
6
6
|
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
7
7
|
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-B7yVoI9Y.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as DateValue } from "./types-BT18i837.js";
|
|
2
2
|
import { y as DatePickerStateOptions } from "./types-ZbFfCz06.js";
|
|
3
|
-
import { n as FieldValues } from "./form.binding-
|
|
4
|
-
import { t as ControlProps } from "./form.types-
|
|
3
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
4
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
5
5
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
6
6
|
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
7
7
|
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-B7yVoI9Y.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as FieldValues } from "./form.binding-
|
|
2
|
-
import { o as FileUploadProps } from "./fileUpload.types-
|
|
1
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
2
|
+
import { o as FileUploadProps } from "./fileUpload.types-BMs6Zkhr.js";
|
|
3
3
|
//#region src/components/inputs/File/FileUpload.d.ts
|
|
4
4
|
declare const FileUploadComponent: <TFieldValues extends FieldValues = FieldValues>(props: FileUploadProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare const FileUpload: typeof FileUploadComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as FileUploadContainerProps } from "./fileUpload.types-
|
|
1
|
+
import { i as FileUploadContainerProps } from "./fileUpload.types-BMs6Zkhr.js";
|
|
2
2
|
//#region src/components/inputs/File/FileUploadContainer.d.ts
|
|
3
3
|
declare const FileUploadContainer: import("react").MemoExoticComponent<(props: FileUploadContainerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
4
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { c as InputComponentProps, i as DefaultComponentType, r as AllowedComponentType, u as InputDefBaseProps } from "./dynamicInputs-
|
|
3
|
-
import { c as UIForm, l as UseFormProps, o as FormSubmitErrorHandler, s as FormSubmitHandler } from "./form.binding-DWlFTecs.js";
|
|
1
|
+
import { c as UIForm, l as UseFormProps, o as FormSubmitErrorHandler, s as FormSubmitHandler } from "./form.binding-QO3Py45C.js";
|
|
2
|
+
import { c as InputComponentProps, i as DefaultComponentType, r as AllowedComponentType, u as InputDefBaseProps } from "./dynamicInputs-Be0THQ7Z.js";
|
|
4
3
|
import { DependencyList, ReactNode } from "react";
|
|
4
|
+
import { z } from "zod";
|
|
5
5
|
//#region src/hooks/useAutosave.d.ts
|
|
6
6
|
interface UseAutosaveProps<TFieldValues extends Record<string, unknown>, TTransformedValues = TFieldValues, TResponse = unknown> {
|
|
7
7
|
form: UIForm<TFieldValues>;
|
|
@@ -32,11 +32,11 @@ type FieldProps<TProps = {}> = {
|
|
|
32
32
|
label: string;
|
|
33
33
|
placeholder?: string;
|
|
34
34
|
} & TProps;
|
|
35
|
-
type FieldComponentProps<TSchema extends ZodObject<any>, K extends keyof
|
|
35
|
+
type FieldComponentProps<TSchema extends z.ZodObject<any>, K extends keyof z.infer<TSchema>, T extends AllowedComponentType<TSchema["shape"][K]> | undefined = undefined> = FieldProps<InputDefBaseProps<InputComponentProps<T extends AllowedComponentType<TSchema["shape"][K]> ? T : DefaultComponentType<TSchema["shape"][K]>>>> & {
|
|
36
36
|
inputType?: T extends AllowedComponentType<TSchema["shape"][K]> ? T : never;
|
|
37
37
|
};
|
|
38
|
-
type FieldComponents<TSchema extends ZodObject<any>> = { [K in keyof Required<
|
|
39
|
-
interface FormProps<TSchema extends ZodObject<any>, TSchemaType extends Record<string, any> =
|
|
38
|
+
type FieldComponents<TSchema extends z.ZodObject<any>> = { [K in keyof Required<z.infer<TSchema>> as Capitalize<K & string>]: <T extends AllowedComponentType<TSchema["shape"][K]> | undefined = undefined>(props: FieldComponentProps<TSchema, K, T>) => ReactNode; };
|
|
39
|
+
interface FormProps<TSchema extends z.ZodObject<any>, TSchemaType extends Record<string, any> = z.infer<TSchema>> {
|
|
40
40
|
form: UIForm<TSchemaType>;
|
|
41
41
|
schema: TSchema;
|
|
42
42
|
onSubmit: FormSubmitHandler<TSchemaType>;
|
|
@@ -44,6 +44,6 @@ interface FormProps<TSchema extends ZodObject<any>, TSchemaType extends Record<s
|
|
|
44
44
|
className?: string;
|
|
45
45
|
children: (components: FieldComponents<TSchema>) => ReactNode;
|
|
46
46
|
}
|
|
47
|
-
declare function Form<TSchema extends ZodObject<any>>({ form, schema, onSubmit, onError, className, children }: FormProps<TSchema>): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
declare function Form<TSchema extends z.ZodObject<any>>({ form, schema, onSubmit, onError, className, children }: FormProps<TSchema>): import("react/jsx-runtime").JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { useAutosave as i, UseFormAutosaveProps as n, useFormAutosave as r, Form as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as DropZoneProps, o as FileTriggerProps } from "./types-ZbFfCz06.js";
|
|
2
2
|
import { n as StyleMergeUtils, t as UIOverrides } from "./uiOverrides.context-BdokYcGO.js";
|
|
3
3
|
import "./button.cva-zMNkoZH8.js";
|
|
4
|
-
import { n as FieldValues } from "./form.binding-
|
|
5
|
-
import { t as ControlProps } from "./form.types-
|
|
4
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
5
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
6
6
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
7
7
|
import { t as InputSizeProps } from "./input.cva-CfgCOIQW.js";
|
|
8
8
|
import { Ref } from "react";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { c as UIForm } from "./form.binding-QO3Py45C.js";
|
|
2
|
+
import { l as InputDef } from "./dynamicInputs-Be0THQ7Z.js";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
//#region src/components/inputs/Inputs/Inputs.d.ts
|
|
6
|
+
interface InputsProps<TSchema extends z.ZodObject<any>, TSchemaType extends Record<string, any> = z.infer<TSchema>> {
|
|
7
|
+
form: UIForm<TSchemaType>;
|
|
8
|
+
inputDefs: Array<InputDef<TSchemaType>>;
|
|
9
|
+
children?: (inputs: Record<keyof TSchemaType, ReactNode>) => ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare function Inputs<TSchema extends z.ZodObject<any>, TSchemaType extends Record<string, any> = z.infer<TSchema>>({ form, inputDefs, children }: InputsProps<TSchema, TSchemaType>): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element[] | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null | undefined;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { InputsProps as n, Inputs as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as NumberFieldProps } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
3
|
-
import { t as ControlProps } from "./form.types-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
4
4
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
5
5
|
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
6
6
|
import { t as InputContentProps } from "./InputContent-jcMfOzpN.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as NumberFieldProps } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
3
|
-
import { t as ControlProps } from "./form.types-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
4
4
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
5
5
|
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
6
6
|
import { FocusEvent, HTMLAttributes, Ref } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as FieldValues } from "./form.binding-
|
|
2
|
-
import { t as ControlProps } from "./form.types-
|
|
3
|
-
import { i as TextInputProps } from "./TextInput-
|
|
1
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
2
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
3
|
+
import { i as TextInputProps } from "./TextInput-Dxq5XKdp.js";
|
|
4
4
|
//#region src/components/inputs/Input/PasswordInput/PasswordInput.d.ts
|
|
5
5
|
interface PasswordInputProps extends Omit<TextInputProps, "type" | "action" | "trailingIcon" | "unit"> {}
|
|
6
6
|
type ControlledPasswordInputProps<TFieldValues extends FieldValues> = ControlProps<PasswordInputProps, TFieldValues>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { x as Key } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
3
|
-
import { n as GroupedSelectControlProps, r as GroupedSelectProps, s as SelectItem, t as DefaultInitialSelectItem } from "./SelectBase-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
|
+
import { n as GroupedSelectControlProps, r as GroupedSelectProps, s as SelectItem, t as DefaultInitialSelectItem } from "./SelectBase-72enBk-1.js";
|
|
4
4
|
import { s as OmitDiscriminatedUnion } from "./common-UBFya8WY.js";
|
|
5
|
-
import { r as SelectProps } from "./Select-
|
|
5
|
+
import { r as SelectProps } from "./Select-DIso4xMG.js";
|
|
6
6
|
import { UseInfiniteQueryResult, UseQueryResult } from "@tanstack/react-query";
|
|
7
7
|
//#region src/components/inputs/Selection/shared/querySelect.utils.d.ts
|
|
8
8
|
type QueryFn<TData = any> = (...args: any[]) => UseQueryResult<TData> | UseInfiniteQueryResult<TData>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as RadioGroupProps$1 } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
3
|
-
import { t as ControlProps } from "./form.types-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
4
4
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
5
5
|
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
6
6
|
import { t as RadioVariantProps } from "./radio.cva-9lpsise2.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { x as Key } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
3
|
-
import { t as ControlledSegmentProps } from "./segment.types-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
|
+
import { t as ControlledSegmentProps } from "./segment.types-BAFG_n38.js";
|
|
4
4
|
//#region src/components/segment/Segment.d.ts
|
|
5
5
|
declare const Segment: <TFieldValues extends FieldValues, TKey extends Key = Key>(props: ControlledSegmentProps<TFieldValues, TKey>) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { x as Key } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
3
|
-
import { a as SelectAsyncProps, n as GroupedSelectControlProps, o as SelectBaseProps, r as GroupedSelectProps, t as DefaultInitialSelectItem } from "./SelectBase-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
|
+
import { a as SelectAsyncProps, n as GroupedSelectControlProps, o as SelectBaseProps, r as GroupedSelectProps, t as DefaultInitialSelectItem } from "./SelectBase-72enBk-1.js";
|
|
4
4
|
import { s as OmitDiscriminatedUnion } from "./common-UBFya8WY.js";
|
|
5
5
|
import { ReactElement } from "react";
|
|
6
6
|
//#region src/components/inputs/Selection/Select/Select.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { y as AriaButtonProps } from "./types-BT18i837.js";
|
|
2
2
|
import { x as Key } from "./types-ZbFfCz06.js";
|
|
3
3
|
import { t as BottomSheetProps } from "./BottomSheet-BZXBtOHF.js";
|
|
4
|
-
import { n as FieldValues } from "./form.binding-
|
|
5
|
-
import { t as ControlProps } from "./form.types-
|
|
4
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
5
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
6
6
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
7
7
|
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
8
8
|
import { FocusEventHandler, MouseEventHandler, ReactElement, ReactNode, Ref } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as SliderProps$1 } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
3
|
-
import { t as ControlProps } from "./form.types-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
4
4
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
5
5
|
import { FocusEvent, Ref } from "react";
|
|
6
6
|
//#region src/components/inputs/Slider/Slider.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as TextAreaProps$1 } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
3
|
-
import { t as ControlProps } from "./form.types-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
4
4
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
5
5
|
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
6
6
|
import { Ref } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as FieldValues } from "./form.binding-
|
|
2
|
-
import { t as ControlProps } from "./form.types-
|
|
1
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
2
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
3
3
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
4
4
|
import { Ref } from "react";
|
|
5
5
|
import { JSONContent } from "@tiptap/react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as InputProps } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
3
|
-
import { t as ControlProps } from "./form.types-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
4
4
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
5
5
|
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
6
6
|
import { t as InputContentProps } from "./InputContent-jcMfOzpN.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as AriaTimeFieldProps, v as TimeValue } from "./types-BT18i837.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
3
|
-
import { t as ControlProps } from "./form.types-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
4
4
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
5
5
|
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
6
6
|
import { FocusEvent, Ref } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as SwitchProps } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { n as FieldValues } from "./form.binding-
|
|
2
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
3
3
|
import { t as FormFieldErrorProps } from "./FormFieldError-BT4uxbKY.js";
|
|
4
|
-
import { t as ControlProps } from "./form.types-
|
|
4
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
5
5
|
import { t as ToggleVariantProps } from "./toggle.cva-2CGLc8aa.js";
|
|
6
6
|
import { Ref } from "react";
|
|
7
7
|
//#region src/components/inputs/Toggle/Toggle.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { x as Key } from "./types-ZbFfCz06.js";
|
|
2
|
-
import { c as SingleSelectProps, i as MultiSelectProps, r as GroupedSelectProps, t as DefaultInitialSelectItem } from "./SelectBase-
|
|
3
|
-
import { n as AutocompleteProps } from "./Autocomplete-
|
|
2
|
+
import { c as SingleSelectProps, i as MultiSelectProps, r as GroupedSelectProps, t as DefaultInitialSelectItem } from "./SelectBase-72enBk-1.js";
|
|
3
|
+
import { n as AutocompleteProps } from "./Autocomplete-CWiSRejc.js";
|
|
4
4
|
import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
|
|
5
5
|
import { t as FireBlurOnChangeProps } from "./fieldAdapter-C4sDFC8f.js";
|
|
6
6
|
import { FieldValues } from "react-hook-form";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as CheckboxProps } from "./Checkbox-
|
|
1
|
+
import { i as CheckboxProps } from "./Checkbox-BIZoNFiX.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
|
|
3
3
|
import { t as FireBlurOnChangeProps } from "./fieldAdapter-C4sDFC8f.js";
|
|
4
4
|
import { FieldValues } from "react-hook-form";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as CheckboxGroupProps } from "./CheckboxGroup-
|
|
1
|
+
import { n as CheckboxGroupProps } from "./CheckboxGroup-U4poUqlk.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
|
|
3
3
|
import { t as FireBlurOnChangeProps } from "./fieldAdapter-C4sDFC8f.js";
|
|
4
4
|
import { FieldValues } from "react-hook-form";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as AutocompleteProps, r as ControlledAutocompleteProps, t as Autocomplete } from "../Autocomplete-
|
|
1
|
+
import { n as AutocompleteProps, r as ControlledAutocompleteProps, t as Autocomplete } from "../Autocomplete-CWiSRejc.js";
|
|
2
2
|
export { Autocomplete, AutocompleteProps, ControlledAutocompleteProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CheckboxGroupProps, r as ControlledCheckboxGroupProps, t as CheckboxGroup } from "../CheckboxGroup-
|
|
1
|
+
import { n as CheckboxGroupProps, r as ControlledCheckboxGroupProps, t as CheckboxGroup } from "../CheckboxGroup-U4poUqlk.js";
|
|
2
2
|
export { CheckboxGroup, CheckboxGroupProps, ControlledCheckboxGroupProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ControlledCheckboxProps, i as CheckboxProps, n as CheckboxBase, r as CheckboxBaseProps, t as Checkbox } from "../Checkbox-
|
|
1
|
+
import { a as ControlledCheckboxProps, i as CheckboxProps, n as CheckboxBase, r as CheckboxBaseProps, t as Checkbox } from "../Checkbox-BIZoNFiX.js";
|
|
2
2
|
export { Checkbox, CheckboxBase, CheckboxBaseProps, CheckboxProps, ControlledCheckboxProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as DatePicker, r as DatePickerProps, t as ControlledDatePickerProps } from "../DatePicker-
|
|
1
|
+
import { n as DatePicker, r as DatePickerProps, t as ControlledDatePickerProps } from "../DatePicker-IZwn9hAk.js";
|
|
2
2
|
export { type ControlledDatePickerProps, DatePicker, type DatePickerProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as DateRangeResolvedValue, i as DateRangeRelativeOption, n as DateRangePicker, r as DateRangePickerProps, t as ControlledDateRangePickerProps } from "../DateRangePicker-
|
|
1
|
+
import { a as DateRangeResolvedValue, i as DateRangeRelativeOption, n as DateRangePicker, r as DateRangePickerProps, t as ControlledDateRangePickerProps } from "../DateRangePicker-DLuRwuw1.js";
|
|
2
2
|
export { type ControlledDateRangePickerProps, DateRangePicker, type DateRangePickerProps, type DateRangeRelativeOption, type DateRangeResolvedValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as DateTimePicker, r as DateTimePickerProps, t as ControlledDateTimePickerProps } from "../DateTimePicker-
|
|
1
|
+
import { n as DateTimePicker, r as DateTimePickerProps, t as ControlledDateTimePickerProps } from "../DateTimePicker-Co6UXSVA.js";
|
|
2
2
|
export { type ControlledDateTimePickerProps, DateTimePicker, type DateTimePickerProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as FileUploadContainerProps } from "../fileUpload.types-
|
|
2
|
-
import { t as FileUploadContainer } from "../FileUploadContainer-
|
|
1
|
+
import { i as FileUploadContainerProps } from "../fileUpload.types-BMs6Zkhr.js";
|
|
2
|
+
import { t as FileUploadContainer } from "../FileUploadContainer-CLPREIin.js";
|
|
3
3
|
export { FileUploadContainer, type FileUploadContainerProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as FileUploadError, c as FileUploadResponse, l as FileUploadState, n as FileUploadBaseProps, o as FileUploadProps, r as FileUploadButtonProps, s as FileUploadRequest, t as DefaultFile } from "../fileUpload.types-
|
|
2
|
-
import { t as FileUpload } from "../FileUpload-
|
|
1
|
+
import { a as FileUploadError, c as FileUploadResponse, l as FileUploadState, n as FileUploadBaseProps, o as FileUploadProps, r as FileUploadButtonProps, s as FileUploadRequest, t as DefaultFile } from "../fileUpload.types-BMs6Zkhr.js";
|
|
2
|
+
import { t as FileUpload } from "../FileUpload-B1L78k7y.js";
|
|
3
3
|
export { type DefaultFile, FileUpload, type FileUploadBaseProps, type FileUploadButtonProps, type FileUploadError, type FileUploadProps, type FileUploadRequest, type FileUploadResponse, type FileUploadState };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as InputUploadBaseProps, r as InputUploadProps, t as InputUpload } from "../InputUpload-
|
|
1
|
+
import { n as InputUploadBaseProps, r as InputUploadProps, t as InputUpload } from "../InputUpload-RPnj3b1Y.js";
|
|
2
2
|
export { InputUpload, type InputUploadBaseProps, type InputUploadProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as NumberInputProps, n as NumberInput, r as NumberInputComponent, t as ControlledNumberInputProps } from "../NumberInput-
|
|
1
|
+
import { i as NumberInputProps, n as NumberInput, r as NumberInputComponent, t as ControlledNumberInputProps } from "../NumberInput-gqs4vYJf.js";
|
|
2
2
|
export { ControlledNumberInputProps, NumberInput, NumberInputComponent, NumberInputProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as NumberRangeValue, n as NumberRangeInput, r as NumberRangeInputProps, t as ControlledNumberRangeInputProps } from "../NumberRangeInput-
|
|
1
|
+
import { i as NumberRangeValue, n as NumberRangeInput, r as NumberRangeInputProps, t as ControlledNumberRangeInputProps } from "../NumberRangeInput-CMHI9yks.js";
|
|
2
2
|
export { ControlledNumberRangeInputProps, NumberRangeInput, NumberRangeInputProps, type NumberRangeValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PasswordInput, r as PasswordInputProps, t as ControlledPasswordInputProps } from "../PasswordInput-
|
|
1
|
+
import { n as PasswordInput, r as PasswordInputProps, t as ControlledPasswordInputProps } from "../PasswordInput-CcoU8g5c.js";
|
|
2
2
|
export { ControlledPasswordInputProps, PasswordInput, PasswordInputProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as FieldValues } from "../form.binding-
|
|
2
|
-
import { s as SelectItem } from "../SelectBase-
|
|
3
|
-
import { n as QueryFn, t as QueryAutocompleteProps } from "../queryAutocomplete.types-
|
|
1
|
+
import { n as FieldValues } from "../form.binding-QO3Py45C.js";
|
|
2
|
+
import { s as SelectItem } from "../SelectBase-72enBk-1.js";
|
|
3
|
+
import { n as QueryFn, t as QueryAutocompleteProps } from "../queryAutocomplete.types-Cnn4GjUo.js";
|
|
4
4
|
//#region src/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts
|
|
5
5
|
declare const QueryAutocompleteComponent: <TFieldValues extends FieldValues, TSelectItem extends SelectItem<any>, TQueryFn extends QueryFn>(props: QueryAutocompleteProps<TFieldValues, TSelectItem, TQueryFn>) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare const QueryAutocomplete: typeof QueryAutocompleteComponent;
|
|
@@ -62,13 +62,14 @@ const LoadedQueryAutocompleteContent = ({ query, queryParams, queryOptions, quer
|
|
|
62
62
|
const QueryAutocompleteContent = (props) => {
|
|
63
63
|
const ui = UIConfig.useConfig();
|
|
64
64
|
const isInitialQueryDisabled = props.isInitialQueryDisabled ?? ui.queryAutocomplete?.isInitialQueryDisabled;
|
|
65
|
-
const [isQueryMounted, setIsQueryMounted] = useState(!isInitialQueryDisabled);
|
|
66
65
|
const value = "value" in props ? props.value : void 0;
|
|
67
|
-
|
|
66
|
+
const selection = getSelectionIdsToResolve({
|
|
68
67
|
initialSelection: props.initialSelection,
|
|
69
68
|
value,
|
|
70
69
|
mapInitialToSelectItem: props.mapInitialToSelectItem
|
|
71
|
-
})
|
|
70
|
+
});
|
|
71
|
+
const [isQueryMounted, setIsQueryMounted] = useState(() => !isInitialQueryDisabled && !selection.isResolvedByInitialSelection);
|
|
72
|
+
if (!selection.isResolvedByInitialSelection || isQueryMounted) return /* @__PURE__ */ jsx(LoadedQueryAutocompleteContent, {
|
|
72
73
|
...props,
|
|
73
74
|
isQueryEnabledInitially: isQueryMounted
|
|
74
75
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as QuerySelectProps, t as QuerySelect } from "../QuerySelect-
|
|
1
|
+
import { n as QuerySelectProps, t as QuerySelect } from "../QuerySelect-D_vXxG1S.js";
|
|
2
2
|
export { QuerySelect, QuerySelectProps };
|
|
@@ -74,13 +74,14 @@ const LoadedQuerySelectContent = ({ query, queryParams, queryOptions, queryMap,
|
|
|
74
74
|
const QuerySelectContent = (props) => {
|
|
75
75
|
const ui = UIConfig.useConfig();
|
|
76
76
|
const isInitialQueryDisabled = props.isInitialQueryDisabled ?? ui.querySelect?.isInitialQueryDisabled;
|
|
77
|
-
const [isQueryMounted, setIsQueryMounted] = useState(!isInitialQueryDisabled);
|
|
78
77
|
const value = "value" in props ? props.value : void 0;
|
|
79
|
-
|
|
78
|
+
const selection = getSelectionIdsToResolve({
|
|
80
79
|
initialSelection: props.initialSelection,
|
|
81
80
|
value,
|
|
82
81
|
mapInitialToSelectItem: props.mapInitialToSelectItem
|
|
83
|
-
})
|
|
82
|
+
});
|
|
83
|
+
const [isQueryMounted, setIsQueryMounted] = useState(() => !isInitialQueryDisabled && !selection.isResolvedByInitialSelection);
|
|
84
|
+
if (!selection.isResolvedByInitialSelection || isQueryMounted) return /* @__PURE__ */ jsx(LoadedQuerySelectContent, {
|
|
84
85
|
...props,
|
|
85
86
|
isQueryEnabledInitially: isQueryMounted
|
|
86
87
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RadioGroup, r as RadioGroupProps, t as ControlledRadioGroupProps } from "../RadioGroup-
|
|
1
|
+
import { n as RadioGroup, r as RadioGroupProps, t as ControlledRadioGroupProps } from "../RadioGroup-Cs718lkQ.js";
|
|
2
2
|
export { ControlledRadioGroupProps, RadioGroup, RadioGroupProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { o as SegmentProps, t as ControlledSegmentProps } from "../segment.types-
|
|
2
|
-
import { t as Segment } from "../Segment-
|
|
1
|
+
import { o as SegmentProps, t as ControlledSegmentProps } from "../segment.types-BAFG_n38.js";
|
|
2
|
+
import { t as Segment } from "../Segment-C_Vbrl9f.js";
|
|
3
3
|
export { type ControlledSegmentProps, Segment, type SegmentProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as SelectAsyncProps, o as SelectBaseProps, s as SelectItem, t as DefaultInitialSelectItem } from "../SelectBase-
|
|
2
|
-
import { n as Select, r as SelectProps, t as ControlledSelectProps } from "../Select-
|
|
1
|
+
import { a as SelectAsyncProps, o as SelectBaseProps, s as SelectItem, t as DefaultInitialSelectItem } from "../SelectBase-72enBk-1.js";
|
|
2
|
+
import { n as Select, r as SelectProps, t as ControlledSelectProps } from "../Select-DIso4xMG.js";
|
|
3
3
|
export { type ControlledSelectProps, type DefaultInitialSelectItem, Select, type SelectAsyncProps, type SelectBaseProps, type SelectItem, type SelectProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Slider, r as SliderProps, t as ControlledSliderProps } from "../Slider-
|
|
1
|
+
import { n as Slider, r as SliderProps, t as ControlledSliderProps } from "../Slider-Baw84mjN.js";
|
|
2
2
|
export { ControlledSliderProps, Slider, SliderProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TextArea, r as TextAreaProps, t as ControlledTextAreaProps } from "../TextArea-
|
|
1
|
+
import { n as TextArea, r as TextAreaProps, t as ControlledTextAreaProps } from "../TextArea-vdp0uSFx.js";
|
|
2
2
|
export { ControlledTextAreaProps, TextArea, TextAreaProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as TextInputProps, n as TextInput, r as TextInputComponent, t as ControlledTextInputProps } from "../TextInput-
|
|
1
|
+
import { i as TextInputProps, n as TextInput, r as TextInputComponent, t as ControlledTextInputProps } from "../TextInput-Dxq5XKdp.js";
|
|
2
2
|
export { ControlledTextInputProps, TextInput, TextInputComponent, TextInputProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TimePicker, r as TimePickerProps, t as ControlledTimePickerProps } from "../TimePicker-
|
|
1
|
+
import { n as TimePicker, r as TimePickerProps, t as ControlledTimePickerProps } from "../TimePicker-B_atBC0F.js";
|
|
2
2
|
export { type ControlledTimePickerProps, TimePicker, type TimePickerProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Toggle, r as ToggleProps, t as ControlledToggleProps } from "../Toggle-
|
|
1
|
+
import { n as Toggle, r as ToggleProps, t as ControlledToggleProps } from "../Toggle-CaBvb0l0.js";
|
|
2
2
|
export { ControlledToggleProps, Toggle, ToggleProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ThemeContext } from "../theme.context-
|
|
1
|
+
import { t as ThemeContext } from "../theme.context-B10jqjvZ.js";
|
|
2
2
|
export { ThemeContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ThemeContext } from "../theme.context-
|
|
1
|
+
import { t as ThemeContext } from "../theme.context-B3wQDJ-i.js";
|
|
2
2
|
export { ThemeContext };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as DateRangeResolvedValue, i as DateRangeRelativeOption } from "../DateRangePicker-
|
|
1
|
+
import { a as DateRangeResolvedValue, i as DateRangeRelativeOption } from "../DateRangePicker-DLuRwuw1.js";
|
|
2
2
|
import { t as UIConfig } from "../uiConfig.context-Bjb9TQ6Y.js";
|
|
3
3
|
export { type DateRangeRelativeOption, type DateRangeResolvedValue, UIConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as DatePickerProps } from "./DatePicker-
|
|
1
|
+
import { r as DatePickerProps } from "./DatePicker-IZwn9hAk.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
|
|
3
3
|
import { t as FireBlurOnChangeProps } from "./fieldAdapter-C4sDFC8f.js";
|
|
4
4
|
import { FieldValues } from "react-hook-form";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as DateRangePickerProps } from "./DateRangePicker-
|
|
1
|
+
import { r as DateRangePickerProps } from "./DateRangePicker-DLuRwuw1.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
|
|
3
3
|
import { t as FireBlurOnChangeProps } from "./fieldAdapter-C4sDFC8f.js";
|
|
4
4
|
import { FieldValues } from "react-hook-form";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as DateTimePickerProps } from "./DateTimePicker-
|
|
1
|
+
import { r as DateTimePickerProps } from "./DateTimePicker-Co6UXSVA.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
|
|
3
3
|
import { t as FireBlurOnChangeProps } from "./fieldAdapter-C4sDFC8f.js";
|
|
4
4
|
import { FieldValues } from "react-hook-form";
|