@kompasid/lit-web-components 0.9.50 → 0.9.52
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/src/components/kompasid-paywall-body/KompasPaywallBody.js +5 -5
- package/dist/src/components/kompasid-paywall-body/KompasPaywallBody.js.map +1 -1
- package/dist/src/components/kompasid-paywall-modal-register/KompasPaywallModalRegister.js +16 -19
- package/dist/src/components/kompasid-paywall-modal-register/KompasPaywallModalRegister.js.map +1 -1
- package/dist/src/components/kompasid-widget-recirculations-default/KompasWidgetRecirculationsDefault.js +2 -2
- package/dist/src/components/kompasid-widget-recirculations-default/KompasWidgetRecirculationsDefault.js.map +1 -1
- package/dist/tailwind/tailwind.js +12 -13
- package/dist/tailwind/tailwind.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/kompasid-paywall-body/KompasPaywallBody.ts +5 -5
- package/src/components/kompasid-paywall-modal-register/KompasPaywallModalRegister.ts +16 -19
- package/src/components/kompasid-widget-recirculations-default/KompasWidgetRecirculationsDefault.ts +2 -2
- package/tailwind/tailwind.css +12 -13
- package/tailwind/tailwind.ts +12 -13
|
@@ -27,22 +27,19 @@ export class KompasPaywallModalRegister extends LitElement {
|
|
|
27
27
|
height: 100%;
|
|
28
28
|
background-color: rgba(0, 0, 0, 0.5);
|
|
29
29
|
display: flex;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
align-items: center;
|
|
32
30
|
z-index: 1000;
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
.modal-content {
|
|
36
34
|
background-color: #222222;
|
|
37
35
|
border-radius: 12px;
|
|
38
|
-
overflow: hidden;
|
|
39
36
|
position: relative;
|
|
40
37
|
}
|
|
41
38
|
|
|
42
39
|
.close-button {
|
|
43
40
|
position: absolute;
|
|
44
|
-
top:
|
|
45
|
-
right:
|
|
41
|
+
top: 32px;
|
|
42
|
+
right: 32px;
|
|
46
43
|
background: none;
|
|
47
44
|
border: none;
|
|
48
45
|
font-size: 1.5em;
|
|
@@ -293,7 +290,7 @@ export class KompasPaywallModalRegister extends LitElement {
|
|
|
293
290
|
name="nameUser"
|
|
294
291
|
type="text"
|
|
295
292
|
placeholder=""
|
|
296
|
-
class="p-2 bg-grey-
|
|
293
|
+
class="p-2 bg-grey-600 rounded border border-grey-500"
|
|
297
294
|
.value="${this.formData.nameUser}"
|
|
298
295
|
@input="${this.handleInput}"
|
|
299
296
|
@blur="${this.handleBlur}"
|
|
@@ -326,7 +323,7 @@ export class KompasPaywallModalRegister extends LitElement {
|
|
|
326
323
|
name="email"
|
|
327
324
|
type="email"
|
|
328
325
|
placeholder=""
|
|
329
|
-
class="p-2 bg-grey-
|
|
326
|
+
class="p-2 bg-grey-600 rounded border border-grey-500"
|
|
330
327
|
.value="${this.formData.email}"
|
|
331
328
|
@input="${this.handleInput}"
|
|
332
329
|
@blur="${this.handleBlur}"
|
|
@@ -359,7 +356,7 @@ export class KompasPaywallModalRegister extends LitElement {
|
|
|
359
356
|
name="nomor"
|
|
360
357
|
type="tel"
|
|
361
358
|
placeholder=""
|
|
362
|
-
class="p-2 bg-grey-
|
|
359
|
+
class="p-2 bg-grey-600 rounded border border-grey-500"
|
|
363
360
|
.value="${this.formData.nomor}"
|
|
364
361
|
@input="${this.handleInput}"
|
|
365
362
|
@blur="${this.handleBlur}"
|
|
@@ -391,7 +388,7 @@ export class KompasPaywallModalRegister extends LitElement {
|
|
|
391
388
|
name="nameCompany"
|
|
392
389
|
type="text"
|
|
393
390
|
placeholder=""
|
|
394
|
-
class="p-2 bg-grey-
|
|
391
|
+
class="p-2 bg-grey-600 rounded border border-grey-500"
|
|
395
392
|
.value="${this.formData.nameCompany}"
|
|
396
393
|
@input="${this.handleInput}"
|
|
397
394
|
@blur="${this.handleBlur}"
|
|
@@ -427,7 +424,7 @@ export class KompasPaywallModalRegister extends LitElement {
|
|
|
427
424
|
render() {
|
|
428
425
|
return this.showModalRegister
|
|
429
426
|
? html`<div
|
|
430
|
-
class="
|
|
427
|
+
class="p-4 gap-2 font-sans flex flex-wrap items-center justify-between rounded-lg md:mx-0 w-full min-h-[68px] bg-white relative"
|
|
431
428
|
>
|
|
432
429
|
<div class="flex flex-col gap-1">
|
|
433
430
|
<span class="text-xs leading-tight text-grey-500">
|
|
@@ -445,7 +442,7 @@ export class KompasPaywallModalRegister extends LitElement {
|
|
|
445
442
|
? 'bg-green-500 text-white'
|
|
446
443
|
: 'bg-white border border-green-500 text-green-500'} flex items-center"
|
|
447
444
|
>
|
|
448
|
-
<h6 class="text-
|
|
445
|
+
<h6 class="text-sm font-bold py-2 px-4">
|
|
449
446
|
${this.dataModalRegister.card.textButton}
|
|
450
447
|
</h6>
|
|
451
448
|
</button>
|
|
@@ -459,14 +456,14 @@ export class KompasPaywallModalRegister extends LitElement {
|
|
|
459
456
|
@keydown=${() => this.closeModal()}
|
|
460
457
|
>
|
|
461
458
|
<div
|
|
462
|
-
class="modal-content max-w-7xl w-full flex flex-col lg:flex-row max-h-full overflow-auto"
|
|
459
|
+
class="modal-content max-w-7xl mx-auto w-full flex flex-col lg:flex-row max-h-full overflow-auto lg:overflow-hidden"
|
|
463
460
|
@click="${(e: { stopPropagation: () => any }) =>
|
|
464
461
|
e.stopPropagation()}"
|
|
465
462
|
@keydown=${(e: { stopPropagation: () => any }) =>
|
|
466
463
|
e.stopPropagation()}
|
|
467
464
|
>
|
|
468
465
|
<button class="close-button" @click="${this.closeModal}">
|
|
469
|
-
${unsafeSVG(getFontAwesomeIcon('fa', 'times',
|
|
466
|
+
${unsafeSVG(getFontAwesomeIcon('fa', 'times', 32, 32))}
|
|
470
467
|
</button>
|
|
471
468
|
<div
|
|
472
469
|
class="bg-grey-600 lg:max-w-[515px] w-full p-4 md:p-16 justify-between items-center flex flex-col relative"
|
|
@@ -553,22 +550,22 @@ export class KompasPaywallModalRegister extends LitElement {
|
|
|
553
550
|
Butuh bantuan? Hubungi
|
|
554
551
|
<button
|
|
555
552
|
@click=${this.customerServiceClicked}
|
|
556
|
-
class="font-bold underline"
|
|
553
|
+
class="font-bold underline text-white"
|
|
557
554
|
>
|
|
558
555
|
${this.dataModalRegister.modal.registerPopUp.hotline
|
|
559
556
|
.text}
|
|
560
557
|
</button>
|
|
561
558
|
</div>
|
|
562
559
|
</div>
|
|
563
|
-
<div class="w-full h-full">
|
|
560
|
+
<div class="w-full h-full lg:overflow-auto">
|
|
564
561
|
${this.templateForm()}
|
|
565
562
|
<div
|
|
566
|
-
class="block lg:hidden text-grey-300 py-5 bg-grey-600 w-full text-center"
|
|
563
|
+
class="block lg:hidden text-grey-300 py-5 bg-grey-600 w-full text-center text-xs"
|
|
567
564
|
>
|
|
568
565
|
Butuh bantuan? Hubungi
|
|
569
566
|
<button
|
|
570
567
|
@click=${this.customerServiceClicked}
|
|
571
|
-
class="font-bold underline"
|
|
568
|
+
class="font-bold underline text-white"
|
|
572
569
|
>
|
|
573
570
|
${this.dataModalRegister.modal.registerPopUp.hotline
|
|
574
571
|
.text}
|
|
@@ -586,14 +583,14 @@ export class KompasPaywallModalRegister extends LitElement {
|
|
|
586
583
|
@keydown=${() => this.closeModal()}
|
|
587
584
|
>
|
|
588
585
|
<div
|
|
589
|
-
class="modal-content max-w-[624px] max-h-[577px] items-end flex flex-col justify-end h-full w-full p-4 md:p-10"
|
|
586
|
+
class="modal-content m-auto max-w-[624px] max-h-[577px] items-end flex flex-col justify-end h-full w-full p-4 md:p-10"
|
|
590
587
|
@click="${(e: { stopPropagation: () => any }) =>
|
|
591
588
|
e.stopPropagation()}"
|
|
592
589
|
@keydown=${(e: { stopPropagation: () => any }) =>
|
|
593
590
|
e.stopPropagation()}
|
|
594
591
|
>
|
|
595
592
|
<button class="close-button" @click="${this.closeModal}">
|
|
596
|
-
${unsafeSVG(getFontAwesomeIcon('fa', 'times',
|
|
593
|
+
${unsafeSVG(getFontAwesomeIcon('fa', 'times', 32, 32))}
|
|
597
594
|
</button>
|
|
598
595
|
${this.dataModalRegister.modal.successPopUp.logo
|
|
599
596
|
? html`
|
package/src/components/kompasid-widget-recirculations-default/KompasWidgetRecirculationsDefault.ts
CHANGED
|
@@ -75,7 +75,7 @@ export class KompasWidgetRecirculationsDefault extends LitElement {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
async relatedArticles() {
|
|
78
|
-
const kompasApiAi = 'https://
|
|
78
|
+
const kompasApiAi = 'https://api.kompas.id/icm/api/v1'
|
|
79
79
|
|
|
80
80
|
// Constructing parameters
|
|
81
81
|
const params = new URLSearchParams()
|
|
@@ -86,7 +86,7 @@ export class KompasWidgetRecirculationsDefault extends LitElement {
|
|
|
86
86
|
params.append('slugs', this.slugs)
|
|
87
87
|
|
|
88
88
|
// Constructing the URL with parameters
|
|
89
|
-
const endpoint = `${kompasApiAi}/
|
|
89
|
+
const endpoint = `${kompasApiAi}/recommendations?${params.toString()}`
|
|
90
90
|
|
|
91
91
|
const response = await fetch(endpoint, {
|
|
92
92
|
headers: {
|
package/tailwind/tailwind.css
CHANGED
|
@@ -2371,10 +2371,6 @@ video {
|
|
|
2371
2371
|
margin-bottom: 1.25rem;
|
|
2372
2372
|
}
|
|
2373
2373
|
|
|
2374
|
-
.md\:ml-2 {
|
|
2375
|
-
margin-left: 0.5rem;
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
2374
|
.md\:ml-6 {
|
|
2379
2375
|
margin-left: 1.5rem;
|
|
2380
2376
|
}
|
|
@@ -2435,11 +2431,6 @@ video {
|
|
|
2435
2431
|
max-height: 220px;
|
|
2436
2432
|
}
|
|
2437
2433
|
|
|
2438
|
-
.md\:max-h-fit {
|
|
2439
|
-
max-height: -moz-fit-content;
|
|
2440
|
-
max-height: fit-content;
|
|
2441
|
-
}
|
|
2442
|
-
|
|
2443
2434
|
.md\:min-h-\[244px\] {
|
|
2444
2435
|
min-height: 244px;
|
|
2445
2436
|
}
|
|
@@ -2821,15 +2812,15 @@ video {
|
|
|
2821
2812
|
height: 2rem;
|
|
2822
2813
|
}
|
|
2823
2814
|
|
|
2824
|
-
.lg\:max-h-none {
|
|
2825
|
-
max-height: none;
|
|
2826
|
-
}
|
|
2827
|
-
|
|
2828
2815
|
.lg\:max-h-fit {
|
|
2829
2816
|
max-height: -moz-fit-content;
|
|
2830
2817
|
max-height: fit-content;
|
|
2831
2818
|
}
|
|
2832
2819
|
|
|
2820
|
+
.lg\:max-h-none {
|
|
2821
|
+
max-height: none;
|
|
2822
|
+
}
|
|
2823
|
+
|
|
2833
2824
|
.lg\:min-h-\[220px\] {
|
|
2834
2825
|
min-height: 220px;
|
|
2835
2826
|
}
|
|
@@ -2911,6 +2902,14 @@ video {
|
|
|
2911
2902
|
column-gap: 1.5rem;
|
|
2912
2903
|
}
|
|
2913
2904
|
|
|
2905
|
+
.lg\:overflow-auto {
|
|
2906
|
+
overflow: auto;
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
.lg\:overflow-hidden {
|
|
2910
|
+
overflow: hidden;
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2914
2913
|
.lg\:px-0 {
|
|
2915
2914
|
padding-left: 0px;
|
|
2916
2915
|
padding-right: 0px;
|
package/tailwind/tailwind.ts
CHANGED
|
@@ -2394,10 +2394,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
2394
2394
|
margin-bottom: 1.25rem;
|
|
2395
2395
|
}
|
|
2396
2396
|
|
|
2397
|
-
.md\\:ml-2 {
|
|
2398
|
-
margin-left: 0.5rem;
|
|
2399
|
-
}
|
|
2400
|
-
|
|
2401
2397
|
.md\\:ml-6 {
|
|
2402
2398
|
margin-left: 1.5rem;
|
|
2403
2399
|
}
|
|
@@ -2458,11 +2454,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
2458
2454
|
max-height: 220px;
|
|
2459
2455
|
}
|
|
2460
2456
|
|
|
2461
|
-
.md\\:max-h-fit {
|
|
2462
|
-
max-height: -moz-fit-content;
|
|
2463
|
-
max-height: fit-content;
|
|
2464
|
-
}
|
|
2465
|
-
|
|
2466
2457
|
.md\\:min-h-\\[244px\\] {
|
|
2467
2458
|
min-height: 244px;
|
|
2468
2459
|
}
|
|
@@ -2844,15 +2835,15 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
2844
2835
|
height: 2rem;
|
|
2845
2836
|
}
|
|
2846
2837
|
|
|
2847
|
-
.lg\\:max-h-none {
|
|
2848
|
-
max-height: none;
|
|
2849
|
-
}
|
|
2850
|
-
|
|
2851
2838
|
.lg\\:max-h-fit {
|
|
2852
2839
|
max-height: -moz-fit-content;
|
|
2853
2840
|
max-height: fit-content;
|
|
2854
2841
|
}
|
|
2855
2842
|
|
|
2843
|
+
.lg\\:max-h-none {
|
|
2844
|
+
max-height: none;
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2856
2847
|
.lg\\:min-h-\\[220px\\] {
|
|
2857
2848
|
min-height: 220px;
|
|
2858
2849
|
}
|
|
@@ -2934,6 +2925,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
|
|
|
2934
2925
|
column-gap: 1.5rem;
|
|
2935
2926
|
}
|
|
2936
2927
|
|
|
2928
|
+
.lg\\:overflow-auto {
|
|
2929
|
+
overflow: auto;
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
.lg\\:overflow-hidden {
|
|
2933
|
+
overflow: hidden;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2937
2936
|
.lg\\:px-0 {
|
|
2938
2937
|
padding-left: 0px;
|
|
2939
2938
|
padding-right: 0px;
|