@react-querybuilder/antd 8.8.3 → 8.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/cjs/index.d.ts +1 -0
  2. package/dist/cjs/react-querybuilder_antd.cjs.development.d.ts +2770 -0
  3. package/dist/cjs/react-querybuilder_antd.cjs.development.js +520 -962
  4. package/dist/cjs/react-querybuilder_antd.cjs.development.js.map +1 -1
  5. package/dist/cjs/react-querybuilder_antd.cjs.production.d.ts +2770 -0
  6. package/dist/cjs/react-querybuilder_antd.cjs.production.js +1 -2
  7. package/dist/cjs/react-querybuilder_antd.cjs.production.js.map +1 -1
  8. package/dist/react-querybuilder_antd.d.mts +2770 -0
  9. package/dist/react-querybuilder_antd.legacy-esm.d.ts +2770 -0
  10. package/dist/react-querybuilder_antd.legacy-esm.js +655 -1010
  11. package/dist/react-querybuilder_antd.legacy-esm.js.map +1 -1
  12. package/dist/react-querybuilder_antd.mjs +496 -937
  13. package/dist/react-querybuilder_antd.mjs.map +1 -1
  14. package/dist/react-querybuilder_antd.production.d.mts +2770 -0
  15. package/dist/react-querybuilder_antd.production.mjs +1 -2
  16. package/dist/react-querybuilder_antd.production.mjs.map +1 -1
  17. package/package.json +14 -14
  18. package/dist/types/AntDActionElement.d.ts +0 -14
  19. package/dist/types/AntDDragHandle.d.ts +0 -14
  20. package/dist/types/AntDNotToggle.d.ts +0 -12
  21. package/dist/types/AntDShiftActions.d.ts +0 -6
  22. package/dist/types/AntDValueEditor.d.ts +0 -12
  23. package/dist/types/AntDValueSelector.d.ts +0 -12
  24. package/dist/types/dayjs.d.ts +0 -45
  25. package/dist/types/index.d.ts +0 -19
  26. package/dist/types-esm/AntDActionElement.d.mts +0 -14
  27. package/dist/types-esm/AntDDragHandle.d.mts +0 -14
  28. package/dist/types-esm/AntDNotToggle.d.mts +0 -12
  29. package/dist/types-esm/AntDShiftActions.d.mts +0 -6
  30. package/dist/types-esm/AntDValueEditor.d.mts +0 -12
  31. package/dist/types-esm/AntDValueSelector.d.mts +0 -12
  32. package/dist/types-esm/dayjs.d.mts +0 -45
  33. package/dist/types-esm/index.d.mts +0 -19
@@ -1,14 +0,0 @@
1
- import { Button } from "antd";
2
- import type { ComponentPropsWithoutRef } from "react";
3
- import * as React from "react";
4
- import type { ActionProps } from "react-querybuilder";
5
- type RemoveDataIndexKeys<T> = { [K in keyof T as `data-${string}` extends K ? never : K] : T[K] };
6
- /**
7
- * @group Props
8
- */
9
- export interface AntDActionProps extends ActionProps, RemoveDataIndexKeys<ComponentPropsWithoutRef<typeof Button>> {}
10
- /**
11
- * @group Components
12
- */
13
- export declare const AntDActionElement: ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema,...extraProps }: AntDActionProps) => React.JSX.Element;
14
- export {};
@@ -1,14 +0,0 @@
1
- import { HolderOutlined } from "@ant-design/icons";
2
- import type { ComponentPropsWithRef } from "react";
3
- import * as React from "react";
4
- import type { DragHandleProps } from "react-querybuilder";
5
- /**
6
- * @group Props
7
- */
8
- export type AntDDragHandleProps = DragHandleProps & {
9
- label?: any;
10
- } & ComponentPropsWithRef<typeof HolderOutlined>;
11
- /**
12
- * @group Components
13
- */
14
- export declare const AntDDragHandle: React.ForwardRefExoticComponent<Omit<AntDDragHandleProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
@@ -1,12 +0,0 @@
1
- import { Switch } from "antd";
2
- import type { ComponentPropsWithoutRef } from "react";
3
- import * as React from "react";
4
- import type { NotToggleProps } from "react-querybuilder";
5
- /**
6
- * @group Props
7
- */
8
- export interface AntDNotToggleProps extends NotToggleProps, ComponentPropsWithoutRef<typeof Switch> {}
9
- /**
10
- * @group Components
11
- */
12
- export declare const AntDNotToggle: ({ className, handleOnChange, label, checked, title, disabled, path: _path, context: _context, validation: _validation, testID: _testID, schema: _schema, ruleGroup: _ruleGroup,...extraProps }: AntDNotToggleProps) => React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- import type { ShiftActionsProps } from "react-querybuilder";
3
- /**
4
- * @group Components
5
- */
6
- export declare const AntDShiftActions: ({ shiftUp, shiftDown, shiftUpDisabled, shiftDownDisabled, disabled, className, labels, titles, testID }: ShiftActionsProps) => React.JSX.Element;
@@ -1,12 +0,0 @@
1
- import * as React from "react";
2
- import type { ValueEditorProps } from "react-querybuilder";
3
- /**
4
- * @group Props
5
- */
6
- export interface AntDValueEditorProps extends ValueEditorProps {
7
- extraProps?: Record<string, unknown>;
8
- }
9
- /**
10
- * @group Components
11
- */
12
- export declare const AntDValueEditor: (allProps: AntDValueEditorProps) => React.JSX.Element | null;
@@ -1,12 +0,0 @@
1
- import { Select } from "antd";
2
- import type { ComponentPropsWithoutRef } from "react";
3
- import * as React from "react";
4
- import type { VersatileSelectorProps } from "react-querybuilder";
5
- /**
6
- * @group Props
7
- */
8
- export type AntDValueSelectorProps = VersatileSelectorProps & Omit<ComponentPropsWithoutRef<typeof Select>, "onChange" | "defaultValue">;
9
- /**
10
- * @group Components
11
- */
12
- export declare const AntDValueSelector: ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rule: _rule, ruleGroup: _ruleGroup, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema,...extraProps }: AntDValueSelectorProps) => React.JSX.Element;
@@ -1,45 +0,0 @@
1
- /**
2
- * This file is adapted from the following sources:
3
- * - https://github.com/react-component/picker/blob/d526bd551778070be3295060f1b5841786cb9500/src/generate/dayjs.ts
4
- * - https://github.com/react-component/picker/blob/d526bd551778070be3295060f1b5841786cb9500/src/generate/index.ts
5
- */
6
- import type { Dayjs } from "dayjs";
7
- type GenerateConfig<DateType> = {
8
- getWeekDay: (value: DateType) => number;
9
- getMillisecond: (value: DateType) => number;
10
- getSecond: (value: DateType) => number;
11
- getMinute: (value: DateType) => number;
12
- getHour: (value: DateType) => number;
13
- getDate: (value: DateType) => number;
14
- getMonth: (value: DateType) => number;
15
- getYear: (value: DateType) => number;
16
- getNow: () => DateType;
17
- getFixedDate: (fixed: string) => DateType;
18
- getEndDate: (value: DateType) => DateType;
19
- addYear: (value: DateType, diff: number) => DateType;
20
- addMonth: (value: DateType, diff: number) => DateType;
21
- addDate: (value: DateType, diff: number) => DateType;
22
- setYear: (value: DateType, year: number) => DateType;
23
- setMonth: (value: DateType, month: number) => DateType;
24
- setDate: (value: DateType, date: number) => DateType;
25
- setHour: (value: DateType, hour: number) => DateType;
26
- setMinute: (value: DateType, minute: number) => DateType;
27
- setSecond: (value: DateType, second: number) => DateType;
28
- setMillisecond: (value: DateType, millisecond: number) => DateType;
29
- isAfter: (date1: DateType, date2: DateType) => boolean;
30
- isValidate: (date: DateType) => boolean;
31
- locale: {
32
- getWeekFirstDay: (locale: string) => number;
33
- getWeekFirstDate: (locale: string, value: DateType) => DateType;
34
- getWeek: (locale: string, value: DateType) => number;
35
- format: (locale: string, date: DateType, format: string) => string;
36
- /** Should only return validate date instance */
37
- parse: (locale: string, text: string, formats: string[]) => DateType | null;
38
- /** A proxy for getting locale with moment or other locale library */
39
- getShortWeekDays?: (locale: string) => string[];
40
- /** A proxy for getting locale with moment or other locale library */
41
- getShortMonths?: (locale: string) => string[];
42
- };
43
- };
44
- declare const generateConfig: GenerateConfig<Dayjs>;
45
- export default generateConfig;
@@ -1,19 +0,0 @@
1
- import type { ControlElementsProp, FullField, QueryBuilderContextProvider, Translations } from "react-querybuilder";
2
- export * from "./AntDActionElement.mjs";
3
- export * from "./AntDDragHandle.mjs";
4
- export * from "./AntDNotToggle.mjs";
5
- export * from "./AntDShiftActions.mjs";
6
- export * from "./AntDValueEditor.mjs";
7
- export * from "./AntDValueSelector.mjs";
8
- /**
9
- * @group Props
10
- */
11
- export declare const antdControlElements: ControlElementsProp<FullField, string>;
12
- /**
13
- * @group Props
14
- */
15
- export declare const antdTranslations: Partial<Translations>;
16
- /**
17
- * @group Components
18
- */
19
- export declare const QueryBuilderAntD: QueryBuilderContextProvider;