syntax = "proto3";

package com.wixpress.appservice.api.upstream.wix.forms.v4.components;
option java_package = "com.wixpress.appservice.api.upstream.wix.forms.v4.components";

import "google/protobuf/wrappers.proto";
import "wix/api/validations.proto";
import "wix/api/annotations.proto";
import "wix/rich_content/v1/rich_content.proto";
import "components_catalog_data/form_template/com/wixpress/appservice/api/upstream/wix/forms/v4/components/common/media_item.proto";
import "components_catalog_data/form_template/com/wixpress/appservice/api/upstream/wix/forms/v4/components/common/media_settings.proto";

message DateInput {
    option (.wix.api.decomposite_of) = "wix.forms.v4.components.DateInput";
  // Label of the field. Displayed text for the date/time input.
  google.protobuf.StringValue label = 1 [(.wix.api.maxLength) = 350, (.wix.api.translatable) = {
    name: "Date Input Label"
    hidden: false
    grouping: "formFields"
    type: SHORT_TEXT
  }];

  // Description of the field. Additional information about the date/time input.
  .wix.rich_content.v1.RichContent description = 2 [(.wix.api.translatable) = {
    name: "Date Input Description"
    hidden: false
    grouping: "formFields"
    type: RICH_CONTENT_EDITOR
  }];

  // Flag identifying whether to show or hide the label.
  // Default: true
  google.protobuf.BoolValue show_label = 3;

  // Flag identifying whether to show or hide the placeholder.
  // Default: true
  google.protobuf.BoolValue show_placeholder = 4;

  // Default value for the date input.
  google.protobuf.StringValue default = 5 [(.wix.api.format) = LOCAL_DATE];
  // Media item. Media, associated with field, like image.
  components.common.MediaItem media = 6;
  // Settings for media item
  components.common.MediaSettings media_settings = 7;
  // Flag identifying whether to show or hide the date labels.
  // Default: true
  google.protobuf.BoolValue show_date_labels = 8;
}
