@leav/ui 0.3.6-ac90f23 → 0.3.6-b3a1065

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 (115) hide show
  1. package/dist/__mocks__/common/view.js +7 -5
  2. package/dist/__mocks__/common/view.js.map +1 -1
  3. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +1 -1
  4. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
  5. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +2 -1
  6. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
  7. package/dist/_gqlTypes/index.d.ts +90 -57
  8. package/dist/_gqlTypes/index.js +61 -31
  9. package/dist/_gqlTypes/index.js.map +1 -1
  10. package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +3 -4
  11. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +2 -3
  12. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  13. package/dist/_queries/views/saveViewMutation.js +1 -1
  14. package/dist/_queries/views/viewDetailsFragment.js +14 -11
  15. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  16. package/dist/_utils/index.js +5 -2
  17. package/dist/_utils/index.js.map +1 -1
  18. package/dist/_utils/interleaveElement.d.ts +1 -0
  19. package/dist/_utils/interleaveElement.js +5 -0
  20. package/dist/_utils/interleaveElement.js.map +1 -0
  21. package/dist/components/Explorer/DataView.js +2 -1
  22. package/dist/components/Explorer/DataView.js.map +1 -1
  23. package/dist/components/Explorer/Explorer.d.ts +2 -3
  24. package/dist/components/Explorer/Explorer.js +7 -13
  25. package/dist/components/Explorer/Explorer.js.map +1 -1
  26. package/dist/components/Explorer/_constants.d.ts +4 -0
  27. package/dist/components/Explorer/_constants.js +17 -0
  28. package/dist/components/Explorer/_constants.js.map +1 -0
  29. package/dist/components/Explorer/_queries/useExplorerData.d.ts +6 -4
  30. package/dist/components/Explorer/_queries/useExplorerData.js +76 -12
  31. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  32. package/dist/components/Explorer/_types.d.ts +8 -0
  33. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.d.ts +4 -0
  34. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js +47 -0
  35. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js.map +1 -0
  36. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +4 -2
  37. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  38. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  39. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +37 -0
  40. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  41. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  42. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +90 -0
  43. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  44. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +6 -0
  45. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
  46. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +5 -9
  47. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +31 -3
  48. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  49. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +1 -0
  50. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
  51. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +2 -0
  52. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +24 -6
  53. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
  54. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.d.ts +2 -1
  55. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +45 -28
  56. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  57. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +20 -20
  58. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
  59. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +7 -1
  60. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  61. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +16 -6
  62. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +29 -28
  63. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  64. package/dist/components/Explorer/nullValuesConditions.d.ts +1 -0
  65. package/dist/components/Explorer/nullValuesConditions.js +14 -0
  66. package/dist/components/Explorer/nullValuesConditions.js.map +1 -0
  67. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  68. package/dist/components/Explorer/useViewSettingsReducer.js +103 -0
  69. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  70. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  71. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  72. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  73. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  74. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  75. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  76. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  77. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  78. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  79. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  80. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  81. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  82. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  83. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  84. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  85. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  86. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  87. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  88. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  89. package/dist/components/RecordEdition/EditRecord/EditRecord.js +8 -16
  90. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  91. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +1 -1
  92. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  93. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  94. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  95. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  96. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  97. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  98. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  99. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +31 -3
  100. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  101. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  102. package/dist/hooks/useExecuteSaveViewMutation/index.js +5 -0
  103. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  104. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  105. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  106. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  107. package/dist/locales/en/shared.json +5 -3
  108. package/dist/locales/fr/shared.json +5 -3
  109. package/dist/types/views.d.ts +4 -4
  110. package/package.json +1 -1
  111. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.d.ts +0 -2
  112. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js +0 -37
  113. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js.map +0 -1
  114. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  115. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
@@ -17,10 +17,12 @@ export const mockView = {
17
17
  },
18
18
  color: '#e48232',
19
19
  filters: [],
20
- sort: {
21
- field: 'id',
22
- order: SortOrder.asc
23
- },
24
- settings: []
20
+ sort: [
21
+ {
22
+ field: 'id',
23
+ order: SortOrder.asc
24
+ }
25
+ ],
26
+ attributes: []
25
27
  };
26
28
  //# sourceMappingURL=view.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../src/__mocks__/common/view.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AAGtE,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAE9D,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC3B,EAAE,EAAE,IAAI;IACR,OAAO,EAAE,EAAC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAC;IACvD,MAAM,EAAE,KAAK;IACb,KAAK,EAAE,IAAI;IACX,KAAK,EAAE;QACH,EAAE,EAAE,MAAM;QACV,EAAE,EAAE,MAAM;KACb;IACD,WAAW,EAAE;QACT,EAAE,EAAE,iBAAiB;QACrB,EAAE,EAAE,iBAAiB;KACxB;IACD,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,EAAE;IACX,IAAI,EAAE;QACF,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,SAAS,CAAC,GAAG;KACvB;IACD,QAAQ,EAAE,EAAE;CACf,CAAC"}
1
+ {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../src/__mocks__/common/view.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AAGtE,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAE9D,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC3B,EAAE,EAAE,IAAI;IACR,OAAO,EAAE,EAAC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAC;IACvD,MAAM,EAAE,KAAK;IACb,KAAK,EAAE,IAAI;IACX,KAAK,EAAE;QACH,EAAE,EAAE,MAAM;QACV,EAAE,EAAE,MAAM;KACb;IACD,WAAW,EAAE;QACT,EAAE,EAAE,iBAAiB;QACrB,EAAE,EAAE,iBAAiB;KACxB;IACD,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,EAAE;IACX,IAAI,EAAE;QACF;YACI,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,SAAS,CAAC,GAAG;SACvB;KACJ;IACD,UAAU,EAAE,EAAE;CACjB,CAAC"}
@@ -12,7 +12,7 @@ export const mockGetLibraryDetailExtendedDefaultView = {
12
12
  filters: [],
13
13
  color: null,
14
14
  sort: null,
15
- settings: null
15
+ attributes: []
16
16
  };
17
17
  export const mockGetLibraryDetailExtendedElement = {
18
18
  id: 'test',
@@ -1 +1 @@
1
- {"version":3,"file":"mockGetLibraryDetailExtendedQuery.js","sourceRoot":"","sources":["../../../src/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAOpG,OAAO,EAAC,SAAS,EAAC,MAAM,4BAA4B,CAAC;AAErD,MAAM,CAAC,MAAM,uCAAuC,GAAsC;IACtF,EAAE,EAAE,eAAe;IACnB,WAAW,EAAE,EAAC,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,cAAc,EAAC;IACrD,KAAK,EAAE,SAAS,CAAC,kBAAkB,CAAC;IACpC,OAAO,EAAE,EAAC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAC;IACvD,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,IAAI;IACV,QAAQ,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAA2B;IACvE,EAAE,EAAE,MAAM;IACV,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,eAAe,CAAC,QAAQ;IAClC,KAAK,EAAE;QACH,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,OAAO;KACd;IACD,UAAU,EAAE;QACR;YACI,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,aAAa,CAAC,MAAM;YAC1B,MAAM,EAAE,eAAe,CAAC,IAAI;YAC5B,KAAK,EAAE;gBACH,EAAE,EAAE,OAAO;gBACX,EAAE,EAAE,QAAQ;aACf;YACD,QAAQ,EAAE,KAAK;YACf,eAAe,EAAE,KAAK;YACtB,MAAM,EAAE,KAAK;SAChB;KACJ;IACD,WAAW,EAAE;QACT,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;QACnB,aAAa,EAAE,IAAI;QACnB,aAAa,EAAE,IAAI;QACnB,WAAW,EAAE,IAAI;KACpB;IACD,WAAW,EAAE,uCAAuC;IACpD,WAAW,EAAE,EAAE;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAmC;IAC7E,SAAS,EAAE;QACP,IAAI,EAAE,CAAC,mCAAmC,CAAC;KAC9C;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAuC;IACpF,KAAK,EAAE,CAAC,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"mockGetLibraryDetailExtendedQuery.js","sourceRoot":"","sources":["../../../src/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAOpG,OAAO,EAAC,SAAS,EAAC,MAAM,4BAA4B,CAAC;AAErD,MAAM,CAAC,MAAM,uCAAuC,GAAsC;IACtF,EAAE,EAAE,eAAe;IACnB,WAAW,EAAE,EAAC,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,cAAc,EAAC;IACrD,KAAK,EAAE,SAAS,CAAC,kBAAkB,CAAC;IACpC,OAAO,EAAE,EAAC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAC;IACvD,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,IAAI;IACV,UAAU,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAA2B;IACvE,EAAE,EAAE,MAAM;IACV,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,eAAe,CAAC,QAAQ;IAClC,KAAK,EAAE;QACH,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,OAAO;KACd;IACD,UAAU,EAAE;QACR;YACI,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,aAAa,CAAC,MAAM;YAC1B,MAAM,EAAE,eAAe,CAAC,IAAI;YAC5B,KAAK,EAAE;gBACH,EAAE,EAAE,OAAO;gBACX,EAAE,EAAE,QAAQ;aACf;YACD,QAAQ,EAAE,KAAK;YACf,eAAe,EAAE,KAAK;YACtB,MAAM,EAAE,KAAK;SAChB;KACJ;IACD,WAAW,EAAE;QACT,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;QACnB,aAAa,EAAE,IAAI;QACnB,aAAa,EAAE,IAAI;QACnB,WAAW,EAAE,IAAI;KACpB;IACD,WAAW,EAAE,uCAAuC;IACpD,WAAW,EAAE,EAAE;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAmC;IAC7E,SAAS,EAAE;QACP,IAAI,EAAE,CAAC,mCAAmC,CAAC;KAC9C;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAuC;IACpF,KAAK,EAAE,CAAC,MAAM,CAAC;CAClB,CAAC"}
@@ -18,7 +18,8 @@ const views = [
18
18
  }
19
19
  },
20
20
  filters: [],
21
- valuesVersions: null
21
+ valuesVersions: null,
22
+ attributes: null
22
23
  }
23
24
  ];
24
25
  const mocksGetViewsListQuery = (libraryId) => {
@@ -1 +1 @@
1
- {"version":3,"file":"mockGetViewListQuery.js","sourceRoot":"","sources":["../../../src/__mocks__/mockQuery/mockGetViewListQuery.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AAItE,OAAO,EAAC,iBAAiB,EAAC,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,MAAM,KAAK,GAA6C;IACpD;QACI,GAAG,QAAQ;QACX,UAAU,EAAE,MAAM;QAClB,UAAU,EAAE;YACR,EAAE,EAAE,GAAG;YACP,MAAM,EAAE;gBACJ,EAAE,EAAE,GAAG;gBACP,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE;oBACL,EAAE,EAAE,OAAO;iBACd;aACJ;SACJ;QACD,OAAO,EAAE,EAAS;QAClB,cAAc,EAAE,IAAI;KACvB;CACJ,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,SAAiB,EAAE,EAAE;IACjD,MAAM,KAAK,GAAG;QACV;YACI,OAAO,EAAE;gBACL,KAAK,EAAE,iBAAiB;gBACxB,SAAS,EAAE;oBACP,SAAS;iBACZ;aACJ;YACD,MAAM,EAAE;gBACJ,IAAI,EAAE;oBACF,KAAK,EAAE;wBACH,UAAU,EAAE,CAAC;wBACb,IAAI,EAAE,KAAK;qBACd;iBACJ;aACJ;SACJ;KACJ,CAAC;IAEF,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"mockGetViewListQuery.js","sourceRoot":"","sources":["../../../src/__mocks__/mockQuery/mockGetViewListQuery.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AAItE,OAAO,EAAC,iBAAiB,EAAC,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,MAAM,KAAK,GAA6C;IACpD;QACI,GAAG,QAAQ;QACX,UAAU,EAAE,MAAM;QAClB,UAAU,EAAE;YACR,EAAE,EAAE,GAAG;YACP,MAAM,EAAE;gBACJ,EAAE,EAAE,GAAG;gBACP,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE;oBACL,EAAE,EAAE,OAAO;iBACd;aACJ;SACJ;QACD,OAAO,EAAE,EAAS;QAClB,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,IAAI;KACnB;CACJ,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,SAAiB,EAAE,EAAE;IACjD,MAAM,KAAK,GAAG;QACV;YACI,OAAO,EAAE;gBACL,KAAK,EAAE,iBAAiB;gBACxB,SAAS,EAAE;oBACP,SAAS;iBACZ;aACJ;YACD,MAAM,EAAE;gBACJ,IAAI,EAAE;oBACF,KAAK,EAAE;wBACH,UAAU,EAAE,CAAC;wBACb,IAAI,EAAE,KAAK;qBACd;iBACJ;aACJ;SACJ;KACJ,CAAC;IAEF,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -158,14 +158,15 @@ export declare enum AttributeType {
158
158
  tree = "tree"
159
159
  }
160
160
  export type AttributesFiltersInput = {
161
- format?: InputMaybe<Array<InputMaybe<AttributeFormat>>>;
161
+ format?: InputMaybe<Array<AttributeFormat>>;
162
162
  id?: InputMaybe<Scalars['ID']>;
163
+ ids?: InputMaybe<Array<Scalars['ID']>>;
163
164
  label?: InputMaybe<Scalars['String']>;
164
- libraries?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
165
- librariesExcluded?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
165
+ libraries?: InputMaybe<Array<Scalars['String']>>;
166
+ librariesExcluded?: InputMaybe<Array<Scalars['String']>>;
166
167
  multiple_values?: InputMaybe<Scalars['Boolean']>;
167
168
  system?: InputMaybe<Scalars['Boolean']>;
168
- type?: InputMaybe<Array<InputMaybe<AttributeType>>>;
169
+ type?: InputMaybe<Array<AttributeType>>;
169
170
  versionable?: InputMaybe<Scalars['Boolean']>;
170
171
  };
171
172
  export declare enum AttributesSortableFields {
@@ -251,16 +252,6 @@ export declare enum FormsSortableFields {
251
252
  library = "library",
252
253
  system = "system"
253
254
  }
254
- export declare enum GenerationStatus {
255
- DONE = "DONE",
256
- GENERATION_FAILED = "GENERATION_FAILED",
257
- GENERATION_IN_PROGRESS = "GENERATION_IN_PROGRESS",
258
- GENERATION_IN_PROGRESS_WITH_FAILURE = "GENERATION_IN_PROGRESS_WITH_FAILURE",
259
- PREPARATION_FAILED = "PREPARATION_FAILED",
260
- PREPARATION_IN_PROGRESS = "PREPARATION_IN_PROGRESS",
261
- TRANSMISSION_FAILED = "TRANSMISSION_FAILED",
262
- TRANSMISSION_IN_PROGRESS = "TRANSMISSION_IN_PROGRESS"
263
- }
264
255
  export type GlobalSettingsFileInput = {
265
256
  library: Scalars['String'];
266
257
  recordId: Scalars['String'];
@@ -735,10 +726,11 @@ export declare enum VersionProfilesSortableFields {
735
726
  id = "id"
736
727
  }
737
728
  export type ViewDisplayInput = {
738
- size: ViewSizes;
729
+ size?: InputMaybe<ViewSizes>;
739
730
  type: ViewTypes;
740
731
  };
741
732
  export type ViewInput = {
733
+ attributes?: InputMaybe<Array<Scalars['String']>>;
742
734
  color?: InputMaybe<Scalars['String']>;
743
735
  description?: InputMaybe<Scalars['SystemTranslationOptional']>;
744
736
  display: ViewDisplayInput;
@@ -746,15 +738,10 @@ export type ViewInput = {
746
738
  id?: InputMaybe<Scalars['String']>;
747
739
  label?: InputMaybe<Scalars['SystemTranslation']>;
748
740
  library: Scalars['String'];
749
- settings?: InputMaybe<Array<ViewSettingsInput>>;
750
741
  shared: Scalars['Boolean'];
751
- sort?: InputMaybe<RecordSortInput>;
742
+ sort?: InputMaybe<Array<RecordSortInput>>;
752
743
  valuesVersions?: InputMaybe<Array<ViewValuesVersionInput>>;
753
744
  };
754
- export type ViewSettingsInput = {
755
- name: Scalars['String'];
756
- value?: InputMaybe<Scalars['Any']>;
757
- };
758
745
  export declare enum ViewSizes {
759
746
  BIG = "BIG",
760
747
  MEDIUM = "MEDIUM",
@@ -2487,7 +2474,7 @@ export type ViewDetailsFragment = {
2487
2474
  description?: any | null;
2488
2475
  color?: string | null;
2489
2476
  display: {
2490
- size: ViewSizes;
2477
+ size?: ViewSizes | null;
2491
2478
  type: ViewTypes;
2492
2479
  };
2493
2480
  created_by: {
@@ -2510,10 +2497,10 @@ export type ViewDetailsFragment = {
2510
2497
  label?: any | null;
2511
2498
  } | null;
2512
2499
  }> | null;
2513
- sort?: {
2500
+ sort?: Array<{
2514
2501
  field: string;
2515
2502
  order: SortOrder;
2516
- } | null;
2503
+ }> | null;
2517
2504
  valuesVersions?: Array<{
2518
2505
  treeId: string;
2519
2506
  treeNode: {
@@ -2534,11 +2521,20 @@ export type ViewDetailsFragment = {
2534
2521
  };
2535
2522
  };
2536
2523
  }> | null;
2537
- settings?: Array<{
2538
- name: string;
2539
- value?: any | null;
2524
+ attributes?: Array<{
2525
+ id: string;
2540
2526
  }> | null;
2541
2527
  };
2528
+ export type ViewDetailsFilterFragment = {
2529
+ field?: string | null;
2530
+ value?: string | null;
2531
+ condition?: RecordFilterCondition | null;
2532
+ operator?: RecordFilterOperator | null;
2533
+ tree?: {
2534
+ id: string;
2535
+ label?: any | null;
2536
+ } | null;
2537
+ };
2542
2538
  export type AttributePropertiesFragment = {
2543
2539
  id: string;
2544
2540
  label?: any | null;
@@ -5771,7 +5767,7 @@ export type GetViewQuery = {
5771
5767
  description?: any | null;
5772
5768
  color?: string | null;
5773
5769
  display: {
5774
- size: ViewSizes;
5770
+ size?: ViewSizes | null;
5775
5771
  type: ViewTypes;
5776
5772
  };
5777
5773
  created_by: {
@@ -5794,10 +5790,10 @@ export type GetViewQuery = {
5794
5790
  label?: any | null;
5795
5791
  } | null;
5796
5792
  }> | null;
5797
- sort?: {
5793
+ sort?: Array<{
5798
5794
  field: string;
5799
5795
  order: SortOrder;
5800
- } | null;
5796
+ }> | null;
5801
5797
  valuesVersions?: Array<{
5802
5798
  treeId: string;
5803
5799
  treeNode: {
@@ -5818,9 +5814,8 @@ export type GetViewQuery = {
5818
5814
  };
5819
5815
  };
5820
5816
  }> | null;
5821
- settings?: Array<{
5822
- name: string;
5823
- value?: any | null;
5817
+ attributes?: Array<{
5818
+ id: string;
5824
5819
  }> | null;
5825
5820
  };
5826
5821
  };
@@ -5837,7 +5832,7 @@ export type GetViewsListQuery = {
5837
5832
  description?: any | null;
5838
5833
  color?: string | null;
5839
5834
  display: {
5840
- size: ViewSizes;
5835
+ size?: ViewSizes | null;
5841
5836
  type: ViewTypes;
5842
5837
  };
5843
5838
  created_by: {
@@ -5860,10 +5855,10 @@ export type GetViewsListQuery = {
5860
5855
  label?: any | null;
5861
5856
  } | null;
5862
5857
  }> | null;
5863
- sort?: {
5858
+ sort?: Array<{
5864
5859
  field: string;
5865
5860
  order: SortOrder;
5866
- } | null;
5861
+ }> | null;
5867
5862
  valuesVersions?: Array<{
5868
5863
  treeId: string;
5869
5864
  treeNode: {
@@ -5884,17 +5879,16 @@ export type GetViewsListQuery = {
5884
5879
  };
5885
5880
  };
5886
5881
  }> | null;
5887
- settings?: Array<{
5888
- name: string;
5889
- value?: any | null;
5882
+ attributes?: Array<{
5883
+ id: string;
5890
5884
  }> | null;
5891
5885
  }>;
5892
5886
  };
5893
5887
  };
5894
- export type AddViewMutationVariables = Exact<{
5888
+ export type SaveViewMutationVariables = Exact<{
5895
5889
  view: ViewInput;
5896
5890
  }>;
5897
- export type AddViewMutation = {
5891
+ export type SaveViewMutation = {
5898
5892
  saveView: {
5899
5893
  id: string;
5900
5894
  shared: boolean;
@@ -5902,7 +5896,7 @@ export type AddViewMutation = {
5902
5896
  description?: any | null;
5903
5897
  color?: string | null;
5904
5898
  display: {
5905
- size: ViewSizes;
5899
+ size?: ViewSizes | null;
5906
5900
  type: ViewTypes;
5907
5901
  };
5908
5902
  created_by: {
@@ -5925,10 +5919,10 @@ export type AddViewMutation = {
5925
5919
  label?: any | null;
5926
5920
  } | null;
5927
5921
  }> | null;
5928
- sort?: {
5922
+ sort?: Array<{
5929
5923
  field: string;
5930
5924
  order: SortOrder;
5931
- } | null;
5925
+ }> | null;
5932
5926
  valuesVersions?: Array<{
5933
5927
  treeId: string;
5934
5928
  treeNode: {
@@ -5949,12 +5943,24 @@ export type AddViewMutation = {
5949
5943
  };
5950
5944
  };
5951
5945
  }> | null;
5952
- settings?: Array<{
5953
- name: string;
5954
- value?: any | null;
5946
+ attributes?: Array<{
5947
+ id: string;
5955
5948
  }> | null;
5956
5949
  };
5957
5950
  };
5951
+ export type ExplorerAttributesQueryVariables = Exact<{
5952
+ ids?: InputMaybe<Array<Scalars['ID']> | Scalars['ID']>;
5953
+ }>;
5954
+ export type ExplorerAttributesQuery = {
5955
+ attributes?: {
5956
+ list: Array<{
5957
+ id: string;
5958
+ type: AttributeType;
5959
+ format?: AttributeFormat | null;
5960
+ label?: any | null;
5961
+ }>;
5962
+ } | null;
5963
+ };
5958
5964
  export type ExplorerQueryVariables = Exact<{
5959
5965
  libraryId: Scalars['ID'];
5960
5966
  attributeIds: Array<Scalars['ID']> | Scalars['ID'];
@@ -6066,6 +6072,7 @@ export declare const RecordFormElementFragmentDoc: Apollo.DocumentNode;
6066
6072
  export declare const TreeLightFragmentDoc: Apollo.DocumentNode;
6067
6073
  export declare const TreeDetailsFragmentDoc: Apollo.DocumentNode;
6068
6074
  export declare const TreeNodeChildFragmentDoc: Apollo.DocumentNode;
6075
+ export declare const ViewDetailsFilterFragmentDoc: Apollo.DocumentNode;
6069
6076
  export declare const ViewDetailsFragmentDoc: Apollo.DocumentNode;
6070
6077
  export declare const PropertyValueFragmentDoc: Apollo.DocumentNode;
6071
6078
  export declare const AttributePropertiesFragmentDoc: Apollo.DocumentNode;
@@ -7454,31 +7461,57 @@ export declare function useGetViewsListLazyQuery(baseOptions?: Apollo.LazyQueryH
7454
7461
  export type GetViewsListQueryHookResult = ReturnType<typeof useGetViewsListQuery>;
7455
7462
  export type GetViewsListLazyQueryHookResult = ReturnType<typeof useGetViewsListLazyQuery>;
7456
7463
  export type GetViewsListQueryResult = Apollo.QueryResult<GetViewsListQuery, GetViewsListQueryVariables>;
7457
- export declare const AddViewDocument: Apollo.DocumentNode;
7458
- export type AddViewMutationFn = Apollo.MutationFunction<AddViewMutation, AddViewMutationVariables>;
7464
+ export declare const SaveViewDocument: Apollo.DocumentNode;
7465
+ export type SaveViewMutationFn = Apollo.MutationFunction<SaveViewMutation, SaveViewMutationVariables>;
7459
7466
  /**
7460
- * __useAddViewMutation__
7467
+ * __useSaveViewMutation__
7461
7468
  *
7462
- * To run a mutation, you first call `useAddViewMutation` within a React component and pass it any options that fit your needs.
7463
- * When your component renders, `useAddViewMutation` returns a tuple that includes:
7469
+ * To run a mutation, you first call `useSaveViewMutation` within a React component and pass it any options that fit your needs.
7470
+ * When your component renders, `useSaveViewMutation` returns a tuple that includes:
7464
7471
  * - A mutate function that you can call at any time to execute the mutation
7465
7472
  * - An object with fields that represent the current status of the mutation's execution
7466
7473
  *
7467
7474
  * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
7468
7475
  *
7469
7476
  * @example
7470
- * const [addViewMutation, { data, loading, error }] = useAddViewMutation({
7477
+ * const [saveViewMutation, { data, loading, error }] = useSaveViewMutation({
7471
7478
  * variables: {
7472
7479
  * view: // value for 'view'
7473
7480
  * },
7474
7481
  * });
7475
7482
  */
7476
- export declare function useAddViewMutation(baseOptions?: Apollo.MutationHookOptions<AddViewMutation, AddViewMutationVariables>): Apollo.MutationTuple<AddViewMutation, Exact<{
7483
+ export declare function useSaveViewMutation(baseOptions?: Apollo.MutationHookOptions<SaveViewMutation, SaveViewMutationVariables>): Apollo.MutationTuple<SaveViewMutation, Exact<{
7477
7484
  view: ViewInput;
7478
7485
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
7479
- export type AddViewMutationHookResult = ReturnType<typeof useAddViewMutation>;
7480
- export type AddViewMutationResult = Apollo.MutationResult<AddViewMutation>;
7481
- export type AddViewMutationOptions = Apollo.BaseMutationOptions<AddViewMutation, AddViewMutationVariables>;
7486
+ export type SaveViewMutationHookResult = ReturnType<typeof useSaveViewMutation>;
7487
+ export type SaveViewMutationResult = Apollo.MutationResult<SaveViewMutation>;
7488
+ export type SaveViewMutationOptions = Apollo.BaseMutationOptions<SaveViewMutation, SaveViewMutationVariables>;
7489
+ export declare const ExplorerAttributesDocument: Apollo.DocumentNode;
7490
+ /**
7491
+ * __useExplorerAttributesQuery__
7492
+ *
7493
+ * To run a query within a React component, call `useExplorerAttributesQuery` and pass it any options that fit your needs.
7494
+ * When your component renders, `useExplorerAttributesQuery` returns an object from Apollo Client that contains loading, error, and data properties
7495
+ * you can use to render your UI.
7496
+ *
7497
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
7498
+ *
7499
+ * @example
7500
+ * const { data, loading, error } = useExplorerAttributesQuery({
7501
+ * variables: {
7502
+ * ids: // value for 'ids'
7503
+ * },
7504
+ * });
7505
+ */
7506
+ export declare function useExplorerAttributesQuery(baseOptions?: Apollo.QueryHookOptions<ExplorerAttributesQuery, ExplorerAttributesQueryVariables>): Apollo.QueryResult<ExplorerAttributesQuery, Exact<{
7507
+ ids?: InputMaybe<Array<Scalars["ID"]> | Scalars["ID"]>;
7508
+ }>>;
7509
+ export declare function useExplorerAttributesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ExplorerAttributesQuery, ExplorerAttributesQueryVariables>): Apollo.LazyQueryResultTuple<ExplorerAttributesQuery, Exact<{
7510
+ ids?: InputMaybe<Array<Scalars["ID"]> | Scalars["ID"]>;
7511
+ }>>;
7512
+ export type ExplorerAttributesQueryHookResult = ReturnType<typeof useExplorerAttributesQuery>;
7513
+ export type ExplorerAttributesLazyQueryHookResult = ReturnType<typeof useExplorerAttributesLazyQuery>;
7514
+ export type ExplorerAttributesQueryResult = Apollo.QueryResult<ExplorerAttributesQuery, ExplorerAttributesQueryVariables>;
7482
7515
  export declare const ExplorerDocument: Apollo.DocumentNode;
7483
7516
  /**
7484
7517
  * __useExplorerQuery__
@@ -88,17 +88,6 @@ export var FormsSortableFields;
88
88
  FormsSortableFields["library"] = "library";
89
89
  FormsSortableFields["system"] = "system";
90
90
  })(FormsSortableFields || (FormsSortableFields = {}));
91
- export var GenerationStatus;
92
- (function (GenerationStatus) {
93
- GenerationStatus["DONE"] = "DONE";
94
- GenerationStatus["GENERATION_FAILED"] = "GENERATION_FAILED";
95
- GenerationStatus["GENERATION_IN_PROGRESS"] = "GENERATION_IN_PROGRESS";
96
- GenerationStatus["GENERATION_IN_PROGRESS_WITH_FAILURE"] = "GENERATION_IN_PROGRESS_WITH_FAILURE";
97
- GenerationStatus["PREPARATION_FAILED"] = "PREPARATION_FAILED";
98
- GenerationStatus["PREPARATION_IN_PROGRESS"] = "PREPARATION_IN_PROGRESS";
99
- GenerationStatus["TRANSMISSION_FAILED"] = "TRANSMISSION_FAILED";
100
- GenerationStatus["TRANSMISSION_IN_PROGRESS"] = "TRANSMISSION_IN_PROGRESS";
101
- })(GenerationStatus || (GenerationStatus = {}));
102
91
  export var IoTypes;
103
92
  (function (IoTypes) {
104
93
  IoTypes["boolean"] = "boolean";
@@ -832,6 +821,18 @@ export const TreeNodeChildFragmentDoc = gql `
832
821
  }
833
822
  }
834
823
  ${RecordIdentityFragmentDoc}`;
824
+ export const ViewDetailsFilterFragmentDoc = gql `
825
+ fragment ViewDetailsFilter on RecordFilter {
826
+ field
827
+ value
828
+ tree {
829
+ id
830
+ label
831
+ }
832
+ condition
833
+ operator
834
+ }
835
+ `;
835
836
  export const ViewDetailsFragmentDoc = gql `
836
837
  fragment ViewDetails on View {
837
838
  id
@@ -854,14 +855,7 @@ export const ViewDetailsFragmentDoc = gql `
854
855
  description
855
856
  color
856
857
  filters {
857
- field
858
- value
859
- tree {
860
- id
861
- label
862
- }
863
- condition
864
- operator
858
+ ...ViewDetailsFilter
865
859
  }
866
860
  sort {
867
861
  field
@@ -876,12 +870,12 @@ export const ViewDetailsFragmentDoc = gql `
876
870
  }
877
871
  }
878
872
  }
879
- settings {
880
- name
881
- value
873
+ attributes {
874
+ id
882
875
  }
883
876
  }
884
- ${RecordIdentityFragmentDoc}`;
877
+ ${ViewDetailsFilterFragmentDoc}
878
+ ${RecordIdentityFragmentDoc}`;
885
879
  export const PropertyValueFragmentDoc = gql `
886
880
  fragment PropertyValue on GenericValue {
887
881
  ... on Value {
@@ -2698,33 +2692,69 @@ export function useGetViewsListLazyQuery(baseOptions) {
2698
2692
  const options = { ...defaultOptions, ...baseOptions };
2699
2693
  return Apollo.useLazyQuery(GetViewsListDocument, options);
2700
2694
  }
2701
- export const AddViewDocument = gql `
2702
- mutation ADD_VIEW($view: ViewInput!) {
2695
+ export const SaveViewDocument = gql `
2696
+ mutation SAVE_VIEW($view: ViewInput!) {
2703
2697
  saveView(view: $view) {
2704
2698
  ...ViewDetails
2705
2699
  }
2706
2700
  }
2707
2701
  ${ViewDetailsFragmentDoc}`;
2708
2702
  /**
2709
- * __useAddViewMutation__
2703
+ * __useSaveViewMutation__
2710
2704
  *
2711
- * To run a mutation, you first call `useAddViewMutation` within a React component and pass it any options that fit your needs.
2712
- * When your component renders, `useAddViewMutation` returns a tuple that includes:
2705
+ * To run a mutation, you first call `useSaveViewMutation` within a React component and pass it any options that fit your needs.
2706
+ * When your component renders, `useSaveViewMutation` returns a tuple that includes:
2713
2707
  * - A mutate function that you can call at any time to execute the mutation
2714
2708
  * - An object with fields that represent the current status of the mutation's execution
2715
2709
  *
2716
2710
  * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
2717
2711
  *
2718
2712
  * @example
2719
- * const [addViewMutation, { data, loading, error }] = useAddViewMutation({
2713
+ * const [saveViewMutation, { data, loading, error }] = useSaveViewMutation({
2720
2714
  * variables: {
2721
2715
  * view: // value for 'view'
2722
2716
  * },
2723
2717
  * });
2724
2718
  */
2725
- export function useAddViewMutation(baseOptions) {
2719
+ export function useSaveViewMutation(baseOptions) {
2720
+ const options = { ...defaultOptions, ...baseOptions };
2721
+ return Apollo.useMutation(SaveViewDocument, options);
2722
+ }
2723
+ export const ExplorerAttributesDocument = gql `
2724
+ query ExplorerAttributes($ids: [ID!]) {
2725
+ attributes(filters: {ids: $ids}) {
2726
+ list {
2727
+ id
2728
+ type
2729
+ format
2730
+ label
2731
+ }
2732
+ }
2733
+ }
2734
+ `;
2735
+ /**
2736
+ * __useExplorerAttributesQuery__
2737
+ *
2738
+ * To run a query within a React component, call `useExplorerAttributesQuery` and pass it any options that fit your needs.
2739
+ * When your component renders, `useExplorerAttributesQuery` returns an object from Apollo Client that contains loading, error, and data properties
2740
+ * you can use to render your UI.
2741
+ *
2742
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
2743
+ *
2744
+ * @example
2745
+ * const { data, loading, error } = useExplorerAttributesQuery({
2746
+ * variables: {
2747
+ * ids: // value for 'ids'
2748
+ * },
2749
+ * });
2750
+ */
2751
+ export function useExplorerAttributesQuery(baseOptions) {
2752
+ const options = { ...defaultOptions, ...baseOptions };
2753
+ return Apollo.useQuery(ExplorerAttributesDocument, options);
2754
+ }
2755
+ export function useExplorerAttributesLazyQuery(baseOptions) {
2726
2756
  const options = { ...defaultOptions, ...baseOptions };
2727
- return Apollo.useMutation(AddViewDocument, options);
2757
+ return Apollo.useLazyQuery(ExplorerAttributesDocument, options);
2728
2758
  }
2729
2759
  export const ExplorerDocument = gql `
2730
2760
  query Explorer($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {