-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(keep-pwa): product page (#1202)
- Loading branch information
Showing
15 changed files
with
377 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
U2FsdGVkX185BxaW3WchKkEJMHXAhXV4Z12U+dvZOvD3JYeMf7wgfi2cekkFWq6H | ||
nMFD/dSciHQ1dDkIVpjoOlkr+vlU0+TxFX13hCjZqwov8lrYLlHG4X8pLaELriBH | ||
SR1vwuw7j5VMHRfgrh7FKgyI0xDZydq0XPStICdFuh5orNgjDOZc8nyoTxq7iWV9 | ||
waJxKqRe+yPT5pHX3fpB4N0DwY9xfBQ6VztOaP6MB3BEQKV5n4Um6YalF8GSOULV | ||
lNbMxwA2laQTltJzN1KSCEtlTCbZkr5epUGM0AlB/aN9fcWV+x299gj29KaJkHgo | ||
O8x7nhvAsFYhmEUVpIorUNcEu4jGxKHkUDOZY6k8KKjrX6ieI9tdj/waPqd+AGv1 | ||
3CxPnXB843Zvp7cQ7J/fLvfXXnO6PkXUyAhpr10TveUdx8+OIkvzp3pj9pW3ATJm | ||
/ox3KKbXvAUzAkFAnCERuoh6x5HWARoFUV2wzZA4TJXCqT7nnA6Wz17LY5SD+aHF | ||
wDZFqyfwSmxVKEq+i/uu0+21NgDUoC+WXG+NBfTTznq5ZxHRpZ1YOTOJFtwQLqDv | ||
FQ3rCwgJ18ATB6jeLsJ8VbR3gdiu2hb0XdvCijLRxgADQ2hKiMKYEAAT/piz3rFH | ||
tWFqbZ+9ZWfJDaIRYBDWduKZ6bituXjtzKW6Gr12PQiyC30JVxBvdq8X82e+oJ+H | ||
U2FsdGVkX19CMnOE6hyCgHsbGjyTKXzAX7I4d68iExuxhbWs6rVFLt4JCBC7zJ1Q | ||
S4WPsk3Y/ULKcjcmUjRcw5n65si1CAdnOEYV7sQNXa3kHCa0YrGF/SmBWf8tUrvu | ||
ho2EmqvLQUm3Ogdj9K/MBTY2L5pxOypdU8+mRP6zvrGtxM//q+I6SOg72TouHNwb | ||
pf1VkXyB7eGwJTnFPrBadqEHHn6Wg7LmhpdfErxU2os1d30lk0elzQowm0T5dODL | ||
vBpblC6s6V6XaL0gziqXw2V/LZaL++BQziSI5+V+cF18/G6ghR1Qzdm0wTRzHa/E | ||
svs8KZuh7Gb17RCykKQ8oJ8yvf6YWIxVRmaxtO1xhpRw6xRSMN7dxiyizBXiK6pa | ||
AQORte5lY2KPcTtCmsTRIlb3oJvYTufMys6SF1F9dL2T1Mu8ncXWnwuXqRWwNzXz | ||
Spr3zvjz9/laHAXR/DidA3+ALs9u8E5Edox4p/eYHQBRi9WDkW1+3TF/7o404Oc6 | ||
7p58MpbhqLkzQZXDWl6WBhwq1AFjLm5/Asj4qgWZsV9KA1lBNEi3RcMoq0JHEmIf | ||
qIkhglY8cc83uOak/xRZIxiSVLrLQ1n7Mpc2FmppCuGaVUu4i82KKw3gsgMa73vU | ||
cWtvVX8Dgia8WKdI1Oig7hDtBCmwmUhlSWJvLdeP1y6Nq2S3yHBXXeGU1ENJnUfS | ||
6ZU4ppQwdueRk4ICOsEL1lX7wN3qq1coKdTYaGV0IV33KxeCjhO5A3NipnrjY+vV | ||
FTHp+nYPYy3Su/ZbpNPtSg== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
U2FsdGVkX1/pduxljtvI8MU7n7p576dWYQhoisET5kWl7s+YS4Xny4xhxtX8VAGl | ||
3EhJ9r/3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DFYyRq0Z4gV04ethcctJnf8v7jE9LOvhb+liFpUI/6idMWaJl5WuT4+nmy | ||
KN6vAW08VTWotMc++Lli8KG5bIr/8ByRj/QgL5BfJrn9VL36c5nYHko2+UT1CRur | ||
TOInVxiIcEBxB8uHBZdQqwQCkdRoz0kFFhLg1z6IgMDZ0ilRk57v4dHNJk4dF3uz | ||
ZLz3O2pzCyZ5Uw4yn83Dam8hY72bhrKMVJC+5fdoPye5etKSrr6SgW953SybNG7n | ||
NTJf5E4qCxavMECr3YgCKyVGoHTEnnoiJd+XC7ShiTDtdf3Cav7wYRcGwx34aAOU | ||
A0JNgrZq9Ii2pdVgDukCDsjBbY3W1Nfd4WE/UfZjAk3hBv2K/CJJQpNBU1RUlVM4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { | ||
customElement, | ||
css, | ||
html, | ||
LocalizeMixin, | ||
SignalMixin, | ||
AlwatrBaseElement, | ||
UnresolvedMixin, | ||
} from '@alwatr/element'; | ||
|
||
import {languageButtonClickEventListener, topAppBarContextProvider} from '../../manager/context.js'; | ||
import '../stuff/select-product.js'; | ||
|
||
|
||
declare global { | ||
interface HTMLElementTagNameMap { | ||
'alwatr-page-product': AlwatrPageProduct; | ||
} | ||
} | ||
|
||
/** | ||
* Alwatr Select Product Page | ||
*/ | ||
@customElement('alwatr-page-product') | ||
export class AlwatrPageProduct extends UnresolvedMixin(LocalizeMixin(SignalMixin(AlwatrBaseElement))) { | ||
static override styles = css` | ||
:host { | ||
display: block; | ||
padding: calc(2 * var(--sys-spacing-track)); | ||
box-sizing: border-box; | ||
min-height: 100%; | ||
} | ||
`; | ||
|
||
override connectedCallback(): void { | ||
super.connectedCallback(); | ||
topAppBarContextProvider.setValue({ | ||
type: 'small', | ||
headlineKey: 'page_product_headline', | ||
startIcon: {icon: 'arrow-back-outline', flipRtl: true, clickSignalId: 'back_to_home_click_event'}, | ||
endIconList: [{icon: 'globe-outline', clickSignalId: languageButtonClickEventListener.id}], | ||
tinted: 2, | ||
}); | ||
} | ||
|
||
override render(): unknown { | ||
this._logger.logMethod?.('render'); | ||
|
||
return html`<alwatr-select-product></alwatr-select-product>`; | ||
} | ||
} |
Oops, something went wrong.