UNPKG

poe-custom-elements

Version:

Path of Exile custom elements

192 lines 6.81 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; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; import { maxedStackSize } from './jsons/maxedStackSize.js'; import { divination } from './jsons/tabs/divination.js'; import { fragments } from './jsons/tabs/myfragments.js'; import { blight } from './jsons/tabs/blight.js'; import { essence } from './jsons/tabs/essence.js'; import { influence } from './jsons/influence.js'; import { fracturedGloves } from './jsons/fracturedGloves.js'; import { socketed } from './jsons/socketed.js'; import { rogueMarkers } from './jsons/rogueMarkers.js'; import { allflame } from './jsons/allflame.js'; import { elementalBow } from './jsons/elementalBow.js'; import { LitElement, html, css } from 'lit'; import { customElement, state } from 'lit/decorators.js'; import './elements/poe-item.js'; import './elements/poe-stash-tab.js'; import './elements/item-info/poe-item-info.js'; import './elements/item-info/poe-item-info-header.js'; import quadJson from './jsons/QuadStash.json' with { type: 'json' }; import premJson from './jsons/PremiumStash.json' with { type: 'json' }; import influenceJson from './jsons/influence.json' with { type: 'json' }; import garbageJson from './jsons/garbage.json' with { type: 'json' }; import { a as aTab } from './jsons/tabs/a.js'; import { quadStd } from './jsons/tabs/quadStd.js'; import { currencyTab } from './jsons/tabs/currencyTab.js'; let AppRoot = class AppRoot extends LitElement { constructor() { super(...arguments); this.quad = quadJson; this.prem = premJson; this.item = item(); this.influenceTab = influenceJson; this.garbageTab = garbageJson; } render() { return html `<poe-item .item=${maxedStackSize}></poe-item>`; } Items() { return html ` <poe-item .item=${aTab.items.find(i => i.baseType === 'Plated Maul')}></poe-item> <poe-item .item=${socketed}></poe-item> <poe-item .item=${aTab.items.find(i => i.baseType === 'Plated Maul')}></poe-item> <poe-item .item=${fracturedGloves}></poe-item> <poe-item .item=${rogueMarkers}></poe-item>`; } Tabs() { return html ` <div style="display:flex; flex-wrap:wrap; gap:0.5rem"> <!-- <poe-stash-tab .tab=${essence}></poe-stash-tab> <poe-stash-tab .tab=${currencyTab}></poe-stash-tab> <poe-stash-tab .tab=${this.quad}></poe-stash-tab> <poe-stash-tab style="margin-top: 2px" .tab=${this.prem}></poe-stash-tab> <poe-stash-tab .tab=${this.garbageTab}></poe-stash-tab> <poe-stash-tab .tab=${this.influenceTab}></poe-stash-tab> --> <poe-stash-tab .tab=${divination}></poe-stash-tab> <poe-stash-tab .tab=${blight}></poe-stash-tab> <poe-stash-tab .tab=${fragments}></poe-stash-tab> <poe-stash-tab .tab=${quadStd}></poe-stash-tab> </div> `; } ItemInfos() { return html `<poe-item-info .item=${influence}></poe-item-info> <poe-item-info .item=${socketed}></poe-item-info> <poe-item-info .item=${allflame}></poe-item-info> <poe-item-info .item=${elementalBow}></poe-item-info> <poe-item-info .item=${aTab.items.find(i => i.baseType === 'Plated Maul')}></poe-item-info>`; } static { this.styles = css ` * { padding: 0; margin: 0; box-sizing: border-box; } `; } }; __decorate([ state(), __metadata("design:type", Object) ], AppRoot.prototype, "quad", void 0); __decorate([ state(), __metadata("design:type", Object) ], AppRoot.prototype, "prem", void 0); __decorate([ state(), __metadata("design:type", Object) ], AppRoot.prototype, "item", void 0); __decorate([ state(), __metadata("design:type", Object) ], AppRoot.prototype, "influenceTab", void 0); __decorate([ state(), __metadata("design:type", Object) ], AppRoot.prototype, "garbageTab", void 0); AppRoot = __decorate([ customElement('app-root') ], AppRoot); export { AppRoot }; function item() { return { baseType: 'Glorious Leather', explicitMods: [ '+13% chance to Suppress Spell Damage', '+100 to Evasion Rating', '+77 to maximum Life', '+28% to Fire Resistance', '+39% to Lightning Resistance', ], frameType: 2, h: 3, icon: 'https://web.poecdn.com/gen/image/WzI1LDE0LHsiZiI6IjJESXRlbXMvQXJtb3Vycy9Cb2R5QXJtb3Vycy9Cb2R5RGV4MUMiLCJ3IjoyLCJoIjozLCJzY2FsZSI6MX1d/47360dcc4a/BodyDex1C.png', id: 'd30b5d8f1b66c43e24051760aff4afc71b1e00f21b299baffeb7b7394fef6575', identified: true, ilvl: 62, inventoryId: 'Stash1', league: 'Hardcore Necropolis', name: 'Empyrean Shelter', properties: [ { displayMode: 0, name: 'Evasion Rating', type: 17, values: [['617', 1]], }, ], rarity: 'Rare', requirements: [ { displayMode: 0, name: 'Level', type: 62, values: [['48', 0]], }, { displayMode: 1, name: 'Dex', type: 64, values: [['124', 0]], }, ], socketedItems: [], sockets: [ { attr: 'S', group: 0, sColour: 'R', }, { attr: 'S', group: 0, sColour: 'R', }, { attr: 'I', group: 1, sColour: 'B', }, { attr: 'D', group: 1, sColour: 'G', }, { attr: 'D', group: 2, sColour: 'G', }, { attr: 'D', group: 2, sColour: 'G', }, ], typeLine: 'Glorious Leather', verified: false, w: 2, x: 22, y: 12, }; } //# sourceMappingURL=app-root.js.map