@fibery/views 25.0.0 → 25.1.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.
Files changed (61) hide show
  1. package/lib/field-utils/back-references.d.ts +11 -10
  2. package/lib/field-utils/reference.d.ts +3 -3
  3. package/lib/field-utils/rich-text.d.ts +1 -1
  4. package/lib/field-utils/workflow.d.ts +3 -3
  5. package/lib/index.d.ts +7 -7
  6. package/lib/index.js +5 -3
  7. package/lib/private/board.d.ts +9 -9
  8. package/lib/private/board.js +56 -34
  9. package/lib/private/calendar.d.ts +8 -8
  10. package/lib/private/calendar.js +30 -21
  11. package/lib/private/feed.d.ts +8 -8
  12. package/lib/private/feed.js +29 -20
  13. package/lib/private/form.d.ts +3 -22
  14. package/lib/private/map.d.ts +8 -8
  15. package/lib/private/map.js +29 -20
  16. package/lib/private/smart-folder.d.ts +8 -8
  17. package/lib/private/smart-folder.js +64 -43
  18. package/lib/private/timeline.d.ts +8 -8
  19. package/lib/private/timeline.js +67 -51
  20. package/lib/unit-definitions/back-references-list.js +1 -1
  21. package/lib/unit-definitions/bool-checkbox.js +1 -1
  22. package/lib/unit-definitions/bool.js +1 -1
  23. package/lib/unit-definitions/color-input.js +1 -1
  24. package/lib/unit-definitions/comments-list.js +1 -1
  25. package/lib/unit-definitions/date-range-combobox.js +1 -1
  26. package/lib/unit-definitions/date-range.js +1 -1
  27. package/lib/unit-definitions/date-time-combobox.js +1 -1
  28. package/lib/unit-definitions/date.js +1 -1
  29. package/lib/unit-definitions/file-collection-count.js +1 -1
  30. package/lib/unit-definitions/file-compact-collection.js +1 -1
  31. package/lib/unit-definitions/file-reference.js +1 -1
  32. package/lib/unit-definitions/files-gallery.js +1 -1
  33. package/lib/unit-definitions/files-l-list-item.js +1 -1
  34. package/lib/unit-definitions/files-l-list.js +1 -1
  35. package/lib/unit-definitions/files-list-item.js +1 -1
  36. package/lib/unit-definitions/files-list.js +1 -1
  37. package/lib/unit-definitions/icon-button.js +1 -1
  38. package/lib/unit-definitions/index.js +2 -2
  39. package/lib/unit-definitions/json-input.js +1 -1
  40. package/lib/unit-definitions/number-input.js +1 -1
  41. package/lib/unit-definitions/reference-collection-combobox.js +1 -1
  42. package/lib/unit-definitions/reference-collection-list.js +1 -1
  43. package/lib/unit-definitions/reference-collection-view.js +1 -1
  44. package/lib/unit-definitions/reference-collection.js +1 -1
  45. package/lib/unit-definitions/reference-combobox.js +1 -1
  46. package/lib/unit-definitions/rich-text-document.js +1 -1
  47. package/lib/unit-definitions/text-input.js +1 -1
  48. package/lib/unit-definitions/text.js +1 -1
  49. package/lib/unit-definitions/user-role.js +1 -1
  50. package/lib/unit-utils/enums.d.ts +2 -2
  51. package/lib/unit-utils/get-export-value.d.ts +4 -4
  52. package/lib/units/board.d.ts +1 -1
  53. package/lib/units/canvas/all-units-data-definitions.js +1 -1
  54. package/lib/units/canvas/index.d.ts +1 -1
  55. package/lib/units/default.d.ts +1 -1
  56. package/lib/units/gantt.d.ts +1 -1
  57. package/lib/units/grid.d.ts +1 -1
  58. package/lib/units/grid.js +3 -3
  59. package/lib/units/list.d.ts +1 -1
  60. package/lib/units/make-factory.d.ts +1 -1
  61. package/package.json +8 -9
@@ -1,8 +1,8 @@
1
1
  import { REFERENCE_COLLECTION_LIMIT, calculateReferenceCollectionQuery } from "../field-utils/reference-collection.js";
2
2
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
3
+ import { canEditField } from "../unit-utils/can-edit-field.js";
3
4
  import { getReferenceCollectionExportValue } from "../unit-utils/get-export-value.js";
4
5
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
- import { canEditField } from "../unit-utils/can-edit-field.js";
6
6
  import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
7
7
  //#region src/unit-definitions/reference-collection.ts
8
8
  const type = "reference-collection";
@@ -1,7 +1,7 @@
1
1
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
2
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
3
  import { getReferenceExportValue } from "../unit-utils/get-export-value.js";
3
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
4
- import { canEditField } from "../unit-utils/can-edit-field.js";
5
5
  //#region src/unit-definitions/reference-combobox.ts
6
6
  const type = "reference-combobox";
7
7
  const ReferenceCombobox = {
@@ -1,8 +1,8 @@
1
1
  import { getRichTextQuerySelect } from "../field-utils/rich-text.js";
2
2
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
3
+ import { canEditField } from "../unit-utils/can-edit-field.js";
3
4
  import { getSnippetExportValue } from "../unit-utils/get-export-value.js";
4
5
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
- import { canEditField } from "../unit-utils/can-edit-field.js";
6
6
  //#region src/unit-definitions/rich-text-document.ts
7
7
  const type = "rich-text-document";
8
8
  const RichTextDocument = {
@@ -1,7 +1,7 @@
1
1
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
2
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
3
  import { getExportValue } from "../unit-utils/get-export-value.js";
3
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
4
- import { canEditField } from "../unit-utils/can-edit-field.js";
5
5
  import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
6
6
  //#region src/unit-definitions/text-input.tsx
7
7
  const type = "text-input";
@@ -1,7 +1,7 @@
1
1
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
2
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
3
  import { getExportValue } from "../unit-utils/get-export-value.js";
3
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
4
- import { canEditField } from "../unit-utils/can-edit-field.js";
5
5
  import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
6
6
  //#region src/unit-definitions/text.ts
7
7
  const type = "text";
@@ -1,7 +1,7 @@
1
1
  import { getUserRoleByKey } from "../field-utils/user-role.js";
2
2
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
3
- import { getExportValue } from "../unit-utils/get-export-value.js";
4
3
  import { canEditField } from "../unit-utils/can-edit-field.js";
4
+ import { getExportValue } from "../unit-utils/get-export-value.js";
5
5
  import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
6
6
  //#region src/unit-definitions/user-role.ts
7
7
  const type = "user-role";
@@ -1,10 +1,10 @@
1
1
  import { TypeObject } from "@fibery/schema";
2
- import { FieldExpression } from "@fibery/expression-utils";
3
2
  import { Select } from "@fibery/expression-utils/src/types";
3
+ import { FieldExpression as FieldExpression$1 } from "@fibery/expression-utils";
4
4
  //#region src/unit-utils/enums.d.ts
5
5
  declare const getEnumIconColorQuery: ({ typeObject, contextPath }: {
6
6
  typeObject: TypeObject;
7
- contextPath?: FieldExpression;
7
+ contextPath?: FieldExpression$1;
8
8
  }) => Select;
9
9
  declare function getEnumIconSelect(typeObject: TypeObject): {
10
10
  "enum/icon": string[];
@@ -3,10 +3,10 @@ import { FieldUnit } from "../units/types.js";
3
3
  import { FieldObject, TypeObject } from "@fibery/schema";
4
4
  import { FiberyObject } from "@fibery/expression-utils/src/types";
5
5
  //#region src/unit-utils/get-export-value.d.ts
6
- declare const getExportValue: ({ object, unit }: {
6
+ declare const getExportValue: <Value = unknown>({ object, unit }: {
7
7
  object: FiberyObject;
8
8
  unit: FieldUnit;
9
- }) => any;
9
+ }) => Value;
10
10
  declare const getReferenceCollectionExportValue: ({ unit, typeObject, object }: {
11
11
  object: FiberyObject;
12
12
  unit: FieldUnit;
@@ -20,7 +20,7 @@ declare const getReferenceExportValue: ({ unit, typeObject, object }: {
20
20
  declare const getSnippetExportValue: ({ object, unit }: {
21
21
  object: FiberyObject;
22
22
  unit: FieldUnit;
23
- }) => any;
23
+ }) => unknown;
24
24
  declare const formatDateRangeExportValue: (value: {
25
25
  start: string;
26
26
  end: string;
@@ -33,7 +33,7 @@ declare const getDateRangeExportValue: ({ object, unit, typeObject }: {
33
33
  declare const getLocationExportValue: ({ object, unit }: {
34
34
  object: FiberyObject;
35
35
  unit: FieldUnit;
36
- }) => any;
36
+ }) => unknown;
37
37
  declare const getTitleExportValue: ({ object, typeObject }: {
38
38
  object: FiberyObject;
39
39
  typeObject: TypeObject;
@@ -44,7 +44,7 @@ declare const getTypeUnits: () => PureUnit[], getUnitName: (unit: Unit) => strin
44
44
  schema: import("@fibery/schema").Schema;
45
45
  typeObject: TypeObject;
46
46
  units: Unit[];
47
- }) => any, getUnitDataDefinition: (unit: Unit) => UnitDataDefinition<ButtonUnit> | UnitDataDefinition<DbUnit> | UnitDataDefinition<FieldUnit>;
47
+ }) => import("@fibery/expression-utils").Select, getUnitDataDefinition: (unit: Unit) => UnitDataDefinition<ButtonUnit> | UnitDataDefinition<DbUnit> | UnitDataDefinition<FieldUnit>;
48
48
  declare const getDefaultUnits: (typeObject: TypeObject) => PureUnit[];
49
49
  //#endregion
50
50
  export { getCardUnitsSelect, getDefaultUnits, getHardcodedUnitsForView, getTypeUnits, getUnitDataDefinition, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField };
@@ -2,8 +2,8 @@ import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
2
2
  import { Avatar } from "../../unit-definitions/avatar.js";
3
3
  import { Bool } from "../../unit-definitions/bool.js";
4
4
  import { CollectionCount } from "../../unit-definitions/collection-count.js";
5
- import { DateRange } from "../../unit-definitions/date-range.js";
6
5
  import { Date } from "../../unit-definitions/date.js";
6
+ import { DateRange } from "../../unit-definitions/date-range.js";
7
7
  import { Text } from "../../unit-definitions/text.js";
8
8
  import { Email } from "../../unit-definitions/email.js";
9
9
  import { Emoji } from "../../unit-definitions/emoji.js";
@@ -22,7 +22,7 @@ declare const getTypeUnits: () => PureUnit[], getUnitName: (unit: Unit) => strin
22
22
  schema: import("@fibery/schema").Schema;
23
23
  typeObject: import("@fibery/schema").TypeObject;
24
24
  units: Unit[];
25
- }) => any, getHardcodedUnitsForView: (typeObject: import("@fibery/schema").TypeObject) => ({
25
+ }) => import("@fibery/expression-utils").Select, getHardcodedUnitsForView: (typeObject: import("@fibery/schema").TypeObject) => ({
26
26
  kind: "user-button";
27
27
  type: "user-button" | "icon-button";
28
28
  data: {
@@ -23,7 +23,7 @@ declare const getTypeUnits: () => PureUnit[], getUnitName: (unit: Unit) => strin
23
23
  schema: import("@fibery/schema").Schema;
24
24
  typeObject: TypeObject;
25
25
  units: Unit[];
26
- }) => any, getUnitLabel: (typeObject: TypeObject, unit: Unit) => string, getHardcodedUnitsForView: (typeObject: TypeObject) => ({
26
+ }) => import("@fibery/expression-utils").Select, getUnitLabel: (typeObject: TypeObject, unit: Unit) => string, getHardcodedUnitsForView: (typeObject: TypeObject) => ({
27
27
  kind: "user-button";
28
28
  type: "user-button" | "icon-button";
29
29
  data: {
@@ -23,7 +23,7 @@ declare const getTypeUnits: () => PureUnit[], getUnitName: (unit: Unit) => strin
23
23
  schema: import("@fibery/schema").Schema;
24
24
  typeObject: TypeObject;
25
25
  units: Unit[];
26
- }) => any, getUnitLabel: (typeObject: TypeObject, unit: Unit) => string, getHardcodedUnitsForView: (typeObject: TypeObject) => ({
26
+ }) => import("@fibery/expression-utils").Select, getUnitLabel: (typeObject: TypeObject, unit: Unit) => string, getHardcodedUnitsForView: (typeObject: TypeObject) => ({
27
27
  kind: "user-button";
28
28
  type: "user-button" | "icon-button";
29
29
  data: {
@@ -22,7 +22,7 @@ declare const getTypeUnits: () => PureUnit[], getUnitName: (unit: Unit) => strin
22
22
  schema: import("@fibery/schema").Schema;
23
23
  typeObject: import("@fibery/schema").TypeObject;
24
24
  units: Unit[];
25
- }) => any, getHardcodedUnitsForView: (typeObject: import("@fibery/schema").TypeObject) => ({
25
+ }) => import("@fibery/expression-utils").Select, getHardcodedUnitsForView: (typeObject: import("@fibery/schema").TypeObject) => ({
26
26
  kind: "user-button";
27
27
  type: "user-button" | "icon-button";
28
28
  data: {
package/lib/units/grid.js CHANGED
@@ -3,13 +3,11 @@ import { AvatarCollection } from "../unit-definitions/avatar-collection.js";
3
3
  import { Avatar } from "../unit-definitions/avatar.js";
4
4
  import { Bool } from "../unit-definitions/bool.js";
5
5
  import { CollectionCount } from "../unit-definitions/collection-count.js";
6
- import { DateRange } from "../unit-definitions/date-range.js";
7
6
  import { Date } from "../unit-definitions/date.js";
7
+ import { DateRange } from "../unit-definitions/date-range.js";
8
8
  import { Text } from "../unit-definitions/text.js";
9
9
  import { Email } from "../unit-definitions/email.js";
10
10
  import { Emoji } from "../unit-definitions/emoji.js";
11
- import { FileCollectionCount } from "../unit-definitions/file-collection-count.js";
12
- import { FilesGallery } from "../unit-definitions/files-gallery.js";
13
11
  import { IconButton } from "../unit-definitions/icon-button.js";
14
12
  import { Id } from "../unit-definitions/id.js";
15
13
  import { Location } from "../unit-definitions/location.js";
@@ -27,7 +25,9 @@ import { TypeIcon } from "../unit-definitions/type-icon.js";
27
25
  import { Url } from "../unit-definitions/url.js";
28
26
  import { UserButton } from "../unit-definitions/user-button.js";
29
27
  import { UserRole } from "../unit-definitions/user-role.js";
28
+ import { FileCollectionCount } from "../unit-definitions/file-collection-count.js";
30
29
  import { makeUnitDefinitionsFactory } from "./make-factory.js";
30
+ import { FilesGallery } from "../unit-definitions/files-gallery.js";
31
31
  import { FileReference } from "@fibery/views/src/unit-definitions/file-reference";
32
32
  //#region src/units/grid.ts
33
33
  var grid_exports = /* @__PURE__ */ __exportAll({
@@ -25,7 +25,7 @@ declare const getTypeUnits: () => PureUnit[], getUnitName: (unit: Unit) => strin
25
25
  schema: import("@fibery/schema").Schema;
26
26
  typeObject: TypeObject;
27
27
  units: Unit[];
28
- }) => any, getHardcodedUnitsForView: (typeObject: TypeObject) => ({
28
+ }) => import("@fibery/expression-utils").Select, getHardcodedUnitsForView: (typeObject: TypeObject) => ({
29
29
  kind: "user-button";
30
30
  type: "user-button" | "icon-button";
31
31
  data: {
@@ -46,7 +46,7 @@ declare const makeUnitDefinitionsFactory: (allUnitDefinitions: Record<string, An
46
46
  schema: Schema;
47
47
  typeObject: TypeObject;
48
48
  units: Unit[];
49
- }) => any;
49
+ }) => import("@fibery/expression-utils").Select;
50
50
  getUnitDataDefinition: (unit: Unit) => AnyUnitDataDefinition;
51
51
  };
52
52
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/views",
3
- "version": "25.0.0",
3
+ "version": "25.1.0",
4
4
  "description": "Operations on view objects",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Fibery",
@@ -32,16 +32,15 @@
32
32
  "dependencies": {
33
33
  "date-fns": "2.29.2",
34
34
  "lodash": "4.17.21",
35
- "moment": "2.29.4",
36
- "@fibery/expression-utils": "15.0.0",
37
- "@fibery/helpers": "4.0.0",
38
- "@fibery/query-utils": "7.0.0",
39
- "@fibery/schema": "12.0.0"
35
+ "moment": "2.31.0",
36
+ "@fibery/expression-utils": "16.0.0",
37
+ "@fibery/helpers": "4.1.0",
38
+ "@fibery/schema": "12.0.1",
39
+ "@fibery/query-utils": "7.1.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@fibery/expression-utils": "^15.0.0",
43
- "@fibery/schema": "^12.0.0",
44
- "immutability-helper": "^2.4.0",
42
+ "@fibery/expression-utils": "^16.0.0",
43
+ "@fibery/schema": "^12.0.1",
45
44
  "lodash": "4.17.21"
46
45
  }
47
46
  }