@baloise/ds-core 16.2.1 → 16.3.0-nightly.20240826
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/bal-app.js +1 -85
- package/components/bal-app2.js +87 -0
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +260 -0
- package/components/bal-dropdown.js +7 -3
- package/components/bal-popup.js +1 -1
- package/components/index.js +5 -289
- package/components/initialize.js +288 -0
- package/components/scroll.js +7 -3
- 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-01999347b1.entry.js → p-08fd12bbc0.entry.js} +1 -1
- package/dist/baloise-design-system/p-1509eaa7.system.js +1 -1
- package/dist/baloise-design-system/{p-504d51d0a1.system.entry.js → p-1ed42c5f5a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2ddb356c.system.js → p-23b19918.system.js} +1 -1
- package/dist/baloise-design-system/{p-296a638e.system.js → p-2701880d.system.js} +1 -1
- package/dist/baloise-design-system/{p-c19e28122b.system.entry.js → p-2782dab200.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b10a80a3b8.entry.js → p-2f191e9063.entry.js} +1 -1
- package/dist/baloise-design-system/p-30fc270ec1.entry.js +1 -0
- package/dist/baloise-design-system/p-360068a4.system.js +1 -0
- package/dist/baloise-design-system/{p-fcc2312923.entry.js → p-37db9e3f81.entry.js} +1 -1
- package/dist/baloise-design-system/p-381fe5557d.entry.js +1 -0
- package/dist/baloise-design-system/p-40b5ad07c5.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-5f8d927f95.system.entry.js → p-416f6d8f9f.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2ae4288f42.system.entry.js → p-4802ca0200.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2d115eb51b.system.entry.js → p-4ec285c5c8.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-cd289f40c5.system.entry.js → p-526b1c1f37.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-54f81c32.js +1 -1
- package/dist/baloise-design-system/{p-94ae00c712.system.entry.js → p-5b4e1f063e.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-def2591edc.entry.js → p-5ce8281c5f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2bf04f4f7e.entry.js → p-5dd52d24cd.entry.js} +1 -1
- package/dist/baloise-design-system/{p-23ef6e0656.entry.js → p-5f1bb4a3b8.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dc45a57023.entry.js → p-648cafc450.entry.js} +1 -1
- package/dist/baloise-design-system/p-6d1b6215.js +1 -0
- package/dist/baloise-design-system/p-7291766c.system.js +1 -0
- package/dist/baloise-design-system/{p-3586f88589.system.entry.js → p-749c516acc.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-488e6a1eee.system.entry.js → p-851174e15b.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-87d9c24d45.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-6048a8f8af.entry.js → p-8f358505eb.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ffbe2886.js → p-96525499.js} +1 -1
- package/dist/baloise-design-system/{p-222bc9b30e.system.entry.js → p-982fa892e8.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4c470f43.system.js → p-9ff6d05f.system.js} +1 -1
- package/dist/baloise-design-system/{p-192bade4.js → p-a2bb4c55.js} +1 -1
- package/dist/baloise-design-system/{p-6b863f9d71.entry.js → p-a84377f125.entry.js} +1 -1
- package/dist/baloise-design-system/{p-29bfdafb70.system.entry.js → p-bdffcf5688.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-01d998678a.entry.js → p-c110359cf5.entry.js} +1 -1
- package/dist/baloise-design-system/p-c1852273.js +1 -0
- package/dist/baloise-design-system/{p-2d7a5a33fe.system.entry.js → p-d3fababa73.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8b931ae0b8.system.entry.js → p-e1ccc73251.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4a2d315dc4.entry.js → p-e4affe0e7f.entry.js} +1 -1
- package/dist/baloise-design-system/p-e8ffddeb.js +1 -0
- package/dist/baloise-design-system/{p-709bb627dd.system.entry.js → p-e931c4afff.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-f19ea306.system.js +1 -0
- package/dist/baloise-design-system/{p-03b8dbdc88.entry.js → p-f347e506f7.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6164f99bb8.entry.js → p-f6599f64b7.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6b6006ffc1.entry.js → p-f7265179b7.entry.js} +1 -1
- package/dist/baloise-design-system/{p-013b4c72.system.js → p-f959646a.system.js} +1 -1
- package/dist/baloise-design-system/{p-524ceea034.system.entry.js → p-fb2778f548.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-fc41250aa8.entry.js +1 -0
- package/dist/cjs/app-globals-5fd73c0c.js +7 -0
- package/dist/cjs/bal-carousel_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-datepicker.cjs.entry.js +3 -3
- package/dist/cjs/bal-doc-app.cjs.entry.js +231 -0
- package/dist/cjs/bal-dropdown.cjs.entry.js +6 -2
- package/dist/cjs/bal-hint_3.cjs.entry.js +4 -4
- 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-modal_3.cjs.entry.js +1 -1
- package/dist/cjs/bal-nav_8.cjs.entry.js +4 -4
- package/dist/cjs/bal-navbar_5.cjs.entry.js +4 -4
- package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
- package/dist/cjs/bal-popover_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-popup.cjs.entry.js +1 -1
- package/dist/cjs/bal-progress-bar.cjs.entry.js +3 -3
- 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 +3 -3
- package/dist/cjs/baloise-design-system.cjs.js +3 -2
- package/dist/cjs/{breakpoints.decorator-603d97d9.js → breakpoints.decorator-e39b48f6.js} +1 -1
- package/dist/cjs/{breakpoints.subject-a0b2bc41.js → breakpoints.subject-fd287dc4.js} +1 -1
- package/dist/cjs/{app-globals-ae3a8623.js → global-2562a984.js} +2 -4
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/initialize-2a19d091.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/{scroll-5d6ac91d.js → scroll-73c1b762.js} +7 -3
- package/dist/cjs/{tokens.esm-ae4d587c.js → tokens.esm-edf61900.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/bal-dropdown/bal-dropdown.js +1 -1
- package/dist/collection/components/bal-popup/variants/fullscreen-variant.renderer.js +1 -1
- 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 +229 -0
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/dropdown/events.js +7 -2
- package/dist/collection/utils/scroll.js +7 -3
- package/dist/esm/app-globals-970bab17.js +5 -0
- package/dist/esm/bal-carousel_2.entry.js +3 -3
- package/dist/esm/bal-datepicker.entry.js +3 -3
- package/dist/esm/bal-doc-app.entry.js +227 -0
- package/dist/esm/bal-dropdown.entry.js +7 -3
- package/dist/esm/bal-hint_3.entry.js +4 -4
- package/dist/esm/bal-list_8.entry.js +3 -3
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-modal_3.entry.js +1 -1
- package/dist/esm/bal-nav_8.entry.js +4 -4
- package/dist/esm/bal-navbar_5.entry.js +4 -4
- package/dist/esm/bal-pagination.entry.js +3 -3
- package/dist/esm/bal-popover_2.entry.js +3 -3
- package/dist/esm/bal-popup.entry.js +1 -1
- package/dist/esm/bal-progress-bar.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/baloise-design-system.js +3 -2
- package/dist/esm/{breakpoints.decorator-f710f500.js → breakpoints.decorator-c82ca8d7.js} +1 -1
- package/dist/esm/{breakpoints.subject-3ea6d2c3.js → breakpoints.subject-3f3d48c4.js} +1 -1
- package/dist/esm/{app-globals-b0dd0fc4.js → global-63f4bcec.js} +2 -4
- package/dist/esm/index.js +4 -4
- package/dist/esm/initialize-e216cfe4.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/{scroll-e341d95b.js → scroll-f4b20848.js} +7 -3
- package/dist/esm/{tokens.esm-27a803dc.js → tokens.esm-a501c99a.js} +1 -1
- package/dist/esm-es5/app-globals-970bab17.js +1 -0
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-datepicker.entry.js +1 -1
- package/dist/esm-es5/bal-doc-app.entry.js +1 -0
- package/dist/esm-es5/bal-dropdown.entry.js +1 -1
- package/dist/esm-es5/bal-hint_3.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-modal_3.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-popover_2.entry.js +1 -1
- package/dist/esm-es5/bal-popup.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.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-c82ca8d7.js +1 -0
- package/dist/esm-es5/{breakpoints.subject-3ea6d2c3.js → breakpoints.subject-3f3d48c4.js} +1 -1
- package/dist/esm-es5/global-63f4bcec.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-e216cfe4.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/scroll-f4b20848.js +1 -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 +81 -0
- package/package.json +7 -7
- package/dist/baloise-design-system/p-0793c0159f.system.entry.js +0 -1
- package/dist/baloise-design-system/p-1d351673.system.js +0 -1
- package/dist/baloise-design-system/p-6e0f125e.js +0 -1
- package/dist/baloise-design-system/p-bcca1ed3.system.js +0 -1
- package/dist/baloise-design-system/p-e63febcbd8.entry.js +0 -1
- package/dist/baloise-design-system/p-e78a6409.js +0 -1
- package/dist/baloise-design-system/p-f8a98657a1.entry.js +0 -1
- package/dist/esm-es5/app-globals-b0dd0fc4.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-f710f500.js +0 -1
- package/dist/esm-es5/scroll-e341d95b.js +0 -1
- /package/dist/baloise-design-system/{p-efb46317.system.js → p-5c0e12bf.system.js} +0 -0
- /package/dist/baloise-design-system/{p-b1f86100.js → p-bbfe0ac3.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-27a803dc.js → tokens.esm-a501c99a.js} +0 -0
|
@@ -0,0 +1,229 @@
|
|
|
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, null, h("bal-app", { animated: this.animated }, h("div", { class: { 'has-sticky-footer': this.stickyFooter } }, h("slot", null)))));
|
|
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
|
+
"attribute": "log-components",
|
|
82
|
+
"reflect": false,
|
|
83
|
+
"defaultValue": "''"
|
|
84
|
+
},
|
|
85
|
+
"logLifecycle": {
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"mutable": false,
|
|
88
|
+
"complexType": {
|
|
89
|
+
"original": "boolean",
|
|
90
|
+
"resolved": "boolean",
|
|
91
|
+
"references": {}
|
|
92
|
+
},
|
|
93
|
+
"required": false,
|
|
94
|
+
"optional": false,
|
|
95
|
+
"docs": {
|
|
96
|
+
"tags": [],
|
|
97
|
+
"text": ""
|
|
98
|
+
},
|
|
99
|
+
"attribute": "log-lifecycle",
|
|
100
|
+
"reflect": false,
|
|
101
|
+
"defaultValue": "true"
|
|
102
|
+
},
|
|
103
|
+
"logEvents": {
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"mutable": false,
|
|
106
|
+
"complexType": {
|
|
107
|
+
"original": "boolean",
|
|
108
|
+
"resolved": "boolean",
|
|
109
|
+
"references": {}
|
|
110
|
+
},
|
|
111
|
+
"required": false,
|
|
112
|
+
"optional": false,
|
|
113
|
+
"docs": {
|
|
114
|
+
"tags": [],
|
|
115
|
+
"text": ""
|
|
116
|
+
},
|
|
117
|
+
"attribute": "log-events",
|
|
118
|
+
"reflect": false,
|
|
119
|
+
"defaultValue": "true"
|
|
120
|
+
},
|
|
121
|
+
"logRender": {
|
|
122
|
+
"type": "boolean",
|
|
123
|
+
"mutable": false,
|
|
124
|
+
"complexType": {
|
|
125
|
+
"original": "boolean",
|
|
126
|
+
"resolved": "boolean",
|
|
127
|
+
"references": {}
|
|
128
|
+
},
|
|
129
|
+
"required": false,
|
|
130
|
+
"optional": false,
|
|
131
|
+
"docs": {
|
|
132
|
+
"tags": [],
|
|
133
|
+
"text": ""
|
|
134
|
+
},
|
|
135
|
+
"attribute": "log-render",
|
|
136
|
+
"reflect": false,
|
|
137
|
+
"defaultValue": "true"
|
|
138
|
+
},
|
|
139
|
+
"logCustom": {
|
|
140
|
+
"type": "boolean",
|
|
141
|
+
"mutable": false,
|
|
142
|
+
"complexType": {
|
|
143
|
+
"original": "boolean",
|
|
144
|
+
"resolved": "boolean",
|
|
145
|
+
"references": {}
|
|
146
|
+
},
|
|
147
|
+
"required": false,
|
|
148
|
+
"optional": false,
|
|
149
|
+
"docs": {
|
|
150
|
+
"tags": [],
|
|
151
|
+
"text": ""
|
|
152
|
+
},
|
|
153
|
+
"attribute": "log-custom",
|
|
154
|
+
"reflect": false,
|
|
155
|
+
"defaultValue": "true"
|
|
156
|
+
},
|
|
157
|
+
"stickyFooter": {
|
|
158
|
+
"type": "boolean",
|
|
159
|
+
"mutable": false,
|
|
160
|
+
"complexType": {
|
|
161
|
+
"original": "boolean",
|
|
162
|
+
"resolved": "boolean",
|
|
163
|
+
"references": {}
|
|
164
|
+
},
|
|
165
|
+
"required": false,
|
|
166
|
+
"optional": false,
|
|
167
|
+
"docs": {
|
|
168
|
+
"tags": [],
|
|
169
|
+
"text": ""
|
|
170
|
+
},
|
|
171
|
+
"attribute": "sticky-footer",
|
|
172
|
+
"reflect": false,
|
|
173
|
+
"defaultValue": "false"
|
|
174
|
+
},
|
|
175
|
+
"region": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"mutable": false,
|
|
178
|
+
"complexType": {
|
|
179
|
+
"original": "string",
|
|
180
|
+
"resolved": "string",
|
|
181
|
+
"references": {}
|
|
182
|
+
},
|
|
183
|
+
"required": false,
|
|
184
|
+
"optional": true,
|
|
185
|
+
"docs": {
|
|
186
|
+
"tags": [],
|
|
187
|
+
"text": ""
|
|
188
|
+
},
|
|
189
|
+
"attribute": "region",
|
|
190
|
+
"reflect": false
|
|
191
|
+
},
|
|
192
|
+
"language": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"mutable": false,
|
|
195
|
+
"complexType": {
|
|
196
|
+
"original": "string",
|
|
197
|
+
"resolved": "string",
|
|
198
|
+
"references": {}
|
|
199
|
+
},
|
|
200
|
+
"required": false,
|
|
201
|
+
"optional": true,
|
|
202
|
+
"docs": {
|
|
203
|
+
"tags": [],
|
|
204
|
+
"text": ""
|
|
205
|
+
},
|
|
206
|
+
"attribute": "language",
|
|
207
|
+
"reflect": false
|
|
208
|
+
},
|
|
209
|
+
"animated": {
|
|
210
|
+
"type": "boolean",
|
|
211
|
+
"mutable": false,
|
|
212
|
+
"complexType": {
|
|
213
|
+
"original": "boolean",
|
|
214
|
+
"resolved": "boolean",
|
|
215
|
+
"references": {}
|
|
216
|
+
},
|
|
217
|
+
"required": false,
|
|
218
|
+
"optional": false,
|
|
219
|
+
"docs": {
|
|
220
|
+
"tags": [],
|
|
221
|
+
"text": "Disables all animation inside the bal-app. Can be used for simplify e2e testing."
|
|
222
|
+
},
|
|
223
|
+
"attribute": "animated",
|
|
224
|
+
"reflect": true,
|
|
225
|
+
"defaultValue": "true"
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by .build/version.js
|
|
2
|
-
export const VERSION = '16.
|
|
2
|
+
export const VERSION = '16.3.0-nightly.20240826';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { rIC } from "../helpers";
|
|
1
2
|
export class DropdownEventsUtil {
|
|
2
3
|
connectedCallback(component) {
|
|
3
4
|
this.component = component;
|
|
@@ -7,8 +8,10 @@ export class DropdownEventsUtil {
|
|
|
7
8
|
this.component.balFocus.emit(ev);
|
|
8
9
|
}
|
|
9
10
|
handleBlur(ev) {
|
|
10
|
-
this.component.
|
|
11
|
-
|
|
11
|
+
if (!this.component.isExpanded) {
|
|
12
|
+
this.component.hasFocus = false;
|
|
13
|
+
rIC(() => this.component.balBlur.emit(ev));
|
|
14
|
+
}
|
|
12
15
|
}
|
|
13
16
|
handleClick(ev) {
|
|
14
17
|
if (!this.component.valueUtil.isDisabled()) {
|
|
@@ -37,6 +40,8 @@ export class DropdownEventsUtil {
|
|
|
37
40
|
if (!this.component.el.contains(ev.target)) {
|
|
38
41
|
this.component.isExpanded = false;
|
|
39
42
|
(_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.resetFocus();
|
|
43
|
+
this.component.hasFocus = false;
|
|
44
|
+
rIC(() => this.component.balBlur.emit(ev));
|
|
40
45
|
}
|
|
41
46
|
}
|
|
42
47
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { balBrowser } from "./browser";
|
|
2
2
|
export class BalScrollHandler {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.x =
|
|
5
|
-
this.y =
|
|
4
|
+
this.x = undefined;
|
|
5
|
+
this.y = undefined;
|
|
6
6
|
this.disabled = false;
|
|
7
7
|
}
|
|
8
8
|
static disableSmoothScrolling() {
|
|
@@ -54,7 +54,11 @@ export class BalScrollHandler {
|
|
|
54
54
|
document.body.style.position = '';
|
|
55
55
|
document.body.style.top = '';
|
|
56
56
|
document.body.style.width = '';
|
|
57
|
-
|
|
57
|
+
if (this.x !== undefined && this.y !== undefined) {
|
|
58
|
+
window.scrollTo(this.x, this.y);
|
|
59
|
+
this.x = undefined;
|
|
60
|
+
this.y = undefined;
|
|
61
|
+
}
|
|
58
62
|
this.disabled = false;
|
|
59
63
|
}
|
|
60
64
|
}
|
|
@@ -3,12 +3,12 @@ import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
|
3
3
|
import { l as raf } from './helpers-c201154e.js';
|
|
4
4
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
5
5
|
import { s as stopEventBubbling } from './form-input-28a08ec5.js';
|
|
6
|
-
import { L as ListenToBreakpoints } from './breakpoints.decorator-
|
|
6
|
+
import { L as ListenToBreakpoints } from './breakpoints.decorator-c82ca8d7.js';
|
|
7
7
|
import { g as getComputedWidth } from './style-ca1bd202.js';
|
|
8
8
|
import { L as ListenToMutation } from './mutation.decorator-c7b24839.js';
|
|
9
9
|
import { L as ListenToSwipe } from './swipe.decorator-9d904794.js';
|
|
10
10
|
import { L as ListenToResize } from './resize.decorator-f70563b5.js';
|
|
11
|
-
import { b as balBreakpoints } from './breakpoints.subject-
|
|
11
|
+
import { b as balBreakpoints } from './breakpoints.subject-3f3d48c4.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 { i as inheritAttributes } from './attributes-4fa7040f.js';
|
|
@@ -18,7 +18,7 @@ import './config.utils-6ac6c9bd.js';
|
|
|
18
18
|
import './listener-04842ae9.js';
|
|
19
19
|
import './swipe.subject-f1d64e8d.js';
|
|
20
20
|
import './device-8c6d2881.js';
|
|
21
|
-
import './tokens.esm-
|
|
21
|
+
import './tokens.esm-a501c99a.js';
|
|
22
22
|
import './log-dfd1c19f.js';
|
|
23
23
|
|
|
24
24
|
const TabControl = ({ value, items, onControlChange }) => {
|
|
@@ -12,16 +12,16 @@ import { B as BEM } from './bem-8c7d2eb0.js';
|
|
|
12
12
|
import { L as Logger } from './log-dfd1c19f.js';
|
|
13
13
|
import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
|
|
14
14
|
import { d as defaultConfig, a as defaultLocale } from './config.default-7efdc82d.js';
|
|
15
|
-
import { b as balBreakpoints } from './breakpoints.subject-
|
|
15
|
+
import { b as balBreakpoints } from './breakpoints.subject-3f3d48c4.js';
|
|
16
16
|
import { g as useBalConfig } from './config.utils-6ac6c9bd.js';
|
|
17
|
-
import { L as ListenToBreakpoints } from './breakpoints.decorator-
|
|
17
|
+
import { L as ListenToBreakpoints } from './breakpoints.decorator-c82ca8d7.js';
|
|
18
18
|
import { L as ListenToConfig } from './config.decorator-d18abfe1.js';
|
|
19
19
|
import './browser-a8073d92.js';
|
|
20
20
|
import './icons.constant-a7885631.js';
|
|
21
21
|
import './_commonjsHelpers-1c8beb5f.js';
|
|
22
22
|
import './device-8c6d2881.js';
|
|
23
23
|
import './listener-04842ae9.js';
|
|
24
|
-
import './tokens.esm-
|
|
24
|
+
import './tokens.esm-a501c99a.js';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @name addDays
|