@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.
Files changed (95) hide show
  1. package/dist/_gqlTypes/index.d.ts +154 -0
  2. package/dist/_gqlTypes/index.js +37 -0
  3. package/dist/_gqlTypes/index.js.map +1 -1
  4. package/dist/_queries/records/getRecordPropertiesQuery.js +2 -0
  5. package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
  6. package/dist/components/Explorer/DataView.d.ts +1 -1
  7. package/dist/components/Explorer/Explorer.d.ts +1 -1
  8. package/dist/components/Explorer/Explorer.js +5 -3
  9. package/dist/components/Explorer/Explorer.js.map +1 -1
  10. package/dist/components/Explorer/_queries/useExplorerData.d.ts +11 -0
  11. package/dist/components/Explorer/{useExplorerData.js → _queries/useExplorerData.js} +1 -1
  12. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -0
  13. package/dist/components/Explorer/_types.js +2 -0
  14. package/dist/components/Explorer/_types.js.map +1 -0
  15. package/dist/components/Explorer/edit-settings/DisplayMode.d.ts +2 -0
  16. package/dist/components/Explorer/edit-settings/DisplayMode.js +10 -0
  17. package/dist/components/Explorer/edit-settings/DisplayMode.js.map +1 -0
  18. package/dist/components/Explorer/edit-settings/EditSettingsContext.d.ts +13 -0
  19. package/dist/components/Explorer/edit-settings/EditSettingsContext.js +14 -0
  20. package/dist/components/Explorer/edit-settings/EditSettingsContext.js.map +1 -0
  21. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.d.ts +2 -0
  22. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js +16 -0
  23. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js.map +1 -0
  24. package/dist/components/Explorer/edit-settings/SettingItem.d.ts +7 -0
  25. package/dist/components/Explorer/edit-settings/SettingItem.js +55 -0
  26. package/dist/components/Explorer/edit-settings/SettingItem.js.map +1 -0
  27. package/dist/components/Explorer/edit-settings/SettingsPanel.d.ts +3 -0
  28. package/dist/components/Explorer/edit-settings/SettingsPanel.js +53 -0
  29. package/dist/components/Explorer/edit-settings/SettingsPanel.js.map +1 -0
  30. package/dist/components/Explorer/edit-settings/SidePanel.d.ts +2 -0
  31. package/dist/components/Explorer/edit-settings/SidePanel.js +19 -0
  32. package/dist/components/Explorer/edit-settings/SidePanel.js.map +1 -0
  33. package/dist/components/Explorer/edit-settings/useEditSettings.d.ts +1 -0
  34. package/dist/components/Explorer/edit-settings/useEditSettings.js +7 -0
  35. package/dist/components/Explorer/edit-settings/useEditSettings.js.map +1 -0
  36. package/dist/components/Explorer/edit-settings/useOpenSettings.d.ts +1 -0
  37. package/dist/components/Explorer/edit-settings/useOpenSettings.js +19 -0
  38. package/dist/components/Explorer/edit-settings/useOpenSettings.js.map +1 -0
  39. package/dist/components/Explorer/index.d.ts +11 -1
  40. package/dist/components/Explorer/index.js +8 -1
  41. package/dist/components/Explorer/index.js.map +1 -1
  42. package/dist/components/Explorer/useCreateMainAction.d.ts +1 -1
  43. package/dist/components/Explorer/useCreateMainAction.js +1 -1
  44. package/dist/components/Explorer/useCreateMainAction.js.map +1 -1
  45. package/dist/components/Explorer/useDeactivateAction.d.ts +1 -1
  46. package/dist/components/Explorer/useDeactivateAction.js +1 -1
  47. package/dist/components/Explorer/useDeactivateAction.js.map +1 -1
  48. package/dist/components/Explorer/useEditAction.d.ts +1 -1
  49. package/dist/components/Explorer/useEditAction.js +1 -1
  50. package/dist/components/Explorer/useEditAction.js.map +1 -1
  51. package/dist/components/RecordEdition/EditRecord/EditRecord.js +21 -3
  52. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  53. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +2 -2
  54. package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.d.ts +121 -0
  55. package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js +31 -0
  56. package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js.map +1 -0
  57. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +2 -2
  58. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +3 -9
  59. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +1 -1
  60. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +3 -0
  61. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  62. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +3 -0
  63. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  64. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +3 -0
  65. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  66. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +3 -0
  67. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  68. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +3 -0
  69. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  70. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +3 -0
  71. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  72. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +3 -0
  73. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  74. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +2 -2
  75. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +37 -28
  76. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +1 -1
  77. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +5 -1
  78. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +1 -1
  79. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +3 -0
  80. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js +123 -0
  81. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +1 -0
  82. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +14 -0
  83. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.js +2 -0
  84. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.js.map +1 -0
  85. package/dist/components/index.d.ts +1 -0
  86. package/dist/components/index.js +1 -0
  87. package/dist/components/index.js.map +1 -1
  88. package/dist/locales/en/shared.json +13 -3
  89. package/dist/locales/fr/shared.json +13 -3
  90. package/package.json +2 -2
  91. package/dist/components/Explorer/types.js +0 -2
  92. package/dist/components/Explorer/types.js.map +0 -1
  93. package/dist/components/Explorer/useExplorerData.d.ts +0 -11
  94. package/dist/components/Explorer/useExplorerData.js.map +0 -1
  95. /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":""}
@@ -36,3 +36,4 @@ export * from './TreePicker';
36
36
  export * from './TriggerPreviewsGenerationModal';
37
37
  export * from './UploadFiles';
38
38
  export * from './ValuesVersionConfigurator';
39
+ export * from './Explorer';
@@ -39,4 +39,5 @@ export * from './TreePicker';
39
39
  export * from './TriggerPreviewsGenerationModal';
40
40
  export * from './UploadFiles';
41
41
  export * from './ValuesVersionConfigurator';
42
+ export * from './Explorer';
42
43
  //# sourceMappingURL=index.js.map
@@ -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,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,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"}
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,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,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
- "deactivateItem": "Deactivate item",
601
- "editItem": "Edit item"
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
- "deactivateItem": "Désactiver l’élément",
601
- "editItem": "Éditer l’élément"
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-d88c7ae",
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-c112384",
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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -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"}