19import Lomiri.Components 1.3
20import Dekko.Controls 1.0
22import Dekko.Mail.API 1.0
30 property var baseUrl: undefined
32 property Component baseComponent: null
33 property alias stackCount: internalStack.depth
34 property alias currentItem: internalStack.currentItem
35 property bool immediatePush: false
36 property alias delegate: internalStack.delegate
37 property bool pushBeforeReplace: false
39 property string stageID: ""
44 initialItem: baseComponent !== null ? baseComponent : baseUrl
51 function popImmediate() {
57 type: ViewKeys.pushToStageArea
59 if (message.stageID === stageID) {
61 internalStack.push({item: message.page, immediate: true, properties: message.properties})
63 internalStack.push({item: message.page, properties: message.properties})
69 type: ViewKeys.replaceTopStageAreaItem
71 if (message.stageID === stageID) {
72 if (pushBeforeReplace && stackCount === 1) {
73 ViewActions.pushToStageArea(stageID, message.page, message.properties)
77 internalStack.push({item: message.page, replace: true, immediate: true, properties: message.properties})
79 internalStack.push({item: message.page, replace: true, properties: message.properties})
86 type: ViewKeys.popStageArea
88 if (message.stageID === stageID) {