UNPKG

@senx/discovery-plugin-marauder

Version:

Discovery plugin - Marauder's map

27 lines (21 loc) 4.14 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-67a70a17.js'); const discoverySpinnerCss = "/*!\n * Copyright 2022 SenX S.A.S.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *//*!\n * Copyright 2022-2024 SenX S.A.S.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */:host span.message{color:var(--warp-view-font-color, #404040);padding-left:5px}:host .hidden{color:transparent;font-size:0;height:0;overflow:hidden}:host .loader{font-size:10px;display:inline-block;text-indent:-9999em;width:12px;height:11px;border-radius:50%;background:var(--warp-view-spinner-color, #ff9900);background:-moz-linear-gradient(left, var(--warp-view-spinner-color, #ff9900) 10%, rgba(0, 0, 0, 0) 42%);background:-webkit-linear-gradient(left, var(--warp-view-spinner-color, #ff9900) 10%, rgba(0, 0, 0, 0) 42%);background:-o-linear-gradient(left, var(--warp-view-spinner-color, #ff9900) 10%, rgba(0, 0, 0, 0) 42%);background:-ms-linear-gradient(left, var(--warp-view-spinner-color, #ff9900) 10%, rgba(0, 0, 0, 0) 42%);background:-webkit-gradient(linear, left top, right top, color-stop(10%, var(--warp-view-spinner-color, #ff9900)), color-stop(42%, rgba(0, 0, 0, 0)));background:linear-gradient(to right, var(--warp-view-spinner-color, #ff9900) 10%, rgba(0, 0, 0, 0) 42%);position:relative;-webkit-animation:load3 1.4s infinite linear;animation:load3 1.4s infinite linear;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}:host .loader:before{width:50%;height:50%;background:var(--warp-view-spinner-color, #ff9900);border-radius:100% 0 0 0;position:absolute;top:0;left:0;content:\"\"}:host .loader:after{background:#ffffff;width:75%;height:75%;border-radius:50%;content:\"\";margin:auto;position:absolute;top:0;left:0;bottom:0;right:0}@-webkit-keyframes load3{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load3{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"; const DiscoverySpinnerStyle0 = discoverySpinnerCss; const DiscoverySpinner = class { constructor(hostRef) { index.registerInstance(this, hostRef); this.message = 'Loading...'; } componentDidLoad() { this.message = this.el.innerText || this.message; } render() { return (index.h(index.Host, { key: '617b18a85683ff7e360bc50c112ffcb4268dac71' }, index.h("div", { key: '6bf3674a0d1a78f1496709b1b5bbf654b1a13ebb', class: "loader" }), index.h("span", { key: 'abdbc8aad4c21f293a1eb9eb3b09910090f7bf0f', class: "message" }, this.message), index.h("span", { key: '0561cd56d5ab02f09f81ea3748759fec1dcaf4c1', class: "hidden" }, index.h("slot", { key: '94da956abaf6c1ee367dd62ec766ac7e9e3dcb3c' })))); } get el() { return index.getElement(this); } }; DiscoverySpinner.style = DiscoverySpinnerStyle0; exports.discovery_spinner = DiscoverySpinner; //# sourceMappingURL=discovery-spinner.cjs.entry.js.map