@ea-lab/reactive-json 0.0.22 → 0.0.24

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 (137) hide show
  1. package/README.md +1 -1
  2. package/dist/HashChangeListener-DfQ_3Guk.js +20012 -0
  3. package/dist/NumberField-BCFUb50M.js +1129 -0
  4. package/dist/ThemeProvider-BTKQI5kV.js +88 -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/action/index.js +14 -0
  14. package/dist/component/element/form/CheckBoxField.js +9 -0
  15. package/dist/component/element/form/DateField.js +9 -0
  16. package/dist/component/element/form/NumberField.js +7 -0
  17. package/dist/component/element/form/SelectField.js +9 -0
  18. package/dist/component/element/form/TextAreaField.js +9 -0
  19. package/dist/component/element/form/TextField.js +9 -0
  20. package/dist/component/element/form/formElementsCommon.js +4 -0
  21. package/dist/component/element/form/index.js +11 -0
  22. package/dist/component/element/html/AccordionItem.js +6 -0
  23. package/dist/component/element/html/FolderSortableTree.js +8 -0
  24. package/dist/component/element/html/FormatNumeral.js +8 -0
  25. package/dist/component/element/html/Html.js +9 -0
  26. package/dist/component/element/html/LabelFromValue.js +8 -0
  27. package/dist/component/element/html/Modal.js +8 -0
  28. package/dist/component/element/html/PreformattedMarkup.js +8 -0
  29. package/dist/component/element/html/SortableTreeItemCollapseButton.js +7 -0
  30. package/dist/component/element/html/Tabs.js +8 -0
  31. package/dist/component/element/html/index.js +13 -0
  32. package/dist/component/element/index.js +30 -0
  33. package/dist/component/element/special/BootstrapElement.js +5 -0
  34. package/dist/component/element/special/Count.js +7 -0
  35. package/dist/component/element/special/DataFilter.js +8 -0
  36. package/dist/component/element/special/DelayedActions.js +9 -0
  37. package/dist/component/element/special/PageControls.js +10 -0
  38. package/dist/component/element/special/Phantom.js +5 -0
  39. package/dist/component/element/special/Switch.js +10 -0
  40. package/dist/component/element/special/index.js +12 -0
  41. package/dist/component/hook/index.js +4 -0
  42. package/dist/component/hook/usePagination.js +6 -0
  43. package/dist/component/index.js +54 -0
  44. package/dist/component/reaction/addData.js +4 -0
  45. package/dist/component/reaction/fetchData.js +4 -0
  46. package/dist/component/reaction/index.js +14 -0
  47. package/dist/component/reaction/moveData.js +4 -0
  48. package/dist/component/reaction/postMessage.js +4 -0
  49. package/dist/component/reaction/redirectNow.js +4 -0
  50. package/dist/component/reaction/removeData.js +4 -0
  51. package/dist/component/reaction/setClipboardData.js +4 -0
  52. package/dist/component/reaction/setData.js +4 -0
  53. package/dist/component/reaction/submitData.js +4 -0
  54. package/dist/component/reaction/triggerEvent.js +28 -0
  55. package/dist/engine/Actions.js +11 -0
  56. package/dist/engine/ComponentCollector.js +19 -0
  57. package/dist/engine/EventDispatcherContext.js +8 -0
  58. package/dist/engine/EventDispatcherProvider.js +20 -0
  59. package/dist/engine/GlobalDataContext.js +5 -0
  60. package/dist/engine/GlobalDataContextProvider.js +9 -0
  61. package/dist/engine/PaginationContext.js +5 -0
  62. package/dist/engine/PaginationProvider.js +30 -0
  63. package/dist/engine/ReactiveJsonRoot.js +1125 -0
  64. package/dist/engine/TemplateContext.js +5 -0
  65. package/dist/engine/TemplateSystem.js +13 -0
  66. package/dist/engine/View.js +10 -0
  67. package/dist/engine/index.js +32 -0
  68. package/dist/engine/utility/formatString.js +5 -0
  69. package/dist/engine/utility/stringToBoolean.js +26 -0
  70. package/dist/main.js +83 -0
  71. package/dist/usePagination-B0yFkBzE.js +276 -0
  72. package/package.json +41 -40
  73. package/dist/esm/types/component/action/HashChangeListener.d.ts +0 -9
  74. package/dist/esm/types/component/action/Hide.d.ts +0 -10
  75. package/dist/esm/types/component/action/MessageListener.d.ts +0 -9
  76. package/dist/esm/types/component/action/Popover.d.ts +0 -5
  77. package/dist/esm/types/component/action/ReactOnEvent.d.ts +0 -26
  78. package/dist/esm/types/component/action/Redirect.d.ts +0 -9
  79. package/dist/esm/types/component/action/Tooltip.d.ts +0 -5
  80. package/dist/esm/types/component/action/VisuallyHide.d.ts +0 -12
  81. package/dist/esm/types/component/element/form/CheckBoxField.d.ts +0 -7
  82. package/dist/esm/types/component/element/form/DateField.d.ts +0 -2
  83. package/dist/esm/types/component/element/form/NumberField.d.ts +0 -7
  84. package/dist/esm/types/component/element/form/SelectField.d.ts +0 -7
  85. package/dist/esm/types/component/element/form/TextAreaField.d.ts +0 -6
  86. package/dist/esm/types/component/element/form/TextField.d.ts +0 -6
  87. package/dist/esm/types/component/element/form/formElementsCommon.d.ts +0 -23
  88. package/dist/esm/types/component/element/html/AccordionItem.d.ts +0 -16
  89. package/dist/esm/types/component/element/html/FolderSortableTree.d.ts +0 -6
  90. package/dist/esm/types/component/element/html/FormatNumeral.d.ts +0 -7
  91. package/dist/esm/types/component/element/html/Html.d.ts +0 -8
  92. package/dist/esm/types/component/element/html/LabelFromValue.d.ts +0 -22
  93. package/dist/esm/types/component/element/html/Modal.d.ts +0 -6
  94. package/dist/esm/types/component/element/html/ModalForm.d.ts +0 -9
  95. package/dist/esm/types/component/element/html/Paragraph.d.ts +0 -5
  96. package/dist/esm/types/component/element/html/PreformattedMarkup.d.ts +0 -7
  97. package/dist/esm/types/component/element/html/SortableTreeItemCollapseButton.d.ts +0 -9
  98. package/dist/esm/types/component/element/html/Tabs.d.ts +0 -18
  99. package/dist/esm/types/component/element/special/BootstrapElement.d.ts +0 -10
  100. package/dist/esm/types/component/element/special/Count.d.ts +0 -13
  101. package/dist/esm/types/component/element/special/DataFilter.d.ts +0 -11
  102. package/dist/esm/types/component/element/special/DelayedActions.d.ts +0 -25
  103. package/dist/esm/types/component/element/special/PageControls.d.ts +0 -9
  104. package/dist/esm/types/component/element/special/Phantom.d.ts +0 -17
  105. package/dist/esm/types/component/element/special/Switch.d.ts +0 -6
  106. package/dist/esm/types/component/hook/usePagination.d.ts +0 -30
  107. package/dist/esm/types/component/index.d.ts +0 -5
  108. package/dist/esm/types/component/reaction/addData.d.ts +0 -6
  109. package/dist/esm/types/component/reaction/fetchData.d.ts +0 -8
  110. package/dist/esm/types/component/reaction/moveData.d.ts +0 -6
  111. package/dist/esm/types/component/reaction/postMessage.d.ts +0 -6
  112. package/dist/esm/types/component/reaction/redirectNow.d.ts +0 -6
  113. package/dist/esm/types/component/reaction/removeData.d.ts +0 -6
  114. package/dist/esm/types/component/reaction/setClipboardData.d.ts +0 -6
  115. package/dist/esm/types/component/reaction/setData.d.ts +0 -6
  116. package/dist/esm/types/component/reaction/submitData.d.ts +0 -8
  117. package/dist/esm/types/component/reaction/triggerEvent.d.ts +0 -6
  118. package/dist/esm/types/component/utility/formatString.d.ts +0 -17
  119. package/dist/esm/types/engine/Actions.d.ts +0 -19
  120. package/dist/esm/types/engine/ComponentCollector.d.ts +0 -12
  121. package/dist/esm/types/engine/EventDispatcherContext.d.ts +0 -13
  122. package/dist/esm/types/engine/EventDispatcherProvider.d.ts +0 -16
  123. package/dist/esm/types/engine/GlobalDataContext.d.ts +0 -10
  124. package/dist/esm/types/engine/GlobalDataContextProvider.d.ts +0 -11
  125. package/dist/esm/types/engine/PaginationContext.d.ts +0 -9
  126. package/dist/esm/types/engine/PaginationProvider.d.ts +0 -12
  127. package/dist/esm/types/engine/ReactiveJsonRoot.d.ts +0 -28
  128. package/dist/esm/types/engine/TemplateContext.d.ts +0 -10
  129. package/dist/esm/types/engine/TemplateSystem.d.ts +0 -89
  130. package/dist/esm/types/engine/View.d.ts +0 -7
  131. package/dist/esm/types/index.d.ts +0 -6
  132. package/dist/esm/types/main.d.ts +0 -10
  133. package/dist/index.cjs.js +0 -9201
  134. package/dist/index.cjs.js.map +0 -1
  135. package/dist/index.d.ts +0 -44
  136. package/dist/index.esm.js +0 -9180
  137. package/dist/index.esm.js.map +0 -1
@@ -1,7 +0,0 @@
1
- declare const NumberField: ({ props, currentData, datafield, path }: {
2
- props: any;
3
- currentData: any;
4
- datafield: any;
5
- path: any;
6
- }) => import("react/jsx-runtime").JSX.Element;
7
- export default NumberField;
@@ -1,7 +0,0 @@
1
- declare const SelectField: ({ props, data, path, datafield }: {
2
- props: any;
3
- data: any;
4
- path: any;
5
- datafield: any;
6
- }) => import("react/jsx-runtime").JSX.Element;
7
- export default SelectField;
@@ -1,6 +0,0 @@
1
- declare const TextAreaField: ({ props, datafield, path }: {
2
- props: any;
3
- datafield: any;
4
- path: any;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
- export default TextAreaField;
@@ -1,6 +0,0 @@
1
- declare const TextField: ({ props, datafield, path }: {
2
- props: any;
3
- datafield: any;
4
- path: any;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
- export default TextField;
@@ -1,23 +0,0 @@
1
- /**
2
- * Gets the path and the data for the specified dataLocation and contexts.
3
- *
4
- * @param {string} currentPath The current path of the component calling this function.
5
- * @param {string} datafield The datafield (field name) of the component calling this function.
6
- * @param {string|undefined} dataLocation The dataLocation value set in the component structure.
7
- * @param {any} defaultValue The default value set in the component structure.
8
- * @param {{}} globalDataContext The global data context of the component calling this function.
9
- * @param {{}} templateContext The template context of the component calling this function.
10
- *
11
- * @returns {{formDataPath: undefined, formData: undefined}}
12
- */
13
- export declare const propsDataLocationToPathAndValue: ({ currentPath, datafield, dataLocation, defaultValue, globalDataContext, templateContext }: {
14
- currentPath: any;
15
- datafield: any;
16
- dataLocation: any;
17
- defaultValue: any;
18
- globalDataContext: any;
19
- templateContext: any;
20
- }) => {
21
- formData: undefined;
22
- formDataPath: undefined;
23
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * To use with the BsAccordion component.
3
- *
4
- * To use this, use the BsAccordion component, and add
5
- * AccordionItem in the content.
6
- *
7
- * You can of course use the Switch component to map to
8
- * dynamic data.
9
- */
10
- declare const AccordionItem: ({ props, path, currentData, datafield }: {
11
- props: any;
12
- path: any;
13
- currentData: any;
14
- datafield: any;
15
- }) => import("react/jsx-runtime").JSX.Element;
16
- export default AccordionItem;
@@ -1,6 +0,0 @@
1
- declare const FolderSortableTree: ({ props, path, datafield }: {
2
- props: any;
3
- path: any;
4
- datafield: any;
5
- }) => import("react/jsx-runtime").JSX.Element | null;
6
- export default FolderSortableTree;
@@ -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;