@baloise/ds-core 0.0.5 → 0.0.6-snapshot.31-c372201

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.
Files changed (134) hide show
  1. package/README.md +33 -42
  2. package/components/bal-app.js +1 -85
  3. package/components/bal-app2.js +87 -0
  4. package/components/bal-doc-app.d.ts +11 -0
  5. package/components/bal-doc-app.js +260 -0
  6. package/components/index.js +5 -282
  7. package/components/initialize.js +281 -0
  8. package/components/tokens.esm.js +1 -1
  9. package/dist/cjs/app-globals-96827f05.js +7 -0
  10. package/dist/cjs/bal-carousel_2.cjs.entry.js +3 -3
  11. package/dist/cjs/bal-datepicker.cjs.entry.js +3 -3
  12. package/dist/cjs/bal-doc-app.cjs.entry.js +231 -0
  13. package/dist/cjs/bal-hint_3.cjs.entry.js +3 -3
  14. package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
  15. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  16. package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
  17. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  18. package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
  19. package/dist/cjs/bal-popover_2.cjs.entry.js +3 -3
  20. package/dist/cjs/bal-progress-bar.cjs.entry.js +3 -3
  21. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  22. package/dist/cjs/bal-steps.cjs.entry.js +3 -3
  23. package/dist/cjs/bal-tab-item_2.cjs.entry.js +3 -3
  24. package/dist/cjs/{breakpoints.decorator-317b79eb.js → breakpoints.decorator-9d7d71a0.js} +1 -1
  25. package/dist/cjs/{breakpoints.subject-d01efdb0.js → breakpoints.subject-844ff738.js} +1 -1
  26. package/dist/cjs/design-system-components.cjs.js +3 -2
  27. package/dist/cjs/{app-globals-96247350.js → global-e99d827b.js} +2 -4
  28. package/dist/cjs/index.cjs.js +2 -2
  29. package/dist/cjs/initialize-9c752efa.js +1 -1
  30. package/dist/cjs/loader.cjs.js +3 -2
  31. package/dist/cjs/{tokens.esm-49773ac1.js → tokens.esm-f053783e.js} +1 -1
  32. package/dist/collection/collection-manifest.json +2 -1
  33. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
  34. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +229 -0
  35. package/dist/collection/utils/constants/version.constant.js +1 -1
  36. package/dist/design-system-components/design-system-components.esm.js +1 -1
  37. package/dist/design-system-components/design-system-components.js +1 -1
  38. package/dist/design-system-components/index.esm.js +1 -1
  39. package/dist/design-system-components/{p-adb6bc44ef.system.entry.js → p-017a718cde.system.entry.js} +1 -1
  40. package/dist/design-system-components/p-01ebb73de9.entry.js +1 -0
  41. package/dist/design-system-components/{p-14bd447f.system.js → p-051f8a1a.system.js} +1 -1
  42. package/dist/design-system-components/{p-ed0e733640.entry.js → p-06057510f1.entry.js} +1 -1
  43. package/dist/design-system-components/{p-3c8c5b6dd2.entry.js → p-15937ccfd1.entry.js} +1 -1
  44. package/dist/design-system-components/{p-77c0fa3e01.entry.js → p-223a4c9909.entry.js} +1 -1
  45. package/dist/design-system-components/{p-0685d79c20.entry.js → p-23f781d6ca.entry.js} +1 -1
  46. package/dist/design-system-components/{p-458253ab5b.entry.js → p-31f6ede7f1.entry.js} +1 -1
  47. package/dist/design-system-components/{p-7b57f1bf7a.system.entry.js → p-3c9848646e.system.entry.js} +1 -1
  48. package/dist/design-system-components/{p-55a5a05ad3.entry.js → p-3d6fcae8e4.entry.js} +1 -1
  49. package/dist/design-system-components/{p-97dbfd519a.entry.js → p-4491887a3e.entry.js} +1 -1
  50. package/dist/design-system-components/{p-c994b45363.entry.js → p-48b61eba2c.entry.js} +1 -1
  51. package/dist/design-system-components/{p-5650ce58.js → p-4be23942.js} +1 -1
  52. package/dist/design-system-components/p-50f12cb1.system.js +1 -1
  53. package/dist/design-system-components/{p-5ee8262d62.system.entry.js → p-5571e98fa0.system.entry.js} +1 -1
  54. package/dist/design-system-components/{p-c835e3cce4.system.entry.js → p-567f90d72b.system.entry.js} +1 -1
  55. package/dist/design-system-components/p-66904dc1.js +1 -1
  56. package/dist/design-system-components/p-787f9258.system.js +1 -0
  57. package/dist/design-system-components/{p-97b3918054.entry.js → p-79a1a40d2e.entry.js} +1 -1
  58. package/dist/design-system-components/{p-d1ebb10fc2.entry.js → p-7a23801d02.entry.js} +1 -1
  59. package/dist/design-system-components/{p-464c925d97.entry.js → p-80abbd0778.entry.js} +1 -1
  60. package/dist/design-system-components/{p-a2e1502c7f.system.entry.js → p-8332986d81.system.entry.js} +1 -1
  61. package/dist/design-system-components/{p-b5ff90d62d.system.entry.js → p-8fc6e4b198.system.entry.js} +1 -1
  62. package/dist/design-system-components/{p-d3c37b705b.system.entry.js → p-9c5ee5e901.system.entry.js} +1 -1
  63. package/dist/design-system-components/{p-7653dae772.system.entry.js → p-9cc8540f2f.system.entry.js} +1 -1
  64. package/dist/design-system-components/p-a103798ffa.entry.js +1 -0
  65. package/dist/design-system-components/{p-2cc957ce.js → p-a1b9ea94.js} +1 -1
  66. package/dist/design-system-components/p-adff9a327e.system.entry.js +1 -0
  67. package/dist/design-system-components/{p-7e2faa5297.system.entry.js → p-b4fa2a9a02.system.entry.js} +1 -1
  68. package/dist/design-system-components/p-bafa7b4e.js +1 -0
  69. package/dist/design-system-components/p-bfbc64f2.js +1 -0
  70. package/dist/design-system-components/{p-356f5cfef3.system.entry.js → p-c1fd22b574.system.entry.js} +1 -1
  71. package/dist/design-system-components/{p-2b79fb51.system.js → p-d3500331.system.js} +1 -1
  72. package/dist/design-system-components/{p-81a1bd545f.system.entry.js → p-d7eaa0028d.system.entry.js} +1 -1
  73. package/dist/design-system-components/{p-16910f58.system.js → p-dfc19799.system.js} +1 -1
  74. package/dist/design-system-components/{p-17391ff3.system.js → p-e35e2871.system.js} +1 -1
  75. package/dist/design-system-components/{p-3865f038de.system.entry.js → p-ed947f6b13.system.entry.js} +1 -1
  76. package/dist/design-system-components/{p-b293bf1ba0.entry.js → p-f91940fa22.entry.js} +1 -1
  77. package/dist/design-system-components/{p-1063c5cdc0.system.entry.js → p-fc4c387550.system.entry.js} +1 -1
  78. package/dist/design-system-components/p-fc586c6a.system.js +1 -0
  79. package/dist/esm/app-globals-46c15307.js +5 -0
  80. package/dist/esm/bal-carousel_2.entry.js +3 -3
  81. package/dist/esm/bal-datepicker.entry.js +3 -3
  82. package/dist/esm/bal-doc-app.entry.js +227 -0
  83. package/dist/esm/bal-hint_3.entry.js +3 -3
  84. package/dist/esm/bal-list_8.entry.js +3 -3
  85. package/dist/esm/bal-logo.entry.js +3 -3
  86. package/dist/esm/bal-nav_8.entry.js +3 -3
  87. package/dist/esm/bal-navbar_5.entry.js +3 -3
  88. package/dist/esm/bal-pagination.entry.js +3 -3
  89. package/dist/esm/bal-popover_2.entry.js +3 -3
  90. package/dist/esm/bal-progress-bar.entry.js +3 -3
  91. package/dist/esm/bal-shape.entry.js +1 -1
  92. package/dist/esm/bal-steps.entry.js +3 -3
  93. package/dist/esm/bal-tab-item_2.entry.js +3 -3
  94. package/dist/esm/{breakpoints.decorator-4c9411f6.js → breakpoints.decorator-6ca427f3.js} +1 -1
  95. package/dist/esm/{breakpoints.subject-b9035870.js → breakpoints.subject-b774dd0d.js} +1 -1
  96. package/dist/esm/design-system-components.js +3 -2
  97. package/dist/esm/{app-globals-04db8eba.js → global-648bb593.js} +2 -4
  98. package/dist/esm/index.js +3 -3
  99. package/dist/esm/initialize-ff8054a2.js +1 -1
  100. package/dist/esm/loader.js +3 -2
  101. package/dist/esm/{tokens.esm-09a5bc3a.js → tokens.esm-34ed37fb.js} +1 -1
  102. package/dist/esm-es5/app-globals-46c15307.js +1 -0
  103. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  104. package/dist/esm-es5/bal-datepicker.entry.js +1 -1
  105. package/dist/esm-es5/bal-doc-app.entry.js +1 -0
  106. package/dist/esm-es5/bal-hint_3.entry.js +1 -1
  107. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  108. package/dist/esm-es5/bal-logo.entry.js +1 -1
  109. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  110. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  111. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  112. package/dist/esm-es5/bal-popover_2.entry.js +1 -1
  113. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  114. package/dist/esm-es5/bal-shape.entry.js +1 -1
  115. package/dist/esm-es5/bal-steps.entry.js +1 -1
  116. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  117. package/dist/esm-es5/{breakpoints.decorator-4c9411f6.js → breakpoints.decorator-6ca427f3.js} +1 -1
  118. package/dist/esm-es5/{breakpoints.subject-b9035870.js → breakpoints.subject-b774dd0d.js} +1 -1
  119. package/dist/esm-es5/design-system-components.js +1 -1
  120. package/dist/esm-es5/global-648bb593.js +1 -0
  121. package/dist/esm-es5/index.js +1 -1
  122. package/dist/esm-es5/initialize-ff8054a2.js +1 -1
  123. package/dist/esm-es5/loader.js +1 -1
  124. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
  125. package/dist/types/components.d.ts +37 -0
  126. package/dist/types/home/runner/work/ds-playground/ds-playground/packages/core/.stencil/packages/icons/src/index.d.ts +81 -0
  127. package/package.json +7 -7
  128. package/dist/design-system-components/p-238f1f34.js +0 -1
  129. package/dist/design-system-components/p-75c02a9ff4.entry.js +0 -1
  130. package/dist/design-system-components/p-9f5e39e1.system.js +0 -1
  131. package/dist/esm-es5/app-globals-04db8eba.js +0 -1
  132. /package/dist/design-system-components/{p-e33303db.js → p-0e5f99ee.js} +0 -0
  133. /package/dist/design-system-components/{p-dab8ac06.system.js → p-2cdb82af.system.js} +0 -0
  134. /package/dist/esm-es5/{tokens.esm-09a5bc3a.js → tokens.esm-34ed37fb.js} +0 -0
package/README.md CHANGED
@@ -1,45 +1,36 @@
1
1
  <a href="https://design.baloise.dev" target="blank">
2
- <img src="https://raw.githubusercontent.com/baloise/design-system/main/resources/images/banner.svg?sanitize=true" alt="Baloise Design System" />
2
+ <img src="https://raw.githubusercontent.com/baloise/design-system/main/resources/images/banner.svg?sanitize=true" alt="Design System" />
3
3
  </a>
4
4
 
5
- <br>
6
-
7
- [![Continuous](https://github.com/baloise/design-system/actions/workflows/continuous.yml/badge.svg?branch=main)](https://github.com/baloise/design-system/actions/workflows/continuous.yml)
8
-
9
- ![npm](https://img.shields.io/npm/v/@baloise/design-system-components)
10
- ![npm bundle size](https://img.shields.io/bundlephobia/min/@baloise/design-system-components)
11
- ![npm](https://img.shields.io/npm/dt/@baloise/design-system-components)
12
- ![GitHub](https://img.shields.io/github/license/baloise/design-system)
13
- ![GitHub issues](https://img.shields.io/github/issues/baloise/design-system)
14
- [![Registred on webnamespaces.org](https://img.shields.io/static/v1?label=webnamespaces.org&color=blue&message=bal)](https://webnamespaces.org)
15
- ![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)
16
-
17
- ## About
18
-
19
- The Baloise Design System consists of reusable components and a clearly defined visual style, that can be assembled together to build any number of applications.
20
-
21
- Check out the [documentation](https://design.baloise.dev)
22
-
23
- ## Packages
24
-
25
- | Package | Status | Description |
26
- | ------------------------------------------------ | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
27
- | [Components](https://design.baloise.dev) | ![npm](https://img.shields.io/npm/v/@baloise/design-system-components) | Core package build with web components and global styling. |
28
- | [Components Angular](https://design.baloise.dev) | ![npm](https://img.shields.io/npm/v/@baloise/design-system-components-angular) | Angular component proxies based on the the core package. |
29
- | [Components Vue](https://design.baloise.dev) | ![npm](https://img.shields.io/npm/v/@baloise/design-system-components-vue) | Vue component proxies based on the the core package. |
30
- | [Components React](https://design.baloise.dev) | ![npm](https://img.shields.io/npm/v/@baloise/design-system-components-react) | React component proxies based on the the core package. |
31
- | [Components Table](https://design.baloise.dev) | ![npm](https://img.shields.io/npm/v/@baloise/design-system-components-table) | Integration library for AG-Grid with styles and renderer functions |
32
- | [CLI](https://design.baloise.dev) | ![npm](https://img.shields.io/npm/v/@baloise/design-system-cli) | CLI to scaffold an angular project or migration helpers. |
33
- | [Tokens](https://design.baloise.dev) | ![npm](https://img.shields.io/npm/v/@baloise/design-system-tokens) | Design Tokens like color and spacing. |
34
- | [Styles](https://design.baloise.dev) | ![npm](https://img.shields.io/npm/v/@baloise/design-system-styles) | Basic CSS styles with utility classes. |
35
- | [Icons](https://design.baloise.dev) | ![npm](https://img.shields.io/npm/v/@baloise/design-system-icons) | SVG icons of the design system. |
36
- | [Favicons](https://design.baloise.dev) | ![npm](https://img.shields.io/npm/v/@baloise/design-system-favicons) | Favicons of the design system. |
37
- | [Maps](https://design.baloise.dev) | ![npm](https://img.shields.io/npm/v/@baloise/design-system-maps) | Google Maps styles and icons. |
38
- | [Fonts](https://design.baloise.dev) | ![npm](https://img.shields.io/npm/v/@baloise/design-system-fonts) | Web-Font of the design system. |
39
- | [Testing](https://design.baloise.dev) | ![npm](https://img.shields.io/npm/v/@baloise/design-system-testing) | Testing package with custom and overridden commands for each component. |
40
-
41
- CI PR
42
- Release
43
- Snapshot
44
- Nightly
45
- Visual Base
5
+ <br />
6
+
7
+ <p align="center">
8
+ The Baloise Design System consists of reusable components and a clearly defined visual style, that can be assembled together to build any number of applications.
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://github.com/baloise/design-system/actions/workflows/continuous.yml">
13
+ <img src="https://github.com/baloise/design-system/actions/workflows/continuous.yml/badge.svg?branch=main" alt="Continuous" />
14
+ </a>
15
+ <a href="https://www.npmjs.com/package/@baloise/ds-core">
16
+ <img src="https://img.shields.io/npm/v/@baloise/ds-core" alt="NPM" />
17
+ </a>
18
+ <a href="https://www.npmjs.com/package/@baloise/ds-core">
19
+ <img src="https://img.shields.io/bundlephobia/min/@baloise/ds-core" alt="Bundle Size" />
20
+ </a>
21
+ <a href="https://webnamespaces.org">
22
+ <img src="https://img.shields.io/static/v1?label=webnamespaces.org&color=blue&message=bal" alt="Registred on webnamespaces.org" />
23
+ </a>
24
+ </p>
25
+
26
+ <h3 align="center">
27
+ <a href="https://design.baloise.dev/?path=/docs/development-getting-started--documentation">Quickstart</a>
28
+ <span> · </span>
29
+ <a href="https://design.baloise.dev">
30
+ Documentation
31
+ </a>
32
+ <span> · </span>
33
+ <a href="https://design.baloise.dev/?path=/docs/contributing--documentation">Contribute</a>
34
+ <span> · </span>
35
+ <a href="https://github.com/baloise/design-system/blob/main/CHANGELOG.md">Changelog</a>
36
+ </h3>
@@ -1,88 +1,4 @@
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$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;