@ea-lab/reactive-json 0.0.22 → 0.0.23

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 (133) hide show
  1. package/README.md +1 -1
  2. package/dist/NumberField-BCFUb50M.js +1129 -0
  3. package/dist/ThemeProvider-BTKQI5kV.js +88 -0
  4. package/dist/View-BVKFBUCJ.js +20010 -0
  5. package/dist/component/action/HashChangeListener.js +9 -0
  6. package/dist/component/action/Hide.js +4 -0
  7. package/dist/component/action/MessageListener.js +9 -0
  8. package/dist/component/action/Popover.js +6 -0
  9. package/dist/component/action/ReactOnEvent.js +10 -0
  10. package/dist/component/action/Redirect.js +7 -0
  11. package/dist/component/action/Tooltip.js +5 -0
  12. package/dist/component/action/VisuallyHide.js +5 -0
  13. package/dist/component/element/form/CheckBoxField.js +9 -0
  14. package/dist/component/element/form/DateField.js +9 -0
  15. package/dist/component/element/form/NumberField.js +7 -0
  16. package/dist/component/element/form/SelectField.js +9 -0
  17. package/dist/component/element/form/TextAreaField.js +9 -0
  18. package/dist/component/element/form/TextField.js +9 -0
  19. package/dist/component/element/form/formElementsCommon.js +4 -0
  20. package/dist/component/element/html/AccordionItem.js +6 -0
  21. package/dist/component/element/html/FolderSortableTree.js +8 -0
  22. package/dist/component/element/html/FormatNumeral.js +8 -0
  23. package/dist/component/element/html/Html.js +9 -0
  24. package/dist/component/element/html/LabelFromValue.js +8 -0
  25. package/dist/component/element/html/Modal.js +8 -0
  26. package/dist/component/element/html/PreformattedMarkup.js +8 -0
  27. package/dist/component/element/html/SortableTreeItemCollapseButton.js +7 -0
  28. package/dist/component/element/html/Tabs.js +8 -0
  29. package/dist/component/element/special/BootstrapElement.js +5 -0
  30. package/dist/component/element/special/Count.js +7 -0
  31. package/dist/component/element/special/DataFilter.js +8 -0
  32. package/dist/component/element/special/DelayedActions.js +9 -0
  33. package/dist/component/element/special/PageControls.js +10 -0
  34. package/dist/component/element/special/Phantom.js +5 -0
  35. package/dist/component/element/special/Switch.js +10 -0
  36. package/dist/component/hook/usePagination.js +6 -0
  37. package/dist/component/index.d.ts +1 -0
  38. package/dist/component/index.js +1 -0
  39. package/dist/component/reaction/addData.js +4 -0
  40. package/dist/component/reaction/fetchData.js +4 -0
  41. package/dist/component/reaction/moveData.js +4 -0
  42. package/dist/component/reaction/postMessage.js +4 -0
  43. package/dist/component/reaction/redirectNow.js +4 -0
  44. package/dist/component/reaction/removeData.js +4 -0
  45. package/dist/component/reaction/setClipboardData.js +4 -0
  46. package/dist/component/reaction/setData.js +4 -0
  47. package/dist/component/reaction/submitData.js +4 -0
  48. package/dist/component/reaction/triggerEvent.js +28 -0
  49. package/dist/engine/Actions.js +11 -0
  50. package/dist/engine/ComponentCollector.js +19 -0
  51. package/dist/engine/EventDispatcherContext.js +8 -0
  52. package/dist/engine/EventDispatcherProvider.js +20 -0
  53. package/dist/engine/GlobalDataContext.js +5 -0
  54. package/dist/engine/GlobalDataContextProvider.js +9 -0
  55. package/dist/engine/PaginationContext.js +5 -0
  56. package/dist/engine/PaginationProvider.js +30 -0
  57. package/dist/engine/ReactiveJsonRoot.js +1125 -0
  58. package/dist/engine/TemplateContext.js +5 -0
  59. package/dist/engine/TemplateSystem.js +13 -0
  60. package/dist/engine/Types.d.ts +19 -0
  61. package/dist/engine/Types.js +1 -0
  62. package/dist/engine/View.js +10 -0
  63. package/dist/engine/utility/formatString.js +5 -0
  64. package/dist/engine/utility/stringToBoolean.js +26 -0
  65. package/dist/main.d.ts +1 -0
  66. package/dist/main.js +1 -0
  67. package/dist/usePagination-BW6C-P1X.js +276 -0
  68. package/package.json +41 -40
  69. package/dist/esm/types/component/action/HashChangeListener.d.ts +0 -9
  70. package/dist/esm/types/component/action/Hide.d.ts +0 -10
  71. package/dist/esm/types/component/action/MessageListener.d.ts +0 -9
  72. package/dist/esm/types/component/action/Popover.d.ts +0 -5
  73. package/dist/esm/types/component/action/ReactOnEvent.d.ts +0 -26
  74. package/dist/esm/types/component/action/Redirect.d.ts +0 -9
  75. package/dist/esm/types/component/action/Tooltip.d.ts +0 -5
  76. package/dist/esm/types/component/action/VisuallyHide.d.ts +0 -12
  77. package/dist/esm/types/component/element/form/CheckBoxField.d.ts +0 -7
  78. package/dist/esm/types/component/element/form/DateField.d.ts +0 -2
  79. package/dist/esm/types/component/element/form/NumberField.d.ts +0 -7
  80. package/dist/esm/types/component/element/form/SelectField.d.ts +0 -7
  81. package/dist/esm/types/component/element/form/TextAreaField.d.ts +0 -6
  82. package/dist/esm/types/component/element/form/TextField.d.ts +0 -6
  83. package/dist/esm/types/component/element/form/formElementsCommon.d.ts +0 -23
  84. package/dist/esm/types/component/element/html/AccordionItem.d.ts +0 -16
  85. package/dist/esm/types/component/element/html/FolderSortableTree.d.ts +0 -6
  86. package/dist/esm/types/component/element/html/FormatNumeral.d.ts +0 -7
  87. package/dist/esm/types/component/element/html/Html.d.ts +0 -8
  88. package/dist/esm/types/component/element/html/LabelFromValue.d.ts +0 -22
  89. package/dist/esm/types/component/element/html/Modal.d.ts +0 -6
  90. package/dist/esm/types/component/element/html/ModalForm.d.ts +0 -9
  91. package/dist/esm/types/component/element/html/Paragraph.d.ts +0 -5
  92. package/dist/esm/types/component/element/html/PreformattedMarkup.d.ts +0 -7
  93. package/dist/esm/types/component/element/html/SortableTreeItemCollapseButton.d.ts +0 -9
  94. package/dist/esm/types/component/element/html/Tabs.d.ts +0 -18
  95. package/dist/esm/types/component/element/special/BootstrapElement.d.ts +0 -10
  96. package/dist/esm/types/component/element/special/Count.d.ts +0 -13
  97. package/dist/esm/types/component/element/special/DataFilter.d.ts +0 -11
  98. package/dist/esm/types/component/element/special/DelayedActions.d.ts +0 -25
  99. package/dist/esm/types/component/element/special/PageControls.d.ts +0 -9
  100. package/dist/esm/types/component/element/special/Phantom.d.ts +0 -17
  101. package/dist/esm/types/component/element/special/Switch.d.ts +0 -6
  102. package/dist/esm/types/component/hook/usePagination.d.ts +0 -30
  103. package/dist/esm/types/component/index.d.ts +0 -5
  104. package/dist/esm/types/component/reaction/addData.d.ts +0 -6
  105. package/dist/esm/types/component/reaction/fetchData.d.ts +0 -8
  106. package/dist/esm/types/component/reaction/moveData.d.ts +0 -6
  107. package/dist/esm/types/component/reaction/postMessage.d.ts +0 -6
  108. package/dist/esm/types/component/reaction/redirectNow.d.ts +0 -6
  109. package/dist/esm/types/component/reaction/removeData.d.ts +0 -6
  110. package/dist/esm/types/component/reaction/setClipboardData.d.ts +0 -6
  111. package/dist/esm/types/component/reaction/setData.d.ts +0 -6
  112. package/dist/esm/types/component/reaction/submitData.d.ts +0 -8
  113. package/dist/esm/types/component/reaction/triggerEvent.d.ts +0 -6
  114. package/dist/esm/types/component/utility/formatString.d.ts +0 -17
  115. package/dist/esm/types/engine/Actions.d.ts +0 -19
  116. package/dist/esm/types/engine/ComponentCollector.d.ts +0 -12
  117. package/dist/esm/types/engine/EventDispatcherContext.d.ts +0 -13
  118. package/dist/esm/types/engine/EventDispatcherProvider.d.ts +0 -16
  119. package/dist/esm/types/engine/GlobalDataContext.d.ts +0 -10
  120. package/dist/esm/types/engine/GlobalDataContextProvider.d.ts +0 -11
  121. package/dist/esm/types/engine/PaginationContext.d.ts +0 -9
  122. package/dist/esm/types/engine/PaginationProvider.d.ts +0 -12
  123. package/dist/esm/types/engine/ReactiveJsonRoot.d.ts +0 -28
  124. package/dist/esm/types/engine/TemplateContext.d.ts +0 -10
  125. package/dist/esm/types/engine/TemplateSystem.d.ts +0 -89
  126. package/dist/esm/types/engine/View.d.ts +0 -7
  127. package/dist/esm/types/index.d.ts +0 -6
  128. package/dist/esm/types/main.d.ts +0 -10
  129. package/dist/index.cjs.js +0 -9201
  130. package/dist/index.cjs.js.map +0 -1
  131. package/dist/index.d.ts +0 -44
  132. package/dist/index.esm.js +0 -9180
  133. package/dist/index.esm.js.map +0 -1
@@ -1,7 +0,0 @@
1
- /**
2
- * Transforms a number into a numeral of a specific language: roman, upper latin, lower latin, ... and custom.
3
- */
4
- declare const FormatNumeral: ({ props }: {
5
- props: any;
6
- }) => import("react/jsx-runtime").JSX.Element;
7
- export default FormatNumeral;
@@ -1,8 +0,0 @@
1
- export declare const normalizeAttributesForReactJsx: (maybeAttributesObj: any) => {};
2
- declare const Html: ({ props, currentData, datafield, path }: {
3
- props: any;
4
- currentData: any;
5
- datafield: any;
6
- path: any;
7
- }) => import("react/jsx-runtime").JSX.Element;
8
- export default Html;
@@ -1,22 +0,0 @@
1
- /**
2
- * Shows the label associated to a value.
3
- *
4
- * Uses an option-like structure as data source.
5
- * Thus, it's compatible with SelectField, CheckBoxField...
6
- *
7
- * E.g.: [{"label": "Public name", "value": "option value"}].
8
- *
9
- * @param currentData
10
- * @param datafield
11
- * @param path
12
- * @param props
13
- * @returns {JSX.Element}
14
- * @constructor
15
- */
16
- declare const LabelFromValue: ({ currentData, datafield, path, props }: {
17
- currentData: any;
18
- datafield: any;
19
- path: any;
20
- props: any;
21
- }) => import("react/jsx-runtime").JSX.Element | null;
22
- export default LabelFromValue;
@@ -1,6 +0,0 @@
1
- declare const Modal: ({ currentData, path, props }: {
2
- currentData: any;
3
- path: any;
4
- props: any;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
- export default Modal;
@@ -1,9 +0,0 @@
1
- declare function ModalForm({ show, path, handleClose, handleSave, form, currentData }: {
2
- show: any;
3
- path: any;
4
- handleClose: any;
5
- handleSave: any;
6
- form: any;
7
- currentData: any;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- export default ModalForm;
@@ -1,5 +0,0 @@
1
- declare const Paragraph: ({ props, currentData }: {
2
- props: any;
3
- currentData: any;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default Paragraph;
@@ -1,7 +0,0 @@
1
- /**
2
- * Preformatted markup component that takes content and inserts it as HTML.
3
- */
4
- declare const PreformattedMarkup: ({ props }: {
5
- props: any;
6
- }) => import("react/jsx-runtime").JSX.Element;
7
- export default PreformattedMarkup;
@@ -1,9 +0,0 @@
1
- /**
2
- * This is the collapse button for the sortable tree.
3
- *
4
- * It's used when SortableTree is used with a manualDrag option.
5
- */
6
- declare const SortableTreeItemCollapseButton: ({ props }: {
7
- props: any;
8
- }) => import("react/jsx-runtime").JSX.Element;
9
- export default SortableTreeItemCollapseButton;
@@ -1,18 +0,0 @@
1
- /**
2
- * Tabs component using the simple Tabs component from react-bootstrap.
3
- *
4
- * The react-bootstrap's Tabs component is special as it requires a very
5
- * specific structure with <Tabs> directly underneath.
6
- *
7
- * @param currentData
8
- * @param path
9
- * @param props
10
- * @returns {JSX.Element}
11
- * @constructor
12
- */
13
- declare const Tabs: ({ currentData, path, props }: {
14
- currentData: any;
15
- path: any;
16
- props: any;
17
- }) => import("react/jsx-runtime").JSX.Element;
18
- export default Tabs;
@@ -1,10 +0,0 @@
1
- /**
2
- * Wraps a React Bootstrap component.
3
- */
4
- declare function BootstrapElement({ props, currentData, path, bsComponent }: {
5
- props: any;
6
- currentData: any;
7
- path: any;
8
- bsComponent: any;
9
- }): import("react/jsx-runtime").JSX.Element | null;
10
- export default BootstrapElement;
@@ -1,13 +0,0 @@
1
- /**
2
- * Returns a count for something to count.
3
- *
4
- * @param props Component build data.
5
- *
6
- * @returns {null|*}
7
- *
8
- * @constructor
9
- */
10
- declare const Count: ({ props }: {
11
- props: any;
12
- }) => any;
13
- export default Count;
@@ -1,11 +0,0 @@
1
- /**
2
- * Use DataFilter to filter data from the global or template data.
3
- *
4
- * @param args Component build data.
5
- *
6
- * @returns {JSX.Element}
7
- *
8
- * @constructor
9
- */
10
- declare const DataFilter: (args: any) => import("react/jsx-runtime").JSX.Element;
11
- export default DataFilter;
@@ -1,25 +0,0 @@
1
- /**
2
- * Provides a way to execute actions after a delay, at intervals, etc.
3
- *
4
- * @param {{}} props Build data.
5
- * @param currentData Current data.
6
- * @param path Element path.
7
- *
8
- * @constructor
9
- */
10
- declare const DelayedActions: ({ props, currentData, path }: {
11
- props: any;
12
- currentData: any;
13
- path: any;
14
- }) => import("react/jsx-runtime").JSX.Element;
15
- /**
16
- * Gets the reaction functions to execute.
17
- *
18
- * This is a specific adaptation of getActionsToExecute from the Actions core functionality.
19
- *
20
- * @param {Array} actions
21
- * @param {object} templateContexts
22
- * @returns {*[]} The list of reaction function properties. The structure is simpler than getActionsToExecute.
23
- */
24
- export declare const getReactionFunctionsToExecute: (actions: any, templateContexts: any) => never[];
25
- export default DelayedActions;
@@ -1,9 +0,0 @@
1
- /**
2
- * Displays the PageControls found in the PaginationContext, if any.
3
- *
4
- * @returns {JSX.Element|null}
5
- *
6
- * @constructor
7
- */
8
- declare const PageControls: () => import("react/jsx-runtime").JSX.Element | null;
9
- export default PageControls;
@@ -1,17 +0,0 @@
1
- /**
2
- * Phantom element without DOM output.
3
- *
4
- * Use this if you want actions without a DOM element.
5
- *
6
- * @param {{}} props Build data.
7
- * @param currentData Current data.
8
- * @param path Element path.
9
- *
10
- * @constructor
11
- */
12
- declare const Phantom: ({ props, currentData, path }: {
13
- props: any;
14
- currentData: any;
15
- path: any;
16
- }) => import("react/jsx-runtime").JSX.Element;
17
- export default Phantom;
@@ -1,6 +0,0 @@
1
- declare const Switch: ({ props, currentData, path }: {
2
- props: any;
3
- currentData: any;
4
- path: any;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
- export default Switch;
@@ -1,30 +0,0 @@
1
- /**
2
- * Use this hook to create paginations.
3
- *
4
- * @param [Array] dataToPaginate The complete data to paginate.
5
- * @param [int] forcePaginationDisplay Set to true to force the pagination even when having less than 2 pages.
6
- * @param [int] maxPageButtonsCount The maximum page buttons count. Must be at least 1. Defaults to 5 when undefined.
7
- * @param [int] pageMaxItemCount The maximum item count per page. Defaults to 10 when undefined.
8
- *
9
- * @returns {{
10
- * firstShownItemIndex: number,
11
- * getPageCountForContent: (function(Array): number),
12
- * maxShownItemIndexExcluded: number,
13
- * PageControls: (function({pageCount: *})),
14
- * pageMaxItemCount: number,
15
- * sliceVisibleContent: ((function(Array): *)|*),
16
- * }}
17
- */
18
- export declare const usePagination: ({ dataToPaginate, forcePaginationDisplay, maxPageButtonsCount, pageMaxItemCount, }: {
19
- dataToPaginate?: never[] | undefined;
20
- forcePaginationDisplay?: boolean | undefined;
21
- maxPageButtonsCount?: number | undefined;
22
- pageMaxItemCount?: number | undefined;
23
- }) => {
24
- firstShownItemIndex: number;
25
- getPageCountForContent: (contentSource: any) => number;
26
- maxShownItemIndexExcluded: number;
27
- PageControls: () => import("react/jsx-runtime").JSX.Element | null;
28
- pageMaxItemCount: number;
29
- sliceVisibleContent: (contentToSlice: any) => any;
30
- };
@@ -1,5 +0,0 @@
1
- export * from "./action";
2
- export * from "./element";
3
- export * from "./hook";
4
- export * from "./reaction";
5
- export * from "./utility";
@@ -1,6 +0,0 @@
1
- /**
2
- * Adds data at the specified path.
3
- *
4
- * @param {{}} props
5
- */
6
- export declare const addData: (props: any) => void;
@@ -1,8 +0,0 @@
1
- /**
2
- * Fetches data. Similar to submitData, but for GET requests.
3
- *
4
- * Will reload the app content if refreshAppOnResponse is true.
5
- *
6
- * @param {{args: {refreshAppOnResponse, url}, event, globalDataContext, templateContext}} props Reaction function props.
7
- */
8
- export declare const fetchData: (props: any) => void;
@@ -1,6 +0,0 @@
1
- /**
2
- * Moves data at the specified path.
3
- *
4
- * @param {{}} props
5
- */
6
- export declare const moveData: (props: any) => void;
@@ -1,6 +0,0 @@
1
- /**
2
- * Posts a message to the specified target.
3
- *
4
- * @param {{args: {includeChangedValue, message, messageTarget, on, targetOrigin}, event, globalDataContext, templateContext}} props
5
- */
6
- export declare const postMessage: (props: any) => void;
@@ -1,6 +0,0 @@
1
- /**
2
- * Redirects to the specified URL.
3
- *
4
- * @param {{}} props
5
- */
6
- export declare const redirectNow: (props: any) => void;
@@ -1,6 +0,0 @@
1
- /**
2
- * Removes data at the specified path.
3
- *
4
- * @param {{}} props
5
- */
6
- export declare const removeData: (props: any) => void;
@@ -1,6 +0,0 @@
1
- /**
2
- * Copies data to the clipboard.
3
- *
4
- * @param {{}} props
5
- */
6
- export declare const setClipboardData: (props: any) => Promise<void>;
@@ -1,6 +0,0 @@
1
- /**
2
- * Sets data at the specified path.
3
- *
4
- * @param {{}} props
5
- */
6
- export declare const setData: (props: any) => void;
@@ -1,8 +0,0 @@
1
- /**
2
- * Submits the current state of this app data.
3
- *
4
- * Will reload the app content if refreshAppOnResponse is true.
5
- *
6
- * @param {{args: {data, httpMethod, refreshAppOnResponse, submitSilently, url}, event, globalDataContext, templateContext}} props Reaction function props.
7
- */
8
- export declare const submitData: (props: any) => void;
@@ -1,6 +0,0 @@
1
- /**
2
- * Reaction function which will trigger an event on an element identified by the given selector.
3
- *
4
- * @param {{args:{selector, selectorBase, eventName}, event}} props Reaction function props.
5
- */
6
- export declare const triggerEvent: (props: any) => void;
@@ -1,17 +0,0 @@
1
- /**
2
- * Formats the given string with replacement arguments.
3
- *
4
- * @param {{globalDataContext: {}, templateContext: {}}} templateContexts Template contexts.
5
- * @param {string} toFormat The string to format.
6
- * @param {...string} argv The replacement arguments.
7
- */
8
- export declare const formatString: ({ templateContexts }: {
9
- templateContexts: any;
10
- }, toFormat: any, ...argv: any[]) => any;
11
- /**
12
- * Formats the given data with replacement arguments if possible.
13
- *
14
- * @param {{templateContexts: {globalDataContext: {}, templateContext: {}}}} options Template contexts.
15
- * @param {*} toFormat The data to format.
16
- */
17
- export declare const maybeFormatString: (options: any, toFormat: any) => any;
@@ -1,19 +0,0 @@
1
- /**
2
- * Checks whether the conditions are fulfilled.
3
- * @param {{andConditions, containedBy, containedByNot, contains, containsNot, is, isNot, orConditions, when, whenDataCountOf, ">", "<", ">=", "<=", compareAsDates}} condition
4
- * @param {object} templateContexts
5
- * @param {Map} additionalConditionHandlers
6
- * @returns {*}
7
- */
8
- export declare const isValid: (condition: any, templateContexts: any, additionalConditionHandlers: any) => any;
9
- /**
10
- * Component that executes actions before rendering its children.
11
- *
12
- * Actions include a system to hide.
13
- *
14
- * @param props The props that served to build an action dependant component.
15
- * @returns {*}
16
- * @constructor
17
- */
18
- declare const ActionDependant: (props: any) => any;
19
- export default ActionDependant;
@@ -1,12 +0,0 @@
1
- /**
2
- * Merges component collections (aka plugins).
3
- * @param {[{}]} collections Array of plugin collections.
4
- * @return {{hook: {}, reaction: {}, action: {}, utility: {}, element: {}}}
5
- */
6
- export declare function mergeComponentCollections(collections: any): {
7
- action: {};
8
- element: {};
9
- hook: {};
10
- reaction: {};
11
- utility: {};
12
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * A context for "globalizing" event dispatchers.
3
- *
4
- * This will help reducing the count of event listeners added to the DOM,
5
- * which would slow down the render if each listener was appended individually.
6
- *
7
- * @type {React.Context<{removeEventListener: removeEventListener, addEventListener: addEventListener}>}
8
- */
9
- declare const EventDispatcherContext: import("react").Context<{
10
- addEventListener: null;
11
- removeEventListener: null;
12
- }>;
13
- export default EventDispatcherContext;
@@ -1,16 +0,0 @@
1
- /**
2
- * Adds the listener to registered listeners.
3
- *
4
- * @param {string} type The event type.
5
- * @param {Function} listener The event listener.
6
- */
7
- export declare const addEventListener: (type: any, listener: any) => void;
8
- /**
9
- * Removes the specified listener.
10
- *
11
- * @param {string} type Event type.
12
- * @param {Function} listener Event listener.
13
- */
14
- export declare const removeEventListener: (type: any, listener: any) => void;
15
- declare const _default: import("react").MemoExoticComponent<(props: any) => import("react/jsx-runtime").JSX.Element>;
16
- export default _default;
@@ -1,10 +0,0 @@
1
- /**
2
- * This context contains all the build data for the current app.
3
- *
4
- * The use of this context is similar to TemplateContext,
5
- * but the difference is that this one has only one instance.
6
- *
7
- * @type {React.Context<{}>}
8
- */
9
- declare const GlobalDataContext: import("react").Context<{}>;
10
- export default GlobalDataContext;
@@ -1,11 +0,0 @@
1
- /**
2
- * Standard implementation of the provider for GlobalDataContext.
3
- *
4
- * @param props Component props. Must have the "value" key.
5
- *
6
- * @returns {JSX.Element}
7
- *
8
- * @constructor
9
- */
10
- declare const GlobalDataContextProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
11
- export default GlobalDataContextProvider;
@@ -1,9 +0,0 @@
1
- /**
2
- * This is a context opened when a pagination is needed.
3
- *
4
- * @type {React.Context<{}>}
5
- */
6
- declare const PaginationContext: import("react").Context<{
7
- pagination: {};
8
- }>;
9
- export default PaginationContext;
@@ -1,12 +0,0 @@
1
- /**
2
- * Use this provider in combination with EventDispatcherContext.
3
- *
4
- * @param props
5
- *
6
- * @returns {JSX.Element}
7
- *
8
- * @constructor
9
- * @deprecated ne fonctionne pas, envisager un système de preemptiveActions pour filtrer les items en amont
10
- */
11
- declare const PaginationProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
12
- export default PaginationProvider;
@@ -1,28 +0,0 @@
1
- /**
2
- * Production ready app root.
3
- *
4
- * @param {string} dataFetchMethod The fetch method for the init data. Case-insensitive.
5
- * Use "POST" for post. Other values mean "GET".
6
- * @param {string} dataUrl The URL of the document containing the build data. Either JSON or YAML.
7
- * @param {{}} headersForData Headers for the data request, such as authentication info.
8
- * @param {{}} plugins Reactive-JSON plugins.
9
- * @param {boolean} debugMode Set to true to show the data structure and debug info.
10
- * @param {React.Element|null} DebugModeContentWrapper Wrapper around the main reactive-json content when in debug mode.
11
- * @param {React.Element|null} DebugModeDataWrapper Wrapper around the reactive-json debug data when in debug mode.
12
- * @param {React.Element|null} DebugModeMainWrapper Wrapper around the reactive-json root when in debug mode.
13
- *
14
- * @returns {JSX.Element}
15
- *
16
- * @constructor
17
- */
18
- declare function ReactiveJsonRoot({ dataFetchMethod, dataUrl, headersForData, plugins, debugMode, DebugModeContentWrapper, DebugModeDataWrapper, DebugModeRootWrapper, }: {
19
- dataFetchMethod: any;
20
- dataUrl: any;
21
- headersForData: any;
22
- plugins: any;
23
- debugMode: any;
24
- DebugModeContentWrapper: any;
25
- DebugModeDataWrapper: any;
26
- DebugModeRootWrapper: any;
27
- }): import("react/jsx-runtime").JSX.Element | null;
28
- export default ReactiveJsonRoot;
@@ -1,10 +0,0 @@
1
- /**
2
- * A template context contains the data that is shared between the contained components.
3
- *
4
- * A template context is created when using the "load" keyword in the render array,
5
- * and it is supplied with the current data of the component that loaded the template.
6
- *
7
- * @type {React.Context<{}>}
8
- */
9
- declare const TemplateContext: import("react").Context<{}>;
10
- export default TemplateContext;
@@ -1,89 +0,0 @@
1
- /**
2
- * Transforms a data location string to a path to be used in the UI components.
3
- *
4
- * @param dataLocation
5
- * @param currentPath
6
- * @param globalDataContext
7
- * @param templateContext
8
- * @returns {string|*}
9
- * @constructor
10
- */
11
- export declare const dataLocationToPath: ({ dataLocation, currentPath, globalDataContext, templateContext }: {
12
- dataLocation: any;
13
- currentPath: any;
14
- globalDataContext: any;
15
- templateContext: any;
16
- }) => any;
17
- /**
18
- * Evaluates the given attributes with the given contexts.
19
- *
20
- * @param {{}} attrs
21
- * @param {{}} globalDataContext
22
- * @param {{}} templateContext
23
- * @param {{normalizeBeforeEvaluation : boolean}} options normalizeBeforeEvaluation is false if unset.
24
- *
25
- * @returns {{}}
26
- */
27
- export declare const evaluateAttributes: ({ attrs, globalDataContext, templateContext, options }: {
28
- attrs: any;
29
- globalDataContext: any;
30
- templateContext: any;
31
- options?: {} | undefined;
32
- }) => {};
33
- /**
34
- * Evaluates the template value using the given template and global context.
35
- *
36
- * @param valueToEvaluate The value to evaluate.
37
- * @param globalDataContext The global data context.
38
- * @param templateContext The template context.
39
- * @returns {undefined|*}
40
- */
41
- export declare const evaluateTemplateValue: ({ valueToEvaluate, globalDataContext, templateContext }: {
42
- valueToEvaluate: any;
43
- globalDataContext: any;
44
- templateContext: any;
45
- }) => any;
46
- /**
47
- * Evaluates an array or object containing values to evaluate.
48
- *
49
- * You can also pass a single value to evaluate.
50
- *
51
- * @param {Array|object|*} valueToEvaluate The value to evaluate. Usually a string, an array, or an object.
52
- * @param {{}} globalDataContext The global data context values.
53
- * @param {{}} templateContext The current template context values.
54
- *
55
- * @returns {*} The evaluated value. It tries to keep the same structure (array, object, single) as the given value.
56
- */
57
- export declare const evaluateTemplateValueCollection: ({ valueToEvaluate, globalDataContext, templateContext }: {
58
- valueToEvaluate: any;
59
- globalDataContext: any;
60
- templateContext: any;
61
- }) => any;
62
- /**
63
- * Checks if the given value is a value which can be replaced by the template system.
64
- * @param valueToEvaluate
65
- * @returns {string|boolean}
66
- */
67
- export declare const isTemplateValue: (valueToEvaluate: any) => string | false;
68
- /**
69
- * A template value is a value that is retrieved from the current template data.
70
- *
71
- * @param valueToEvaluate
72
- *
73
- * @returns {{}}
74
- *
75
- * @constructor
76
- */
77
- declare const TemplateValue: ({ valueToEvaluate }: {
78
- valueToEvaluate: any;
79
- }) => any;
80
- export default TemplateValue;
81
- /**
82
- * Evaluates the given attributes with the given contexts.
83
- *
84
- * @param {{}} attrs
85
- * @param {{normalizeBeforeEvaluation : boolean}} options normalizeBeforeEvaluation = true if unset.
86
- *
87
- * @returns {{}} Evaluated attributes.
88
- */
89
- export declare const useEvaluatedAttributes: (attrs: any, options?: {}) => {};
@@ -1,7 +0,0 @@
1
- declare function View({ props, currentData, datafield, path }: {
2
- props: any;
3
- currentData: any;
4
- datafield: any;
5
- path: any;
6
- }): import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[];
7
- export default View;
@@ -1,6 +0,0 @@
1
- import ReactiveJsonRoot from "./engine/ReactiveJsonRoot";
2
- import { mergeComponentCollections } from "./engine/ComponentCollector";
3
- /**
4
- * mergeComponentCollections helps in loading plugins when reactive-json is loaded in library mode.
5
- */
6
- export { ReactiveJsonRoot, mergeComponentCollections };
@@ -1,10 +0,0 @@
1
- /**
2
- * Entry point for the lib.
3
- */
4
- import "bootstrap/dist/css/bootstrap.min.css";
5
- import ReactiveJsonRoot from "./engine/ReactiveJsonRoot";
6
- import { mergeComponentCollections } from "./engine/ComponentCollector";
7
- /**
8
- * mergeComponentCollections helps in loading plugins when reactive-json is loaded in library mode.
9
- */
10
- export { ReactiveJsonRoot, mergeComponentCollections };