@wix/forms 1.0.135 → 1.0.136

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.
@@ -561,12 +561,15 @@ interface StringTypePhoneConstraints$1 {
561
561
  allowedCountryCodes?: string[];
562
562
  }
563
563
  declare enum StringComponentType$1 {
564
- UNKNOWN = "UNKNOWN",
564
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
565
565
  TEXT_INPUT = "TEXT_INPUT",
566
566
  RADIO_GROUP = "RADIO_GROUP",
567
567
  DROPDOWN = "DROPDOWN",
568
568
  DATE_TIME = "DATE_TIME",
569
- PHONE_INPUT = "PHONE_INPUT"
569
+ PHONE_INPUT = "PHONE_INPUT",
570
+ DATE_INPUT = "DATE_INPUT",
571
+ TIME_INPUT = "TIME_INPUT",
572
+ DATE_PICKER = "DATE_PICKER"
570
573
  }
571
574
  interface TextInput$1 {
572
575
  /** Label of the field */
@@ -1911,7 +1914,7 @@ interface DateTimeInputDateTimeInputTypeOptionsOneOf$1 {
1911
1914
  /** Options specific to date picker type. */
1912
1915
  datePickerOptions?: DatePickerOptions$1;
1913
1916
  }
1914
- declare enum FirstDayOfWeek$1 {
1917
+ declare enum FirstDayOfWeekEnumFirstDayOfWeek$1 {
1915
1918
  MONDAY = "MONDAY",
1916
1919
  SUNDAY = "SUNDAY"
1917
1920
  }
@@ -1944,7 +1947,7 @@ interface TimeOptions$1 {
1944
1947
  }
1945
1948
  interface DatePickerOptions$1 {
1946
1949
  /** First day of the week displayed on date picker. */
1947
- firstDayOfWeek?: FirstDayOfWeek$1;
1950
+ firstDayOfWeek?: FirstDayOfWeekEnumFirstDayOfWeek$1;
1948
1951
  }
1949
1952
  interface PhoneInput$1 {
1950
1953
  /** Label of the field */
@@ -1961,6 +1964,62 @@ interface PhoneInput$1 {
1961
1964
  /** Default value of the country code */
1962
1965
  defaultCountryCode?: string | null;
1963
1966
  }
1967
+ interface DateInput$1 {
1968
+ /** Label of the field. Displayed text for the date/time input. */
1969
+ label?: string | null;
1970
+ /** Description of the field. Additional information about the date/time input. */
1971
+ description?: RichContent$1;
1972
+ /**
1973
+ * Flag identifying whether to show or hide the label.
1974
+ * Default: true
1975
+ */
1976
+ showLabel?: boolean | null;
1977
+ /**
1978
+ * Flag identifying whether to show or hide the placeholder.
1979
+ * Default: true
1980
+ */
1981
+ showPlaceholder?: boolean | null;
1982
+ }
1983
+ interface TimeInput$1 {
1984
+ /** Label of the field. Displayed text for the date/time input. */
1985
+ label?: string | null;
1986
+ /** Description of the field. Additional information about the date/time input. */
1987
+ description?: RichContent$1;
1988
+ /**
1989
+ * Flag identifying whether to show or hide the label.
1990
+ * Default: true
1991
+ */
1992
+ showLabel?: boolean | null;
1993
+ /**
1994
+ * Flag identifying whether to show or hide the placeholder.
1995
+ * Default: true
1996
+ */
1997
+ showPlaceholder?: boolean | null;
1998
+ /**
1999
+ * Flag indicating whether to use the 24-hour time format.
2000
+ * Default: false.
2001
+ */
2002
+ use24HourFormat?: boolean;
2003
+ }
2004
+ interface DatePicker$1 {
2005
+ /** Label of the field. Displayed text for the date/time input. */
2006
+ label?: string | null;
2007
+ /** Description of the field. Additional information about the date/time input. */
2008
+ description?: RichContent$1;
2009
+ /**
2010
+ * Flag identifying whether to show or hide the label.
2011
+ * Default: true
2012
+ */
2013
+ showLabel?: boolean | null;
2014
+ /** Placeholder of date picker input */
2015
+ placeholder?: string | null;
2016
+ /** First day of the week displayed on date picker. */
2017
+ firstDayOfWeek?: FirstDayOfWeek$1;
2018
+ }
2019
+ declare enum FirstDayOfWeek$1 {
2020
+ MONDAY = "MONDAY",
2021
+ SUNDAY = "SUNDAY"
2022
+ }
1964
2023
  interface InputFieldNumberType$1 {
1965
2024
  /** Inclusive maximum value. */
1966
2025
  maximum?: number | null;
@@ -1978,7 +2037,7 @@ interface InputFieldNumberErrorMessages$1 {
1978
2037
  default?: string | null;
1979
2038
  }
1980
2039
  declare enum NumberComponentType$1 {
1981
- UNKNOWN = "UNKNOWN",
2040
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
1982
2041
  NUMBER_INPUT = "NUMBER_INPUT",
1983
2042
  RATING_INPUT = "RATING_INPUT"
1984
2043
  }
@@ -2019,7 +2078,7 @@ interface InputFieldBooleanErrorMessages$1 {
2019
2078
  default?: string | null;
2020
2079
  }
2021
2080
  declare enum BooleanComponentType$1 {
2022
- UNKNOWN = "UNKNOWN",
2081
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
2023
2082
  CHECKBOX = "CHECKBOX"
2024
2083
  }
2025
2084
  interface Checkbox$1 {
@@ -2042,7 +2101,7 @@ interface InputFieldArrayType$1 {
2042
2101
  errorMessages?: InputFieldArrayErrorMessages$1;
2043
2102
  }
2044
2103
  declare enum ItemType$1 {
2045
- UNKNOWN = "UNKNOWN",
2104
+ UNKNOWN_ITEM_TYPE = "UNKNOWN_ITEM_TYPE",
2046
2105
  STRING = "STRING",
2047
2106
  NUMBER = "NUMBER",
2048
2107
  BOOLEAN = "BOOLEAN",
@@ -2146,7 +2205,7 @@ interface InputFieldArrayErrorMessages$1 {
2146
2205
  default?: string | null;
2147
2206
  }
2148
2207
  declare enum ComponentType$1 {
2149
- UNKNOWN = "UNKNOWN",
2208
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
2150
2209
  CHECKBOX_GROUP = "CHECKBOX_GROUP"
2151
2210
  }
2152
2211
  interface CheckboxGroup$1 {
@@ -2220,7 +2279,7 @@ interface CustomOption$1 {
2220
2279
  placeholder?: string | null;
2221
2280
  }
2222
2281
  declare enum WixFileComponentType$1 {
2223
- UNKNOWN = "UNKNOWN",
2282
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
2224
2283
  FILE_UPLOAD = "FILE_UPLOAD",
2225
2284
  SIGNATURE = "SIGNATURE"
2226
2285
  }
@@ -2270,7 +2329,7 @@ interface Signature$1 {
2270
2329
  imageUploadEnabled?: boolean;
2271
2330
  }
2272
2331
  declare enum PaymentComponentType$1 {
2273
- UNKNOWN = "UNKNOWN",
2332
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
2274
2333
  CHECKBOX_GROUP = "CHECKBOX_GROUP",
2275
2334
  DONATION_INPUT = "DONATION_INPUT"
2276
2335
  }
@@ -2330,7 +2389,7 @@ interface CommonCustomOption$1 {
2330
2389
  placeholder?: string | null;
2331
2390
  }
2332
2391
  declare enum MultilineAddressComponentType$1 {
2333
- UNKNOWN = "UNKNOWN",
2392
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
2334
2393
  MULTILINE_ADDRESS = "MULTILINE_ADDRESS"
2335
2394
  }
2336
2395
  interface MultilineAddress$1 {
@@ -2374,7 +2433,7 @@ interface FieldsSettings$1 {
2374
2433
  addressLine2?: AddressLine2$1;
2375
2434
  }
2376
2435
  declare enum InputType$1 {
2377
- UNKNOWN = "UNKNOWN",
2436
+ UNKNOWN_INPUT_TYPE = "UNKNOWN_INPUT_TYPE",
2378
2437
  STRING = "STRING",
2379
2438
  NUMBER = "NUMBER",
2380
2439
  BOOLEAN = "BOOLEAN",
@@ -2476,6 +2535,12 @@ interface _String$1 extends _StringComponentTypeOptionsOneOf$1 {
2476
2535
  dateTimeOptions?: DateTimeInput$1;
2477
2536
  /** Phone input field */
2478
2537
  phoneInputOptions?: PhoneInput$1;
2538
+ /** Dropdown based component for selecting date */
2539
+ dateInputOptions?: DateInput$1;
2540
+ /** Field for selecting time */
2541
+ timeInputOptions?: TimeInput$1;
2542
+ /** Calendar type component for selecting date */
2543
+ datePickerOptions?: DatePicker$1;
2479
2544
  /** Validation of field output value. */
2480
2545
  validation?: InputFieldStringType$1;
2481
2546
  /**
@@ -2496,6 +2561,12 @@ interface _StringComponentTypeOptionsOneOf$1 {
2496
2561
  dateTimeOptions?: DateTimeInput$1;
2497
2562
  /** Phone input field */
2498
2563
  phoneInputOptions?: PhoneInput$1;
2564
+ /** Dropdown based component for selecting date */
2565
+ dateInputOptions?: DateInput$1;
2566
+ /** Field for selecting time */
2567
+ timeInputOptions?: TimeInput$1;
2568
+ /** Calendar type component for selecting date */
2569
+ datePickerOptions?: DatePicker$1;
2499
2570
  }
2500
2571
  interface _Number$1 extends _NumberComponentTypeOptionsOneOf$1 {
2501
2572
  /** Number value input field */
@@ -3645,7 +3716,7 @@ interface TimeOptionsNonNullableFields$1 {
3645
3716
  use24HourFormat: boolean;
3646
3717
  }
3647
3718
  interface DatePickerOptionsNonNullableFields$1 {
3648
- firstDayOfWeek: FirstDayOfWeek$1;
3719
+ firstDayOfWeek: FirstDayOfWeekEnumFirstDayOfWeek$1;
3649
3720
  }
3650
3721
  interface DateTimeInputNonNullableFields$1 {
3651
3722
  dateTimeOptions?: DateTimeOptionsNonNullableFields$1;
@@ -3657,6 +3728,17 @@ interface DateTimeInputNonNullableFields$1 {
3657
3728
  interface PhoneInputNonNullableFields$1 {
3658
3729
  description?: RichContentNonNullableFields$1;
3659
3730
  }
3731
+ interface DateInputNonNullableFields$1 {
3732
+ description?: RichContentNonNullableFields$1;
3733
+ }
3734
+ interface TimeInputNonNullableFields$1 {
3735
+ description?: RichContentNonNullableFields$1;
3736
+ use24HourFormat: boolean;
3737
+ }
3738
+ interface DatePickerNonNullableFields$1 {
3739
+ description?: RichContentNonNullableFields$1;
3740
+ firstDayOfWeek: FirstDayOfWeek$1;
3741
+ }
3660
3742
  interface StringTypePhoneConstraintsNonNullableFields$1 {
3661
3743
  allowedCountryCodes: string[];
3662
3744
  }
@@ -3670,6 +3752,9 @@ interface _StringNonNullableFields$1 {
3670
3752
  dropdownOptions?: DropdownNonNullableFields$1;
3671
3753
  dateTimeOptions?: DateTimeInputNonNullableFields$1;
3672
3754
  phoneInputOptions?: PhoneInputNonNullableFields$1;
3755
+ dateInputOptions?: DateInputNonNullableFields$1;
3756
+ timeInputOptions?: TimeInputNonNullableFields$1;
3757
+ datePickerOptions?: DatePickerNonNullableFields$1;
3673
3758
  validation?: InputFieldStringTypeNonNullableFields$1;
3674
3759
  componentType: StringComponentType$1;
3675
3760
  }
@@ -4557,12 +4642,15 @@ interface StringTypePhoneConstraints {
4557
4642
  allowedCountryCodes?: string[];
4558
4643
  }
4559
4644
  declare enum StringComponentType {
4560
- UNKNOWN = "UNKNOWN",
4645
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
4561
4646
  TEXT_INPUT = "TEXT_INPUT",
4562
4647
  RADIO_GROUP = "RADIO_GROUP",
4563
4648
  DROPDOWN = "DROPDOWN",
4564
4649
  DATE_TIME = "DATE_TIME",
4565
- PHONE_INPUT = "PHONE_INPUT"
4650
+ PHONE_INPUT = "PHONE_INPUT",
4651
+ DATE_INPUT = "DATE_INPUT",
4652
+ TIME_INPUT = "TIME_INPUT",
4653
+ DATE_PICKER = "DATE_PICKER"
4566
4654
  }
4567
4655
  interface TextInput {
4568
4656
  /** Label of the field */
@@ -5907,7 +5995,7 @@ interface DateTimeInputDateTimeInputTypeOptionsOneOf {
5907
5995
  /** Options specific to date picker type. */
5908
5996
  datePickerOptions?: DatePickerOptions;
5909
5997
  }
5910
- declare enum FirstDayOfWeek {
5998
+ declare enum FirstDayOfWeekEnumFirstDayOfWeek {
5911
5999
  MONDAY = "MONDAY",
5912
6000
  SUNDAY = "SUNDAY"
5913
6001
  }
@@ -5940,7 +6028,7 @@ interface TimeOptions {
5940
6028
  }
5941
6029
  interface DatePickerOptions {
5942
6030
  /** First day of the week displayed on date picker. */
5943
- firstDayOfWeek?: FirstDayOfWeek;
6031
+ firstDayOfWeek?: FirstDayOfWeekEnumFirstDayOfWeek;
5944
6032
  }
5945
6033
  interface PhoneInput {
5946
6034
  /** Label of the field */
@@ -5957,6 +6045,62 @@ interface PhoneInput {
5957
6045
  /** Default value of the country code */
5958
6046
  defaultCountryCode?: string | null;
5959
6047
  }
6048
+ interface DateInput {
6049
+ /** Label of the field. Displayed text for the date/time input. */
6050
+ label?: string | null;
6051
+ /** Description of the field. Additional information about the date/time input. */
6052
+ description?: RichContent;
6053
+ /**
6054
+ * Flag identifying whether to show or hide the label.
6055
+ * Default: true
6056
+ */
6057
+ showLabel?: boolean | null;
6058
+ /**
6059
+ * Flag identifying whether to show or hide the placeholder.
6060
+ * Default: true
6061
+ */
6062
+ showPlaceholder?: boolean | null;
6063
+ }
6064
+ interface TimeInput {
6065
+ /** Label of the field. Displayed text for the date/time input. */
6066
+ label?: string | null;
6067
+ /** Description of the field. Additional information about the date/time input. */
6068
+ description?: RichContent;
6069
+ /**
6070
+ * Flag identifying whether to show or hide the label.
6071
+ * Default: true
6072
+ */
6073
+ showLabel?: boolean | null;
6074
+ /**
6075
+ * Flag identifying whether to show or hide the placeholder.
6076
+ * Default: true
6077
+ */
6078
+ showPlaceholder?: boolean | null;
6079
+ /**
6080
+ * Flag indicating whether to use the 24-hour time format.
6081
+ * Default: false.
6082
+ */
6083
+ use24HourFormat?: boolean;
6084
+ }
6085
+ interface DatePicker {
6086
+ /** Label of the field. Displayed text for the date/time input. */
6087
+ label?: string | null;
6088
+ /** Description of the field. Additional information about the date/time input. */
6089
+ description?: RichContent;
6090
+ /**
6091
+ * Flag identifying whether to show or hide the label.
6092
+ * Default: true
6093
+ */
6094
+ showLabel?: boolean | null;
6095
+ /** Placeholder of date picker input */
6096
+ placeholder?: string | null;
6097
+ /** First day of the week displayed on date picker. */
6098
+ firstDayOfWeek?: FirstDayOfWeek;
6099
+ }
6100
+ declare enum FirstDayOfWeek {
6101
+ MONDAY = "MONDAY",
6102
+ SUNDAY = "SUNDAY"
6103
+ }
5960
6104
  interface InputFieldNumberType {
5961
6105
  /** Inclusive maximum value. */
5962
6106
  maximum?: number | null;
@@ -5974,7 +6118,7 @@ interface InputFieldNumberErrorMessages {
5974
6118
  default?: string | null;
5975
6119
  }
5976
6120
  declare enum NumberComponentType {
5977
- UNKNOWN = "UNKNOWN",
6121
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
5978
6122
  NUMBER_INPUT = "NUMBER_INPUT",
5979
6123
  RATING_INPUT = "RATING_INPUT"
5980
6124
  }
@@ -6015,7 +6159,7 @@ interface InputFieldBooleanErrorMessages {
6015
6159
  default?: string | null;
6016
6160
  }
6017
6161
  declare enum BooleanComponentType {
6018
- UNKNOWN = "UNKNOWN",
6162
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
6019
6163
  CHECKBOX = "CHECKBOX"
6020
6164
  }
6021
6165
  interface Checkbox {
@@ -6038,7 +6182,7 @@ interface InputFieldArrayType {
6038
6182
  errorMessages?: InputFieldArrayErrorMessages;
6039
6183
  }
6040
6184
  declare enum ItemType {
6041
- UNKNOWN = "UNKNOWN",
6185
+ UNKNOWN_ITEM_TYPE = "UNKNOWN_ITEM_TYPE",
6042
6186
  STRING = "STRING",
6043
6187
  NUMBER = "NUMBER",
6044
6188
  BOOLEAN = "BOOLEAN",
@@ -6142,7 +6286,7 @@ interface InputFieldArrayErrorMessages {
6142
6286
  default?: string | null;
6143
6287
  }
6144
6288
  declare enum ComponentType {
6145
- UNKNOWN = "UNKNOWN",
6289
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
6146
6290
  CHECKBOX_GROUP = "CHECKBOX_GROUP"
6147
6291
  }
6148
6292
  interface CheckboxGroup {
@@ -6193,7 +6337,7 @@ interface CustomOption {
6193
6337
  placeholder?: string | null;
6194
6338
  }
6195
6339
  declare enum WixFileComponentType {
6196
- UNKNOWN = "UNKNOWN",
6340
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
6197
6341
  FILE_UPLOAD = "FILE_UPLOAD",
6198
6342
  SIGNATURE = "SIGNATURE"
6199
6343
  }
@@ -6243,7 +6387,7 @@ interface Signature {
6243
6387
  imageUploadEnabled?: boolean;
6244
6388
  }
6245
6389
  declare enum PaymentComponentType {
6246
- UNKNOWN = "UNKNOWN",
6390
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
6247
6391
  CHECKBOX_GROUP = "CHECKBOX_GROUP",
6248
6392
  DONATION_INPUT = "DONATION_INPUT"
6249
6393
  }
@@ -6303,7 +6447,7 @@ interface CommonCustomOption {
6303
6447
  placeholder?: string | null;
6304
6448
  }
6305
6449
  declare enum MultilineAddressComponentType {
6306
- UNKNOWN = "UNKNOWN",
6450
+ UNKNOWN_COMPONENT_TYPE = "UNKNOWN_COMPONENT_TYPE",
6307
6451
  MULTILINE_ADDRESS = "MULTILINE_ADDRESS"
6308
6452
  }
6309
6453
  interface MultilineAddress {
@@ -6347,7 +6491,7 @@ interface FieldsSettings {
6347
6491
  addressLine2?: AddressLine2;
6348
6492
  }
6349
6493
  declare enum InputType {
6350
- UNKNOWN = "UNKNOWN",
6494
+ UNKNOWN_INPUT_TYPE = "UNKNOWN_INPUT_TYPE",
6351
6495
  STRING = "STRING",
6352
6496
  NUMBER = "NUMBER",
6353
6497
  BOOLEAN = "BOOLEAN",
@@ -6449,6 +6593,12 @@ interface _String extends _StringComponentTypeOptionsOneOf {
6449
6593
  dateTimeOptions?: DateTimeInput;
6450
6594
  /** Phone input field */
6451
6595
  phoneInputOptions?: PhoneInput;
6596
+ /** Dropdown based component for selecting date */
6597
+ dateInputOptions?: DateInput;
6598
+ /** Field for selecting time */
6599
+ timeInputOptions?: TimeInput;
6600
+ /** Calendar type component for selecting date */
6601
+ datePickerOptions?: DatePicker;
6452
6602
  /** Validation of field output value. */
6453
6603
  validation?: InputFieldStringType;
6454
6604
  /**
@@ -6469,6 +6619,12 @@ interface _StringComponentTypeOptionsOneOf {
6469
6619
  dateTimeOptions?: DateTimeInput;
6470
6620
  /** Phone input field */
6471
6621
  phoneInputOptions?: PhoneInput;
6622
+ /** Dropdown based component for selecting date */
6623
+ dateInputOptions?: DateInput;
6624
+ /** Field for selecting time */
6625
+ timeInputOptions?: TimeInput;
6626
+ /** Calendar type component for selecting date */
6627
+ datePickerOptions?: DatePicker;
6472
6628
  }
6473
6629
  interface _Number extends _NumberComponentTypeOptionsOneOf {
6474
6630
  /** Number value input field */
@@ -7618,7 +7774,7 @@ interface TimeOptionsNonNullableFields {
7618
7774
  use24HourFormat: boolean;
7619
7775
  }
7620
7776
  interface DatePickerOptionsNonNullableFields {
7621
- firstDayOfWeek: FirstDayOfWeek;
7777
+ firstDayOfWeek: FirstDayOfWeekEnumFirstDayOfWeek;
7622
7778
  }
7623
7779
  interface DateTimeInputNonNullableFields {
7624
7780
  dateTimeOptions?: DateTimeOptionsNonNullableFields;
@@ -7630,6 +7786,17 @@ interface DateTimeInputNonNullableFields {
7630
7786
  interface PhoneInputNonNullableFields {
7631
7787
  description?: RichContentNonNullableFields;
7632
7788
  }
7789
+ interface DateInputNonNullableFields {
7790
+ description?: RichContentNonNullableFields;
7791
+ }
7792
+ interface TimeInputNonNullableFields {
7793
+ description?: RichContentNonNullableFields;
7794
+ use24HourFormat: boolean;
7795
+ }
7796
+ interface DatePickerNonNullableFields {
7797
+ description?: RichContentNonNullableFields;
7798
+ firstDayOfWeek: FirstDayOfWeek;
7799
+ }
7633
7800
  interface StringTypePhoneConstraintsNonNullableFields {
7634
7801
  allowedCountryCodes: string[];
7635
7802
  }
@@ -7643,6 +7810,9 @@ interface _StringNonNullableFields {
7643
7810
  dropdownOptions?: DropdownNonNullableFields;
7644
7811
  dateTimeOptions?: DateTimeInputNonNullableFields;
7645
7812
  phoneInputOptions?: PhoneInputNonNullableFields;
7813
+ dateInputOptions?: DateInputNonNullableFields;
7814
+ timeInputOptions?: TimeInputNonNullableFields;
7815
+ datePickerOptions?: DatePickerNonNullableFields;
7646
7816
  validation?: InputFieldStringTypeNonNullableFields;
7647
7817
  componentType: StringComponentType;
7648
7818
  }