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,EACX,KAAK,CACN;WACI,CAAC;YACN,SAAS;gBACP,oCAAoC;oBACpC,iBAAiB,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC;oBAC3D,iBAAiB,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC;oBAC5D,QAAQ,CAAC;QACb,CAAC;QAED,OAAO,qFAAqF,iBAAiB,IAC3G,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EACrC,0DACE,MAAM,CAAC,EACT,uBAAuB,MAAM,CAAC,IAAI;;;UAG5B,cAAc;UACd,KAAK;UACL,eAAe;;;;YAKb,MAAM,YAAY,cAAc;YAC9B,CAAC,CAAC,cAAc,CAAC,OAAO,CACpB,aAAa,EACb,gDAAgD,EAChD,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EACzB,CAAC,WAAW,CAAC,EACb,CAAC,aAAa,CAAC,CAChB;YACH,CAAC,CAAC,EACN;YAEE,MAAM,YAAY,YAAY;YAC5B,CAAC,CAAC,cAAc,CAAC,OAAO,CACpB,OAAO,EACP,eAAe,EACf,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EACzB,CAAC,WAAW,CAAC,EACb,CAAC,aAAa,CAAC,CAChB;YACH,CAAC,CAAC,EACN;;UAEA,cAAc;UACd,SAAS;UACT,cAAc,CAAC,OAAO,CACtB,OAAO,EACP,eAAe,EACf,EAAE,EACF,CAAC,WAAW,CAAC,EACb,CAAC,oBAAoB,CAAC,CACvB;WACE,GAAG;;;WAGH,CAAC;IACV,CAAC;CACF","file":"daytool_templates.js","sourcesContent":["import { reset_casting, formatDate } from \"../../helpers.js\";\r\nimport {\r\n daytool_case,\r\n daytool_entity,\r\n daytool_event,\r\n daytool_feed,\r\n daytool_goal,\r\n daytool_need,\r\n daytool_note,\r\n daytool_person,\r\n daytool_plan,\r\n daytool_stat,\r\n} from \"../daytool_entity.js\";\r\nimport { daytool_buttons } from \"./daytool_buttons.js\";\r\nimport { daytool_injector } from \"./daytool_injector.js\";\r\nimport { daytool_inputs } from \"./daytool_inputs.js\";\r\nimport { DAYTOOL } from \"../daytool.js\";\r\nimport { daytool_plan_item } from \"./daytool_plan.js\";\r\nimport { MONTHS_ABV } from \"../.././constants.js\";\r\n\r\nexport class daytool_templates {\r\n // All interactable buttons are pills\r\n static Pill(\r\n container_classes: string,\r\n minimized: boolean,\r\n minimized_active: boolean,\r\n active: boolean,\r\n highlight: boolean,\r\n icon: boolean,\r\n icon_size_px: number,\r\n icon_classes: string,\r\n icon_img_class: string,\r\n microicon: boolean,\r\n microicon_classes: string,\r\n microicon_img_class: string,\r\n label: boolean,\r\n label_text: string,\r\n label_classes: string,\r\n action: boolean,\r\n action_type: string,\r\n action_parameters: string[],\r\n action_args: string[]\r\n ): string {\r\n // Build container_html\r\n var container_html = `
\";\r\n container_html += actions_html;\r\n\r\n var pill_html = `
\r\n
`;\r\n\r\n // Build pill icon\r\n var icon_html = ``;\r\n if (icon) {\r\n icon_html = `
`;\r\n // Build pill microicon\r\n if (microicon) {\r\n icon_html += ``;\r\n }\r\n icon_html += `
`;\r\n }\r\n pill_html += icon_html;\r\n\r\n // Build pill label\r\n var label_html = ``;\r\n if (label) {\r\n label_html = `${label_text}`;\r\n }\r\n pill_html += label_html + \"
\";\r\n\r\n pill_html += \"
\";\r\n container_html += pill_html + \"
\";\r\n\r\n return container_html;\r\n }\r\n\r\n // Cards show the first-order interactions related to entities and are found in lists - lists are lists of cards of those entities\r\n // Default behavior - All cards are buttons that open that entity clipboard\r\n // Can have clickable elements only - nothing can be typed on cards.\r\n static Card(\r\n container_classes: string,\r\n entity:\r\n | daytool_need\r\n | daytool_event\r\n | daytool_goal\r\n | daytool_case\r\n | daytool_feed\r\n | daytool_note\r\n | daytool_stat\r\n | daytool_person\r\n | daytool_plan\r\n ): string {\r\n var pills_left_dom = ``;\r\n var pills_right_dom = ``;\r\n var card_body = ``;\r\n\r\n var nav = `
\r\n ${daytool_buttons.clipboard_toggle(false)}\r\n ${daytool_buttons.ordering_buttons()}\r\n ${daytool_buttons.history_button()}\r\n ${daytool_buttons.link_toggle(false)}\r\n ${daytool_buttons.share_toggle()}\r\n ${daytool_buttons.delete_button()}\r\n
`;\r\n var casted_entity = reset_casting([entity])[0];\r\n var title = daytool_inputs.Textbox(\r\n \"title flex-grow-1 text-start me-2 no_interaction_till_expansion\",\r\n \"New \" + casted_entity.type,\r\n casted_entity.title.at(-1),\r\n [\"attribute\"],\r\n [\"title\"]\r\n );\r\n\r\n if (casted_entity instanceof daytool_need) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n casted_entity.icon.at(-1),\r\n casted_entity.microicon.at(-1)\r\n );\r\n card_body = ``;\r\n } else if (casted_entity instanceof daytool_event) {\r\n // var datetime = casted_entity.timing.start.at(-1);\r\n var date = new Date(casted_entity.timing.start.at(-1).dateTime);\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n casted_entity.icon.at(-1),\r\n casted_entity.microicon.at(-1)\r\n );\r\n pills_right_dom = daytool_buttons.event_button(date);\r\n card_body = ``;\r\n } else if (casted_entity instanceof daytool_goal) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n casted_entity.icon.at(-1),\r\n casted_entity.microicon.at(-1)\r\n );\r\n pills_right_dom = daytool_buttons.play_button(\r\n casted_entity.current_state.at(-1)\r\n );\r\n var plans_html = ``;\r\n\r\n // Substeps\r\n var primary_label = daytool_templates.Pill(\r\n ``,\r\n true,\r\n true,\r\n false,\r\n false,\r\n true,\r\n 35,\r\n \"\",\r\n \"goals\",\r\n false,\r\n \"\",\r\n \"\",\r\n true,\r\n \"Main Objectives\",\r\n \"subsection_title text-16\",\r\n false,\r\n \"\",\r\n [],\r\n []\r\n );\r\n var secondary_label = daytool_templates.Pill(\r\n ``,\r\n false,\r\n false,\r\n false,\r\n false,\r\n true,\r\n 35,\r\n \"\",\r\n \"milestones\",\r\n false,\r\n \"\",\r\n \"\",\r\n true,\r\n \"Milestones\",\r\n \"subsection_title text-16\",\r\n false,\r\n \"\",\r\n [],\r\n []\r\n );\r\n var bonus_label = daytool_templates.Pill(\r\n ``,\r\n false,\r\n false,\r\n false,\r\n false,\r\n true,\r\n 35,\r\n \"\",\r\n \"rating\",\r\n false,\r\n \"\",\r\n \"\",\r\n true,\r\n \"Bonus\",\r\n \"subsection_title text-16\",\r\n false,\r\n \"\",\r\n [],\r\n []\r\n );\r\n\r\n var primary_add = daytool_templates.Pill(\r\n `bg-unfilled unfiltered my-2`,\r\n true,\r\n true,\r\n false,\r\n true,\r\n true,\r\n 24,\r\n \"bg-unfilled unfiltered\",\r\n \"plans\",\r\n true,\r\n \"bg-blue-glass\",\r\n \"add\",\r\n true,\r\n \"Add Plan\",\r\n \"\",\r\n true,\r\n \"add_to_goal_primary\",\r\n [],\r\n []\r\n );\r\n\r\n var secondary_add = daytool_templates.Pill(\r\n `bg-unfilled unfiltered my-2`,\r\n true,\r\n true,\r\n false,\r\n true,\r\n true,\r\n 24,\r\n \"bg-unfilled unfiltered\",\r\n \"plans\",\r\n true,\r\n \"bg-blue-glass\",\r\n \"add\",\r\n true,\r\n \"Add Plan\",\r\n \"\",\r\n true,\r\n \"add_to_goal_secondary\",\r\n [],\r\n []\r\n );\r\n\r\n var bonus_add = daytool_templates.Pill(\r\n `bg-unfilled unfiltered my-2`,\r\n true,\r\n true,\r\n false,\r\n true,\r\n true,\r\n 24,\r\n \"bg-unfilled unfiltered\",\r\n \"plans\",\r\n true,\r\n \"bg-blue-glass\",\r\n \"add\",\r\n true,\r\n \"Add Plan\",\r\n \"\",\r\n true,\r\n \"add_to_goal_bonus\",\r\n [],\r\n []\r\n );\r\n\r\n var primary_plans = `
`;\r\n var secondary_plans = `
`;\r\n var bonus_plans = `
`;\r\n\r\n for (\r\n var t = 0;\r\n t < casted_entity.primary_objectives_plan_entity_id.length;\r\n t++\r\n ) {\r\n var current_entity = (\r\n DAYTOOL.getEntityByObjectEntityId(\r\n casted_entity.primary_objectives_plan_entity_id[t]\r\n )\r\n );\r\n primary_plans += `${daytool_templates.Card(\r\n \"goal_view primary_objective\",\r\n current_entity\r\n )}`;\r\n }\r\n for (\r\n var t = 0;\r\n t < casted_entity.secondary_objectives_plan_entity_id.length;\r\n t++\r\n ) {\r\n var current_entity = (\r\n DAYTOOL.getEntityByObjectEntityId(\r\n casted_entity.secondary_objectives_plan_entity_id[t]\r\n )\r\n );\r\n secondary_plans += `${daytool_templates.Card(\r\n \"goal_view secondary_objective\",\r\n current_entity\r\n )}`;\r\n }\r\n for (\r\n var t = 0;\r\n t < casted_entity.bonus_objectives_plan_entity_id.length;\r\n t++\r\n ) {\r\n var current_entity = (\r\n DAYTOOL.getEntityByObjectEntityId(\r\n casted_entity.bonus_objectives_plan_entity_id[t]\r\n )\r\n );\r\n bonus_plans += `${daytool_templates.Card(\r\n \"goal_view bonus_objective\",\r\n current_entity\r\n )}`;\r\n }\r\n\r\n primary_plans += `
`;\r\n secondary_plans += `
`;\r\n bonus_plans += `
`;\r\n\r\n card_body = `
\r\n
${primary_label}
${primary_add}
\r\n
${primary_plans}
\r\n
\r\n
\r\n
${secondary_label}
${secondary_add}
\r\n
${secondary_plans}
\r\n
\r\n
\r\n
${bonus_label}
${bonus_add}
\r\n
${bonus_plans}
\r\n
`;\r\n } else if (casted_entity instanceof daytool_stat) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n casted_entity.icon.at(-1),\r\n casted_entity.microicon.at(-1)\r\n );\r\n pills_right_dom = daytool_buttons.stat_widget(casted_entity);\r\n card_body = casted_entity.returnDataLogPreview();\r\n } else if (casted_entity instanceof daytool_case) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n casted_entity.icon.at(-1),\r\n casted_entity.microicon.at(-1)\r\n );\r\n card_body = ``;\r\n } else if (casted_entity instanceof daytool_feed) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n casted_entity.icon.at(-1),\r\n casted_entity.microicon.at(-1)\r\n );\r\n card_body = ``;\r\n } else if (casted_entity instanceof daytool_plan) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n casted_entity.icon.at(-1),\r\n casted_entity.microicon.at(-1)\r\n );\r\n pills_right_dom = daytool_templates.Pill(\r\n `add_to_plan_button bg-unfilled unfiltered active me-2 my-1`,\r\n true,\r\n true,\r\n false,\r\n true,\r\n true,\r\n 24,\r\n \"bg-unfilled unfiltered\",\r\n \"plans\",\r\n true,\r\n \"bg-blue-glass\",\r\n \"add\",\r\n true,\r\n \"Add Task\",\r\n \"\",\r\n true,\r\n \"add_to_plan\",\r\n [],\r\n []\r\n );\r\n\r\n var steps_html = `
`;\r\n if (\r\n casted_entity.checklist &&\r\n casted_entity.checklist.at(-1) &&\r\n casted_entity.checklist.at(-1).length > 0\r\n ) {\r\n for (var t = 0; t < casted_entity.checklist.at(-1).length; t++) {\r\n steps_html += `${daytool_templates.PlanItem(\r\n casted_entity,\r\n casted_entity.checklist.at(-1)[t].id,\r\n \"\"\r\n )}`;\r\n }\r\n\r\n steps_html += `
`;\r\n }\r\n card_body = `${steps_html}`;\r\n } else if (casted_entity instanceof daytool_note) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n casted_entity.icon.at(-1),\r\n casted_entity.microicon.at(-1)\r\n );\r\n pills_right_dom = daytool_buttons.add_note_to_note_button();\r\n\r\n card_body = daytool_inputs.Textbox(\r\n `notes`,\r\n `Add a note...`,\r\n casted_entity.note_string.at(-1),\r\n [\"attribute\"],\r\n [\"note_string\"]\r\n );\r\n } else if (casted_entity instanceof daytool_person) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n casted_entity.icon.at(-1),\r\n casted_entity.microicon.at(-1)\r\n );\r\n pills_right_dom = ``;\r\n card_body = ``;\r\n }\r\n\r\n var last_update_date = new Date(entity.last_update_timestamp.at(-1));\r\n var created_date = new Date(entity.creation_timestamp);\r\n\r\n var last_update_message =\r\n `Last updated: ` +\r\n MONTHS_ABV[last_update_date.getUTCMonth()] +\r\n ` ` +\r\n last_update_date.getUTCDate().toString() +\r\n ` ` +\r\n last_update_date.getUTCFullYear().toString() +\r\n `. `;\r\n var created_message =\r\n `Created: ` +\r\n MONTHS_ABV[created_date.getUTCMonth()] +\r\n ` ` +\r\n created_date.getUTCDate().toString() +\r\n ` ` +\r\n created_date.getUTCFullYear().toString() +\r\n `. `;\r\n var started_message = `Started: ` + +`. `;\r\n var completed_message = `Completed: ` + +`. `;\r\n\r\n var last_update_active = `active`;\r\n var created_active = `active`;\r\n var started_active = ``;\r\n var completed_active = ``;\r\n\r\n var card_html = `
\r\n
\r\n ${pills_left_dom}\r\n ${title}\r\n ${pills_right_dom}\r\n
\r\n
\r\n
0 ? \"active\" : \"\"\r\n }\">\r\n ${entity.description.at(-1)}\r\n
\r\n
\r\n ${last_update_message}${created_message}${started_message}${completed_message}\r\n
\r\n ${card_body}\r\n ${nav}\r\n
\r\n
\r\n\r\n
`;\r\n return card_html;\r\n }\r\n\r\n static PlanItem(\r\n plan: daytool_plan,\r\n id: number,\r\n container_classes: string\r\n ): string {\r\n var plan_item = daytool_plan.getPlanItemById(plan, id);\r\n var title = daytool_inputs.Textbox(\r\n \"plan_item_title flex-grow-1 text-start me-2\",\r\n \"New \" + plan.type + \" Item\",\r\n plan_item.title.at(-1),\r\n [\"attribute\"],\r\n [\"plan_item_title\"]\r\n );\r\n var timed = daytool_templates.Pill(\r\n `bg-unfilled unfiltered mx-1`,\r\n true,\r\n false,\r\n plan_item.timed,\r\n false,\r\n true,\r\n 24,\r\n \"bg-unfilled unfiltered\",\r\n \"timing_transparent\",\r\n true,\r\n \"bg-red-glass\",\r\n \"cancel\",\r\n true,\r\n \"Untimed\",\r\n \"\",\r\n true,\r\n \"checklist_entity_timing\",\r\n [],\r\n []\r\n );\r\n\r\n var repeats = daytool_templates.Pill(\r\n `bg-unfilled unfiltered mx-2`,\r\n true,\r\n false,\r\n plan_item.repeats,\r\n false,\r\n true,\r\n 24,\r\n \"bg-unfilled unfiltered\",\r\n \"sync\",\r\n true,\r\n \"bg-red-glass\",\r\n \"cancel\",\r\n true,\r\n \"Doesn't Repeats\",\r\n \"\",\r\n true,\r\n \"checklist_entity_repetition\",\r\n [],\r\n []\r\n );\r\n\r\n // Remove\r\n var remove = daytool_templates.Pill(\r\n `bg-unfilled unfiltered mx-2 expand_only`,\r\n true,\r\n false,\r\n false,\r\n false,\r\n true,\r\n 24,\r\n \"\",\r\n \"cancel\",\r\n false,\r\n \"\",\r\n \"\",\r\n false,\r\n \"\",\r\n \"\",\r\n true,\r\n \"checklist_remove\",\r\n [],\r\n []\r\n );\r\n // TODO ADD LINKS:\r\n var plan_item_body = `
\r\n ${daytool_buttons.ordering_buttons()}\r\n
${daytool_buttons.add_stat_to_plan_item()}${timed}${repeats}
\r\n
\r\n
\r\n
`;\r\n var pills_left_dom = daytool_buttons.completion_checkbox(\r\n plan_item.completed\r\n );\r\n\r\n var plan_item_html = `
\r\n
\r\n ${pills_left_dom}\r\n ${title}\r\n ${remove}\r\n
\r\n ${plan_item_body}\r\n\r\n
\r\n
`;\r\n return plan_item_html;\r\n }\r\n\r\n static SectionLabel(\r\n type: string,\r\n icon: string,\r\n entity_id: number,\r\n entity_type: string,\r\n active: boolean\r\n ) {\r\n return daytool_templates.Pill(\r\n `section_label bg-unfilled unfiltered mx-2`,\r\n true,\r\n true,\r\n active,\r\n false,\r\n true,\r\n 24,\r\n \"bg-unfilled unfiltered\",\r\n icon,\r\n false,\r\n \"\",\r\n \"\",\r\n true,\r\n type[0].toUpperCase() + type.slice(1),\r\n \"\",\r\n true,\r\n \"section_change\",\r\n [\"option-type\", \"option-type-item\", \"entity-id\", \"entity-type\"],\r\n [\"clipboard\", type, entity_id.toString(), entity_type]\r\n );\r\n }\r\n\r\n static Section(\r\n type: string,\r\n container_classes: string,\r\n active: boolean,\r\n entity:\r\n | daytool_need\r\n | daytool_event\r\n | daytool_goal\r\n | daytool_case\r\n | daytool_feed\r\n | daytool_note\r\n | daytool_stat\r\n | daytool_person\r\n | daytool_plan\r\n ): string {\r\n var section = ``;\r\n\r\n if (type == \"links\") {\r\n // Events\r\n var links_html = ``;\r\n var entity_events = daytool_injector.fetchEntityLinks(entity);\r\n if (entity_events && entity_events.length > 0) {\r\n for (var e = 0; e < entity_events.length; e++) {\r\n links_html += entity_events[e].current_card_template.innerHTML;\r\n }\r\n } else {\r\n links_html += ``;\r\n }\r\n section = links_html;\r\n } else if (type == \"notes\") {\r\n // Events\r\n var notes_html = ``;\r\n var entity_events = daytool_injector.fetchEntityNotes(entity);\r\n if (entity_events && entity_events.length > 0) {\r\n for (var e = 0; e < entity_events.length; e++) {\r\n notes_html += entity_events[e].current_card_template.innerHTML;\r\n }\r\n } else {\r\n notes_html += `
No Notes
${daytool_templates.Pill(\r\n `link_to_entity bg-unfilled unfiltered me-2`,\r\n true,\r\n true,\r\n false,\r\n true,\r\n true,\r\n 35,\r\n \"bg-unfilled unfiltered\",\r\n \"plans\",\r\n true,\r\n \"bg-blue-glass\",\r\n \"add\",\r\n true,\r\n \"Add A Note To This \" +\r\n (entity.type[0].toUpperCase() + entity.type.slice(1)).slice(0, -1),\r\n \"\",\r\n true,\r\n \"note_to_entity\",\r\n [],\r\n []\r\n )}
`;\r\n }\r\n section = notes_html;\r\n } else if (type == \"checklist\" && entity instanceof daytool_plan) {\r\n var steps_html = `
`;\r\n if (\r\n entity.checklist &&\r\n entity.checklist.at(-1) &&\r\n entity.checklist.at(-1).length > 0\r\n ) {\r\n for (var t = 0; t < entity.checklist.at(-1).length; t++) {\r\n var current_plan_item = entity.checklist.at(-1)[t];\r\n\r\n steps_html += `${daytool_templates.PlanItem(\r\n entity,\r\n current_plan_item.id,\r\n \"\"\r\n )}`;\r\n }\r\n\r\n steps_html += `
${daytool_templates.Pill(\r\n `add_to_plan_button bg-unfilled unfiltered active me-2 my-2`,\r\n true,\r\n false,\r\n false,\r\n true,\r\n true,\r\n 24,\r\n \"bg-unfilled unfiltered\",\r\n \"plans\",\r\n true,\r\n \"bg-blue-glass\",\r\n \"add\",\r\n true,\r\n \"Add To Plan\",\r\n \"\",\r\n true,\r\n \"add_to_plan\",\r\n [],\r\n []\r\n )}
`;\r\n }\r\n section = `${steps_html}`;\r\n } else if (type == \"plot\" && entity instanceof daytool_stat) {\r\n section = \"\";\r\n } else if (type == \"targets\" && entity instanceof daytool_goal) {\r\n // Substeps\r\n var primary_label = daytool_templates.Pill(\r\n `ms-2 ms-sm-3`,\r\n true,\r\n true,\r\n false,\r\n false,\r\n true,\r\n 35,\r\n \"\",\r\n \"goals\",\r\n false,\r\n \"\",\r\n \"\",\r\n true,\r\n \"Main Objectives\",\r\n \"subsection_title text-16\",\r\n false,\r\n \"\",\r\n [],\r\n []\r\n );\r\n var secondary_label = daytool_templates.Pill(\r\n `ms-2 ms-sm-3`,\r\n false,\r\n false,\r\n false,\r\n false,\r\n true,\r\n 35,\r\n \"\",\r\n \"milestones\",\r\n false,\r\n \"\",\r\n \"\",\r\n true,\r\n \"Milestones\",\r\n \"subsection_title text-16\",\r\n false,\r\n \"\",\r\n [],\r\n []\r\n );\r\n var bonus_label = daytool_templates.Pill(\r\n `ms-2 ms-sm-3`,\r\n false,\r\n false,\r\n false,\r\n false,\r\n true,\r\n 35,\r\n \"\",\r\n \"rating\",\r\n false,\r\n \"\",\r\n \"\",\r\n true,\r\n \"Bonus\",\r\n \"subsection_title text-16\",\r\n false,\r\n \"\",\r\n [],\r\n []\r\n );\r\n\r\n var primary_add = daytool_templates.Pill(\r\n `bg-unfilled unfiltered me-2 me-sm-3 my-2`,\r\n true,\r\n true,\r\n false,\r\n true,\r\n true,\r\n 24,\r\n \"bg-unfilled unfiltered\",\r\n \"plans\",\r\n true,\r\n \"bg-blue-glass\",\r\n \"add\",\r\n true,\r\n \"Add Plan\",\r\n \"\",\r\n true,\r\n \"add_to_goal_primary\",\r\n [],\r\n []\r\n );\r\n\r\n var secondary_add = daytool_templates.Pill(\r\n `bg-unfilled unfiltered me-2 me-sm-3 my-2`,\r\n true,\r\n true,\r\n false,\r\n true,\r\n true,\r\n 24,\r\n \"bg-unfilled unfiltered\",\r\n \"plans\",\r\n true,\r\n \"bg-blue-glass\",\r\n \"add\",\r\n true,\r\n \"Add Plan\",\r\n \"\",\r\n true,\r\n \"add_to_goal_secondary\",\r\n [],\r\n []\r\n );\r\n\r\n var bonus_add = daytool_templates.Pill(\r\n `bg-unfilled unfiltered me-2 me-sm-3 my-2`,\r\n true,\r\n true,\r\n false,\r\n true,\r\n true,\r\n 24,\r\n \"bg-unfilled unfiltered\",\r\n \"plans\",\r\n true,\r\n \"bg-blue-glass\",\r\n \"add\",\r\n true,\r\n \"Add Plan\",\r\n \"\",\r\n true,\r\n \"add_to_goal_bonus\",\r\n [],\r\n []\r\n );\r\n\r\n var primary_plans = ``;\r\n var secondary_plans = ``;\r\n var bonus_plans = ``;\r\n\r\n for (\r\n var t = 0;\r\n t < entity.primary_objectives_plan_entity_id.length;\r\n t++\r\n ) {\r\n var current_entity = (\r\n DAYTOOL.getEntityByObjectEntityId(\r\n entity.primary_objectives_plan_entity_id[t]\r\n )\r\n );\r\n primary_plans += `${daytool_templates.Card(\"\", current_entity)}`;\r\n }\r\n for (\r\n var t = 0;\r\n t < entity.secondary_objectives_plan_entity_id.length;\r\n t++\r\n ) {\r\n var current_entity = (\r\n DAYTOOL.getEntityByObjectEntityId(\r\n entity.secondary_objectives_plan_entity_id[t]\r\n )\r\n );\r\n secondary_plans += `${daytool_templates.Card(\"\", current_entity)}`;\r\n }\r\n for (var t = 0; t < entity.bonus_objectives_plan_entity_id.length; t++) {\r\n var current_entity = (\r\n DAYTOOL.getEntityByObjectEntityId(\r\n entity.bonus_objectives_plan_entity_id[t]\r\n )\r\n );\r\n bonus_plans += `${daytool_templates.Card(\"\", current_entity)}`;\r\n }\r\n\r\n section = `
\r\n
${primary_label}
${primary_add}
\r\n
${primary_plans}
\r\n
\r\n
\r\n
${secondary_label}
${secondary_add}
\r\n
${secondary_plans}
\r\n
\r\n
\r\n
${bonus_label}
${bonus_add}
\r\n
${bonus_plans}
\r\n
`;\r\n } else if (type == \"timing\" &&\r\n (entity instanceof daytool_need)\r\n ) {\r\n var events_html = `
`;\r\n if (entity.timing__daytool_event__entity_ids.length > 0) {\r\n for (\r\n var t = 0;\r\n t < entity.timing__daytool_event__entity_ids.length;\r\n t++\r\n ) {\r\n var current_event = (\r\n DAYTOOL.getEntityByObjectEntityId(\r\n entity.timing__daytool_event__entity_ids[t]\r\n )\r\n );\r\n if (current_event) {\r\n events_html += `
${daytool_templates.Card(\r\n \"importable_event\",\r\n current_event\r\n )}${daytool_templates.Pill(\r\n `bg-unfilled unfiltered active mx-2 my-1`,\r\n true,\r\n true,\r\n current_event.imported ? true : false,\r\n false,\r\n true,\r\n 24,\r\n \"bg-unfilled unfiltered\",\r\n \"import\",\r\n false,\r\n \"\",\r\n \"\",\r\n true,\r\n \"Import Event\",\r\n \"\",\r\n true,\r\n \"import_event_timing\",\r\n [],\r\n []\r\n )}
`;\r\n }\r\n }\r\n\r\n events_html += `
`; // TODO: Add link to more food event suggestions on drupal site\r\n }\r\n section = `${events_html}`;\r\n } else if (type == \"stats\" && entity instanceof daytool_need) {\r\n } else if (type == \"plans\" && entity instanceof daytool_need) {\r\n } else if (type == \"goals\" && entity instanceof daytool_need) {\r\n var goals_html = `
`;\r\n if (entity.suggestions__daytool_goal__entity_ids.length > 0) {\r\n for (\r\n var t = 0;\r\n t < entity.suggestions__daytool_goal__entity_ids.length;\r\n t++\r\n ) {\r\n var current_goal = (\r\n DAYTOOL.getEntityByObjectEntityId(\r\n entity.suggestions__daytool_goal__entity_ids[t]\r\n )\r\n );\r\n if (current_goal) {\r\n goals_html += `
${daytool_templates.Card(\r\n \"importable_goal\",\r\n current_goal\r\n )}${daytool_templates.Pill(\r\n `bg-unfilled unfiltered active mx-2 my-1`,\r\n true,\r\n true,\r\n current_goal.imported ? true : false,\r\n false,\r\n true,\r\n 24,\r\n \"bg-unfilled unfiltered\",\r\n \"import\",\r\n false,\r\n \"\",\r\n \"\",\r\n true,\r\n \"Import Goal\",\r\n \"\",\r\n true,\r\n \"import_goal_suggestion\",\r\n [],\r\n []\r\n )}
`;\r\n }\r\n }\r\n\r\n goals_html += `
`; // TODO: Add link to more food goal suggestions on drupal site\r\n }\r\n section = `${goals_html}`;\r\n } else if (type == \"pulse\" && entity instanceof daytool_need) {\r\n }\r\n\r\n // MENU\r\n\r\n return `
\r\n ${section}\r\n
`;\r\n }\r\n\r\n // Clipboard shows the full entity in either the main view or in a modal window\r\n // Should show all features of entity.\r\n static Clipboard(\r\n container_classes: string,\r\n entity:\r\n | daytool_need\r\n | daytool_event\r\n | daytool_goal\r\n | daytool_case\r\n | daytool_feed\r\n | daytool_note\r\n | daytool_stat\r\n | daytool_person\r\n | daytool_plan\r\n ): string {\r\n var nav = `
\r\n ${daytool_buttons.clipboard_toggle(false)}\r\n ${daytool_buttons.ordering_buttons()}\r\n ${daytool_buttons.history_button()}\r\n ${daytool_buttons.link_toggle(false)}\r\n ${daytool_buttons.share_toggle()}\r\n ${daytool_buttons.delete_button()}\r\n
`;\r\n\r\n var pills_left_dom = ``;\r\n var pills_right_dom = ``;\r\n var card_body = ``;\r\n var section_labels = ``;\r\n\r\n var title = daytool_inputs.Textbox(\r\n \"title flex-grow-1 text-start me-2 no_interaction_till_expansion\",\r\n \"New \" + entity.type,\r\n entity.title.at(-1),\r\n [\"attribute\"],\r\n [\"title\"]\r\n );\r\n\r\n if (entity instanceof daytool_need) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n entity.icon.at(-1),\r\n entity.microicon.at(-1)\r\n );\r\n\r\n section_labels = `
\r\n ${daytool_templates.SectionLabel(\r\n \"goals\",\r\n \"goals\",\r\n entity.id,\r\n entity.type,\r\n true\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"timing\",\r\n \"timing_transparent\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"plans\",\r\n \"plans\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"stats\",\r\n \"stats\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"pulse\",\r\n \"pulse\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"notes\",\r\n \"notes\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"links\",\r\n \"links\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n
`;\r\n card_body =\r\n `
` +\r\n daytool_templates.Section(\"goals\", \"section\", true, entity) +\r\n daytool_templates.Section(\"timing\", \"section\", false, entity) +\r\n daytool_templates.Section(\"plans\", \"section\", false, entity) +\r\n daytool_templates.Section(\"stats\", \"section\", true, entity) +\r\n daytool_templates.Section(\"pulse\", \"section\", false, entity) +\r\n daytool_templates.Section(\"notes\", \"section\", false, entity) +\r\n daytool_templates.Section(\"links\", \"section\", false, entity) +\r\n `
`;\r\n }\r\n // Events\r\n else if (entity instanceof daytool_event) {\r\n // var date_time = entity.timing.start.at(-1);\r\n var date = new Date(entity.timing.start.at(-1).dateTime);\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n entity.icon.at(-1),\r\n entity.microicon.at(-1)\r\n );\r\n pills_right_dom = daytool_buttons.event_button(date);\r\n\r\n // Card Body\r\n\r\n section_labels = `
\r\n ${daytool_templates.SectionLabel(\r\n \"timing\",\r\n \"timing_transparent\",\r\n entity.id,\r\n entity.type,\r\n true\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"notes\",\r\n \"notes\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"links\",\r\n \"links\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n
`;\r\n\r\n card_body =\r\n `
` +\r\n daytool_templates.Section(\"timing\", \"section\", true, entity) +\r\n daytool_templates.Section(\"notes\", \"section\", false, entity) +\r\n daytool_templates.Section(\"links\", \"section\", false, entity) +\r\n `
`;\r\n }\r\n // Goals\r\n else if (entity instanceof daytool_goal) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n entity.icon.at(-1),\r\n entity.microicon.at(-1)\r\n );\r\n pills_right_dom = daytool_buttons.play_button(\r\n entity.current_state.at(-1)\r\n );\r\n\r\n section_labels = `
\r\n ${daytool_templates.SectionLabel(\r\n \"targets\",\r\n \"goals\",\r\n entity.id,\r\n entity.type,\r\n true\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"timing\",\r\n \"timing_transparent\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"notes\",\r\n \"notes\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"links\",\r\n \"links\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n
`;\r\n\r\n card_body =\r\n `
` +\r\n daytool_templates.Section(\"targets\", \"section\", true, entity) +\r\n daytool_templates.Section(\"timing\", \"section\", false, entity) +\r\n daytool_templates.Section(\"notes\", \"section\", false, entity) +\r\n daytool_templates.Section(\"links\", \"section\", false, entity) +\r\n `
`;\r\n }\r\n\r\n // Stats\r\n else if (entity instanceof daytool_stat) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n entity.icon.at(-1),\r\n entity.microicon.at(-1)\r\n );\r\n pills_right_dom = daytool_buttons.stat_widget(entity);\r\n\r\n section_labels = `
\r\n ${daytool_templates.SectionLabel(\r\n \"stats\",\r\n \"stats\",\r\n entity.id,\r\n entity.type,\r\n true\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"notes\",\r\n \"notes\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"links\",\r\n \"links\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n
`;\r\n\r\n card_body =\r\n `
` +\r\n daytool_templates.Section(\"stats\", \"section\", true, entity) +\r\n daytool_templates.Section(\"notes\", \"section\", false, entity) +\r\n daytool_templates.Section(\"links\", \"section\", false, entity) +\r\n `
`;\r\n }\r\n\r\n // Cases\r\n else if (entity instanceof daytool_case) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n entity.icon.at(-1),\r\n entity.microicon.at(-1)\r\n );\r\n\r\n section_labels = `
\r\n ${daytool_templates.SectionLabel(\r\n \"case\",\r\n \"cases\",\r\n entity.id,\r\n entity.type,\r\n true\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"notes\",\r\n \"notes\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"links\",\r\n \"links\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n
`;\r\n card_body =\r\n `
` +\r\n daytool_templates.Section(\"case\", \"section\", true, entity) +\r\n daytool_templates.Section(\"notes\", \"section\", false, entity) +\r\n daytool_templates.Section(\"links\", \"section\", false, entity) +\r\n `
`;\r\n }\r\n // Feeds\r\n else if (entity instanceof daytool_feed) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n entity.icon.at(-1),\r\n entity.microicon.at(-1)\r\n );\r\n pills_right_dom = daytool_buttons.refresh_button(entity);\r\n\r\n section_labels = `
\r\n ${daytool_templates.SectionLabel(\r\n \"cases\",\r\n \"cases\",\r\n entity.id,\r\n entity.type,\r\n true\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"notes\",\r\n \"notes\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"links\",\r\n \"links\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n
`;\r\n card_body =\r\n `
` +\r\n daytool_templates.Section(\"cases\", \"section\", true, entity) +\r\n daytool_templates.Section(\"notes\", \"section\", false, entity) +\r\n daytool_templates.Section(\"links\", \"section\", false, entity) +\r\n `
`;\r\n }\r\n // Plans\r\n else if (entity instanceof daytool_plan) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n entity.icon.at(-1),\r\n entity.microicon.at(-1)\r\n );\r\n\r\n section_labels = `
\r\n ${daytool_templates.SectionLabel(\r\n \"checklist\",\r\n \"plans\",\r\n entity.id,\r\n entity.type,\r\n true\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"notes\",\r\n \"notes\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"links\",\r\n \"links\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n
`;\r\n card_body =\r\n `
` +\r\n daytool_templates.Section(\"checklist\", \"section\", true, entity) +\r\n daytool_templates.Section(\"notes\", \"section\", false, entity) +\r\n daytool_templates.Section(\"links\", \"section\", false, entity) +\r\n `
`;\r\n }\r\n // Notes\r\n else if (entity instanceof daytool_note) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n entity.icon.at(-1),\r\n entity.microicon.at(-1)\r\n );\r\n section_labels = `
\r\n ${daytool_templates.SectionLabel(\r\n \"notes\",\r\n \"notes\",\r\n entity.id,\r\n entity.type,\r\n true\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"links\",\r\n \"links\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n
`;\r\n\r\n card_body =\r\n `
` +\r\n daytool_templates.Section(\"notes\", \"section\", true, entity) +\r\n daytool_templates.Section(\"links\", \"section\", false, entity) +\r\n `
`;\r\n }\r\n // Persons\r\n else if (entity instanceof daytool_person) {\r\n pills_left_dom = daytool_buttons.changeable_icon(\r\n entity.icon.at(-1),\r\n entity.microicon.at(-1)\r\n );\r\n\r\n section_labels = `
\r\n ${daytool_templates.SectionLabel(\r\n \"notes\",\r\n \"notes\",\r\n entity.id,\r\n entity.type,\r\n true\r\n )}\r\n ${daytool_templates.SectionLabel(\r\n \"links\",\r\n \"links\",\r\n entity.id,\r\n entity.type,\r\n false\r\n )}\r\n
`;\r\n card_body =\r\n `
` +\r\n daytool_templates.Section(\"notes\", \"section\", true, entity) +\r\n daytool_templates.Section(\"links\", \"section\", false, entity) +\r\n `
`;\r\n }\r\n\r\n return `
\r\n\r\n
\r\n ${pills_left_dom}\r\n ${title}\r\n ${pills_right_dom}\r\n
\r\n
\r\n
\r\n ${\r\n entity instanceof daytool_entity\r\n ? daytool_inputs.Textbox(\r\n \"description\",\r\n \"Some description on what this card is about...\",\r\n entity.description.at(-1),\r\n [\"attribute\"],\r\n [\"description\"]\r\n )\r\n : \"\"\r\n }\r\n ${\r\n entity instanceof daytool_note\r\n ? daytool_inputs.Textbox(\r\n `notes`,\r\n `Add a note...`,\r\n entity.note_string.at(-1),\r\n [\"attribute\"],\r\n [\"note_string\"]\r\n )\r\n : \"\"\r\n }\r\n
\r\n ${section_labels}\r\n ${card_body}\r\n ${daytool_inputs.Textbox(\r\n `notes`,\r\n `Add a note...`,\r\n \"\",\r\n [\"attribute\"],\r\n [\"new_clipboard_note\"]\r\n )}\r\n ${nav}\r\n
\r\n
\r\n
`;\r\n }\r\n}\r\n"]}