@baloise/ds-core 18.1.0 → 18.2.0-nightly.20250327
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 -93
- package/components/bal-app2.js +95 -0
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +262 -0
- package/components/bal-icon2.js +1692 -311
- 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 +7 -314
- package/components/initialize.js +312 -0
- 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-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-26ce82e216.entry.js → p-121fc94f55.entry.js} +1 -1
- package/dist/baloise-design-system/p-1db7dc9bca.entry.js +1 -0
- package/dist/baloise-design-system/p-1e142b10.system.js +1 -0
- package/dist/baloise-design-system/{p-b52edbdfd9.entry.js → p-21f715cb50.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-294f38c2.js +1 -0
- package/dist/baloise-design-system/p-32083dd937.entry.js +2 -0
- package/dist/baloise-design-system/{p-d2c1ffb4.system.js → p-35eafdca.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-01d5d4831c.system.entry.js → p-3bea6ee7f9.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-400bbebf71.entry.js +1 -0
- package/dist/baloise-design-system/p-42e66219.system.js +1 -0
- package/dist/baloise-design-system/{p-2afffcefff.entry.js → p-43c2ca54fe.entry.js} +1 -1
- package/dist/baloise-design-system/p-47f0669a.js +1 -0
- package/dist/baloise-design-system/{p-cc6d9a72.js → p-49f37ef0.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-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-3aacf427.system.js → p-62abf50b.system.js} +1 -1
- package/dist/baloise-design-system/p-659ecadc.system.js +1 -1
- package/dist/baloise-design-system/{p-886ba68a.js → p-685b3b20.js} +1 -1
- package/dist/baloise-design-system/{p-75bb9a489c.system.entry.js → p-76c450e5d0.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-456114b8.system.js → p-83512f21.system.js} +1 -1
- package/dist/baloise-design-system/{p-4cac86d6.js → p-83ac9b11.js} +1 -1
- package/dist/baloise-design-system/p-8b2ffbda2e.system.entry.js +1 -0
- package/dist/baloise-design-system/p-90e2bad76c.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-597ab81cc5.system.entry.js → p-a5267386bf.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-a5b65efdfc.system.entry.js +2 -0
- package/dist/baloise-design-system/p-a70f415677.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-e53b8d198d.system.entry.js → p-aa80ee2f90.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6454bcbea8.entry.js → p-abcc2d8baf.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c78452b9c8.entry.js → p-ae3b6fdda2.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ab4b82d7f1.system.entry.js → p-b03bd83ee5.system.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-01db36ea75.entry.js → p-bdabd8ac87.entry.js} +1 -1
- package/dist/baloise-design-system/p-bfb6c67686.entry.js +1 -0
- package/dist/baloise-design-system/{p-2240314a30.entry.js → p-c66f394b11.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b232c63512.system.entry.js → p-cd8c796067.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4ad178aba6.system.entry.js → p-cf83a39d88.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bcdc73ad.system.js → p-d0835d90.system.js} +1 -1
- package/dist/baloise-design-system/p-d63e52b630.entry.js +1 -0
- package/dist/baloise-design-system/p-d8f627d398.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-fa2fc18e.js → p-da27ace4.js} +1 -1
- package/dist/baloise-design-system/p-dce0104d78.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-b5efe0d316.entry.js → p-dde96ce39b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b40e313eda.system.entry.js → p-e0e3f73615.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bcb7267a32.entry.js → p-e350ef0474.entry.js} +1 -1
- package/dist/baloise-design-system/{p-de9f9b8bb2.system.entry.js → p-e7d98d5efb.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-945ab6b2ac.system.entry.js → p-ecbcd8dca0.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0e764d05.system.js → p-f8622515.system.js} +1 -1
- package/dist/cjs/app-globals-f63c33e7.js +7 -0
- 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-doc-app.cjs.entry.js +233 -0
- 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-icon.cjs.entry.js +1684 -311
- 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 +3 -2
- package/dist/cjs/{breakpoints.decorator-d9acbe93.js → breakpoints.decorator-574ff277.js} +1 -1
- package/dist/cjs/{breakpoints.subject-d32ef910.js → breakpoints.subject-e368909c.js} +1 -1
- package/dist/cjs/{app-globals-0d8db19e.js → global-2a76769b.js} +2 -4
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/initialize-2e8978a4.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/{mutation.decorator-84b44cab.js → mutation.decorator-485e250e.js} +1 -1
- package/dist/cjs/{tokens.esm-bb7102ae.js → tokens.esm-9a79e135.js} +1 -1
- package/dist/cjs/{window-resize.decorator-e5134724.js → window-resize.decorator-6b4e7f40.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/bal-icon/bal-icon.css +1 -1
- package/dist/collection/components/bal-icon/bal-icon.js +85 -8
- 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/components/docs/bal-doc-app/bal-doc-app.css +1 -0
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +247 -0
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/mutation/mutation.listener.js +1 -1
- package/dist/esm/app-globals-1ecf000f.js +5 -0
- package/dist/esm/bal-carousel_2.entry.js +4 -4
- package/dist/esm/bal-checkbox_2.entry.js +1 -1
- package/dist/esm/bal-doc-app.entry.js +229 -0
- package/dist/esm/bal-field_5.entry.js +1 -1
- package/dist/esm/bal-hint_5.entry.js +3 -3
- package/dist/esm/bal-icon.entry.js +1684 -311
- 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 +3 -2
- package/dist/esm/{breakpoints.decorator-21aa6099.js → breakpoints.decorator-bddb9d4a.js} +1 -1
- package/dist/esm/{breakpoints.subject-2ddcb3fc.js → breakpoints.subject-32a380f0.js} +1 -1
- package/dist/esm/{app-globals-5dd5fe6b.js → global-6e86728b.js} +2 -4
- package/dist/esm/index.js +3 -3
- package/dist/esm/initialize-be160cc4.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/{mutation.decorator-a8bfa55f.js → mutation.decorator-e915d053.js} +1 -1
- package/dist/esm/{tokens.esm-2a14112a.js → tokens.esm-b1efa47a.js} +1 -1
- package/dist/esm/{window-resize.decorator-a356c751.js → window-resize.decorator-3271d102.js} +1 -1
- package/dist/esm-es5/app-globals-1ecf000f.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-doc-app.entry.js +1 -0
- 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-icon.entry.js +2 -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-21aa6099.js → breakpoints.decorator-bddb9d4a.js} +1 -1
- package/dist/esm-es5/{breakpoints.subject-2ddcb3fc.js → breakpoints.subject-32a380f0.js} +1 -1
- package/dist/esm-es5/global-6e86728b.js +1 -0
- 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-a356c751.js → window-resize.decorator-3271d102.js} +1 -1
- package/dist/html.html-data.json +24 -0
- package/dist/types/components/bal-icon/bal-icon.d.ts +21 -2
- package/dist/types/components/bal-icon/bal-icon.interfaces.d.ts +1 -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/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +85 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
- package/package.json +7 -6
- package/dist/baloise-design-system/p-002d7bb9.js +0 -1
- package/dist/baloise-design-system/p-2f46adf2d0.entry.js +0 -1
- package/dist/baloise-design-system/p-345aa92d.system.js +0 -1
- package/dist/baloise-design-system/p-36d8ef03de.entry.js +0 -1
- package/dist/baloise-design-system/p-4504bc9205.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6c29304485.system.entry.js +0 -1
- package/dist/baloise-design-system/p-7d24c607ec.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8255d835fe.entry.js +0 -1
- package/dist/baloise-design-system/p-957d43447d.entry.js +0 -1
- package/dist/baloise-design-system/p-9f85ccf908.entry.js +0 -1
- package/dist/baloise-design-system/p-aa2b2147a2.entry.js +0 -1
- package/dist/baloise-design-system/p-e59cf0bb7e.system.entry.js +0 -1
- package/dist/esm-es5/app-globals-5dd5fe6b.js +0 -1
- /package/dist/baloise-design-system/{p-a6df630b.system.js → p-84be472c.system.js} +0 -0
- /package/dist/baloise-design-system/{p-e97f3e9b.js → p-905033a4.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-2a14112a.js → tokens.esm-b1efa47a.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { NavLinkItem } from "./bal-nav-link-item";
|
|
3
2
|
import { BEM } from "../../../utils/bem";
|
|
3
|
+
import { NavLinkItem } from "./bal-nav-link-item";
|
|
4
4
|
export class NavSectionLinkItem extends NavLinkItem {
|
|
5
5
|
constructor(item, observer) {
|
|
6
6
|
super(item, observer);
|
|
@@ -19,7 +19,7 @@ export class NavSectionLinkItem extends NavLinkItem {
|
|
|
19
19
|
renderTouch(_context) {
|
|
20
20
|
const block = BEM.block('nav');
|
|
21
21
|
const hasItems = this.linkItems && this.linkItems.length > 0;
|
|
22
|
-
return (h("li", null, 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), hasItems ? (h("ul", { class: Object.assign({}, block.element('mobile-links-list').class()) }, this.linkItems.map(item => item.renderTouch()))) : ('')));
|
|
22
|
+
return (h("li", null, 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), hasItems ? (h("ul", { class: Object.assign({}, block.element('mobile-links-list').class()) }, this.linkItems.map(item => item.renderTouch()))) : ('')));
|
|
23
23
|
}
|
|
24
24
|
render(_context) {
|
|
25
25
|
return (h("bal-nav-link-group", { role: "list" }, h("bal-nav-link", { role: "listitem", variant: "title", href: this.href, target: this.target, selected: this.active, onClick: ev => this.onClick(ev) }, this.label), this.linkItems.map(item => item.render())));
|
|
@@ -17,7 +17,7 @@ export class NavServiceLinkItem extends NavLinkItem {
|
|
|
17
17
|
renderTouch(_context) {
|
|
18
18
|
const block = BEM.block('nav');
|
|
19
19
|
const hasItems = this.linkItems && this.linkItems.length > 0;
|
|
20
|
-
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)) }, h("a", { id: this.id, href: this.href, target: this.target, onClick: ev => this.onClick(ev) }, this.label), hasItems ? (h("ul", { class: Object.assign({}, block.element('mobile-links-list').class()) }, this.linkItems.map(item => item.renderTouch()))) : ('')));
|
|
20
|
+
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)) }, h("a", { id: this.id, href: this.href, rel: this.rel, target: this.target, onClick: ev => this.onClick(ev) }, this.label), hasItems ? (h("ul", { class: Object.assign({}, block.element('mobile-links-list').class()) }, this.linkItems.map(item => item.renderTouch()))) : ('')));
|
|
21
21
|
}
|
|
22
22
|
render(_context) {
|
|
23
23
|
return (h("bal-nav-link-group", { color: this.color, role: "list" }, h("bal-nav-link", { role: "listitem", variant: "title", href: this.href, target: this.target, selected: this.active, onClick: ev => this.onClick(ev) }, this.label), this.linkItems.map(item => item.render())));
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
2
|
import { h, Host } from "@stencil/core";
|
|
3
3
|
import { BEM } from "../../../utils/bem";
|
|
4
|
-
import { BalScrollHandler } from "../../../utils/scroll";
|
|
5
4
|
import { balBrowser } from "../../../utils/browser";
|
|
5
|
+
import { defaultConfig, ListenToConfig } from "../../../utils/config";
|
|
6
6
|
import { wait } from "../../../utils/helpers";
|
|
7
|
+
import { BalScrollHandler } from "../../../utils/scroll";
|
|
7
8
|
import { i18nBalNavbarBrand } from "./bal-navbar-brand.i18n";
|
|
8
|
-
import { defaultConfig, ListenToConfig } from "../../../utils/config";
|
|
9
9
|
export class NavbarBrand {
|
|
10
10
|
constructor() {
|
|
11
11
|
this.bodyScrollHandler = new BalScrollHandler();
|
|
12
12
|
this.language = defaultConfig.language;
|
|
13
13
|
this.isMenuActive = false;
|
|
14
14
|
this.href = '';
|
|
15
|
+
this.rel = undefined;
|
|
15
16
|
this.logoClickable = false;
|
|
16
17
|
this.logoLabel = undefined;
|
|
17
18
|
this.target = '_self';
|
|
@@ -74,7 +75,7 @@ export class NavbarBrand {
|
|
|
74
75
|
const navbarBrandEl = BEM.block('navbar').element('brand');
|
|
75
76
|
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 }));
|
|
76
77
|
const logoLabel = this.logoLabel ? this.logoLabel : i18nBalNavbarBrand[this.language].logoButtonLabel;
|
|
77
|
-
return (h(Host, { key: '
|
|
78
|
+
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
|
|
78
79
|
.element('burger')
|
|
79
80
|
.modifier('hidden')
|
|
80
81
|
.class(this.interface === 'simple')), color: "light", inverted: true, square: true, icon: this.isMenuActive ? 'close' : 'menu-bars', onClick: () => this.onClick() })));
|
|
@@ -102,6 +103,25 @@ export class NavbarBrand {
|
|
|
102
103
|
"reflect": false,
|
|
103
104
|
"defaultValue": "''"
|
|
104
105
|
},
|
|
106
|
+
"rel": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"mutable": false,
|
|
109
|
+
"complexType": {
|
|
110
|
+
"original": "string | undefined",
|
|
111
|
+
"resolved": "string",
|
|
112
|
+
"references": {}
|
|
113
|
+
},
|
|
114
|
+
"required": false,
|
|
115
|
+
"optional": false,
|
|
116
|
+
"docs": {
|
|
117
|
+
"tags": [],
|
|
118
|
+
"text": "Specifies the relationship of the target object to the link object.\nThe value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."
|
|
119
|
+
},
|
|
120
|
+
"getter": false,
|
|
121
|
+
"setter": false,
|
|
122
|
+
"attribute": "rel",
|
|
123
|
+
"reflect": false
|
|
124
|
+
},
|
|
105
125
|
"logoClickable": {
|
|
106
126
|
"type": "boolean",
|
|
107
127
|
"mutable": false,
|
|
@@ -170,7 +170,7 @@ export class Select {
|
|
|
170
170
|
updateRawValue(newValue, isHuman = true) {
|
|
171
171
|
if (!areArraysEqual(newValue, this.rawValue || [])) {
|
|
172
172
|
this.rawValue = [...newValue];
|
|
173
|
-
this.syncNativeInput();
|
|
173
|
+
this.syncNativeInput(isHuman);
|
|
174
174
|
if (this.didInit && isHuman === true) {
|
|
175
175
|
if (this.multiple) {
|
|
176
176
|
if (isNil(this.rawValue)) {
|
|
@@ -631,7 +631,7 @@ export class Select {
|
|
|
631
631
|
this.updateRawValue(newRawValue, isHuman);
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
syncNativeInput() {
|
|
634
|
+
syncNativeInput(isHuman = true) {
|
|
635
635
|
if (!this.multiple) {
|
|
636
636
|
if (length(this.rawValue) > 0) {
|
|
637
637
|
const valuesArray = getValues(this.rawValue);
|
|
@@ -641,9 +641,9 @@ export class Select {
|
|
|
641
641
|
}
|
|
642
642
|
return this.updateInputValue(label);
|
|
643
643
|
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
644
|
+
}
|
|
645
|
+
if (!isHuman && length(this.rawValue) === 0) {
|
|
646
|
+
return this.updateInputValue('');
|
|
647
647
|
}
|
|
648
648
|
return Promise.resolve();
|
|
649
649
|
}
|
|
@@ -684,7 +684,7 @@ export class Select {
|
|
|
684
684
|
*/
|
|
685
685
|
render() {
|
|
686
686
|
var _a;
|
|
687
|
-
const Chip = (props) => (h("bal-tag", { key: '
|
|
687
|
+
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));
|
|
688
688
|
const valuesArray = getValues(this.rawValue);
|
|
689
689
|
const block = BEM.block('select');
|
|
690
690
|
const nativeEl = block.element('native');
|
|
@@ -698,19 +698,19 @@ export class Select {
|
|
|
698
698
|
const optionContentEl = optionEl.element('content');
|
|
699
699
|
const optionContentCheckboxEl = optionContentEl.element('checkbox');
|
|
700
700
|
const optionContentLabelEl = optionContentEl.element('label');
|
|
701
|
-
return (h(Host, { key: '
|
|
701
|
+
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
|
|
702
702
|
.modifier('clickable')
|
|
703
703
|
.class(!this.isPopoverOpen && !this.disabled && !this.readonly)), onClick: this.handleInputClick, ref: el => (this.selectionEl = el) }, valuesArray
|
|
704
704
|
.filter(_ => this.multiple)
|
|
705
|
-
.map((value) => (h(Chip, { value: value }))), h("input", { key: '
|
|
705
|
+
.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
|
|
706
706
|
? 'grey-light'
|
|
707
707
|
: this.inverted
|
|
708
708
|
? 'white'
|
|
709
709
|
: this.invalid
|
|
710
710
|
? 'danger'
|
|
711
|
-
: 'primary', turn: this.isPopoverOpen, onClick: ev => this.handleInputClick(ev, true), size: !this.inverted ? '' : 'x-small' })) : ('')), h("bal-popover-content", { key: '
|
|
711
|
+
: '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
|
|
712
712
|
.modifier('selected')
|
|
713
|
-
.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: '
|
|
713
|
+
.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
|
|
714
714
|
.modifier('hidden')
|
|
715
715
|
.class(this.noDataLabel === undefined || this.hasOptions() || !this.typeahead || this.selectionOptional)) }, this.noDataLabel)))));
|
|
716
716
|
}
|
|
@@ -3,15 +3,16 @@ import { BEM } from "../../../utils/bem";
|
|
|
3
3
|
export class StageBackLink {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.href = undefined;
|
|
6
|
+
this.rel = undefined;
|
|
6
7
|
this.shadow = false;
|
|
7
8
|
this.inverted = false;
|
|
8
9
|
}
|
|
9
10
|
render() {
|
|
10
11
|
const block = BEM.block('stage-back-link');
|
|
11
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '5158c9c4cff372138c88a8af2997d6f85bd8d885', class: Object.assign(Object.assign({}, block.class()), block.modifier('shadow').class(this.shadow)) }, h("a", { key: '205e1ae01e652fb595e088879287d9b25315b234', class: {
|
|
12
13
|
'link': true,
|
|
13
14
|
'is-inverted': this.inverted,
|
|
14
|
-
}, href: this.href }, h("bal-icon", { key: '
|
|
15
|
+
}, 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' }))));
|
|
15
16
|
}
|
|
16
17
|
static get is() { return "bal-stage-back-link"; }
|
|
17
18
|
static get properties() {
|
|
@@ -35,6 +36,25 @@ export class StageBackLink {
|
|
|
35
36
|
"attribute": "href",
|
|
36
37
|
"reflect": false
|
|
37
38
|
},
|
|
39
|
+
"rel": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"mutable": false,
|
|
42
|
+
"complexType": {
|
|
43
|
+
"original": "string | undefined",
|
|
44
|
+
"resolved": "string",
|
|
45
|
+
"references": {}
|
|
46
|
+
},
|
|
47
|
+
"required": false,
|
|
48
|
+
"optional": false,
|
|
49
|
+
"docs": {
|
|
50
|
+
"tags": [],
|
|
51
|
+
"text": "Specifies the relationship of the target object to the link object.\nThe value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."
|
|
52
|
+
},
|
|
53
|
+
"getter": false,
|
|
54
|
+
"setter": false,
|
|
55
|
+
"attribute": "rel",
|
|
56
|
+
"reflect": false
|
|
57
|
+
},
|
|
38
58
|
"shadow": {
|
|
39
59
|
"type": "boolean",
|
|
40
60
|
"mutable": false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { inheritTrackingAttributes } from "../../../utils/attributes";
|
|
3
3
|
export class StepItem {
|
|
4
4
|
constructor() {
|
|
@@ -8,6 +8,7 @@ export class StepItem {
|
|
|
8
8
|
this.value = '';
|
|
9
9
|
this.label = '';
|
|
10
10
|
this.href = '';
|
|
11
|
+
this.rel = undefined;
|
|
11
12
|
this.target = '_self';
|
|
12
13
|
this.disabled = false;
|
|
13
14
|
this.done = false;
|
|
@@ -35,6 +36,7 @@ export class StepItem {
|
|
|
35
36
|
value: this.value,
|
|
36
37
|
label: this.label,
|
|
37
38
|
href: this.href,
|
|
39
|
+
rel: this.rel,
|
|
38
40
|
target: this.target,
|
|
39
41
|
active: this.active,
|
|
40
42
|
disabled: this.disabled,
|
|
@@ -48,10 +50,10 @@ export class StepItem {
|
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: '6d93a7d6ac124b26f15803167945b1316915f303', role: "tabpanel", class: {
|
|
52
54
|
'bal-step-item': true,
|
|
53
55
|
'bal-step-item--active': this.isActive,
|
|
54
|
-
} }, h("slot", { key: '
|
|
56
|
+
} }, h("slot", { key: '563c4d2ea864f40885618e92743d44656d469067' })));
|
|
55
57
|
}
|
|
56
58
|
static get is() { return "bal-step-item"; }
|
|
57
59
|
static get properties() {
|
|
@@ -136,6 +138,25 @@ export class StepItem {
|
|
|
136
138
|
"reflect": true,
|
|
137
139
|
"defaultValue": "''"
|
|
138
140
|
},
|
|
141
|
+
"rel": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"mutable": false,
|
|
144
|
+
"complexType": {
|
|
145
|
+
"original": "string | undefined",
|
|
146
|
+
"resolved": "string",
|
|
147
|
+
"references": {}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": false,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [],
|
|
153
|
+
"text": "Specifies the relationship of the target object to the link object.\nThe value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."
|
|
154
|
+
},
|
|
155
|
+
"getter": false,
|
|
156
|
+
"setter": false,
|
|
157
|
+
"attribute": "rel",
|
|
158
|
+
"reflect": false
|
|
159
|
+
},
|
|
139
160
|
"target": {
|
|
140
161
|
"type": "string",
|
|
141
162
|
"mutable": false,
|
|
@@ -7,5 +7,5 @@ export const StepButton = ({ item, color, isMobile, clickable, onSelectTab }) =>
|
|
|
7
7
|
if (item.invisible) {
|
|
8
8
|
return;
|
|
9
9
|
}
|
|
10
|
-
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) }, h(StepIcon, { item: item, isMobile: isMobile }), h(StepLabel, { item: item })));
|
|
10
|
+
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) }, h(StepIcon, { item: item, isMobile: isMobile }), h(StepLabel, { item: item })));
|
|
11
11
|
};
|