@baloise/ds-core 18.1.0-nightly.20250325 → 18.2.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/components/all.d.ts +0 -2
- package/components/all.js +0 -3
- package/components/bal-app.js +93 -1
- package/components/bal-list-item2.js +4 -2
- package/components/bal-nav.js +8 -6
- package/components/bal-navbar-brand.js +4 -2
- package/components/bal-select2.js +10 -10
- package/components/bal-stage-back-link.js +4 -2
- package/components/bal-step-item.js +5 -2
- package/components/bal-steps.js +1 -1
- package/components/index.js +314 -7
- package/components/mutation.decorator.js +1 -1
- 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-002d7bb9.js +1 -0
- package/dist/baloise-design-system/{p-072aed6e60.entry.js → p-04a8a75fb8.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6d1f5b32f2.entry.js → p-0724c5fc39.entry.js} +1 -1
- package/dist/baloise-design-system/{p-93d7df5c6d.entry.js → p-0ad80f603a.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7b755da148.system.entry.js → p-0b851cd59c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8b52f370cd.entry.js → p-15f77798ad.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4743149c13.system.entry.js → p-1b7a378e4b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-de785a6031.system.entry.js → p-1fd9b1f748.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-02116878a7.entry.js → p-225aca33c2.entry.js} +1 -1
- package/dist/baloise-design-system/p-253668db69.entry.js +1 -0
- package/dist/baloise-design-system/{p-002f89cb60.entry.js → p-2568bb635f.entry.js} +1 -1
- package/dist/baloise-design-system/p-27d9d109b4.entry.js +1 -0
- package/dist/baloise-design-system/{p-cd5a66f93b.system.entry.js → p-29709a5fee.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-345aa92d.system.js +1 -0
- package/dist/baloise-design-system/{p-ba895d33.system.js → p-36a4ecfe.system.js} +1 -1
- package/dist/baloise-design-system/{p-ebae74f9d4.system.entry.js → p-380ca15c13.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-3913c6ae.js +1 -1
- package/dist/baloise-design-system/p-3a0896c8a9.entry.js +1 -0
- package/dist/baloise-design-system/{p-d058bd14.system.js → p-40d5ef4e.system.js} +1 -1
- package/dist/baloise-design-system/p-421a77b6c1.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-83512f21.system.js → p-456114b8.system.js} +1 -1
- package/dist/baloise-design-system/{p-3aea1ed2.js → p-4857a7ee.js} +1 -1
- package/dist/baloise-design-system/{p-54493c5289.system.entry.js → p-4bc159376b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f1bb1cd0.system.js → p-4c695be0.system.js} +1 -1
- package/dist/baloise-design-system/{p-bc5e76952e.entry.js → p-4c9ac6263c.entry.js} +1 -1
- package/dist/baloise-design-system/{p-fce9274127.system.entry.js → p-4e7c82ad7e.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7bec4431.system.js → p-5298de0e.system.js} +1 -1
- package/dist/baloise-design-system/p-5429e0223f.system.entry.js +1 -0
- package/dist/baloise-design-system/p-659ecadc.system.js +1 -1
- package/dist/baloise-design-system/{p-e3555412a3.entry.js → p-702d0efef4.entry.js} +1 -1
- package/dist/baloise-design-system/{p-79cb3891.system.js → p-7162e44f.system.js} +1 -1
- package/dist/baloise-design-system/{p-9d4b104317.system.entry.js → p-7496834468.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-75051cae.js +1 -0
- package/dist/baloise-design-system/{p-328a28a1d4.system.entry.js → p-7b7968e8d3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d654d02ad0.entry.js → p-7c4d5ab726.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4cac86d6.js → p-83ac9b11.js} +1 -1
- package/dist/baloise-design-system/{p-d56ec7d493.system.entry.js → p-864cf36d45.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-9276f29a07.entry.js +1 -0
- package/dist/baloise-design-system/{p-316efc7003.system.entry.js → p-9b9a37274f.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-a2f19988.js +1 -0
- package/dist/baloise-design-system/{p-0b2185a3c0.system.entry.js → p-a8a62f0a85.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b4a9a2a408.entry.js → p-afabc522e1.entry.js} +1 -1
- package/dist/baloise-design-system/{p-57e1067192.system.entry.js → p-b4b88e4c03.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a9f27b6ac2.entry.js → p-bab48d7af7.entry.js} +1 -1
- package/dist/baloise-design-system/p-bfb6c67686.entry.js +1 -0
- package/dist/baloise-design-system/{p-456604e926.system.entry.js → p-c4aabcc6bc.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-31598e65a3.entry.js → p-c9cbfd5a61.entry.js} +1 -1
- package/dist/baloise-design-system/p-dce0104d78.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-54d7ab6985.entry.js → p-e6d0ea6084.entry.js} +1 -1
- package/dist/baloise-design-system/{p-65c2ba64d5.system.entry.js → p-eeb7176703.system.entry.js} +1 -1
- package/dist/cjs/{global-2a76769b.js → app-globals-0d8db19e.js} +4 -2
- package/dist/cjs/bal-carousel_2.cjs.entry.js +4 -4
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-field_5.cjs.entry.js +1 -1
- package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-list_8.cjs.entry.js +6 -5
- package/dist/cjs/bal-logo.cjs.entry.js +3 -3
- package/dist/cjs/bal-nav_8.cjs.entry.js +12 -10
- package/dist/cjs/bal-navbar_5.cjs.entry.js +6 -5
- 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-radio_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-segment_2.cjs.entry.js +4 -4
- package/dist/cjs/bal-select_2.cjs.entry.js +10 -10
- package/dist/cjs/bal-shape.cjs.entry.js +1 -1
- package/dist/cjs/bal-stage_6.cjs.entry.js +3 -2
- package/dist/cjs/bal-step-item.cjs.entry.js +4 -2
- package/dist/cjs/bal-steps.cjs.entry.js +5 -5
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +4 -4
- package/dist/cjs/baloise-design-system.cjs.js +2 -3
- package/dist/cjs/{breakpoints.decorator-4d0bdaaa.js → breakpoints.decorator-90762be4.js} +1 -1
- package/dist/cjs/{breakpoints.subject-0ced9ce6.js → breakpoints.subject-7ee9fb88.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/initialize-2e8978a4.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -3
- package/dist/cjs/{mutation.decorator-84b44cab.js → mutation.decorator-485e250e.js} +1 -1
- package/dist/cjs/{tokens.esm-854a00cf.js → tokens.esm-aa5d038b.js} +1 -1
- package/dist/cjs/{window-resize.decorator-5d5ea770.js → window-resize.decorator-30d9f5ca.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/bal-list/bal-list-item/bal-list-item.js +24 -4
- package/dist/collection/components/bal-nav/components/accordion-button.js +2 -2
- package/dist/collection/components/bal-nav/components/overview-link.js +1 -1
- package/dist/collection/components/bal-nav/components/section-list.js +2 -2
- package/dist/collection/components/bal-nav/components/service-list.js +2 -2
- package/dist/collection/components/bal-nav/models/bal-nav-link-item.js +3 -1
- package/dist/collection/components/bal-nav/models/bal-nav-section-link-item.js +2 -2
- package/dist/collection/components/bal-nav/models/bal-nav-service-link-item.js +1 -1
- package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.js +23 -3
- package/dist/collection/components/bal-select/bal-select.js +10 -10
- package/dist/collection/components/bal-stage/bal-stage-back-link/bal-stage-back-link.js +22 -2
- package/dist/collection/components/bal-steps/bal-step-item/bal-step-item.js +24 -3
- package/dist/collection/components/bal-steps/components/step-button.js +1 -1
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/mutation/mutation.listener.js +1 -1
- package/dist/esm/{global-6e86728b.js → app-globals-5dd5fe6b.js} +4 -2
- package/dist/esm/bal-carousel_2.entry.js +4 -4
- package/dist/esm/bal-checkbox_2.entry.js +1 -1
- package/dist/esm/bal-field_5.entry.js +1 -1
- package/dist/esm/bal-hint_5.entry.js +3 -3
- package/dist/esm/bal-list_8.entry.js +6 -5
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-nav_8.entry.js +12 -10
- package/dist/esm/bal-navbar_5.entry.js +6 -5
- package/dist/esm/bal-pagination.entry.js +3 -3
- package/dist/esm/bal-progress-bar.entry.js +4 -4
- package/dist/esm/bal-radio_2.entry.js +1 -1
- package/dist/esm/bal-segment_2.entry.js +4 -4
- package/dist/esm/bal-select_2.entry.js +10 -10
- package/dist/esm/bal-shape.entry.js +1 -1
- package/dist/esm/bal-stage_6.entry.js +3 -2
- package/dist/esm/bal-step-item.entry.js +4 -2
- package/dist/esm/bal-steps.entry.js +5 -5
- package/dist/esm/bal-tab-item_2.entry.js +4 -4
- package/dist/esm/baloise-design-system.js +2 -3
- package/dist/esm/{breakpoints.decorator-9a9d222b.js → breakpoints.decorator-2074b85a.js} +1 -1
- package/dist/esm/{breakpoints.subject-06ad0f30.js → breakpoints.subject-3329beee.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/initialize-be160cc4.js +1 -1
- package/dist/esm/loader.js +2 -3
- package/dist/esm/{mutation.decorator-a8bfa55f.js → mutation.decorator-e915d053.js} +1 -1
- package/dist/esm/{tokens.esm-46ef9596.js → tokens.esm-9895930d.js} +1 -1
- package/dist/esm/{window-resize.decorator-823d7fba.js → window-resize.decorator-9c64a902.js} +1 -1
- package/dist/esm-es5/app-globals-5dd5fe6b.js +1 -0
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/bal-field_5.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-radio_2.entry.js +1 -1
- package/dist/esm-es5/bal-segment_2.entry.js +1 -1
- package/dist/esm-es5/bal-select_2.entry.js +1 -1
- package/dist/esm-es5/bal-shape.entry.js +1 -1
- package/dist/esm-es5/bal-stage_6.entry.js +1 -1
- package/dist/esm-es5/bal-step-item.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-2074b85a.js +1 -0
- package/dist/esm-es5/{breakpoints.subject-06ad0f30.js → breakpoints.subject-3329beee.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-be160cc4.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{mutation.decorator-a8bfa55f.js → mutation.decorator-e915d053.js} +1 -1
- package/dist/esm-es5/{window-resize.decorator-823d7fba.js → window-resize.decorator-9c64a902.js} +1 -1
- package/dist/html.html-data.json +16 -0
- package/dist/types/components/bal-list/bal-list-item/bal-list-item.d.ts +7 -2
- package/dist/types/components/bal-nav/bal-nav.interfaces.d.ts +2 -0
- package/dist/types/components/bal-nav/components/accordion-button.d.ts +1 -0
- package/dist/types/components/bal-nav/models/bal-nav-link-item.d.ts +1 -0
- package/dist/types/components/bal-nav/models/bal-nav-section-link-item.d.ts +1 -1
- package/dist/types/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.d.ts +5 -0
- package/dist/types/components/bal-stage/bal-stage-back-link/bal-stage-back-link.d.ts +5 -0
- package/dist/types/components/bal-steps/bal-step-item/bal-step-item.d.ts +6 -0
- package/dist/types/components/bal-steps/bal-step.type.d.ts +1 -0
- package/dist/types/components.d.ts +32 -37
- package/package.json +6 -6
- package/components/bal-app2.js +0 -95
- package/components/bal-doc-app.d.ts +0 -11
- package/components/bal-doc-app.js +0 -262
- package/components/initialize.js +0 -312
- package/dist/baloise-design-system/p-1e142b10.system.js +0 -1
- package/dist/baloise-design-system/p-260c7eae.js +0 -1
- package/dist/baloise-design-system/p-294f38c2.js +0 -1
- package/dist/baloise-design-system/p-2ea01e6d.js +0 -1
- package/dist/baloise-design-system/p-36d8ef03de.entry.js +0 -1
- package/dist/baloise-design-system/p-400bbebf71.entry.js +0 -1
- package/dist/baloise-design-system/p-42e66219.system.js +0 -1
- package/dist/baloise-design-system/p-4504bc9205.system.entry.js +0 -1
- package/dist/baloise-design-system/p-47f0669a.js +0 -1
- package/dist/baloise-design-system/p-51fc5e640a.entry.js +0 -1
- package/dist/baloise-design-system/p-8f148a860f.entry.js +0 -1
- package/dist/baloise-design-system/p-992939a2e2.system.entry.js +0 -1
- package/dist/baloise-design-system/p-a70f415677.system.entry.js +0 -1
- package/dist/baloise-design-system/p-aa2b2147a2.entry.js +0 -1
- package/dist/baloise-design-system/p-b914ba15c2.entry.js +0 -1
- package/dist/baloise-design-system/p-c3a80310e0.system.entry.js +0 -1
- package/dist/cjs/app-globals-f63c33e7.js +0 -7
- package/dist/cjs/bal-doc-app.cjs.entry.js +0 -233
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +0 -1
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +0 -247
- package/dist/esm/app-globals-1ecf000f.js +0 -5
- package/dist/esm/bal-doc-app.entry.js +0 -229
- package/dist/esm-es5/app-globals-1ecf000f.js +0 -1
- package/dist/esm-es5/bal-doc-app.entry.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-9a9d222b.js +0 -1
- package/dist/esm-es5/global-6e86728b.js +0 -1
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +0 -21
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +0 -82
- /package/dist/baloise-design-system/{p-635f9a6a.system.js → p-105f0019.system.js} +0 -0
- /package/dist/baloise-design-system/{p-e5ccc2ca.js → p-8b3520e9.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-46ef9596.js → tokens.esm-9895930d.js} +0 -0
package/components/all.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ import { BalDate, defineCustomElement as defineBalDate } from './bal-date'
|
|
|
27
27
|
import { BalDateCalendar, defineCustomElement as defineBalDateCalendar } from './bal-date-calendar'
|
|
28
28
|
import { BalDateCalendarCell, defineCustomElement as defineBalDateCalendarCell } from './bal-date-calendar-cell'
|
|
29
29
|
import { BalDivider, defineCustomElement as defineBalDivider } from './bal-divider'
|
|
30
|
-
import { BalDocApp, defineCustomElement as defineBalDocApp } from './bal-doc-app'
|
|
31
30
|
import { BalDropdown, defineCustomElement as defineBalDropdown } from './bal-dropdown'
|
|
32
31
|
import { BalField, defineCustomElement as defineBalField } from './bal-field'
|
|
33
32
|
import { BalFieldControl, defineCustomElement as defineBalFieldControl } from './bal-field-control'
|
|
@@ -145,7 +144,6 @@ export { BalDate, defineBalDate }
|
|
|
145
144
|
export { BalDateCalendar, defineBalDateCalendar }
|
|
146
145
|
export { BalDateCalendarCell, defineBalDateCalendarCell }
|
|
147
146
|
export { BalDivider, defineBalDivider }
|
|
148
|
-
export { BalDocApp, defineBalDocApp }
|
|
149
147
|
export { BalDropdown, defineBalDropdown }
|
|
150
148
|
export { BalField, defineBalField }
|
|
151
149
|
export { BalFieldControl, defineBalFieldControl }
|
package/components/all.js
CHANGED
|
@@ -27,7 +27,6 @@ import { BalDate, defineCustomElement as defineBalDate } from './bal-date'
|
|
|
27
27
|
import { BalDateCalendar, defineCustomElement as defineBalDateCalendar } from './bal-date-calendar'
|
|
28
28
|
import { BalDateCalendarCell, defineCustomElement as defineBalDateCalendarCell } from './bal-date-calendar-cell'
|
|
29
29
|
import { BalDivider, defineCustomElement as defineBalDivider } from './bal-divider'
|
|
30
|
-
import { BalDocApp, defineCustomElement as defineBalDocApp } from './bal-doc-app'
|
|
31
30
|
import { BalDropdown, defineCustomElement as defineBalDropdown } from './bal-dropdown'
|
|
32
31
|
import { BalField, defineCustomElement as defineBalField } from './bal-field'
|
|
33
32
|
import { BalFieldControl, defineCustomElement as defineBalFieldControl } from './bal-field-control'
|
|
@@ -145,7 +144,6 @@ export { BalDate, defineBalDate }
|
|
|
145
144
|
export { BalDateCalendar, defineBalDateCalendar }
|
|
146
145
|
export { BalDateCalendarCell, defineBalDateCalendarCell }
|
|
147
146
|
export { BalDivider, defineBalDivider }
|
|
148
|
-
export { BalDocApp, defineBalDocApp }
|
|
149
147
|
export { BalDropdown, defineBalDropdown }
|
|
150
148
|
export { BalField, defineBalField }
|
|
151
149
|
export { BalFieldControl, defineBalFieldControl }
|
|
@@ -264,7 +262,6 @@ export const defineAllComponents = () => {
|
|
|
264
262
|
defineBalDateCalendar()
|
|
265
263
|
defineBalDateCalendarCell()
|
|
266
264
|
defineBalDivider()
|
|
267
|
-
defineBalDocApp()
|
|
268
265
|
defineBalDropdown()
|
|
269
266
|
defineBalField()
|
|
270
267
|
defineBalFieldControl()
|
package/components/bal-app.js
CHANGED
|
@@ -1,4 +1,96 @@
|
|
|
1
|
-
import {
|
|
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 { k as debounce, p as rIC, m as rOnLoad } 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}.lcp-wait{opacity:0;visibility:hidden;display:none}.lcp-ready .lcp-wait{opacity:inherit;visibility:inherit;display:inherit}";
|
|
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
|
+
if (this.animated === false) {
|
|
32
|
+
updateBalAnimated(this.animated);
|
|
33
|
+
}
|
|
34
|
+
if (balBrowser.hasWindow) {
|
|
35
|
+
window.addEventListener('resize', this.debouncedNotify);
|
|
36
|
+
this.debouncedNotify();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
componentDidLoad() {
|
|
40
|
+
rIC(() => {
|
|
41
|
+
this.ready = true;
|
|
42
|
+
startFocusVisible();
|
|
43
|
+
});
|
|
44
|
+
rOnLoad(() => {
|
|
45
|
+
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
46
|
+
const doc = document.documentElement;
|
|
47
|
+
doc.classList.add('lcp-ready');
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
disconnectedCallback() {
|
|
52
|
+
if (balBrowser.hasWindow) {
|
|
53
|
+
window.removeEventListener('resize', this.debouncedNotify);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
async setFocus(elements) {
|
|
57
|
+
if (this.focusVisible) {
|
|
58
|
+
this.focusVisible.setFocus(elements);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
return (h(Host, { key: 'e062237a5407e1f20d5ba64329e264fc0ae41f4e', class: {
|
|
63
|
+
'bal-app': true,
|
|
64
|
+
'bal-app--safari': balBrowser.isSafari,
|
|
65
|
+
'bal-app--touch': balDevice.hasTouchScreen,
|
|
66
|
+
} }, h("slot", { key: '0fdf270bb2737933ba48a2181e98897de19f66ed' })));
|
|
67
|
+
}
|
|
68
|
+
get el() { return this; }
|
|
69
|
+
static get style() { return BalAppStyle0; }
|
|
70
|
+
}, [4, "bal-app", {
|
|
71
|
+
"animated": [516],
|
|
72
|
+
"ready": [1540],
|
|
73
|
+
"setFocus": [64]
|
|
74
|
+
}]);
|
|
75
|
+
__decorate([
|
|
76
|
+
Logger('bal-app'),
|
|
77
|
+
__metadata("design:type", Function),
|
|
78
|
+
__metadata("design:paramtypes", [Function]),
|
|
79
|
+
__metadata("design:returntype", void 0)
|
|
80
|
+
], App.prototype, "createLogger", null);
|
|
81
|
+
function defineCustomElement$1() {
|
|
82
|
+
if (typeof customElements === "undefined") {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
const components = ["bal-app"];
|
|
86
|
+
components.forEach(tagName => { switch (tagName) {
|
|
87
|
+
case "bal-app":
|
|
88
|
+
if (!customElements.get(tagName)) {
|
|
89
|
+
customElements.define(tagName, App);
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
} });
|
|
93
|
+
}
|
|
2
94
|
|
|
3
95
|
const BalApp = App;
|
|
4
96
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
3
|
import { B as BEM } from './bem.js';
|
|
4
|
-
import { L as Logger } from './log.js';
|
|
5
4
|
import { n as raf, t as transitionEndAsync } from './helpers.js';
|
|
5
|
+
import { L as Logger } from './log.js';
|
|
6
6
|
import { L as ListenToConfig } from './config.decorator.js';
|
|
7
7
|
|
|
8
8
|
const ListItem = /*@__PURE__*/ proxyCustomElement(class ListItem extends HTMLElement {
|
|
@@ -165,6 +165,7 @@ const ListItem = /*@__PURE__*/ proxyCustomElement(class ListItem extends HTMLEle
|
|
|
165
165
|
this.accordion = false;
|
|
166
166
|
this.subAccordionItem = false;
|
|
167
167
|
this.href = '';
|
|
168
|
+
this.rel = undefined;
|
|
168
169
|
this.target = '_self';
|
|
169
170
|
this.download = undefined;
|
|
170
171
|
}
|
|
@@ -240,7 +241,7 @@ const ListItem = /*@__PURE__*/ proxyCustomElement(class ListItem extends HTMLEle
|
|
|
240
241
|
const trigger = item.element('trigger');
|
|
241
242
|
const basicClasses = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, item.class()), item.modifier('disabled').class(this.disabled)), item.modifier('selected').class(this.selected)), item.modifier('animated').class(this.animated)), item.modifier('accordion').class(this.accordion)), item.modifier('sub-accordion').class(this.subAccordionItem)), item.modifier('active').class(this.accordionOpen)), item.modifier('expanding').class(this.state === 8 /* AccordionState.Expanding */)), item.modifier('expanded').class(this.state === 4 /* AccordionState.Expanded */)), item.modifier('collapsing').class(this.state === 2 /* AccordionState.Collapsing */)), item.modifier('collapsed').class(this.state === 1 /* AccordionState.Collapsed */)), item.modifier('clickable').class(!this.disabled && (this.clickable || this.href.length > 0 || this.accordion)));
|
|
242
243
|
if (this.href.length > 0 && !this.disabled) {
|
|
243
|
-
return (h(Host, { role: "listitem", class: Object.assign({}, basicClasses) }, h("a", { class: Object.assign({}, trigger.class()), href: this.href, target: this.target, download: this.download, onClick: (ev) => this.onClickTrigger(ev) }, h("slot", null))));
|
|
244
|
+
return (h(Host, { role: "listitem", class: Object.assign({}, basicClasses) }, h("a", { class: Object.assign({}, trigger.class()), rel: this.rel, href: this.href, target: this.target, download: this.download, onClick: (ev) => this.onClickTrigger(ev) }, h("slot", null))));
|
|
244
245
|
}
|
|
245
246
|
if (this.clickable) {
|
|
246
247
|
return (h(Host, { role: "listitem", class: Object.assign({}, basicClasses) }, h("button", { class: Object.assign({}, trigger.class()), disabled: this.disabled, onClick: (ev) => this.onClickTrigger(ev) }, h("slot", null))));
|
|
@@ -258,6 +259,7 @@ const ListItem = /*@__PURE__*/ proxyCustomElement(class ListItem extends HTMLEle
|
|
|
258
259
|
"accordion": [4],
|
|
259
260
|
"subAccordionItem": [4, "sub-accordion-item"],
|
|
260
261
|
"href": [1],
|
|
262
|
+
"rel": [1],
|
|
261
263
|
"target": [1],
|
|
262
264
|
"download": [1],
|
|
263
265
|
"state": [32],
|
package/components/bal-nav.js
CHANGED
|
@@ -49,6 +49,7 @@ class NavLinkItem {
|
|
|
49
49
|
this.id = `nav-link-item-${NavLinkItemIDs++}`;
|
|
50
50
|
this.value = item.value || this.id;
|
|
51
51
|
this.href = item.href;
|
|
52
|
+
this.rel = item.rel;
|
|
52
53
|
this.target = item.target;
|
|
53
54
|
this.active = !!item.active;
|
|
54
55
|
this.clickable = !!item.clickable;
|
|
@@ -77,6 +78,7 @@ class NavLinkItem {
|
|
|
77
78
|
label: this.label,
|
|
78
79
|
value: this.value,
|
|
79
80
|
href: this.href,
|
|
81
|
+
rel: this.rel,
|
|
80
82
|
target: this.target,
|
|
81
83
|
data: this.data,
|
|
82
84
|
};
|
|
@@ -84,7 +86,7 @@ class NavLinkItem {
|
|
|
84
86
|
renderTouch(_context) {
|
|
85
87
|
const block = BEM.block('nav');
|
|
86
88
|
return (h("li", null,
|
|
87
|
-
h("a", { id: this.id, class: Object.assign(Object.assign(Object.assign({}, block.element('mobile-links').class()), block.element('mobile-links').modifier('selected').class(this.active)), block.element('mobile-links').modifier('clickable').class(this.clickable)), href: this.href, target: this.target, onClick: ev => this.onClick(ev) }, this.label)));
|
|
89
|
+
h("a", { id: this.id, class: Object.assign(Object.assign(Object.assign({}, block.element('mobile-links').class()), block.element('mobile-links').modifier('selected').class(this.active)), block.element('mobile-links').modifier('clickable').class(this.clickable)), href: this.href, rel: this.rel, target: this.target, onClick: ev => this.onClick(ev) }, this.label)));
|
|
88
90
|
}
|
|
89
91
|
render(_context) {
|
|
90
92
|
return (h("bal-nav-link", { role: "listitem", href: this.href, target: this.target, clickable: this.clickable, selected: this.active, onClick: ev => this.onClick(ev) }, this.label));
|
|
@@ -111,7 +113,7 @@ class NavSectionLinkItem extends NavLinkItem {
|
|
|
111
113
|
const block = BEM.block('nav');
|
|
112
114
|
const hasItems = this.linkItems && this.linkItems.length > 0;
|
|
113
115
|
return (h("li", null,
|
|
114
|
-
h("a", { id: this.id, class: Object.assign(Object.assign(Object.assign({}, block.element('mobile-section-item').class()), block.element('mobile-section-item').modifier('selected').class(this.active)), block.element('mobile-section-item').modifier('clickable').class(this.clickable)), href: this.href, target: this.target, onClick: ev => this.onClick(ev) }, this.label),
|
|
116
|
+
h("a", { id: this.id, class: Object.assign(Object.assign(Object.assign({}, block.element('mobile-section-item').class()), block.element('mobile-section-item').modifier('selected').class(this.active)), block.element('mobile-section-item').modifier('clickable').class(this.clickable)), href: this.href, rel: this.rel, target: this.target, onClick: ev => this.onClick(ev) }, this.label),
|
|
115
117
|
hasItems ? (h("ul", { class: Object.assign({}, block.element('mobile-links-list').class()) }, this.linkItems.map(item => item.renderTouch()))) : ('')));
|
|
116
118
|
}
|
|
117
119
|
render(_context) {
|
|
@@ -139,7 +141,7 @@ class NavServiceLinkItem extends NavLinkItem {
|
|
|
139
141
|
const block = BEM.block('nav');
|
|
140
142
|
const hasItems = this.linkItems && this.linkItems.length > 0;
|
|
141
143
|
return (h("li", { class: Object.assign(Object.assign(Object.assign(Object.assign({}, block.element('mobile-service-item').class()), block.element('mobile-service-item').modifier(`color-${this.color}`).class()), block.element('mobile-service-item').modifier('selected').class(this.active)), block.element('mobile-service-item').modifier('clickable').class(this.clickable)) },
|
|
142
|
-
h("a", { id: this.id, href: this.href, target: this.target, onClick: ev => this.onClick(ev) }, this.label),
|
|
144
|
+
h("a", { id: this.id, href: this.href, rel: this.rel, target: this.target, onClick: ev => this.onClick(ev) }, this.label),
|
|
143
145
|
hasItems ? (h("ul", { class: Object.assign({}, block.element('mobile-links-list').class()) }, this.linkItems.map(item => item.renderTouch()))) : ('')));
|
|
144
146
|
}
|
|
145
147
|
render(_context) {
|
|
@@ -150,9 +152,9 @@ class NavServiceLinkItem extends NavLinkItem {
|
|
|
150
152
|
}
|
|
151
153
|
let NavServiceLinkItemIDs = 0;
|
|
152
154
|
|
|
153
|
-
const AccordionButton = ({ id, label, level, open, link, href, target, onClick, }) => {
|
|
155
|
+
const AccordionButton = ({ id, label, level, open, link, href, rel, target, onClick, }) => {
|
|
154
156
|
const block = BEM.block('nav');
|
|
155
|
-
return link ? (h("a", { id: id, class: Object.assign({}, block.element(`mobile-${level}-item`).class()), href: href, target: target, onClick: ev => onClick(ev) },
|
|
157
|
+
return link ? (h("a", { id: id, class: Object.assign({}, block.element(`mobile-${level}-item`).class()), href: href, rel: rel, target: target, onClick: ev => onClick(ev) },
|
|
156
158
|
h("span", null, label))) : (h("button", { id: id, class: Object.assign({}, block.element(`mobile-${level}-item`).class()), onClick: ev => onClick(ev) },
|
|
157
159
|
h("span", null, label),
|
|
158
160
|
h("bal-icon", { name: "nav-go-down", size: "small", turn: open })));
|
|
@@ -166,7 +168,7 @@ const OverviewLink = ({ item, isMenu, onClick, isVisible }) => {
|
|
|
166
168
|
return (h("a", { class: Object.assign(Object.assign(Object.assign({}, block.element('mobile-overview-link').class()), block.element('mobile-overview-link').modifier('menu').class(!!isMenu)), block
|
|
167
169
|
.element('mobile-overview-link')
|
|
168
170
|
.modifier('invisible')
|
|
169
|
-
.class(isVisible === false)), href: item.href, target: item.target, onClick: ev => onClick(ev) },
|
|
171
|
+
.class(isVisible === false)), href: item.href, rel: item.rel, target: item.target, onClick: ev => onClick(ev) },
|
|
170
172
|
item.label,
|
|
171
173
|
" ",
|
|
172
174
|
item.label ? '➞' : ''));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
3
|
import { B as BEM } from './bem.js';
|
|
4
|
-
import { B as BalScrollHandler } from './scroll.js';
|
|
5
4
|
import { b as balBrowser } from './browser.js';
|
|
6
5
|
import { i as wait } from './helpers.js';
|
|
6
|
+
import { B as BalScrollHandler } from './scroll.js';
|
|
7
7
|
import { d as defineCustomElement$5 } from './bal-button2.js';
|
|
8
8
|
import { d as defineCustomElement$4 } from './bal-icon2.js';
|
|
9
9
|
import { d as defineCustomElement$3 } from './bal-logo2.js';
|
|
@@ -55,6 +55,7 @@ const NavbarBrand = /*@__PURE__*/ proxyCustomElement(class NavbarBrand extends H
|
|
|
55
55
|
this.language = defaultConfig.language;
|
|
56
56
|
this.isMenuActive = false;
|
|
57
57
|
this.href = '';
|
|
58
|
+
this.rel = undefined;
|
|
58
59
|
this.logoClickable = false;
|
|
59
60
|
this.logoLabel = undefined;
|
|
60
61
|
this.target = '_self';
|
|
@@ -117,7 +118,7 @@ const NavbarBrand = /*@__PURE__*/ proxyCustomElement(class NavbarBrand extends H
|
|
|
117
118
|
const navbarBrandEl = BEM.block('navbar').element('brand');
|
|
118
119
|
const logoTemplate = this.logo ? (h("img", { class: Object.assign({}, navbarBrandEl.element('logo').class()), src: this.logo, alt: "" })) : (h("bal-logo", { animated: this.animated, color: 'white', size: this.logoSize }));
|
|
119
120
|
const logoLabel = this.logoLabel ? this.logoLabel : i18nBalNavbarBrand[this.language].logoButtonLabel;
|
|
120
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: '89cac098cf15e08c2d48748b6eb2cc184ed57292', class: Object.assign(Object.assign({}, navbarBrandEl.class()), navbarBrandEl.modifier(`context-${this.interface}`).class()) }, this.href ? (h("a", { "aria-label": logoLabel, title: logoLabel, href: this.href, rel: this.rel, target: this.target, onClick: (ev) => this.balNavigate.emit(ev) }, logoTemplate)) : this.logoClickable ? (h("button", { "aria-label": logoLabel, title: logoLabel, onClick: (ev) => this.balNavigate.emit(ev) }, logoTemplate)) : (logoTemplate), h("span", { key: 'b5807bd115fe7e7d5f75a7d319b810ad33c1db39', class: Object.assign({}, navbarBrandEl.element('title').class()) }, h("slot", { key: '14741534401ef235bee19db0d4aead5ec437c501' })), h("bal-button", { key: '9104e683dd114554c8ec84f4b20abd13e2c77dfe', class: Object.assign(Object.assign({}, navbarBrandEl.element('burger').class()), navbarBrandEl
|
|
121
122
|
.element('burger')
|
|
122
123
|
.modifier('hidden')
|
|
123
124
|
.class(this.interface === 'simple')), color: "light", inverted: true, square: true, icon: this.isMenuActive ? 'close' : 'menu-bars', onClick: () => this.onClick() })));
|
|
@@ -125,6 +126,7 @@ const NavbarBrand = /*@__PURE__*/ proxyCustomElement(class NavbarBrand extends H
|
|
|
125
126
|
get el() { return this; }
|
|
126
127
|
}, [4, "bal-navbar-brand", {
|
|
127
128
|
"href": [1],
|
|
129
|
+
"rel": [1],
|
|
128
130
|
"logoClickable": [4, "logo-clickable"],
|
|
129
131
|
"logoLabel": [1, "logo-label"],
|
|
130
132
|
"target": [1],
|
|
@@ -208,7 +208,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
208
208
|
updateRawValue(newValue, isHuman = true) {
|
|
209
209
|
if (!areArraysEqual(newValue, this.rawValue || [])) {
|
|
210
210
|
this.rawValue = [...newValue];
|
|
211
|
-
this.syncNativeInput();
|
|
211
|
+
this.syncNativeInput(isHuman);
|
|
212
212
|
if (this.didInit && isHuman === true) {
|
|
213
213
|
if (this.multiple) {
|
|
214
214
|
if (lodash_isnil(this.rawValue)) {
|
|
@@ -669,7 +669,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
669
669
|
this.updateRawValue(newRawValue, isHuman);
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
syncNativeInput() {
|
|
672
|
+
syncNativeInput(isHuman = true) {
|
|
673
673
|
if (!this.multiple) {
|
|
674
674
|
if (length(this.rawValue) > 0) {
|
|
675
675
|
const valuesArray = getValues(this.rawValue);
|
|
@@ -679,9 +679,9 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
679
679
|
}
|
|
680
680
|
return this.updateInputValue(label);
|
|
681
681
|
}
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
682
|
+
}
|
|
683
|
+
if (!isHuman && length(this.rawValue) === 0) {
|
|
684
|
+
return this.updateInputValue('');
|
|
685
685
|
}
|
|
686
686
|
return Promise.resolve();
|
|
687
687
|
}
|
|
@@ -722,7 +722,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
722
722
|
*/
|
|
723
723
|
render() {
|
|
724
724
|
var _a;
|
|
725
|
-
const Chip = (props) => (h("bal-tag", { key: '
|
|
725
|
+
const Chip = (props) => (h("bal-tag", { key: '5bcf5db754537ec86b2c332f2c63ae1d28f04f98', size: "", closable: !this.disabled, disabled: this.disabled, invalid: this.invalid, tabindex: -1, onBalCloseClick: _ => this.removeValue(props.value), "data-testid": "bal-select-chip" }, findLabelByValue(this.options, props.value) || props.value));
|
|
726
726
|
const valuesArray = getValues(this.rawValue);
|
|
727
727
|
const block = BEM.block('select');
|
|
728
728
|
const nativeEl = block.element('native');
|
|
@@ -736,19 +736,19 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
736
736
|
const optionContentEl = optionEl.element('content');
|
|
737
737
|
const optionContentCheckboxEl = optionContentEl.element('checkbox');
|
|
738
738
|
const optionContentLabelEl = optionContentEl.element('label');
|
|
739
|
-
return (h(Host, { key: '
|
|
739
|
+
return (h(Host, { key: '8a2ed44d1007220a11cba788bc215e07417797f8', role: "listbox", onClick: this.handleClick, "aria-disabled": ariaBooleanToString(this.disabled), "data-value": (_a = this.rawValue) === null || _a === void 0 ? void 0 : _a.map(v => findLabelByValue(this.options, v)).join(','), class: Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('disabled').class(this.disabled || this.readonly)), block.modifier('inverted').class(this.inverted)), block.modifier('inverted-footer').class(this.inverted)) }, h("select", { key: 'b9605f9d566c9b5637dc4fed4a49370e04ce238b', class: Object.assign({}, nativeEl.class()), name: this.name, multiple: this.multiple, required: this.required, tabindex: -1, ref: el => (this.nativeSelectEl = el) }, valuesArray.map((value) => (h("option", { key: value, value: value, selected: true }, value)))), h("bal-popover", { key: '2116e76113fb0cd238e6a1b7a551c1e45c8cee47', onBalChange: this.handlePopoverChange, ref: el => (this.popoverElement = el) }, h("div", { key: '7d77bf05a11bdf40b06732099f21fb4eb151ed52', "bal-popover-trigger": true, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, controlEl.class()), controlEl.modifier('invalid').class(this.invalid)), controlEl.modifier('disabled').class(this.disabled || this.readonly)), controlEl.modifier('focused').class(this.isPopoverOpen)), controlEl.modifier('inverted-footer').class(this.inverted)) }, h("div", { key: '5a52ce88c32363ea2c69e3b4008568674f9040b2', class: Object.assign(Object.assign({}, controlSelectionsEl.class()), controlSelectionsEl
|
|
740
740
|
.modifier('clickable')
|
|
741
741
|
.class(!this.isPopoverOpen && !this.disabled && !this.readonly)), onClick: this.handleInputClick, ref: el => (this.selectionEl = el) }, valuesArray
|
|
742
742
|
.filter(_ => this.multiple)
|
|
743
|
-
.map((value) => (h(Chip, { value: value }))), h("input", { key: '
|
|
743
|
+
.map((value) => (h(Chip, { value: value }))), h("input", { key: '1329705b31e8846d7c8cad7736204575d2bb68a6', type: "text", class: Object.assign(Object.assign({}, controlInputEl.class()), { 'input': true, 'is-inverted': this.inverted, 'is-danger': this.invalid, 'is-disabled': this.disabled || this.readonly, 'is-clickable': !this.isPopoverOpen && !this.disabled && !this.readonly, 'data-test-select-input': true }), id: this.ariaForm.controlId || this.inputId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": ariaBooleanToString(this.disabled), "data-testid": "bal-select-input", autocomplete: this.autocomplete, "aria-autocomplete": this.autocomplete === 'off' ? 'none' : null, placeholder: this.inputPlaceholder, readonly: !this.typeahead || this.disabled || this.readonly, contentEditable: this.typeahead, disabled: this.disabled, maxLength: this.maxLength, tabindex: this.balTabindex, onInput: this.handleInput, onClick: this.handleInputClick, onChange: this.handleInputChange, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onKeyPress: this.handleKeyPress, ref: el => (this.inputElement = el) })), !this.freeSolo && !this.loading ? (h("bal-icon", { class: Object.assign(Object.assign(Object.assign({}, controlIconEl.class()), controlIconEl.modifier('loading').class(this.loading)), controlIconEl.modifier('clickable').class(!this.disabled && !this.readonly)), name: !this.inverted ? 'caret-down' : 'caret-up', color: this.disabled || this.readonly
|
|
744
744
|
? 'grey-light'
|
|
745
745
|
: this.inverted
|
|
746
746
|
? 'white'
|
|
747
747
|
: this.invalid
|
|
748
748
|
? 'danger'
|
|
749
|
-
: 'primary', turn: this.isPopoverOpen, onClick: ev => this.handleInputClick(ev, true), size: !this.inverted ? '' : 'x-small' })) : ('')), h("bal-popover-content", { key: '
|
|
749
|
+
: 'primary', turn: this.isPopoverOpen, onClick: ev => this.handleInputClick(ev, true), size: !this.inverted ? '' : 'x-small' })) : ('')), h("bal-popover-content", { key: 'ecc1305ae4c29e9fd3d131e69dc781deb4bd4bdc', class: Object.assign({}, popoverContentEl.class()), scrollable: this.scrollable, spaceless: true, expanded: true }, this.optionArray.map((option, index) => (h("button", { key: option.value, type: "button", role: "option", id: option.id, "data-value": option.value, "data-label": option.label, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, optionEl.class()), optionEl
|
|
750
750
|
.modifier('selected')
|
|
751
|
-
.class(valuesArray.includes(option.value) && !(this.typeahead && !this.multiple))), optionEl.modifier('focused').class(this.focusIndex === index)), optionEl.modifier('checkbox').class(this.multiple)), optionEl.modifier('disabled').class(option.disabled === true)), "data-testid": "bal-select-option", disabled: option.disabled, tabIndex: -1, onMouseEnter: () => this.handleOptionMouseEnter(index), onClick: () => this.optionSelected(option) }, h("div", { class: Object.assign({}, optionContentEl.class()) }, h("span", { class: Object.assign({}, optionContentCheckboxEl.class()), style: { display: this.multiple ? 'flex' : 'none' } }, h("bal-checkbox", { checked: valuesArray.includes(option.value), tabindex: -1, nonSubmit: true, flat: true, onBalChange: preventDefault })), h("span", { class: Object.assign({}, optionContentLabelEl.class()), innerHTML: option.innerHTML }))))), h("div", { key: '
|
|
751
|
+
.class(valuesArray.includes(option.value) && !(this.typeahead && !this.multiple))), optionEl.modifier('focused').class(this.focusIndex === index)), optionEl.modifier('checkbox').class(this.multiple)), optionEl.modifier('disabled').class(option.disabled === true)), "data-testid": "bal-select-option", disabled: option.disabled, tabIndex: -1, onMouseEnter: () => this.handleOptionMouseEnter(index), onClick: () => this.optionSelected(option) }, h("div", { class: Object.assign({}, optionContentEl.class()) }, h("span", { class: Object.assign({}, optionContentCheckboxEl.class()), style: { display: this.multiple ? 'flex' : 'none' } }, h("bal-checkbox", { checked: valuesArray.includes(option.value), tabindex: -1, nonSubmit: true, flat: true, onBalChange: preventDefault })), h("span", { class: Object.assign({}, optionContentLabelEl.class()), innerHTML: option.innerHTML }))))), h("div", { key: 'c24a3bf08a3c8c5c403a8eab86ee2adce14f896f', class: Object.assign(Object.assign({}, popoverContentEmptyEl.class()), popoverContentEmptyEl
|
|
752
752
|
.modifier('hidden')
|
|
753
753
|
.class(this.noDataLabel === undefined || this.hasOptions() || !this.typeahead || this.selectionOptional)) }, this.noDataLabel)))));
|
|
754
754
|
}
|
|
@@ -7,19 +7,21 @@ const StageBackLink = /*@__PURE__*/ proxyCustomElement(class StageBackLink exten
|
|
|
7
7
|
super();
|
|
8
8
|
this.__registerHost();
|
|
9
9
|
this.href = undefined;
|
|
10
|
+
this.rel = undefined;
|
|
10
11
|
this.shadow = false;
|
|
11
12
|
this.inverted = false;
|
|
12
13
|
}
|
|
13
14
|
render() {
|
|
14
15
|
const block = BEM.block('stage-back-link');
|
|
15
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '5158c9c4cff372138c88a8af2997d6f85bd8d885', class: Object.assign(Object.assign({}, block.class()), block.modifier('shadow').class(this.shadow)) }, h("a", { key: '205e1ae01e652fb595e088879287d9b25315b234', class: {
|
|
16
17
|
'link': true,
|
|
17
18
|
'is-inverted': this.inverted,
|
|
18
|
-
}, href: this.href }, h("bal-icon", { key: '
|
|
19
|
+
}, href: this.href, rel: this.rel }, h("bal-icon", { key: 'db43094884a07ab6e079b3ac6f89d7c2f927b1b6', class: "mr-x-small", name: "caret-left", size: "x-small", inverted: this.inverted, shadow: this.shadow }), h("slot", { key: 'a680c6fac50060190d267890f6c7d7ccbec1f3f4' }))));
|
|
19
20
|
}
|
|
20
21
|
get el() { return this; }
|
|
21
22
|
}, [4, "bal-stage-back-link", {
|
|
22
23
|
"href": [1],
|
|
24
|
+
"rel": [1],
|
|
23
25
|
"shadow": [4],
|
|
24
26
|
"inverted": [4]
|
|
25
27
|
}]);
|
|
@@ -12,6 +12,7 @@ const StepItem = /*@__PURE__*/ proxyCustomElement(class StepItem extends HTMLEle
|
|
|
12
12
|
this.value = '';
|
|
13
13
|
this.label = '';
|
|
14
14
|
this.href = '';
|
|
15
|
+
this.rel = undefined;
|
|
15
16
|
this.target = '_self';
|
|
16
17
|
this.disabled = false;
|
|
17
18
|
this.done = false;
|
|
@@ -39,6 +40,7 @@ const StepItem = /*@__PURE__*/ proxyCustomElement(class StepItem extends HTMLEle
|
|
|
39
40
|
value: this.value,
|
|
40
41
|
label: this.label,
|
|
41
42
|
href: this.href,
|
|
43
|
+
rel: this.rel,
|
|
42
44
|
target: this.target,
|
|
43
45
|
active: this.active,
|
|
44
46
|
disabled: this.disabled,
|
|
@@ -52,10 +54,10 @@ const StepItem = /*@__PURE__*/ proxyCustomElement(class StepItem extends HTMLEle
|
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
render() {
|
|
55
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: '6d93a7d6ac124b26f15803167945b1316915f303', role: "tabpanel", class: {
|
|
56
58
|
'bal-step-item': true,
|
|
57
59
|
'bal-step-item--active': this.isActive,
|
|
58
|
-
} }, h("slot", { key: '
|
|
60
|
+
} }, h("slot", { key: '563c4d2ea864f40885618e92743d44656d469067' })));
|
|
59
61
|
}
|
|
60
62
|
get el() { return this; }
|
|
61
63
|
}, [4, "bal-step-item", {
|
|
@@ -63,6 +65,7 @@ const StepItem = /*@__PURE__*/ proxyCustomElement(class StepItem extends HTMLEle
|
|
|
63
65
|
"value": [513],
|
|
64
66
|
"label": [513],
|
|
65
67
|
"href": [513],
|
|
68
|
+
"rel": [1],
|
|
66
69
|
"target": [1],
|
|
67
70
|
"disabled": [516],
|
|
68
71
|
"done": [516],
|
package/components/bal-steps.js
CHANGED
|
@@ -28,7 +28,7 @@ const StepButton = ({ item, color, isMobile, clickable, onSelectTab }) => {
|
|
|
28
28
|
if (item.invisible) {
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
return (h("a", { role: "tab", class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, bemEl.class()), bemEl.modifier(`color-${color}`).class()), bemEl.modifier('done').class(item.done)), bemEl.modifier('active').class(item.active)), bemEl.modifier('failed').class(item.failed)), bemEl.modifier('disabled').class(item.disabled)), bemEl.modifier('clickable').class(clickable)), bemEl.modifier('passed').class(item.passed)), { 'bal-focusable': !item.disabled && !item.invisible }), "data-label": item.label, "data-value": item.value, "data-index": item.index, "data-testid": "bal-steps-option", "aria-disabled": `${item.disabled}`, href: item.href === '' ? 'javascript:;' : item.href, target: item.target, onClick: (ev) => onSelectTab(ev, item) },
|
|
31
|
+
return (h("a", { role: "tab", class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, bemEl.class()), bemEl.modifier(`color-${color}`).class()), bemEl.modifier('done').class(item.done)), bemEl.modifier('active').class(item.active)), bemEl.modifier('failed').class(item.failed)), bemEl.modifier('disabled').class(item.disabled)), bemEl.modifier('clickable').class(clickable)), bemEl.modifier('passed').class(item.passed)), { 'bal-focusable': !item.disabled && !item.invisible }), "data-label": item.label, "data-value": item.value, "data-index": item.index, "data-testid": "bal-steps-option", "aria-disabled": `${item.disabled}`, href: item.href === '' ? 'javascript:;' : item.href, rel: item.rel, target: item.target, onClick: (ev) => onSelectTab(ev, item) },
|
|
32
32
|
h(StepIcon, { item: item, isMobile: isMobile }),
|
|
33
33
|
h(StepLabel, { item: item })));
|
|
34
34
|
};
|