# The MC field is a skeleton for constructing new modules
MC:
  # Module informaiton
  module:
    type: "===ZZ===" # Module type
    # This is a list of modules this one depends on. The list names
    # are the R object names used in this module and the value is the
    # module ID associated with that module in the current deployment.
    depends: 
      id_ASM: "ASM"
  element_object_name: "===ZZ===_obj"
# The include section is optional. You can use this section to copy files 
# from the directory where you are running the app to the user directory to be
# used in the app and when saved. The source and dest options can be a path
# command like below or a double  quoted string: 
#
# '"/path/to/file"'
#
# The dest should be relative to user directory (think the root of the zip
# file that is exported). See formods.yaml for examples. 
#
# include:
#   files:
#   - file:
#       source: 'file.path(system.file(package="onbrand"), "templates", "report.docx")'
#       dest:   'file.path("config","report.docx")'
  code: # module specific code options
    packages: ["XXX"] # Set to NULL if there are no package dependencies
    readOnly: TRUE
    mode:     r
  # Controls what is shown in the compact ui mode:
  compact:
    code:    TRUE 
    clip:    TRUE 
  # This is where you put reporting options. The expected options are shown
  # here, but module-specific options can also be added if needed:
  reporting:
    enabled: FALSE
    # Priority of reporting relative to other modules 
    # (higher numbers are reported first)
    priority: 1
  # put different formatting options (widths, heights,
  # shinyWidgets button sizes, etc) here.
  formatting:
    # Dimensions of code snippet box
    code:
      width:  800
      height: 300
    current_element:
      width:  "200px"
    element_name:
      width:  "200px"
    preview:
      width:  "800px"
      height: "500px"
    input:
    button_clk_run:
      size: "sm"
      block: TRUE
    button_clk_del:
      size: "sm"
      block: TRUE
      tooltip: "Delete the current ===ELEMENT===."
      tooltip_position: "right"
    button_clk_save:
      size: "sm"
      block: TRUE
      tooltip: "Save the name for the current ===ELEMENT===."
      tooltip_position: "right"
    button_clk_clip:
      size: "sm"
      block: TRUE
      tooltip: "Copy the code to generate the current ===ELEMENT=== to the clipboard."
      tooltip_position: "right"
    button_clk_copy:
      size: "sm"
      block: TRUE
      tooltip: "Make a copy of the current ===ELEMENT===."
      tooltip_position: "right"
    button_clk_new:
      size: "sm"
      block: TRUE
      tooltip: "Create a new ===ELEMENT===."
      tooltip_position: "right"
      width: 100
  labels:
    current_element: NULL # "Select ===ELEMENT==="
    element_name :   NULL # "===ELEMENT=== name"
    save_btn:     "Save"
    clip_btn:     "Code" 
    copy_btn:     "Copy"
    del_btn:      "Delete"
    new_btn:      "New"
  errors:
    bad_input: "Input error message"
  tooltips:
    # Set to FALSE to disable tool tips for this module
    include: TRUE
    elements: "Show ===ELEMENT=== components"
    show_code: "Show ===ELEMENT=== code" 
    components:
      input_tip: "My tool tip"
