@htmlbricks/hb-dialogform 0.71.35 → 0.71.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/manifest.json CHANGED
@@ -103,7 +103,15 @@
103
103
  "type": "string"
104
104
  },
105
105
  "schema": {
106
- "$ref": "#/definitions/FormSchema"
106
+ "anyOf": [
107
+ {
108
+ "type": "string"
109
+ },
110
+ {
111
+ "$ref": "#/definitions/FormSchema"
112
+ }
113
+ ],
114
+ "description": "From HTML: JSON string parsed in `$effect`; may be an object when set from JavaScript."
107
115
  },
108
116
  "show": {
109
117
  "enum": [
@@ -119,9 +127,6 @@
119
127
  "type": "string"
120
128
  }
121
129
  },
122
- "required": [
123
- "schema"
124
- ],
125
130
  "type": "object"
126
131
  },
127
132
  "FormSchema": {
@@ -280,31 +285,63 @@
280
285
  }
281
286
  },
282
287
  "styleSetup": {
283
- "vars": [],
288
+ "vars": [
289
+ {
290
+ "name": "--hb-modal-max-width",
291
+ "valueType": "number",
292
+ "defaultValue": "40rem",
293
+ "description": "Passed through to the inner dialog card max width."
294
+ },
295
+ {
296
+ "name": "--bulma-modal-card-head-padding",
297
+ "valueType": "text",
298
+ "defaultValue": "1rem 1.25rem",
299
+ "description": "Modal header padding (inner `hb-dialog`)."
300
+ },
301
+ {
302
+ "name": "--bulma-modal-card-body-padding",
303
+ "valueType": "text",
304
+ "defaultValue": "1rem 1.25rem",
305
+ "description": "Modal body padding; affects the area wrapping `hb-form`."
306
+ },
307
+ {
308
+ "name": "--bulma-column-gap",
309
+ "valueType": "number",
310
+ "defaultValue": "0.75rem",
311
+ "description": "Typical form layout gap from nested `hb-form` (set on host to tune field spacing)."
312
+ }
313
+ ],
284
314
  "parts": []
285
315
  },
286
316
  "contributors": [],
287
317
  "htmlSlots": [
288
318
  {
289
- "name": "form-header"
319
+ "name": "form-header",
320
+ "description": "Optional markup above the generated `hb-form` inside the modal body."
290
321
  },
291
322
  {
292
- "name": "form-footer"
323
+ "name": "form-footer",
324
+ "description": "Optional markup below the generated `hb-form` inside the modal body."
293
325
  },
294
326
  {
295
- "name": "header"
327
+ "name": "header",
328
+ "description": "Forwarded to `hb-dialog` when provided; replaces the default modal head."
296
329
  },
297
330
  {
298
- "name": "modal-footer"
331
+ "name": "modal-footer",
332
+ "description": "Forwarded to `hb-dialog` to replace the entire modal footer region."
299
333
  },
300
334
  {
301
- "name": "footer"
335
+ "name": "footer",
336
+ "description": "Forwarded to `hb-dialog` default footer slot (button row)."
302
337
  },
303
338
  {
304
- "name": "close-button-label"
339
+ "name": "close-button-label",
340
+ "description": "Forwarded to `hb-dialog` close button label slot."
305
341
  },
306
342
  {
307
- "name": "confirm-button-label"
343
+ "name": "confirm-button-label",
344
+ "description": "Forwarded to `hb-dialog` confirm button label slot."
308
345
  }
309
346
  ],
310
347
  "i18n": [],
@@ -473,7 +510,7 @@
473
510
  }
474
511
  }
475
512
  ],
476
- "iifeIntegrity": "sha384-nuPHlKQWQPsWZmM5VLW3ybub/RPk97ONIrE+++TiabphlH7VMQ2DD+VIYFjFuEw5",
513
+ "iifeIntegrity": "sha384-uEdJJSvenPN4XA/E67LKpLDfjupuz5Yjxrl74wbOOwTxZsgxbLUNtLYAMSzYsVgs",
477
514
  "dependencies": [
478
515
  {
479
516
  "name": "hb-dialog",
@@ -617,5 +654,5 @@
617
654
  "size": {},
618
655
  "iifePath": "main.iife.js",
619
656
  "repoName": "@htmlbricks/hb-dialogform",
620
- "version": "0.71.35"
657
+ "version": "0.71.37"
621
658
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-dialogform",
3
- "version": "0.71.35",
3
+ "version": "0.71.37",
4
4
  "contributors": [],
5
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": [
@@ -33,7 +33,15 @@
33
33
  "type": "string"
34
34
  },
35
35
  "schema": {
36
- "$ref": "#/definitions/FormSchema"
36
+ "anyOf": [
37
+ {
38
+ "type": "string"
39
+ },
40
+ {
41
+ "$ref": "#/definitions/FormSchema"
42
+ }
43
+ ],
44
+ "description": "From HTML: JSON string parsed in `$effect`; may be an object when set from JavaScript."
37
45
  },
38
46
  "show": {
39
47
  "enum": [
@@ -49,9 +57,6 @@
49
57
  "type": "string"
50
58
  }
51
59
  },
52
- "required": [
53
- "schema"
54
- ],
55
60
  "type": "object"
56
61
  },
57
62
  "FormSchema": {
@@ -16,7 +16,7 @@ export type Component = {
16
16
  content?: string;
17
17
  closelabel?: string;
18
18
  confirmlabel?: string;
19
- schema: FormComponent["schema"];
19
+ schema?: FormComponent["schema"];
20
20
  };
21
21
 
22
22
  export type Events = {