@proteos/ui 0.52.0 → 0.53.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/dist/index.cjs CHANGED
@@ -360,7 +360,8 @@ var AttributeType = {
360
360
  Principal: "principal",
361
361
  Currency: "currency",
362
362
  KnowledgeText: "knowledge-text",
363
- File: "file"
363
+ File: "file",
364
+ ContactAddress: "contact-address"
364
365
  };
365
366
  var ATTRIBUTE_TYPES = Object.values(AttributeType);
366
367
  var ATTRIBUTE_TYPE_ICONS = {
@@ -377,7 +378,8 @@ var ATTRIBUTE_TYPE_ICONS = {
377
378
  [AttributeType.Principal]: lucideReact.UsersRound,
378
379
  [AttributeType.Currency]: lucideReact.Banknote,
379
380
  [AttributeType.KnowledgeText]: lucideReact.BookText,
380
- [AttributeType.File]: lucideReact.Paperclip
381
+ [AttributeType.File]: lucideReact.Paperclip,
382
+ [AttributeType.ContactAddress]: lucideReact.Contact
381
383
  };
382
384
  function useAttributeTypeIcon(type) {
383
385
  return ATTRIBUTE_TYPE_ICONS[type];
@@ -5824,44 +5826,126 @@ var OPERATORS = [
5824
5826
  id: "eq",
5825
5827
  label: "is",
5826
5828
  arity: 1,
5827
- types: ["string", "number", "integer", "currency", "datetime", "enum", "boolean", "relation", "user", "principal"]
5829
+ types: [
5830
+ "string",
5831
+ "number",
5832
+ "integer",
5833
+ "currency",
5834
+ "datetime",
5835
+ "enum",
5836
+ "boolean",
5837
+ "relation",
5838
+ "user",
5839
+ "principal",
5840
+ "contact-address"
5841
+ ]
5828
5842
  },
5829
5843
  {
5830
5844
  id: "ne",
5831
5845
  label: "is not",
5832
5846
  arity: 1,
5833
- types: ["string", "number", "integer", "currency", "datetime", "enum", "boolean", "relation", "user", "principal"]
5847
+ types: [
5848
+ "string",
5849
+ "number",
5850
+ "integer",
5851
+ "currency",
5852
+ "datetime",
5853
+ "enum",
5854
+ "boolean",
5855
+ "relation",
5856
+ "user",
5857
+ "principal",
5858
+ "contact-address"
5859
+ ]
5834
5860
  },
5835
5861
  {
5836
5862
  id: "in",
5837
5863
  label: "is any of",
5838
5864
  arity: "n",
5839
- types: ["string", "number", "integer", "currency", "enum", "relation", "user", "principal"]
5865
+ types: [
5866
+ "string",
5867
+ "number",
5868
+ "integer",
5869
+ "currency",
5870
+ "enum",
5871
+ "relation",
5872
+ "user",
5873
+ "principal",
5874
+ "contact-address"
5875
+ ]
5840
5876
  },
5841
5877
  {
5842
5878
  id: "not_in",
5843
5879
  label: "is none of",
5844
5880
  arity: "n",
5845
- types: ["string", "number", "integer", "currency", "enum", "relation", "user", "principal"]
5881
+ types: [
5882
+ "string",
5883
+ "number",
5884
+ "integer",
5885
+ "currency",
5886
+ "enum",
5887
+ "relation",
5888
+ "user",
5889
+ "principal",
5890
+ "contact-address"
5891
+ ]
5892
+ },
5893
+ { id: "contains", label: "contains", arity: 1, types: ["string", "array", "contact-address"] },
5894
+ { id: "starts_with", label: "starts with", arity: 1, types: ["string", "contact-address"] },
5895
+ { id: "ends_with", label: "ends with", arity: 1, types: ["string", "contact-address"] },
5896
+ {
5897
+ id: "gt",
5898
+ label: "is greater than",
5899
+ arity: 1,
5900
+ types: ["number", "integer", "currency", "datetime"]
5846
5901
  },
5847
- { id: "contains", label: "contains", arity: 1, types: ["string", "array"] },
5848
- { id: "starts_with", label: "starts with", arity: 1, types: ["string"] },
5849
- { id: "ends_with", label: "ends with", arity: 1, types: ["string"] },
5850
- { id: "gt", label: "is greater than", arity: 1, types: ["number", "integer", "currency", "datetime"] },
5851
5902
  { id: "gte", label: "is on or after", arity: 1, types: ["datetime"] },
5852
- { id: "lt", label: "is less than", arity: 1, types: ["number", "integer", "currency", "datetime"] },
5903
+ {
5904
+ id: "lt",
5905
+ label: "is less than",
5906
+ arity: 1,
5907
+ types: ["number", "integer", "currency", "datetime"]
5908
+ },
5853
5909
  { id: "lte", label: "is on or before", arity: 1, types: ["datetime"] },
5854
5910
  {
5855
5911
  id: "empty",
5856
5912
  label: "is empty",
5857
5913
  arity: 0,
5858
- types: ["string", "number", "integer", "currency", "datetime", "enum", "boolean", "array", "relation", "user", "principal", "file"]
5914
+ types: [
5915
+ "string",
5916
+ "number",
5917
+ "integer",
5918
+ "currency",
5919
+ "datetime",
5920
+ "enum",
5921
+ "boolean",
5922
+ "array",
5923
+ "relation",
5924
+ "user",
5925
+ "principal",
5926
+ "file",
5927
+ "contact-address"
5928
+ ]
5859
5929
  },
5860
5930
  {
5861
5931
  id: "not_empty",
5862
5932
  label: "is not empty",
5863
5933
  arity: 0,
5864
- types: ["string", "number", "integer", "currency", "datetime", "enum", "boolean", "array", "relation", "user", "principal", "file"]
5934
+ types: [
5935
+ "string",
5936
+ "number",
5937
+ "integer",
5938
+ "currency",
5939
+ "datetime",
5940
+ "enum",
5941
+ "boolean",
5942
+ "array",
5943
+ "relation",
5944
+ "user",
5945
+ "principal",
5946
+ "file",
5947
+ "contact-address"
5948
+ ]
5865
5949
  }
5866
5950
  ];
5867
5951
  var OP_LABEL_OVERRIDES = {