@ea-lab/reactive-json 0.5.1 → 0.7.0

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 (84) hide show
  1. package/dist/HashChangeListener-D6HwdXBJ.js +8526 -0
  2. package/dist/ParsingDebugDisplay-8f4yL4Jw.js +696 -0
  3. package/dist/VariablesDebug-pv5GGWel.js +9262 -0
  4. package/dist/assets/DebugJson.css +1 -0
  5. package/dist/assets/DebugList.css +1 -0
  6. package/dist/assets/ParsingDebugDisplay.css +1 -0
  7. package/dist/assets/VariablesDebug.css +4 -0
  8. package/dist/component/action/HashChangeListener.js +1 -1
  9. package/dist/component/action/MessageListener.js +2 -2
  10. package/dist/component/action/Popover.js +1 -1
  11. package/dist/component/action/ReactOnEvent.js +1 -1
  12. package/dist/component/action/Redirect.js +1 -1
  13. package/dist/component/action/SetAttributeValue.js +1 -1
  14. package/dist/component/action/ToggleAttributeValue.js +1 -1
  15. package/dist/component/action/Tooltip.js +1 -1
  16. package/dist/component/action/UnsetAttribute.js +1 -1
  17. package/dist/component/action/UnsetAttributeValue.js +1 -1
  18. package/dist/component/action/index.js +1 -1
  19. package/dist/component/dataMapping/index.js +1 -1
  20. package/dist/component/dataMapping/simpleMapping.js +1 -1
  21. package/dist/component/element/debug/VariablesDebug/DebugMode.enum.js +4 -0
  22. package/dist/component/element/debug/VariablesDebug/ModeDisplay/DebugJson/DebugJson.js +7 -0
  23. package/dist/component/element/debug/VariablesDebug/ModeDisplay/DebugList/DebugList.js +14 -0
  24. package/dist/component/element/debug/VariablesDebug/VariablesDebug.js +18 -0
  25. package/dist/component/element/debug/VariablesDebug/utils.js +17 -0
  26. package/dist/component/element/debug/index.js +4 -0
  27. package/dist/component/element/form/CheckBoxField.js +1 -1
  28. package/dist/component/element/form/DateField.js +1 -1
  29. package/dist/component/element/form/NumberField.js +1 -1
  30. package/dist/component/element/form/SelectField.js +2 -2
  31. package/dist/component/element/form/TextAreaField.js +1 -1
  32. package/dist/component/element/form/TextField.js +1 -1
  33. package/dist/component/element/form/formElementsCommon.js +1 -1
  34. package/dist/component/element/form/index.js +1 -1
  35. package/dist/component/element/html/AccordionItem.js +1 -1
  36. package/dist/component/element/html/FolderSortableTree.js +5 -4
  37. package/dist/component/element/html/FormatNumeral.js +2 -2
  38. package/dist/component/element/html/Html.js +1 -1
  39. package/dist/component/element/html/LabelFromValue.js +1 -1
  40. package/dist/component/element/html/Modal.js +1 -1
  41. package/dist/component/element/html/PreformattedMarkup.js +3 -2
  42. package/dist/component/element/html/SortableTreeItemCollapseButton.js +1 -1
  43. package/dist/component/element/html/Tabs.js +1 -1
  44. package/dist/component/element/html/index.js +1 -1
  45. package/dist/component/element/index.js +28 -26
  46. package/dist/component/element/special/BootstrapElement.js +1 -1
  47. package/dist/component/element/special/Count.js +7 -5
  48. package/dist/component/element/special/DataFilter.js +1 -1
  49. package/dist/component/element/special/DelayedActions.js +1 -1
  50. package/dist/component/element/special/Phantom.js +1 -1
  51. package/dist/component/element/special/ReactiveJsonSubroot.js +5 -4
  52. package/dist/component/element/special/Switch.js +1 -1
  53. package/dist/component/element/special/index.js +1 -1
  54. package/dist/component/index.js +20 -18
  55. package/dist/component/reaction/addData.js +2 -2
  56. package/dist/component/reaction/fetchData.js +1 -1
  57. package/dist/component/reaction/index.js +1 -1
  58. package/dist/component/reaction/moveData.js +1 -1
  59. package/dist/component/reaction/postMessage.js +1 -1
  60. package/dist/component/reaction/redirectNow.js +1 -1
  61. package/dist/component/reaction/removeData.js +1 -1
  62. package/dist/component/reaction/setClipboardData.js +1 -1
  63. package/dist/component/reaction/setData.js +2 -2
  64. package/dist/component/reaction/submitData.js +1 -1
  65. package/dist/component/reaction/utility/httpRequestCommon.js +3 -3
  66. package/dist/component/reaction/utility/index.js +1 -1
  67. package/dist/coreComponentsPlugin.js +1 -1
  68. package/dist/engine/Actions.js +5 -4
  69. package/dist/engine/ParsingDebugDisplay/ParsingDebugDisplay.js +6 -0
  70. package/dist/engine/ReactiveJsonRoot.js +6 -3
  71. package/dist/engine/TemplateSystem.js +1 -1
  72. package/dist/engine/View.js +7 -3
  73. package/dist/engine/index.js +2 -2
  74. package/dist/engine/utility/alterData.js +21 -2
  75. package/dist/engine/utility/analyzeDataOverrideReferences.js +1 -1
  76. package/dist/engine/utility/formatString.js +1 -1
  77. package/dist/engine/utility/index.js +4 -4
  78. package/dist/engine/utility/parseRjBuild.js +39 -991
  79. package/dist/js-yaml-Bw0KO4XO.js +983 -0
  80. package/dist/{alterData-CjaFWyAA.js → lodash-CYNxjS-I.js} +1348 -1368
  81. package/dist/main.js +46 -44
  82. package/dist/utils.d.ts +5 -0
  83. package/package.json +4 -2
  84. package/dist/HashChangeListener-BqIIvMlx.js +0 -18247
package/dist/main.js CHANGED
@@ -1,22 +1,23 @@
1
- import { A as t, X as o, B as s, C as r, o as i, q as n, D as l, t as p, F as m, h as u, H as c, i as d, L as x, M as f, j as D, N as v, v as g, P as b, k as C, R as T, Y as F, w as P, a as A, e as V, S as h, l as R, x as E, m as S, f as L, g as M, T as y, b as B, U as H, c as w, a6 as J, y as N, a3 as k, d as z, Z as G, _ as I, $ as O, a0 as U, E as j, z as q, a4 as K, u as Q, a1 as W, W as X, a5 as Y, G as Z, n as _, I as $, p as aa, r as ea, J as ta, K as oa, O as sa, Q as ra, s as ia, V as na, a2 as la } from "./HashChangeListener-BqIIvMlx.js";
1
+ import { A as t, X as o, B as s, C as r, o as i, q as n, D as l, t as p, F as m, h as u, H as x, i as c, L as d, M as f, j as D, N as b, v as g, P as v, k as C, R as T, Y as F, w as P, a as V, e as A, S as h, l as R, x as E, m as S, f as L, g as M, T as y, b as B, U as H, c as w, a6 as J, y as N, a3 as k, d as z, Z as G, _ as I, $ as O, a0 as U, E as j, z as q, a4 as K, u as Q, a1 as W, W as X, a5 as Y, G as Z, n as _, I as $, p as aa, r as ea, J as ta, K as oa, O as sa, Q as ra, s as ia, V as na, a2 as la } from "./HashChangeListener-D6HwdXBJ.js";
2
2
  import { Hide as ma } from "./component/action/Hide.js";
3
- import { VisuallyHide as ca } from "./component/action/VisuallyHide.js";
4
- import { coreDataProcessorComponents as xa } from "./component/dataProcessor/index.js";
5
- import { PageControls as Da } from "./component/element/special/PageControls.js";
6
- import { u as ga } from "./usePagination-Bb6lefHG.js";
7
- import { triggerEvent as Ca } from "./component/reaction/triggerEvent.js";
8
- import { mergeComponentCollections as Fa } from "./engine/ComponentCollector.js";
9
- import { EventDispatcherContext as Aa } from "./engine/EventDispatcherContext.js";
10
- import { EventDispatcherProvider as ha, addEventListener as Ra, removeEventListener as Ea } from "./engine/EventDispatcherProvider.js";
11
- import { GlobalDataContext as La } from "./engine/GlobalDataContext.js";
12
- import { GlobalDataContextProvider as ya } from "./engine/GlobalDataContextProvider.js";
13
- import { PaginationContext as Ha } from "./engine/PaginationContext.js";
14
- import { PaginationProvider as Ja } from "./engine/PaginationProvider.js";
15
- import { TemplateContext as ka } from "./engine/TemplateContext.js";
16
- import { a as Ga } from "./alterData-CjaFWyAA.js";
17
- import { applyDataMapping as Oa } from "./engine/utility/dataMappingSystem.js";
18
- import { parseRjBuild as ja } from "./engine/utility/parseRjBuild.js";
19
- import { stringToBoolean as Ka } from "./engine/utility/stringToBoolean.js";
3
+ import { VisuallyHide as xa } from "./component/action/VisuallyHide.js";
4
+ import { coreDataProcessorComponents as da } from "./component/dataProcessor/index.js";
5
+ import { V as Da } from "./VariablesDebug-pv5GGWel.js";
6
+ import { PageControls as ga } from "./component/element/special/PageControls.js";
7
+ import { u as Ca } from "./usePagination-Bb6lefHG.js";
8
+ import { triggerEvent as Fa } from "./component/reaction/triggerEvent.js";
9
+ import { mergeComponentCollections as Va } from "./engine/ComponentCollector.js";
10
+ import { EventDispatcherContext as ha } from "./engine/EventDispatcherContext.js";
11
+ import { EventDispatcherProvider as Ea, addEventListener as Sa, removeEventListener as La } from "./engine/EventDispatcherProvider.js";
12
+ import { GlobalDataContext as ya } from "./engine/GlobalDataContext.js";
13
+ import { GlobalDataContextProvider as Ha } from "./engine/GlobalDataContextProvider.js";
14
+ import { PaginationContext as Ja } from "./engine/PaginationContext.js";
15
+ import { PaginationProvider as ka } from "./engine/PaginationProvider.js";
16
+ import { TemplateContext as Ga } from "./engine/TemplateContext.js";
17
+ import { alterData as Oa } from "./engine/utility/alterData.js";
18
+ import { applyDataMapping as ja } from "./engine/utility/dataMappingSystem.js";
19
+ import { parseRjBuild as Ka } from "./engine/utility/parseRjBuild.js";
20
+ import { stringToBoolean as Wa } from "./engine/utility/stringToBoolean.js";
20
21
  export {
21
22
  t as AccordionItem,
22
23
  o as ActionDependant,
@@ -26,50 +27,51 @@ export {
26
27
  n as DataFilter,
27
28
  l as DateField,
28
29
  p as DelayedActions,
29
- Aa as EventDispatcherContext,
30
- ha as EventDispatcherProvider,
30
+ ha as EventDispatcherContext,
31
+ Ea as EventDispatcherProvider,
31
32
  m as FolderSortableTree,
32
33
  u as FormatNumeral,
33
- La as GlobalDataContext,
34
- ya as GlobalDataContextProvider,
35
- c as HashChangeListener,
34
+ ya as GlobalDataContext,
35
+ Ha as GlobalDataContextProvider,
36
+ x as HashChangeListener,
36
37
  ma as Hide,
37
- d as Html,
38
- x as LabelFromValue,
38
+ c as Html,
39
+ d as LabelFromValue,
39
40
  f as MessageListener,
40
41
  D as Modal,
41
- v as NumberField,
42
- Da as PageControls,
43
- Ha as PaginationContext,
44
- Ja as PaginationProvider,
42
+ b as NumberField,
43
+ ga as PageControls,
44
+ Ja as PaginationContext,
45
+ ka as PaginationProvider,
45
46
  g as Phantom,
46
- b as Popover,
47
+ v as Popover,
47
48
  C as PreformattedMarkup,
48
49
  T as ReactOnEvent,
49
50
  F as ReactiveJsonRoot,
50
51
  P as ReactiveJsonSubroot,
51
- A as Redirect,
52
- V as SelectField,
52
+ V as Redirect,
53
+ A as SelectField,
53
54
  h as SetAttributeValue,
54
55
  R as SortableTreeItemCollapseButton,
55
56
  E as Switch,
56
57
  S as Tabs,
57
- ka as TemplateContext,
58
+ Ga as TemplateContext,
58
59
  L as TextAreaField,
59
60
  M as TextField,
60
61
  y as ToggleAttributeValue,
61
62
  B as Tooltip,
62
63
  H as UnsetAttribute,
63
64
  w as UnsetAttributeValue,
65
+ Da as VariablesDebug,
64
66
  J as View,
65
- ca as VisuallyHide,
67
+ xa as VisuallyHide,
66
68
  N as addData,
67
- Ra as addEventListener,
68
- Ga as alterData,
69
+ Sa as addEventListener,
70
+ Oa as alterData,
69
71
  k as analyzeDataOverrideReferences,
70
- Oa as applyDataMapping,
72
+ ja as applyDataMapping,
71
73
  z as coreDataMappingComponents,
72
- xa as coreDataProcessorComponents,
74
+ da as coreDataProcessorComponents,
73
75
  G as dataLocationToPath,
74
76
  I as evaluateAttributes,
75
77
  O as evaluateTemplateValue,
@@ -81,22 +83,22 @@ export {
81
83
  W as isTemplateValue,
82
84
  X as isValid,
83
85
  Y as maybeFormatString,
84
- Fa as mergeComponentCollections,
86
+ Va as mergeComponentCollections,
85
87
  Z as moveData,
86
88
  _ as normalizeAttributesForReactJsx,
87
- ja as parseRjBuild,
89
+ Ka as parseRjBuild,
88
90
  $ as postMessage,
89
91
  aa as propsDataLocationToPathAndValue,
90
92
  ea as reactionFunctions,
91
93
  ta as redirectNow,
92
94
  oa as removeData,
93
- Ea as removeEventListener,
95
+ La as removeEventListener,
94
96
  sa as setClipboardData,
95
97
  ra as setData,
96
98
  ia as simpleMapping,
97
- Ka as stringToBoolean,
99
+ Wa as stringToBoolean,
98
100
  na as submitData,
99
- Ca as triggerEvent,
101
+ Fa as triggerEvent,
100
102
  la as useEvaluatedAttributes,
101
- ga as usePagination
103
+ Ca as usePagination
102
104
  };
@@ -0,0 +1,5 @@
1
+ export type FlatRow = {
2
+ path: string;
3
+ value: unknown;
4
+ };
5
+ export declare const flattenObject: (value: unknown, basePath?: string) => FlatRow[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ea-lab/reactive-json",
3
3
  "private": false,
4
- "version": "0.5.1",
4
+ "version": "0.7.0",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
@@ -34,7 +34,8 @@
34
34
  "build": "tsc -b ./tsconfig.lib.json && vite build",
35
35
  "lint": "eslint .",
36
36
  "prepublishOnly": "npm run build",
37
- "preview": "vite preview"
37
+ "preview": "vite preview",
38
+ "test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js"
38
39
  },
39
40
  "peerDependencies": {
40
41
  "axios": "^1.8.4",
@@ -67,6 +68,7 @@
67
68
  "glob": "^11.0.2",
68
69
  "globals": "^16.0.0",
69
70
  "html-react-parser": "^5.2.3",
71
+ "jest": "^30.0.5",
70
72
  "js-yaml": "^4.1.0",
71
73
  "jsonpath": "^1.1.1",
72
74
  "lodash": "^4.17.21",