@htmlbricks/hb-form 0.66.26 → 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/manifest.json CHANGED
@@ -52,6 +52,13 @@
52
52
  ],
53
53
  "type": "object"
54
54
  },
55
+ "submitinvalid": {
56
+ "additionalProperties": {
57
+ "not": {}
58
+ },
59
+ "description": "Fired when validation fails after a submit attempt (including `submitted=\"yes\"`).",
60
+ "type": "object"
61
+ },
55
62
  "update": {
56
63
  "additionalProperties": false,
57
64
  "properties": {
@@ -81,6 +88,7 @@
81
88
  }
82
89
  },
83
90
  "required": [
91
+ "submitinvalid",
84
92
  "submit",
85
93
  "getValues",
86
94
  "update"
@@ -269,6 +277,9 @@
269
277
  "submit": {
270
278
  "action": "submit"
271
279
  },
280
+ "submitinvalid": {
281
+ "action": "submitinvalid"
282
+ },
272
283
  "getValues": {
273
284
  "action": "getValues"
274
285
  },
@@ -756,7 +767,131 @@
756
767
  }
757
768
  }
758
769
  ],
759
- "iifeIntegrity": "sha384-Hk+nLo4vgvS24T/hdIzJFdyOu+zl0M1AsIcMY4pT/6SFTyQjlvUSwkbdNZBOktyn",
770
+ "iifeIntegrity": "sha384-a9OMf0qOtnVRf7KAOphkAVRqHvSwn2bab/w8aYw406pp6tmkiOBRQVOPJ9M6fQvd",
771
+ "dependencies": [
772
+ {
773
+ "name": "hb-input-area",
774
+ "dependencies": []
775
+ },
776
+ {
777
+ "name": "hb-input-array-objects",
778
+ "dependencies": [
779
+ {
780
+ "name": "hb-form",
781
+ "dependencies": []
782
+ },
783
+ {
784
+ "name": "hb-table",
785
+ "dependencies": [
786
+ {
787
+ "name": "hb-dialog",
788
+ "dependencies": []
789
+ },
790
+ {
791
+ "name": "hb-dialogform",
792
+ "dependencies": [
793
+ {
794
+ "name": "hb-dialog",
795
+ "dependencies": []
796
+ },
797
+ {
798
+ "name": "hb-form",
799
+ "dependencies": []
800
+ }
801
+ ]
802
+ },
803
+ {
804
+ "name": "hb-paginate",
805
+ "dependencies": [
806
+ {
807
+ "name": "hb-input-number",
808
+ "dependencies": []
809
+ },
810
+ {
811
+ "name": "hb-input-select",
812
+ "dependencies": []
813
+ }
814
+ ]
815
+ },
816
+ {
817
+ "name": "hb-tooltip",
818
+ "dependencies": []
819
+ }
820
+ ]
821
+ }
822
+ ]
823
+ },
824
+ {
825
+ "name": "hb-input-array-tags",
826
+ "dependencies": []
827
+ },
828
+ {
829
+ "name": "hb-input-checkbox",
830
+ "dependencies": []
831
+ },
832
+ {
833
+ "name": "hb-input-color",
834
+ "dependencies": []
835
+ },
836
+ {
837
+ "name": "hb-input-coords",
838
+ "dependencies": [
839
+ {
840
+ "name": "hb-input-number",
841
+ "dependencies": []
842
+ },
843
+ {
844
+ "name": "hb-map",
845
+ "dependencies": []
846
+ }
847
+ ]
848
+ },
849
+ {
850
+ "name": "hb-input-date",
851
+ "dependencies": []
852
+ },
853
+ {
854
+ "name": "hb-input-datetime",
855
+ "dependencies": [
856
+ {
857
+ "name": "hb-input-date",
858
+ "dependencies": []
859
+ },
860
+ {
861
+ "name": "hb-input-number",
862
+ "dependencies": []
863
+ }
864
+ ]
865
+ },
866
+ {
867
+ "name": "hb-input-email",
868
+ "dependencies": []
869
+ },
870
+ {
871
+ "name": "hb-input-file",
872
+ "dependencies": []
873
+ },
874
+ {
875
+ "name": "hb-input-number",
876
+ "dependencies": []
877
+ },
878
+ {
879
+ "name": "hb-input-radio",
880
+ "dependencies": []
881
+ },
882
+ {
883
+ "name": "hb-input-range",
884
+ "dependencies": []
885
+ },
886
+ {
887
+ "name": "hb-input-select",
888
+ "dependencies": []
889
+ },
890
+ {
891
+ "name": "hb-input-text",
892
+ "dependencies": []
893
+ }
894
+ ],
760
895
  "screenshots": [],
761
896
  "licenses": [
762
897
  {
@@ -775,5 +910,5 @@
775
910
  "size": {},
776
911
  "iifePath": "main.iife.js",
777
912
  "repoName": "@htmlbricks/hb-form",
778
- "version": "0.66.26"
913
+ "version": "0.67.0"
779
914
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-form",
3
- "version": "0.66.26",
3
+ "version": "0.67.0",
4
4
  "contributors": [],
5
5
  "description": "JSON `schema`-driven form engine: each entry’s `type` maps to an `hb-input-*` web component (text, select, date, file, arrays, coords, etc.) or layout `row`. Handles grouping, conditional visibility, validation messages, disabled state, and dispatches rich `update` payloads (field values + `_valid`) plus submit lifecycle events for programmatic backends.",
6
6
  "licenses": [
@@ -116,6 +116,8 @@ export type Component = {
116
116
  };
117
117
 
118
118
  export type Events = {
119
+ /** Fired when validation fails after a submit attempt (including `submitted="yes"`). */
120
+ submitinvalid: Record<string, never>;
119
121
  submit: Record<string, string | number | boolean> & {
120
122
  _valid: boolean;
121
123
  _id: string;
@@ -50,6 +50,13 @@
50
50
  ],
51
51
  "type": "object"
52
52
  },
53
+ "submitinvalid": {
54
+ "additionalProperties": {
55
+ "not": {}
56
+ },
57
+ "description": "Fired when validation fails after a submit attempt (including `submitted=\"yes\"`).",
58
+ "type": "object"
59
+ },
53
60
  "update": {
54
61
  "additionalProperties": false,
55
62
  "properties": {
@@ -79,6 +86,7 @@
79
86
  }
80
87
  },
81
88
  "required": [
89
+ "submitinvalid",
82
90
  "submit",
83
91
  "getValues",
84
92
  "update"