@webiny/app-aco 6.4.11 → 6.4.12-beta.0
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/components/AdvancedSearch/AdvancedSearch.d.ts +2 -2
- package/components/AdvancedSearch/QueryBuilderDrawer/QueryBuilder/components/OperationSelector.js +1 -1
- package/components/AdvancedSearch/QueryBuilderDrawer/QueryBuilder/components/OperationSelector.js.map +1 -1
- package/components/AdvancedSearch/QueryBuilderDrawer/QueryBuilderDrawer.d.ts +2 -2
- package/components/Table/components/Table/TableInner.d.ts +2 -2
- package/package.json +21 -21
|
@@ -5,6 +5,6 @@ export interface AdvancedSearchProps {
|
|
|
5
5
|
repository: FilterRepository;
|
|
6
6
|
onApplyFilter: (data: FilterDTO | null) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const AdvancedSearch: (({ fields, repository, onApplyFilter }: AdvancedSearchProps) => React.JSX.Element) & {
|
|
9
|
-
|
|
8
|
+
export declare const AdvancedSearch: (({ fields, repository, onApplyFilter }: AdvancedSearchProps) => React.JSX.Element) & React.NamedExoticComponent<AdvancedSearchProps> & {
|
|
9
|
+
readonly type: ({ fields, repository, onApplyFilter }: AdvancedSearchProps) => React.JSX.Element;
|
|
10
10
|
};
|
package/components/AdvancedSearch/QueryBuilderDrawer/QueryBuilder/components/OperationSelector.js
CHANGED
|
@@ -6,7 +6,7 @@ const OperationSelector = ({ label, name })=>{
|
|
|
6
6
|
const getValue = (value)=>value === Operation.AND;
|
|
7
7
|
const setValue = (value)=>{
|
|
8
8
|
if (value) return Operation.AND;
|
|
9
|
-
return Operation.OR;
|
|
9
|
+
else return Operation.OR;
|
|
10
10
|
};
|
|
11
11
|
return /*#__PURE__*/ react.createElement(Bind, {
|
|
12
12
|
name: name
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/AdvancedSearch/QueryBuilderDrawer/QueryBuilder/components/OperationSelector.js","sources":["../../../../../../src/components/AdvancedSearch/QueryBuilderDrawer/QueryBuilder/components/OperationSelector.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Bind } from \"@webiny/form\";\nimport { Switch } from \"@webiny/admin-ui\";\nimport { Operation } from \"~/components/AdvancedSearch/domain/index.js\";\n\ninterface OperationSelectorProps {\n label: string;\n name: string;\n}\n\nexport const OperationSelector = ({ label, name }: OperationSelectorProps) => {\n const getValue = (value: Operation): boolean => {\n return value === Operation.AND;\n };\n\n const setValue = (value: boolean): Operation => {\n if (value) {\n return Operation.AND;\n } else {\n return Operation.OR;\n }\n };\n\n return (\n <Bind name={name}>\n {({ value, onChange }) => (\n <Switch\n label={label}\n checked={getValue(value)}\n onChange={value => onChange(setValue(value))}\n />\n )}\n </Bind>\n );\n};\n"],"names":["OperationSelector","label","name","getValue","value","Operation","setValue","Bind","onChange","Switch"],"mappings":";;;;AAWO,MAAMA,oBAAoB,CAAC,EAAEC,KAAK,EAAEC,IAAI,EAA0B;IACrE,MAAMC,WAAW,CAACC,QACPA,UAAUC,UAAU,GAAG;IAGlC,MAAMC,WAAW,CAACF;QACd,IAAIA,OACA,OAAOC,UAAU,GAAG;
|
|
1
|
+
{"version":3,"file":"components/AdvancedSearch/QueryBuilderDrawer/QueryBuilder/components/OperationSelector.js","sources":["../../../../../../src/components/AdvancedSearch/QueryBuilderDrawer/QueryBuilder/components/OperationSelector.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Bind } from \"@webiny/form\";\nimport { Switch } from \"@webiny/admin-ui\";\nimport { Operation } from \"~/components/AdvancedSearch/domain/index.js\";\n\ninterface OperationSelectorProps {\n label: string;\n name: string;\n}\n\nexport const OperationSelector = ({ label, name }: OperationSelectorProps) => {\n const getValue = (value: Operation): boolean => {\n return value === Operation.AND;\n };\n\n const setValue = (value: boolean): Operation => {\n if (value) {\n return Operation.AND;\n } else {\n return Operation.OR;\n }\n };\n\n return (\n <Bind name={name}>\n {({ value, onChange }) => (\n <Switch\n label={label}\n checked={getValue(value)}\n onChange={value => onChange(setValue(value))}\n />\n )}\n </Bind>\n );\n};\n"],"names":["OperationSelector","label","name","getValue","value","Operation","setValue","Bind","onChange","Switch"],"mappings":";;;;AAWO,MAAMA,oBAAoB,CAAC,EAAEC,KAAK,EAAEC,IAAI,EAA0B;IACrE,MAAMC,WAAW,CAACC,QACPA,UAAUC,UAAU,GAAG;IAGlC,MAAMC,WAAW,CAACF;QACd,IAAIA,OACA,OAAOC,UAAU,GAAG;aAEpB,OAAOA,UAAU,EAAE;IAE3B;IAEA,OAAO,WAAP,GACI,oBAACE,MAAIA;QAAC,MAAML;OACP,CAAC,EAAEE,KAAK,EAAEI,QAAQ,EAAE,iBACjB,oBAACC,QAAMA;YACH,OAAOR;YACP,SAASE,SAASC;YAClB,UAAUA,CAAAA,QAASI,SAASF,SAASF;;AAKzD"}
|
|
@@ -11,7 +11,7 @@ interface QueryBuilderDrawerProps {
|
|
|
11
11
|
isOpen: boolean;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
export declare const QueryBuilderDrawer: (({ filter, ...props }: QueryBuilderDrawerProps) => React.JSX.Element) & {
|
|
15
|
-
|
|
14
|
+
export declare const QueryBuilderDrawer: (({ filter, ...props }: QueryBuilderDrawerProps) => React.JSX.Element) & React.NamedExoticComponent<QueryBuilderDrawerProps> & {
|
|
15
|
+
readonly type: ({ filter, ...props }: QueryBuilderDrawerProps) => React.JSX.Element;
|
|
16
16
|
};
|
|
17
17
|
export {};
|
|
@@ -19,6 +19,6 @@ export interface TableInnerProps<T extends TableRow> {
|
|
|
19
19
|
sorting: DataTableSorting;
|
|
20
20
|
tablePresenter: TablePresenter;
|
|
21
21
|
}
|
|
22
|
-
export declare const TableInner: (<T extends TableRow>(props: TableInnerProps<T>) => React.JSX.Element) & {
|
|
23
|
-
|
|
22
|
+
export declare const TableInner: (<T extends TableRow>(props: TableInnerProps<T>) => React.JSX.Element) & React.NamedExoticComponent<TableInnerProps<TableRow<unknown>>> & {
|
|
23
|
+
readonly type: <T extends TableRow>(props: TableInnerProps<T>) => React.JSX.Element;
|
|
24
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-aco",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.12-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -16,40 +16,40 @@
|
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@apollo/react-hooks": "3.1.5",
|
|
19
|
-
"@webiny/admin-ui": "6.4.
|
|
20
|
-
"@webiny/app": "6.4.
|
|
21
|
-
"@webiny/app-admin": "6.4.
|
|
22
|
-
"@webiny/app-headless-cms-common": "6.4.
|
|
23
|
-
"@webiny/app-utils": "6.4.
|
|
24
|
-
"@webiny/feature": "6.4.
|
|
25
|
-
"@webiny/form": "6.4.
|
|
26
|
-
"@webiny/icons": "6.4.
|
|
27
|
-
"@webiny/plugins": "6.4.
|
|
28
|
-
"@webiny/react-properties": "6.4.
|
|
29
|
-
"@webiny/shared-aco": "6.4.
|
|
30
|
-
"@webiny/utils": "6.4.
|
|
31
|
-
"@webiny/validation": "6.4.
|
|
19
|
+
"@webiny/admin-ui": "6.4.12-beta.0",
|
|
20
|
+
"@webiny/app": "6.4.12-beta.0",
|
|
21
|
+
"@webiny/app-admin": "6.4.12-beta.0",
|
|
22
|
+
"@webiny/app-headless-cms-common": "6.4.12-beta.0",
|
|
23
|
+
"@webiny/app-utils": "6.4.12-beta.0",
|
|
24
|
+
"@webiny/feature": "6.4.12-beta.0",
|
|
25
|
+
"@webiny/form": "6.4.12-beta.0",
|
|
26
|
+
"@webiny/icons": "6.4.12-beta.0",
|
|
27
|
+
"@webiny/plugins": "6.4.12-beta.0",
|
|
28
|
+
"@webiny/react-properties": "6.4.12-beta.0",
|
|
29
|
+
"@webiny/shared-aco": "6.4.12-beta.0",
|
|
30
|
+
"@webiny/utils": "6.4.12-beta.0",
|
|
31
|
+
"@webiny/validation": "6.4.12-beta.0",
|
|
32
32
|
"dot-prop-immutable": "2.1.1",
|
|
33
33
|
"graphql": "16.14.2",
|
|
34
34
|
"graphql-tag": "2.12.7",
|
|
35
35
|
"lodash": "4.18.1",
|
|
36
|
-
"mobx": "
|
|
37
|
-
"mobx-react-lite": "
|
|
36
|
+
"mobx": "7.0.3",
|
|
37
|
+
"mobx-react-lite": "5.0.3",
|
|
38
38
|
"react": "18.3.1",
|
|
39
39
|
"react-dom": "18.3.1",
|
|
40
40
|
"slugify": "1.6.9",
|
|
41
|
-
"zod": "4.
|
|
41
|
+
"zod": "4.6.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/react": "18.3.31",
|
|
45
|
-
"@webiny/build-tools": "6.4.
|
|
46
|
-
"@webiny/di": "1.0
|
|
47
|
-
"@webiny/wcp": "6.4.
|
|
45
|
+
"@webiny/build-tools": "6.4.12-beta.0",
|
|
46
|
+
"@webiny/di": "1.1.0",
|
|
47
|
+
"@webiny/wcp": "6.4.12-beta.0",
|
|
48
48
|
"apollo-client": "2.6.10",
|
|
49
49
|
"apollo-link": "1.2.14",
|
|
50
50
|
"rimraf": "6.1.3",
|
|
51
51
|
"typescript": "6.0.3",
|
|
52
|
-
"vitest": "
|
|
52
|
+
"vitest": "5.0.1"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|