@htmlbricks/hb-table 0.20.18 → 0.50.0-alpha.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/main.iife.js +223 -0
- package/{release/manifest.json → manifest.json} +7 -5
- package/package.json +14 -86
- package/types/webcomponent.type.d.json +319 -0
- package/types/webcomponent_events.type.d.json +318 -0
- package/LICENSE.md +0 -68
- package/README.md +0 -2
- package/extra/docs.ts +0 -561
- package/release/docs.js +0 -548
- package/release/docs.js.map +0 -1
- package/release/docs.ts +0 -561
- package/release/release.js +0 -2
- package/release/release.js.map +0 -1
- package/release/webcomponent.type.d.ts +0 -88
|
@@ -331,8 +331,11 @@
|
|
|
331
331
|
},
|
|
332
332
|
"type": "array"
|
|
333
333
|
},
|
|
334
|
+
"add_item": {
|
|
335
|
+
"type": "boolean"
|
|
336
|
+
},
|
|
334
337
|
"disablepagination": {
|
|
335
|
-
"type": "
|
|
338
|
+
"type": "boolean"
|
|
336
339
|
},
|
|
337
340
|
"enableselect": {
|
|
338
341
|
"type": "string"
|
|
@@ -635,6 +638,7 @@
|
|
|
635
638
|
}
|
|
636
639
|
}
|
|
637
640
|
},
|
|
641
|
+
"description": "",
|
|
638
642
|
"storybookArgs": {
|
|
639
643
|
"size": {
|
|
640
644
|
"control": {
|
|
@@ -776,9 +780,7 @@
|
|
|
776
780
|
],
|
|
777
781
|
"parts": []
|
|
778
782
|
},
|
|
779
|
-
"author": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
|
|
780
783
|
"contributors": [],
|
|
781
|
-
"owner": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
|
|
782
784
|
"htmlSlots": [
|
|
783
785
|
{
|
|
784
786
|
"name": "add-button-content"
|
|
@@ -2012,7 +2014,7 @@
|
|
|
2012
2014
|
"table"
|
|
2013
2015
|
],
|
|
2014
2016
|
"size": {},
|
|
2015
|
-
"iifePath": "
|
|
2017
|
+
"iifePath": "main.iife.js",
|
|
2016
2018
|
"repoName": "@htmlbricks/hb-table",
|
|
2017
|
-
"version": "0.
|
|
2019
|
+
"version": "0.50.0-alpha.000"
|
|
2018
2020
|
}
|
package/package.json
CHANGED
|
@@ -1,87 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"engines": {
|
|
17
|
-
"node": ">=16.0.0"
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"start": "sirv dist",
|
|
21
|
-
"dev": "rm -rf ./dist && rollup -c -w",
|
|
22
|
-
"build": "rm -rf ./dist && rollup -c",
|
|
23
|
-
"generate-manifest": "npm run generate-schemes && monorepo-wc-packages-manifester --dir $PWD",
|
|
24
|
-
"generate-component-schema": "ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
|
|
25
|
-
"generate-events-schema": "ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json",
|
|
26
|
-
"generate-schemes": "npm run generate-events-schema && npm run generate-component-schema",
|
|
27
|
-
"copydest": "rsync -avh dist/* ./release/ --delete",
|
|
28
|
-
"build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
|
|
29
|
-
"build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
|
|
30
|
-
"prepublish": "npm run build:release"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@rollup/plugin-alias": "^3.1.2",
|
|
34
|
-
"@rollup/plugin-commonjs": "^18.0.0",
|
|
35
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
36
|
-
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
37
|
-
"@rollup/plugin-replace": "^4.0.0",
|
|
38
|
-
"@rollup/plugin-typescript": "^8.2.1",
|
|
39
|
-
"@tsconfig/svelte": "^1.0.10",
|
|
40
|
-
"@types/node": "^16.7.1",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^4.22.0",
|
|
42
|
-
"@typescript-eslint/parser": "^4.22.0",
|
|
43
|
-
"eslint": "^7.25.0",
|
|
44
|
-
"eslint-plugin-jsdoc": "^33.0.0",
|
|
45
|
-
"eslint-plugin-svelte3": "^3.2.0",
|
|
46
|
-
"monorepo-wc-packages-manifester": "^0.0.3",
|
|
47
|
-
"node-sass": "^9.0.0",
|
|
48
|
-
"postcss": "^8.2.13",
|
|
49
|
-
"postcss-load-config": "^3.0.1",
|
|
50
|
-
"prettier": "^2.8.4",
|
|
51
|
-
"rollup": "^2.46.0",
|
|
52
|
-
"rollup-plugin-copy": "^3.4.0",
|
|
53
|
-
"rollup-plugin-css-only": "^3.1.0",
|
|
54
|
-
"rollup-plugin-livereload": "^2.0.0",
|
|
55
|
-
"rollup-plugin-svelte": "^7.1.0",
|
|
56
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
57
|
-
"rollup-plugin-ts-paths": "^1.0.5",
|
|
58
|
-
"rollup-plugin-typescript2": "^0.31.1",
|
|
59
|
-
"sass": "^1.32.12",
|
|
60
|
-
"sirv-cli": "^1.0.11",
|
|
61
|
-
"svelte": "^3.46.2",
|
|
62
|
-
"svelte-check": "^1.5.2",
|
|
63
|
-
"svelte-preprocess": "^4.7.2",
|
|
64
|
-
"ts-json-schema-generator": "^0.98.0",
|
|
65
|
-
"ts-node": "^9.1.1",
|
|
66
|
-
"tslib": "^2.2.0",
|
|
67
|
-
"ttypescript": "^1.5.12",
|
|
68
|
-
"typescript": "^4.3.5",
|
|
69
|
-
"typescript-transform-paths": "^2.2.3",
|
|
70
|
-
"wc-js-utils": "^0.0.1"
|
|
71
|
-
},
|
|
72
|
-
"keywords": [
|
|
73
|
-
"svelte",
|
|
74
|
-
"svelte-webcomponents",
|
|
75
|
-
"webcomponents"
|
|
76
|
-
],
|
|
77
|
-
"contributors": [],
|
|
78
|
-
"dependencies": {
|
|
79
|
-
"@htmlbricks/hb-dialog": "^0.20.18",
|
|
80
|
-
"@htmlbricks/hb-dialogform": "^0.20.18",
|
|
81
|
-
"@htmlbricks/hb-form": "^0.20.18",
|
|
82
|
-
"@htmlbricks/hb-paginate": "^0.20.18",
|
|
83
|
-
"bootstrap-icons": "^1.5.0",
|
|
84
|
-
"dayjs": "^1.10.7"
|
|
85
|
-
},
|
|
86
|
-
"gitHead": "89b0885aff646abbcaebdf63ab8602aa87d3e218"
|
|
87
|
-
}
|
|
2
|
+
"name": "@htmlbricks/hb-table",
|
|
3
|
+
"version": "0.50.0-alpha.000",
|
|
4
|
+
"contributors": [],
|
|
5
|
+
"description": "",
|
|
6
|
+
"licenses": [
|
|
7
|
+
{
|
|
8
|
+
"type": "Apache-2.0",
|
|
9
|
+
"path": "LICENSE.md",
|
|
10
|
+
"cost": 0,
|
|
11
|
+
"currency": "EUR"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"main": "main.iife.js"
|
|
15
|
+
}
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Component",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"Component": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"actions": {
|
|
9
|
+
"items": {
|
|
10
|
+
"$ref": "#/definitions/IActionButton"
|
|
11
|
+
},
|
|
12
|
+
"type": "array"
|
|
13
|
+
},
|
|
14
|
+
"add_item": {
|
|
15
|
+
"type": "boolean"
|
|
16
|
+
},
|
|
17
|
+
"disablepagination": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"enableselect": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"externalfilter": {
|
|
24
|
+
"type": "boolean"
|
|
25
|
+
},
|
|
26
|
+
"headers": {
|
|
27
|
+
"items": {
|
|
28
|
+
"$ref": "#/definitions/ITableHeader"
|
|
29
|
+
},
|
|
30
|
+
"type": "array"
|
|
31
|
+
},
|
|
32
|
+
"id": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"page": {
|
|
36
|
+
"type": "number"
|
|
37
|
+
},
|
|
38
|
+
"pages": {
|
|
39
|
+
"type": "number"
|
|
40
|
+
},
|
|
41
|
+
"rows": {
|
|
42
|
+
"items": {
|
|
43
|
+
"$ref": "#/definitions/IRow"
|
|
44
|
+
},
|
|
45
|
+
"type": "array"
|
|
46
|
+
},
|
|
47
|
+
"selectactions": {
|
|
48
|
+
"items": {},
|
|
49
|
+
"type": "array"
|
|
50
|
+
},
|
|
51
|
+
"selectrow": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"size": {
|
|
55
|
+
"type": "number"
|
|
56
|
+
},
|
|
57
|
+
"style": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": [
|
|
62
|
+
"rows",
|
|
63
|
+
"headers"
|
|
64
|
+
],
|
|
65
|
+
"type": "object"
|
|
66
|
+
},
|
|
67
|
+
"FormSchema": {
|
|
68
|
+
"items": {
|
|
69
|
+
"$ref": "#/definitions/FormSchemaEntry"
|
|
70
|
+
},
|
|
71
|
+
"type": "array"
|
|
72
|
+
},
|
|
73
|
+
"FormSchemaEntry": {
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"properties": {
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"description": "This form control will show only if these dependencies are satisfied.",
|
|
78
|
+
"items": {
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"properties": {
|
|
81
|
+
"id": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"values": {
|
|
85
|
+
"items": {},
|
|
86
|
+
"type": "array"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": [
|
|
90
|
+
"id"
|
|
91
|
+
],
|
|
92
|
+
"type": "object"
|
|
93
|
+
},
|
|
94
|
+
"type": "array"
|
|
95
|
+
},
|
|
96
|
+
"id": {
|
|
97
|
+
"description": "This will be both the key of the object when submitting the form's data, and also the id in the DOM.",
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"label": {
|
|
101
|
+
"description": "The descriptive label that will show alongside the form control.",
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
"params": {
|
|
105
|
+
"description": "Other parameters that may be specific to a certain kind of form control.",
|
|
106
|
+
"type": "object"
|
|
107
|
+
},
|
|
108
|
+
"placeholder": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"readonly": {
|
|
112
|
+
"type": "boolean"
|
|
113
|
+
},
|
|
114
|
+
"required": {
|
|
115
|
+
"description": "This doesn't matter if the dependencies requirements aren't met.",
|
|
116
|
+
"type": "boolean"
|
|
117
|
+
},
|
|
118
|
+
"type": {
|
|
119
|
+
"description": "Identifies the component type that will be used, available default ones are: - text - number - email - select \t- radio - checkbox - textarea",
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"validationRegex": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"validationTip": {
|
|
126
|
+
"description": "Shows if value is not valid.",
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
"value": {
|
|
130
|
+
"description": "Optional default value.",
|
|
131
|
+
"type": [
|
|
132
|
+
"string",
|
|
133
|
+
"number",
|
|
134
|
+
"boolean"
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"required": [
|
|
139
|
+
"id",
|
|
140
|
+
"type"
|
|
141
|
+
],
|
|
142
|
+
"type": "object"
|
|
143
|
+
},
|
|
144
|
+
"IActionButton": {
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"properties": {
|
|
147
|
+
"btnClass": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"confirm": {
|
|
151
|
+
"additionalProperties": false,
|
|
152
|
+
"properties": {
|
|
153
|
+
"confirmLabel": {
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
"content": {
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
"denyLabel": {
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
"text": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"title": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"required": [
|
|
170
|
+
"title",
|
|
171
|
+
"confirmLabel",
|
|
172
|
+
"content"
|
|
173
|
+
],
|
|
174
|
+
"type": "object"
|
|
175
|
+
},
|
|
176
|
+
"disabled": {
|
|
177
|
+
"type": "boolean"
|
|
178
|
+
},
|
|
179
|
+
"edit": {
|
|
180
|
+
"additionalProperties": false,
|
|
181
|
+
"properties": {
|
|
182
|
+
"confirmLabel": {
|
|
183
|
+
"type": "string"
|
|
184
|
+
},
|
|
185
|
+
"denyLabel": {
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
"description": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"schema": {
|
|
192
|
+
"$ref": "#/definitions/FormSchema"
|
|
193
|
+
},
|
|
194
|
+
"text": {
|
|
195
|
+
"type": "string"
|
|
196
|
+
},
|
|
197
|
+
"title": {
|
|
198
|
+
"type": "string"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"required": [
|
|
202
|
+
"title",
|
|
203
|
+
"confirmLabel",
|
|
204
|
+
"schema"
|
|
205
|
+
],
|
|
206
|
+
"type": "object"
|
|
207
|
+
},
|
|
208
|
+
"iconOrText": {
|
|
209
|
+
"type": "string"
|
|
210
|
+
},
|
|
211
|
+
"name": {
|
|
212
|
+
"type": "string"
|
|
213
|
+
},
|
|
214
|
+
"type": {
|
|
215
|
+
"enum": [
|
|
216
|
+
"icon",
|
|
217
|
+
"text"
|
|
218
|
+
],
|
|
219
|
+
"type": "string"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"required": [
|
|
223
|
+
"name",
|
|
224
|
+
"type",
|
|
225
|
+
"iconOrText"
|
|
226
|
+
],
|
|
227
|
+
"type": "object"
|
|
228
|
+
},
|
|
229
|
+
"IRow": {
|
|
230
|
+
"additionalProperties": {
|
|
231
|
+
"anyOf": [
|
|
232
|
+
{
|
|
233
|
+
"type": "string"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"items": {
|
|
237
|
+
"$ref": "#/definitions/IActionButton"
|
|
238
|
+
},
|
|
239
|
+
"type": "array"
|
|
240
|
+
},
|
|
241
|
+
{}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
"properties": {
|
|
245
|
+
"_actions": {
|
|
246
|
+
"items": {
|
|
247
|
+
"$ref": "#/definitions/IActionButton"
|
|
248
|
+
},
|
|
249
|
+
"type": "array"
|
|
250
|
+
},
|
|
251
|
+
"_id": {
|
|
252
|
+
"type": "string"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"required": [
|
|
256
|
+
"_id"
|
|
257
|
+
],
|
|
258
|
+
"type": "object"
|
|
259
|
+
},
|
|
260
|
+
"ITableHeader": {
|
|
261
|
+
"additionalProperties": false,
|
|
262
|
+
"properties": {
|
|
263
|
+
"click": {
|
|
264
|
+
"type": "boolean"
|
|
265
|
+
},
|
|
266
|
+
"copyTxt": {
|
|
267
|
+
"type": "boolean"
|
|
268
|
+
},
|
|
269
|
+
"format": {
|
|
270
|
+
"type": "string"
|
|
271
|
+
},
|
|
272
|
+
"key": {
|
|
273
|
+
"type": "string"
|
|
274
|
+
},
|
|
275
|
+
"label": {
|
|
276
|
+
"type": "string"
|
|
277
|
+
},
|
|
278
|
+
"nosort": {
|
|
279
|
+
"type": "boolean"
|
|
280
|
+
},
|
|
281
|
+
"search": {
|
|
282
|
+
"type": "boolean"
|
|
283
|
+
},
|
|
284
|
+
"select": {
|
|
285
|
+
"items": {
|
|
286
|
+
"type": "string"
|
|
287
|
+
},
|
|
288
|
+
"type": "array"
|
|
289
|
+
},
|
|
290
|
+
"sortBy": {
|
|
291
|
+
"enum": [
|
|
292
|
+
"asc",
|
|
293
|
+
"desc",
|
|
294
|
+
"none"
|
|
295
|
+
],
|
|
296
|
+
"type": "string"
|
|
297
|
+
},
|
|
298
|
+
"truncateAt": {
|
|
299
|
+
"type": "number"
|
|
300
|
+
},
|
|
301
|
+
"type": {
|
|
302
|
+
"enum": [
|
|
303
|
+
"datetime",
|
|
304
|
+
"string",
|
|
305
|
+
"enum",
|
|
306
|
+
"actions",
|
|
307
|
+
"number"
|
|
308
|
+
],
|
|
309
|
+
"type": "string"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"required": [
|
|
313
|
+
"label",
|
|
314
|
+
"key"
|
|
315
|
+
],
|
|
316
|
+
"type": "object"
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|