@massimo-cassandro/minimo 1.7.1 → 1.8.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.
- package/design-tokens/tokens/size.minimo.tokens.jsonc +16 -16
- package/index.js +4 -2
- package/package.json +1 -1
- package/src/components/TODO form-multiselect/form-multiselect.css +40 -0
- package/src/components/TODO form-multiselect/form-multiselect.js +83 -0
- package/src/components/TODO vanilla-cookie-consent/cookie-consent.css +20 -0
- package/src/components/TODO vanilla-cookie-consent/cookie-consent.js +76 -0
- package/src/components/TODO vanilla-cookie-consent/render-cookie-list.js +32 -0
- package/src/components/TODO vanilla-cookie-consent/src/cookie-list.js +85 -0
- package/src/components/TODO vanilla-cookie-consent/src/it-translation.js +38 -0
- package/src/components/TODO vanilla-cookie-consent/src/run-analytics.js +54 -0
- package/src/components/TODO vanilla-cookie-consent/src/run-recaptcha.js +71 -0
- package/src/components/modal-alert/TODO modal-alert-demo/demo.css +63 -0
- package/src/components/modal-alert/TODO modal-alert-demo/demo.js +155 -0
- package/src/components/modal-popup/modal-popup.js +2 -1
- package/src/components/slide-up-down-toggle/slide-up-down-toggle.js +246 -0
- package/src/components/slide-up-down-toggle/slide-up-down-toggle.module.css +97 -0
- package/src/components/snackbar/snackbar.js +2 -1
- package/src/components/spinner/spinner.js +2 -1
- package/src/components/unsplash-page/TODO unsplash-page-demo/README.md +194 -0
- package/src/components/unsplash-page/TODO unsplash-page-demo/changelog.md +5 -0
- package/src/components/unsplash-page/TODO unsplash-page-demo/unsplash-page/demo.js +15 -0
- package/src/components/unsplash-page/TODO unsplash-page-demo/unsplash-page/rollup.config.mjs +26 -0
- package/src/components/unsplash-page/TODO unsplash-page-demo/unsplash-page/unsplash-page-demo.min.js +3 -0
- package/src/utilities/generate-pwd.js +22 -0
- package/src/web-components/TODO json-table/README.md +67 -0
- package/src/web-components/TODO json-table/TODO.md +12 -0
- package/src/web-components/TODO json-table/_work/OLD/docs/custom-props-list.md +69 -0
- package/src/web-components/TODO json-table/_work/OLD/script/create-css-custom-props-doc.mjs +113 -0
- package/src/web-components/TODO json-table/_work/OLD/script/src/custom-props-end.md +4 -0
- package/src/web-components/TODO json-table/_work/OLD/script/src/custom-props-start.md +30 -0
- package/src/web-components/TODO json-table/_work/OLD/src/css/icons.module.css +22 -0
- package/src/web-components/TODO json-table/_work/OLD/src/css/info.module.css +42 -0
- package/src/web-components/TODO json-table/_work/OLD/src/css/main-wrapper.module.css +4 -0
- package/src/web-components/TODO json-table/_work/OLD/src/css/table.module.css +154 -0
- package/src/web-components/TODO json-table/_work/OLD/src/css/utility.module.css +9 -0
- package/src/web-components/TODO json-table/_work/OLD/src/icons/false.svg +1 -0
- package/src/web-components/TODO json-table/_work/OLD/src/icons/search-arrows.svg +1 -0
- package/src/web-components/TODO json-table/_work/OLD/src/icons/true.svg +1 -0
- package/src/web-components/TODO json-table/_work/OLD/src/index.js +56 -0
- package/src/web-components/TODO json-table/_work/OLD/src/js/default-columns-data-types.js +172 -0
- package/src/web-components/TODO json-table/_work/OLD/src/js/defaults.js +156 -0
- package/src/web-components/TODO json-table/_work/OLD/src/js/info-section.js +31 -0
- package/src/web-components/TODO json-table/_work/OLD/src/js/listeners.js +17 -0
- package/src/web-components/TODO json-table/_work/OLD/src/js/main-builder.js +26 -0
- package/src/web-components/TODO json-table/_work/OLD/src/js/parse-params.js +121 -0
- package/src/web-components/TODO json-table/_work/OLD/src/js/set-column-classname.js +22 -0
- package/src/web-components/TODO json-table/_work/OLD/src/js/table-builder.js +64 -0
- package/src/web-components/TODO json-table/_work/OLD/src/js/table-foot.js +8 -0
- package/src/web-components/TODO json-table/_work/OLD/src/js/table-head.js +47 -0
- package/src/web-components/TODO json-table/_work/OLD/src/js/table-row.js +83 -0
- package/src/web-components/TODO json-table/_work/OLD/src/js/utilities.js +5 -0
- package/src/web-components/TODO json-table/_work/__json-table-react/index.js +4 -0
- package/src/web-components/TODO json-table/_work/__json-table-react/src/build-page-array.js +73 -0
- package/src/web-components/TODO json-table/_work/__json-table-react/src/columns-data-types.js +73 -0
- package/src/web-components/TODO json-table/_work/__json-table-react/src/defaults.js +50 -0
- package/src/web-components/TODO json-table/_work/__json-table-react/src/download-excel.js +156 -0
- package/src/web-components/TODO json-table/_work/__json-table-react/src/set-className.js +19 -0
- package/src/web-components/TODO json-table/_work/__json-table-react/src/set-download-filename.js +17 -0
- package/src/web-components/TODO json-table/_work/__json-table-react/src/table-to-csv.js +48 -0
- package/src/web-components/TODO json-table/_work/archived/table-to-csv.js +48 -0
- package/src/web-components/TODO json-table/_work/arrow.svg +3 -0
- package/src/web-components/TODO json-table/_work/da decidere/get-cell-data.js +18 -0
- package/src/web-components/TODO json-table/_work/download-button.js +29 -0
- package/src/web-components/TODO json-table/_work/download-excel.js +155 -0
- package/src/web-components/TODO json-table/_work/pagination-array-builder.js +73 -0
- package/src/web-components/TODO json-table/_work/pagination.js +37 -0
- package/src/web-components/TODO json-table/_work/set-download-filename.js +19 -0
- package/src/web-components/TODO json-table/_work/table-info.js +24 -0
- package/src/web-components/TODO json-table/demo/README.md +66 -0
- package/src/web-components/TODO json-table/demo/assets/link-simple.svg +1 -0
- package/src/web-components/TODO json-table/demo/demo-data/json-static-table-demo-data.js +512 -0
- package/src/web-components/TODO json-table/demo/demo.css +32 -0
- package/src/web-components/TODO json-table/demo/demo.js +24 -0
- package/src/web-components/TODO json-table/demo/js/demo-ajax-table.js +165 -0
- package/src/web-components/TODO json-table/demo/js/demo-static-table.js +180 -0
- package/src/web-components/TODO json-table/demo/webpack-modules/css-rules.mjs +122 -0
- package/src/web-components/TODO json-table/demo/webpack-modules/get-jsConfig-aliases.mjs +33 -0
- package/src/web-components/TODO json-table/demo/webpack-modules/svg-rules.mjs +108 -0
- package/src/web-components/TODO json-table/demo/webpack-modules/svgo.config.mjs +26 -0
- package/src/web-components/TODO json-table/demo/webpack.config.mjs +333 -0
- package/src/web-components/TODO json-table/docs/custom-props-list.md +74 -0
- package/src/web-components/TODO json-table/docs-builder/create-css-custom-props-doc.mjs +157 -0
- package/src/web-components/TODO json-table/docs-builder/src/custom-props-end.md +6 -0
- package/src/web-components/TODO json-table/docs-builder/src/custom-props-start.md +29 -0
- package/src/web-components/TODO json-table/src/TODO.md +1 -0
- package/src/web-components/TODO json-table/src/__json-table-react/build-page-array.js +73 -0
- package/src/web-components/TODO json-table/src/__json-table-react/columns-data-types.js +73 -0
- package/src/web-components/TODO json-table/src/__json-table-react/defaults.js +50 -0
- package/src/web-components/TODO json-table/src/__json-table-react/download-excel.js +156 -0
- package/src/web-components/TODO json-table/src/__json-table-react/set-className.js +19 -0
- package/src/web-components/TODO json-table/src/__json-table-react/set-download-filename.js +17 -0
- package/src/web-components/TODO json-table/src/__json-table-react/table-to-csv.js +48 -0
- package/src/web-components/TODO json-table/src/css/custom-media.css +16 -0
- package/src/web-components/TODO json-table/src/css/icons.module.css +22 -0
- package/src/web-components/TODO json-table/src/css/info-section.module.css +78 -0
- package/src/web-components/TODO json-table/src/css/main-builder.module.css +6 -0
- package/src/web-components/TODO json-table/src/css/table.module.css +172 -0
- package/src/web-components/TODO json-table/src/css/utility.module.css +9 -0
- package/src/web-components/TODO json-table/src/icons/arrow-down-bold.svg +1 -0
- package/src/web-components/TODO json-table/src/icons/false.svg +1 -0
- package/src/web-components/TODO json-table/src/icons/true.svg +1 -0
- package/src/web-components/TODO json-table/src/index.js +125 -0
- package/src/web-components/TODO json-table/src/js/default-columns-data-types.js +172 -0
- package/src/web-components/TODO json-table/src/js/defaults.js +510 -0
- package/src/web-components/TODO json-table/src/js/get-ajax-data.js +72 -0
- package/src/web-components/TODO json-table/src/js/info-section.js +39 -0
- package/src/web-components/TODO json-table/src/js/init-ajax-table.js +30 -0
- package/src/web-components/TODO json-table/src/js/init-static-table.js +18 -0
- package/src/web-components/TODO json-table/src/js/main-builder.js +87 -0
- package/src/web-components/TODO json-table/src/js/parse-data-row.js +123 -0
- package/src/web-components/TODO json-table/src/js/parse-params.js +118 -0
- package/src/web-components/TODO json-table/src/js/set-search-listener.js +62 -0
- package/src/web-components/TODO json-table/src/js/set-sort-listeners.js +115 -0
- package/src/web-components/TODO json-table/src/js/static-data-sorting.js +23 -0
- package/src/web-components/TODO json-table/src/js/table-builder.js +45 -0
- package/src/web-components/TODO json-table/src/js/table-row.js +43 -0
- package/src/web-components/TODO json-table/src/js/table-tfoot.js +9 -0
- package/src/web-components/TODO json-table/src/js/table-thead.js +91 -0
- package/src/web-components/TODO json-table/src/js/update-info.js +42 -0
- package/src/web-components/TODO json-table/src/js/utilities.js +5 -0
- package/src/web-components/s-datatable-component/s-datatable-component.js +2 -1
- package/src/web-components/s-datatable-component/src/parse-cols.js +2 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# JsonTable Demo
|
|
2
|
+
|
|
3
|
+
Clone the repo and launch `npm install` to get all requested libraries.
|
|
4
|
+
|
|
5
|
+
To run the demo you need to start the server typing (`npm run 'launch-json-demo-server'`); it use [typicode/json-server](https://github.com/typicode/json-server).
|
|
6
|
+
|
|
7
|
+
Show the json server opening <http://localhost:3004>.
|
|
8
|
+
|
|
9
|
+
The demo pages, for convenience, use [Bootstrap 5](https://getbootstrap.com/) css (from CDN), but it is not absolutely essential for JsonTable, and you can replace it with any other css library.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Json data files are generated using https://json-generator.com/ with these configs:
|
|
13
|
+
|
|
14
|
+
Ajax:
|
|
15
|
+
|
|
16
|
+
```javascript
|
|
17
|
+
{
|
|
18
|
+
"draw": 1,
|
|
19
|
+
"recordsTotal": 600,
|
|
20
|
+
"recordsFiltered": 600,
|
|
21
|
+
"data": [
|
|
22
|
+
'{{repeat(600)}}',
|
|
23
|
+
{
|
|
24
|
+
id: '{{integer(350, 1250)}}',
|
|
25
|
+
bool: '{{bool()}}',
|
|
26
|
+
amount1: '{{floating(1000, 4000, 2, "0.00")}}',
|
|
27
|
+
amount2: '{{floating(3000, 5000, 2, "0.00")}}',
|
|
28
|
+
age: '{{integer(20, 40)}}',
|
|
29
|
+
email: '{{email(true)}}',
|
|
30
|
+
phone: '{{phone("3xx.xx.xx.xxx")}}',
|
|
31
|
+
date: '{{date(new Date(2014, 0, 1), new Date(), "ISODateTimeTZ")}}',
|
|
32
|
+
sfdate: {
|
|
33
|
+
date: '{{date(new Date(2014, 0, 1), new Date(), "YYYY-MM-dd hh:mm:ss")}}',
|
|
34
|
+
timezone_type: 3,
|
|
35
|
+
timezone: "Europe/Berlin"
|
|
36
|
+
},
|
|
37
|
+
about: '{{lorem(integer(2, 25), "words")}}'
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Static:
|
|
44
|
+
|
|
45
|
+
```javascript
|
|
46
|
+
[
|
|
47
|
+
'{{repeat(30, 30)}}',
|
|
48
|
+
{
|
|
49
|
+
id: '{{integer(350, 1250)}}',
|
|
50
|
+
bool: '{{random(true,false,null)}}',
|
|
51
|
+
boolCustomized: '{{random(true,false,null)}}',
|
|
52
|
+
number1: '{{floating(1000, 4000, 2, "0.00")}}',
|
|
53
|
+
number2: '{{floating(3000, 5000, 2, "0.00")}}',
|
|
54
|
+
date: '{{date(new Date(2014, 0, 1), new Date(), "YYYY-MM-dd")}}',
|
|
55
|
+
sfDatetime: {
|
|
56
|
+
date: '{{date(new Date(2014, 0, 1), new Date(), "YYYY-MM-dd hh:mm:ss")}}',
|
|
57
|
+
timezone_type: 3,
|
|
58
|
+
timezone: "Europe/Berlin"
|
|
59
|
+
},
|
|
60
|
+
text: '{{lorem(integer(2, 10), "words")}}',
|
|
61
|
+
perc: '{{floating(0, 100, 2, "0.00")}}',
|
|
62
|
+
percDecimal: '{{floating(0, 1, 2, "0.00")}}',
|
|
63
|
+
euro: '{{floating(100, 1000, 2, "0.00")}}'
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M165.66,90.34a8,8,0,0,1,0,11.32l-64,64a8,8,0,0,1-11.32-11.32l64-64A8,8,0,0,1,165.66,90.34ZM215.6,40.4a56,56,0,0,0-79.2,0L106.34,70.45a8,8,0,0,0,11.32,11.32l30.06-30a40,40,0,0,1,56.57,56.56l-30.07,30.06a8,8,0,0,0,11.31,11.32L215.6,119.6a56,56,0,0,0,0-79.2ZM138.34,174.22l-30.06,30.06a40,40,0,1,1-56.56-56.57l30.05-30.05a8,8,0,0,0-11.32-11.32L40.4,136.4a56,56,0,0,0,79.2,79.2l30.06-30.07a8,8,0,0,0-11.32-11.31Z"></path></svg>
|
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
'id': 752,
|
|
4
|
+
'bool': true,
|
|
5
|
+
'boolCustomized': null,
|
|
6
|
+
'number1': 1529.42,
|
|
7
|
+
'number2': 4171.24,
|
|
8
|
+
'date': '2019-04-03',
|
|
9
|
+
'sfDatetime': {
|
|
10
|
+
'date': '2024-01-31 01:33:10',
|
|
11
|
+
'timezone_type': 3,
|
|
12
|
+
'timezone': 'Europe/Berlin'
|
|
13
|
+
},
|
|
14
|
+
'text': 'exercitation ullamco minim dolore ad amet est excepteur Lorem adipisicing',
|
|
15
|
+
'perc': 4.63,
|
|
16
|
+
'percDecimal': 0.06,
|
|
17
|
+
'euro': 554.19
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
'id': 488,
|
|
21
|
+
'bool': false,
|
|
22
|
+
'boolCustomized': false,
|
|
23
|
+
'number1': 3478.8,
|
|
24
|
+
'number2': 4319.16,
|
|
25
|
+
'date': '2015-01-31',
|
|
26
|
+
'sfDatetime': {
|
|
27
|
+
'date': '2016-04-20 04:51:07',
|
|
28
|
+
'timezone_type': 3,
|
|
29
|
+
'timezone': 'Europe/Berlin'
|
|
30
|
+
},
|
|
31
|
+
'text': 'aute ullamco sint in non non Lorem',
|
|
32
|
+
'perc': 81.9,
|
|
33
|
+
'percDecimal': 0.26,
|
|
34
|
+
'euro': 815.42
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
'id': 434,
|
|
38
|
+
'bool': true,
|
|
39
|
+
'boolCustomized': true,
|
|
40
|
+
'number1': 1067.67,
|
|
41
|
+
'number2': 3390.41,
|
|
42
|
+
'date': '2021-04-26',
|
|
43
|
+
'sfDatetime': {
|
|
44
|
+
'date': '2014-01-28 10:27:29',
|
|
45
|
+
'timezone_type': 3,
|
|
46
|
+
'timezone': 'Europe/Berlin'
|
|
47
|
+
},
|
|
48
|
+
'text': 'et ipsum nulla elit ad',
|
|
49
|
+
'perc': 55.71,
|
|
50
|
+
'percDecimal': 0.84,
|
|
51
|
+
'euro': 424.6
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
'id': 924,
|
|
55
|
+
'bool': false,
|
|
56
|
+
'boolCustomized': false,
|
|
57
|
+
'number1': 2624.39,
|
|
58
|
+
'number2': 4295.48,
|
|
59
|
+
'date': '2016-10-21',
|
|
60
|
+
'sfDatetime': {
|
|
61
|
+
'date': '2020-06-04 03:47:16',
|
|
62
|
+
'timezone_type': 3,
|
|
63
|
+
'timezone': 'Europe/Berlin'
|
|
64
|
+
},
|
|
65
|
+
'text': 'laboris enim dolore pariatur cupidatat pariatur tempor aliquip commodo incididunt',
|
|
66
|
+
'perc': 47.21,
|
|
67
|
+
'percDecimal': 0.23,
|
|
68
|
+
'euro': 354.46
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
'id': 814,
|
|
72
|
+
'bool': true,
|
|
73
|
+
'boolCustomized': null,
|
|
74
|
+
'number1': 1849.32,
|
|
75
|
+
'number2': 3162.53,
|
|
76
|
+
'date': '2014-08-31',
|
|
77
|
+
'sfDatetime': {
|
|
78
|
+
'date': '2022-01-05 05:46:48',
|
|
79
|
+
'timezone_type': 3,
|
|
80
|
+
'timezone': 'Europe/Berlin'
|
|
81
|
+
},
|
|
82
|
+
'text': 'mollit veniam non nisi reprehenderit do ea fugiat',
|
|
83
|
+
'perc': 18.59,
|
|
84
|
+
'percDecimal': 0.8,
|
|
85
|
+
'euro': 299.95
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
'id': 1129,
|
|
89
|
+
'bool': false,
|
|
90
|
+
'boolCustomized': true,
|
|
91
|
+
'number1': 2038.96,
|
|
92
|
+
'number2': 4943.79,
|
|
93
|
+
'date': '2017-03-20',
|
|
94
|
+
'sfDatetime': {
|
|
95
|
+
'date': '2016-07-18 12:07:39',
|
|
96
|
+
'timezone_type': 3,
|
|
97
|
+
'timezone': 'Europe/Berlin'
|
|
98
|
+
},
|
|
99
|
+
'text': 'cillum cupidatat sunt tempor fugiat laborum cupidatat sint',
|
|
100
|
+
'perc': 16.17,
|
|
101
|
+
'percDecimal': 0.81,
|
|
102
|
+
'euro': 321.09
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
'id': 391,
|
|
106
|
+
'bool': true,
|
|
107
|
+
'boolCustomized': null,
|
|
108
|
+
'number1': 2812.2,
|
|
109
|
+
'number2': 4836.4,
|
|
110
|
+
'date': '2021-05-27',
|
|
111
|
+
'sfDatetime': {
|
|
112
|
+
'date': '2019-01-28 09:01:19',
|
|
113
|
+
'timezone_type': 3,
|
|
114
|
+
'timezone': 'Europe/Berlin'
|
|
115
|
+
},
|
|
116
|
+
'text': 'id cillum et deserunt',
|
|
117
|
+
'perc': 31.09,
|
|
118
|
+
'percDecimal': 0.92,
|
|
119
|
+
'euro': 485.68
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
'id': 1218,
|
|
123
|
+
'bool': false,
|
|
124
|
+
'boolCustomized': null,
|
|
125
|
+
'number1': 1966.56,
|
|
126
|
+
'number2': 4872.46,
|
|
127
|
+
'date': '2014-11-13',
|
|
128
|
+
'sfDatetime': {
|
|
129
|
+
'date': '2015-10-24 08:15:54',
|
|
130
|
+
'timezone_type': 3,
|
|
131
|
+
'timezone': 'Europe/Berlin'
|
|
132
|
+
},
|
|
133
|
+
'text': 'non exercitation tempor velit minim ullamco enim duis consectetur',
|
|
134
|
+
'perc': 24.25,
|
|
135
|
+
'percDecimal': 0.99,
|
|
136
|
+
'euro': 728.16
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
'id': 937,
|
|
140
|
+
'bool': false,
|
|
141
|
+
'boolCustomized': null,
|
|
142
|
+
'number1': 1742.43,
|
|
143
|
+
'number2': 4275.77,
|
|
144
|
+
'date': '2015-02-05',
|
|
145
|
+
'sfDatetime': {
|
|
146
|
+
'date': '2014-05-09 02:32:16',
|
|
147
|
+
'timezone_type': 3,
|
|
148
|
+
'timezone': 'Europe/Berlin'
|
|
149
|
+
},
|
|
150
|
+
'text': 'laborum qui eu labore dolor magna tempor',
|
|
151
|
+
'perc': 39.72,
|
|
152
|
+
'percDecimal': 0.54,
|
|
153
|
+
'euro': 414.46
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
'id': 1079,
|
|
157
|
+
'bool': true,
|
|
158
|
+
'boolCustomized': true,
|
|
159
|
+
'number1': 2416.66,
|
|
160
|
+
'number2': 4890.59,
|
|
161
|
+
'date': '2023-09-10',
|
|
162
|
+
'sfDatetime': {
|
|
163
|
+
'date': '2018-04-22 12:48:59',
|
|
164
|
+
'timezone_type': 3,
|
|
165
|
+
'timezone': 'Europe/Berlin'
|
|
166
|
+
},
|
|
167
|
+
'text': 'exercitation nulla reprehenderit',
|
|
168
|
+
'perc': 76.13,
|
|
169
|
+
'percDecimal': 0.41,
|
|
170
|
+
'euro': 844.67
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
'id': 767,
|
|
174
|
+
'bool': false,
|
|
175
|
+
'boolCustomized': true,
|
|
176
|
+
'number1': 2933.49,
|
|
177
|
+
'number2': 3171.02,
|
|
178
|
+
'date': '2014-03-01',
|
|
179
|
+
'sfDatetime': {
|
|
180
|
+
'date': '2019-07-13 05:54:42',
|
|
181
|
+
'timezone_type': 3,
|
|
182
|
+
'timezone': 'Europe/Berlin'
|
|
183
|
+
},
|
|
184
|
+
'text': 'exercitation fugiat',
|
|
185
|
+
'perc': 69.59,
|
|
186
|
+
'percDecimal': 0,
|
|
187
|
+
'euro': 380.83
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
'id': 659,
|
|
191
|
+
'bool': false,
|
|
192
|
+
'boolCustomized': false,
|
|
193
|
+
'number1': 1831.85,
|
|
194
|
+
'number2': 4898.58,
|
|
195
|
+
'date': '2024-06-20',
|
|
196
|
+
'sfDatetime': {
|
|
197
|
+
'date': '2019-12-27 10:12:59',
|
|
198
|
+
'timezone_type': 3,
|
|
199
|
+
'timezone': 'Europe/Berlin'
|
|
200
|
+
},
|
|
201
|
+
'text': 'non ex ut adipisicing',
|
|
202
|
+
'perc': 56.13,
|
|
203
|
+
'percDecimal': 0.37,
|
|
204
|
+
'euro': 240.25
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
'id': 796,
|
|
208
|
+
'bool': true,
|
|
209
|
+
'boolCustomized': false,
|
|
210
|
+
'number1': 2886.78,
|
|
211
|
+
'number2': 4746.63,
|
|
212
|
+
'date': '2021-05-11',
|
|
213
|
+
'sfDatetime': {
|
|
214
|
+
'date': '2023-03-12 09:53:50',
|
|
215
|
+
'timezone_type': 3,
|
|
216
|
+
'timezone': 'Europe/Berlin'
|
|
217
|
+
},
|
|
218
|
+
'text': 'ipsum ipsum',
|
|
219
|
+
'perc': 31.66,
|
|
220
|
+
'percDecimal': 0.4,
|
|
221
|
+
'euro': 599.64
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
'id': 1027,
|
|
225
|
+
'bool': true,
|
|
226
|
+
'boolCustomized': null,
|
|
227
|
+
'number1': 2666.47,
|
|
228
|
+
'number2': 4976.09,
|
|
229
|
+
'date': '2024-05-19',
|
|
230
|
+
'sfDatetime': {
|
|
231
|
+
'date': '2017-08-22 03:48:15',
|
|
232
|
+
'timezone_type': 3,
|
|
233
|
+
'timezone': 'Europe/Berlin'
|
|
234
|
+
},
|
|
235
|
+
'text': 'culpa voluptate commodo est consectetur occaecat deserunt nisi',
|
|
236
|
+
'perc': 38.39,
|
|
237
|
+
'percDecimal': 0.8,
|
|
238
|
+
'euro': 325.39
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
'id': 864,
|
|
242
|
+
'bool': true,
|
|
243
|
+
'boolCustomized': false,
|
|
244
|
+
'number1': 3541.99,
|
|
245
|
+
'number2': 4361.11,
|
|
246
|
+
'date': '2020-01-20',
|
|
247
|
+
'sfDatetime': {
|
|
248
|
+
'date': '2024-01-19 07:00:15',
|
|
249
|
+
'timezone_type': 3,
|
|
250
|
+
'timezone': 'Europe/Berlin'
|
|
251
|
+
},
|
|
252
|
+
'text': 'commodo excepteur ut quis pariatur irure',
|
|
253
|
+
'perc': 35.37,
|
|
254
|
+
'percDecimal': 0.79,
|
|
255
|
+
'euro': 837.29
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
'id': 644,
|
|
259
|
+
'bool': false,
|
|
260
|
+
'boolCustomized': false,
|
|
261
|
+
'number1': 3446.61,
|
|
262
|
+
'number2': 4217.83,
|
|
263
|
+
'date': '2017-10-27',
|
|
264
|
+
'sfDatetime': {
|
|
265
|
+
'date': '2019-05-13 08:36:47',
|
|
266
|
+
'timezone_type': 3,
|
|
267
|
+
'timezone': 'Europe/Berlin'
|
|
268
|
+
},
|
|
269
|
+
'text': 'proident ut dolor veniam Lorem mollit aliquip',
|
|
270
|
+
'perc': 49.46,
|
|
271
|
+
'percDecimal': 0.65,
|
|
272
|
+
'euro': 617.38
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
'id': 888,
|
|
276
|
+
'bool': false,
|
|
277
|
+
'boolCustomized': null,
|
|
278
|
+
'number1': 1456.42,
|
|
279
|
+
'number2': 4639.76,
|
|
280
|
+
'date': '2016-06-02',
|
|
281
|
+
'sfDatetime': {
|
|
282
|
+
'date': '2024-06-23 07:22:20',
|
|
283
|
+
'timezone_type': 3,
|
|
284
|
+
'timezone': 'Europe/Berlin'
|
|
285
|
+
},
|
|
286
|
+
'text': 'cupidatat eu nulla reprehenderit aliquip minim amet labore',
|
|
287
|
+
'perc': 14.57,
|
|
288
|
+
'percDecimal': 0.09,
|
|
289
|
+
'euro': 272.04
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
'id': 627,
|
|
293
|
+
'bool': true,
|
|
294
|
+
'boolCustomized': true,
|
|
295
|
+
'number1': 1049.51,
|
|
296
|
+
'number2': 4480.07,
|
|
297
|
+
'date': '2016-11-18',
|
|
298
|
+
'sfDatetime': {
|
|
299
|
+
'date': '2022-12-08 03:26:23',
|
|
300
|
+
'timezone_type': 3,
|
|
301
|
+
'timezone': 'Europe/Berlin'
|
|
302
|
+
},
|
|
303
|
+
'text': 'sunt officia ea',
|
|
304
|
+
'perc': 99.86,
|
|
305
|
+
'percDecimal': 0.15,
|
|
306
|
+
'euro': 257.89
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
'id': 1111,
|
|
310
|
+
'bool': true,
|
|
311
|
+
'boolCustomized': true,
|
|
312
|
+
'number1': 1851.42,
|
|
313
|
+
'number2': 3231.46,
|
|
314
|
+
'date': '2023-05-08',
|
|
315
|
+
'sfDatetime': {
|
|
316
|
+
'date': '2021-04-21 09:18:08',
|
|
317
|
+
'timezone_type': 3,
|
|
318
|
+
'timezone': 'Europe/Berlin'
|
|
319
|
+
},
|
|
320
|
+
'text': 'cupidatat aliqua in minim exercitation sit eiusmod pariatur sint veniam',
|
|
321
|
+
'perc': 97.77,
|
|
322
|
+
'percDecimal': 0.03,
|
|
323
|
+
'euro': 804.13
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
'id': 604,
|
|
327
|
+
'bool': false,
|
|
328
|
+
'boolCustomized': true,
|
|
329
|
+
'number1': 3366.89,
|
|
330
|
+
'number2': 3085.75,
|
|
331
|
+
'date': '2021-01-22',
|
|
332
|
+
'sfDatetime': {
|
|
333
|
+
'date': '2022-03-21 05:24:44',
|
|
334
|
+
'timezone_type': 3,
|
|
335
|
+
'timezone': 'Europe/Berlin'
|
|
336
|
+
},
|
|
337
|
+
'text': 'mollit dolor labore in culpa qui ullamco',
|
|
338
|
+
'perc': 51.15,
|
|
339
|
+
'percDecimal': 0.03,
|
|
340
|
+
'euro': 399.27
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
'id': 1032,
|
|
344
|
+
'bool': true,
|
|
345
|
+
'boolCustomized': false,
|
|
346
|
+
'number1': 1297.38,
|
|
347
|
+
'number2': 3582.2,
|
|
348
|
+
'date': '2019-09-12',
|
|
349
|
+
'sfDatetime': {
|
|
350
|
+
'date': '2024-12-10 02:33:09',
|
|
351
|
+
'timezone_type': 3,
|
|
352
|
+
'timezone': 'Europe/Berlin'
|
|
353
|
+
},
|
|
354
|
+
'text': 'adipisicing do elit sit culpa officia reprehenderit in',
|
|
355
|
+
'perc': 25.29,
|
|
356
|
+
'percDecimal': 0.59,
|
|
357
|
+
'euro': 189.36
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
'id': 921,
|
|
361
|
+
'bool': false,
|
|
362
|
+
'boolCustomized': true,
|
|
363
|
+
'number1': 3343.44,
|
|
364
|
+
'number2': 3672.17,
|
|
365
|
+
'date': '2021-09-11',
|
|
366
|
+
'sfDatetime': {
|
|
367
|
+
'date': '2021-11-19 02:10:56',
|
|
368
|
+
'timezone_type': 3,
|
|
369
|
+
'timezone': 'Europe/Berlin'
|
|
370
|
+
},
|
|
371
|
+
'text': 'ullamco id aute id velit mollit magna',
|
|
372
|
+
'perc': 10.88,
|
|
373
|
+
'percDecimal': 0.14,
|
|
374
|
+
'euro': 940.3
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
'id': 967,
|
|
378
|
+
'bool': false,
|
|
379
|
+
'boolCustomized': true,
|
|
380
|
+
'number1': 3232.34,
|
|
381
|
+
'number2': 4003.31,
|
|
382
|
+
'date': '2016-08-23',
|
|
383
|
+
'sfDatetime': {
|
|
384
|
+
'date': '2015-01-17 04:31:05',
|
|
385
|
+
'timezone_type': 3,
|
|
386
|
+
'timezone': 'Europe/Berlin'
|
|
387
|
+
},
|
|
388
|
+
'text': 'do et labore culpa reprehenderit dolore incididunt',
|
|
389
|
+
'perc': 52.2,
|
|
390
|
+
'percDecimal': 0.87,
|
|
391
|
+
'euro': 759.7
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
'id': 812,
|
|
395
|
+
'bool': false,
|
|
396
|
+
'boolCustomized': true,
|
|
397
|
+
'number1': 3306.65,
|
|
398
|
+
'number2': 4657.02,
|
|
399
|
+
'date': '2016-01-18',
|
|
400
|
+
'sfDatetime': {
|
|
401
|
+
'date': '2019-07-23 03:40:24',
|
|
402
|
+
'timezone_type': 3,
|
|
403
|
+
'timezone': 'Europe/Berlin'
|
|
404
|
+
},
|
|
405
|
+
'text': 'fugiat minim laboris officia deserunt magna',
|
|
406
|
+
'perc': 44.33,
|
|
407
|
+
'percDecimal': 0.38,
|
|
408
|
+
'euro': 878.52
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
'id': 841,
|
|
412
|
+
'bool': true,
|
|
413
|
+
'boolCustomized': null,
|
|
414
|
+
'number1': 3120.62,
|
|
415
|
+
'number2': 4869.27,
|
|
416
|
+
'date': '2017-06-24',
|
|
417
|
+
'sfDatetime': {
|
|
418
|
+
'date': '2015-10-04 08:23:27',
|
|
419
|
+
'timezone_type': 3,
|
|
420
|
+
'timezone': 'Europe/Berlin'
|
|
421
|
+
},
|
|
422
|
+
'text': 'amet et nostrud id occaecat veniam consectetur excepteur fugiat',
|
|
423
|
+
'perc': 18.34,
|
|
424
|
+
'percDecimal': 0.64,
|
|
425
|
+
'euro': 391.8
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
'id': 1094,
|
|
429
|
+
'bool': false,
|
|
430
|
+
'boolCustomized': true,
|
|
431
|
+
'number1': 1062.53,
|
|
432
|
+
'number2': 4390.9,
|
|
433
|
+
'date': '2018-05-14',
|
|
434
|
+
'sfDatetime': {
|
|
435
|
+
'date': '2019-03-19 04:10:02',
|
|
436
|
+
'timezone_type': 3,
|
|
437
|
+
'timezone': 'Europe/Berlin'
|
|
438
|
+
},
|
|
439
|
+
'text': 'sunt ex cupidatat ullamco mollit aliqua',
|
|
440
|
+
'perc': 4.03,
|
|
441
|
+
'percDecimal': 0.33,
|
|
442
|
+
'euro': 832.3
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
'id': 984,
|
|
446
|
+
'bool': false,
|
|
447
|
+
'boolCustomized': null,
|
|
448
|
+
'number1': 2196.64,
|
|
449
|
+
'number2': 4962.43,
|
|
450
|
+
'date': '2017-10-16',
|
|
451
|
+
'sfDatetime': {
|
|
452
|
+
'date': '2023-04-21 08:25:14',
|
|
453
|
+
'timezone_type': 3,
|
|
454
|
+
'timezone': 'Europe/Berlin'
|
|
455
|
+
},
|
|
456
|
+
'text': 'nulla tempor nulla non laboris commodo adipisicing dolor nostrud',
|
|
457
|
+
'perc': 70.53,
|
|
458
|
+
'percDecimal': 0.18,
|
|
459
|
+
'euro': 737.65
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
'id': 1069,
|
|
463
|
+
'bool': true,
|
|
464
|
+
'boolCustomized': null,
|
|
465
|
+
'number1': 2048.85,
|
|
466
|
+
'number2': 4647,
|
|
467
|
+
'date': '2019-08-07',
|
|
468
|
+
'sfDatetime': {
|
|
469
|
+
'date': '2023-05-03 11:42:05',
|
|
470
|
+
'timezone_type': 3,
|
|
471
|
+
'timezone': 'Europe/Berlin'
|
|
472
|
+
},
|
|
473
|
+
'text': 'tempor laboris',
|
|
474
|
+
'perc': 34.29,
|
|
475
|
+
'percDecimal': 0.64,
|
|
476
|
+
'euro': 924.07
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
'id': 1037,
|
|
480
|
+
'bool': true,
|
|
481
|
+
'boolCustomized': null,
|
|
482
|
+
'number1': 3709.04,
|
|
483
|
+
'number2': 3841.83,
|
|
484
|
+
'date': '2019-10-10',
|
|
485
|
+
'sfDatetime': {
|
|
486
|
+
'date': '2020-02-25 07:46:52',
|
|
487
|
+
'timezone_type': 3,
|
|
488
|
+
'timezone': 'Europe/Berlin'
|
|
489
|
+
},
|
|
490
|
+
'text': 'cillum et velit veniam aliquip eu ipsum',
|
|
491
|
+
'perc': 26.6,
|
|
492
|
+
'percDecimal': 0.1,
|
|
493
|
+
'euro': 188.94
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
'id': 729,
|
|
497
|
+
'bool': true,
|
|
498
|
+
'boolCustomized': null,
|
|
499
|
+
'number1': 2052.83,
|
|
500
|
+
'number2': 3837.04,
|
|
501
|
+
'date': '2021-02-16',
|
|
502
|
+
'sfDatetime': {
|
|
503
|
+
'date': '2024-09-09 07:22:45',
|
|
504
|
+
'timezone_type': 3,
|
|
505
|
+
'timezone': 'Europe/Berlin'
|
|
506
|
+
},
|
|
507
|
+
'text': 'dolor sunt exercitation tempor minim',
|
|
508
|
+
'perc': 37.99,
|
|
509
|
+
'percDecimal': 0.5,
|
|
510
|
+
'euro': 764.59
|
|
511
|
+
}
|
|
512
|
+
];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.content {
|
|
2
|
+
padding-block: 1.5rem;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
h1 {
|
|
6
|
+
margin: 0 0 2rem;
|
|
7
|
+
font-size: 2rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
h2 {
|
|
11
|
+
margin: 0 0 1.5rem;
|
|
12
|
+
font-size: 1.5rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.demo-wrapper {
|
|
16
|
+
padding: 1rem;
|
|
17
|
+
margin-block: 2rem;
|
|
18
|
+
border: 1px solid #ccc;
|
|
19
|
+
border-radius: 1rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.toc-anchor {
|
|
23
|
+
svg {
|
|
24
|
+
width: 1em;
|
|
25
|
+
aspect-ratio: 1;
|
|
26
|
+
fill: currentColor;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
th {
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import './demo.css';
|
|
2
|
+
|
|
3
|
+
import './js/demo-ajax-table.js';
|
|
4
|
+
|
|
5
|
+
// import './js/demo-static-table.js';
|
|
6
|
+
|
|
7
|
+
import { createId } from '@massimo-cassandro/js-utilities/index.js';
|
|
8
|
+
|
|
9
|
+
import link_icon from './assets/link-simple.svg?inline';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
// toc
|
|
13
|
+
const toc = [];
|
|
14
|
+
document.querySelectorAll('h2').forEach(h2 => {
|
|
15
|
+
const id = createId(h2.innerText);
|
|
16
|
+
h2.id = id;
|
|
17
|
+
toc.push([id, h2.innerText]);
|
|
18
|
+
h2.insertAdjacentHTML('beforeend', ` <a href="#${id}" class="toc-anchor">${link_icon}</a>`);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
document.getElementById('toc').innerHTML =
|
|
22
|
+
`<ul>${toc.map(item =>
|
|
23
|
+
`<li><a href="#${item[0]}">${item[1]}</a></li>`).join('')
|
|
24
|
+
}</ul>`;
|