@jaisocx/tree 2.2.18 → 2.2.20

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 (171) hide show
  1. package/MediaAndStyles/Tree_main_resolved.css +0 -0
  2. package/MediaAndStyles/Tree_main_resolved_minimal.css +0 -0
  3. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_d05_very_small_xxs_landscape__Tree__theme_base.css +0 -0
  4. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_d05_very_small_xxs_portrait__Tree__theme_base.css +0 -0
  5. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_e02_mobile_xs_landscape__Tree__theme_base.css +0 -0
  6. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_e02_mobile_xs_portrait__Tree__theme_base.css +0 -0
  7. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_e04_mobile_s_landscape__Tree__theme_base.css +0 -0
  8. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_e04_mobile_s_portrait__Tree__theme_base.css +0 -0
  9. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_e06_mobile_sm_landscape__Tree__theme_base.css +0 -0
  10. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_e06_mobile_sm_portrait__Tree__theme_base.css +0 -0
  11. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_e08_mobile_md_landscape__Tree__theme_base.css +0 -0
  12. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_e08_mobile_md_portrait__Tree__theme_base.css +0 -0
  13. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_h03_tablet_s_landscape__Tree__theme_base.css +0 -0
  14. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_h03_tablet_s_portrait__Tree__theme_base.css +0 -0
  15. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_h05_tablet_sm_landscape__Tree__theme_base.css +0 -0
  16. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_h05_tablet_sm_portrait__Tree__theme_base.css +0 -0
  17. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_h07_tablet_md_landscape__Tree__theme_base.css +0 -0
  18. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_h07_tablet_md_portrait__Tree__theme_base.css +0 -0
  19. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_h09_tablet_lg_landscape__Tree__theme_base.css +0 -0
  20. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_h09_tablet_lg_portrait__Tree__theme_base.css +0 -0
  21. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_l02_laptop_sm_landscape__Tree__theme_base.css +0 -0
  22. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_l02_laptop_sm_portrait__Tree__theme_base.css +0 -0
  23. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_l03_laptop_md_landscape__Tree__theme_base.css +0 -0
  24. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_l03_laptop_md_portrait__Tree__theme_base.css +0 -0
  25. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_l07_laptop_lg_landscape__Tree__theme_base.css +0 -0
  26. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_l07_laptop_lg_portrait__Tree__theme_base.css +0 -0
  27. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_s02_display_xl_landscape__Tree__theme_base.css +0 -0
  28. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_s02_display_xl_portrait__Tree__theme_base.css +0 -0
  29. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_s04_display_xxl_landscape__Tree__theme_base.css +0 -0
  30. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_s04_display_xxl_portrait__Tree__theme_base.css +0 -0
  31. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_s08_display_qhd_landscape__Tree__theme_base.css +0 -0
  32. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_s08_display_qhd_portrait__Tree__theme_base.css +0 -0
  33. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_t04_tv_4k_landscape__Tree__theme_base.css +0 -0
  34. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_t04_tv_4k_portrait__Tree__theme_base.css +0 -0
  35. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_t08_tv_8k_landscape__Tree__theme_base.css +0 -0
  36. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_t08_tv_8k_portrait__Tree__theme_base.css +0 -0
  37. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_t16_tv_16k_landscape__Tree__theme_base.css +0 -0
  38. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_t16_tv_16k_portrait__Tree__theme_base.css +0 -0
  39. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_t99_tv_xxxl_landscape__Tree__theme_base.css +0 -0
  40. package/MediaAndStyles/themes/theme_base/responsive/responsive_size_t99_tv_xxxl_portrait__Tree__theme_base.css +0 -0
  41. package/MediaAndStyles/themes/theme_base/responsive_size_Imports_Tree_theme_base_Relative.css +0 -0
  42. package/MediaAndStyles/themes/theme_base/responsive_size_Imports_Tree_theme_base_Webpack.css +0 -0
  43. package/MediaAndStyles/themes/theme_base/responsive_size_Imports_Tree_theme_base_Webpack_minimal.css +0 -0
  44. package/README.md +22 -26
  45. package/data/tree.json +47 -0
  46. package/index.preview.html +505 -511
  47. package/package.json +30 -21
  48. package/software_labels/js_client_side_jaisocx_tree.svg +134 -0
  49. package/software_labels/software_tm_label_jaisocx.svg +126 -0
  50. package/transpiled/CommonJS/index.d.ts +0 -0
  51. package/transpiled/CommonJS/index.d.ts.map +0 -0
  52. package/transpiled/CommonJS/index.js +0 -0
  53. package/transpiled/CommonJS/index.js.map +0 -0
  54. package/transpiled/CommonJS/typescript/ArrayOrObjectPackage.d.ts +0 -0
  55. package/transpiled/CommonJS/typescript/ArrayOrObjectPackage.d.ts.map +0 -0
  56. package/transpiled/CommonJS/typescript/ArrayOrObjectPackage.js +0 -0
  57. package/transpiled/CommonJS/typescript/ArrayOrObjectPackage.js.map +0 -0
  58. package/transpiled/CommonJS/typescript/Tree.d.ts +0 -0
  59. package/transpiled/CommonJS/typescript/Tree.d.ts.map +0 -0
  60. package/transpiled/CommonJS/typescript/Tree.js +0 -0
  61. package/transpiled/CommonJS/typescript/Tree.js.map +0 -0
  62. package/transpiled/CommonJS/typescript/TreeAdapter.d.ts +0 -0
  63. package/transpiled/CommonJS/typescript/TreeAdapter.d.ts.map +0 -0
  64. package/transpiled/CommonJS/typescript/TreeAdapter.js +0 -0
  65. package/transpiled/CommonJS/typescript/TreeAdapter.js.map +0 -0
  66. package/transpiled/CommonJS/typescript/TreeAdapterModeConf.d.ts +0 -0
  67. package/transpiled/CommonJS/typescript/TreeAdapterModeConf.d.ts.map +0 -0
  68. package/transpiled/CommonJS/typescript/TreeAdapterModeConf.js +0 -0
  69. package/transpiled/CommonJS/typescript/TreeAdapterModeConf.js.map +0 -0
  70. package/transpiled/CommonJS/typescript/TreeAdapterModeEase.d.ts +0 -0
  71. package/transpiled/CommonJS/typescript/TreeAdapterModeEase.d.ts.map +0 -0
  72. package/transpiled/CommonJS/typescript/TreeAdapterModeEase.js +0 -0
  73. package/transpiled/CommonJS/typescript/TreeAdapterModeEase.js.map +0 -0
  74. package/transpiled/CommonJS/typescript/TreeConf.d.ts +0 -0
  75. package/transpiled/CommonJS/typescript/TreeConf.d.ts.map +0 -0
  76. package/transpiled/CommonJS/typescript/TreeConf.js +0 -0
  77. package/transpiled/CommonJS/typescript/TreeConf.js.map +0 -0
  78. package/transpiled/CommonJS/typescript/TreeConstants.d.ts +0 -0
  79. package/transpiled/CommonJS/typescript/TreeConstants.d.ts.map +0 -0
  80. package/transpiled/CommonJS/typescript/TreeConstants.js +0 -0
  81. package/transpiled/CommonJS/typescript/TreeConstants.js.map +0 -0
  82. package/transpiled/CommonJS/typescript/TreeInterface.d.ts +0 -0
  83. package/transpiled/CommonJS/typescript/TreeInterface.d.ts.map +0 -0
  84. package/transpiled/CommonJS/typescript/TreeInterface.js +0 -0
  85. package/transpiled/CommonJS/typescript/TreeInterface.js.map +0 -0
  86. package/transpiled/CommonJS/typescript/Types.d.ts +0 -0
  87. package/transpiled/CommonJS/typescript/Types.d.ts.map +0 -0
  88. package/transpiled/CommonJS/typescript/Types.js +0 -0
  89. package/transpiled/CommonJS/typescript/Types.js.map +0 -0
  90. package/transpiled/CommonJS/webpack.aliases.cjs +0 -0
  91. package/transpiled/CommonJS/webpack.aliases.cjs.map +0 -0
  92. package/transpiled/CommonJS/webpack.aliases.d.cts +0 -0
  93. package/transpiled/CommonJS/webpack.aliases.d.cts.map +0 -0
  94. package/transpiled/CommonJS/webpack.aliases.d.mts +0 -0
  95. package/transpiled/CommonJS/webpack.aliases.d.mts.map +0 -0
  96. package/transpiled/CommonJS/webpack.aliases.mjs +0 -0
  97. package/transpiled/CommonJS/webpack.aliases.mjs.map +0 -0
  98. package/transpiled/CommonJS/webpackAliases.d.ts +0 -0
  99. package/transpiled/CommonJS/webpackAliases.d.ts.map +0 -0
  100. package/transpiled/CommonJS/webpackAliases.js +0 -0
  101. package/transpiled/CommonJS/webpackAliases.js.map +0 -0
  102. package/transpiled/ESNext/index.d.ts +0 -0
  103. package/transpiled/ESNext/index.d.ts.map +0 -0
  104. package/transpiled/ESNext/index.js +0 -0
  105. package/transpiled/ESNext/index.js.map +0 -0
  106. package/transpiled/ESNext/typescript/ArrayOrObjectPackage.d.ts +0 -0
  107. package/transpiled/ESNext/typescript/ArrayOrObjectPackage.d.ts.map +0 -0
  108. package/transpiled/ESNext/typescript/ArrayOrObjectPackage.js +0 -0
  109. package/transpiled/ESNext/typescript/ArrayOrObjectPackage.js.map +0 -0
  110. package/transpiled/ESNext/typescript/Tree.d.ts +0 -0
  111. package/transpiled/ESNext/typescript/Tree.d.ts.map +0 -0
  112. package/transpiled/ESNext/typescript/Tree.js +0 -0
  113. package/transpiled/ESNext/typescript/Tree.js.map +0 -0
  114. package/transpiled/ESNext/typescript/TreeAdapter.d.ts +0 -0
  115. package/transpiled/ESNext/typescript/TreeAdapter.d.ts.map +0 -0
  116. package/transpiled/ESNext/typescript/TreeAdapter.js +0 -0
  117. package/transpiled/ESNext/typescript/TreeAdapter.js.map +0 -0
  118. package/transpiled/ESNext/typescript/TreeAdapterModeConf.d.ts +0 -0
  119. package/transpiled/ESNext/typescript/TreeAdapterModeConf.d.ts.map +0 -0
  120. package/transpiled/ESNext/typescript/TreeAdapterModeConf.js +0 -0
  121. package/transpiled/ESNext/typescript/TreeAdapterModeConf.js.map +0 -0
  122. package/transpiled/ESNext/typescript/TreeAdapterModeEase.d.ts +0 -0
  123. package/transpiled/ESNext/typescript/TreeAdapterModeEase.d.ts.map +0 -0
  124. package/transpiled/ESNext/typescript/TreeAdapterModeEase.js +0 -0
  125. package/transpiled/ESNext/typescript/TreeAdapterModeEase.js.map +0 -0
  126. package/transpiled/ESNext/typescript/TreeConf.d.ts +0 -0
  127. package/transpiled/ESNext/typescript/TreeConf.d.ts.map +0 -0
  128. package/transpiled/ESNext/typescript/TreeConf.js +0 -0
  129. package/transpiled/ESNext/typescript/TreeConf.js.map +0 -0
  130. package/transpiled/ESNext/typescript/TreeConstants.d.ts +0 -0
  131. package/transpiled/ESNext/typescript/TreeConstants.d.ts.map +0 -0
  132. package/transpiled/ESNext/typescript/TreeConstants.js +0 -0
  133. package/transpiled/ESNext/typescript/TreeConstants.js.map +0 -0
  134. package/transpiled/ESNext/typescript/TreeInterface.d.ts +0 -0
  135. package/transpiled/ESNext/typescript/TreeInterface.d.ts.map +0 -0
  136. package/transpiled/ESNext/typescript/TreeInterface.js +0 -0
  137. package/transpiled/ESNext/typescript/TreeInterface.js.map +0 -0
  138. package/transpiled/ESNext/typescript/Types.d.ts +0 -0
  139. package/transpiled/ESNext/typescript/Types.d.ts.map +0 -0
  140. package/transpiled/ESNext/typescript/Types.js +0 -0
  141. package/transpiled/ESNext/typescript/Types.js.map +0 -0
  142. package/transpiled/ESNext/webpack.aliases.cjs +0 -0
  143. package/transpiled/ESNext/webpack.aliases.cjs.map +0 -0
  144. package/transpiled/ESNext/webpack.aliases.d.cts +0 -0
  145. package/transpiled/ESNext/webpack.aliases.d.cts.map +0 -0
  146. package/transpiled/ESNext/webpack.aliases.d.mts +0 -0
  147. package/transpiled/ESNext/webpack.aliases.d.mts.map +0 -0
  148. package/transpiled/ESNext/webpack.aliases.mjs +0 -0
  149. package/transpiled/ESNext/webpack.aliases.mjs.map +0 -0
  150. package/transpiled/ESNext/webpackAliases.d.ts +0 -0
  151. package/transpiled/ESNext/webpackAliases.d.ts.map +0 -0
  152. package/transpiled/ESNext/webpackAliases.js +0 -0
  153. package/transpiled/ESNext/webpackAliases.js.map +0 -0
  154. package/transpiled/Simple/typescript/ArrayOrObjectPackage.js +0 -0
  155. package/transpiled/Simple/typescript/Tree.js +0 -0
  156. package/transpiled/Simple/typescript/TreeAdapter.js +0 -0
  157. package/transpiled/Simple/typescript/TreeAdapterModeConf.js +0 -0
  158. package/transpiled/Simple/typescript/TreeAdapterModeEase.js +0 -0
  159. package/transpiled/Simple/typescript/TreeConf.js +0 -0
  160. package/transpiled/Simple/typescript/TreeConstants.js +0 -0
  161. package/transpiled/Simple/typescript/Types.js +0 -0
  162. package/transpiled/Simple/webpack.aliases.cjs +0 -0
  163. package/transpiled/Simple/webpack.aliases.mjs +0 -0
  164. package/transpiled/Simple/webpackAliases.js +0 -0
  165. package/tree_preview_prod.html +65 -71
  166. package/webpack.aliases.json +0 -0
  167. package/docs/README_WEBPACK.md +0 -279
  168. package/docs/README_preview.md +0 -167
  169. package/favicon/Icon_Jaisocx.ico +0 -0
  170. package/favicon/Icon_Sandbox_Brightday.ico +0 -0
  171. package/tree_preview_dev.html +0 -729
@@ -2,68 +2,38 @@
2
2
  <html lang="en" class="jsx">
3
3
  <head>
4
4
 
5
- <title>Tree Preview</title>
6
-
7
- <base href="./" />
5
+ <link
6
+ id="icon_jaisocx"
7
+ rel="icon"
8
+ type="image/x-icon"
9
+ href="node_modules/@jaisocx/css_clean_start_lite/favicon/Icon_Jaisocx.ico"
10
+ href-fallback="../css_clean_start_lite/favicon/Icon_Jaisocx.ico"
11
+ onerror="javascript: ( () => { this.onerror = null; this.href = this.getAttribute( 'href-fallback' ); this.onerror = null; } )();"
12
+ />
8
13
 
9
- <meta charset="utf-8" />
10
- <meta content="width=device-width, initial-scale=1.0" name="viewport" />
14
+ <title> Jaisocx Tree </title>
11
15
 
12
16
 
13
17
 
14
- <link
15
- id="icon_jaisocx"
16
- rel="icon"
17
- type="image/x-icon"
18
- href="node_modules/@jaisocx/css-clean-start-2/favicon/Icon_Jaisocx.ico"
19
- href-fallback="../css-clean-start-2/favicon/Icon_Jaisocx.ico"
20
- onerror="javascript: ( () => { this.onerror = null; this.href = this.getAttribute( 'href-fallback' ); this.onerror = null; } )();"
21
- />
18
+ <base href="./" />
22
19
 
23
- <!-- <link-->
24
- <!-- id="icon_brightday"-->
25
- <!-- rel="icon"-->
26
- <!-- type="image/x-icon"-->
27
- <!-- href="node_modules/@jaisocx/css-clean-start-2/favicon/Icon_Sandbox_Brightday.ico"-->
28
- <!-- href-fallback="../css-clean-start-2/favicon/Icon_Sandbox_Brightday.ico"-->
29
- <!-- onerror="javascript: ( () => { this.onerror = null; this.href = this.getAttribute( 'href-fallback' ); this.onerror = null; } )();"-->
30
- <!-- />-->
20
+ <meta charset="utf-8" />
21
+ <meta content="width=device-width, initial-scale=1.0" name="viewport" />
31
22
 
32
23
 
33
- <!--# CSS CLEAN START 2: html & css WHEN STARTING A SITE FROM SCRATCH -->
34
24
 
35
- <!--# importing @jaisocx/css-clean-start-2 IN DEV MODE, TO RESEARCH THE .css STYLES IN BROWSER'S DEV TOOLS IN NETWORKS TAB -->
36
- <!-- <link
37
- rel="stylesheet"
38
- type="text/css"
39
- charset="utf-8"
40
- href="node_modules/@jaisocx/css-clean-start-2/MediaAndStyles/CssCleanStart_2_main_relative.css"
41
- href-fallback="../css-clean-start-2/MediaAndStyles/CssCleanStart_2_main_relative.css"
42
- onerror="javascript: ( () => { this.onerror = null; this.href = this.getAttribute( 'href-fallback' ); this.onerror = null; } )();"
43
- /> -->
44
-
45
- <!--# THE SAME importing @jaisocx/css-clean-start-2 IN PROD MODE, PACKED BY @jaisocx/css-importer TOOL -->
25
+ <!--# CSS CLEAN START LITE: html & css WHEN STARTING A SITE FROM SCRATCH -->
46
26
  <link
47
- rel="stylesheet"
48
- type="text/css"
49
- charset="utf-8"
50
- href="node_modules/@jaisocx/css-clean-start-2/MediaAndStyles/CssCleanStart_2_main_resolved_minimal.css"
51
- href-fallback="../css-clean-start-2/MediaAndStyles/CssCleanStart_2_main_resolved_minimal.css"
52
- onerror="javascript: ( () => { this.href = this.getAttribute( 'href-fallback' ); this.onerror = null; } )();"
27
+ rel="stylesheet"
28
+ type="text/css"
29
+ charset="utf-8"
30
+ href="node_modules/@jaisocx/css_clean_start_lite/MediaAndStyles/CssCleanStart_Lite_main_resolved.css"
31
+ href-fallback="../css_clean_start_lite/MediaAndStyles/CssCleanStart_Lite_main_resolved.css"
32
+ onerror="javascript: ( () => { this.onerror = null; this.href = this.getAttribute( 'href-fallback' ); this.onerror = null; } )();"
53
33
  />
54
34
 
55
35
 
56
36
 
57
- <!--# STYLES Tree and theme_base -->
58
- <!-- DEV MODE -->
59
- <!-- <link-->
60
- <!-- rel="stylesheet"-->
61
- <!-- type="text/css"-->
62
- <!-- charset="utf-8"-->
63
- <!-- href="MediaAndStyles/Tree_main_Relative.css"-->
64
- <!-- />-->
65
-
66
- <!-- PROD MODE -->
67
37
  <link
68
38
  rel="stylesheet"
69
39
  type="text/css"
@@ -81,33 +51,48 @@
81
51
 
82
52
 
83
53
 
84
- <style>
54
+ <style naame="css_clean_start_overrides">
85
55
 
86
- .jsx {
87
- --jsx--css-clean-start-2--body-tag--background: white;
88
- --jsx--css-clean-start-2--site--background: #fff5f0;
56
+ .jsx {
57
+ --jsx--css-clean-start-2--body-tag--background: white;
58
+ --jsx--css-clean-start-2--site--background: #fff5f0;
89
59
 
90
- --jsx--css-clean-start-2--site--padding: 2rem 1rem 3rem 1rem;
60
+ --jsx--css-clean-start-2--site--padding: 2rem 1rem 3rem 1rem;
91
61
 
92
- --jsx--css-clean-start-2--h1--font-size: 1.05rem;
93
- --jsx--css-clean-start-2--h2--font-size: 0.9rem;
94
- --jsx--css-clean-start-2--h3--font-size: 0.83rem;
62
+ --jsx--css-clean-start-2--h1--font-size: 1.05rem;
63
+ --jsx--css-clean-start-2--h2--font-size: 0.9rem;
64
+ --jsx--css-clean-start-2--h3--font-size: 0.83rem;
95
65
 
96
- --jsx--css-clean-start-2--h2--font-weight: 500;
66
+ --jsx--css-clean-start-2--h2--font-weight: 500;
67
+
68
+ --theme-button--width: fit-content;
69
+ --theme-button--font-size: 0.795rem;
70
+ }
71
+
72
+ .jsx .theme-funny.tree {
73
+ --node-label--font-family: Niconne;
74
+ }
97
75
 
98
- --theme-button--width: fit-content;
99
- --theme-button--font-size: 0.795rem;
100
- }
101
76
 
102
- .jsx .theme-funny.tree {
103
- --node-label--font-family: Niconne;
77
+ @media screen and ( min-width: 2px) and (max-width: 767px) {
78
+ .jsx {
79
+ --jsx--css-clean-start-2--site--min-width: 100%;
80
+ --jsx--css-clean-start-2--site--max-width: 100%;
81
+ --jsx--css-clean-start-2--site--width: 100%;
104
82
  }
105
83
 
106
- @media screen and (orientation: portrait) {
107
- .jsx description {
108
- display: none;
109
- }
84
+ .jsx h2,
85
+ .jsx h3,
86
+ .jsx description {
87
+ display: none;
110
88
  }
89
+ }
90
+
91
+ </style>
92
+
93
+
94
+
95
+ <style name="theme_buttons">
111
96
 
112
97
  .jsx themebuttons {
113
98
  width: fit-content;
@@ -145,6 +130,12 @@
145
130
  font-family: fantasy;
146
131
  }
147
132
 
133
+ </style>
134
+
135
+
136
+
137
+ <style>
138
+
148
139
  .jsx main content {
149
140
  width: 100%;
150
141
  min-width: 100%;
@@ -176,6 +167,7 @@
176
167
  max-height: 2rem;
177
168
  margin-right: 1rem;
178
169
  }
170
+
179
171
  </style>
180
172
 
181
173
 
@@ -190,6 +182,7 @@
190
182
  <h1>Tree styling JSON Data</h1>
191
183
  <h2>@jaisocx/tree</h2>
192
184
  <h3>tree_preview_prod.html</h3>
185
+
193
186
  <description>
194
187
  Css sites tool styling json data to a tree view. Css for sites tools are packed with @jaisocx/css-importer.
195
188
  Js loaded from node_modules with ScriptsChainedLoader.
@@ -200,7 +193,7 @@
200
193
 
201
194
 
202
195
  <themebuttons>
203
- <button id="button-turn-on-base-theme" data-theme="">Base Theme</button>
196
+ <button id="button-turn-on-base" data-theme="">Base Theme</button>
204
197
  <button id="button-turn-on-daymode" data-theme="theme_lightmode">Day Mode</button>
205
198
  <button id="button-turn-on-nightmode" data-theme="theme_darkmode">Night Mode</button>
206
199
  </themebuttons>
@@ -252,6 +245,7 @@
252
245
 
253
246
  let glob_TreeJson_SubtreeArrayOfObjects = new Array();
254
247
  let glob_TreeJson_SubtreeLikeObjects = new Object();
248
+ let glob_TreeJson_Url = "data/tree.json";
255
249
 
256
250
 
257
251
 
@@ -373,7 +367,7 @@
373
367
  // e.g. label text, Tree node html holding element css classes names, and similar.
374
368
 
375
369
  // -------------------
376
- // START TREE CONF DATA
370
+ // START TREE DATA
377
371
  glob_TreeJson_SubtreeArrayOfObjects = [
378
372
  {
379
373
  "icon": "MediaAndStyles/themes/theme_base/mini_images/home_tree_mode_conf/house.png",
@@ -475,7 +469,7 @@
475
469
  }
476
470
  };
477
471
  // -------------------
478
- // END TREE CONF DATA
472
+ // END TREE DATA
479
473
 
480
474
 
481
475
 
@@ -627,7 +621,7 @@
627
621
 
628
622
  this.loadDataAndRenderTree (
629
623
  "example-tree-holder_SubtreeArrayOfObjects",
630
- "https://sandbox.brightday.email/cdn/www/data_public/json/tree-data/tree-data-to-use-with-conf.json"
624
+ glob_TreeJson_Url
631
625
  );
632
626
 
633
627
  }
File without changes
@@ -1,279 +0,0 @@
1
- # Tree json tool examples
2
-
3
- 1. [https://sandbox.brightday.email/webpack_builds/ExampleTree/example-from-readme.html](https://sandbox.brightday.email/webpack_builds/ExampleTree/example-from-readme.html)
4
-
5
-
6
- 2. [https://sandbox.brightday.email/](https://sandbox.brightday.email/)
7
-
8
-
9
- 3. [https://sandbox.brightday.email/webpack_builds/ExampleTree/](https://sandbox.brightday.email/webpack_builds/ExampleTree/)
10
-
11
-
12
- 4. [https://github.com/Jaisocx-Tools/Workspace/tree/main/workspace/ts/www/webpack_builds/ExampleTree](https://github.com/Jaisocx-Tools/Workspace/tree/main/workspace/ts/www/webpack_builds/ExampleTree)
13
-
14
-
15
- 5. [https://github.com/Jaisocx-Tools/Workspace/tree/main/workspace/ts/www/sites_tools/js_tools/Tree](https://github.com/Jaisocx-Tools/Workspace/tree/main/workspace/ts/www/sites_tools/js_tools/Tree)
16
-
17
-
18
-
19
-
20
-
21
- ## how to develop with ts or js and build with webpack
22
-
23
- ```
24
- npm install @jaisocx/tree
25
- ```
26
-
27
-
28
- ### a .js or .ts file
29
- ```
30
- import { Tree, TreeConstants } from "@jaisocx/tree";
31
- export { Tree, TreeConstants } from "@jaisocx/tree";
32
-
33
- // These lines make Tree class accessible in browser javascript,
34
- // when loaded in html with <script src"">
35
- (window as any).Tree = Tree;
36
- (window as any).TreeConstants = TreeConstants;
37
- ```
38
-
39
-
40
- ### The .json file with paths alias, used for webpack builds:
41
- ```
42
- node_modules/@jaisocx/tree/webpack.aliases.json
43
- ```
44
-
45
-
46
- ### the single .css file, imported in the Tree.ts with the webpack alias
47
- ```
48
- node_modules/@jaisocx/tree/MediaAndStyles/tree-styles-main-webpack.css
49
- ```
50
-
51
- this import statement here:
52
- ```
53
- import "@jaisocx-tree-MediaAndStyles/tree-styles-main-webpack.css";
54
- ```
55
-
56
-
57
-
58
- ### build with webpack
59
-
60
- when under docker:
61
- ```
62
- docker compose exec ts bash
63
- cd www/webpack_builds/ExampleTree
64
- ```
65
-
66
- when the console is on the ExampleTree package root path:
67
- ```
68
- npm run webpack --config=webpack.config.mjs
69
- ```
70
-
71
-
72
- ### webpack.config.mjs example
73
-
74
- ```
75
- import * as path from "node:path";
76
- import { fileURLToPath } from "node:url";
77
- // import * as pathBrowserify from "path-browserify";
78
- import postcssUrl from "postcss-url";
79
-
80
- import { WebpackAliases } from '@jaisocx/tree/WebpackAliases';
81
-
82
-
83
- let __filename = fileURLToPath(import.meta.url);
84
- let __dirname = path.dirname(__filename);
85
-
86
- console.info(path.resolve(__dirname));
87
- console.log( WebpackAliases );
88
-
89
-
90
- export default {
91
- entry: './transpiled/ESNext/index.js', // Entry point for your TypeScript code
92
- output: {
93
- filename: 'example-tree-bundle.js', // Output bundle name
94
- path: path.resolve(__dirname, 'transpiled/webpack'),
95
- },
96
- resolve: {
97
- alias: {
98
- ...WebpackAliases.resolve.alias,
99
- },
100
- extensions: [".js", ".json", ".css"],
101
- fallback: {
102
- "path": "path-browserify",
103
- },
104
- },
105
- module: {
106
- rules: [
107
- {
108
- test: /\.css$/,
109
- use: [
110
- 'style-loader',
111
- 'css-loader',
112
- {
113
- loader: 'postcss-loader',
114
- options: {
115
- postcssOptions: {
116
- plugins: [
117
- postcssUrl({
118
- url: 'rebase', // Rewrite URLs relative to the final CSS file
119
- }),
120
- ],
121
- },
122
- },
123
- },
124
- ], // Use these loaders for CSS files
125
- },
126
- {
127
- test: /\.(webp|png|jpg|gif|woff|woff2|eot|ttf|svg)$/,
128
- type: 'asset/resource', // Handles images and fonts
129
- },
130
- {
131
- test: /\.(woff|woff2|eot|ttf)$/,
132
- type: 'asset/resource', // Use Webpack 5's native asset modules for images
133
- generator: {
134
- filename: 'MediaAndStyles/fonts/[name][ext]', // Define output path for MediaAndStyles
135
- },
136
- },
137
- {
138
- test: /\.(webp|png|jpg|gif|svg)$/,
139
- type: 'asset/resource', // Use Webpack 5's native asset modules for images
140
- generator: {
141
- filename: 'MediaAndStyles/images/[name][ext]', // Define output path for MediaAndStyles
142
- },
143
- },
144
- ],
145
- },
146
- mode: 'production', // Set mode (development | production)
147
- };
148
-
149
- ```
150
-
151
-
152
- ### package.json example to use with Tree and build with Webpack
153
-
154
- ```
155
- {
156
- "name": "@jaisocx/example-tree",
157
- "version": "1.5.2",
158
- "private": false,
159
- "description": "",
160
- "type": "module",
161
- "main": "./transpiled/CommonJS/index.js",
162
- "types": "./transpiled/ESNext/index.d.ts",
163
- "module": "./transpiled/ESNext/index.js",
164
- "exports": {
165
- "require": "./transpiled/CommonJS/index.js",
166
- "import": "./transpiled/ESNext/index.js"
167
- },
168
- "files": [
169
- "transpiled/CommonJS",
170
- "transpiled/ESNext",
171
- "MediaAndStyles/",
172
- "README.md",
173
- "LICENSE"
174
- ],
175
- "scripts": {
176
- "build": "tsc -p ./tsconfig.json",
177
- "webpack": "webpack"
178
- },
179
- "optionalDependencies": {
180
- "@jaisocx/tree": "^1.5.x"
181
- },
182
- "devDependencies": {
183
- "css-loader": "^7.1.2",
184
- "file-loader": "^6.2.0",
185
- "path-browserify": "^1.0.1",
186
- "postcss-loader": "^8.1.1",
187
- "postcss-url": "^10.1.3",
188
- "style-loader": "^4.0.0",
189
- "ts-loader": "^9.5.1",
190
- "typescript": "^5.7.x",
191
- "webpack": "^5.96.1",
192
- "webpack-cli": "^5.1.4"
193
- },
194
- "keywords": [],
195
- "author": "Jaisocx",
196
- "license": "ISC"
197
- }
198
-
199
- ```
200
-
201
-
202
- ### How to use the bundle.js by the Webpack in html
203
- ```
204
- <html>
205
- <head>
206
- <title>Tree Example</title>
207
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
208
-
209
- <!-- th path to webpack built bundle.js here: -->
210
- <script src="transpiled/webpack/example-tree-bundle.js"></script>
211
- </head>
212
- <body>
213
-
214
- <h1>Tree example</h1>
215
-
216
- <div id="tree-holder" class="theme-base"></div>
217
-
218
- <script>
219
-
220
- function renderDataLikeTree( data ) {
221
- let tree = new Tree();
222
- tree
223
- .setMainHtmlNodeId("tree-holder")
224
- .setNodesWithIcons(true)
225
- .setNodesOpenedMode(TreeConstants.NodesOpenedMode.ALL_SHOWN)
226
- .setRenderingMode(TreeConstants.RenderingMode.Ease)
227
- .render( data );
228
- }
229
-
230
- document.addEventListener('DOMContentLoaded', () => {
231
-
232
- // get data from a https endpoint:
233
- fetch("https://api.artic.edu/api/v1/artworks")
234
- .then( response => response.json() )
235
- .then( data => renderDataLikeTree( data ) );
236
-
237
- });
238
- </script>
239
- </body>
240
- </html>
241
-
242
- ```
243
-
244
-
245
-
246
- ### THEMES: MediaAndStyles like miniimages and fonts resolval in bundle.js
247
- 1. for MediaAndStyles in themes files, use webpack.aliases.js like in sites_tools/js_tools/Tree project.
248
- 2. in the Tree.ts, import main css entrypoint file "@jaisocx-tree-MediaAndStyles/tree-styles-main-webpack.css";
249
- 3. in tree-styles-main-webpack.css import theme main css file like this: @import url('themes/theme-base/theme-base-webpack.css');
250
- 4. use webpack.aliasese.js alias like this:
251
-
252
- ```
253
-
254
- .tree > ul > li > pre > pre.jstree-html-node-holder-icon.icon-show
255
- {
256
- --datatype-array--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/mini-images/data-types/icons8-json-96.png');
257
- --datatype-object--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/mini-images/data-types/icons8-json-96.png');
258
- }
259
-
260
- ```
261
-
262
- 5. without the webpack build, use another relative urls in the .css files, loaded in <link rel="stylesheet" href="">.
263
- 6. with webpack produced bundle.js, several themes can be imported, and then used in html holder node <div id="tree-1" class="theme-extended-1">
264
- 7. when copying to the webpack build theme css files, urls have to be rewritten absolute, starting with / , and not relative like when working in browser with transpiled/Simple
265
- 8. have to try with other data, like .json and other.
266
- 9. in json the urls have to be absolute, or base64 contents.
267
-
268
-
269
- ### index.ts
270
-
271
- the classes, required in script tags and other custom js, using this js ui tool, have to be avaliable like this:
272
- ```
273
- import { Tree, TreeConstants } from "@jaisocx/tree";
274
- export { Tree, TreeConstants } from "@jaisocx/tree";
275
-
276
- (window as any).Tree = Tree;
277
- (window as any).TreeConstants = TreeConstants;
278
- ```
279
-
@@ -1,167 +0,0 @@
1
- # PREVIEW Of Sites Tools, Published For Npm Or Yarn
2
-
3
-
4
- ## The Aim Of The Setup
5
-
6
- To preview the sites tool when installed via `npm i` or `yarn add`
7
-
8
-
9
-
10
-
11
- ### Preface
12
-
13
- A sites tool, published on npm,
14
- may be installed via npm or yarn to a js single page application,
15
- built with js frameworks like React, Angular, Vue3, NextJS
16
- with a js framework single base component for a sites tool
17
- implementing a base interface in the namespace of a js sites tools developer or company.
18
-
19
- Js|Ts developers prefer to keep npm repos registry well seeing
20
- when navigating and installing other sites tools
21
- and for own company marketing and pr purposes.
22
-
23
- The npm and yarn repos registry has the rules:
24
-
25
- 1. to publish `README.md`. We publish for preview one more in addition: `index.example.html`
26
- 2. to avoid or minimize publishing other files than json conf, css and js code.
27
-
28
-
29
- When having tested sites tools, I've encountered and implemented
30
- several efficiency optimization workarounds,
31
- like these:
32
-
33
- 1. traffic cost `save up` (prevented, on single site load, loading several times the same fonts and images);
34
-
35
- 2. foreseen `timestamps of loading` resources like images and fonts (prevented interactivity layout jumps);
36
-
37
- 3. fallback urls for `node_modules` after npm install --install-strategy=hoisted, when installed just one npm package. The relative nested level of `node_modules` path is not to foresee;
38
-
39
- 4. fallback urls bugfixes for the cases, when a cdn isn't responding or the internet connectivity isn't there (when installed a sites tool via npm, and other time later tried to preview the sites tool without internet connection).
40
-
41
-
42
-
43
-
44
- ### Example Flow:
45
-
46
- 1. install `npm i @jaisocx/tree`
47
-
48
- 2. open `node_modules/@jaisocx/tree`. in FileSystem Explorer the folder `node_modules/@jaisocx/tree`
49
-
50
- 3. open `index.example.html`.
51
-
52
- 3.1. in the FileSystem Explorer,
53
- open by tap or mouse double click `index.example.html`,
54
- or with context menu `Open with...` and choose the browser to open this file with.
55
-
56
- 3.2. if having the folder published with a sites server on url `https://your-domain/cdn/sites-tools/`,
57
- navigate in browser:
58
-
59
- ```
60
- https://your-domain/cdn/sites-tools/node_modules/@jaisocx/tree/index.example.html
61
- ```
62
-
63
-
64
-
65
- In both cases, 3.1. and 3.2, the sites tool example is being shown the right way,
66
- like the sites tools developer has had tested before has published to npm.
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
- ### Preview .html Modes
76
-
77
- #### 1. Production Mode
78
-
79
- *index.example.html*, *tree_preview_prod.html*
80
-
81
- The production mode preview may be opened in browser both in `local file system` with fs path and `sites server` with url.
82
-
83
- For this purpose, the fallback relative urls task was solved.
84
-
85
- ##### 1.1 fallback urls workarounds:
86
-
87
- 1.1.1 node_modules
88
-
89
- 1.1.2. cdn not responding npm package with base resources like images and fonts.
90
-
91
- 1.1.3. DOMContentLoaded resolved when loaded with fallback urls after DOMContentLoaded.
92
-
93
-
94
- ##### 1.2. traffic save up workarounds:
95
-
96
- 1.2.1. @jaisocx/preloader for single load.
97
-
98
-
99
-
100
- ##### 1.3. cdn not responding workarounds for @jaisocx/preloader ( and when preview offline):
101
-
102
- 1.3.1. preventing blocking of the site render, the cleanup script to delete cdn preload links
103
-
104
- 1.3.2. preventing default font, for a not loaded font from cdn, have set the fallback fonts names in styles.
105
-
106
-
107
- ##### 1.4. request events number minimized.
108
-
109
- 1.4.1. sites tool's base styles are loaded with one ..._resolved_minimal.css file
110
-
111
-
112
-
113
- #### 2. Development Mode
114
-
115
- *tree_preview_dev.html*
116
-
117
- html file for testing and tryout purposes in development mode:
118
-
119
- 2.1. without heavy scripts load for preloads and fallback urls.
120
-
121
- 2.2. loading styles in relative mode, You see every of 30 files in the filesets for the responsive feature
122
-
123
- 2.3. loading js classes in simple mode ( the easiest to view in browser's dev console legacy legacy mode ).
124
-
125
-
126
-
127
-
128
- ### Problems Solved
129
-
130
- #### Sites tools preview problems
131
-
132
- 1. Preview of a sites tool and of source code was not easy.
133
-
134
- 2. When a cdn is not responding or the internet isn't turned on,
135
- the sites tool has to look good, nevertheless.
136
-
137
-
138
- #### The normal and rare sites and sites tools problems need optimization and fine-tuning.
139
-
140
- 1. the css and js sources were not to view easy and transparent.
141
-
142
- 2. The fonts are not explicitly loaded
143
- and may fallback to default fonts, if not installed on a client device OS.
144
-
145
- 3. Same media files like images and fonts are loaded several times with traffic unneeded cost.
146
-
147
- 4. When the efficient pattern LazyLoad is turned on in a client browser,
148
- some resources are loading in browser later
149
- in unexpected for testers and surfers timestamps,
150
- and interactivity layout jumps may occure.
151
-
152
- 5. when having installed a sites tool with npm,
153
- the relative paths to styles and scripts don't work,
154
- since the relative paths in `node_modules` may be one or two levels above,
155
- or inside the `node_modules` two levels deep.
156
-
157
- 6. fonts and media like images in npm packages examples
158
- are in most cases not loading, since cdn url has changed,
159
- or viewing the example offline.
160
-
161
-
162
- ### Friendly Greetings
163
-
164
- Have a nice day and stay in touch,
165
-
166
- Elias Jaisocx.com Software Architect and Developer
167
-
Binary file
Binary file