@leav/ui 0.3.6-8c2b8a1 → 0.3.6-8ee78f1
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 +118 -0
- package/dist/_gqlTypes/index.js +73 -7
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/attributes/getAttributesByLib.js +7 -5
- package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
- package/dist/_utils/attributeType.d.ts +3 -0
- package/dist/_utils/attributeType.js +7 -0
- package/dist/_utils/attributeType.js.map +1 -0
- package/dist/components/Explorer/Explorer.js +9 -2
- 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 +37 -19
- 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 +2 -0
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +34 -11
- package/dist/components/Explorer/_types.js +7 -1
- 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 +6 -1
- 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 +2 -38
- 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/FilterDropdownContent.d.ts +7 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +40 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +79 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
- 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/_types.d.ts +10 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js +2 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +6 -5
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +12 -4
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +12 -5
- 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 +29 -7
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +93 -18
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts +7 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js +9 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js +6 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +25 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +53 -0
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js +6 -0
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +5 -4
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/locales/en/shared.json +10 -3
- package/dist/locales/fr/shared.json +10 -3
- package/package.json +1 -1
|
@@ -5,20 +5,21 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import { useEffect, useRef } from 'react';
|
|
6
6
|
import { useEditRecordReducer } from '../editRecordReducer/useEditRecordReducer';
|
|
7
7
|
import RecordSummary from './RecordSummary';
|
|
8
|
-
import ValueDetails from './ValueDetails';
|
|
9
8
|
import ValuesVersions from './ValuesVersions';
|
|
10
9
|
import { createPortal } from 'react-dom';
|
|
11
10
|
import { EditRecordReducerActionsTypes } from '../editRecordReducer/editRecordReducer';
|
|
12
11
|
import { KitSidePanel } from 'aristid-ds';
|
|
13
12
|
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
14
13
|
import { EDIT_RECORD_SIDEBAR_ID } from '../../../constants';
|
|
14
|
+
import Breadcrumb from './Breacrumb';
|
|
15
|
+
import AttributeSummary from './AttributeSummary';
|
|
15
16
|
const _getRecordSidebarContent = (state, onMetadataSubmit) => {
|
|
16
|
-
// TODO:
|
|
17
|
+
// TODO: ValuesVersions should be removed or refactored later
|
|
17
18
|
switch (state.sidebarContent) {
|
|
18
19
|
case 'none':
|
|
19
20
|
return null;
|
|
20
21
|
case 'valueDetails':
|
|
21
|
-
return
|
|
22
|
+
return _jsx(AttributeSummary, { attribute: state.activeValue.attribute });
|
|
22
23
|
case 'valuesVersions':
|
|
23
24
|
return _jsx(ValuesVersions, {});
|
|
24
25
|
default:
|
|
@@ -30,7 +31,7 @@ export const EditRecordSidebar = ({ onMetadataSubmit, open, sidebarContainer })
|
|
|
30
31
|
const { state, dispatch } = useEditRecordReducer();
|
|
31
32
|
const sidePanelRef = useRef(null);
|
|
32
33
|
const sidePanelTitle = state.record?.label ?? state.record?.id ?? t('record_summary.new_record');
|
|
33
|
-
const editRecordSidebarContent = (_jsx(KitSidePanel, { ref: sidePanelRef, initialOpen: open, idCardProps: { title: sidePanelTitle }, id: EDIT_RECORD_SIDEBAR_ID, children: _getRecordSidebarContent(state, onMetadataSubmit) }));
|
|
34
|
+
const editRecordSidebarContent = (_jsx(KitSidePanel, { ref: sidePanelRef, initialOpen: open, idCardProps: { title: sidePanelTitle }, id: EDIT_RECORD_SIDEBAR_ID, headerExtra: _jsx(Breadcrumb, {}), children: _getRecordSidebarContent(state, onMetadataSubmit) }));
|
|
34
35
|
useEffect(() => {
|
|
35
36
|
if (sidePanelRef.current) {
|
|
36
37
|
if (open) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditRecordSidebar.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2CAA2C,CAAC;AAC/E,OAAO,aAAa,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"EditRecordSidebar.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2CAA2C,CAAC;AAC/E,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAC,YAAY,EAAC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WAAW,EAAE,IAAI,EACjB,WAAW,EAAE,EAAC,KAAK,EAAE,cAAc,EAAC,EACpC,EAAE,EAAE,sBAAsB,EAC1B,WAAW,EAAE,KAAC,UAAU,KAAG,YAE1B,wBAAwB,CAAC,KAAK,EAAE,gBAAgB,CAAC,GACvC,CAClB,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,YAAY,CAAC,OAAO,EAAE,CAAC;YACvB,IAAI,IAAI,EAAE,CAAC;gBACP,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;gBAE5B,QAAQ,CAAC;oBACL,IAAI,EAAE,6BAA6B,CAAC,mBAAmB;oBACvD,OAAO,EAAE,KAAK,CAAC,cAAc,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc;iBAC9E,CAAC,CAAC;YACP,CAAC;iBAAM,CAAC;gBACJ,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YACjC,CAAC;QACL,CAAC;IACL,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,OAAO,gBAAgB,KAAK,SAAS;QACjC,CAAC,CAAC,wBAAwB;QAC1B,CAAC,CAAC,YAAY,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAAC;AACnE,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"create": "Create",
|
|
31
31
|
"ok": "Ok",
|
|
32
32
|
"max_length": "Max length",
|
|
33
|
-
"confirm": "Confirm"
|
|
33
|
+
"confirm": "Confirm",
|
|
34
|
+
"loading": "Loading"
|
|
34
35
|
},
|
|
35
36
|
"errors": {
|
|
36
37
|
"default_language_required": "The default language is required",
|
|
@@ -251,7 +252,7 @@
|
|
|
251
252
|
"not-classified-in": "Not classified in",
|
|
252
253
|
"equal": "Is Equal",
|
|
253
254
|
"not-equal": "Isn't Equal",
|
|
254
|
-
"through": "
|
|
255
|
+
"through": "Whose attribute",
|
|
255
256
|
"begin-with": "Begin With",
|
|
256
257
|
"end-with": "End With",
|
|
257
258
|
"is-empty": "Is Empty",
|
|
@@ -498,7 +499,11 @@
|
|
|
498
499
|
"open_preview_modal": "Open preview modal",
|
|
499
500
|
"informations": "Informations",
|
|
500
501
|
"chat": "Chat",
|
|
501
|
-
"history": "History"
|
|
502
|
+
"history": "History",
|
|
503
|
+
"entity_overview": "{{entity}} overview",
|
|
504
|
+
"attribute": "Attribute",
|
|
505
|
+
"attribute_format": "Attribute format",
|
|
506
|
+
"descriptive": "Descriptive"
|
|
502
507
|
},
|
|
503
508
|
"view": {
|
|
504
509
|
"views": "Views",
|
|
@@ -669,6 +674,8 @@
|
|
|
669
674
|
"select-condition": "Select condition",
|
|
670
675
|
"true": "True",
|
|
671
676
|
"false": "False",
|
|
677
|
+
"filter-condition": "Condition",
|
|
678
|
+
"filter-link-attribute": "Link attribute",
|
|
672
679
|
"massAction": {
|
|
673
680
|
"itemsTotal_one": "{{count, number}} item",
|
|
674
681
|
"itemsTotal_other": "{{count, number}} items",
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"create": "Créer",
|
|
31
31
|
"ok": "Ok",
|
|
32
32
|
"max_length": "Longueur maximale",
|
|
33
|
-
"confirm": "Confirmer"
|
|
33
|
+
"confirm": "Confirmer",
|
|
34
|
+
"loading": "Chargement"
|
|
34
35
|
},
|
|
35
36
|
"errors": {
|
|
36
37
|
"default_language_required": "La langue par défaut est requise",
|
|
@@ -249,7 +250,7 @@
|
|
|
249
250
|
"not-contains": "Ne contient pas",
|
|
250
251
|
"equal": "Est égal",
|
|
251
252
|
"not-equal": "N'est pas égal",
|
|
252
|
-
"through": "
|
|
253
|
+
"through": "Dont l’attribut",
|
|
253
254
|
"begin-with": "Commence par",
|
|
254
255
|
"end-with": "Fini Par",
|
|
255
256
|
"is-empty": "Est Vide",
|
|
@@ -498,7 +499,11 @@
|
|
|
498
499
|
"open_preview_modal": "Ouvrir la modale d'aperçu",
|
|
499
500
|
"informations": "Informations",
|
|
500
501
|
"chat": "Chat",
|
|
501
|
-
"history": "Historique"
|
|
502
|
+
"history": "Historique",
|
|
503
|
+
"entity_overview": "Fiche {{entity}}",
|
|
504
|
+
"attribute": "Attribut",
|
|
505
|
+
"attribute_format": "Format de l'attribut",
|
|
506
|
+
"descriptive": "Descriptif"
|
|
502
507
|
},
|
|
503
508
|
"view": {
|
|
504
509
|
"views": "Vues",
|
|
@@ -669,6 +674,8 @@
|
|
|
669
674
|
"select-condition": "Sélectionner une condition",
|
|
670
675
|
"true": "Vrai",
|
|
671
676
|
"false": "Faux",
|
|
677
|
+
"filter-condition": "Condition",
|
|
678
|
+
"filter-link-attribute": "Attribut de liaison",
|
|
672
679
|
"massAction": {
|
|
673
680
|
"itemsTotal_one": "{{count, number}} élément",
|
|
674
681
|
"itemsTotal_other": "{{count, number}} éléments",
|