@htmlbricks/hb-dialogform 0.66.27 → 0.67.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/README.md +5 -6
- package/main.iife.js +2 -1
- package/main.iife.js.map +1 -1
- package/manifest.json +172 -46
- package/package.json +2 -2
- package/types/webcomponent.type.d.json +0 -3
- package/types/webcomponent.type.d.ts +2 -2
- package/types/webcomponent_events.type.d.json +29 -28
package/manifest.json
CHANGED
|
@@ -7,33 +7,6 @@
|
|
|
7
7
|
"Events": {
|
|
8
8
|
"additionalProperties": false,
|
|
9
9
|
"properties": {
|
|
10
|
-
"changeForm": {
|
|
11
|
-
"additionalProperties": false,
|
|
12
|
-
"properties": {
|
|
13
|
-
"_id": {
|
|
14
|
-
"type": "string"
|
|
15
|
-
},
|
|
16
|
-
"_valid": {
|
|
17
|
-
"type": "boolean"
|
|
18
|
-
},
|
|
19
|
-
"values": {
|
|
20
|
-
"additionalProperties": {
|
|
21
|
-
"type": [
|
|
22
|
-
"string",
|
|
23
|
-
"number",
|
|
24
|
-
"boolean"
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
"type": "object"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"required": [
|
|
31
|
-
"_valid",
|
|
32
|
-
"_id",
|
|
33
|
-
"values"
|
|
34
|
-
],
|
|
35
|
-
"type": "object"
|
|
36
|
-
},
|
|
37
10
|
"modalFormCancel": {
|
|
38
11
|
"additionalProperties": false,
|
|
39
12
|
"properties": {
|
|
@@ -68,13 +41,41 @@
|
|
|
68
41
|
"show"
|
|
69
42
|
],
|
|
70
43
|
"type": "object"
|
|
44
|
+
},
|
|
45
|
+
"updateForm": {
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"description": "Emitted when the inner `hb-form` updates (same detail shape as `hb-form` `update`).",
|
|
48
|
+
"properties": {
|
|
49
|
+
"_id": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"_valid": {
|
|
53
|
+
"type": "boolean"
|
|
54
|
+
},
|
|
55
|
+
"values": {
|
|
56
|
+
"additionalProperties": {
|
|
57
|
+
"type": [
|
|
58
|
+
"string",
|
|
59
|
+
"number",
|
|
60
|
+
"boolean"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"type": "object"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"_valid",
|
|
68
|
+
"_id",
|
|
69
|
+
"values"
|
|
70
|
+
],
|
|
71
|
+
"type": "object"
|
|
71
72
|
}
|
|
72
73
|
},
|
|
73
74
|
"required": [
|
|
74
75
|
"modalFormConfirm",
|
|
75
76
|
"modalShow",
|
|
76
77
|
"modalFormCancel",
|
|
77
|
-
"
|
|
78
|
+
"updateForm"
|
|
78
79
|
],
|
|
79
80
|
"type": "object"
|
|
80
81
|
}
|
|
@@ -108,9 +109,6 @@
|
|
|
108
109
|
"id": {
|
|
109
110
|
"type": "string"
|
|
110
111
|
},
|
|
111
|
-
"ignoreBackdrop": {
|
|
112
|
-
"type": "boolean"
|
|
113
|
-
},
|
|
114
112
|
"keyboard": {
|
|
115
113
|
"type": "boolean"
|
|
116
114
|
},
|
|
@@ -214,8 +212,13 @@
|
|
|
214
212
|
}
|
|
215
213
|
}
|
|
216
214
|
},
|
|
217
|
-
"description": "
|
|
215
|
+
"description": "Bulma-based modal workflow: embeds `hb-form` with the same `schema` contract; live `updateForm` events mirror form validity and values, and the confirm button dispatches `modalFormConfirm` with the last valid payload or `modalFormCancel` when dismissed or invalid. Composes `hb-dialog` (Bulma modal, backdrop/keyboard, `show`) and re-dispatches `modalShow`. Prop `dialogclasses` exists on the type but is not wired to the dialog markup yet.",
|
|
218
216
|
"storybookArgs": {
|
|
217
|
+
"id": {
|
|
218
|
+
"control": {
|
|
219
|
+
"type": "text"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
219
222
|
"schema": {
|
|
220
223
|
"control": {
|
|
221
224
|
"type": "object"
|
|
@@ -226,7 +229,7 @@
|
|
|
226
229
|
"type": "boolean"
|
|
227
230
|
}
|
|
228
231
|
},
|
|
229
|
-
"
|
|
232
|
+
"dialogclasses": {
|
|
230
233
|
"control": {
|
|
231
234
|
"type": "text"
|
|
232
235
|
}
|
|
@@ -241,11 +244,6 @@
|
|
|
241
244
|
"type": "boolean"
|
|
242
245
|
}
|
|
243
246
|
},
|
|
244
|
-
"ignoreBackdrop": {
|
|
245
|
-
"control": {
|
|
246
|
-
"type": "text"
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
247
|
"keyboard": {
|
|
250
248
|
"control": {
|
|
251
249
|
"type": "boolean"
|
|
@@ -279,8 +277,8 @@
|
|
|
279
277
|
"modalShow": {
|
|
280
278
|
"action": "modalShow"
|
|
281
279
|
},
|
|
282
|
-
"
|
|
283
|
-
"action": "
|
|
280
|
+
"updateForm": {
|
|
281
|
+
"action": "updateForm"
|
|
284
282
|
},
|
|
285
283
|
"modalFormConfirm": {
|
|
286
284
|
"action": "modalFormConfirm"
|
|
@@ -348,7 +346,7 @@
|
|
|
348
346
|
"validationTip": "Min 8, Max 120"
|
|
349
347
|
},
|
|
350
348
|
{
|
|
351
|
-
"
|
|
349
|
+
"id": "active",
|
|
352
350
|
"label": "Active",
|
|
353
351
|
"type": "checkbox",
|
|
354
352
|
"value": true
|
|
@@ -358,7 +356,8 @@
|
|
|
358
356
|
}
|
|
359
357
|
},
|
|
360
358
|
{
|
|
361
|
-
"name": "
|
|
359
|
+
"name": "with_title",
|
|
360
|
+
"description": "Same schema with dialog title and labels.",
|
|
362
361
|
"data": {
|
|
363
362
|
"schema": [
|
|
364
363
|
{
|
|
@@ -386,17 +385,144 @@
|
|
|
386
385
|
"validationTip": "Min 8, Max 120"
|
|
387
386
|
},
|
|
388
387
|
{
|
|
389
|
-
"
|
|
388
|
+
"id": "active",
|
|
390
389
|
"label": "Active",
|
|
391
390
|
"type": "checkbox",
|
|
392
391
|
"value": true
|
|
393
392
|
}
|
|
394
393
|
],
|
|
395
|
-
"show": "yes"
|
|
394
|
+
"show": "yes",
|
|
395
|
+
"title": "Edit preferences",
|
|
396
|
+
"confirmlabel": "Save",
|
|
397
|
+
"closelabel": "Cancel"
|
|
396
398
|
}
|
|
397
399
|
}
|
|
398
400
|
],
|
|
399
|
-
"iifeIntegrity": "sha384-
|
|
401
|
+
"iifeIntegrity": "sha384-knIyDf953MzLTMqZaC230ytbZtHfA7PtFfeYbU6hOi/kDUe9LampWgWG37wTKvBT",
|
|
402
|
+
"dependencies": [
|
|
403
|
+
{
|
|
404
|
+
"name": "hb-dialog",
|
|
405
|
+
"dependencies": []
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "hb-form",
|
|
409
|
+
"dependencies": [
|
|
410
|
+
{
|
|
411
|
+
"name": "hb-input-area",
|
|
412
|
+
"dependencies": []
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"name": "hb-input-array-objects",
|
|
416
|
+
"dependencies": [
|
|
417
|
+
{
|
|
418
|
+
"name": "hb-form",
|
|
419
|
+
"dependencies": []
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"name": "hb-table",
|
|
423
|
+
"dependencies": [
|
|
424
|
+
{
|
|
425
|
+
"name": "hb-dialog",
|
|
426
|
+
"dependencies": []
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"name": "hb-dialogform",
|
|
430
|
+
"dependencies": []
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"name": "hb-paginate",
|
|
434
|
+
"dependencies": [
|
|
435
|
+
{
|
|
436
|
+
"name": "hb-input-number",
|
|
437
|
+
"dependencies": []
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "hb-input-select",
|
|
441
|
+
"dependencies": []
|
|
442
|
+
}
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "hb-tooltip",
|
|
447
|
+
"dependencies": []
|
|
448
|
+
}
|
|
449
|
+
]
|
|
450
|
+
}
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"name": "hb-input-array-tags",
|
|
455
|
+
"dependencies": []
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "hb-input-checkbox",
|
|
459
|
+
"dependencies": []
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "hb-input-color",
|
|
463
|
+
"dependencies": []
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "hb-input-coords",
|
|
467
|
+
"dependencies": [
|
|
468
|
+
{
|
|
469
|
+
"name": "hb-input-number",
|
|
470
|
+
"dependencies": []
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "hb-map",
|
|
474
|
+
"dependencies": []
|
|
475
|
+
}
|
|
476
|
+
]
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "hb-input-date",
|
|
480
|
+
"dependencies": []
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"name": "hb-input-datetime",
|
|
484
|
+
"dependencies": [
|
|
485
|
+
{
|
|
486
|
+
"name": "hb-input-date",
|
|
487
|
+
"dependencies": []
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "hb-input-number",
|
|
491
|
+
"dependencies": []
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "hb-input-email",
|
|
497
|
+
"dependencies": []
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"name": "hb-input-file",
|
|
501
|
+
"dependencies": []
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"name": "hb-input-number",
|
|
505
|
+
"dependencies": []
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"name": "hb-input-radio",
|
|
509
|
+
"dependencies": []
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"name": "hb-input-range",
|
|
513
|
+
"dependencies": []
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "hb-input-select",
|
|
517
|
+
"dependencies": []
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "hb-input-text",
|
|
521
|
+
"dependencies": []
|
|
522
|
+
}
|
|
523
|
+
]
|
|
524
|
+
}
|
|
525
|
+
],
|
|
400
526
|
"screenshots": [],
|
|
401
527
|
"licenses": [
|
|
402
528
|
{
|
|
@@ -416,5 +542,5 @@
|
|
|
416
542
|
"size": {},
|
|
417
543
|
"iifePath": "main.iife.js",
|
|
418
544
|
"repoName": "@htmlbricks/hb-dialogform",
|
|
419
|
-
"version": "0.
|
|
545
|
+
"version": "0.67.0"
|
|
420
546
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-dialogform",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.67.0",
|
|
4
4
|
"contributors": [],
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Bulma-based modal workflow: embeds `hb-form` with the same `schema` contract; live `updateForm` events mirror form validity and values, and the confirm button dispatches `modalFormConfirm` with the last valid payload or `modalFormCancel` when dismissed or invalid. Composes `hb-dialog` (Bulma modal, backdrop/keyboard, `show`) and re-dispatches `modalShow`. Prop `dialogclasses` exists on the type but is not wired to the dialog markup yet.",
|
|
6
6
|
"licenses": [
|
|
7
7
|
{
|
|
8
8
|
"type": "Apache-2.0",
|
|
@@ -10,7 +10,6 @@ export type Component = {
|
|
|
10
10
|
dialogclasses?: string;
|
|
11
11
|
title?: string;
|
|
12
12
|
backdrop?: boolean;
|
|
13
|
-
ignoreBackdrop?: boolean;
|
|
14
13
|
keyboard?: boolean;
|
|
15
14
|
describedby?: string;
|
|
16
15
|
labelledby?: string;
|
|
@@ -24,5 +23,6 @@ export type Events = {
|
|
|
24
23
|
modalFormConfirm: { [key: string]: any };
|
|
25
24
|
modalShow: { id: string; show: true };
|
|
26
25
|
modalFormCancel: { id: string; error?: string };
|
|
27
|
-
|
|
26
|
+
/** Emitted when the inner `hb-form` updates (same detail shape as `hb-form` `update`). */
|
|
27
|
+
updateForm: FormEvents["update"];
|
|
28
28
|
};
|
|
@@ -5,33 +5,6 @@
|
|
|
5
5
|
"Events": {
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"properties": {
|
|
8
|
-
"changeForm": {
|
|
9
|
-
"additionalProperties": false,
|
|
10
|
-
"properties": {
|
|
11
|
-
"_id": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
|
-
"_valid": {
|
|
15
|
-
"type": "boolean"
|
|
16
|
-
},
|
|
17
|
-
"values": {
|
|
18
|
-
"additionalProperties": {
|
|
19
|
-
"type": [
|
|
20
|
-
"string",
|
|
21
|
-
"number",
|
|
22
|
-
"boolean"
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
"type": "object"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"required": [
|
|
29
|
-
"_valid",
|
|
30
|
-
"_id",
|
|
31
|
-
"values"
|
|
32
|
-
],
|
|
33
|
-
"type": "object"
|
|
34
|
-
},
|
|
35
8
|
"modalFormCancel": {
|
|
36
9
|
"additionalProperties": false,
|
|
37
10
|
"properties": {
|
|
@@ -66,13 +39,41 @@
|
|
|
66
39
|
"show"
|
|
67
40
|
],
|
|
68
41
|
"type": "object"
|
|
42
|
+
},
|
|
43
|
+
"updateForm": {
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"description": "Emitted when the inner `hb-form` updates (same detail shape as `hb-form` `update`).",
|
|
46
|
+
"properties": {
|
|
47
|
+
"_id": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"_valid": {
|
|
51
|
+
"type": "boolean"
|
|
52
|
+
},
|
|
53
|
+
"values": {
|
|
54
|
+
"additionalProperties": {
|
|
55
|
+
"type": [
|
|
56
|
+
"string",
|
|
57
|
+
"number",
|
|
58
|
+
"boolean"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"type": "object"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": [
|
|
65
|
+
"_valid",
|
|
66
|
+
"_id",
|
|
67
|
+
"values"
|
|
68
|
+
],
|
|
69
|
+
"type": "object"
|
|
69
70
|
}
|
|
70
71
|
},
|
|
71
72
|
"required": [
|
|
72
73
|
"modalFormConfirm",
|
|
73
74
|
"modalShow",
|
|
74
75
|
"modalFormCancel",
|
|
75
|
-
"
|
|
76
|
+
"updateForm"
|
|
76
77
|
],
|
|
77
78
|
"type": "object"
|
|
78
79
|
}
|