diff --git a/src/components/dialog/CommitButton.vue b/src/components/dialog/CommitButton.vue new file mode 100644 index 000000000..a41cb1b06 --- /dev/null +++ b/src/components/dialog/CommitButton.vue @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/dialog/Dialog.vue b/src/components/dialog/Dialog.vue new file mode 100644 index 000000000..d44072207 --- /dev/null +++ b/src/components/dialog/Dialog.vue @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Task is on-going… + + + Task did succeed + + + Task did fail + + + + + + + Close + + + + + Close + + + + + Close + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/dialog/DialogButton.vue b/src/components/dialog/DialogButton.vue new file mode 100644 index 000000000..57fbe8f5b --- /dev/null +++ b/src/components/dialog/DialogButton.vue @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/dialog/DialogController.ts b/src/components/dialog/DialogController.ts new file mode 100644 index 000000000..ef7074316 --- /dev/null +++ b/src/components/dialog/DialogController.ts @@ -0,0 +1,38 @@ +/*- + * + * Hedera Mirror Node Explorer + * + * Copyright (C) 2021 - 2024 Hedera Hashgraph, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +import {ref} from "vue"; + +export class DialogController { + + public readonly visible = ref(false) + public readonly mode = ref(DialogMode.Input) + + public readonly handleClose = () => { + this.visible.value = false + } +} + +export enum DialogMode { + Input, + Busy, + Error, + Success +} diff --git a/src/components/dialog/DialogStatus.vue b/src/components/dialog/DialogStatus.vue new file mode 100644 index 000000000..d25e8799d --- /dev/null +++ b/src/components/dialog/DialogStatus.vue @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + X + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/dialog/DialogTitle.vue b/src/components/dialog/DialogTitle.vue new file mode 100644 index 000000000..962a5cdce --- /dev/null +++ b/src/components/dialog/DialogTitle.vue @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + +