@leav/ui 0.3.6-d88c7ae → 0.3.6-dee7a7f
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 +154 -0
- package/dist/_gqlTypes/index.js +37 -0
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/records/getRecordPropertiesQuery.js +2 -0
- package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
- package/dist/components/Explorer/DataView.d.ts +1 -1
- package/dist/components/Explorer/Explorer.d.ts +1 -1
- package/dist/components/Explorer/Explorer.js +5 -3
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.d.ts +11 -0
- package/dist/components/Explorer/{useExplorerData.js → _queries/useExplorerData.js} +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -0
- package/dist/components/Explorer/_types.js +2 -0
- package/dist/components/Explorer/_types.js.map +1 -0
- package/dist/components/Explorer/edit-settings/DisplayMode.d.ts +2 -0
- package/dist/components/Explorer/edit-settings/DisplayMode.js +10 -0
- package/dist/components/Explorer/edit-settings/DisplayMode.js.map +1 -0
- package/dist/components/Explorer/edit-settings/EditSettingsContext.d.ts +13 -0
- package/dist/components/Explorer/edit-settings/EditSettingsContext.js +14 -0
- package/dist/components/Explorer/edit-settings/EditSettingsContext.js.map +1 -0
- package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.d.ts +2 -0
- package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js +16 -0
- package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js.map +1 -0
- package/dist/components/Explorer/edit-settings/SettingItem.d.ts +7 -0
- package/dist/components/Explorer/edit-settings/SettingItem.js +55 -0
- package/dist/components/Explorer/edit-settings/SettingItem.js.map +1 -0
- package/dist/components/Explorer/edit-settings/SettingsPanel.d.ts +3 -0
- package/dist/components/Explorer/edit-settings/SettingsPanel.js +53 -0
- package/dist/components/Explorer/edit-settings/SettingsPanel.js.map +1 -0
- package/dist/components/Explorer/edit-settings/SidePanel.d.ts +2 -0
- package/dist/components/Explorer/edit-settings/SidePanel.js +19 -0
- package/dist/components/Explorer/edit-settings/SidePanel.js.map +1 -0
- package/dist/components/Explorer/edit-settings/useEditSettings.d.ts +1 -0
- package/dist/components/Explorer/edit-settings/useEditSettings.js +7 -0
- package/dist/components/Explorer/edit-settings/useEditSettings.js.map +1 -0
- package/dist/components/Explorer/edit-settings/useOpenSettings.d.ts +1 -0
- package/dist/components/Explorer/edit-settings/useOpenSettings.js +19 -0
- package/dist/components/Explorer/edit-settings/useOpenSettings.js.map +1 -0
- package/dist/components/Explorer/index.d.ts +11 -1
- package/dist/components/Explorer/index.js +8 -1
- package/dist/components/Explorer/index.js.map +1 -1
- package/dist/components/Explorer/useCreateMainAction.d.ts +1 -1
- package/dist/components/Explorer/useCreateMainAction.js +1 -1
- package/dist/components/Explorer/useCreateMainAction.js.map +1 -1
- package/dist/components/Explorer/useDeactivateAction.d.ts +1 -1
- package/dist/components/Explorer/useDeactivateAction.js +1 -1
- package/dist/components/Explorer/useDeactivateAction.js.map +1 -1
- package/dist/components/Explorer/useEditAction.d.ts +1 -1
- package/dist/components/Explorer/useEditAction.js +1 -1
- package/dist/components/Explorer/useEditAction.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +21 -3
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.d.ts +121 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js +31 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +3 -9
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +3 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +3 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +3 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +3 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +3 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +3 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +3 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +37 -28
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +5 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js +123 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +14 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.js +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.js.map +1 -0
- 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/locales/en/shared.json +13 -3
- package/dist/locales/fr/shared.json +13 -3
- package/package.json +2 -2
- package/dist/components/Explorer/types.js +0 -2
- package/dist/components/Explorer/types.js.map +0 -1
- package/dist/components/Explorer/useExplorerData.d.ts +0 -11
- package/dist/components/Explorer/useExplorerData.js.map +0 -1
- /package/dist/components/Explorer/{types.d.ts → _types.d.ts} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RecordFormAttributeStandardAttributeFragment, StandardValuesListFragmentStandardDateRangeValuesListConfFragment, StandardValuesListFragmentStandardStringValuesListConfFragment } from '../../../../../../../_gqlTypes';
|
|
2
|
+
import { IProvidedByAntFormItem } from '../../../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
3
|
+
import { IStandardFieldReducerState, IStandardFieldValue } from '../../../../../../../components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer';
|
|
4
|
+
import { SelectProps } from 'antd';
|
|
5
|
+
export interface IMonoValueSelectProps extends IProvidedByAntFormItem<SelectProps> {
|
|
6
|
+
state: IStandardFieldReducerState;
|
|
7
|
+
attribute: RecordFormAttributeStandardAttributeFragment;
|
|
8
|
+
fieldValue: IStandardFieldValue;
|
|
9
|
+
handleSubmit: (value: string, id?: string) => void;
|
|
10
|
+
handleBlur: () => void;
|
|
11
|
+
shouldShowValueDetailsButton?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type IStringValuesListConf = StandardValuesListFragmentStandardStringValuesListConfFragment;
|
|
14
|
+
export type IDateRangeValuesListConf = StandardValuesListFragmentStandardDateRangeValuesListConfFragment;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.ts"],"names":[],"mappings":""}
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,c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CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kCAAkC,CAAC;AACjD,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC"}
|
|
@@ -458,7 +458,11 @@
|
|
|
458
458
|
"calculated_input_helper": "Calculated value: {{- calculatedValue}}",
|
|
459
459
|
"date_range_from_to": "from {{- from}} to {{- to}}",
|
|
460
460
|
"link_search_result_count": "Results ({{count}}/{{total}})",
|
|
461
|
-
"suggestions_count": "Suggestions ({{count}})"
|
|
461
|
+
"suggestions_count": "Suggestions ({{count}})",
|
|
462
|
+
"search_not_found": "No match",
|
|
463
|
+
"press_enter_to": "Press enter to ",
|
|
464
|
+
"select_this_value": "Select this value",
|
|
465
|
+
"select_option": "Select option "
|
|
462
466
|
},
|
|
463
467
|
"record_summary": {
|
|
464
468
|
"preview_title": "Click here to visualize preview.",
|
|
@@ -597,7 +601,13 @@
|
|
|
597
601
|
"create-one": "Create",
|
|
598
602
|
"actions": "Actions",
|
|
599
603
|
"more-actions": "Show more",
|
|
600
|
-
"
|
|
601
|
-
"
|
|
604
|
+
"deactivate-item": "Deactivate item",
|
|
605
|
+
"edit-item": "Edit item",
|
|
606
|
+
"settings": "Settings",
|
|
607
|
+
"back": "Back",
|
|
608
|
+
"view-configuration": "View Configuration",
|
|
609
|
+
"display-mode": "Display Mode",
|
|
610
|
+
"filters": "Filters",
|
|
611
|
+
"sort": "Sort"
|
|
602
612
|
}
|
|
603
613
|
}
|
|
@@ -458,7 +458,11 @@
|
|
|
458
458
|
"calculated_input_helper": "Valeur calculée : {{- calculatedValue}}",
|
|
459
459
|
"date_range_from_to": "du {{- from}} au {{- to}}",
|
|
460
460
|
"link_search_result_count": "Résultats ({{count}}/{{total}})",
|
|
461
|
-
"suggestions_count": "Suggestions ({{count}})"
|
|
461
|
+
"suggestions_count": "Suggestions ({{count}})",
|
|
462
|
+
"search_not_found": "Aucune correspondance",
|
|
463
|
+
"press_enter_to": "Appuyer sur Entrer pour ",
|
|
464
|
+
"select_this_value": "Sélectionner cette valeur",
|
|
465
|
+
"select_option": "Sélectionner l’option "
|
|
462
466
|
},
|
|
463
467
|
"record_summary": {
|
|
464
468
|
"preview_title": "Cliquez ici pour voir l’aperçu.",
|
|
@@ -597,7 +601,13 @@
|
|
|
597
601
|
"create-one": "Créer",
|
|
598
602
|
"actions": "Actions",
|
|
599
603
|
"more-actions": "Voir plus",
|
|
600
|
-
"
|
|
601
|
-
"
|
|
604
|
+
"deactivate-item": "Désactiver l’élément",
|
|
605
|
+
"edit-item": "Éditer l’élément",
|
|
606
|
+
"settings": "Paramètres",
|
|
607
|
+
"back": "Retour",
|
|
608
|
+
"view-configuration": "Configuration de la vue",
|
|
609
|
+
"display-mode": "Mode d’affichage",
|
|
610
|
+
"filters": "Filtrer",
|
|
611
|
+
"sort": "Trier"
|
|
602
612
|
}
|
|
603
613
|
}
|
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-dee7a7f",
|
|
4
4
|
"description": "Shared React components and hooks",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "yarn build",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@ant-design/icons": ">=5.2",
|
|
52
52
|
"@apollo/client": ">=3.8.1",
|
|
53
53
|
"antd": "5.15.3",
|
|
54
|
-
"aristid-ds": "10.1.0-
|
|
54
|
+
"aristid-ds": "10.1.0-b8e3d81",
|
|
55
55
|
"dayjs": "^1.11.10",
|
|
56
56
|
"i18next": "22.5",
|
|
57
57
|
"react": "18.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/Explorer/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IItemData } from './types';
|
|
2
|
-
import { ExplorerQuery } from '../../_gqlTypes';
|
|
3
|
-
export declare const useExplorerData: (libraryId: string, attributeIds: string[]) => {
|
|
4
|
-
data: IItemData[];
|
|
5
|
-
loading: boolean;
|
|
6
|
-
refetch: (variables?: Partial<import("../../_gqlTypes").Exact<{
|
|
7
|
-
libraryId: import("../../_gqlTypes").Scalars["ID"];
|
|
8
|
-
attributeIds: Array<import("../../_gqlTypes").Scalars["ID"]> | import("../../_gqlTypes").Scalars["ID"];
|
|
9
|
-
filters?: import("../../_gqlTypes").InputMaybe<Array<import("../../_gqlTypes").InputMaybe<import("../../_gqlTypes").RecordFilterInput>> | import("../../_gqlTypes").InputMaybe<import("../../_gqlTypes").RecordFilterInput>>;
|
|
10
|
-
}>>) => Promise<import("@apollo/client").ApolloQueryResult<ExplorerQuery>>;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExplorerData.js","sourceRoot":"","sources":["../../../src/components/Explorer/useExplorerData.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE9D,MAAM,QAAQ,GAAG,CAAC,IAAmB,EAAE,SAAiB,EAAe,EAAE,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,MAAM,EAAE,UAAU,EAAC,EAAE,EAAE,CAAC,CAAC;IAC7C,SAAS;IACT,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE,wBAAwB;IACxC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,wBAAwB;IAC3C,MAAM,EAAE;QACJ,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,IAAI;QACb,GAAG,MAAM;KACZ;IACD,cAAc,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAC,WAAW,EAAE,MAAM,EAAC,EAAE,EAAE,CAAC,CAAC,EAAC,GAAG,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAC,CAAC,EAAE,EAAE,CAAC;CAC3G,CAAC,CAAC,CAAC;AAER,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAE,YAAsB,EAAE,EAAE;IACzE,MAAM,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAC,GAAG,gBAAgB,CAAC,EAAC,SAAS,EAAE,EAAC,SAAS,EAAE,YAAY,EAAC,EAAC,CAAC,CAAC;IAE1F,OAAO;QACH,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI;QAC3D,OAAO;QACP,OAAO;KACV,CAAC;AACN,CAAC,CAAC"}
|
|
File without changes
|