@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.
- package/dist/_gqlTypes/index.d.ts +0 -118
- package/dist/_gqlTypes/index.js +7 -73
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/attributes/getAttributesByLib.js +5 -7
- package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +2 -2
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +19 -37
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.d.ts +2 -2
- package/dist/components/Explorer/_queries/useExplorerData.js +1 -5
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +11 -34
- package/dist/components/Explorer/_types.js +1 -7
- package/dist/components/Explorer/_types.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +2 -2
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +1 -6
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +38 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +5 -6
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +4 -12
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +5 -12
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +6 -6
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +7 -29
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +19 -101
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +4 -5
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/locales/en/shared.json +3 -10
- package/dist/locales/fr/shared.json +3 -10
- package/package.json +1 -1
- package/dist/_utils/attributeType.d.ts +0 -3
- package/dist/_utils/attributeType.js +0 -7
- package/dist/_utils/attributeType.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.d.ts +0 -7
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +0 -40
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.d.ts +0 -3
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +0 -79
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +0 -10
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js +0 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts +0 -7
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js +0 -9
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +0 -25
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.d.ts +0 -3
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +0 -53
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +0 -1
package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map
DELETED
|
@@ -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":""}
|
package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts
DELETED
|
@@ -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;
|
package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js
DELETED
|
@@ -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
|
package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map
DELETED
|
@@ -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,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"}
|
package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js
DELETED
|
@@ -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,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/Breacrumb/Breadcrumb.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAGzC,OAAO,EAAC,oBAAoB,EAAC,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAC,6BAA6B,EAAC,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,MAAM,CAAC,MAAM,UAAU,GAAsB,GAAG,EAAE;IAC9C,MAAM,EAAC,CAAC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3
|
|
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"}
|