Skip to content

Schedule

Display schedule either planned or actucal or both

  • tile : "schedule"
  • title
  • options: Object
    • rootClasses: styles classes
    • hideSwitch: true | false
    • startingView: set starting view from Grid | list
  • filter:
    • tracker: tracker to filter from list
    • match: match criteria
    • trackers: list trackers Array
    • condition
    • entryCondition
  • completions:
    • tracker: tracker to filter from list
    • match: match criteria
    • trackers: list trackers Array
    • condition
    • entryCondition
  • connect: connection objects
  • fixed: Array
    • title
    • icon
    • color
    • status
    • match
    • tracker
    • iconComplete
    • iconPending
  • addSchedule:
    • tracker
  • action: Array
    • merge: Array of objects
      • $range : Array
    • tracker
  • schedule: Array of objects
    • icon
    • color
    • attribute: tracker attribute
    • title
    • prefix
    • direction
    • tracker: tracker name
    • chart: chart name
    • chartAttribute
    • chartTitle
    • complete: complete criteria
    • fail
    • start
    • startActual
    • startPlanned
    • mapping
    • failed
    • iconPending
    • iconComplete
    • iconProgress

Example

{
  "condition": "true",
  "tile": "schedule",
  "options": {},
  "filter": {
    "tracker": "schedule",
    "match": "YYYY-MM-DD"
  },
  "completions": {
    "trackers": [
      "activity",
      "activity-other",
      "activity-meal",
      "activity-sleep"
    ],
    "match": "YYYY-MM-DD"
  },
  "connect": {
    "source": "schedule"
  },
  "addSchedule": {
    "tracker": "schedule"
  },
  "action": {
    "tracker": "activity",
    "merge": {
      "$range": [
        "actual",
        "scheduled"
      ]
    }
  },
  "fixed": [
    {
      "title": "今日一日の評価",
      "icon": "fal fa-user-check",
      "tracker": "evaluation",
      "complete": "",
      "color": "#aaa",
      "match": "YYYY-MM-DD",
      "iconComplete": "fal fa-check-square",
      "iconPending": "fal fa-square"
    }
  ],
  "schedule": [
    {
      "title": "朝食",
      "tracker": "activity-meal",
      "attribute": "breakfast",
      "icon": "fal fa-coffee",
      "color": "#d60000",
      "chart": "donut",
      "complete": "values.complete is true or (values.beforeCheck is true and values.afterCheck is true and values.location exists and values.participants exists)",
      "fail": "values.skipped is true"
    },
    {
      "title": "仕事",
      "attribute": "work",
      "tracker": "activity-other",
      "icon": "fal fa-briefcase",
      "color": "#ffc000",
      "chart": "donut",
      "complete": "values.complete is true",
      "fail": "values.skipped is true"
    }
  ]
}