<!--
  ~ Copyright (c) 2020 Evolveum and contributors
  ~
  ~ Licensed under the EUPL-1.2 or later.
  -->

<archetype oid="00000000-0000-0000-0000-000000000170"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:mext="http://midpoint.evolveum.com/xml/ns/public/model/extension-3">
    <name>Dashboard report</name>
    <archetypePolicy>
        <display>
            <label>
                <orig>Dashboard report</orig>
                <translation>
                    <key>dashboardReport.label</key>
                </translation>
            </label>
            <pluralLabel>
                <orig>Dashboard reports</orig>
                <translation>
                    <key>DashboardReports.title</key>
                </translation>
            </pluralLabel>
            <icon>
                <cssClass>fa fa-tachometer-alt</cssClass>
                <color>#001F3F</color>
            </icon>
        </display>
        <itemConstraint id="1">
            <path>objectCollection</path>
            <visibility>hidden</visibility>
        </itemConstraint>
        <adminGuiConfiguration>
            <objectDetails>
                <type>ReportType</type>
                <panel id="2">
                    <identifier>engine</identifier>
                    <displayOrder>11</displayOrder>
                    <display>
                        <label>
                            <orig>Engine</orig>
                            <translation>
                                <key>engine.panel.label</key>
                            </translation>
                        </label>
                        <cssClass>fa fa-microchip</cssClass>
                        <icon>
                            <cssClass>fa fa-microchip</cssClass>
                        </icon>
                    </display>
                    <container id="4">
                        <identifier>engineContainer</identifier>
                        <display>
                            <label>
                                <orig>Engine</orig>
                                <translation>
                                    <key>engine.panel.label</key>
                                </translation>
                            </label>
                        </display>
                        <item id="5">
                            <path>dashboard/dashboardRef</path>
                        </item>
                        <item id="6">
                            <path>dashboard/showOnlyWidgetsTable</path>
                        </item>
                        <item id="7">
                            <path>dashboard/storeExportedWidgetData</path>
                        </item>
                    </container>
                    <panelType>formPanel</panelType>
                    <path>c:dashboard</path>
                    <type>c:DashboardReportEngineConfigurationType</type>
                </panel>
                <panel id="3">
                    <identifier>view</identifier>
                    <display>
                        <label>
                            <orig>View</orig>
                            <translation>
                                <key>view.panel.label</key>
                            </translation>
                        </label>
                        <cssClass>fa fa-eye</cssClass>
                        <icon>
                            <cssClass>fa fa-eye</cssClass>
                        </icon>
                    </display>
                    <container id="8">
                        <identifier>dashboard</identifier>
                        <display>
                            <label>
                                <orig>Dashboard</orig>
                                <translation>
                                    <key>dashboard.panel.label</key>
                                </translation>
                            </label>
                        </display>
                        <path>dashboard/view</path>
                    </container>
                    <panelType>formPanel</panelType>
                    <path>c:dashboard/view</path>
                    <type>c:GuiObjectListViewType</type>
                </panel>
            </objectDetails>
        </adminGuiConfiguration>
    </archetypePolicy>
    <assignment id="9">
        <identifier>holderType</identifier>
        <assignmentRelation id="10">
            <holderType>ReportType</holderType>
        </assignmentRelation>
    </assignment>
    <superArchetypeRef oid="00000000-0000-0000-0000-000000000172" type="c:ArchetypeType"/>
</archetype>
