@leav/ui 0.3.6-8883a63 → 0.3.6-8bbbdf7

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 (103) hide show
  1. package/dist/__mocks__/common/form.d.ts +1 -0
  2. package/dist/__mocks__/common/form.js +18 -2
  3. package/dist/__mocks__/common/form.js.map +1 -1
  4. package/dist/components/Explorer/Explorer.js +5 -1
  5. package/dist/components/Explorer/Explorer.js.map +1 -1
  6. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  7. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +89 -0
  8. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  9. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +10 -0
  10. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  11. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  12. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +8 -0
  13. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +100 -0
  14. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js.map +1 -0
  15. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.d.ts +1 -1
  16. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +4 -3
  17. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  18. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +1 -0
  19. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +5 -1
  20. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  21. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +35 -1
  22. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +49 -1
  23. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  24. package/dist/components/ExportModal/ExportModal.js +2 -2
  25. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  26. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +1 -1
  27. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  28. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +3 -16
  29. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  30. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +2 -1
  31. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +11 -7
  32. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  33. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
  34. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  35. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  36. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +2 -2
  37. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +86 -269
  38. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  39. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +8 -8
  40. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  41. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +22 -19
  42. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  43. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +11 -16
  44. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  45. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +2 -2
  46. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  47. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +10 -9
  48. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  49. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +16 -14
  50. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  51. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +19 -20
  52. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  53. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +13 -12
  54. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  55. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +11 -9
  56. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +21 -400
  57. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  58. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js +8 -8
  59. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +1 -1
  60. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +0 -2
  61. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +8 -4
  62. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  63. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +55 -0
  64. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  65. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  66. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +31 -0
  67. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  68. package/dist/locales/en/shared.json +12 -2
  69. package/dist/locales/fr/shared.json +12 -2
  70. package/package.json +2 -2
  71. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  72. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js +0 -6
  73. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  74. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  75. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  76. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  77. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  78. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js +0 -9
  79. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  80. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  81. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js +0 -7
  82. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  83. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  84. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  85. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  86. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  87. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  88. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  89. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  90. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  91. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  92. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  93. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  94. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  95. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  96. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  97. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  98. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  99. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  100. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  101. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  102. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  103. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
@@ -1,51 +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 InlineEditor from '@ckeditor/ckeditor5-build-inline';
6
- import { CKEditor } from '@ckeditor/ckeditor5-react';
7
- import styled from 'styled-components';
8
- const CkeditorComponent = styled.div `
9
- border-width: 1px;
10
- border-style: solid;
11
- border-color: #d9d9d9;
12
- background: ${props => (props.$isEditing ? 'white' : '')};
13
- border-radius: 5px;
14
- height: 100%;
15
- position: relative;
16
- z-index: 1;
17
- `;
18
- function RichTextEditorInput({ state, fieldValue, onFocus, onChange }) {
19
- const { isEditing, editingValue } = fieldValue;
20
- const _handleOnChange = (event, editor) => {
21
- onChange(editor.getData());
22
- };
23
- const _handleOnFocus = (event, editor) => {
24
- onFocus();
25
- };
26
- const configToolBar = {
27
- toolbar: {
28
- items: [
29
- 'undo',
30
- 'redo',
31
- '|',
32
- 'heading',
33
- '|',
34
- 'bold',
35
- 'italic',
36
- '|',
37
- 'link',
38
- 'blockQuote',
39
- 'insertTable',
40
- '|',
41
- 'bulletedList',
42
- 'numberedList',
43
- 'outdent',
44
- 'indent'
45
- ]
46
- }
47
- };
48
- return (_jsx(CkeditorComponent, { "data-testid": "ckeditor", "$isEditing": isEditing, children: _jsx(CKEditor, { editor: InlineEditor, config: configToolBar, data: editingValue.toString(), onChange: _handleOnChange, onFocus: _handleOnFocus }) }));
49
- }
50
- export default RichTextEditorInput;
51
- //# sourceMappingURL=RichTextEditorInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RichTextEditorInput.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,YAAY,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAC,QAAQ,EAAC,MAAM,2BAA2B,CAAC;AACnD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAGvC,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAuB;;;;kBAIzC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;;;;;CAK3D,CAAC;AAEF,SAAS,mBAAmB,CAAC,EAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAsB;IACpF,MAAM,EAAC,SAAS,EAAE,YAAY,EAAC,GAAG,UAAU,CAAC;IAE7C,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QACtC,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAC/B,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QACrC,OAAO,EAAE,CAAC;IACd,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG;QAClB,OAAO,EAAE;YACL,KAAK,EAAE;gBACH,MAAM;gBACN,MAAM;gBACN,GAAG;gBACH,SAAS;gBACT,GAAG;gBACH,MAAM;gBACN,QAAQ;gBACR,GAAG;gBACH,MAAM;gBACN,YAAY;gBACZ,aAAa;gBACb,GAAG;gBACH,cAAc;gBACd,cAAc;gBACd,SAAS;gBACT,QAAQ;aACX;SACJ;KACJ,CAAC;IAEF,OAAO,CACH,KAAC,iBAAiB,mBAAa,UAAU,gBAAa,SAAS,YAC3D,KAAC,QAAQ,IACL,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE,YAAY,CAAC,QAAQ,EAAE,EAC7B,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,cAAc,GACzB,GACc,CACvB,CAAC;AACN,CAAC;AAED,eAAe,mBAAmB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { IStandardInputProps } from '../../../../../../../components/RecordEdition/EditRecordContent/_types';
2
- declare function TextInput({ state, fieldValue, onFocus, onChange, onPressEnter, inputRef }: IStandardInputProps): JSX.Element;
3
- export default TextInput;
@@ -1,26 +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 { Input } from 'antd';
6
- import { useEffect } from 'react';
7
- function TextInput({ state, fieldValue, onFocus, onChange, onPressEnter, inputRef }) {
8
- const { isEditing, editingValue } = fieldValue;
9
- useEffect(() => {
10
- // Handle focusing via click on label (not standard focus via click on input)
11
- if (isEditing) {
12
- inputRef.current.focus();
13
- }
14
- }, [isEditing, inputRef]);
15
- const _handleChange = e => {
16
- onChange(e.target.value);
17
- };
18
- const _handleKeyPress = e => {
19
- if (e.key === 'Enter') {
20
- onPressEnter();
21
- }
22
- };
23
- return (_jsx(Input, { ref: inputRef, className: `field-wrapper ${editingValue ? 'has-value' : ''}`, value: String(editingValue), onFocus: onFocus, onChange: _handleChange, onKeyPress: _handleKeyPress, disabled: state.isReadOnly, allowClear: true, autoFocus: true }, "editing"));
24
- }
25
- export default TextInput;
26
- //# sourceMappingURL=TextInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAW,MAAM,MAAM,CAAC;AACrC,OAAO,EAAmB,SAAS,EAAC,MAAM,OAAO,CAAC;AAGlD,SAAS,SAAS,CAAC,EAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAsB;IAClG,MAAM,EAAC,SAAS,EAAE,YAAY,EAAC,GAAG,UAAU,CAAC;IAE7C,SAAS,CAAC,GAAG,EAAE;QACX,6EAA6E;QAC7E,IAAI,SAAS,EAAE,CAAC;YACX,QAAuC,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAC7D,CAAC;IACL,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE1B,MAAM,aAAa,GAAG,CAAC,CAAC,EAAE;QACtB,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,CAAC,CAAC,EAAE;QACxB,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE,CAAC;YACpB,YAAY,EAAE,CAAC;QACnB,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,KAAK,IAEF,GAAG,EAAE,QAAsC,EAC3C,SAAS,EAAE,iBAAiB,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,EAC7D,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,EAC3B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,aAAa,EACvB,UAAU,EAAE,eAAe,EAC3B,QAAQ,EAAE,KAAK,CAAC,UAAU,EAC1B,UAAU,QACV,SAAS,UATL,SAAS,CAUf,CACL,CAAC;AACN,CAAC;AAED,eAAe,SAAS,CAAC"}