UNPKG

@dodona/papyros

Version:

Scratchpad for multiple programming languages in the browser.

41 lines (40 loc) 1.64 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; import { customElement } from "lit/decorators.js"; import { PapyrosElement } from "../PapyrosElement"; import { RunState } from "../../state/Runner"; import { css, html } from "lit"; import "@material/web/progress/circular-progress"; let RunStateEl = class RunStateEl extends PapyrosElement { static get styles() { return css ` :host { display: flex; align-items: center; gap: 0.5rem; } md-circular-progress { --md-circular-progress-size: 2rem; } `; } render() { if (!this.papyros.runner.stateMessage) return html ``; return html ` ${this.papyros.runner.state === RunState.Ready ? "" : html ` <md-circular-progress indeterminate></md-circular-progress> `} ${this.papyros.runner.stateMessage} `; } }; RunStateEl = __decorate([ customElement("p-run-state") ], RunStateEl); export { RunStateEl }; //# sourceMappingURL=RunState.js.map