@baloise/ds-core 17.2.3 → 17.2.4-nightly.20250110
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/components/all.d.ts +2 -0
- package/components/all.js +3 -0
- package/components/array.js +1 -1856
- package/components/bal-app.js +1 -93
- package/components/bal-app2.js +95 -0
- package/components/bal-carousel.js +4 -1
- package/components/bal-date-calendar2.js +1 -1
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +262 -0
- package/components/bal-footer.js +44 -41
- package/components/bal-tabs2.js +3 -2
- package/components/index.js +5 -304
- package/components/index4.js +1642 -342
- package/components/index5.js +558 -0
- package/components/initialize.js +303 -0
- package/components/swiper.util.js +25 -5
- package/components/tokens.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.js +1 -1
- package/dist/baloise-design-system/index.esm.js +1 -1
- package/dist/baloise-design-system/{p-e8e685e210.entry.js → p-005e59f2fa.entry.js} +1 -1
- package/dist/baloise-design-system/{p-272b503d.system.js → p-078a321b.system.js} +1 -1
- package/dist/baloise-design-system/p-079850e6.system.js +1 -0
- package/dist/baloise-design-system/{p-783d9ffa8a.entry.js → p-09f166e439.entry.js} +1 -1
- package/dist/baloise-design-system/p-0b8169c8.js +1 -0
- package/dist/baloise-design-system/p-0e323fe0.system.js +1 -1
- package/dist/baloise-design-system/p-1c191e7d.js +1 -0
- package/dist/baloise-design-system/{p-99d46d1583.system.entry.js → p-32c7867b78.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bd6fd5de36.entry.js → p-41b642c279.entry.js} +1 -1
- package/dist/baloise-design-system/{p-edb1324d.system.js → p-51525b5c.system.js} +1 -1
- package/dist/baloise-design-system/{p-41dc0f2a79.system.entry.js → p-5443d162c3.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-5458b9f311.entry.js +1 -0
- package/dist/baloise-design-system/p-5622c208.system.js +1 -0
- package/dist/baloise-design-system/p-58d2a0b5.system.js +1 -0
- package/dist/baloise-design-system/p-5fc399662d.entry.js +1 -0
- package/dist/baloise-design-system/{p-378298ca40.system.entry.js → p-65ac2fe908.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-43a1210363.system.entry.js → p-6f27b46312.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-73bec757.js +1 -0
- package/dist/baloise-design-system/{p-91d1c6f64b.entry.js → p-76dc963d9e.entry.js} +1 -1
- package/dist/baloise-design-system/{p-00ae3132.system.js → p-80bc0176.system.js} +1 -1
- package/dist/baloise-design-system/p-8c24fdcf6c.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-c24eef72ab.system.entry.js → p-95841191a5.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-96122c3e5b.entry.js +1 -0
- package/dist/baloise-design-system/{p-3e7da614.system.js → p-9774b1a2.system.js} +1 -1
- package/dist/baloise-design-system/{p-8e3818cabc.system.entry.js → p-9a0181713e.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-9ad648deea.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-aece54af.js → p-9f38fc6a.js} +1 -1
- package/dist/baloise-design-system/{p-d777c285e4.system.entry.js → p-9f6ff86758.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5032cc512d.entry.js → p-a140d6e536.entry.js} +1 -1
- package/dist/baloise-design-system/{p-356aa83c1a.system.entry.js → p-a93895b492.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b590137a20.system.entry.js → p-a9b3c1313a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ac5bae9bc0.entry.js → p-aef86c79cb.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bdb87be782.system.entry.js → p-b0ee2bdad4.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d34610d0b3.system.entry.js → p-bbd99edd27.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5bcd9a5b.js → p-c0827274.js} +1 -1
- package/dist/baloise-design-system/p-c0e04c2072.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-62b1464a63.entry.js → p-c586b08110.entry.js} +1 -1
- package/dist/baloise-design-system/{p-455872a1.system.js → p-c9b8e360.system.js} +1 -1
- package/dist/baloise-design-system/{p-5e1cab7609.entry.js → p-cd4c5a26fb.entry.js} +1 -1
- package/dist/baloise-design-system/{p-db14671c52.system.entry.js → p-d184d75fbd.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-db39e917.js +1 -0
- package/dist/baloise-design-system/p-e53217f8.js +1 -1
- package/dist/baloise-design-system/p-e9445f4362.entry.js +1 -0
- package/dist/baloise-design-system/{p-d9be99b1f3.entry.js → p-eb9380818c.entry.js} +1 -1
- package/dist/baloise-design-system/p-f7f06d0340.entry.js +1 -0
- package/dist/baloise-design-system/{p-4ab7dd0d1e.entry.js → p-fddf7f3071.entry.js} +1 -1
- package/dist/cjs/app-globals-25e25924.js +7 -0
- package/dist/cjs/bal-app.cjs.entry.js +1 -1
- package/dist/cjs/bal-carousel_2.cjs.entry.js +8 -5
- package/dist/cjs/bal-doc-app.cjs.entry.js +233 -0
- package/dist/cjs/bal-footer.cjs.entry.js +37 -10
- package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
- package/dist/cjs/bal-logo.cjs.entry.js +3 -3
- package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
- package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
- package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
- package/dist/cjs/bal-segment_2.cjs.entry.js +4 -4
- package/dist/cjs/bal-shape.cjs.entry.js +1 -1
- package/dist/cjs/bal-steps.cjs.entry.js +3 -3
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +7 -6
- package/dist/cjs/baloise-design-system.cjs.js +3 -2
- package/dist/cjs/{breakpoints.decorator-ea5d7550.js → breakpoints.decorator-46e2af14.js} +1 -1
- package/dist/cjs/{breakpoints.subject-235affbc.js → breakpoints.subject-33e8e8b4.js} +1 -1
- package/dist/cjs/{app-globals-a3f2765f.js → global-85ebe098.js} +2 -4
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/initialize-367b85e5.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/{swiper.util-2c1a9dd3.js → swiper.util-abdf50f1.js} +25 -5
- package/dist/cjs/{tokens.esm-50d692f1.js → tokens.esm-274c6a7d.js} +1 -1
- package/dist/cjs/{window-resize.decorator-af016113.js → window-resize.decorator-c92820b6.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/bal-app/bal-app.css +1 -1
- package/dist/collection/components/bal-carousel/bal-carousel.js +4 -1
- package/dist/collection/components/bal-footer/bal-footer.css +1 -1
- package/dist/collection/components/bal-footer/bal-footer.i18n.js +32 -0
- package/dist/collection/components/bal-footer/bal-footer.js +4 -9
- package/dist/collection/components/bal-tabs/bal-tabs.js +3 -2
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +247 -0
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/swiper/swiper.util.js +25 -5
- package/dist/esm/app-globals-83570026.js +5 -0
- package/dist/esm/bal-app.entry.js +1 -1
- package/dist/esm/bal-carousel_2.entry.js +8 -5
- package/dist/esm/bal-doc-app.entry.js +229 -0
- package/dist/esm/bal-footer.entry.js +37 -10
- package/dist/esm/bal-hint_5.entry.js +3 -3
- package/dist/esm/bal-list_8.entry.js +3 -3
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-nav_8.entry.js +3 -3
- package/dist/esm/bal-navbar_5.entry.js +3 -3
- package/dist/esm/bal-pagination.entry.js +3 -3
- package/dist/esm/bal-progress-bar.entry.js +4 -4
- package/dist/esm/bal-segment_2.entry.js +4 -4
- package/dist/esm/bal-shape.entry.js +1 -1
- package/dist/esm/bal-steps.entry.js +3 -3
- package/dist/esm/bal-tab-item_2.entry.js +7 -6
- package/dist/esm/baloise-design-system.js +3 -2
- package/dist/esm/{breakpoints.decorator-761b6833.js → breakpoints.decorator-27d35f52.js} +1 -1
- package/dist/esm/{breakpoints.subject-55ab8bb6.js → breakpoints.subject-10396a8b.js} +1 -1
- package/dist/esm/{app-globals-92fef8fd.js → global-88c7b04e.js} +2 -4
- package/dist/esm/index.js +3 -3
- package/dist/esm/initialize-22c1bebc.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/{swiper.util-3e090584.js → swiper.util-0589b550.js} +25 -5
- package/dist/esm/{tokens.esm-8a7ec399.js → tokens.esm-071cad4e.js} +1 -1
- package/dist/esm/{window-resize.decorator-1dd80b10.js → window-resize.decorator-96bfb011.js} +1 -1
- package/dist/esm-es5/app-globals-83570026.js +1 -0
- package/dist/esm-es5/bal-app.entry.js +1 -1
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-doc-app.entry.js +1 -0
- package/dist/esm-es5/bal-footer.entry.js +1 -1
- package/dist/esm-es5/bal-hint_5.entry.js +1 -1
- package/dist/esm-es5/bal-list_8.entry.js +1 -1
- package/dist/esm-es5/bal-logo.entry.js +1 -1
- package/dist/esm-es5/bal-nav_8.entry.js +1 -1
- package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
- package/dist/esm-es5/bal-pagination.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
- package/dist/esm-es5/bal-segment_2.entry.js +1 -1
- package/dist/esm-es5/bal-shape.entry.js +1 -1
- package/dist/esm-es5/bal-steps.entry.js +1 -1
- package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
- package/dist/esm-es5/baloise-design-system.js +1 -1
- package/dist/esm-es5/{breakpoints.decorator-761b6833.js → breakpoints.decorator-27d35f52.js} +1 -1
- package/dist/esm-es5/{breakpoints.subject-55ab8bb6.js → breakpoints.subject-10396a8b.js} +1 -1
- package/dist/esm-es5/global-88c7b04e.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-22c1bebc.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/swiper.util-0589b550.js +1 -0
- package/dist/esm-es5/{window-resize.decorator-1dd80b10.js → window-resize.decorator-96bfb011.js} +1 -1
- package/dist/types/components/bal-carousel/bal-carousel.d.ts +1 -0
- package/dist/types/components/bal-footer/bal-footer.d.ts +0 -1
- package/dist/types/components/bal-footer/bal-footer.i18n.d.ts +5 -0
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +37 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
- package/dist/types/utils/swiper/swiper.util.d.ts +2 -1
- package/package.json +7 -7
- package/dist/baloise-design-system/p-05986dc964.entry.js +0 -1
- package/dist/baloise-design-system/p-1050501432.entry.js +0 -1
- package/dist/baloise-design-system/p-12ff7815.js +0 -1
- package/dist/baloise-design-system/p-345ec2f4.system.js +0 -1
- package/dist/baloise-design-system/p-4d67c12e48.system.entry.js +0 -1
- package/dist/baloise-design-system/p-68e05bd5.js +0 -1
- package/dist/baloise-design-system/p-70f7b546.system.js +0 -1
- package/dist/baloise-design-system/p-757f93ffe9.entry.js +0 -1
- package/dist/baloise-design-system/p-8c564c0a3c.entry.js +0 -1
- package/dist/baloise-design-system/p-b7f9f79521.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c42db517.js +0 -1
- package/dist/esm-es5/app-globals-92fef8fd.js +0 -1
- package/dist/esm-es5/swiper.util-3e090584.js +0 -1
- /package/dist/baloise-design-system/{p-210346c9.js → p-734e49a8.js} +0 -0
- /package/dist/baloise-design-system/{p-b0fcd760.system.js → p-c657dfd5.system.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-8a7ec399.js → tokens.esm-071cad4e.js} +0 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import * as balIcons from "../../../../../../icons/src/index";
|
|
3
|
+
import { updateBalIcons } from "../../../utils/config";
|
|
4
|
+
import { balBrowser } from "../../../utils/browser";
|
|
5
|
+
import globalScript from "../../../global";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export class DocApp {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.logComponents = '';
|
|
12
|
+
this.logLifecycle = true;
|
|
13
|
+
this.logEvents = true;
|
|
14
|
+
this.logRender = true;
|
|
15
|
+
this.logCustom = true;
|
|
16
|
+
this.stickyFooter = false;
|
|
17
|
+
this.region = undefined;
|
|
18
|
+
this.language = undefined;
|
|
19
|
+
this.animated = true;
|
|
20
|
+
}
|
|
21
|
+
connectedCallback() {
|
|
22
|
+
globalScript();
|
|
23
|
+
updateBalIcons(balIcons);
|
|
24
|
+
}
|
|
25
|
+
componentDidRender() {
|
|
26
|
+
const logConfig = {
|
|
27
|
+
components: this.logComponents
|
|
28
|
+
.split(',')
|
|
29
|
+
.map(c => c.trim())
|
|
30
|
+
.filter(c => c !== ''),
|
|
31
|
+
lifecycle: this.logLifecycle,
|
|
32
|
+
event: this.logEvents,
|
|
33
|
+
render: this.logRender,
|
|
34
|
+
custom: this.logCustom,
|
|
35
|
+
};
|
|
36
|
+
if (balBrowser.hasWindow) {
|
|
37
|
+
if (this.logComponents) {
|
|
38
|
+
;
|
|
39
|
+
window.BaloiseDesignSystem.config.logger = logConfig;
|
|
40
|
+
}
|
|
41
|
+
if (this.region) {
|
|
42
|
+
;
|
|
43
|
+
window.BaloiseDesignSystem.config.region = this.region;
|
|
44
|
+
}
|
|
45
|
+
if (this.language) {
|
|
46
|
+
;
|
|
47
|
+
window.BaloiseDesignSystem.config.language = this.language;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
return (h(Host, { key: 'c86b106e773e7f16451b7cc0767907b48746919b' }, h("bal-app", { key: '1f8de4c0b71fe89f6e3704010271ee499ef5e05c', animated: this.animated }, h("div", { key: 'a58a3eefd8969e481a4950d6dd53a33cfb79c59b', class: { 'has-sticky-footer': this.stickyFooter } }, h("slot", { key: 'c80c4b5bdfeb9f002831ad44911ade2a2b3fb021' })))));
|
|
53
|
+
}
|
|
54
|
+
static get is() { return "bal-doc-app"; }
|
|
55
|
+
static get originalStyleUrls() {
|
|
56
|
+
return {
|
|
57
|
+
"$": ["bal-doc-app.sass"]
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
static get styleUrls() {
|
|
61
|
+
return {
|
|
62
|
+
"$": ["bal-doc-app.css"]
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
static get properties() {
|
|
66
|
+
return {
|
|
67
|
+
"logComponents": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "string",
|
|
72
|
+
"resolved": "string",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
},
|
|
81
|
+
"getter": false,
|
|
82
|
+
"setter": false,
|
|
83
|
+
"attribute": "log-components",
|
|
84
|
+
"reflect": false,
|
|
85
|
+
"defaultValue": "''"
|
|
86
|
+
},
|
|
87
|
+
"logLifecycle": {
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "boolean",
|
|
92
|
+
"resolved": "boolean",
|
|
93
|
+
"references": {}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": ""
|
|
100
|
+
},
|
|
101
|
+
"getter": false,
|
|
102
|
+
"setter": false,
|
|
103
|
+
"attribute": "log-lifecycle",
|
|
104
|
+
"reflect": false,
|
|
105
|
+
"defaultValue": "true"
|
|
106
|
+
},
|
|
107
|
+
"logEvents": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "boolean",
|
|
112
|
+
"resolved": "boolean",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": ""
|
|
120
|
+
},
|
|
121
|
+
"getter": false,
|
|
122
|
+
"setter": false,
|
|
123
|
+
"attribute": "log-events",
|
|
124
|
+
"reflect": false,
|
|
125
|
+
"defaultValue": "true"
|
|
126
|
+
},
|
|
127
|
+
"logRender": {
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"mutable": false,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "boolean",
|
|
132
|
+
"resolved": "boolean",
|
|
133
|
+
"references": {}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": false,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": ""
|
|
140
|
+
},
|
|
141
|
+
"getter": false,
|
|
142
|
+
"setter": false,
|
|
143
|
+
"attribute": "log-render",
|
|
144
|
+
"reflect": false,
|
|
145
|
+
"defaultValue": "true"
|
|
146
|
+
},
|
|
147
|
+
"logCustom": {
|
|
148
|
+
"type": "boolean",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "boolean",
|
|
152
|
+
"resolved": "boolean",
|
|
153
|
+
"references": {}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": false,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": ""
|
|
160
|
+
},
|
|
161
|
+
"getter": false,
|
|
162
|
+
"setter": false,
|
|
163
|
+
"attribute": "log-custom",
|
|
164
|
+
"reflect": false,
|
|
165
|
+
"defaultValue": "true"
|
|
166
|
+
},
|
|
167
|
+
"stickyFooter": {
|
|
168
|
+
"type": "boolean",
|
|
169
|
+
"mutable": false,
|
|
170
|
+
"complexType": {
|
|
171
|
+
"original": "boolean",
|
|
172
|
+
"resolved": "boolean",
|
|
173
|
+
"references": {}
|
|
174
|
+
},
|
|
175
|
+
"required": false,
|
|
176
|
+
"optional": false,
|
|
177
|
+
"docs": {
|
|
178
|
+
"tags": [],
|
|
179
|
+
"text": ""
|
|
180
|
+
},
|
|
181
|
+
"getter": false,
|
|
182
|
+
"setter": false,
|
|
183
|
+
"attribute": "sticky-footer",
|
|
184
|
+
"reflect": false,
|
|
185
|
+
"defaultValue": "false"
|
|
186
|
+
},
|
|
187
|
+
"region": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "string",
|
|
192
|
+
"resolved": "string",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": true,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": ""
|
|
200
|
+
},
|
|
201
|
+
"getter": false,
|
|
202
|
+
"setter": false,
|
|
203
|
+
"attribute": "region",
|
|
204
|
+
"reflect": false
|
|
205
|
+
},
|
|
206
|
+
"language": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"mutable": false,
|
|
209
|
+
"complexType": {
|
|
210
|
+
"original": "string",
|
|
211
|
+
"resolved": "string",
|
|
212
|
+
"references": {}
|
|
213
|
+
},
|
|
214
|
+
"required": false,
|
|
215
|
+
"optional": true,
|
|
216
|
+
"docs": {
|
|
217
|
+
"tags": [],
|
|
218
|
+
"text": ""
|
|
219
|
+
},
|
|
220
|
+
"getter": false,
|
|
221
|
+
"setter": false,
|
|
222
|
+
"attribute": "language",
|
|
223
|
+
"reflect": false
|
|
224
|
+
},
|
|
225
|
+
"animated": {
|
|
226
|
+
"type": "boolean",
|
|
227
|
+
"mutable": false,
|
|
228
|
+
"complexType": {
|
|
229
|
+
"original": "boolean",
|
|
230
|
+
"resolved": "boolean",
|
|
231
|
+
"references": {}
|
|
232
|
+
},
|
|
233
|
+
"required": false,
|
|
234
|
+
"optional": false,
|
|
235
|
+
"docs": {
|
|
236
|
+
"tags": [],
|
|
237
|
+
"text": "Disables all animation inside the bal-app. Can be used for simplify e2e testing."
|
|
238
|
+
},
|
|
239
|
+
"getter": false,
|
|
240
|
+
"setter": false,
|
|
241
|
+
"attribute": "animated",
|
|
242
|
+
"reflect": true,
|
|
243
|
+
"defaultValue": "true"
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by .build/version.js
|
|
2
|
-
export const VERSION = '17.2.
|
|
2
|
+
export const VERSION = '17.2.4-nightly.20250110';
|
|
@@ -17,7 +17,7 @@ export class SwiperUtil {
|
|
|
17
17
|
this.index = 0;
|
|
18
18
|
this.gapSize = 0;
|
|
19
19
|
this.steps = 1;
|
|
20
|
-
this.
|
|
20
|
+
this.noNeedForControls = true;
|
|
21
21
|
this.isLastSlideVisible = false;
|
|
22
22
|
this.itemsPerView = 1;
|
|
23
23
|
this.controls = 'none';
|
|
@@ -114,6 +114,23 @@ export class SwiperUtil {
|
|
|
114
114
|
addEventListener(window, 'touchstart', this.pointerDown);
|
|
115
115
|
addEventListener(window, 'mousedown', this.pointerDown);
|
|
116
116
|
}
|
|
117
|
+
componentDidLoad() {
|
|
118
|
+
const observer = new IntersectionObserver(entries => {
|
|
119
|
+
entries.forEach(entry => {
|
|
120
|
+
if (entry.isIntersecting) {
|
|
121
|
+
this.notifyChange();
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}, {
|
|
125
|
+
root: null, // Use the viewport as the container
|
|
126
|
+
threshold: 0.5, // Trigger when 50% of the element is visible
|
|
127
|
+
});
|
|
128
|
+
// Target the element you want to observe
|
|
129
|
+
const targetElement = this.component.el;
|
|
130
|
+
if (targetElement) {
|
|
131
|
+
observer.observe(targetElement);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
117
134
|
disconnectedCallback() {
|
|
118
135
|
removeEventListener(window, 'keydown', this.listenToKeyDown);
|
|
119
136
|
removeEventListener(this.component.el, 'focusin', this.updateFocus);
|
|
@@ -207,7 +224,7 @@ export class SwiperUtil {
|
|
|
207
224
|
}
|
|
208
225
|
}
|
|
209
226
|
renderControls() {
|
|
210
|
-
if (!this.active || this.
|
|
227
|
+
if (!this.active || this.noNeedForControls || !this.component.hasAnimated) {
|
|
211
228
|
return '';
|
|
212
229
|
}
|
|
213
230
|
const leftControlTitle = i18nSwiperControlLabel[this.component.language].left;
|
|
@@ -278,6 +295,9 @@ export class SwiperUtil {
|
|
|
278
295
|
if (lastSlide) {
|
|
279
296
|
const totalWidth = lastSlide.transformNext || 0;
|
|
280
297
|
const overflowWindowWidth = this.innerEl.clientWidth || 0;
|
|
298
|
+
if (totalWidth === 0 || overflowWindowWidth === 0) {
|
|
299
|
+
return resolve(false);
|
|
300
|
+
}
|
|
281
301
|
// get max amount of pixel to move the items container to the left or right
|
|
282
302
|
let maxAmountOfPixel = totalWidth - overflowWindowWidth;
|
|
283
303
|
// -1 one is needed for example when we use items per view 3 with 33.333%
|
|
@@ -292,10 +312,10 @@ export class SwiperUtil {
|
|
|
292
312
|
}
|
|
293
313
|
const hasSmallControls = this.controls === 'small';
|
|
294
314
|
const hasLargeControls = this.controls === 'large';
|
|
295
|
-
this.
|
|
296
|
-
let transformValue = this.
|
|
315
|
+
this.noNeedForControls = totalWidth <= overflowWindowWidth;
|
|
316
|
+
let transformValue = this.noNeedForControls ? 0 : isLastSlideVisible ? maxAmountOfPixel : pixels;
|
|
297
317
|
if (!isFirst &&
|
|
298
|
-
!this.
|
|
318
|
+
!this.noNeedForControls &&
|
|
299
319
|
(hasSmallControls || (hasLargeControls && !this.component.isMobile))) {
|
|
300
320
|
transformValue = transformValue - (isLastSlideVisible ? 0 : hasLargeControls ? 56 : 48);
|
|
301
321
|
}
|
|
@@ -8,7 +8,7 @@ import { s as startFocusVisible } from './focus-visible-f0cdd043.js';
|
|
|
8
8
|
import { b as updateBalAnimated } from './config.utils-6ac6c9bd.js';
|
|
9
9
|
import './icons.constant-a7885631.js';
|
|
10
10
|
|
|
11
|
-
const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative
|
|
11
|
+
const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative}.lcp-wait{opacity:0;visibility:hidden;display:none}.lcp-ready .lcp-wait{opacity:inherit;visibility:inherit;display:inherit}";
|
|
12
12
|
const BalAppStyle0 = balAppCss;
|
|
13
13
|
|
|
14
14
|
const App = class {
|
|
@@ -2,13 +2,13 @@ import { h, r as registerInstance, c as createEvent, H as Host, g as getElement
|
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
4
4
|
import { a as ariaBooleanToString } from './aria-d5877698.js';
|
|
5
|
-
import { t as toKebabCase, S as SwiperUtil } from './swiper.util-
|
|
5
|
+
import { t as toKebabCase, S as SwiperUtil } from './swiper.util-0589b550.js';
|
|
6
6
|
import { s as stopEventBubbling } from './form-input-1f3d8337.js';
|
|
7
|
-
import { L as ListenToBreakpoints } from './breakpoints.decorator-
|
|
7
|
+
import { L as ListenToBreakpoints } from './breakpoints.decorator-27d35f52.js';
|
|
8
8
|
import { L as ListenToMutation } from './mutation.decorator-0c202bed.js';
|
|
9
9
|
import { L as ListenToSwipe } from './swipe.decorator-20f4a0cb.js';
|
|
10
10
|
import { L as ListenToResize } from './resize.decorator-bd416c47.js';
|
|
11
|
-
import { b as balBreakpoints } from './breakpoints.subject-
|
|
11
|
+
import { b as balBreakpoints } from './breakpoints.subject-10396a8b.js';
|
|
12
12
|
import { d as defaultConfig } from './config.default-7efdc82d.js';
|
|
13
13
|
import { L as ListenToConfig } from './config.decorator-d18abfe1.js';
|
|
14
14
|
import { m as rOnLoad, b as waitAfterFramePaint } from './helpers-32d9e1cc.js';
|
|
@@ -18,7 +18,7 @@ import './listener-04842ae9.js';
|
|
|
18
18
|
import './browser-a8073d92.js';
|
|
19
19
|
import './swipe.subject-e3db5994.js';
|
|
20
20
|
import './device-8c6d2881.js';
|
|
21
|
-
import './tokens.esm-
|
|
21
|
+
import './tokens.esm-071cad4e.js';
|
|
22
22
|
import './log-dfd1c19f.js';
|
|
23
23
|
import './icons.constant-a7885631.js';
|
|
24
24
|
import './config.utils-6ac6c9bd.js';
|
|
@@ -90,6 +90,9 @@ const Carousel = class {
|
|
|
90
90
|
this.onStepsChange();
|
|
91
91
|
this.onValueChange();
|
|
92
92
|
}
|
|
93
|
+
componentDidLoad() {
|
|
94
|
+
this.swiper.componentDidLoad();
|
|
95
|
+
}
|
|
93
96
|
disconnectedCallback() {
|
|
94
97
|
this.swiper.disconnectedCallback();
|
|
95
98
|
}
|
|
@@ -166,7 +169,7 @@ const Carousel = class {
|
|
|
166
169
|
const block = BEM.block('carousel');
|
|
167
170
|
const inner = block.element('inner');
|
|
168
171
|
const container = inner.element('container');
|
|
169
|
-
return (h(Host, { key: '
|
|
172
|
+
return (h(Host, { key: '602093b19519df2cf7769648d4b18b9643e3ddfb', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.swiper.cssSwiper()), block.class()), block.modifier(this.interface).class(this.interface !== '')), block.modifier(`full-height`).class(this.fullHeight)), block.modifier('controls-sticky').class(this.controlsSticky)), block.modifier(`controls-tabs`).class(this.controls === 'tabs')) }, this.controls === 'tabs' ? (h(TabControl, { value: this.value, items: this.swiper.getAllControlItems(), containerId: this.swiper.containerId, onControlChange: item => this.swiper.onControlChange(item.value) })) : (''), h("div", { key: 'a647f525baae8af7c92568beee41e270bb4bf175', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.swiper.cssInnerSwiper()), inner.class()), inner.modifier(`is-${this.aspectRatio}`).class()), inner.modifier(`inverted`).class(this.inverted)), inner.modifier(`full-height`).class(this.fullHeight)), ref: el => (this.swiper.innerEl = el) }, h("div", { key: 'c304226a1093b5fd6256742e68792c91a07fc67d', id: this.swiper.containerId, role: this.controls === 'tabs' ? '' : 'list', class: Object.assign(Object.assign(Object.assign(Object.assign({}, this.swiper.cssSwiperContainer()), container.class()), container.modifier(`border`).class(this.border)), container.modifier(`is-${this.aspectRatio}`).class()), ref: el => (this.swiper.containerEl = el) }, h("slot", { key: 'f07155dae50350e67e207dc238a61f52779ffab6' }), this.border ? (h("div", { id: `${this.swiper.id}-border`, "aria-hidden": "true", class: Object.assign(Object.assign({}, container.element('border').class()), container.element('border').modifier('inverted').class(this.inverted)), ref: el => (this.swiper.borderEl = el) })) : (''))), this.swiper.renderControls()));
|
|
170
173
|
}
|
|
171
174
|
get el() { return getElement(this); }
|
|
172
175
|
static get watchers() { return {
|