@fibery/views 26.0.3 → 26.0.4

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.
@@ -1,3 +1,4 @@
1
+ import { NumberDisplaySettings } from "../field-utils/number.js";
1
2
  import { ButtonUnit, ExpressionFieldUnit, UnitExpression } from "../units/types.js";
2
3
  //#region src/unit-definitions/icon-button.d.ts
3
4
  export declare const IconButton: {
@@ -23,7 +24,14 @@ export declare const IconButton: {
23
24
  typeObject: import("@fibery/schema").TypeObject;
24
25
  unit: ButtonUnit | ExpressionFieldUnit;
25
26
  }): string[];
26
- getExportValue: () => null;
27
- canExport: () => false;
27
+ getExportValue({ object, unit }: {
28
+ typeObject: import("@fibery/schema").TypeObject;
29
+ unit: ButtonUnit | ExpressionFieldUnit;
30
+ object: import("@fibery/expression-utils/src/types").FiberyObject;
31
+ displaySettings: NumberDisplaySettings;
32
+ }): unknown;
33
+ canExport({ unit }: {
34
+ unit: ButtonUnit | ExpressionFieldUnit;
35
+ }): boolean;
28
36
  };
29
37
  //#endregion
@@ -1,5 +1,6 @@
1
1
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
2
2
  import { canEditField } from "../unit-utils/can-edit-field.js";
3
+ import { getExportValue } from "../unit-utils/get-export-value.js";
3
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
4
5
  import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
5
6
  //#region src/unit-definitions/icon-button.ts
@@ -34,8 +35,15 @@ const IconButton = {
34
35
  unit
35
36
  });
36
37
  },
37
- getExportValue: () => null,
38
- canExport: () => false
38
+ getExportValue({ object, unit }) {
39
+ return unit.kind === "user-button" ? null : getExportValue({
40
+ object,
41
+ unit
42
+ });
43
+ },
44
+ canExport({ unit }) {
45
+ return unit.kind !== "user-button";
46
+ }
39
47
  };
40
48
  //#endregion
41
49
  export { IconButton };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/views",
3
- "version": "26.0.3",
3
+ "version": "26.0.4",
4
4
  "description": "Operations on view objects",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Fibery",
@@ -30,17 +30,17 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@fibery/expression-utils": "17.0.1",
34
- "@fibery/helpers": "5.1.0",
35
- "@fibery/query-utils": "7.2.5",
36
- "@fibery/schema": "13.1.1",
37
- "date-fns": "2.29.2",
33
+ "@fibery/expression-utils": "17.0.2",
34
+ "@fibery/helpers": "5.2.0",
35
+ "@fibery/query-utils": "7.2.6",
36
+ "@fibery/schema": "13.1.2",
37
+ "date-fns": "3.6.0",
38
38
  "lodash": "4.18.1",
39
39
  "moment": "2.31.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@fibery/expression-utils": "^17.0.1",
43
- "@fibery/schema": "^13.1.1",
42
+ "@fibery/expression-utils": "^17.0.2",
43
+ "@fibery/schema": "^13.1.2",
44
44
  "lodash": "4.18.1"
45
45
  }
46
46
  }