<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Axel Dispatch, the Excel add-in: add-in-only (XML) manifest, shared runtime. Its URLs are the dev
     server's; the hosted builds rewrite only them and the Id (webpack.config.js), so the name, summary,
     links and version below are what Microsoft's store lists (test/manifest.test.ts). -->
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
  xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
  <Id>d748714e-c9bd-4628-bb8b-a43f7ef0f9cf</Id>
  <Version>1.2.0.0</Version>
  <ProviderName>Axel Intelligence</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Axel Dispatch" />
  <Description DefaultValue="See which deliveries will miss their window, and fix them, without leaving Excel." />
  <IconUrl DefaultValue="https://excel.axel.live/assets/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://excel.axel.live/assets/icon-64.png"/>
  <SupportUrl DefaultValue="https://axel.live/dispatch/support"/>
  <AppDomains>
    <AppDomain>https://axel.live</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Workbook"/>
  </Hosts>
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="SharedRuntime" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://excel.axel.live/taskpane.html"/>
  </DefaultSettings>
  <Permissions>ReadWriteDocument</Permissions>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">
        <Runtimes>
          <Runtime resid="Taskpane.Url" lifetime="long" />
        </Runtimes>
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title"/>
            <Description resid="GetStarted.Description"/>
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl"/>
          </GetStarted>
          <FunctionFile resid="Taskpane.Url"/>

          <!-- Ribbon: an "Axel" tab -->
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <CustomTab id="AxelTab">
              <Group id="AxelDispatchGroup">
                <Label resid="Group.Label" />
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16" />
                  <bt:Image size="32" resid="Icon.32x32" />
                  <bt:Image size="80" resid="Icon.80x80" />
                </Icon>
                <Control xsi:type="Button" id="AxelPanelButton">
                  <Label resid="PanelButton.Label" />
                  <Supertip>
                    <Title resid="PanelButton.Label" />
                    <Description resid="PanelButton.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16" />
                    <bt:Image size="32" resid="Icon.32x32" />
                    <bt:Image size="80" resid="Icon.80x80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>ButtonId1</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
                <Control xsi:type="Button" id="AxelChecksButton">
                  <Label resid="ChecksButton.Label" />
                  <Supertip>
                    <Title resid="ChecksButton.Label" />
                    <Description resid="ChecksButton.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16" />
                    <bt:Image size="32" resid="Icon.32x32" />
                    <bt:Image size="80" resid="Icon.80x80" />
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>showChecks</FunctionName>
                  </Action>
                </Control>
                <Control xsi:type="Button" id="AxelPlanButton">
                  <Label resid="PlanButton.Label" />
                  <Supertip>
                    <Title resid="PlanButton.Label" />
                    <Description resid="PlanButton.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16" />
                    <bt:Image size="32" resid="Icon.32x32" />
                    <bt:Image size="80" resid="Icon.80x80" />
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>planRoutes</FunctionName>
                  </Action>
                </Control>
                <Control xsi:type="Button" id="AxelGuideButton">
                  <Label resid="GuideButton.Label" />
                  <Supertip>
                    <Title resid="GuideButton.Label" />
                    <Description resid="GuideButton.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.Guide.16x16" />
                    <bt:Image size="32" resid="Icon.Guide.32x32" />
                    <bt:Image size="80" resid="Icon.Guide.80x80" />
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>showGuide</FunctionName>
                  </Action>
                </Control>
              </Group>
              <Label resid="Tab.Label" />
            </CustomTab>
          </ExtensionPoint>

          <!-- Right-click a cell: one "Axel" menu (an OfficeMenu takes exactly one control) -->
          <ExtensionPoint xsi:type="ContextMenu">
            <OfficeMenu id="ContextMenuCell">
              <Control xsi:type="Menu" id="AxelCellMenu">
                <Label resid="CellMenu.Label" />
                <Supertip>
                  <Title resid="CellMenu.Label" />
                  <Description resid="CellMenu.Tooltip" />
                </Supertip>
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16" />
                  <bt:Image size="32" resid="Icon.32x32" />
                  <bt:Image size="80" resid="Icon.80x80" />
                </Icon>
                <Items>
                  <Item id="AxelCellFinished">
                    <Label resid="CellFinished.Label" />
                    <Supertip>
                      <Title resid="CellFinished.Label" />
                      <Description resid="CellFinished.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16x16" />
                      <bt:Image size="32" resid="Icon.32x32" />
                      <bt:Image size="80" resid="Icon.80x80" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>finishStop</FunctionName>
                    </Action>
                  </Item>
                  <Item id="AxelCellFailed">
                    <Label resid="CellFailed.Label" />
                    <Supertip>
                      <Title resid="CellFailed.Label" />
                      <Description resid="CellFailed.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16x16" />
                      <bt:Image size="32" resid="Icon.32x32" />
                      <bt:Image size="80" resid="Icon.80x80" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>failStop</FunctionName>
                    </Action>
                  </Item>
                  <Item id="AxelCellWho">
                    <Label resid="CellWho.Label" />
                    <Supertip>
                      <Title resid="CellWho.Label" />
                      <Description resid="CellWho.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16x16" />
                      <bt:Image size="32" resid="Icon.32x32" />
                      <bt:Image size="80" resid="Icon.80x80" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>whoCanTake</FunctionName>
                    </Action>
                  </Item>
                  <Item id="AxelCellRoute">
                    <Label resid="CellRoute.Label" />
                    <Supertip>
                      <Title resid="CellRoute.Label" />
                      <Description resid="CellRoute.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16x16" />
                      <bt:Image size="32" resid="Icon.32x32" />
                      <bt:Image size="80" resid="Icon.80x80" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>sendRoute</FunctionName>
                    </Action>
                  </Item>
                </Items>
              </Control>
            </OfficeMenu>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://excel.axel.live/assets/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://excel.axel.live/assets/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://excel.axel.live/assets/icon-80.png"/>
        <bt:Image id="Icon.Guide.16x16" DefaultValue="https://excel.axel.live/assets/icon-guide-16.png"/>
        <bt:Image id="Icon.Guide.32x32" DefaultValue="https://excel.axel.live/assets/icon-guide-32.png"/>
        <bt:Image id="Icon.Guide.80x80" DefaultValue="https://excel.axel.live/assets/icon-guide-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://axel.live/dispatch" />
        <bt:Url id="Taskpane.Url" DefaultValue="https://excel.axel.live/taskpane.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="Axel is ready" />
        <bt:String id="Tab.Label" DefaultValue="Axel" />
        <bt:String id="Group.Label" DefaultValue="Dispatch" />
        <bt:String id="PanelButton.Label" DefaultValue="Axel panel" />
        <bt:String id="ChecksButton.Label" DefaultValue="Check data" />
        <bt:String id="PlanButton.Label" DefaultValue="Plan routes" />
        <bt:String id="GuideButton.Label" DefaultValue="How it works" />
        <bt:String id="CellMenu.Label" DefaultValue="Axel" />
        <bt:String id="CellFinished.Label" DefaultValue="Finished here" />
        <bt:String id="CellFailed.Label" DefaultValue="Couldn't deliver…" />
        <bt:String id="CellWho.Label" DefaultValue="Who can take this?" />
        <bt:String id="CellRoute.Label" DefaultValue="Send route" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Open the Axel tab and click Axel panel. Axel shows which deliveries will miss their window and how to fix them." />
        <bt:String id="PanelButton.Tooltip" DefaultValue="Today's routes: who will be late, and what to fix." />
        <bt:String id="ChecksButton.Tooltip" DefaultValue="Find missing addresses, windows, drivers and other problems before dispatch." />
        <bt:String id="PlanButton.Tooltip" DefaultValue="Import a delivery list and plan every driver's route. You review the routes before Driver and Stop # are written." />
        <bt:String id="GuideButton.Tooltip" DefaultValue="A one-minute tour of Axel: where things are and what to click." />
        <bt:String id="CellMenu.Tooltip" DefaultValue="Axel actions for this stop." />
        <bt:String id="CellFinished.Tooltip" DefaultValue="Mark this stop delivered now (you'll see the change before it's written)." />
        <bt:String id="CellFailed.Tooltip" DefaultValue="Mark this stop as not delivered, with a reason." />
        <bt:String id="CellWho.Tooltip" DefaultValue="Compare which driver can take this stop, and what changes for each." />
        <bt:String id="CellRoute.Tooltip" DefaultValue="Write this driver's route message: stops, windows, notes and map links." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
  <ExtendedOverrides Url="https://excel.axel.live/shortcuts.json"></ExtendedOverrides>
</OfficeApp>
