@leav/ui 0.3.6-2becf21 → 0.3.6-2d48147
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/__mocks__/common/form.js +2 -0
- package/dist/__mocks__/common/form.js.map +1 -1
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
- package/dist/_gqlTypes/index.d.ts +68 -0
- package/dist/_gqlTypes/index.js +45 -0
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/records/getRecordPropertiesQuery.d.ts +21 -11
- package/dist/_queries/records/getRecordPropertiesQuery.js +6 -0
- package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
- package/dist/_queries/records/getRecordsFromLibraryQuery.js +1 -0
- package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
- package/dist/_queries/values/valueDetailsFragment.js +1 -0
- package/dist/_queries/values/valueDetailsFragment.js.map +1 -1
- package/dist/_utils/getFiltersFromRequest.js +1 -1
- package/dist/_utils/getFiltersFromRequest.js.map +1 -1
- package/dist/_utils/typeguards.d.ts +2 -0
- package/dist/_utils/typeguards.js +2 -0
- package/dist/_utils/typeguards.js.map +1 -0
- package/dist/components/Explorer/DataView.d.ts +9 -0
- package/dist/components/Explorer/DataView.js +53 -0
- package/dist/components/Explorer/DataView.js.map +1 -0
- package/dist/components/Explorer/Explorer.d.ts +9 -0
- package/dist/components/Explorer/Explorer.js +13 -0
- package/dist/components/Explorer/Explorer.js.map +1 -0
- package/dist/components/Explorer/index.d.ts +1 -0
- package/dist/components/Explorer/index.js +5 -0
- package/dist/components/Explorer/index.js.map +1 -0
- package/dist/components/Explorer/tsconfig.json +6 -0
- package/dist/components/Explorer/types.d.ts +13 -0
- package/dist/components/Explorer/types.js +2 -0
- package/dist/components/Explorer/types.js.map +1 -0
- package/dist/components/Explorer/useDeactivateAction.d.ts +29 -0
- package/dist/components/Explorer/useDeactivateAction.js +51 -0
- package/dist/components/Explorer/useDeactivateAction.js.map +1 -0
- package/dist/components/Explorer/useEditAction.d.ts +9 -0
- package/dist/components/Explorer/useEditAction.js +41 -0
- package/dist/components/Explorer/useEditAction.js.map +1 -0
- package/dist/components/Explorer/useExplorerData.d.ts +5 -0
- package/dist/components/Explorer/useExplorerData.js +21 -0
- package/dist/components/Explorer/useExplorerData.js.map +1 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js.map +1 -1
- package/dist/components/LibraryItemsList/manageItems.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +5 -5
- package/dist/components/RecordEdition/EditRecordContent/_types.js +5 -5
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +15 -11
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +8 -8
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +22 -3
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +70 -17
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +7 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js +9 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js +7 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +4 -4
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +8 -8
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +9 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +21 -7
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +15 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +76 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +37 -10
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +15 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +91 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +36 -12
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +41 -14
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +48 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/{DSInputPasswordWrapper.d.ts → DSRichTextWrapper.d.ts} +3 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +82 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +12 -20
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +13 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +80 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +7 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +45 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +9 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +137 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js +5 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.d.ts +6 -6
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +2 -2
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/{components/LibraryItemsList/LibraryItemsListTable → contexts/EditRecordModalContext}/EditRecordModalContext.d.ts +1 -1
- package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js +7 -0
- package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js.map +1 -0
- package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.d.ts +2 -0
- package/dist/{components/LibraryItemsList/LibraryItemsListTable → contexts/EditRecordModalContext}/EditRecordModalProvider.js +4 -4
- package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js.map +1 -0
- package/dist/contexts/EditRecordModalContext/index.d.ts +2 -0
- package/dist/contexts/EditRecordModalContext/index.js +6 -0
- package/dist/contexts/EditRecordModalContext/index.js.map +1 -0
- package/dist/contexts/EditRecordModalContext/tsconfig.json +6 -0
- package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.d.ts +1 -0
- package/dist/{components/LibraryItemsList/LibraryItemsListTable → contexts/EditRecordModalContext}/useEditRecordModalContext.js +1 -1
- package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js.map +1 -0
- package/dist/hooks/useAuth/useAuth.js +1 -1
- package/dist/hooks/useAuth/useAuth.js.map +1 -1
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js.map +1 -1
- package/dist/hooks/useLang/useLang.d.ts +1 -1
- package/dist/hooks/useLang/useLang.js +2 -2
- package/dist/hooks/useLang/useLang.js.map +1 -1
- package/dist/hooks/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +7 -2
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
- package/dist/locales/en/shared.json +7 -0
- package/dist/locales/fr/shared.json +7 -0
- package/package.json +3 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalContext.js +0 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalContext.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalProvider.d.ts +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalProvider.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/useEditRecordModalContext.d.ts +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/useEditRecordModalContext.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputPasswordWrapper.js +0 -63
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputPasswordWrapper.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRefreshFieldValues.js","sourceRoot":"","sources":["../../../src/hooks/useRefreshFieldValues/useRefreshFieldValues.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,sBAAsB,EAAC,MAAM,aAAa,CAAC;AAEnD,OAAO,EACH,wBAAwB,EAI3B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAC,yBAAyB,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"useRefreshFieldValues.js","sourceRoot":"","sources":["../../../src/hooks/useRefreshFieldValues/useRefreshFieldValues.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,sBAAsB,EAAC,MAAM,aAAa,CAAC;AAEnD,OAAO,EACH,wBAAwB,EAI3B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAC,yBAAyB,EAAC,MAAM,YAAY,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAMlD,MAAM,qBAAqB,GAAG,CAC1B,SAAiB,EACjB,WAAmB,EACnB,QAAgB,EACU,EAAE;IAC5B,MAAM,CAAC,iBAAiB,CAAC,GAAG,YAAY,CACpC,wBAAwB,CAAC;QACrB;YACI,WAAW;SACd;KACJ,CAAC,EACF;QACI,WAAW,EAAE,cAAc;KAC9B,CACJ,CAAC;IAEF,OAAO;QACH,WAAW,EAAE,KAAK,EAAE,OAAuB,EAAE,EAAE;YAC3C,MAAM,GAAG,GAAG,MAAM,iBAAiB,CAAC;gBAChC,SAAS,EAAE;oBACP,OAAO,EAAE,SAAS;oBAClB,QAAQ;oBACR,OAAO,EAAE,OAAO;wBACZ,CAAC,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAC,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAC,CAAC,CAAC;wBACtF,CAAC,CAAC,IAAI;iBACb;aACJ,CAAC,CAAC;YAEH,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;gBAChC,OAAO,IAAI,CAAC;YAChB,CAAC;YAED,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;gBAC7D,uBAAuB;gBACvB,MAAM,IAAI,GAAG,EAAC,GAAG,KAAK,EAAC,CAAC;gBACxB,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;oBACpB,OAAO,IAAI,CAAC,UAAU,CAAC;gBAC3B,CAAC;gBAED,OAAO;oBACH,GAAG,IAAI;oBACP,OAAO,EAAE,yBAAyB,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC;iBAC1D,CAAC;YACN,CAAC,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAClB,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -455,6 +455,7 @@
|
|
|
455
455
|
"cancel_confirm_modal_question": "Are you sure?",
|
|
456
456
|
"record_select": "Select a record",
|
|
457
457
|
"inherited_input_helper": "Inherited value: {{- inheritedValue}}",
|
|
458
|
+
"calculated_input_helper": "Calculated value: {{- calculatedValue}}",
|
|
458
459
|
"date_range_from_to": "from {{- from}} to {{- to}}",
|
|
459
460
|
"link_search_result_count": "Results ({{count}}/{{total}})",
|
|
460
461
|
"suggestions_count": "Suggestions ({{count}})"
|
|
@@ -591,5 +592,11 @@
|
|
|
591
592
|
"all-selected-enabled": "All selected mode enabled",
|
|
592
593
|
"all-selected-disabled": "All selected mode disabled",
|
|
593
594
|
"unselect-all": "Unselect All"
|
|
595
|
+
},
|
|
596
|
+
"explorer": {
|
|
597
|
+
"actions": "Actions",
|
|
598
|
+
"more-actions": "Show more",
|
|
599
|
+
"deactivateItem": "Deactivate item",
|
|
600
|
+
"editItem": "Edit item"
|
|
594
601
|
}
|
|
595
602
|
}
|
|
@@ -455,6 +455,7 @@
|
|
|
455
455
|
"cancel_confirm_modal_question": "Êtes-vous sûr(e) ?",
|
|
456
456
|
"record_select": "Sélectionnez un élément",
|
|
457
457
|
"inherited_input_helper": "Valeur héritée : {{- inheritedValue }}",
|
|
458
|
+
"calculated_input_helper": "Valeur calculée : {{- calculatedValue}}",
|
|
458
459
|
"date_range_from_to": "du {{- from}} au {{- to}}",
|
|
459
460
|
"link_search_result_count": "Résultats ({{count}}/{{total}})",
|
|
460
461
|
"suggestions_count": "Suggestions ({{count}})"
|
|
@@ -591,5 +592,11 @@
|
|
|
591
592
|
"all-selected-enabled": "Tout sélectionné actif",
|
|
592
593
|
"all-selected-disabled": "Tout sélectionné inactif",
|
|
593
594
|
"unselect-all": "Tout désélectionner"
|
|
595
|
+
},
|
|
596
|
+
"explorer": {
|
|
597
|
+
"actions": "Actions",
|
|
598
|
+
"more-actions": "Voir plus",
|
|
599
|
+
"deactivateItem": "Désactiver l’élément",
|
|
600
|
+
"editItem": "Éditer l’élément"
|
|
594
601
|
}
|
|
595
602
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leav/ui",
|
|
3
|
-
"version": "0.3.6-
|
|
3
|
+
"version": "0.3.6-2d48147",
|
|
4
4
|
"description": "Shared React components and hooks",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "yarn build",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"@testing-library/react": "14.0.0",
|
|
32
32
|
"@testing-library/react-hooks": "8.0.1",
|
|
33
33
|
"@testing-library/user-event": "14.4.3",
|
|
34
|
+
"@total-typescript/ts-reset": "0.6.1",
|
|
34
35
|
"@types/dompurify": "3.0.3",
|
|
35
36
|
"@types/jest": "29.0.2",
|
|
36
37
|
"@types/object-path": "0.11.1",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"@ant-design/icons": ">=5.2",
|
|
51
52
|
"@apollo/client": ">=3.8.1",
|
|
52
53
|
"antd": "5.15.3",
|
|
53
|
-
"aristid-ds": "
|
|
54
|
+
"aristid-ds": "10.1.0-c112384",
|
|
54
55
|
"dayjs": "^1.11.10",
|
|
55
56
|
"i18next": "22.5",
|
|
56
57
|
"react": "18.2.0",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
-
import { createContext } from 'react';
|
|
5
|
-
export const EditRecordModalContext = createContext({
|
|
6
|
-
editRecord: () => null
|
|
7
|
-
});
|
|
8
|
-
//# sourceMappingURL=EditRecordModalContext.js.map
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalContext.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditRecordModalContext.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalContext.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAOpC,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAyB;IACxE,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI;CACzB,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { IEditRecordModalProps } from '../../../components/RecordEdition/EditRecordModal/EditRecordModal';
|
|
3
|
-
export interface IEditRecordContextType {
|
|
4
|
-
editRecord: (props: IEditRecordModalProps) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const EditRecordModalProvider: FunctionComponent;
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalProvider.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditRecordModalProvider.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalProvider.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACxE,OAAO,EAAC,eAAe,EAAwB,MAAM,8DAA8D,CAAC;AACpH,OAAO,EAAC,sBAAsB,EAAC,MAAM,8EAA8E,CAAC;AAMpH,MAAM,CAAC,MAAM,uBAAuB,GAAsB,KAAK,CAAC,EAAE;IAC9D,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,QAAQ,CAA+B,IAAI,CAAC,CAAC;IAErG,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE;QAC9B,oBAAoB,EAAE,OAAO,EAAE,CAAC;QAEhC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC,EAAE,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAC,CAAC;IAEpD,MAAM,KAAK,GAAG,OAAO,CACjB,GAAG,EAAE,CAAC,CAAC;QACH,UAAU,EAAE,WAAW,CAAC,EAAE;YACtB,uBAAuB,CAAC,WAAW,CAAC,CAAC;QACzC,CAAC;KACJ,CAAC,EACF,CAAC,uBAAuB,CAAC,CAC5B,CAAC;IAEF,OAAO,CACH,MAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,aACxC,KAAK,CAAC,QAAQ,EACd,oBAAoB,IAAI,CACrB,KAAC,eAAe,OAAK,oBAAoB,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,EAAE,OAAO,EAAE,QAAQ,GAAI,CACxG,IAC6B,CACrC,CAAC;AACN,CAAC,CAAC"}
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/useEditRecordModalContext.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useEditRecordModalContext: () => import("../../../components/LibraryItemsList/LibraryItemsListTable/EditRecordModalContext").IEditRecordContextType;
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/useEditRecordModalContext.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEditRecordModalContext.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/LibraryItemsListTable/useEditRecordModalContext.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,EAAC,sBAAsB,EAAC,MAAM,8EAA8E,CAAC;AACpH,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { KitInput } from 'aristid-ds';
|
|
6
|
-
import { useState } from 'react';
|
|
7
|
-
import { Form } from 'antd';
|
|
8
|
-
import styled from 'styled-components';
|
|
9
|
-
import { useSharedTranslation } from '../../../../../../hooks/useSharedTranslation';
|
|
10
|
-
import { useValueDetailsButton } from '../../../../../../components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton';
|
|
11
|
-
import { useLang } from '../../../../../../hooks';
|
|
12
|
-
import { localizedTranslation } from '@leav/utils';
|
|
13
|
-
const KitInputPasswordStyled = styled(KitInput.Password) `
|
|
14
|
-
color: ${({ $shouldHighlightColor }) => ($shouldHighlightColor ? 'var(--general-colors-primary-400)' : 'initial')};
|
|
15
|
-
|
|
16
|
-
.kit-input-wrapper-helper {
|
|
17
|
-
white-space: nowrap;
|
|
18
|
-
text-overflow: ellipsis;
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
export const DSInputPasswordWrapper = ({ value, onChange, state, attribute, fieldValue, handleSubmit, shouldShowValueDetailsButton = false }) => {
|
|
23
|
-
const { t } = useSharedTranslation();
|
|
24
|
-
const { errors } = Form.Item.useStatus();
|
|
25
|
-
const { onValueDetailsButtonClick } = useValueDetailsButton({
|
|
26
|
-
value: fieldValue?.value,
|
|
27
|
-
attribute
|
|
28
|
-
});
|
|
29
|
-
const [hasChanged, setHasChanged] = useState(false);
|
|
30
|
-
const { lang: availableLang } = useLang();
|
|
31
|
-
const _resetToInheritedValue = () => {
|
|
32
|
-
setHasChanged(false);
|
|
33
|
-
onChange(state.inheritedValue.raw_value);
|
|
34
|
-
handleSubmit('', state.attribute.id);
|
|
35
|
-
};
|
|
36
|
-
const _handleOnBlur = (event) => {
|
|
37
|
-
const valueToSubmit = event.target.value;
|
|
38
|
-
if (valueToSubmit === '' && state.isInheritedValue) {
|
|
39
|
-
_resetToInheritedValue();
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
if (hasChanged || !state.isInheritedValue) {
|
|
43
|
-
handleSubmit(valueToSubmit, state.attribute.id);
|
|
44
|
-
}
|
|
45
|
-
onChange(event);
|
|
46
|
-
};
|
|
47
|
-
const _handleOnChange = (event) => {
|
|
48
|
-
setHasChanged(true);
|
|
49
|
-
const inputValue = event.target.value;
|
|
50
|
-
if (state.isInheritedValue && inputValue === '' && event.type === 'click') {
|
|
51
|
-
_resetToInheritedValue();
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
onChange(event);
|
|
55
|
-
};
|
|
56
|
-
const label = localizedTranslation(state.formElement.settings.label, availableLang);
|
|
57
|
-
return (_jsx(KitInputPasswordStyled, { "data-testid": "kit-input-password", label: label, required: state.formElement.settings.required, status: errors.length > 0 ? 'error' : undefined, onInfoClick: shouldShowValueDetailsButton ? onValueDetailsButtonClick : null, helper: state.isInheritedOverrideValue
|
|
58
|
-
? t('record_edition.inherited_input_helper', {
|
|
59
|
-
inheritedValue: state.inheritedValue.raw_value
|
|
60
|
-
})
|
|
61
|
-
: undefined, value: value, disabled: state.isReadOnly, allowClear: !state.isInheritedNotOverrideValue, onBlur: _handleOnBlur, onChange: _handleOnChange, "$shouldHighlightColor": !hasChanged && state.isInheritedNotOverrideValue }));
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=DSInputPasswordWrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSInputPasswordWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputPasswordWrapper.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAwD,QAAQ,EAAC,MAAM,OAAO,CAAC;AAKtF,OAAO,EAAC,IAAI,EAAa,MAAM,MAAM,CAAC;AAEtC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,qBAAqB,EAAC,MAAM,6FAA6F,CAAC;AAElI,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAUjD,MAAM,sBAAsB,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAkC;aAC7E,CAAC,EAAC,qBAAqB,EAAC,EAAE,EA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