@baloise/ds-core 16.0.2 → 16.0.3-nightly.20240322
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/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/index.js +5 -282
- package/components/initialize.js +281 -0
- 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-a6bdb63428.system.entry.js → p-0d21ea4bc4.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1d2086008c.system.entry.js → p-1169a08b4d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b13482115a.system.entry.js → p-1b5a4dfdb5.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4ef27ea80e.system.entry.js → p-2c684206e2.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0a9b41c8dc.entry.js → p-2deadb5802.entry.js} +1 -1
- package/dist/baloise-design-system/{p-32b04c32.js → p-36fb108e.js} +1 -1
- package/dist/baloise-design-system/p-3bbf43bb.system.js +1 -1
- package/dist/baloise-design-system/{p-e043c27ff9.system.entry.js → p-44f0db1da1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-beff106dec.entry.js → p-57bc73c778.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c6a6656d68.entry.js → p-6bc4d6020c.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e09fa14522.system.entry.js → p-6c66c89c89.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4f7f21d9.js → p-6f15102d.js} +1 -1
- package/dist/baloise-design-system/{p-d394b42275.entry.js → p-82c7241af0.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1521c512e4.system.entry.js → p-85aa55f5a5.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-87067c24.js +1 -0
- package/dist/baloise-design-system/{p-1e69692eb4.entry.js → p-8f94ced0da.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8a825bdf50.system.entry.js → p-980971b4ed.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-9d114fae.js +1 -0
- package/dist/baloise-design-system/p-9e4fcb76.js +1 -1
- package/dist/baloise-design-system/{p-6e9fcfda30.system.entry.js → p-a59d4f3eb9.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-b0870e2498.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-1f3fc31a.system.js → p-b22b3952.system.js} +1 -1
- package/dist/baloise-design-system/{p-20a149e171.system.entry.js → p-b928ffe137.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-61b074323f.system.entry.js → p-bb3081492e.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b20bab5f6c.entry.js → p-bf4758d34b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e88015c785.entry.js → p-ce4a8dcdf9.entry.js} +1 -1
- package/dist/baloise-design-system/{p-96c453829c.entry.js → p-d6bc6be4c9.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ea6a80e6d6.system.entry.js → p-d86997f7a8.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-04bd9be8.system.js → p-d9e09703.system.js} +1 -1
- package/dist/baloise-design-system/{p-60b81d90cb.entry.js → p-e31b114416.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2c9dcfa044.system.entry.js → p-e46eb32b11.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3f7f81de5f.entry.js → p-e89f5bae17.entry.js} +1 -1
- package/dist/baloise-design-system/{p-077f77b758.entry.js → p-e8c47e1e27.entry.js} +1 -1
- package/dist/baloise-design-system/p-e960037ef1.entry.js +1 -0
- package/dist/baloise-design-system/{p-5bcca382.system.js → p-ea859fc8.system.js} +1 -1
- package/dist/baloise-design-system/{p-eaf55a0d0e.entry.js → p-eb785f1f61.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f1a3559751.entry.js → p-ee68e92523.entry.js} +1 -1
- package/dist/baloise-design-system/{p-34a9557f.system.js → p-f15be367.system.js} +1 -1
- package/dist/baloise-design-system/p-f8c2d916.system.js +1 -0
- package/dist/baloise-design-system/p-fa8f56c6.system.js +1 -0
- package/dist/cjs/app-globals-1a8f18e4.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-hint_3.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-popover_2.cjs.entry.js +3 -3
- 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-ebdaca35.js → breakpoints.decorator-973049fa.js} +1 -1
- package/dist/cjs/{breakpoints.subject-e790c7e3.js → breakpoints.subject-2b4c770e.js} +1 -1
- package/dist/cjs/{app-globals-d6bc7866.js → global-6ea60588.js} +2 -4
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/initialize-e38e7028.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/{tokens.esm-b8f01abd.js → tokens.esm-ce172a14.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -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/esm/app-globals-e3e23c19.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-hint_3.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-popover_2.entry.js +3 -3
- 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-03a96702.js → breakpoints.decorator-e489e2a7.js} +1 -1
- package/dist/esm/{breakpoints.subject-290977a3.js → breakpoints.subject-0991ef75.js} +1 -1
- package/dist/esm/{app-globals-89691d80.js → global-d54e7c09.js} +2 -4
- package/dist/esm/index.js +3 -3
- package/dist/esm/initialize-66615dde.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/{tokens.esm-ca010903.js → tokens.esm-15a5a5c9.js} +1 -1
- package/dist/esm-es5/app-globals-e3e23c19.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-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-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-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-e489e2a7.js +1 -0
- package/dist/esm-es5/{breakpoints.subject-290977a3.js → breakpoints.subject-0991ef75.js} +1 -1
- package/dist/esm-es5/global-d54e7c09.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-66615dde.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- 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-34d1472a.system.js +0 -1
- package/dist/baloise-design-system/p-48a2de5d.js +0 -1
- package/dist/esm-es5/app-globals-89691d80.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-03a96702.js +0 -1
- /package/dist/baloise-design-system/{p-ac42a59e.system.js → p-682df1b0.system.js} +0 -0
- /package/dist/baloise-design-system/{p-8d102058.js → p-ef1b6cff.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-ca010903.js → tokens.esm-15a5a5c9.js} +0 -0
package/components/bal-app.js
CHANGED
|
@@ -1,88 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
|
-
import { b as balBrowser } from './browser.js';
|
|
4
|
-
import { b as balDevice } from './device.js';
|
|
5
|
-
import { h as debounce, k as rIC } from './helpers.js';
|
|
6
|
-
import { L as Logger } from './log.js';
|
|
7
|
-
import { s as startFocusVisible } from './focus-visible.js';
|
|
8
|
-
import { b as updateBalAnimated } from './config.utils.js';
|
|
9
|
-
|
|
10
|
-
const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative;display:block}";
|
|
11
|
-
const BalAppStyle0 = balAppCss;
|
|
12
|
-
|
|
13
|
-
const App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {
|
|
14
|
-
constructor() {
|
|
15
|
-
super();
|
|
16
|
-
this.__registerHost();
|
|
17
|
-
this.debouncedNotify = debounce(() => this.notifyResize(), 100);
|
|
18
|
-
this.notifyResize = async () => {
|
|
19
|
-
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
20
|
-
const doc = document.documentElement;
|
|
21
|
-
doc.style.setProperty('--bal-app-height', `${window.innerHeight}px`);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
this.animated = true;
|
|
25
|
-
this.ready = false;
|
|
26
|
-
}
|
|
27
|
-
createLogger(log) {
|
|
28
|
-
this.log = log;
|
|
29
|
-
}
|
|
30
|
-
connectedCallback() {
|
|
31
|
-
updateBalAnimated(this.animated);
|
|
32
|
-
if (balBrowser.hasWindow) {
|
|
33
|
-
window.addEventListener('resize', this.debouncedNotify);
|
|
34
|
-
this.debouncedNotify();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
componentDidLoad() {
|
|
38
|
-
rIC(async () => {
|
|
39
|
-
this.ready = true;
|
|
40
|
-
startFocusVisible();
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
disconnectedCallback() {
|
|
44
|
-
if (balBrowser.hasWindow) {
|
|
45
|
-
window.removeEventListener('resize', this.debouncedNotify);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
async setFocus(elements) {
|
|
49
|
-
if (this.focusVisible) {
|
|
50
|
-
this.focusVisible.setFocus(elements);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
render() {
|
|
54
|
-
return (h(Host, { class: {
|
|
55
|
-
'bal-app': true,
|
|
56
|
-
'bal-app--safari': balBrowser.isSafari,
|
|
57
|
-
'bal-app--touch': balDevice.hasTouchScreen,
|
|
58
|
-
} }, h("slot", null)));
|
|
59
|
-
}
|
|
60
|
-
get el() { return this; }
|
|
61
|
-
static get style() { return BalAppStyle0; }
|
|
62
|
-
}, [4, "bal-app", {
|
|
63
|
-
"animated": [516],
|
|
64
|
-
"ready": [1540],
|
|
65
|
-
"setFocus": [64]
|
|
66
|
-
}]);
|
|
67
|
-
__decorate([
|
|
68
|
-
Logger('bal-app'),
|
|
69
|
-
__metadata("design:type", Function),
|
|
70
|
-
__metadata("design:paramtypes", [Function]),
|
|
71
|
-
__metadata("design:returntype", void 0)
|
|
72
|
-
], App.prototype, "createLogger", null);
|
|
73
|
-
function defineCustomElement$1() {
|
|
74
|
-
if (typeof customElements === "undefined") {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
const components = ["bal-app"];
|
|
78
|
-
components.forEach(tagName => { switch (tagName) {
|
|
79
|
-
case "bal-app":
|
|
80
|
-
if (!customElements.get(tagName)) {
|
|
81
|
-
customElements.define(tagName, App);
|
|
82
|
-
}
|
|
83
|
-
break;
|
|
84
|
-
} });
|
|
85
|
-
}
|
|
1
|
+
import { A as App, d as defineCustomElement$1 } from './bal-app2.js';
|
|
86
2
|
|
|
87
3
|
const BalApp = App;
|
|
88
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
|
+
import { b as balBrowser } from './browser.js';
|
|
4
|
+
import { b as balDevice } from './device.js';
|
|
5
|
+
import { h as debounce, k as rIC } from './helpers.js';
|
|
6
|
+
import { L as Logger } from './log.js';
|
|
7
|
+
import { s as startFocusVisible } from './focus-visible.js';
|
|
8
|
+
import { b as updateBalAnimated } from './config.utils.js';
|
|
9
|
+
|
|
10
|
+
const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative;display:block}";
|
|
11
|
+
const BalAppStyle0 = balAppCss;
|
|
12
|
+
|
|
13
|
+
const App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
this.__registerHost();
|
|
17
|
+
this.debouncedNotify = debounce(() => this.notifyResize(), 100);
|
|
18
|
+
this.notifyResize = async () => {
|
|
19
|
+
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
20
|
+
const doc = document.documentElement;
|
|
21
|
+
doc.style.setProperty('--bal-app-height', `${window.innerHeight}px`);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this.animated = true;
|
|
25
|
+
this.ready = false;
|
|
26
|
+
}
|
|
27
|
+
createLogger(log) {
|
|
28
|
+
this.log = log;
|
|
29
|
+
}
|
|
30
|
+
connectedCallback() {
|
|
31
|
+
updateBalAnimated(this.animated);
|
|
32
|
+
if (balBrowser.hasWindow) {
|
|
33
|
+
window.addEventListener('resize', this.debouncedNotify);
|
|
34
|
+
this.debouncedNotify();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
componentDidLoad() {
|
|
38
|
+
rIC(async () => {
|
|
39
|
+
this.ready = true;
|
|
40
|
+
startFocusVisible();
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
disconnectedCallback() {
|
|
44
|
+
if (balBrowser.hasWindow) {
|
|
45
|
+
window.removeEventListener('resize', this.debouncedNotify);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
async setFocus(elements) {
|
|
49
|
+
if (this.focusVisible) {
|
|
50
|
+
this.focusVisible.setFocus(elements);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
return (h(Host, { class: {
|
|
55
|
+
'bal-app': true,
|
|
56
|
+
'bal-app--safari': balBrowser.isSafari,
|
|
57
|
+
'bal-app--touch': balDevice.hasTouchScreen,
|
|
58
|
+
} }, h("slot", null)));
|
|
59
|
+
}
|
|
60
|
+
get el() { return this; }
|
|
61
|
+
static get style() { return BalAppStyle0; }
|
|
62
|
+
}, [4, "bal-app", {
|
|
63
|
+
"animated": [516],
|
|
64
|
+
"ready": [1540],
|
|
65
|
+
"setFocus": [64]
|
|
66
|
+
}]);
|
|
67
|
+
__decorate([
|
|
68
|
+
Logger('bal-app'),
|
|
69
|
+
__metadata("design:type", Function),
|
|
70
|
+
__metadata("design:paramtypes", [Function]),
|
|
71
|
+
__metadata("design:returntype", void 0)
|
|
72
|
+
], App.prototype, "createLogger", null);
|
|
73
|
+
function defineCustomElement() {
|
|
74
|
+
if (typeof customElements === "undefined") {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const components = ["bal-app"];
|
|
78
|
+
components.forEach(tagName => { switch (tagName) {
|
|
79
|
+
case "bal-app":
|
|
80
|
+
if (!customElements.get(tagName)) {
|
|
81
|
+
customElements.define(tagName, App);
|
|
82
|
+
}
|
|
83
|
+
break;
|
|
84
|
+
} });
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { App as A, defineCustomElement as d };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface BalDocApp extends Components.BalDocApp, HTMLElement {}
|
|
4
|
+
export const BalDocApp: {
|
|
5
|
+
prototype: BalDocApp;
|
|
6
|
+
new (): BalDocApp;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|