kui-crm 0.0.384 → 0.0.387

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/index.d.ts CHANGED
@@ -1,16 +1,14 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- import { KUIComplexSettings, InputWithControllerProps as InputWithControllerProps$1, UploadFileParams as UploadFileParams$1, MapWrapperProps, AvatarSizes } from 'kui-complex';
2
+ import { KUIComplexSettings, InputWithControllerProps, InputFileProps, UploadFileParams as UploadFileParams$1, MapWrapperProps, AvatarSizes } from 'kui-complex';
3
3
  import { DateTime } from 'luxon';
4
4
  import { PaginationRes as PaginationRes$1, Loader, SortingFilter, Paginator, MultistepForm as MultistepForm$1, ObjectType as ObjectType$1 } from 'kui-utils';
5
5
  import * as react_hook_form from 'react-hook-form';
6
6
  import { UseFormReturn, FieldValues } from 'react-hook-form';
7
- import { InputWithControllerProps as InputWithControllerProps$2 } from 'kui-complex/InputWithController';
8
7
  import * as React$1 from 'react';
9
8
  import React__default, { ReactNode, DependencyList, RefObject, ReactElement, MutableRefObject } from 'react';
10
9
  import * as kui_basic from 'kui-basic';
11
10
  import { GridSize, InputProps, ModalProps as ModalProps$1, ButtonProps, GridProps, TooltipProps, CaptionProps } from 'kui-basic';
12
11
  import * as yup from 'yup';
13
- import { InputFileProps } from 'kui-complex/InputFile';
14
12
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
15
13
  import { FieldValues as FieldValues$1 } from 'react-hook-form/dist/types/fields';
16
14
  import * as _emotion_styled from '@emotion/styled';
@@ -886,7 +884,7 @@ declare type ApartmentMetroWithCustomParams = {
886
884
 
887
885
  type FillingTagsAutocompleteProps<TFormValues> = {
888
886
  type: ApartmentFillingVariants
889
- } & InputWithControllerProps$1<TFormValues>
887
+ } & InputWithControllerProps<TFormValues>
890
888
 
891
889
  type FillingTagsAutocompleteFields = {
892
890
  id: number
@@ -961,7 +959,7 @@ type CompanyAutocompleteProps<TFormValues> = {
961
959
  label?: string
962
960
  handleSelect?: (company: CompanyLiteParams) => void
963
961
  forApartment?: number | null
964
- } & InputWithControllerProps$2<TFormValues>
962
+ } & InputWithControllerProps<TFormValues>
965
963
 
966
964
  type CompanyAutocompleteFields = {
967
965
  id: number
@@ -1003,7 +1001,7 @@ declare class FileStore implements FileStoreInterface {
1003
1001
  static initFromFileModel: (file: FileModel) => FileStore;
1004
1002
  static initFromDocumentModel: (file: DocumentModel) => FileStore;
1005
1003
  static initFromImageModel: (file: ImageModel, name?: string | undefined) => FileStore;
1006
- static initFromFile: (file: File, index: number, withFileCleanUp?: boolean | undefined) => Promise<FileStore>;
1004
+ static initFromFile: (file: File, index: number, withFileCleanUp?: boolean | undefined) => FileStore;
1007
1005
  static initFromFileStore: (file: FileStore) => FileStore;
1008
1006
  }
1009
1007
 
@@ -1525,6 +1523,7 @@ declare type ApartmentModel = {
1525
1523
  proxy_document?: ApartmentDocumentModel;
1526
1524
  insurance_document?: ApartmentDocumentModel;
1527
1525
  period_status: PeriodStatus;
1526
+ have_initial_inspection?: boolean;
1528
1527
  } & ApartmentMainInfoModelFields & ApartmentDetailInfoModelFields & HouseInfoModelFields;
1529
1528
  declare type ApartmentWithHouseInfoModelFields = ApartmentDetailInfoModelFields & HouseInfoModelFields;
1530
1529
  declare type ApartmentLiteModel = {
@@ -1632,7 +1631,7 @@ type InputTypes =
1632
1631
  type InputByTypeProps<T> = {
1633
1632
  variant?: InputTypes
1634
1633
  CustomInput?: ReactNode
1635
- } & InputWithControllerProps$1<T>
1634
+ } & InputWithControllerProps<T>
1636
1635
 
1637
1636
  type InputParams<T> = {
1638
1637
  size?: GridSize
@@ -2165,7 +2164,7 @@ type DistrictAutocompleteProps<TFormValues> = {
2165
2164
  label?: string
2166
2165
  onSelect?: (district: DistrictParams) => void
2167
2166
  cityName?: string
2168
- } & InputWithControllerProps$1<TFormValues>
2167
+ } & InputWithControllerProps<TFormValues>
2169
2168
 
2170
2169
  type DistrictAutocompleteFields = {
2171
2170
  id: number
@@ -2528,7 +2527,7 @@ type TariffGroupAutocompleteProps<TFormValues> = {
2528
2527
  resource: ResourceTypes
2529
2528
  filter?: string
2530
2529
  filterRequired?: boolean
2531
- } & InputWithControllerProps$1<TFormValues>
2530
+ } & InputWithControllerProps<TFormValues>
2532
2531
 
2533
2532
  type TariffGroupAutocompleteFields = {
2534
2533
  id: number
@@ -2731,7 +2730,7 @@ type LoaderStateProps = {
2731
2730
  declare function LoaderState(props: LoaderStateProps): JSX.Element;
2732
2731
  declare const _default$9: typeof LoaderState;
2733
2732
 
2734
- declare const _default$8: <T extends object>(props: InputWithControllerProps<T_1>) => JSX.Element;
2733
+ declare const _default$8: <T extends object>(props: any) => JSX.Element;
2735
2734
 
2736
2735
  type TableBottomLoadingProps = {
2737
2736
  isLoading: boolean
@@ -2810,7 +2809,7 @@ type MultistepFormProps = {
2810
2809
  declare function MultistepForm(props: MultistepFormProps): JSX.Element;
2811
2810
  declare const _default$7: typeof MultistepForm;
2812
2811
 
2813
- declare const LinkField: (props: InputWithControllerProps$1) => JSX.Element;
2812
+ declare const LinkField: (props: InputWithControllerProps) => JSX.Element;
2814
2813
 
2815
2814
  declare const CheckboxWithHint: <T extends object>(props: any) => JSX.Element;
2816
2815
 
@@ -3002,7 +3001,7 @@ type MetroAutocompleteProps<TFormValues> = {
3002
3001
  hideName?: string
3003
3002
  handleChange?: (name: string, id: number) => void
3004
3003
  metroStore: MetroStore
3005
- } & InputWithControllerProps$1<TFormValues>
3004
+ } & InputWithControllerProps<TFormValues>
3006
3005
 
3007
3006
  declare function MetroAutocomplete<TFormValues extends object>({ form, name, label, hideName, defaultValue, handleChange, metroStore, ...otherProps }: MetroAutocompleteProps<TFormValues>): JSX.Element;
3008
3007
  declare const _default$4: typeof MetroAutocomplete;
@@ -3037,8 +3036,7 @@ declare const LoadingWithSparkles: React$1.ForwardRefExoticComponent<{
3037
3036
 
3038
3037
  declare const BigCheckbox: React__default.ForwardRefExoticComponent<Pick<{
3039
3038
  form: react_hook_form.UseFormReturn<any, any, any>;
3040
- labelProps?: kui_basic.CaptionProps | undefined;
3041
- } & kui_basic.CheckboxProps, "required" | "resource" | "value" | "id" | "type" | "form" | "name" | "disabled" | "label" | "slot" | "style" | "title" | "pattern" | "children" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "key" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "placeholder" | "readOnly" | "size" | "src" | "step" | "width" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "inputRef" | "error" | "labelProps"> & React__default.RefAttributes<HTMLButtonElement>>;
3039
+ } & kui_basic.CheckboxProps, "required" | "resource" | "value" | "id" | "type" | "form" | "name" | "disabled" | "label" | "slot" | "style" | "title" | "pattern" | "children" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "key" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "placeholder" | "readOnly" | "size" | "src" | "step" | "width" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "inputRef" | "error"> & React__default.RefAttributes<HTMLButtonElement>>;
3042
3040
 
3043
3041
  type FormStepsIndicatorProps = {
3044
3042
  active: number
@@ -3048,7 +3046,7 @@ type FormStepsIndicatorProps = {
3048
3046
 
3049
3047
  declare function FormStepsIndicator(props: FormStepsIndicatorProps): _emotion_react_jsx_runtime.JSX.Element;
3050
3048
 
3051
- declare const InputPassword: React$1.ForwardRefExoticComponent<InputWithControllerProps$1 & React$1.RefAttributes<HTMLInputElement>>;
3049
+ declare const InputPassword: React$1.ForwardRefExoticComponent<InputWithControllerProps & React$1.RefAttributes<HTMLInputElement>>;
3052
3050
 
3053
3051
  type ApartmentMetroItemProps = {
3054
3052
  metro: ObjectMetroStationParams
@@ -3059,7 +3057,7 @@ declare const ApartmentMetroItem: ({ metro }: ApartmentMetroItemProps) => JSX.El
3059
3057
  type InputWithAddressAutocompleteProps<T> = {
3060
3058
  handlePlaceSelect?: (coords: GeolocationParams | null) => void
3061
3059
  onlyAddress?: boolean
3062
- } & InputWithControllerProps$1<T>
3060
+ } & InputWithControllerProps<T>
3063
3061
 
3064
3062
  type InputWithAddressFields = {
3065
3063
  address: string