/*!
 *
 * Copyright (c) 2020-2023 Diality Inc. - All Rights Reserved.
 * \copyright
 * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN
 * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER.
 *
 * \file    ConfirmTreatmentSubTable.qml
 * \author  (last)      Behrouz NematiPour
 * \date    (last)      01-Feb-2021
 * \author  (original)  Peter Lucia
 * \date    (original)  22-Sep-2020
 *
 */

// Qt
import QtQuick 2.12

// Project

//  Qml imports
import "qrc:/globals"
import "qrc:/components"

Rectangle { id: _root
    property var prescriptionKeys   : []
    property var prescriptionValues : []
    property var operatingKeys      : []
    property var operatingValues    : []
    objectName: "ConfirmTreatmentSubTable"
    color: Colors.transparent

    Column { id: _prescriptionColumn
        anchors {
            top: parent.top
            topMargin: Variables.sliderTextMargin
        }
        width: _root.width / 2
        Repeater { id: _prescription_repeater
            model: prescriptionKeys
            ConfirmTreatmentTableEntry {
                key     : prescriptionKeys[index]
                value   : prescriptionValues[index]
            }
        }
    }

    Column { id: _operatingColumn
        anchors {
            top         : parent.top
            topMargin   : Variables.sliderTextMargin
            left        : _prescriptionColumn.right
        }
        width: _root.width / 2
        Repeater { id: _operating_repeater
            model: operatingKeys
            ConfirmTreatmentTableEntry {
                key  : operatingKeys[index]
                value: operatingValues[index]
            }
        }
    }
}
