@leav/ui 0.3.6-af10514 → 0.3.6-b0bf87d

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 (79) hide show
  1. package/dist/_gqlTypes/index.d.ts +0 -118
  2. package/dist/_gqlTypes/index.js +7 -73
  3. package/dist/_gqlTypes/index.js.map +1 -1
  4. package/dist/_queries/attributes/getAttributesByLib.js +5 -7
  5. package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
  6. package/dist/components/Explorer/DataView.js.map +1 -1
  7. package/dist/components/Explorer/Explorer.js.map +1 -1
  8. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +2 -2
  9. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +19 -37
  10. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -1
  11. package/dist/components/Explorer/_queries/useExplorerData.d.ts +2 -2
  12. package/dist/components/Explorer/_queries/useExplorerData.js +1 -5
  13. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  14. package/dist/components/Explorer/_types.d.ts +11 -34
  15. package/dist/components/Explorer/_types.js +1 -7
  16. package/dist/components/Explorer/_types.js.map +1 -1
  17. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +2 -2
  18. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -1
  19. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
  20. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +1 -6
  21. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  22. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +1 -1
  23. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
  24. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +1 -1
  25. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +1 -1
  26. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +1 -1
  27. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +1 -1
  28. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +1 -1
  29. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +1 -1
  30. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +38 -2
  31. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
  32. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +1 -1
  33. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +1 -1
  34. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +1 -1
  35. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
  36. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +5 -6
  37. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +4 -12
  38. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  39. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +1 -1
  40. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
  41. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +5 -12
  42. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  43. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +6 -6
  44. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +7 -29
  45. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  46. package/dist/components/Explorer/useViewSettingsReducer.js +19 -101
  47. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  48. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +4 -5
  49. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  50. package/dist/locales/en/shared.json +3 -10
  51. package/dist/locales/fr/shared.json +3 -10
  52. package/package.json +1 -1
  53. package/dist/_utils/attributeType.d.ts +0 -3
  54. package/dist/_utils/attributeType.js +0 -7
  55. package/dist/_utils/attributeType.js.map +0 -1
  56. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.d.ts +0 -7
  57. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +0 -40
  58. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +0 -1
  59. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.d.ts +0 -3
  60. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +0 -79
  61. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +0 -1
  62. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +0 -10
  63. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js +0 -2
  64. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +0 -1
  65. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts +0 -7
  66. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js +0 -9
  67. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +0 -1
  68. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.d.ts +0 -2
  69. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js +0 -6
  70. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +0 -1
  71. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.d.ts +0 -2
  72. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +0 -25
  73. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +0 -1
  74. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.d.ts +0 -3
  75. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +0 -53
  76. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +0 -1
  77. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.d.ts +0 -2
  78. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js +0 -6
  79. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../../../../src/components/Explorer/manage-view-settings/filter-items/filter-type/_types.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { RecordFormAttributeFragment } from '../../../../_gqlTypes';
3
- interface IAttributeSummaryProps {
4
- attribute: RecordFormAttributeFragment;
5
- }
6
- export declare const AttributeSummary: FunctionComponent<IAttributeSummaryProps>;
7
- export default AttributeSummary;
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import PropertiesList from '../PropertiesList';
3
- import { useAttributeInformations } from './useAttributeInformations';
4
- export const AttributeSummary = ({ attribute }) => {
5
- const attributeInformations = useAttributeInformations(attribute);
6
- return _jsx(PropertiesList, { items: attributeInformations });
7
- };
8
- export default AttributeSummary;
9
- //# sourceMappingURL=AttributeSummary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AttributeSummary.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAC;AAMpE,MAAM,CAAC,MAAM,gBAAgB,GAA8C,CAAC,EAAC,SAAS,EAAC,EAAE,EAAE;IACvF,MAAM,qBAAqB,GAAG,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAElE,OAAO,KAAC,cAAc,IAAC,KAAK,EAAE,qBAAqB,GAAI,CAAC;AAC5D,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,2 +0,0 @@
1
- import AttributeSummary from './AttributeSummary';
2
- export default AttributeSummary;
@@ -1,6 +0,0 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import AttributeSummary from './AttributeSummary';
5
- export default AttributeSummary;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,eAAe,gBAAgB,CAAC"}
@@ -1,2 +0,0 @@
1
- import { RecordFormAttributeFragment } from '../../../../_gqlTypes';
2
- export declare const useAttributeInformations: (attribute: RecordFormAttributeFragment) => any[];
@@ -1,25 +0,0 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
5
- import { useLang } from '../../../../hooks';
6
- import { localizedTranslation } from '@leav/utils';
7
- export const useAttributeInformations = (attribute) => {
8
- const { t } = useSharedTranslation();
9
- const { lang } = useLang();
10
- const attributeInformations = [];
11
- if (attribute.format) {
12
- attributeInformations.push({
13
- title: t('record_summary.attribute_format'),
14
- value: attribute.format
15
- });
16
- }
17
- if (attribute.description) {
18
- attributeInformations.push({
19
- title: t('record_summary.descriptive'),
20
- value: localizedTranslation(attribute.description, lang)
21
- });
22
- }
23
- return attributeInformations;
24
- };
25
- //# sourceMappingURL=useAttributeInformations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAttributeInformations.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAEjD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,SAAsC,EAAE,EAAE;IAC/E,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,EAAE,CAAC;IAEzB,MAAM,qBAAqB,GAAG,EAAE,CAAC;IACjC,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC;QACnB,qBAAqB,CAAC,IAAI,CAAC;YACvB,KAAK,EAAE,CAAC,CAAC,iCAAiC,CAAC;YAC3C,KAAK,EAAE,SAAS,CAAC,MAAM;SAC1B,CAAC,CAAC;IACP,CAAC;IAED,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;QACxB,qBAAqB,CAAC,IAAI,CAAC;YACvB,KAAK,EAAE,CAAC,CAAC,4BAA4B,CAAC;YACtC,KAAK,EAAE,oBAAoB,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC;SAC3D,CAAC,CAAC;IACP,CAAC;IAED,OAAO,qBAAqB,CAAC;AACjC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- export declare const Breadcrumb: FunctionComponent;
3
- export default Breadcrumb;
@@ -1,53 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
6
- import { KitBreadcrumb } from 'aristid-ds';
7
- import { useEditRecordReducer } from '../../editRecordReducer/useEditRecordReducer';
8
- import { EditRecordReducerActionsTypes } from '../../editRecordReducer/editRecordReducer';
9
- import { localizedTranslation } from '@leav/utils';
10
- import { useLang } from '../../../../hooks';
11
- export const Breadcrumb = () => {
12
- const { t } = useSharedTranslation();
13
- const { lang } = useLang();
14
- const { state, dispatch } = useEditRecordReducer();
15
- let items = [];
16
- switch (state.sidebarContent) {
17
- case 'none':
18
- case 'valuesVersions':
19
- break;
20
- case 'valueDetails':
21
- items = [
22
- {
23
- title: t('record_summary.entity_overview', {
24
- entity: localizedTranslation(state.record.library.label, lang)
25
- }),
26
- href: '',
27
- onClick: e => {
28
- e.preventDefault();
29
- dispatch({
30
- type: EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT,
31
- content: 'summary'
32
- });
33
- }
34
- },
35
- {
36
- title: t('record_summary.attribute')
37
- }
38
- ];
39
- break;
40
- default:
41
- items = [
42
- {
43
- title: t('record_summary.entity_overview', {
44
- entity: localizedTranslation(state.record.library.label, lang)
45
- })
46
- }
47
- ];
48
- break;
49
- }
50
- return _jsx(KitBreadcrumb, { items: items });
51
- };
52
- export default Breadcrumb;
53
- //# sourceMappingURL=Breadcrumb.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Breadcrumb.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/Breacr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AAC;YACF,MAAM;QACV;YACI,KAAK,GAAG;gBACJ;oBACI,KAAK,EAAE,CAAC,CAAC,gCAAgC,EAAE;wBACvC,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC;qBACjE,CAAC;iBACL;aACJ,CAAC;YACF,MAAM;IACd,CAAC;IACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,2 +0,0 @@
1
- import Breadcrumb from './Breadcrumb';
2
- export default Breadcrumb;
@@ -1,6 +0,0 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import Breadcrumb from './Breadcrumb';
5
- export default Breadcrumb;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/Breacrumb/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,eAAe,UAAU,CAAC"}