@nymbalhq/web-components 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-HPBC3OG7.js → chunk-25US4IUO.js} +2 -2
- package/dist/{chunk-XPFGMYBV.js → chunk-2VNQP4W2.js} +57 -45
- package/dist/chunk-2VNQP4W2.js.map +1 -0
- package/dist/{chunk-PN6QKYE4.js → chunk-3EZH4TZV.js} +2 -2
- package/dist/{chunk-V55K2CS5.js → chunk-3MSI45IF.js} +3 -3
- package/dist/{chunk-FIF6GQ6U.js → chunk-3PUWCZCG.js} +2 -2
- package/dist/{chunk-N4Y5DI4X.js → chunk-4VHVA4FT.js} +2 -2
- package/dist/{chunk-RAOGZH3Z.js → chunk-5QIDEZQH.js} +4 -3
- package/dist/chunk-5QIDEZQH.js.map +1 -0
- package/dist/{chunk-LHYXNQWY.js → chunk-5TGC7EYZ.js} +3 -2
- package/dist/chunk-5TGC7EYZ.js.map +1 -0
- package/dist/{chunk-DXWMNB5F.js → chunk-5UJSC3DH.js} +3 -3
- package/dist/{chunk-B73QVSA5.js → chunk-6XFKQD6Y.js} +4 -4
- package/dist/{chunk-7JAAOVCE.js → chunk-7FFUFA65.js} +2 -2
- package/dist/{chunk-WEEHXWM3.js → chunk-7SODQLPX.js} +4 -2
- package/dist/chunk-7SODQLPX.js.map +1 -0
- package/dist/{chunk-WTEVTCIL.js → chunk-APVQOQDS.js} +4 -3
- package/dist/chunk-APVQOQDS.js.map +1 -0
- package/dist/{chunk-EYDMJNNK.js → chunk-G3WFHUOD.js} +4 -7
- package/dist/chunk-G3WFHUOD.js.map +1 -0
- package/dist/{chunk-O2YKCDR2.js → chunk-GWO6DO6C.js} +3 -3
- package/dist/{chunk-RZVFA3N5.js → chunk-GXTIW3PK.js} +5 -5
- package/dist/{chunk-SM7TASEW.js → chunk-H4SPL54G.js} +2 -2
- package/dist/{chunk-U2PU4CWB.js → chunk-HEYWS3Z5.js} +2 -2
- package/dist/{chunk-NE6UHTOT.js → chunk-IDVX6NGH.js} +3 -3
- package/dist/chunk-JTQ55WSC.js +143 -0
- package/dist/chunk-JTQ55WSC.js.map +1 -0
- package/dist/{chunk-2TPQNQYO.js → chunk-KCGPC4K7.js} +2 -2
- package/dist/{chunk-5G3C53A2.js → chunk-KQFSMUA2.js} +20 -15
- package/dist/chunk-KQFSMUA2.js.map +1 -0
- package/dist/{chunk-2XXBQPDB.js → chunk-L3TN4LCU.js} +3 -2
- package/dist/chunk-L3TN4LCU.js.map +1 -0
- package/dist/chunk-LLNNHIRA.js +155 -0
- package/dist/chunk-LLNNHIRA.js.map +1 -0
- package/dist/chunk-N6IXXCBC.js +155 -0
- package/dist/chunk-N6IXXCBC.js.map +1 -0
- package/dist/{chunk-EBMA7JGV.js → chunk-P3A57IQE.js} +2 -2
- package/dist/{chunk-H3ZBYNHV.js → chunk-POU7SSHC.js} +3 -2
- package/dist/chunk-POU7SSHC.js.map +1 -0
- package/dist/{chunk-VTQVGNVC.js → chunk-PQE55QQZ.js} +5 -4
- package/dist/chunk-PQE55QQZ.js.map +1 -0
- package/dist/{chunk-42SSME5H.js → chunk-QDUKXBVC.js} +4 -3
- package/dist/chunk-QDUKXBVC.js.map +1 -0
- package/dist/{chunk-UYSZOEOA.js → chunk-SAOKRPER.js} +3 -2
- package/dist/chunk-SAOKRPER.js.map +1 -0
- package/dist/{chunk-DR5QB5VN.js → chunk-T6LO6SQC.js} +3 -2
- package/dist/chunk-T6LO6SQC.js.map +1 -0
- package/dist/{chunk-4COVK727.js → chunk-U6TEG6FR.js} +3 -2
- package/dist/chunk-U6TEG6FR.js.map +1 -0
- package/dist/{chunk-W7D3STJH.js → chunk-UW56H3FP.js} +3 -3
- package/dist/chunk-UW56H3FP.js.map +1 -0
- package/dist/{chunk-LSQPUZK6.js → chunk-UYPL76U7.js} +4 -3
- package/dist/chunk-UYPL76U7.js.map +1 -0
- package/dist/{chunk-NW47OJVN.js → chunk-VIBXNBKZ.js} +4 -3
- package/dist/chunk-VIBXNBKZ.js.map +1 -0
- package/dist/{chunk-W23P7SI4.js → chunk-YVZBQACM.js} +2 -2
- package/dist/{chunk-5VWZ2U5K.js → chunk-YWVDSV25.js} +4 -3
- package/dist/chunk-YWVDSV25.js.map +1 -0
- package/dist/{chunk-IYT7VXFS.js → chunk-Z3LUK5CH.js} +2 -2
- package/dist/elements/nymbal-add-to-cart.js +2 -2
- package/dist/elements/nymbal-address-book.js +4 -4
- package/dist/elements/nymbal-address-form.js +3 -3
- package/dist/elements/nymbal-breadcrumb.d.ts +1 -1
- package/dist/elements/nymbal-breadcrumb.js +2 -2
- package/dist/elements/nymbal-cart-drawer.js +3 -3
- package/dist/elements/nymbal-cart-page.js +4 -4
- package/dist/elements/nymbal-category-nav.d.ts +1 -1
- package/dist/elements/nymbal-category-nav.js +2 -2
- package/dist/elements/nymbal-checkout.d.ts +4 -1
- package/dist/elements/nymbal-checkout.js +5 -5
- package/dist/elements/nymbal-image-gallery.d.ts +1 -1
- package/dist/elements/nymbal-image-gallery.js +2 -2
- package/dist/elements/nymbal-login-form.js +3 -3
- package/dist/elements/nymbal-mini-cart.js +2 -2
- package/dist/elements/nymbal-notify-me.d.ts +29 -0
- package/dist/elements/nymbal-notify-me.js +13 -0
- package/dist/elements/nymbal-notify-me.js.map +1 -0
- package/dist/elements/nymbal-order-summary.js +2 -2
- package/dist/elements/nymbal-order-timeline.d.ts +16 -0
- package/dist/elements/nymbal-order-timeline.js +10 -0
- package/dist/elements/nymbal-order-timeline.js.map +1 -0
- package/dist/elements/nymbal-payment-element.d.ts +3 -2
- package/dist/elements/nymbal-payment-element.js +2 -2
- package/dist/elements/nymbal-product-card.d.ts +1 -1
- package/dist/elements/nymbal-product-card.js +3 -3
- package/dist/elements/nymbal-product-filter.d.ts +1 -1
- package/dist/elements/nymbal-product-filter.js +2 -2
- package/dist/elements/nymbal-product-grid.js +4 -4
- package/dist/elements/nymbal-product-price.d.ts +1 -1
- package/dist/elements/nymbal-product-price.js +3 -3
- package/dist/elements/nymbal-profile-form.js +3 -3
- package/dist/elements/nymbal-quantity-selector.js +2 -2
- package/dist/elements/nymbal-recently-viewed.d.ts +41 -0
- package/dist/elements/nymbal-recently-viewed.js +13 -0
- package/dist/elements/nymbal-recently-viewed.js.map +1 -0
- package/dist/elements/nymbal-register-form.js +3 -3
- package/dist/elements/nymbal-review-form.js +3 -3
- package/dist/elements/nymbal-review-list.js +2 -2
- package/dist/elements/nymbal-search-bar.js +2 -2
- package/dist/elements/nymbal-search-results.js +4 -4
- package/dist/elements/nymbal-site-footer.js +2 -2
- package/dist/elements/nymbal-site-header.js +2 -2
- package/dist/elements/nymbal-sort-dropdown.js +2 -2
- package/dist/elements/nymbal-stock-badge.d.ts +1 -1
- package/dist/elements/nymbal-stock-badge.js +3 -3
- package/dist/elements/nymbal-toast.js +2 -2
- package/dist/elements/nymbal-variant-selector.js +2 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +62 -50
- package/dist/{nymbal-payment-element-Bt8EF42T.d.ts → nymbal-payment-element-CqdaDwrR.d.ts} +1 -1
- package/dist/{nymbal-product-card-C8HkE_rG.d.ts → nymbal-product-card-Dv_WUQcP.d.ts} +1 -1
- package/dist/register-components.d.ts +5 -1
- package/dist/register-components.js +39 -36
- package/dist/ssr/index.d.ts +1 -1
- package/dist/ssr/index.js +39 -36
- package/dist/ssr/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-2XXBQPDB.js.map +0 -1
- package/dist/chunk-42SSME5H.js.map +0 -1
- package/dist/chunk-4COVK727.js.map +0 -1
- package/dist/chunk-5G3C53A2.js.map +0 -1
- package/dist/chunk-5VWZ2U5K.js.map +0 -1
- package/dist/chunk-DR5QB5VN.js.map +0 -1
- package/dist/chunk-EYDMJNNK.js.map +0 -1
- package/dist/chunk-H3ZBYNHV.js.map +0 -1
- package/dist/chunk-LHYXNQWY.js.map +0 -1
- package/dist/chunk-LSQPUZK6.js.map +0 -1
- package/dist/chunk-NW47OJVN.js.map +0 -1
- package/dist/chunk-RAOGZH3Z.js.map +0 -1
- package/dist/chunk-UYSZOEOA.js.map +0 -1
- package/dist/chunk-VTQVGNVC.js.map +0 -1
- package/dist/chunk-W7D3STJH.js.map +0 -1
- package/dist/chunk-WEEHXWM3.js.map +0 -1
- package/dist/chunk-WTEVTCIL.js.map +0 -1
- package/dist/chunk-XPFGMYBV.js.map +0 -1
- /package/dist/{chunk-HPBC3OG7.js.map → chunk-25US4IUO.js.map} +0 -0
- /package/dist/{chunk-PN6QKYE4.js.map → chunk-3EZH4TZV.js.map} +0 -0
- /package/dist/{chunk-V55K2CS5.js.map → chunk-3MSI45IF.js.map} +0 -0
- /package/dist/{chunk-FIF6GQ6U.js.map → chunk-3PUWCZCG.js.map} +0 -0
- /package/dist/{chunk-N4Y5DI4X.js.map → chunk-4VHVA4FT.js.map} +0 -0
- /package/dist/{chunk-DXWMNB5F.js.map → chunk-5UJSC3DH.js.map} +0 -0
- /package/dist/{chunk-B73QVSA5.js.map → chunk-6XFKQD6Y.js.map} +0 -0
- /package/dist/{chunk-7JAAOVCE.js.map → chunk-7FFUFA65.js.map} +0 -0
- /package/dist/{chunk-O2YKCDR2.js.map → chunk-GWO6DO6C.js.map} +0 -0
- /package/dist/{chunk-RZVFA3N5.js.map → chunk-GXTIW3PK.js.map} +0 -0
- /package/dist/{chunk-SM7TASEW.js.map → chunk-H4SPL54G.js.map} +0 -0
- /package/dist/{chunk-U2PU4CWB.js.map → chunk-HEYWS3Z5.js.map} +0 -0
- /package/dist/{chunk-NE6UHTOT.js.map → chunk-IDVX6NGH.js.map} +0 -0
- /package/dist/{chunk-2TPQNQYO.js.map → chunk-KCGPC4K7.js.map} +0 -0
- /package/dist/{chunk-EBMA7JGV.js.map → chunk-P3A57IQE.js.map} +0 -0
- /package/dist/{chunk-W23P7SI4.js.map → chunk-YVZBQACM.js.map} +0 -0
- /package/dist/{chunk-IYT7VXFS.js.map → chunk-Z3LUK5CH.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
baseStyles,
|
|
8
8
|
parsedJson,
|
|
9
9
|
propertiesOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G3WFHUOD.js";
|
|
11
11
|
|
|
12
12
|
// src/components/site-header.ts
|
|
13
13
|
import { css, html, nothing } from "lit";
|
|
@@ -236,4 +236,4 @@ var NymbalSiteHeader = class extends NymbalElement {
|
|
|
236
236
|
export {
|
|
237
237
|
NymbalSiteHeader
|
|
238
238
|
};
|
|
239
|
-
//# sourceMappingURL=chunk-
|
|
239
|
+
//# sourceMappingURL=chunk-YVZBQACM.js.map
|
|
@@ -2,7 +2,7 @@ import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
|
2
2
|
import {
|
|
3
3
|
NymbalProductCard,
|
|
4
4
|
cardProductOf
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GXTIW3PK.js";
|
|
6
6
|
import {
|
|
7
7
|
buttonStyles
|
|
8
8
|
} from "./chunk-GHXTJ2CF.js";
|
|
@@ -11,9 +11,10 @@ import {
|
|
|
11
11
|
baseStyles,
|
|
12
12
|
parsedJson,
|
|
13
13
|
propertiesOf
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-G3WFHUOD.js";
|
|
15
15
|
|
|
16
16
|
// src/components/product-grid.ts
|
|
17
|
+
import "@nymbalhq/sdk/ns/product-list";
|
|
17
18
|
import { css, html, nothing } from "lit";
|
|
18
19
|
var SCHEMA = {
|
|
19
20
|
tag: "nymbal-product-grid",
|
|
@@ -146,4 +147,4 @@ var NymbalProductGrid = class extends NymbalElement {
|
|
|
146
147
|
export {
|
|
147
148
|
NymbalProductGrid
|
|
148
149
|
};
|
|
149
|
-
//# sourceMappingURL=chunk-
|
|
150
|
+
//# sourceMappingURL=chunk-YWVDSV25.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/product-grid.ts"],"sourcesContent":["import '@nymbalhq/sdk/ns/product-list'\nimport { css, html, nothing } from 'lit'\nimport {\n baseStyles,\n NymbalElement,\n parsedJson,\n propertiesOf,\n type ElementSchema,\n} from '../base-element.js'\nimport { buttonStyles } from '../view-styles.js'\nimport { cardProductOf, NymbalProductCard } from './product-card.js'\n\nconst SCHEMA: ElementSchema = {\n tag: 'nymbal-product-grid',\n reactName: 'ProductGrid',\n // `products`: the cards a server read. `source=\"product-list\"`: the grid is a listing's, and follows the product-list\n // store once it settles (a sort, a filter, load more); without it the grid is static. `has-more`: the server's page\n // has a next one, so its render shows load more exactly when the store will. `lazy`: the grid sits below the fold\n // (a product page's related grid), so no card is eager and its images never outrank the page's LCP image.\n attributes: [\n { name: 'products', prop: 'products', type: 'json' },\n { name: 'source', prop: 'source', type: 'string' },\n { name: 'has-more', prop: 'hasMore', type: 'boolean' },\n { name: 'lazy', prop: 'lazy', type: 'boolean' },\n ],\n events: [],\n parts: ['grid', 'empty', 'count', 'load-more'],\n slots: ['empty'],\n children: false,\n}\n\n/** The first row of a wide grid: those cards' images are the page's likely LCP. */\nconst EAGER_CARDS = 4\n\ninterface Shown {\n products: unknown[]\n hasMore: boolean\n loading: boolean\n}\n\n/** A grid of `nymbal-product-card`s, a listing's (following the product-list store) or a static one. */\nexport class NymbalProductGrid extends NymbalElement {\n static override schema = SCHEMA\n static uses = [NymbalProductCard]\n static override properties = propertiesOf(SCHEMA)\n static override styles = [\n baseStyles,\n buttonStyles,\n css`\n :host {\n display: block;\n font-family: var(--nymbal-font-family, system-ui, -apple-system, sans-serif);\n color: var(--nymbal-color-text, #18181b);\n }\n [part~='count'] {\n margin: 0 0 var(--nymbal-spacing-md, 1rem);\n font-size: var(--nymbal-font-size-sm, 0.875rem);\n color: var(--nymbal-color-text-muted, #71717a);\n }\n [part~='grid'] {\n display: grid;\n gap: var(--nymbal-spacing-md, 1rem);\n grid-template-columns: 1fr;\n }\n @media (min-width: 641px) {\n [part~='grid'] {\n grid-template-columns: repeat(2, 1fr);\n gap: var(--nymbal-spacing-lg, 1.5rem);\n }\n }\n @media (min-width: 1025px) {\n [part~='grid'] {\n grid-template-columns: repeat(4, 1fr);\n }\n }\n [part~='empty'] {\n padding: var(--nymbal-spacing-xl, 2rem) 0;\n text-align: center;\n color: var(--nymbal-color-text-muted, #71717a);\n }\n .more {\n display: flex;\n justify-content: center;\n margin-top: var(--nymbal-spacing-xl, 2rem);\n }\n `,\n ]\n\n declare products: unknown\n declare source: string | undefined\n declare hasMore: boolean | undefined\n declare lazy: boolean | undefined\n\n private get listing(): boolean {\n return this.source === 'product-list'\n }\n\n protected override stores() {\n return this.listing ? [this.client.productList] : []\n }\n\n protected override storeSettled(): void {\n // A store already settled when this grid connected may be loading this page's listing now; its last answer was\n // another listing's (a soft navigation), so the server's cards stand until this load settles.\n if (this.client.productList.getState().loading) return\n this.products = undefined\n this.hasMore = undefined\n }\n\n /** The server's cards while they stand, else (a listing with a client) the product-list store's. */\n private shown(): Shown {\n const given = parsedJson<unknown[]>(this, 'products', this.products)\n if (given === undefined && this.listing && this.readsStores) {\n const state = this.client.productList.getState()\n return {\n products: state.products,\n hasMore: state.pagination.hasMore,\n loading: state.loading,\n }\n }\n return {\n products: Array.isArray(given) ? given : [],\n hasMore: this.hasMore === true,\n loading: false,\n }\n }\n\n protected override render() {\n const { products, hasMore, loading } = this.shown()\n const count = products.length\n return html`\n ${this.listing\n ? html`<p part=\"count\">${count} product${count === 1 ? '' : 's'}</p>`\n : nothing}\n ${count === 0\n ? loading\n ? nothing\n : html`<div part=\"empty\"><slot name=\"empty\">No products found.</slot></div>`\n : html`\n <div part=\"grid\">\n ${products.map(\n (p, i) =>\n html`<nymbal-product-card\n product=${JSON.stringify(\n cardProductOf(p as Parameters<typeof cardProductOf>[0]),\n )}\n ?eager=${this.lazy !== true && i < EAGER_CARDS}\n ></nymbal-product-card>`,\n )}\n </div>\n `}\n ${this.listing && hasMore\n ? html`\n <div class=\"more\">\n <button\n type=\"button\"\n part=\"load-more\"\n class=\"btn btn-secondary\"\n data-testid=\"load-more\"\n ?disabled=${loading}\n @click=${() => void this.client.productList.loadMore()}\n >\n Load more\n </button>\n </div>\n `\n : nothing}\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO;AACP,SAAS,KAAK,MAAM,eAAe;AAWnC,IAAM,SAAwB;AAAA,EAC5B,KAAK;AAAA,EACL,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA,EAKX,YAAY;AAAA,IACV,EAAE,MAAM,YAAY,MAAM,YAAY,MAAM,OAAO;AAAA,IACnD,EAAE,MAAM,UAAU,MAAM,UAAU,MAAM,SAAS;AAAA,IACjD,EAAE,MAAM,YAAY,MAAM,WAAW,MAAM,UAAU;AAAA,IACrD,EAAE,MAAM,QAAQ,MAAM,QAAQ,MAAM,UAAU;AAAA,EAChD;AAAA,EACA,QAAQ,CAAC;AAAA,EACT,OAAO,CAAC,QAAQ,SAAS,SAAS,WAAW;AAAA,EAC7C,OAAO,CAAC,OAAO;AAAA,EACf,UAAU;AACZ;AAGA,IAAM,cAAc;AASb,IAAM,oBAAN,cAAgC,cAAc;AAAA,EACnD,OAAgB,SAAS;AAAA,EACzB,OAAO,OAAO,CAAC,iBAAiB;AAAA,EAChC,OAAgB,aAAa,aAAa,MAAM;AAAA,EAChD,OAAgB,SAAS;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAsCF;AAAA,EAOA,IAAY,UAAmB;AAC7B,WAAO,KAAK,WAAW;AAAA,EACzB;AAAA,EAEmB,SAAS;AAC1B,WAAO,KAAK,UAAU,CAAC,KAAK,OAAO,WAAW,IAAI,CAAC;AAAA,EACrD;AAAA,EAEmB,eAAqB;AAGtC,QAAI,KAAK,OAAO,YAAY,SAAS,EAAE,QAAS;AAChD,SAAK,WAAW;AAChB,SAAK,UAAU;AAAA,EACjB;AAAA;AAAA,EAGQ,QAAe;AACrB,UAAM,QAAQ,WAAsB,MAAM,YAAY,KAAK,QAAQ;AACnE,QAAI,UAAU,UAAa,KAAK,WAAW,KAAK,aAAa;AAC3D,YAAM,QAAQ,KAAK,OAAO,YAAY,SAAS;AAC/C,aAAO;AAAA,QACL,UAAU,MAAM;AAAA,QAChB,SAAS,MAAM,WAAW;AAAA,QAC1B,SAAS,MAAM;AAAA,MACjB;AAAA,IACF;AACA,WAAO;AAAA,MACL,UAAU,MAAM,QAAQ,KAAK,IAAI,QAAQ,CAAC;AAAA,MAC1C,SAAS,KAAK,YAAY;AAAA,MAC1B,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EAEmB,SAAS;AAC1B,UAAM,EAAE,UAAU,SAAS,QAAQ,IAAI,KAAK,MAAM;AAClD,UAAM,QAAQ,SAAS;AACvB,WAAO;AAAA,QACH,KAAK,UACH,uBAAuB,KAAK,WAAW,UAAU,IAAI,KAAK,GAAG,SAC7D,OAAO;AAAA,QACT,UAAU,IACR,UACE,UACA,6EACF;AAAA;AAAA,gBAEM,SAAS;AAAA,MACT,CAAC,GAAG,MACF;AAAA,8BACY,KAAK;AAAA,QACb,cAAc,CAAwC;AAAA,MACxD,CAAC;AAAA,6BACQ,KAAK,SAAS,QAAQ,IAAI,WAAW;AAAA;AAAA,IAEpD,CAAC;AAAA;AAAA,WAEJ;AAAA,QACH,KAAK,WAAW,UACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAOkB,OAAO;AAAA,yBACV,MAAM,KAAK,KAAK,OAAO,YAAY,SAAS,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,cAM5D,OAAO;AAAA;AAAA,EAEf;AACF;","names":[]}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
baseStyles,
|
|
8
8
|
parsedJson,
|
|
9
9
|
propertiesOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G3WFHUOD.js";
|
|
11
11
|
|
|
12
12
|
// src/components/category-nav.ts
|
|
13
13
|
import { css, html, nothing } from "lit";
|
|
@@ -102,4 +102,4 @@ var NymbalCategoryNav = class extends NymbalElement {
|
|
|
102
102
|
export {
|
|
103
103
|
NymbalCategoryNav
|
|
104
104
|
};
|
|
105
|
-
//# sourceMappingURL=chunk-
|
|
105
|
+
//# sourceMappingURL=chunk-Z3LUK5CH.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalAddToCart
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5TGC7EYZ.js";
|
|
5
|
+
import "../chunk-G3WFHUOD.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalAddToCart
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalAddressBook
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-6XFKQD6Y.js";
|
|
5
|
+
import "../chunk-3MSI45IF.js";
|
|
6
|
+
import "../chunk-3EZH4TZV.js";
|
|
7
7
|
import "../chunk-GHXTJ2CF.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-G3WFHUOD.js";
|
|
9
9
|
import "../chunk-UCEVCLQ7.js";
|
|
10
10
|
export {
|
|
11
11
|
NymbalAddressBook
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalAddressForm
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-3MSI45IF.js";
|
|
5
|
+
import "../chunk-3EZH4TZV.js";
|
|
6
6
|
import "../chunk-GHXTJ2CF.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-G3WFHUOD.js";
|
|
8
8
|
import "../chunk-UCEVCLQ7.js";
|
|
9
9
|
export {
|
|
10
10
|
NymbalAddressForm
|
|
@@ -9,7 +9,7 @@ declare class NymbalBreadcrumb extends NymbalElement {
|
|
|
9
9
|
static properties: lit.PropertyDeclarations;
|
|
10
10
|
static styles: lit.CSSResult[];
|
|
11
11
|
items: unknown;
|
|
12
|
-
protected render():
|
|
12
|
+
protected render(): lit.TemplateResult<1> | typeof nothing;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export { NymbalBreadcrumb };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalBreadcrumb
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-4VHVA4FT.js";
|
|
5
5
|
import "../chunk-LO2EW5YP.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-G3WFHUOD.js";
|
|
7
7
|
import "../chunk-UCEVCLQ7.js";
|
|
8
8
|
export {
|
|
9
9
|
NymbalBreadcrumb
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalCartDrawer
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-UYPL76U7.js";
|
|
5
|
+
import "../chunk-T6LO6SQC.js";
|
|
6
|
+
import "../chunk-G3WFHUOD.js";
|
|
7
7
|
import "../chunk-UCEVCLQ7.js";
|
|
8
8
|
export {
|
|
9
9
|
NymbalCartDrawer
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalCartPage
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-PQE55QQZ.js";
|
|
5
|
+
import "../chunk-25US4IUO.js";
|
|
6
6
|
import "../chunk-RVSKX2RX.js";
|
|
7
7
|
import "../chunk-GHXTJ2CF.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-T6LO6SQC.js";
|
|
9
|
+
import "../chunk-G3WFHUOD.js";
|
|
10
10
|
import "../chunk-UCEVCLQ7.js";
|
|
11
11
|
export {
|
|
12
12
|
NymbalCartPage
|
|
@@ -9,7 +9,7 @@ declare class NymbalCategoryNav extends NymbalElement {
|
|
|
9
9
|
static properties: lit.PropertyDeclarations;
|
|
10
10
|
static styles: lit.CSSResult[];
|
|
11
11
|
categories: unknown;
|
|
12
|
-
protected render():
|
|
12
|
+
protected render(): lit.TemplateResult<1> | typeof nothing;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export { NymbalCategoryNav };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalCategoryNav
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-Z3LUK5CH.js";
|
|
5
5
|
import "../chunk-LO2EW5YP.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-G3WFHUOD.js";
|
|
7
7
|
import "../chunk-UCEVCLQ7.js";
|
|
8
8
|
export {
|
|
9
9
|
NymbalCategoryNav
|
|
@@ -61,7 +61,10 @@ declare class NymbalCheckout extends NymbalElement {
|
|
|
61
61
|
private place;
|
|
62
62
|
private confirm;
|
|
63
63
|
private stay;
|
|
64
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* Place Order stays disabled from here through the page's navigation. `orderKey`, when the answer carried one, lets
|
|
66
|
+
* the order's page read it with no session.
|
|
67
|
+
*/
|
|
65
68
|
private leaveFor;
|
|
66
69
|
private readonly onBillingSame;
|
|
67
70
|
private back;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalCheckout
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KQFSMUA2.js";
|
|
5
|
+
import "../chunk-3MSI45IF.js";
|
|
6
|
+
import "../chunk-3EZH4TZV.js";
|
|
5
7
|
import "../chunk-RVSKX2RX.js";
|
|
6
|
-
import "../chunk-V55K2CS5.js";
|
|
7
|
-
import "../chunk-PN6QKYE4.js";
|
|
8
8
|
import "../chunk-GHXTJ2CF.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-T6LO6SQC.js";
|
|
10
|
+
import "../chunk-G3WFHUOD.js";
|
|
11
11
|
import "../chunk-UCEVCLQ7.js";
|
|
12
12
|
export {
|
|
13
13
|
NymbalCheckout
|
|
@@ -13,7 +13,7 @@ declare class NymbalImageGallery extends NymbalElement {
|
|
|
13
13
|
private shownIndex;
|
|
14
14
|
protected willUpdate(changed: PropertyValues): void;
|
|
15
15
|
private show;
|
|
16
|
-
protected render():
|
|
16
|
+
protected render(): lit.TemplateResult<1> | typeof nothing;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export { NymbalImageGallery };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalImageGallery
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-HEYWS3Z5.js";
|
|
5
|
+
import "../chunk-G3WFHUOD.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalImageGallery
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalLoginForm
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-QDUKXBVC.js";
|
|
5
|
+
import "../chunk-3EZH4TZV.js";
|
|
6
6
|
import "../chunk-GHXTJ2CF.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-G3WFHUOD.js";
|
|
8
8
|
import "../chunk-UCEVCLQ7.js";
|
|
9
9
|
export {
|
|
10
10
|
NymbalLoginForm
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalMiniCart
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-L3TN4LCU.js";
|
|
5
|
+
import "../chunk-G3WFHUOD.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalMiniCart
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { nothing } from 'lit';
|
|
3
|
+
import { ElementSchema } from '../index.js';
|
|
4
|
+
import { N as NymbalVariantElement } from '../selected-variant-Dym0shlJ.js';
|
|
5
|
+
import '@nymbalhq/sdk';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The alert form for the variant the page shows: "email me when it's back" for an out-of-stock variant, "email me if
|
|
9
|
+
* the price drops" for an in-stock one. One subscribe per submission: `requestSubmit()` and Enter fire `submit` while
|
|
10
|
+
* the button is disabled, so the pending flag, not the button, is the guard (as `NymbalFormElement`'s). An accepted
|
|
11
|
+
* request stays accepted for its variant and kind, so a second click cannot send a second confirmation.
|
|
12
|
+
*/
|
|
13
|
+
declare class NymbalNotifyMe extends NymbalVariantElement {
|
|
14
|
+
static schema: ElementSchema;
|
|
15
|
+
static properties: lit.PropertyDeclarations;
|
|
16
|
+
static styles: lit.CSSResult[];
|
|
17
|
+
variantId: string | undefined;
|
|
18
|
+
stock: number | undefined;
|
|
19
|
+
private pending;
|
|
20
|
+
private error;
|
|
21
|
+
/** `${variantId}:${kind}` of each accepted request. */
|
|
22
|
+
private readonly acceptedFor;
|
|
23
|
+
/** The variant the form is for and its stock: the store's selected one once it holds this product. */
|
|
24
|
+
private followed;
|
|
25
|
+
private readonly onSubmit;
|
|
26
|
+
protected render(): lit.TemplateResult<1> | typeof nothing;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { NymbalNotifyMe };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalNotifyMe
|
|
4
|
+
} from "../chunk-LLNNHIRA.js";
|
|
5
|
+
import "../chunk-SAOKRPER.js";
|
|
6
|
+
import "../chunk-3EZH4TZV.js";
|
|
7
|
+
import "../chunk-GHXTJ2CF.js";
|
|
8
|
+
import "../chunk-G3WFHUOD.js";
|
|
9
|
+
import "../chunk-UCEVCLQ7.js";
|
|
10
|
+
export {
|
|
11
|
+
NymbalNotifyMe
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=nymbal-notify-me.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalOrderSummary
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-H4SPL54G.js";
|
|
5
5
|
import "../chunk-RVSKX2RX.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-G3WFHUOD.js";
|
|
7
7
|
import "../chunk-UCEVCLQ7.js";
|
|
8
8
|
export {
|
|
9
9
|
NymbalOrderSummary
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { nothing } from 'lit';
|
|
3
|
+
import { NymbalElement, ElementSchema } from '../index.js';
|
|
4
|
+
import '@nymbalhq/sdk';
|
|
5
|
+
|
|
6
|
+
/** What has happened to an order, oldest first, each entry with its time; the last is the order's current step. */
|
|
7
|
+
declare class NymbalOrderTimeline extends NymbalElement {
|
|
8
|
+
static schema: ElementSchema;
|
|
9
|
+
static properties: lit.PropertyDeclarations;
|
|
10
|
+
static styles: lit.CSSResult[];
|
|
11
|
+
entries: unknown;
|
|
12
|
+
timeZone: string | undefined;
|
|
13
|
+
protected render(): lit.TemplateResult<1> | typeof nothing;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { NymbalOrderTimeline };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalOrderTimeline
|
|
4
|
+
} from "../chunk-N6IXXCBC.js";
|
|
5
|
+
import "../chunk-G3WFHUOD.js";
|
|
6
|
+
import "../chunk-UCEVCLQ7.js";
|
|
7
|
+
export {
|
|
8
|
+
NymbalOrderTimeline
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=nymbal-order-timeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { N as NymbalPaymentElement } from '../nymbal-payment-element-
|
|
1
|
+
export { N as NymbalPaymentElement } from '../nymbal-payment-element-CqdaDwrR.js';
|
|
2
2
|
import 'lit';
|
|
3
|
-
import '@nymbalhq/sdk';
|
|
3
|
+
import '@nymbalhq/sdk/core';
|
|
4
4
|
import '../base-element-CPMgAdyQ.js';
|
|
5
|
+
import '@nymbalhq/sdk';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalPaymentElement
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-UW56H3FP.js";
|
|
5
|
+
import "../chunk-G3WFHUOD.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalPaymentElement
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalProductCard
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-RVSKX2RX.js";
|
|
4
|
+
} from "../chunk-GXTIW3PK.js";
|
|
6
5
|
import "../chunk-LO2EW5YP.js";
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-RVSKX2RX.js";
|
|
7
|
+
import "../chunk-G3WFHUOD.js";
|
|
8
8
|
import "../chunk-UCEVCLQ7.js";
|
|
9
9
|
export {
|
|
10
10
|
NymbalProductCard
|
|
@@ -16,7 +16,7 @@ declare class NymbalProductFilter extends NymbalElement {
|
|
|
16
16
|
static styles: lit.CSSResult[];
|
|
17
17
|
facets: unknown;
|
|
18
18
|
/** Both: a wrapper may set `source` after the element has connected. */
|
|
19
|
-
protected stores(): (_nymbalhq_sdk.
|
|
19
|
+
protected stores(): (_nymbalhq_sdk.ProductListStore | _nymbalhq_sdk.SearchStore)[];
|
|
20
20
|
/** With `source="search"` the `facets` a server read stand until the search settles; a listing's always show. */
|
|
21
21
|
protected storeSettled(store: Subscribable): void;
|
|
22
22
|
/** The facets this render shows, and whether each value is checked. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalProductFilter
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-7SODQLPX.js";
|
|
5
|
+
import "../chunk-G3WFHUOD.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalProductFilter
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalProductGrid
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-YWVDSV25.js";
|
|
5
|
+
import "../chunk-GXTIW3PK.js";
|
|
6
|
+
import "../chunk-LO2EW5YP.js";
|
|
6
7
|
import "../chunk-RVSKX2RX.js";
|
|
7
8
|
import "../chunk-GHXTJ2CF.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-EYDMJNNK.js";
|
|
9
|
+
import "../chunk-G3WFHUOD.js";
|
|
10
10
|
import "../chunk-UCEVCLQ7.js";
|
|
11
11
|
export {
|
|
12
12
|
NymbalProductGrid
|
|
@@ -12,7 +12,7 @@ declare class NymbalProductPrice extends NymbalVariantElement {
|
|
|
12
12
|
priceMinor: number | undefined;
|
|
13
13
|
currency: string | undefined;
|
|
14
14
|
compareAtMinor: number | undefined;
|
|
15
|
-
protected render():
|
|
15
|
+
protected render(): lit.TemplateResult<1> | typeof nothing;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export { NymbalProductPrice };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalProductPrice
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5UJSC3DH.js";
|
|
5
|
+
import "../chunk-SAOKRPER.js";
|
|
6
6
|
import "../chunk-RVSKX2RX.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-G3WFHUOD.js";
|
|
8
8
|
import "../chunk-UCEVCLQ7.js";
|
|
9
9
|
export {
|
|
10
10
|
NymbalProductPrice
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalProfileForm
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-APVQOQDS.js";
|
|
5
|
+
import "../chunk-3EZH4TZV.js";
|
|
6
6
|
import "../chunk-GHXTJ2CF.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-G3WFHUOD.js";
|
|
8
8
|
import "../chunk-UCEVCLQ7.js";
|
|
9
9
|
export {
|
|
10
10
|
NymbalProfileForm
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalQuantitySelector
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-25US4IUO.js";
|
|
5
|
+
import "../chunk-G3WFHUOD.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalQuantitySelector
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { PropertyValues, nothing } from 'lit';
|
|
3
|
+
import { NymbalElement, ElementSchema } from '../index.js';
|
|
4
|
+
import { cardProductOf } from '../ssr/index.js';
|
|
5
|
+
import { NymbalProductCard } from './nymbal-product-card.js';
|
|
6
|
+
import '@nymbalhq/sdk';
|
|
7
|
+
|
|
8
|
+
type Listed = Parameters<typeof cardProductOf>[0] & {
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The shopper's recently viewed products, from the store: one page view records `current` once, then reads the list
|
|
13
|
+
* once. It renders nothing until the list has something besides `current`, and nothing without a client (a server).
|
|
14
|
+
*/
|
|
15
|
+
declare class NymbalRecentlyViewed extends NymbalElement {
|
|
16
|
+
static schema: ElementSchema;
|
|
17
|
+
static uses: (typeof NymbalProductCard)[];
|
|
18
|
+
static properties: {
|
|
19
|
+
listed: {
|
|
20
|
+
state: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
static styles: lit.CSSResult[];
|
|
24
|
+
current: string | undefined;
|
|
25
|
+
limit: number | undefined;
|
|
26
|
+
listed: Listed[];
|
|
27
|
+
/** The last `current` recorded: a re-render, a reconnect or the same value again records nothing. */
|
|
28
|
+
private recorded;
|
|
29
|
+
private started;
|
|
30
|
+
/** Reads run one after another, so each new `current` is recorded before the list it changes is read. */
|
|
31
|
+
private reads;
|
|
32
|
+
constructor();
|
|
33
|
+
private get shown();
|
|
34
|
+
/** After the first update, so a `current` set as the element connects is recorded before the first read. */
|
|
35
|
+
protected updated(changed: PropertyValues): void;
|
|
36
|
+
private queueRead;
|
|
37
|
+
private read;
|
|
38
|
+
protected render(): lit.TemplateResult<1> | typeof nothing;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { NymbalRecentlyViewed };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalRecentlyViewed
|
|
4
|
+
} from "../chunk-JTQ55WSC.js";
|
|
5
|
+
import "../chunk-GXTIW3PK.js";
|
|
6
|
+
import "../chunk-LO2EW5YP.js";
|
|
7
|
+
import "../chunk-RVSKX2RX.js";
|
|
8
|
+
import "../chunk-G3WFHUOD.js";
|
|
9
|
+
import "../chunk-UCEVCLQ7.js";
|
|
10
|
+
export {
|
|
11
|
+
NymbalRecentlyViewed
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=nymbal-recently-viewed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalRegisterForm
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-VIBXNBKZ.js";
|
|
5
|
+
import "../chunk-3EZH4TZV.js";
|
|
6
6
|
import "../chunk-GHXTJ2CF.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-G3WFHUOD.js";
|
|
8
8
|
import "../chunk-UCEVCLQ7.js";
|
|
9
9
|
export {
|
|
10
10
|
NymbalRegisterForm
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalReviewForm
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-IDVX6NGH.js";
|
|
5
|
+
import "../chunk-3EZH4TZV.js";
|
|
6
6
|
import "../chunk-GHXTJ2CF.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-G3WFHUOD.js";
|
|
8
8
|
import "../chunk-UCEVCLQ7.js";
|
|
9
9
|
export {
|
|
10
10
|
NymbalReviewForm
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalReviewList
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-7FFUFA65.js";
|
|
5
|
+
import "../chunk-G3WFHUOD.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalReviewList
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalSearchBar
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-U6TEG6FR.js";
|
|
5
|
+
import "../chunk-G3WFHUOD.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalSearchBar
|