@openg2p/registry-widgets 1.1.0 → 1.1.1

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.
@@ -371,6 +371,18 @@ export declare const panelSchema: {
371
371
  maxDate: {
372
372
  type: "string";
373
373
  };
374
+ minDateField: {
375
+ type: "string";
376
+ };
377
+ maxDateField: {
378
+ type: "string";
379
+ };
380
+ minDateMessage: {
381
+ type: "string";
382
+ };
383
+ maxDateMessage: {
384
+ type: "string";
385
+ };
374
386
  showCalendar: {
375
387
  type: "boolean";
376
388
  };
@@ -835,6 +847,18 @@ export declare const panelSchema: {
835
847
  maxDate: {
836
848
  type: "string";
837
849
  };
850
+ minDateField: {
851
+ type: "string";
852
+ };
853
+ maxDateField: {
854
+ type: "string";
855
+ };
856
+ minDateMessage: {
857
+ type: "string";
858
+ };
859
+ maxDateMessage: {
860
+ type: "string";
861
+ };
838
862
  showCalendar: {
839
863
  type: "boolean";
840
864
  };
@@ -1362,6 +1386,18 @@ export declare const sectionSchema: {
1362
1386
  maxDate: {
1363
1387
  type: "string";
1364
1388
  };
1389
+ minDateField: {
1390
+ type: "string";
1391
+ };
1392
+ maxDateField: {
1393
+ type: "string";
1394
+ };
1395
+ minDateMessage: {
1396
+ type: "string";
1397
+ };
1398
+ maxDateMessage: {
1399
+ type: "string";
1400
+ };
1365
1401
  showCalendar: {
1366
1402
  type: "boolean";
1367
1403
  };
@@ -1826,6 +1862,18 @@ export declare const sectionSchema: {
1826
1862
  maxDate: {
1827
1863
  type: "string";
1828
1864
  };
1865
+ minDateField: {
1866
+ type: "string";
1867
+ };
1868
+ maxDateField: {
1869
+ type: "string";
1870
+ };
1871
+ minDateMessage: {
1872
+ type: "string";
1873
+ };
1874
+ maxDateMessage: {
1875
+ type: "string";
1876
+ };
1829
1877
  showCalendar: {
1830
1878
  type: "boolean";
1831
1879
  };
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/components/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  booleanFalseLabel?: string;
148
+ /** Label for null/unset when allowUnset (radio, toggle); defaults to "Not set" */
149
+ booleanUnsetLabel?: string;
148
150
  allowUnset?: boolean;
149
151
  layout?: 'vertical' | 'horizontal' | 'grid';
150
152
  sortOptions?: boolean;
@@ -173,6 +175,10 @@ interface WidgetOptions {
173
175
  condition?: WidgetCondition;
174
176
  minDate?: string;
175
177
  maxDate?: string;
178
+ minDateField?: string;
179
+ maxDateField?: string;
180
+ minDateMessage?: string;
181
+ maxDateMessage?: string;
176
182
  showCalendar?: boolean;
177
183
  [key: string]: any;
178
184
  }
@@ -976,6 +982,7 @@ declare const BooleanWidget: ({ config }: BooleanWidgetProps) => react_jsx_runti
976
982
  * - Configurable date format (DD/MM/YYYY, MM/DD/YYYY, YYYY-MM-DD, etc.)
977
983
  * - Default value (none / today)
978
984
  * - Date constraints (minDate, maxDate, any/past only/future only)
985
+ * - Relative bounds via minDateField / maxDateField (e.g. end date >= start date)
979
986
  * - Required vs optional
980
987
  * - Input method (date picker / manual / hybrid)
981
988
  * - Placeholder text
@@ -998,6 +1005,10 @@ declare const BooleanWidget: ({ config }: BooleanWidgetProps) => react_jsx_runti
998
1005
  * "widget-data-options": {
999
1006
  * "minDate": "1900-01-01",
1000
1007
  * "maxDate": "today"
1008
+ * "minDateField": "register.start_date",
1009
+ * "minDateMessage": "Date of birth must be on or after 1900-01-01"
1010
+ * "maxDateField": "register.end_date",
1011
+ * "maxDateMessage": "Date of birth must be on or before today"
1001
1012
  * },
1002
1013
  * "widget-data-validation": {},
1003
1014
  * "widget-required": true,