@jaisocx/tree 1.5.36 → 1.5.37
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.
- package/{assets → MediaAndStyles}/css/tree-animated-expand-button.css +2 -2
- package/{assets → MediaAndStyles}/css/tree.css +2 -2
- package/MediaAndStyles/themes/theme-base/fonts-webpack.css +35 -0
- package/MediaAndStyles/themes/theme-base/theme-base-media-webpack.css +43 -0
- package/MediaAndStyles/themes/theme-funny/fonts-webpack.css +7 -0
- package/MediaAndStyles/themes/theme-funny/theme-funny-webpack.css +22 -0
- package/MediaAndStyles/tree-styles-main-webpack.css +5 -0
- package/{assets → MediaAndStyles}/tree-styles-main.css +1 -1
- package/README.md +22 -22
- package/README_WEBPACK.md +31 -31
- package/package.json +16 -16
- package/{build → transpiled}/CommonJS/index.js.map +1 -1
- package/{build → transpiled}/CommonJS/typescript/ArrayOrObjectPackage.js +3 -3
- package/{build → transpiled}/CommonJS/typescript/Tree.d.ts +7 -7
- package/transpiled/CommonJS/typescript/Tree.d.ts.map +1 -0
- package/{build → transpiled}/CommonJS/typescript/Tree.js +30 -30
- package/transpiled/CommonJS/typescript/Tree.js.map +1 -0
- package/{build/ESNext → transpiled/CommonJS}/typescript/TreeAdapterModeConf.d.ts +4 -4
- package/transpiled/CommonJS/typescript/TreeAdapterModeConf.d.ts.map +1 -0
- package/{build → transpiled}/CommonJS/typescript/TreeAdapterModeConf.js +9 -9
- package/transpiled/CommonJS/typescript/TreeAdapterModeConf.js.map +1 -0
- package/{build → transpiled}/CommonJS/typescript/TreeAdapterModeEase.d.ts +4 -4
- package/{build → transpiled}/CommonJS/typescript/TreeAdapterModeEase.d.ts.map +1 -1
- package/{build → transpiled}/CommonJS/typescript/TreeAdapterModeEase.js +8 -8
- package/{build → transpiled}/CommonJS/typescript/TreeAdapterModeEase.js.map +1 -1
- package/{build → transpiled}/CommonJS/typescript/TreeConstants.js +5 -5
- package/{build → transpiled}/CommonJS/webpackAliases.d.ts.map +1 -1
- package/{build → transpiled}/CommonJS/webpackAliases.js.map +1 -1
- package/{build → transpiled}/ESNext/index.js.map +1 -1
- package/{build → transpiled}/ESNext/typescript/ArrayOrObjectPackage.js +3 -3
- package/{build → transpiled}/ESNext/typescript/Tree.d.ts +7 -7
- package/transpiled/ESNext/typescript/Tree.d.ts.map +1 -0
- package/{build → transpiled}/ESNext/typescript/Tree.js +31 -31
- package/transpiled/ESNext/typescript/Tree.js.map +1 -0
- package/{build/CommonJS → transpiled/ESNext}/typescript/TreeAdapterModeConf.d.ts +4 -4
- package/transpiled/ESNext/typescript/TreeAdapterModeConf.d.ts.map +1 -0
- package/{build → transpiled}/ESNext/typescript/TreeAdapterModeConf.js +9 -9
- package/transpiled/ESNext/typescript/TreeAdapterModeConf.js.map +1 -0
- package/{build → transpiled}/ESNext/typescript/TreeAdapterModeEase.d.ts +4 -4
- package/{build → transpiled}/ESNext/typescript/TreeAdapterModeEase.d.ts.map +1 -1
- package/{build → transpiled}/ESNext/typescript/TreeAdapterModeEase.js +8 -8
- package/{build → transpiled}/ESNext/typescript/TreeAdapterModeEase.js.map +1 -1
- package/{build → transpiled}/ESNext/typescript/TreeConstants.js +5 -5
- package/{build → transpiled}/ESNext/webpackAliases.d.ts.map +1 -1
- package/{build → transpiled}/ESNext/webpackAliases.js.map +1 -1
- package/transpiled/Simple/typescript/ArrayOrObjectPackage.js +133 -0
- package/transpiled/Simple/typescript/Tree.js +869 -0
- package/transpiled/Simple/typescript/TreeAdapter.js +16 -0
- package/transpiled/Simple/typescript/TreeAdapterModeConf.js +91 -0
- package/transpiled/Simple/typescript/TreeAdapterModeEase.js +80 -0
- package/transpiled/Simple/typescript/TreeConf.js +30 -0
- package/transpiled/Simple/typescript/TreeConstants.js +66 -0
- package/transpiled/Simple/typescript/Types.js +4 -0
- package/transpiled/Simple/webpack.aliases.cjs +18 -0
- package/transpiled/Simple/webpack.aliases.mjs +13 -0
- package/transpiled/Simple/webpackAliases.js +43 -0
- package/webpack.aliases.json +1 -1
- package/assets/themes/theme-base/fonts-webpack.css +0 -35
- package/assets/themes/theme-base/theme-base-assets-webpack.css +0 -43
- package/assets/themes/theme-funny/fonts-webpack.css +0 -7
- package/assets/themes/theme-funny/theme-funny-webpack.css +0 -22
- package/assets/tree-styles-main-webpack.css +0 -5
- package/build/CommonJS/typescript/Tree.d.ts.map +0 -1
- package/build/CommonJS/typescript/Tree.js.map +0 -1
- package/build/CommonJS/typescript/TreeAdapterModeConf.d.ts.map +0 -1
- package/build/CommonJS/typescript/TreeAdapterModeConf.js.map +0 -1
- package/build/ESNext/typescript/Tree.d.ts.map +0 -1
- package/build/ESNext/typescript/Tree.js.map +0 -1
- package/build/ESNext/typescript/TreeAdapterModeConf.d.ts.map +0 -1
- package/build/ESNext/typescript/TreeAdapterModeConf.js.map +0 -1
- /package/{assets → MediaAndStyles}/themes/theme-base/fonts/Baloo_Paaji_2/BalooPaaji2-VariableFont_wght.ttf +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/fonts/Baloo_Paaji_2/OFL.txt +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/fonts/Baloo_Paaji_2/README.txt +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/fonts/Baloo_Paaji_2/static/BalooPaaji2-Bold.ttf +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/fonts/Baloo_Paaji_2/static/BalooPaaji2-ExtraBold.ttf +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/fonts/Baloo_Paaji_2/static/BalooPaaji2-Medium.ttf +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/fonts/Baloo_Paaji_2/static/BalooPaaji2-Regular.ttf +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/fonts/Baloo_Paaji_2/static/BalooPaaji2-SemiBold.ttf +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/fonts.css +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/mini-images/button-open/button-animated.gif +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/mini-images/button-open/button-opened.png +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/mini-images/button-open/button-without-subtree.svg +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/mini-images/data-types/icons8-3-100.png +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/mini-images/data-types/icons8-font-style-formatting-96.png +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/mini-images/data-types/icons8-json-96.png +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/mini-images/data-types/icons8-static-view-level2-80.png +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/mini-images/data-types/icons8-true-false-96.png +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/mini-images/data-types/icons8-view-array-96.png +0 -0
- /package/{assets/themes/theme-base/theme-base-assets.css → MediaAndStyles/themes/theme-base/theme-base-media.css} +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-base/theme-base.css +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-funny/fonts/Niconne/Niconne-Regular.ttf +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-funny/fonts/Niconne/OFL.txt +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-funny/fonts.css +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-funny/mini-images/data-types/house.png +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-funny/mini-images/data-types/html-intence.png +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-funny/mini-images/data-types/html.png +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-funny/mini-images/data-types/money-transfer.png +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-funny/mini-images/data-types/track.png +0 -0
- /package/{assets → MediaAndStyles}/themes/theme-funny/theme-funny.css +0 -0
- /package/{build → transpiled}/CommonJS/index.d.ts +0 -0
- /package/{build → transpiled}/CommonJS/index.d.ts.map +0 -0
- /package/{build → transpiled}/CommonJS/index.js +0 -0
- /package/{build → transpiled}/CommonJS/typescript/ArrayOrObjectPackage.d.ts +0 -0
- /package/{build → transpiled}/CommonJS/typescript/ArrayOrObjectPackage.d.ts.map +0 -0
- /package/{build → transpiled}/CommonJS/typescript/ArrayOrObjectPackage.js.map +0 -0
- /package/{build → transpiled}/CommonJS/typescript/TreeAdapter.d.ts +0 -0
- /package/{build → transpiled}/CommonJS/typescript/TreeAdapter.d.ts.map +0 -0
- /package/{build → transpiled}/CommonJS/typescript/TreeAdapter.js +0 -0
- /package/{build → transpiled}/CommonJS/typescript/TreeAdapter.js.map +0 -0
- /package/{build → transpiled}/CommonJS/typescript/TreeConf.d.ts +0 -0
- /package/{build → transpiled}/CommonJS/typescript/TreeConf.d.ts.map +0 -0
- /package/{build → transpiled}/CommonJS/typescript/TreeConf.js +0 -0
- /package/{build → transpiled}/CommonJS/typescript/TreeConf.js.map +0 -0
- /package/{build → transpiled}/CommonJS/typescript/TreeConstants.d.ts +0 -0
- /package/{build → transpiled}/CommonJS/typescript/TreeConstants.d.ts.map +0 -0
- /package/{build → transpiled}/CommonJS/typescript/TreeConstants.js.map +0 -0
- /package/{build → transpiled}/CommonJS/typescript/Types.d.ts +0 -0
- /package/{build → transpiled}/CommonJS/typescript/Types.d.ts.map +0 -0
- /package/{build → transpiled}/CommonJS/typescript/Types.js +0 -0
- /package/{build → transpiled}/CommonJS/typescript/Types.js.map +0 -0
- /package/{build → transpiled}/CommonJS/webpack.aliases.cjs +0 -0
- /package/{build → transpiled}/CommonJS/webpack.aliases.cjs.map +0 -0
- /package/{build → transpiled}/CommonJS/webpack.aliases.d.cts +0 -0
- /package/{build → transpiled}/CommonJS/webpack.aliases.d.cts.map +0 -0
- /package/{build → transpiled}/CommonJS/webpack.aliases.d.mts +0 -0
- /package/{build → transpiled}/CommonJS/webpack.aliases.d.mts.map +0 -0
- /package/{build → transpiled}/CommonJS/webpack.aliases.mjs +0 -0
- /package/{build → transpiled}/CommonJS/webpack.aliases.mjs.map +0 -0
- /package/{build → transpiled}/CommonJS/webpackAliases.d.ts +0 -0
- /package/{build → transpiled}/CommonJS/webpackAliases.js +0 -0
- /package/{build → transpiled}/ESNext/index.d.ts +0 -0
- /package/{build → transpiled}/ESNext/index.d.ts.map +0 -0
- /package/{build → transpiled}/ESNext/index.js +0 -0
- /package/{build → transpiled}/ESNext/typescript/ArrayOrObjectPackage.d.ts +0 -0
- /package/{build → transpiled}/ESNext/typescript/ArrayOrObjectPackage.d.ts.map +0 -0
- /package/{build → transpiled}/ESNext/typescript/ArrayOrObjectPackage.js.map +0 -0
- /package/{build → transpiled}/ESNext/typescript/TreeAdapter.d.ts +0 -0
- /package/{build → transpiled}/ESNext/typescript/TreeAdapter.d.ts.map +0 -0
- /package/{build → transpiled}/ESNext/typescript/TreeAdapter.js +0 -0
- /package/{build → transpiled}/ESNext/typescript/TreeAdapter.js.map +0 -0
- /package/{build → transpiled}/ESNext/typescript/TreeConf.d.ts +0 -0
- /package/{build → transpiled}/ESNext/typescript/TreeConf.d.ts.map +0 -0
- /package/{build → transpiled}/ESNext/typescript/TreeConf.js +0 -0
- /package/{build → transpiled}/ESNext/typescript/TreeConf.js.map +0 -0
- /package/{build → transpiled}/ESNext/typescript/TreeConstants.d.ts +0 -0
- /package/{build → transpiled}/ESNext/typescript/TreeConstants.d.ts.map +0 -0
- /package/{build → transpiled}/ESNext/typescript/TreeConstants.js.map +0 -0
- /package/{build → transpiled}/ESNext/typescript/Types.d.ts +0 -0
- /package/{build → transpiled}/ESNext/typescript/Types.d.ts.map +0 -0
- /package/{build → transpiled}/ESNext/typescript/Types.js +0 -0
- /package/{build → transpiled}/ESNext/typescript/Types.js.map +0 -0
- /package/{build → transpiled}/ESNext/webpack.aliases.cjs +0 -0
- /package/{build → transpiled}/ESNext/webpack.aliases.cjs.map +0 -0
- /package/{build → transpiled}/ESNext/webpack.aliases.d.cts +0 -0
- /package/{build → transpiled}/ESNext/webpack.aliases.d.cts.map +0 -0
- /package/{build → transpiled}/ESNext/webpack.aliases.d.mts +0 -0
- /package/{build → transpiled}/ESNext/webpack.aliases.d.mts.map +0 -0
- /package/{build → transpiled}/ESNext/webpack.aliases.mjs +0 -0
- /package/{build → transpiled}/ESNext/webpack.aliases.mjs.map +0 -0
- /package/{build → transpiled}/ESNext/webpackAliases.d.ts +0 -0
- /package/{build → transpiled}/ESNext/webpackAliases.js +0 -0
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
display: none;
|
|
170
170
|
position: fixed;
|
|
171
171
|
background-color: white;
|
|
172
|
-
border: 1px solid #
|
|
172
|
+
border: 1px solid #bitbufsb;
|
|
173
173
|
border-radius: 4px;
|
|
174
174
|
padding: 20px;
|
|
175
175
|
box-shadow: 10px 10px 5px grey;
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
.context-menu-container li{
|
|
184
184
|
border-bottom: 1px solid #ddd;
|
|
185
185
|
margin-top: 12px;
|
|
186
|
-
cursor:
|
|
186
|
+
cursor: ref;
|
|
187
187
|
}
|
|
188
188
|
.context-menu-container li:first-of-type{
|
|
189
189
|
margin-top: 0px;
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
top: var(--size--jstree-html-node);
|
|
226
226
|
|
|
227
227
|
background-color: white;
|
|
228
|
-
border: 1px solid #
|
|
228
|
+
border: 1px solid #bitbufsb;
|
|
229
229
|
border-radius: 4px;
|
|
230
230
|
padding: 20px;
|
|
231
231
|
box-shadow: 10px 10px 5px #abb;
|
|
@@ -247,7 +247,7 @@ ul.json-context-menu-holder li {
|
|
|
247
247
|
justify-content: stretch;
|
|
248
248
|
|
|
249
249
|
border-bottom: 1px solid #ddd;
|
|
250
|
-
cursor:
|
|
250
|
+
cursor: ref;
|
|
251
251
|
|
|
252
252
|
width: auto;
|
|
253
253
|
min-width: 100%;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: 'Baloo Paaji 2';
|
|
3
|
+
src: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/fonts/Baloo_Paaji_2/static/BalooPaaji2-Regular.ttf') format('truetype');
|
|
4
|
+
font-weight: 400; /* Regular */
|
|
5
|
+
font-style: normal;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@font-face {
|
|
9
|
+
font-family: 'Baloo Paaji 2';
|
|
10
|
+
src: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/fonts/Baloo_Paaji_2/static/BalooPaaji2-Medium.ttf') format('truetype');
|
|
11
|
+
font-weight: 500; /* Medium */
|
|
12
|
+
font-style: normal;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@font-face {
|
|
16
|
+
font-family: 'Baloo Paaji 2';
|
|
17
|
+
src: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/fonts/Baloo_Paaji_2/static/BalooPaaji2-SemiBold.ttf') format('truetype');
|
|
18
|
+
font-weight: 600; /* SemiBold */
|
|
19
|
+
font-style: normal;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@font-face {
|
|
23
|
+
font-family: 'Baloo Paaji 2';
|
|
24
|
+
src: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/fonts/Baloo_Paaji_2/static/BalooPaaji2-Bold.ttf') format('truetype');
|
|
25
|
+
font-weight: 700; /* Bold */
|
|
26
|
+
font-style: normal;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: 'Baloo Paaji 2';
|
|
31
|
+
src: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/fonts/Baloo_Paaji_2/static/BalooPaaji2-ExtraBold.ttf') format('truetype');
|
|
32
|
+
font-weight: 800; /* ExtraBold */
|
|
33
|
+
font-style: normal;
|
|
34
|
+
}
|
|
35
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
|
|
3
|
+
# RELATIVE PATHS NOTICE
|
|
4
|
+
|
|
5
|
+
since the theme .css files are loaded by .css file ? why? and how?
|
|
6
|
+
|
|
7
|
+
then it's rather to experience the successful url resolved.
|
|
8
|
+
|
|
9
|
+
It seems, the css variable value is resloved in a .css file, that sets a css rule like var(--variable).
|
|
10
|
+
in this case, relative to tree-styles-main.css, css/tree.css file sets it's rules
|
|
11
|
+
with the values from the themes/theme-base/theme-base.css file.
|
|
12
|
+
in theme-base.css it's just a string value,
|
|
13
|
+
and in css/tree.css file, when the css rule was resolved,
|
|
14
|
+
the relative paths apply from css/tree.css file location.
|
|
15
|
+
|
|
16
|
+
the ./../ paths are not malicious, since the browser, when resolving css rules with url() statements,
|
|
17
|
+
sends http request paths normally resolved. the browser doesn't ask a server to ./../../ there in it's filesytem paths.
|
|
18
|
+
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@import url('@jaisocx-tree-MediaAndStyles/themes/theme-base/fonts-webpack.css');
|
|
23
|
+
|
|
24
|
+
.tree > ul > li > pre > pre.jstree-html-node-holder-icon.icon-show
|
|
25
|
+
{
|
|
26
|
+
--datatype-array--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/mini-images/data-types/icons8-json-96.png');
|
|
27
|
+
--datatype-object--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/mini-images/data-types/icons8-json-96.png');
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.tree {
|
|
31
|
+
|
|
32
|
+
--open-button-animated--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/mini-images/button-open/button-animated.gif');
|
|
33
|
+
--open-button-opened--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/mini-images/button-open/button-opened.png');
|
|
34
|
+
--open-button-without-subtree--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/mini-images/button-open/button-without-subtree.svg');
|
|
35
|
+
|
|
36
|
+
--datatype-array--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/mini-images/data-types/icons8-view-array-96.png');
|
|
37
|
+
--datatype-object--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/mini-images/data-types/icons8-static-view-level2-80.png');
|
|
38
|
+
--datatype-number--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/mini-images/data-types/icons8-3-100.png');
|
|
39
|
+
--datatype-string--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/mini-images/data-types/icons8-font-style-formatting-96.png');
|
|
40
|
+
--datatype-boolean--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-base/mini-images/data-types/icons8-true-false-96.png');
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import url('@jaisocx-tree-MediaAndStyles/themes/theme-funny/fonts-webpack.css');
|
|
2
|
+
|
|
3
|
+
.theme-funny .tree > ul > li > pre > pre.jstree-html-node-holder-icon.icon-show,
|
|
4
|
+
.tree.theme-funny > ul > li > pre > pre.jstree-html-node-holder-icon.icon-show
|
|
5
|
+
{
|
|
6
|
+
--datatype-array--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-funny/mini-images/data-types/house.png');
|
|
7
|
+
--datatype-object--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-funny/mini-images/data-types/house.png');
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.theme-funny .tree,
|
|
11
|
+
.tree.theme-funny {
|
|
12
|
+
|
|
13
|
+
--node-label--font-family: 'Niconne';
|
|
14
|
+
|
|
15
|
+
--datatype-array--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-funny/mini-images/data-types/house.png');
|
|
16
|
+
--datatype-object--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-funny/mini-images/data-types/house.png');
|
|
17
|
+
--datatype-number--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-funny/mini-images/data-types/track.png');
|
|
18
|
+
--datatype-string--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-funny/mini-images/data-types/money-transfer.png');
|
|
19
|
+
--datatype-boolean--image-url: url('@jaisocx-tree-MediaAndStyles/themes/theme-funny/mini-images/data-types/html-intence.png');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
@import url('@jaisocx-tree-MediaAndStyles/themes/theme-base/theme-base.css');
|
|
2
|
+
@import url('@jaisocx-tree-MediaAndStyles/themes/theme-base/theme-base-media-webpack.css');
|
|
3
|
+
@import url('@jaisocx-tree-MediaAndStyles/themes/theme-funny/theme-funny-webpack.css');
|
|
4
|
+
@import url('@jaisocx-tree-MediaAndStyles/css/tree.css');
|
|
5
|
+
|
package/README.md
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
|
|
8
8
|
## preview in action here:
|
|
9
9
|
|
|
10
|
-
[https://
|
|
10
|
+
[https://sandbox.brightday.email/ExampleSimple_TreeRenderingModeConf.html](https://sandbox.brightday.email/ExampleSimple_TreeRenderingModeConf.html)
|
|
11
11
|
|
|
12
|
-
[https://
|
|
12
|
+
[https://sandbox.brightday.email/ExampleSimple_TreeRenderingModeEase.html](https://sandbox.brightday.email/ExampleSimple_TreeRenderingModeEase.html)
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
## a little outdated version of .ts code here:
|
|
17
|
-
[https://github.com/Jaisocx-Tools/Workspace/tree/893773a85e33f103d8b0b838bf4004bd45a4e164/
|
|
17
|
+
[https://github.com/Jaisocx-Tools/Workspace/tree/893773a85e33f103d8b0b838bf4004bd45a4e164/workspace/ts/www/sites_tools/js_tools/Tree](https://github.com/Jaisocx-Tools/Workspace/tree/893773a85e33f103d8b0b838bf4004bd45a4e164/workspace/ts/www/sites_tools/js_tools/Tree)
|
|
18
18
|
|
|
19
19
|
In Project "Workspace"
|
|
20
20
|
[https://github.com/Jaisocx-Tools/Workspace](https://github.com/Jaisocx-Tools/Workspace)
|
|
@@ -25,7 +25,7 @@ git clone ssh:
|
|
|
25
25
|
git clone https:
|
|
26
26
|
`https://github.com/Jaisocx-Tools/Workspace.git`
|
|
27
27
|
|
|
28
|
-
at relative path `workspace/ts/www/
|
|
28
|
+
at relative path `workspace/ts/www/sites_tools/js_tools/Tree`
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -52,43 +52,43 @@ The js site ui tool to render a multilevel nested objects json.
|
|
|
52
52
|
|
|
53
53
|
const treeJson_SubtreeArrayOfObjects = [
|
|
54
54
|
{
|
|
55
|
-
"icon": "
|
|
55
|
+
"icon": "webpack_builds/ExampleTree/custom-theme-icons/house.png",
|
|
56
56
|
"label": "Main",
|
|
57
57
|
"opened": false,
|
|
58
58
|
"text": "<h3>Main tree elem</h3>",
|
|
59
59
|
"subtree": [
|
|
60
60
|
{
|
|
61
|
-
"icon": "
|
|
62
|
-
"label": "A Link to Google",
|
|
61
|
+
"icon": "webpack_builds/ExampleTree/custom-theme-icons/google.png",
|
|
62
|
+
"label": "A Link to Google",
|
|
63
63
|
"href": "https://google.com/",
|
|
64
64
|
"cssClassName": "hyperlink"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
"icon": "
|
|
68
|
-
"label": "A Link to GitHub",
|
|
67
|
+
"icon": "webpack_builds/ExampleTree/custom-theme-icons/github.png",
|
|
68
|
+
"label": "A Link to GitHub",
|
|
69
69
|
"href": "https://github.com/orgs/Jaisocx-Tools/repositories",
|
|
70
70
|
"cssClassName": "hyperlink"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
"icon": "
|
|
73
|
+
"icon": "webpack_builds/ExampleTree/custom-theme-icons/catalog.png",
|
|
74
74
|
"label": "echo html",
|
|
75
75
|
"opened": false,
|
|
76
76
|
"subtree": [
|
|
77
77
|
{
|
|
78
|
-
"icon": "
|
|
79
|
-
"label": "html 1",
|
|
78
|
+
"icon": "webpack_builds/ExampleTree/custom-theme-icons/html.png",
|
|
79
|
+
"label": "html 1",
|
|
80
80
|
"href": "javascript: void(0);",
|
|
81
81
|
"text": "<h3>Hello World!</h3><p style=\"color:#26d;\">Have fun with styling and using JSTree tool.</p>"
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
"icon": "
|
|
85
|
-
"label": "html 2",
|
|
84
|
+
"icon": "webpack_builds/ExampleTree/custom-theme-icons/html.png",
|
|
85
|
+
"label": "html 2",
|
|
86
86
|
"href": "javascript: void(0);",
|
|
87
87
|
"text": "<h3>Hello World!</h3><p style=\"color:#d83;\">You can edit code easily, JSTree class is lightweight.</p>"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
"icon": "
|
|
91
|
-
"label": "html 3",
|
|
90
|
+
"icon": "webpack_builds/ExampleTree/custom-theme-icons/html.png",
|
|
91
|
+
"label": "html 3",
|
|
92
92
|
"href": "javascript: void(0);",
|
|
93
93
|
"text": "<h3>Hello World!</h3><p style=\"color:#00bb00;\">Have a nice day.</p>"
|
|
94
94
|
}
|
|
@@ -130,7 +130,7 @@ The js site ui tool to render a multilevel nested objects json.
|
|
|
130
130
|
tree_load_by_url
|
|
131
131
|
.setMainHtmlNodeId("example-tree-holder_load_by_url")
|
|
132
132
|
.setRenderingMode(TreeConstants.RenderingMode.Conf)
|
|
133
|
-
.load("
|
|
133
|
+
.load("webpack_builds/ExampleTree/json/tree-data.json");
|
|
134
134
|
|
|
135
135
|
});
|
|
136
136
|
</script>
|
|
@@ -184,9 +184,9 @@ export class TreeConstants {
|
|
|
184
184
|
};
|
|
185
185
|
|
|
186
186
|
static TEMPLATE__TREE_HTML_NODE: any = `
|
|
187
|
-
<li
|
|
188
|
-
data-id="{{ dataId }}"
|
|
189
|
-
data-holder-id="{{ dataHolderId }}"
|
|
187
|
+
<li
|
|
188
|
+
data-id="{{ dataId }}"
|
|
189
|
+
data-holder-id="{{ dataHolderId }}"
|
|
190
190
|
data-order="{{ dataOrder }}"
|
|
191
191
|
{{ cssClasses }}>
|
|
192
192
|
|
|
@@ -204,9 +204,9 @@ export class TreeConstants {
|
|
|
204
204
|
|
|
205
205
|
<a href="{{ hyperlink }}" class="jstree-html-node-label">{{ labelText }}</a>
|
|
206
206
|
</pre>
|
|
207
|
-
|
|
207
|
+
|
|
208
208
|
<ul></ul>
|
|
209
|
-
</li>
|
|
209
|
+
</li>
|
|
210
210
|
`;
|
|
211
211
|
|
|
212
212
|
static Defaults: ITreeDefaults = {
|
package/README_WEBPACK.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# Tree json tool examples
|
|
2
2
|
|
|
3
|
-
1. [https://
|
|
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
4
|
|
|
5
5
|
|
|
6
|
-
2. [https://
|
|
6
|
+
2. [https://sandbox.brightday.email/](https://sandbox.brightday.email/)
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
3. [https://
|
|
9
|
+
3. [https://sandbox.brightday.email/webpack_builds/ExampleTree/](https://sandbox.brightday.email/webpack_builds/ExampleTree/)
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
4. [https://github.com/Jaisocx-Tools/Workspace/tree/main/
|
|
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
13
|
|
|
14
14
|
|
|
15
|
-
5. [https://github.com/Jaisocx-Tools/Workspace/tree/main/
|
|
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
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -30,7 +30,7 @@ npm install @jaisocx/tree
|
|
|
30
30
|
import { Tree, TreeConstants } from "@jaisocx/tree";
|
|
31
31
|
export { Tree, TreeConstants } from "@jaisocx/tree";
|
|
32
32
|
|
|
33
|
-
// These lines make Tree class accessible in browser javascript,
|
|
33
|
+
// These lines make Tree class accessible in browser javascript,
|
|
34
34
|
// when loaded in html with <script src"">
|
|
35
35
|
(window as any).Tree = Tree;
|
|
36
36
|
(window as any).TreeConstants = TreeConstants;
|
|
@@ -45,12 +45,12 @@ node_modules/@jaisocx/tree/webpack.aliases.json
|
|
|
45
45
|
|
|
46
46
|
### the single .css file, imported in the Tree.ts with the webpack alias
|
|
47
47
|
```
|
|
48
|
-
node_modules/@jaisocx/tree/
|
|
48
|
+
node_modules/@jaisocx/tree/MediaAndStyles/tree-styles-main-webpack.css
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
this import statement here:
|
|
52
52
|
```
|
|
53
|
-
import "@jaisocx-tree-
|
|
53
|
+
import "@jaisocx-tree-MediaAndStyles/tree-styles-main-webpack.css";
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
|
|
@@ -60,7 +60,7 @@ import "@jaisocx-tree-assets/tree-styles-main-webpack.css";
|
|
|
60
60
|
when under docker:
|
|
61
61
|
```
|
|
62
62
|
docker compose exec ts bash
|
|
63
|
-
cd www/
|
|
63
|
+
cd www/webpack_builds/ExampleTree
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
when the console is on the ExampleTree package root path:
|
|
@@ -88,10 +88,10 @@ console.log( WebpackAliases );
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
export default {
|
|
91
|
-
entry: './
|
|
91
|
+
entry: './transpiled/ESNext/index.js', // Entry point for your TypeScript code
|
|
92
92
|
output: {
|
|
93
93
|
filename: 'example-tree-bundle.js', // Output bundle name
|
|
94
|
-
path: path.resolve(__dirname, '
|
|
94
|
+
path: path.resolve(__dirname, 'transpiled/webpack'),
|
|
95
95
|
},
|
|
96
96
|
resolve: {
|
|
97
97
|
alias: {
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
99
99
|
},
|
|
100
100
|
extensions: [".js", ".json", ".css"],
|
|
101
101
|
fallback: {
|
|
102
|
-
"path": "path-browserify",
|
|
102
|
+
"path": "path-browserify",
|
|
103
103
|
},
|
|
104
104
|
},
|
|
105
105
|
module: {
|
|
@@ -107,7 +107,7 @@ export default {
|
|
|
107
107
|
{
|
|
108
108
|
test: /\.css$/,
|
|
109
109
|
use: [
|
|
110
|
-
'style-loader',
|
|
110
|
+
'style-loader',
|
|
111
111
|
'css-loader',
|
|
112
112
|
{
|
|
113
113
|
loader: 'postcss-loader',
|
|
@@ -131,14 +131,14 @@ export default {
|
|
|
131
131
|
test: /\.(woff|woff2|eot|ttf)$/,
|
|
132
132
|
type: 'asset/resource', // Use Webpack 5's native asset modules for images
|
|
133
133
|
generator: {
|
|
134
|
-
filename: '
|
|
134
|
+
filename: 'MediaAndStyles/fonts/[name][ext]', // Define output path for MediaAndStyles
|
|
135
135
|
},
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
test: /\.(webp|png|jpg|gif|svg)$/,
|
|
139
139
|
type: 'asset/resource', // Use Webpack 5's native asset modules for images
|
|
140
140
|
generator: {
|
|
141
|
-
filename: '
|
|
141
|
+
filename: 'MediaAndStyles/images/[name][ext]', // Define output path for MediaAndStyles
|
|
142
142
|
},
|
|
143
143
|
},
|
|
144
144
|
],
|
|
@@ -158,17 +158,17 @@ export default {
|
|
|
158
158
|
"private": false,
|
|
159
159
|
"description": "",
|
|
160
160
|
"type": "module",
|
|
161
|
-
"main": "./
|
|
162
|
-
"types": "./
|
|
163
|
-
"module": "./
|
|
161
|
+
"main": "./transpiled/CommonJS/index.js",
|
|
162
|
+
"types": "./transpiled/ESNext/index.d.ts",
|
|
163
|
+
"module": "./transpiled/ESNext/index.js",
|
|
164
164
|
"exports": {
|
|
165
|
-
"require": "./
|
|
166
|
-
"import": "./
|
|
165
|
+
"require": "./transpiled/CommonJS/index.js",
|
|
166
|
+
"import": "./transpiled/ESNext/index.js"
|
|
167
167
|
},
|
|
168
168
|
"files": [
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
169
|
+
"transpiled/CommonJS",
|
|
170
|
+
"transpiled/ESNext",
|
|
171
|
+
"MediaAndStyles/",
|
|
172
172
|
"README.md",
|
|
173
173
|
"LICENSE"
|
|
174
174
|
],
|
|
@@ -207,7 +207,7 @@ export default {
|
|
|
207
207
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
208
208
|
|
|
209
209
|
<!-- th path to webpack built bundle.js here: -->
|
|
210
|
-
<script src="
|
|
210
|
+
<script src="transpiled/webpack/example-tree-bundle.js"></script>
|
|
211
211
|
</head>
|
|
212
212
|
<body>
|
|
213
213
|
|
|
@@ -224,7 +224,7 @@ export default {
|
|
|
224
224
|
.setNodesWithIcons(true)
|
|
225
225
|
.setNodesOpenedMode(TreeConstants.NodesOpenedMode.ALL_SHOWN)
|
|
226
226
|
.setRenderingMode(TreeConstants.RenderingMode.Ease)
|
|
227
|
-
.render( data );
|
|
227
|
+
.render( data );
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
document.addEventListener('DOMContentLoaded', () => {
|
|
@@ -243,9 +243,9 @@ export default {
|
|
|
243
243
|
|
|
244
244
|
|
|
245
245
|
|
|
246
|
-
### THEMES:
|
|
247
|
-
1. for
|
|
248
|
-
2. in the Tree.ts, import main css entrypoint file "@jaisocx-tree-
|
|
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
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
250
|
4. use webpack.aliasese.js alias like this:
|
|
251
251
|
|
|
@@ -253,15 +253,15 @@ export default {
|
|
|
253
253
|
|
|
254
254
|
.tree > ul > li > pre > pre.jstree-html-node-holder-icon.icon-show
|
|
255
255
|
{
|
|
256
|
-
--datatype-array--image-url: url('@jaisocx-tree-
|
|
257
|
-
--datatype-object--image-url: url('@jaisocx-tree-
|
|
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
258
|
}
|
|
259
259
|
|
|
260
260
|
```
|
|
261
261
|
|
|
262
262
|
5. without the webpack build, use another relative urls in the .css files, loaded in <link rel="stylesheet" href="">.
|
|
263
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
|
|
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
265
|
8. have to try with other data, like .json and other.
|
|
266
266
|
9. in json the urls have to be absolute, or base64 contents.
|
|
267
267
|
|
package/package.json
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaisocx/tree",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.37",
|
|
4
|
+
"author": "Jaisocx",
|
|
4
5
|
"private": false,
|
|
5
6
|
"description": "",
|
|
6
7
|
"type": "module",
|
|
7
|
-
"main": "./
|
|
8
|
-
"types": "./
|
|
9
|
-
"module": "./
|
|
8
|
+
"main": "./transpiled/CommonJS/index.js",
|
|
9
|
+
"types": "./transpiled/ESNext/index.d.ts",
|
|
10
|
+
"module": "./transpiled/ESNext/index.js",
|
|
10
11
|
"exports": {
|
|
11
12
|
".": {
|
|
12
|
-
"import": "./
|
|
13
|
-
"require": "./
|
|
13
|
+
"import": "./transpiled/ESNext/index.js",
|
|
14
|
+
"require": "./transpiled/CommonJS/index.js"
|
|
14
15
|
},
|
|
15
16
|
"./WebpackAliases": {
|
|
16
|
-
"import": "./
|
|
17
|
-
"require": "./
|
|
17
|
+
"import": "./transpiled/ESNext/webpack.aliases.mjs",
|
|
18
|
+
"require": "./transpiled/CommonJS/webpack.aliases.cjs"
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
"files": [
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"transpiled/CommonJS",
|
|
23
|
+
"transpiled/ESNext",
|
|
24
|
+
"transpiled/Simple",
|
|
25
|
+
"MediaAndStyles/",
|
|
24
26
|
"webpack.aliases.json",
|
|
25
27
|
"README.md",
|
|
26
|
-
"README_WEBPACK.md"
|
|
27
|
-
"LICENSE"
|
|
28
|
+
"README_WEBPACK.md"
|
|
28
29
|
],
|
|
29
30
|
"optionalDependencies": {
|
|
30
|
-
"@jaisocx/event-emitter": "^1.4.
|
|
31
|
-
"@jaisocx/template-renderer": "^1.
|
|
31
|
+
"@jaisocx/event-emitter": "^1.4.2",
|
|
32
|
+
"@jaisocx/template-renderer": "^1.5.8"
|
|
32
33
|
},
|
|
33
34
|
"keywords": [
|
|
34
35
|
"json",
|
|
@@ -37,7 +38,6 @@
|
|
|
37
38
|
"publishConfig": {
|
|
38
39
|
"access": "public"
|
|
39
40
|
},
|
|
40
|
-
"author": "Jaisocx",
|
|
41
41
|
"license": "ISC"
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4BAA4B;;;AAW5B,8DAA0D;AAAjD,6GAAA,WAAW,OAAA;AACpB,8EAA0E;AAAjE,6HAAA,mBAAmB,OAAA;AAC5B,8EAA0E;AAAjE,6HAAA,mBAAmB,OAAA;AAC5B,kEAA8D;AAArD,iHAAA,aAAa,OAAA;AACtB,wDAAoD;AAA3C,uGAAA,QAAQ,OAAA;AACjB,gDAA4C;AAAnC,+FAAA,IAAI,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4BAA4B;;;AAW5B,8DAA0D;AAAjD,6GAAA,WAAW,OAAA;AACpB,8EAA0E;AAAjE,6HAAA,mBAAmB,OAAA;AAC5B,8EAA0E;AAAjE,6HAAA,mBAAmB,OAAA;AAC5B,kEAA8D;AAArD,iHAAA,aAAa,OAAA;AACtB,wDAAoD;AAA3C,uGAAA,QAAQ,OAAA;AACjB,gDAA4C;AAAnC,+FAAA,IAAI,OAAA;AAGb,sDAAsD;AACtD,iEAAiE"}
|
|
@@ -7,7 +7,7 @@ class ArrayOrObjectPackage {
|
|
|
7
7
|
const dataType = ArrayOrObjectPackage.JsonDataType[dataTypeString.toUpperCase()];
|
|
8
8
|
return {
|
|
9
9
|
dataTypeString,
|
|
10
|
-
dataType
|
|
10
|
+
dataType
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
static getDataType(value) {
|
|
@@ -27,7 +27,7 @@ class ArrayOrObjectPackage {
|
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
29
|
itemsAmount,
|
|
30
|
-
objectKeys
|
|
30
|
+
objectKeys
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
static iterateOverArrayOrObject(dataType, arrayOrObject, callback, callbackPayload, objectKeys) {
|
|
@@ -75,6 +75,6 @@ ArrayOrObjectPackage.JsonDataType = {
|
|
|
75
75
|
STRING: 3,
|
|
76
76
|
NUMBER: 4,
|
|
77
77
|
BOOLEAN: 5,
|
|
78
|
-
NO_SUBTREE: 6
|
|
78
|
+
NO_SUBTREE: 6
|
|
79
79
|
};
|
|
80
80
|
//# sourceMappingURL=ArrayOrObjectPackage.js.map
|
|
@@ -2,7 +2,7 @@ import { ImprovedRenderEventEmitter, EventHandlerReturnValue } from "@jaisocx/ev
|
|
|
2
2
|
import { TemplateRenderer } from "@jaisocx/template-renderer";
|
|
3
3
|
import { ITreeRenderRetValue, IRenderTemplateRendererData, ITreeAdapter } from "./Types.js";
|
|
4
4
|
import { TreeConf } from "./TreeConf.js";
|
|
5
|
-
import "@jaisocx-tree-
|
|
5
|
+
import "@jaisocx-tree-MediaAndStyles/tree-styles-main-webpack.css";
|
|
6
6
|
export declare class Tree extends ImprovedRenderEventEmitter {
|
|
7
7
|
debug: boolean;
|
|
8
8
|
mainHtmlNodeId: any;
|
|
@@ -43,19 +43,19 @@ export declare class Tree extends ImprovedRenderEventEmitter {
|
|
|
43
43
|
objectKeys: any[] | null;
|
|
44
44
|
};
|
|
45
45
|
renderSubtree(isArray: number, subtreeNodes: any, flatNodeHolderClone: any, objectKeys: any[] | null, subtreeHtmlHolder: HTMLElement): number;
|
|
46
|
-
renderSubtreeCallback(
|
|
46
|
+
renderSubtreeCallback(_isArray: number, loopCounter: number, loopPropertyValue: any, loopPropertyKey: any, _arrayOrObject: any, previousCallbackResult: number | null, callbackPayload: any): number;
|
|
47
47
|
renderOneTreeNode(node: any, nodePosition: number, nodeKey: any, flatNodeHolderClone: any, holder: HTMLElement): ITreeRenderRetValue;
|
|
48
|
-
updateDataNodeIdAndPath(node: any, nodePosition: number, nodeKey: any, flatNodeHolderClone: any,
|
|
48
|
+
updateDataNodeIdAndPath(node: any, nodePosition: number, nodeKey: any, flatNodeHolderClone: any, _holder: HTMLElement): any;
|
|
49
49
|
getTreeDataNodeByJsonnodePathArray(jPathArray: any[]): any;
|
|
50
50
|
getByJPath(data: any, jPathArray: any[]): any;
|
|
51
|
-
getSubtreeNodeToRender(
|
|
52
|
-
getDataForRendering(
|
|
53
|
-
getTreeNodeCssClasses(
|
|
51
|
+
getSubtreeNodeToRender(_loopPropertyValue: any, _loopPropertyKey: any): any;
|
|
52
|
+
getDataForRendering(_node: any, _flatNodeClone: any, _dataTypeString: any, _hasSubtree: boolean): IRenderTemplateRendererData;
|
|
53
|
+
getTreeNodeCssClasses(_dataType: any, _node: any): any;
|
|
54
54
|
addJSTreeEventListener(eventName: any, eventHandler: (eventName: any, payload: any) => EventHandlerReturnValue | null | undefined | void): Tree;
|
|
55
55
|
addJSTreeEventListeners(): Tree;
|
|
56
56
|
initializeCustomJsTreeImprovedEventHandler(jsTreeEventName: any, customEventHandler: any): (eventPayload: any) => void;
|
|
57
57
|
openButtonClickHandler(eventPayload: any): void;
|
|
58
|
-
treeNodeLableClickHandler(
|
|
58
|
+
treeNodeLableClickHandler(_eventPayload: any): void;
|
|
59
59
|
getInModeConfDataNodeIsTreeItem(node: object): boolean;
|
|
60
60
|
escapeHTMLForAttribute(str: any): any;
|
|
61
61
|
unescapeHTMLFromAttribute(str: any | undefined): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../../src/typescript/Tree.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAAE,uBAAuB,EACpD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EACL,mBAAmB,EAAE,2BAA2B,EAAE,YAAY,EAC/D,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAKzC,OAAO,2DAA2D,CAAC;AAGnE,qBAAa,IAAK,SAAQ,0BAA0B;IAClD,KAAK,EAAE,OAAO,CAAC;IAEf,cAAc,EAAE,GAAG,CAAC;IAEpB,kBAAkB,EAAE,WAAW,GAAC,IAAI,CAAC;IAErC,GAAG,EAAE,GAAG,GAAC,IAAI,CAAC;IAEd,IAAI,EAAE,GAAG,GAAC,IAAI,CAAC;IAEf,IAAI,EAAE,QAAQ,CAAC;IAEf,aAAa,EAAE,MAAM,CAAC;IAEtB,iBAAiB,EAAE,MAAM,CAAC;IAE1B,gBAAgB,EAAE,gBAAgB,CAAC;IAEnC,kBAAkB,EAAE,GAAG,CAAC;IAExB,aAAa,EAAE,MAAM,CAAC;IAEtB,cAAc,EAAE,OAAO,CAAC;IAExB,eAAe,EAAE,MAAM,CAAC;IAExB,YAAY,EAAE,OAAO,CAAC;IAEtB,0BAA0B,EAAE,OAAO,CAAC;IAEpC,OAAO,EAAE,YAAY,CAAC;;IAkDtB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAQ9B,iBAAiB,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAM3C,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAM5C,MAAM,CAAC,GAAG,EAAE,GAAG,GAAC,IAAI,GAAG,IAAI;IAM3B,iBAAiB,CAAC,cAAc,EAAE,GAAG,GAAG,IAAI;IAM5C,OAAO,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAM7B,aAAa,CAAC,YAAY,EAAE,OAAO,GAAG,IAAI;IAM1C,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAMpC,6BAA6B,CAAC,mBAAmB,EAAE,OAAO,GAAG,IAAI;IAKjE,IAAI,CAAC,GAAG,EAAE,GAAG,GAAC,IAAI,GAAG,IAAI;IAkBzB,0BAA0B,IAAI,IAAI;IAuBlC,QAAQ,IAAI,IAAI;IAKhB,MAAM,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;IAkJxB,oBAAoB,CAClB,IAAI,EAAE,GAAG,GACR;QACC,OAAO,EAAE,MAAM,CAAC;QAChB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,yBAAyB,EAAE,GAAG,CAAC;QAC/B,UAAU,EAAE,OAAO,CAAC;QACpB,gBAAgB,EAAE,GAAG,CAAC;QACtB,UAAU,EAAE,GAAG,EAAE,GAAC,IAAI,CAAA;KACvB;IA8CH,aAAa,CACX,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,GAAG,EACjB,mBAAmB,EAAE,GAAG,EACxB,UAAU,EAAE,GAAG,EAAE,GAAC,IAAI,EACtB,iBAAiB,EAAE,WAAW,GAC7B,MAAM;IAeT,qBAAqB,CACnB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,GAAG,EACtB,eAAe,EAAE,GAAG,EACpB,cAAc,EAAE,GAAG,EACnB,sBAAsB,EAAE,MAAM,GAAC,IAAI,EACnC,eAAe,EAAE,GAAG,GACnB,MAAM;IAuBT,iBAAiB,CACf,IAAI,EAAE,GAAG,EACT,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,GAAG,EACxB,MAAM,EAAE,WAAW,GAClB,mBAAmB;IA2GtB,uBAAuB,CACrB,IAAI,EAAE,GAAG,EACT,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,GAAG,EACxB,OAAO,EAAE,WAAW,GACnB,GAAG;IA2DN,kCAAkC,CAAG,UAAU,EAAE,GAAG,EAAE,GAAI,GAAG;IAmB7D,UAAU,CACR,IAAI,EAAE,GAAG,EACT,UAAU,EAAE,GAAG,EAAE,GAChB,GAAG;IAcN,sBAAsB,CACpB,kBAAkB,EAAE,GAAG,EACvB,gBAAgB,EAAE,GAAG,GACpB,GAAG;IAIN,mBAAmB,CACjB,KAAK,EAAE,GAAG,EACV,cAAc,EAAE,GAAG,EACnB,eAAe,EAAE,GAAG,EACpB,WAAW,EAAE,OAAO,GACnB,2BAA2B;IAgB9B,qBAAqB,CACnB,SAAS,EAAE,GAAG,EACd,KAAK,EAAE,GAAG,GACT,GAAG;IAON,sBAAsB,CACpB,SAAS,EAAE,GAAG,EACd,YAAY,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,KAAK,uBAAuB,GAAC,IAAI,GAAC,SAAS,GAAC,IAAI,GAC1F,IAAI;IAYP,uBAAuB,IAAI,IAAI;IAuC/B,0CAA0C,CACxC,eAAe,EAAE,GAAG,EACpB,kBAAkB,EAAE,GAAG,IAGd,cAAc,GAAG;IAiC5B,sBAAsB,CAAC,YAAY,EAAE,GAAG;IAoBxC,yBAAyB,CAAC,aAAa,EAAE,GAAG;IAK5C,+BAA+B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAUtD,sBAAsB,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG;IAQrC,yBAAyB,CAAC,GAAG,EAAE,GAAG,GAAC,SAAS,GAAG,GAAG;IAWlD,0BAA0B,CAAC,QAAQ,EAAE,WAAW,GAAC,IAAI,GAAG,GAAG;CAM5D"}
|