@kompasid/lit-web-components 0.9.47 → 0.9.48
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/demo/header.html +3 -3
- package/demo/paywall.html +3 -3
- package/dist/src/components/kompasid-header-account-menu/KompasHeaderAccountMenu.d.ts +1 -0
- package/dist/src/components/kompasid-header-account-menu/KompasHeaderAccountMenu.js +23 -6
- package/dist/src/components/kompasid-header-account-menu/KompasHeaderAccountMenu.js.map +1 -1
- package/dist/src/components/kompasid-paywall/KompasPaywall.js +0 -3
- package/dist/src/components/kompasid-paywall/KompasPaywall.js.map +1 -1
- package/dist/tailwind/tailwind.js +0 -5
- package/dist/tailwind/tailwind.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/kompasid-header-account-menu/KompasHeaderAccountMenu.ts +25 -8
- package/src/components/kompasid-paywall/KompasPaywall.ts +0 -4
- package/tailwind/tailwind.css +0 -5
- package/tailwind/tailwind.ts +0 -5
|
@@ -60,19 +60,17 @@ export class KompasHeaderAccountMenu extends LitElement {
|
|
|
60
60
|
/**
|
|
61
61
|
* Logout Url
|
|
62
62
|
*/
|
|
63
|
-
@property({ type: String }) logout_url = '
|
|
63
|
+
@property({ type: String }) logout_url = ''
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* Manage Account Url
|
|
67
67
|
*/
|
|
68
|
-
@property({ type: String }) manage_account_url =
|
|
69
|
-
'https://manage-account.kompas.id/manage-account/my-account'
|
|
68
|
+
@property({ type: String }) manage_account_url = ''
|
|
70
69
|
|
|
71
70
|
/**
|
|
72
71
|
* Read Later Url
|
|
73
72
|
*/
|
|
74
|
-
@property({ type: String }) read_later_url =
|
|
75
|
-
'https://www.kompas.id/baca-nanti'
|
|
73
|
+
@property({ type: String }) read_later_url = ''
|
|
76
74
|
|
|
77
75
|
// Render Total Bubble
|
|
78
76
|
private renderTotalBubble = (total: number) => {
|
|
@@ -95,6 +93,16 @@ export class KompasHeaderAccountMenu extends LitElement {
|
|
|
95
93
|
`
|
|
96
94
|
}
|
|
97
95
|
|
|
96
|
+
private komputasiUrl() {
|
|
97
|
+
return {
|
|
98
|
+
read_later_url: this.read_later_url || 'https://www.kompas.id/baca-nanti',
|
|
99
|
+
manage_account_url:
|
|
100
|
+
this.manage_account_url ||
|
|
101
|
+
'https://manage-account.kompas.id/manage-account/my-account',
|
|
102
|
+
logout_url: this.logout_url || 'https://auth.kompas.id/logout',
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
98
106
|
override async connectedCallback() {
|
|
99
107
|
super.connectedCallback()
|
|
100
108
|
}
|
|
@@ -111,7 +119,10 @@ export class KompasHeaderAccountMenu extends LitElement {
|
|
|
111
119
|
<p class="header-account-menu--title">Keranjang</p>
|
|
112
120
|
</a> -->
|
|
113
121
|
<!-- Manage Account -->
|
|
114
|
-
<a
|
|
122
|
+
<a
|
|
123
|
+
href=${this.komputasiUrl().manage_account_url}
|
|
124
|
+
class="header-account-menu--item"
|
|
125
|
+
>
|
|
115
126
|
<div class="icon icon-md icon-blue-600">
|
|
116
127
|
${unsafeSVG(getFontAwesomeIcon('fas', 'user-gear'))}
|
|
117
128
|
</div>
|
|
@@ -123,14 +134,20 @@ export class KompasHeaderAccountMenu extends LitElement {
|
|
|
123
134
|
<p class="header-account-menu--title">Transaksi</p>
|
|
124
135
|
</a> -->
|
|
125
136
|
<!-- Read Later -->
|
|
126
|
-
<a
|
|
137
|
+
<a
|
|
138
|
+
href=${this.komputasiUrl().read_later_url}
|
|
139
|
+
class="header-account-menu--item"
|
|
140
|
+
>
|
|
127
141
|
<div class="icon icon-md icon-blue-600">
|
|
128
142
|
${unsafeSVG(getFontAwesomeIcon('fas', 'bookmark'))}
|
|
129
143
|
</div>
|
|
130
144
|
<p class="header-account-menu--title">Baca Nanti</p>
|
|
131
145
|
</a>
|
|
132
146
|
<!-- Logout -->
|
|
133
|
-
<a
|
|
147
|
+
<a
|
|
148
|
+
href=${this.komputasiUrl().logout_url}
|
|
149
|
+
class="header-account-menu--item"
|
|
150
|
+
>
|
|
134
151
|
<div class="icon icon-md icon-blue-600">
|
|
135
152
|
${unsafeSVG(getFontAwesomeIcon('fas', 'right-from-bracket'))}
|
|
136
153
|
</div>
|
|
@@ -382,10 +382,6 @@ export class KompasPaywall extends LitElement {
|
|
|
382
382
|
tracker_content_variant: trackerVariant,
|
|
383
383
|
} = this
|
|
384
384
|
|
|
385
|
-
if (!publishedDate || !trackerVariant || !trackerTags) {
|
|
386
|
-
return false
|
|
387
|
-
}
|
|
388
|
-
|
|
389
385
|
const nowDate = new Date()
|
|
390
386
|
const isoDateString = publishedDate.replace(' ', 'T')
|
|
391
387
|
const publishedDateObj = new Date(isoDateString)
|
package/tailwind/tailwind.css
CHANGED
package/tailwind/tailwind.ts
CHANGED
|
@@ -2246,11 +2246,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
2246
2246
|
padding-left: 0px;
|
|
2247
2247
|
padding-right: 0px;
|
|
2248
2248
|
}
|
|
2249
|
-
|
|
2250
|
-
.sm\\:px-16 {
|
|
2251
|
-
padding-left: 4rem;
|
|
2252
|
-
padding-right: 4rem;
|
|
2253
|
-
}
|
|
2254
2249
|
}
|
|
2255
2250
|
|
|
2256
2251
|
@media (min-width: 768px) {
|