@coras-io/embed 0.8.3 → 0.10.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/CHANGELOG.md +20 -0
- package/dist/components/attraction-card/long/attraction-long-card.styles.js +14 -4
- package/dist/components/attraction-card/short/attraction-short-card.styles.js +3 -1
- package/dist/components/locations-results/locations-results.component.d.ts +3 -0
- package/dist/components/locations-results/locations-results.component.js +16 -2
- package/dist/components/loyalty-badge/loyalty-badge.component.d.ts +34 -0
- package/dist/components/loyalty-badge/loyalty-badge.component.js +141 -0
- package/dist/components/loyalty-badge/loyalty-badge.d.ts +8 -0
- package/dist/components/loyalty-badge/loyalty-badge.js +6 -0
- package/dist/components/loyalty-badge/loyalty-badge.styles.js +61 -0
- package/dist/components/loyalty-badge/loyalty-badge.types.d.ts +6 -0
- package/dist/components/loyalty-badge/loyalty-badge.utils.d.ts +23 -0
- package/dist/components/loyalty-badge/loyalty-badge.utils.js +30 -0
- package/dist/containers/basket/basket.component.d.ts +2 -1
- package/dist/containers/basket/basket.component.js +17 -44
- package/dist/containers/navbar/navbar.styles.js +4 -2
- package/dist/contexts/properties.context.d.ts +8 -0
- package/dist/contexts/properties.context.js +5 -0
- package/dist/core/events.d.ts +1 -0
- package/dist/core/types/api-schema.d.ts +183 -5
- package/dist/core/types/core/index.d.ts +0 -1
- package/dist/core/types/index.d.ts +0 -1
- package/dist/core/utils/loyalty.d.ts +37 -4
- package/dist/core/utils/loyalty.js +14 -5
- package/dist/core/utils/seats.d.ts +6 -0
- package/dist/core/utils/seats.js +40 -0
- package/dist/index.d.ts +1 -1
- package/dist/locales/ar-SA.d.ts +5 -0
- package/dist/locales/ar-SA.js +5 -0
- package/dist/locales/da-DK.d.ts +5 -0
- package/dist/locales/da-DK.js +5 -0
- package/dist/locales/de-DE.d.ts +5 -0
- package/dist/locales/de-DE.js +5 -0
- package/dist/locales/en-IE.d.ts +5 -0
- package/dist/locales/en-IE.js +5 -0
- package/dist/locales/en-US.d.ts +5 -0
- package/dist/locales/en-US.js +5 -0
- package/dist/locales/es-ES.d.ts +5 -0
- package/dist/locales/es-ES.js +5 -0
- package/dist/locales/fr-FR.d.ts +5 -0
- package/dist/locales/fr-FR.js +5 -0
- package/dist/locales/fr-MA.d.ts +5 -0
- package/dist/locales/fr-MA.js +5 -0
- package/dist/locales/is-IS.d.ts +5 -0
- package/dist/locales/is-IS.js +5 -0
- package/dist/locales/it-IT.d.ts +5 -0
- package/dist/locales/it-IT.js +5 -0
- package/dist/locales/ms-MY.d.ts +5 -0
- package/dist/locales/ms-MY.js +5 -0
- package/dist/locales/nb-NO.d.ts +5 -0
- package/dist/locales/nb-NO.js +5 -0
- package/dist/locales/pl-PL.d.ts +5 -0
- package/dist/locales/pl-PL.js +5 -0
- package/dist/locales/pt-PT.d.ts +5 -0
- package/dist/locales/pt-PT.js +5 -0
- package/dist/locales/sv-SE.d.ts +5 -0
- package/dist/locales/sv-SE.js +5 -0
- package/dist/locales/th-TH.d.ts +5 -0
- package/dist/locales/th-TH.js +5 -0
- package/dist/locales/tr-TR.d.ts +5 -0
- package/dist/locales/tr-TR.js +5 -0
- package/dist/locales/zh-CN.d.ts +5 -0
- package/dist/locales/zh-CN.js +5 -0
- package/dist/locales/zh-HK.d.ts +5 -0
- package/dist/locales/zh-HK.js +5 -0
- package/dist/mixins/base.mixin.d.ts +2 -0
- package/dist/mixins/base.mixin.js +8 -1
- package/dist/mixins/location-search/location-search.js +88 -13
- package/dist/sdk/page-registry.js +2 -0
- package/dist/sdk/theme.d.ts +1 -1
- package/dist/sdk/types.d.ts +9 -1
- package/dist/sdk/validation.js +51 -0
- package/dist/styles/tokens.d.ts +1 -1
- package/dist/styles/tokens.generated.d.ts +1 -1
- package/dist/styles/tokens.generated.js +1 -1
- package/dist/styles/tokens.metadata.js +18 -0
- package/dist/views/chrome-only-page/chrome-only-page.component.d.ts +1 -0
- package/dist/views/details-page/details-page.component.d.ts +2 -1
- package/dist/views/details-page/details-page.component.js +15 -5
- package/dist/views/details-page/partials/location-highlights/location-highlights.component.d.ts +2 -0
- package/dist/views/details-page/partials/location-highlights/location-highlights.component.js +16 -2
- package/dist/views/help-page/help-page.component.d.ts +1 -0
- package/dist/views/landing-page/landing-page.component.d.ts +2 -3
- package/dist/views/landing-page/landing-page.component.js +10 -18
- package/dist/views/payment-page/controllers/form-validation.controller.d.ts +4 -1
- package/dist/views/payment-page/controllers/form-validation.controller.js +7 -2
- package/dist/views/payment-page/partials/confirmation/confirmation.component.js +49 -27
- package/dist/views/payment-page/payment-page.component.d.ts +6 -0
- package/dist/views/payment-page/payment-page.component.js +76 -8
- package/dist/views/payment-page/payment-page.loyalty.d.ts +13 -0
- package/dist/views/payment-page/payment-page.loyalty.js +80 -0
- package/dist/views/payment-page/payment-page.styles.js +16 -0
- package/dist/views/payment-page/payment-page.utils.d.ts +1 -1
- package/dist/views/payment-page/payment-page.utils.js +19 -1
- package/dist/views/payment-page/services/payment-api.service.d.ts +1 -0
- package/dist/views/search-page/search-page.component.d.ts +1 -0
- package/dist/views/search-page/search-page.component.js +9 -0
- package/dist/views/suggestion-widget/suggestion-widget.component.d.ts +1 -0
- package/dist/views/suggestion-widget/suggestion-widget.component.js +11 -1
- package/package.json +5 -5
- package/dist/components/points/points.component.d.ts +0 -9
- package/dist/components/points/points.component.js +0 -36
- package/dist/components/points/points.d.ts +0 -8
- package/dist/components/points/points.js +0 -6
- package/dist/components/points/points.styles.js +0 -47
- package/dist/core/types/core/points.d.ts +0 -4
- package/dist/mixins/points/points.d.ts +0 -3
- package/dist/mixins/points/points.js +0 -30
- package/dist/mixins/points/types.d.ts +0 -8
- package/dist/mixins/points/types.js +0 -1
- /package/dist/components/{points/points.styles.d.ts → loyalty-badge/loyalty-badge.styles.d.ts} +0 -0
- /package/dist/{core/types/core/points.js → components/loyalty-badge/loyalty-badge.types.js} +0 -0
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { css } from "lit";
|
|
2
|
-
import component from "../../styles/defaults/component.js";
|
|
3
|
-
export default css `
|
|
4
|
-
${component}
|
|
5
|
-
|
|
6
|
-
:host {
|
|
7
|
-
--points-background-color: var(--coras-color-success-background);
|
|
8
|
-
--points-font-size: var(--coras-font-size-base);
|
|
9
|
-
--points-font-weight: var(--coras-font-weight-semibold);
|
|
10
|
-
--points-font-color: var(--coras-color-text);
|
|
11
|
-
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
width: 100%;
|
|
15
|
-
background-color: var(--points-background-color);
|
|
16
|
-
padding-inline: 20px;
|
|
17
|
-
padding-bottom: 8px;
|
|
18
|
-
|
|
19
|
-
.logo {
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
display: flex;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
align-items: center;
|
|
24
|
-
padding-block: 10px;
|
|
25
|
-
|
|
26
|
-
img {
|
|
27
|
-
height: 100%;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.body {
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
gap: 4px;
|
|
35
|
-
justify-content: flex-end;
|
|
36
|
-
align-items: center;
|
|
37
|
-
font-size: var(--points-font-size);
|
|
38
|
-
font-weight: var(--points-font-weight);
|
|
39
|
-
color: var(--points-font-color);
|
|
40
|
-
|
|
41
|
-
.points-icon {
|
|
42
|
-
height: var(--points-font-size);
|
|
43
|
-
width: var(--points-font-size);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
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;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { property } from "lit/decorators.js";
|
|
8
|
-
export const PointsMixin = (superClass) => {
|
|
9
|
-
class PointsMixinElement extends superClass {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.pointsLogoUrl = "";
|
|
13
|
-
this.pointsIconUrl = "";
|
|
14
|
-
this.pointsUnit = "";
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
property({ type: String, attribute: "points-logo-url" })
|
|
19
|
-
], PointsMixinElement.prototype, "pointsLogoUrl", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
property({ type: String, attribute: "points-icon-url" })
|
|
22
|
-
], PointsMixinElement.prototype, "pointsIconUrl", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
property({ type: String, attribute: "points-unit" })
|
|
25
|
-
], PointsMixinElement.prototype, "pointsUnit", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
property({ attribute: false })
|
|
28
|
-
], PointsMixinElement.prototype, "calculateRewardPoints", void 0);
|
|
29
|
-
return PointsMixinElement;
|
|
30
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { CalculateRewardPoints } from "../../core/types/index.js";
|
|
2
|
-
export type Constructor<T> = new (...args: any[]) => T;
|
|
3
|
-
export declare class PointsMixinInterface {
|
|
4
|
-
pointsLogoUrl: string;
|
|
5
|
-
pointsIconUrl: string;
|
|
6
|
-
pointsUnit: string;
|
|
7
|
-
calculateRewardPoints: CalculateRewardPoints | undefined;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
/package/dist/components/{points/points.styles.d.ts → loyalty-badge/loyalty-badge.styles.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|