@scania/tegel 1.14.1 → 1.15.0-component-versioning-beta.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/dist/cjs/index-ca8040ad.js +52 -44
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tagName-f24f57ce.js +119 -0
- package/dist/cjs/tds-accordion-item.cjs.entry.js +6 -3
- package/dist/cjs/tds-banner.cjs.entry.js +4 -2
- package/dist/cjs/tds-card.cjs.entry.js +6 -4
- package/dist/cjs/tds-core-header-item.cjs.entry.js +20 -0
- package/dist/cjs/tds-datetime.cjs.entry.js +5 -2
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +5 -3
- package/dist/cjs/tds-dropdown.cjs.entry.js +7 -5
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-footer-group.cjs.entry.js +5 -3
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +3 -1
- package/dist/cjs/tds-header-cell.cjs.entry.js +6 -4
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +5 -3
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +3 -1
- package/dist/cjs/{tds-core-header-item_2.cjs.entry.js → tds-header-item.cjs.entry.js} +5 -17
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +3 -1
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +3 -3
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +4 -1
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +4 -1
- package/dist/cjs/tds-header-launcher.cjs.entry.js +4 -2
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-message.cjs.entry.js +5 -2
- package/dist/cjs/tds-modal.cjs.entry.js +3 -1
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +4 -2
- package/dist/cjs/tds-popover-menu.cjs.entry.js +4 -2
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +3 -1
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +6 -4
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +5 -3
- package/dist/cjs/tds-side-menu-user-image.cjs.entry.js +22 -0
- package/dist/cjs/{tds-side-menu-user-image_2.cjs.entry.js → tds-side-menu-user-label.cjs.entry.js} +0 -16
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +4 -1
- package/dist/cjs/tds-slider.cjs.entry.js +10 -7
- package/dist/cjs/tds-step.cjs.entry.js +5 -3
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-body-row.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-footer.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-header.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +4 -2
- package/dist/cjs/tds-text-field.cjs.entry.js +7 -5
- package/dist/cjs/tds-textarea.cjs.entry.js +6 -3
- package/dist/cjs/tds-toast.cjs.entry.js +5 -3
- package/dist/cjs/tds-tooltip.cjs.entry.js +4 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +6 -3
- package/dist/collection/components/banner/banner.js +4 -2
- package/dist/collection/components/card/card.js +6 -4
- package/dist/collection/components/datetime/datetime.js +6 -3
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +5 -3
- package/dist/collection/components/dropdown/dropdown.js +7 -5
- package/dist/collection/components/footer/footer-group/footer-group.js +5 -3
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +3 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +5 -3
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +3 -1
- package/dist/collection/components/header/header-item/header-item.js +5 -3
- package/dist/collection/components/header/header-launcher/header-launcher.js +4 -2
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +3 -1
- package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +4 -1
- package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +4 -1
- package/dist/collection/components/message/message.js +5 -2
- package/dist/collection/components/modal/modal.js +3 -1
- package/dist/collection/components/popover-canvas/popover-canvas.js +4 -2
- package/dist/collection/components/popover-menu/popover-menu.js +4 -2
- package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +3 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +6 -4
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +5 -3
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +4 -1
- package/dist/collection/components/side-menu/side-menu.js +3 -3
- package/dist/collection/components/slider/slider.js +11 -8
- package/dist/collection/components/stepper/step/step.js +5 -3
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/table/table/table.js +1 -1
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +4 -2
- package/dist/collection/components/table/table-body-row/table-body-row.js +4 -2
- package/dist/collection/components/table/table-footer/table-footer.js +4 -2
- package/dist/collection/components/table/table-header/table-header.js +4 -2
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +6 -4
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +4 -2
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +4 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +4 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +4 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +4 -2
- package/dist/collection/components/text-field/text-field.js +7 -5
- package/dist/collection/components/textarea/textarea.js +6 -3
- package/dist/collection/components/toast/toast.js +5 -3
- package/dist/collection/components/tooltip/tooltip.js +4 -2
- package/dist/collection/utils/tagName.js +33 -0
- package/dist/components/p-a74b6809.js +117 -0
- package/dist/components/tds-accordion-item.js +7 -10
- package/dist/components/tds-banner.js +5 -9
- package/dist/components/tds-card.js +7 -11
- package/dist/components/tds-checkbox.js +89 -1
- package/dist/components/tds-core-header-item.js +30 -1
- package/dist/components/tds-datetime.js +6 -9
- package/dist/components/tds-divider.js +33 -1
- package/dist/components/tds-dropdown-option.js +6 -16
- package/dist/components/tds-dropdown.js +8 -12
- package/dist/components/tds-folder-tabs.js +5 -9
- package/dist/components/tds-footer-group.js +6 -10
- package/dist/components/tds-header-brand-symbol.js +4 -14
- package/dist/components/tds-header-cell.js +7 -11
- package/dist/components/tds-header-dropdown-list-item.js +39 -1
- package/dist/components/tds-header-dropdown-list.js +99 -1
- package/dist/components/tds-header-dropdown.js +6 -34
- package/dist/components/tds-header-hamburger.js +4 -20
- package/dist/components/tds-header-item.js +70 -1
- package/dist/components/tds-header-launcher-button.js +39 -1
- package/dist/components/tds-header-launcher-list-item.js +5 -8
- package/dist/components/tds-header-launcher-list.js +5 -8
- package/dist/components/tds-header-launcher.js +5 -39
- package/dist/components/tds-icon.js +63 -1
- package/dist/components/tds-inline-tabs.js +5 -9
- package/dist/components/tds-message.js +6 -9
- package/dist/components/tds-modal.js +4 -8
- package/dist/components/tds-navigation-tabs.js +5 -9
- package/dist/components/tds-popover-canvas.js +66 -1
- package/dist/components/tds-popover-core.js +1998 -1
- package/dist/components/tds-popover-menu.js +5 -9
- package/dist/components/tds-side-menu-close-button.js +4 -8
- package/dist/components/tds-side-menu-collapse-button.js +7 -11
- package/dist/components/tds-side-menu-dropdown.js +6 -16
- package/dist/components/tds-side-menu-item.js +88 -1
- package/dist/components/tds-side-menu-user-image.js +35 -1
- package/dist/components/tds-side-menu-user-label.js +35 -1
- package/dist/components/tds-side-menu-user.js +5 -14
- package/dist/components/tds-slider.js +11 -14
- package/dist/components/tds-step.js +6 -10
- package/dist/components/tds-table-body-input-wrapper.js +5 -9
- package/dist/components/tds-table-body-row.js +5 -9
- package/dist/components/tds-table-footer.js +5 -9
- package/dist/components/tds-table-header-input-wrapper.js +5 -9
- package/dist/components/tds-table-header.js +5 -9
- package/dist/components/tds-table-toolbar.js +5 -9
- package/dist/components/tds-text-field.js +8 -12
- package/dist/components/tds-textarea.js +7 -10
- package/dist/components/tds-toast.js +6 -10
- package/dist/components/tds-tooltip.js +5 -9
- package/dist/esm/index-51d04e39.js +52 -44
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tagName-0d04643f.js +117 -0
- package/dist/esm/tds-accordion-item.entry.js +7 -4
- package/dist/esm/tds-banner.entry.js +4 -2
- package/dist/esm/tds-card.entry.js +6 -4
- package/dist/esm/tds-core-header-item.entry.js +16 -0
- package/dist/esm/tds-datetime.entry.js +6 -3
- package/dist/esm/tds-dropdown-option.entry.js +5 -3
- package/dist/esm/tds-dropdown.entry.js +7 -5
- package/dist/esm/tds-folder-tabs.entry.js +4 -2
- package/dist/esm/tds-footer-group.entry.js +5 -3
- package/dist/esm/tds-header-brand-symbol.entry.js +3 -1
- package/dist/esm/tds-header-cell.entry.js +6 -4
- package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-header-dropdown.entry.js +5 -3
- package/dist/esm/tds-header-hamburger.entry.js +3 -1
- package/dist/esm/{tds-core-header-item_2.entry.js → tds-header-item.entry.js} +6 -17
- package/dist/esm/tds-header-launcher-button.entry.js +3 -1
- package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-item.entry.js +5 -2
- package/dist/esm/tds-header-launcher-list.entry.js +5 -2
- package/dist/esm/tds-header-launcher.entry.js +4 -2
- package/dist/esm/tds-inline-tabs.entry.js +4 -2
- package/dist/esm/tds-message.entry.js +6 -3
- package/dist/esm/tds-modal.entry.js +3 -1
- package/dist/esm/tds-navigation-tabs.entry.js +4 -2
- package/dist/esm/tds-popover-canvas.entry.js +4 -2
- package/dist/esm/tds-popover-menu.entry.js +4 -2
- package/dist/esm/tds-side-menu-close-button.entry.js +3 -1
- package/dist/esm/tds-side-menu-collapse-button.entry.js +6 -4
- package/dist/esm/tds-side-menu-dropdown.entry.js +5 -3
- package/dist/esm/tds-side-menu-user-image.entry.js +18 -0
- package/dist/esm/{tds-side-menu-user-image_2.entry.js → tds-side-menu-user-label.entry.js} +1 -16
- package/dist/esm/tds-side-menu-user.entry.js +5 -2
- package/dist/esm/tds-slider.entry.js +11 -8
- package/dist/esm/tds-step.entry.js +5 -3
- package/dist/esm/tds-table-body-input-wrapper.entry.js +4 -2
- package/dist/esm/tds-table-body-row.entry.js +4 -2
- package/dist/esm/tds-table-footer.entry.js +4 -2
- package/dist/esm/tds-table-header-input-wrapper.entry.js +4 -2
- package/dist/esm/tds-table-header.entry.js +4 -2
- package/dist/esm/tds-table-toolbar.entry.js +4 -2
- package/dist/esm/tds-text-field.entry.js +7 -5
- package/dist/esm/tds-textarea.entry.js +7 -4
- package/dist/esm/tds-toast.entry.js +5 -3
- package/dist/esm/tds-tooltip.entry.js +4 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-07b525fa.entry.js +1 -0
- package/dist/tegel/p-0a2f8635.entry.js +1 -0
- package/dist/tegel/p-0efe32ef.entry.js +1 -0
- package/dist/tegel/p-101d5ad9.entry.js +1 -0
- package/dist/tegel/{p-6c26e66f.entry.js → p-24d62f73.entry.js} +1 -1
- package/dist/tegel/p-2d9011d4.entry.js +1 -0
- package/dist/tegel/p-30a2b7a9.entry.js +1 -0
- package/dist/tegel/p-3bb5f47b.entry.js +1 -0
- package/dist/tegel/p-3c937615.entry.js +1 -0
- package/dist/tegel/p-3f12d4a8.entry.js +1 -0
- package/dist/tegel/p-57d8aa8f.entry.js +1 -0
- package/dist/tegel/p-589289a1.entry.js +1 -0
- package/dist/tegel/p-58b552d6.entry.js +1 -0
- package/dist/tegel/p-5fed1ea6.entry.js +1 -0
- package/dist/tegel/p-61d1cf24.entry.js +1 -0
- package/dist/tegel/p-63991699.entry.js +1 -0
- package/dist/tegel/p-7546a139.entry.js +1 -0
- package/dist/tegel/p-7711d485.entry.js +1 -0
- package/dist/tegel/p-790367cd.entry.js +1 -0
- package/dist/tegel/p-8064b3ed.entry.js +1 -0
- package/dist/tegel/p-80d28081.entry.js +1 -0
- package/dist/tegel/p-82481096.entry.js +1 -0
- package/dist/tegel/p-859e3ebf.js +1 -0
- package/dist/tegel/p-8deb6ba6.entry.js +1 -0
- package/dist/tegel/p-8f30a9cd.entry.js +1 -0
- package/dist/tegel/p-904e90d6.entry.js +1 -0
- package/dist/tegel/p-980a153a.entry.js +1 -0
- package/dist/tegel/p-980fe7c8.entry.js +1 -0
- package/dist/tegel/p-9aa5875a.entry.js +1 -0
- package/dist/tegel/p-a74b6809.js +1 -0
- package/dist/tegel/p-afb182fc.entry.js +1 -0
- package/dist/tegel/p-b543f063.entry.js +1 -0
- package/dist/tegel/p-b71d6a39.entry.js +1 -0
- package/dist/tegel/p-b834b254.entry.js +1 -0
- package/dist/tegel/p-b8970b91.entry.js +1 -0
- package/dist/tegel/p-bf65f439.entry.js +1 -0
- package/dist/tegel/p-c002a601.entry.js +1 -0
- package/dist/tegel/p-c0381ba7.entry.js +1 -0
- package/dist/tegel/p-ccad7d42.entry.js +1 -0
- package/dist/tegel/p-cde009d8.entry.js +1 -0
- package/dist/tegel/p-df945483.entry.js +1 -0
- package/dist/tegel/p-e5a9ec95.entry.js +1 -0
- package/dist/tegel/p-e9d824f5.entry.js +1 -0
- package/dist/tegel/p-edbf6bf4.entry.js +1 -0
- package/dist/tegel/p-ef8e4959.entry.js +1 -0
- package/dist/tegel/{p-f841f094.entry.js → p-fc7a7f06.entry.js} +1 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/Users/rhyme/projects/scania/tegel/packages/core/.stencil/src/utils/tagNames.d.ts +4 -0
- package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +1 -0
- package/dist/types/components/card/card.d.ts +1 -1
- package/dist/types/components/datetime/datetime.d.ts +1 -0
- package/dist/types/components/header/header-launcher-list/header-launcher-list.d.ts +1 -0
- package/dist/types/components/header/header-launcher-list-item/header-launcher-list-item.d.ts +1 -0
- package/dist/types/components/message/message.d.ts +1 -0
- package/dist/types/components/side-menu/side-menu-user/side-menu-user.d.ts +1 -0
- package/dist/types/components/slider/slider.d.ts +1 -0
- package/dist/types/components/stepper/step/step.d.ts +1 -1
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/utils/tagName.d.ts +5 -0
- package/package.json +2 -9
- package/dist/components/p-0676aa23.js +0 -76
- package/dist/components/p-09d36119.js +0 -37
- package/dist/components/p-0c3cab16.js +0 -90
- package/dist/components/p-30de8ac4.js +0 -32
- package/dist/components/p-3e74be57.js +0 -65
- package/dist/components/p-8e74bb22.js +0 -57
- package/dist/components/p-a9609e88.js +0 -72
- package/dist/components/p-cfb1b588.js +0 -41
- package/dist/components/p-dc461e7b.js +0 -2000
- package/dist/components/p-dddaa520.js +0 -37
- package/dist/components/p-e46088d9.js +0 -35
- package/dist/components/p-e4d7c655.js +0 -91
- package/dist/components/p-fcec766c.js +0 -101
- package/dist/tegel/p-06d2fa56.entry.js +0 -1
- package/dist/tegel/p-08642415.entry.js +0 -1
- package/dist/tegel/p-0a4fe3db.entry.js +0 -1
- package/dist/tegel/p-0f38bea7.entry.js +0 -1
- package/dist/tegel/p-1a2f3852.entry.js +0 -1
- package/dist/tegel/p-1bc2c73c.entry.js +0 -1
- package/dist/tegel/p-2b030cef.entry.js +0 -1
- package/dist/tegel/p-2da2c193.entry.js +0 -1
- package/dist/tegel/p-36e88ce8.entry.js +0 -1
- package/dist/tegel/p-480c6c28.entry.js +0 -1
- package/dist/tegel/p-4ab7461e.entry.js +0 -1
- package/dist/tegel/p-4bab99d5.entry.js +0 -1
- package/dist/tegel/p-54a105a4.entry.js +0 -1
- package/dist/tegel/p-578f6d73.entry.js +0 -1
- package/dist/tegel/p-588a05aa.entry.js +0 -1
- package/dist/tegel/p-5a891dd2.entry.js +0 -1
- package/dist/tegel/p-5d0e8f1e.entry.js +0 -1
- package/dist/tegel/p-6938329a.entry.js +0 -1
- package/dist/tegel/p-6b04a919.entry.js +0 -1
- package/dist/tegel/p-7d83ba98.entry.js +0 -1
- package/dist/tegel/p-91225c7a.entry.js +0 -1
- package/dist/tegel/p-930e767e.entry.js +0 -1
- package/dist/tegel/p-9332c225.js +0 -1
- package/dist/tegel/p-98f5b520.entry.js +0 -1
- package/dist/tegel/p-9de400f4.entry.js +0 -1
- package/dist/tegel/p-a9654cd4.entry.js +0 -1
- package/dist/tegel/p-a97dd06a.entry.js +0 -1
- package/dist/tegel/p-b34cf70d.entry.js +0 -1
- package/dist/tegel/p-b4c7099f.entry.js +0 -1
- package/dist/tegel/p-b9ac3122.entry.js +0 -1
- package/dist/tegel/p-c12eaac3.entry.js +0 -1
- package/dist/tegel/p-c18b2746.entry.js +0 -1
- package/dist/tegel/p-c1f8f523.entry.js +0 -1
- package/dist/tegel/p-c917d8be.entry.js +0 -1
- package/dist/tegel/p-d1cbe5be.entry.js +0 -1
- package/dist/tegel/p-dcbd977f.entry.js +0 -1
- package/dist/tegel/p-e1842d99.entry.js +0 -1
- package/dist/tegel/p-e237cdcc.entry.js +0 -1
- package/dist/tegel/p-e7108828.entry.js +0 -1
- package/dist/tegel/p-f0d46e61.entry.js +0 -1
- package/dist/tegel/p-f823777e.entry.js +0 -1
- package/dist/cjs/{isHeadingElement-4f06b688.js → getPreviousNestedChildOfSiblingsMatching-4e700df1.js} +12 -12
- package/dist/esm/{isHeadingElement-8efea284.js → getPreviousNestedChildOfSiblingsMatching-a6fcb512.js} +12 -12
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For footer items.
|
|
4
5
|
*/
|
|
@@ -19,11 +20,12 @@ export class TdsFooterGroup {
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
render() {
|
|
22
|
-
|
|
23
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
24
|
+
return (h(Host, { key: 'e11ef7d9a8aec368d66af7b0cabe26dc902c85a7' }, this.titleText && this.topPartGroup && (h("div", { key: '3e2501b462125c822ae2c88ff730a55c0aad8260', class: "footer-top-title" }, this.titleText)), this.titleText && this.topPartGroup && (h("button", { key: '52daf369f035175fc48ee9199b0f1e7036e7c463', onClick: () => {
|
|
23
25
|
this.open = !this.open;
|
|
24
|
-
}, class: `footer-top-title-button ${this.open ? 'expanded' : 'closed'}` }, this.titleText, h(
|
|
26
|
+
}, class: `footer-top-title-button ${this.open ? 'expanded' : 'closed'}` }, this.titleText, h(prefixedTagNames.tdsIcon, { key: '3eb5fa8014c2715c55da365a58956580d1ae0409', name: "chevron_down", size: "20px" }))), h("div", { key: 'fed9169cb09fc437108cdebfaeeccec8574c6040', role: "list", class: `${this.slotPosition ? this.slotPosition : ''}
|
|
25
27
|
${this.topPartGroup ? 'top-part-child' : ''}
|
|
26
|
-
${this.open ? 'expanded' : 'closed'}` }, h("slot", { key: '
|
|
28
|
+
${this.open ? 'expanded' : 'closed'}` }, h("slot", { key: '30f371244d9019e299e3e1cc0ae515d1e36a5b9b' }))));
|
|
27
29
|
}
|
|
28
30
|
static get is() { return "tds-footer-group"; }
|
|
29
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For a link.
|
|
4
5
|
*/
|
|
5
6
|
export class TdsHeaderBrandSymbol {
|
|
6
7
|
render() {
|
|
7
|
-
|
|
8
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
9
|
+
return (h(Host, { key: '6f237ddae88d1a8c47da6517e69c8a46bde26b2b' }, h(prefixedTagNames.tdsHeaderItem, { key: '9e2eedf7f479dbff34d1e43008d1b3a524431567' }, h("slot", { key: '7d3349600bac83de2347ca11d10434826e24f213' }))));
|
|
8
10
|
}
|
|
9
11
|
static get is() { return "tds-header-brand-symbol"; }
|
|
10
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../../utils/generateUniqueId";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For injecting a dropdown list.
|
|
5
6
|
* @slot icon - Slot for an Icon in the dropdown button.
|
|
@@ -31,13 +32,14 @@ export class TdsHeaderDropdown {
|
|
|
31
32
|
this.open = !this.open;
|
|
32
33
|
}
|
|
33
34
|
render() {
|
|
34
|
-
|
|
35
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
36
|
+
return (h(Host, { key: '7e2cd60291832d0b78a7bb314f28c7bca0741ff5' }, h("div", { key: '5c7aa66e35135d792e7e17983913057bacae0a81', class: {
|
|
35
37
|
'state-open': this.open,
|
|
36
|
-
} }, h(
|
|
38
|
+
} }, h(prefixedTagNames.tdsHeaderItem, { key: '074a2bcc6b24729de6725022b249c7a77e3d2e3f', class: "button", active: this.open, selected: this.selected }, h("button", { key: '60b484244a06d6fff7df7fbfec57276acfc0deae', ref: (el) => {
|
|
37
39
|
this.buttonEl = el;
|
|
38
40
|
}, "aria-expanded": `${this.open}`, "aria-controls": `launcher-${this.uuid}`, "aria-current": this.selected ? 'location' : 'false', onClick: () => {
|
|
39
41
|
this.toggleDropdown();
|
|
40
|
-
} }, h("slot", { key: '
|
|
42
|
+
} }, h("slot", { key: 'b2a7281717686f186aeb9ccba55854362e4fad65', name: "icon" }), this.label, h("slot", { key: '6f9684dc01fe44c3a0e88f98ab276c6cc610b8cf', name: "label" }), !this.noDropdownIcon && (h(prefixedTagNames.tdsIcon, { key: 'e8a4ae7c78551f0578dbc0f97866d06a3efcce1e', class: "dropdown-icon", name: "chevron_down", size: "16px" })))), this.buttonEl && (h(prefixedTagNames.tdsPopoverCanvas, { key: '4cc743cd081481ed5558a2bfbc92048d25563e94', id: `tds-dropdown-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
|
|
41
43
|
{
|
|
42
44
|
name: 'flip',
|
|
43
45
|
options: {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import inheritAriaAttributes from "../../../utils/inheritAriaAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
export class TdsHeaderHamburger {
|
|
4
5
|
render() {
|
|
6
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
5
7
|
const inheritedButtonProps = Object.assign({}, inheritAriaAttributes(this.host));
|
|
6
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'b44b763cd492848f49ffb03f20a84479bbf4dc6f' }, h(prefixedTagNames.tdsHeaderItem, { key: '2e545cec7a232a21184f01f0b6b03e411131f0c4' }, h("button", Object.assign({ key: '650633e93ff94d94a79662b13217cea3aaa8ea22' }, inheritedButtonProps), h(prefixedTagNames.tdsIcon, { key: '25ddaf1f48ae43f45040059fafd465de64a71a1f', class: "icon", name: "burger", size: "20px" })))));
|
|
7
9
|
}
|
|
8
10
|
static get is() { return "tds-header-hamburger"; }
|
|
9
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import dfs from "../../../utils/dfs";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For a link or button element.
|
|
5
6
|
*/
|
|
@@ -37,10 +38,11 @@ export class TdsHeaderItem {
|
|
|
37
38
|
this.slotEl.addEventListener('slotchange', this.updateSlottedElements);
|
|
38
39
|
}
|
|
39
40
|
render() {
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
42
|
+
return (h(Host, { key: '53e959002a5dd092b8a21b1746f2677b9e8f1bf6' }, h(prefixedTagNames.tdsCoreHeaderItem, { key: '32993eb9fd4c7ccfa0dc0a9af898ebd082e39ecd', class: {
|
|
43
|
+
'component-active and-other': this.active,
|
|
42
44
|
'component-selected': this.selected,
|
|
43
|
-
} }, h("slot", { key: '
|
|
45
|
+
} }, h("slot", { key: '3bbed91129ca0fe39e5edd287407b44d35e1f6d9' }))));
|
|
44
46
|
}
|
|
45
47
|
static get is() { return "tds-header-item"; }
|
|
46
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../../utils/generateUniqueId";
|
|
3
3
|
import inheritAriaAttributes from "../../../utils/inheritAriaAttributes";
|
|
4
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
4
5
|
/**
|
|
5
6
|
* @slot <default> - <b>Unnamed slot.</b> For a launcher list (or grid) element.
|
|
6
7
|
*/
|
|
@@ -26,17 +27,18 @@ export class TdsHeaderLauncher {
|
|
|
26
27
|
this.open = !this.open;
|
|
27
28
|
}
|
|
28
29
|
render() {
|
|
30
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
29
31
|
this.ariaAttributes = Object.assign(Object.assign({}, this.ariaAttributes), inheritAriaAttributes(this.host, ['role']));
|
|
30
32
|
const buttonAttributes = Object.assign(Object.assign({}, this.ariaAttributes), { 'aria-expanded': `${this.open}`, 'aria-controls': `launcher-${this.uuid}`, 'class': 'button', 'active': this.open, 'onClick': () => {
|
|
31
33
|
this.toggleLauncher();
|
|
32
34
|
}, 'ref': (el) => {
|
|
33
35
|
this.buttonEl = el;
|
|
34
36
|
} });
|
|
35
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: '676852dc130a6ac9500239445c8eefc244aba92d' }, h("div", { key: '320336c1b9f9d4e152b4d0977caffaa0a212ec90', class: {
|
|
36
38
|
'wrapper': true,
|
|
37
39
|
'state-open': this.open,
|
|
38
40
|
'state-list-type-menu': this.hasListTypeMenu,
|
|
39
|
-
} }, h(
|
|
41
|
+
} }, h(prefixedTagNames.tdsHeaderLauncherButton, Object.assign({ key: 'e342ef3f5bc23a694186c1c729cef676dc8c7f1e' }, buttonAttributes)), this.buttonEl && (h(prefixedTagNames.tdsPopoverCanvas, { key: '3c49f19fcca97529596140f707625b3192ec7758', id: `tds-launcher-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
|
|
40
42
|
{
|
|
41
43
|
name: 'flip',
|
|
42
44
|
options: {
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import inheritAriaAttributes from "../../../utils/inheritAriaAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
export class TdsHeaderLauncherButton {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.active = false;
|
|
6
7
|
}
|
|
7
8
|
render() {
|
|
9
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
8
10
|
this.ariaAttributes = Object.assign(Object.assign({}, this.ariaAttributes), inheritAriaAttributes(this.host));
|
|
9
11
|
const buttonProps = Object.assign({}, this.ariaAttributes);
|
|
10
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '7b3cdd607d43179c06df73f9c1e93cc8a3d34110' }, h(prefixedTagNames.tdsHeaderItem, { key: '34947ba38eb0a041e98ad33ee3d9f3eb23d09d80', active: this.active }, h("button", Object.assign({ key: 'a54b553fc4da95d6655a1a508c61e9effb87e804' }, buttonProps), h(prefixedTagNames.tdsIcon, { key: 'bcbb1a11a47b1d278b46456fdc08e79aff248de6', class: "icon", name: "bento", size: "20px" })))));
|
|
11
13
|
}
|
|
12
14
|
static get is() { return "tds-header-launcher-button"; }
|
|
13
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../../utils/generateUniqueId";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For list items.
|
|
5
6
|
*/
|
|
@@ -8,7 +9,9 @@ export class TdsHeaderLauncherList {
|
|
|
8
9
|
this.uuid = generateUniqueId();
|
|
9
10
|
}
|
|
10
11
|
render() {
|
|
11
|
-
|
|
12
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
13
|
+
return (h(Host, { key: '181fea64b9b0c467cc3f87284a35bcd4f3744bfe' }, h(prefixedTagNames.tdsHeaderDropdownList, { key: 'fa756f0269c590d9d56741a4e5c79f0f2e276144', size: "lg" }, h("slot", { key: 'c7e198458ec21f602d432485d84e72af3b16e26b' }))));
|
|
12
14
|
}
|
|
13
15
|
static get is() { return "tds-header-launcher-list"; }
|
|
16
|
+
static get elementRef() { return "host"; }
|
|
14
17
|
}
|
package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For a link or button element.
|
|
4
5
|
*/
|
|
5
6
|
export class TdsHeaderLauncherListItem {
|
|
6
7
|
render() {
|
|
7
|
-
|
|
8
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
9
|
+
return (h(Host, { key: 'dc91e95bff5fc5a24a7888e8ea1c09d9f6ddd381' }, h(prefixedTagNames.tdsHeaderDropdownListItem, { key: '25c61bb9c8600a30fad53b1265f8b3608aaa510c', size: "lg" }, h("slot", { key: '02c4962deca0829a70e9a6d8dbd9a26d4a721933' }))));
|
|
8
10
|
}
|
|
9
11
|
static get is() { return "tds-header-launcher-list-item"; }
|
|
10
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,4 +20,5 @@ export class TdsHeaderLauncherListItem {
|
|
|
18
20
|
"$": ["header-launcher-list-item.css"]
|
|
19
21
|
};
|
|
20
22
|
}
|
|
23
|
+
static get elementRef() { return "host"; }
|
|
21
24
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For the extended message. Not visible on minimal messages.
|
|
4
5
|
*/
|
|
@@ -25,10 +26,11 @@ export class TdsMessage {
|
|
|
25
26
|
this.minimal = false;
|
|
26
27
|
}
|
|
27
28
|
render() {
|
|
28
|
-
|
|
29
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
30
|
+
return (h(Host, { key: '388273d2a33152931a10fa1a26b2de908392aff6' }, h("div", { key: '65f066f605a1cc7efe87ead5375b8f556476deef', class: `
|
|
29
31
|
wrapper ${this.variant}
|
|
30
32
|
${this.minimal ? 'minimal' : ''}
|
|
31
|
-
${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, !this.noIcon && h(
|
|
33
|
+
${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, !this.noIcon && (h(prefixedTagNames.tdsIcon, { key: '291a17b2822d1d2ac9e6781d5097038ca29ef7d2', name: this.getIconName(), size: "20px" })), h("div", { key: '215381c9cfce537513900866d4f770218bf31662', class: `content` }, this.header && h("div", { key: 'c11eb4ca87b49fb7ddf98f6b5d0f8f1d56429b9d', class: "header" }, this.header), !this.minimal && (h("div", { key: '27e69500df32197323fc1e05bebb819be2f882e4', class: "extended-message" }, h("slot", { key: 'd50e21441cf16f1457072a933e8459c16170f3aa' })))))));
|
|
32
34
|
}
|
|
33
35
|
static get is() { return "tds-message"; }
|
|
34
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -135,4 +137,5 @@ export class TdsMessage {
|
|
|
135
137
|
}
|
|
136
138
|
};
|
|
137
139
|
}
|
|
140
|
+
static get elementRef() { return "host"; }
|
|
138
141
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import hasSlot from "../../utils/hasSlot";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot header - Slot for header text
|
|
5
6
|
* @slot body - Slot for main content of modal
|
|
@@ -110,9 +111,10 @@ export class TdsModal {
|
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
render() {
|
|
114
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
113
115
|
const usesHeaderSlot = hasSlot('header', this.host);
|
|
114
116
|
const usesActionsSlot = hasSlot('actions', this.host);
|
|
115
|
-
return (h(Host, { key: '
|
|
117
|
+
return (h(Host, { key: 'c132c58c8fad8644529d3da69c24b0ab2adf9df1', class: `${this.isShown ? 'show' : 'hide'}`, onClick: (event) => this.handleOverlayClick(event) }, h("div", { key: '7f68b5d68ec5fd68236df07fee40ec54ef5e3728', class: "tds-modal-backdrop" }), h("div", { key: '6a6b336f9e3f79953605351b124f672e42d88147', class: `tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}` }, h("div", { key: '826344b73843c905780a54c60e12c083c910dd5c', class: "header" }, this.header && h("div", { key: '5e9deedca44877bd6d0440996e73b683cda520eb', class: "header-text" }, this.header), usesHeaderSlot && h("slot", { key: '3c0dd4c3fdd4975dcaa43144e93ec9b5c044656c', name: "header" }), this.closable && (h("button", { key: '90861404b8b329b34827138bf4221ebe29737e82', class: "tds-modal-close", "aria-label": "close", onClick: (event) => this.handleClose(event) }, h(prefixedTagNames.tdsIcon, { key: '563e956985492fc9f5c16b374f60c979bf746c62', name: "cross", size: "20px" })))), h("div", { key: 'aeb5db11812c6e1f6723ed12c1d3c8ea8efbe33e', class: "body" }, h("slot", { key: '7214799883b11d5b4b2f45ebafd6cd6b69b9f896', name: "body" })), usesActionsSlot && h("slot", { key: '0e93478772268d86115d4f6f0bfa6c62b52040f7', name: "actions" }))));
|
|
116
118
|
}
|
|
117
119
|
static get is() { return "tds-modal"; }
|
|
118
120
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import inheritAttributes from "../../utils/inheritAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For the contents of the popover.
|
|
5
6
|
*/
|
|
@@ -25,12 +26,13 @@ export class TdsPopoverCanvas {
|
|
|
25
26
|
}
|
|
26
27
|
render() {
|
|
27
28
|
var _a;
|
|
28
|
-
|
|
29
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
30
|
+
return (h(Host, { key: '20f9ec1ff4aa412411f04c1448ab218846b3daff' }, h(prefixedTagNames.tdsPopoverCore, Object.assign({ key: 'c40d4551a718074f8c1508ac37c92e757c550c06' }, this.inheritedAttributes, { class: {
|
|
29
31
|
'tds-popover-canvas': true,
|
|
30
32
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
31
33
|
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, modifiers: this.modifiers, trigger: 'click', ref: (el) => {
|
|
32
34
|
this.childRef = el;
|
|
33
|
-
} }), h("div", { key: '
|
|
35
|
+
} }), h("div", { key: '64101f87fa1f0d22962ddcc1337dafedd3dbd454' }, h("slot", { key: '4c0a7a20eece3cb14465d599821ff0467672476d' })))));
|
|
34
36
|
}
|
|
35
37
|
static get is() { return "tds-popover-canvas"; }
|
|
36
38
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import inheritAttributes from "../../utils/inheritAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For the list of menu items.
|
|
5
6
|
*/
|
|
@@ -25,13 +26,14 @@ export class TdsPopoverMenu {
|
|
|
25
26
|
}
|
|
26
27
|
render() {
|
|
27
28
|
var _a;
|
|
28
|
-
|
|
29
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
30
|
+
return (h(Host, { key: '175101f0b9f5df56fa56a2a15d43468d5065129a' }, h(prefixedTagNames.tdsPopoverCore, { key: '91613f80d57750fe7f1a5957e5b3c359708f85b2', class: {
|
|
29
31
|
'tds-popover-menu': true,
|
|
30
32
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
31
33
|
'fluid-width': this.fluidWidth,
|
|
32
34
|
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, ref: (el) => {
|
|
33
35
|
this.childRef = el;
|
|
34
|
-
} }, h("div", { key: '
|
|
36
|
+
} }, h("div", { key: 'a5ee1d312e2608e134924e584f0c7b81a79b7401', role: "list" }, h("slot", { key: '27ca85a642e2ca45a36522d1917ba01042c5f347' })))));
|
|
35
37
|
}
|
|
36
38
|
static get is() { return "tds-popover-menu"; }
|
|
37
39
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import inheritAriaAttributes from "../../../utils/inheritAriaAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
export class TdsSideMenuCloseButton {
|
|
4
5
|
render() {
|
|
6
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
5
7
|
const buttonProps = Object.assign({ 'aria-label': 'Close' }, inheritAriaAttributes(this.host));
|
|
6
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'b8d9efa8e96a192966ead2a13898665f82b3fc2d' }, h("button", Object.assign({ key: '39f2161c9d6330bb9d0ca2245b2e6b63622fd9a6' }, buttonProps), h(prefixedTagNames.tdsIcon, { key: 'a3e98760aef2bf5bced8a96cae2e01067ab5a61c', name: "cross", size: "20px" }))));
|
|
7
9
|
}
|
|
8
10
|
static get is() { return "tds-side-menu-close-button"; }
|
|
9
11
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For the text label of the button.
|
|
4
5
|
* */
|
|
@@ -28,14 +29,15 @@ export class TdsSideMenuCollapseButton {
|
|
|
28
29
|
this.collapsed = this.sideMenuEl.collapsed;
|
|
29
30
|
}
|
|
30
31
|
render() {
|
|
31
|
-
|
|
32
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
33
|
+
return (h(Host, { key: '716bdffd158c839bca8c35073866d5c8983277c1', role: "button", tabindex: "0", onClick: () => {
|
|
32
34
|
this.handleClick();
|
|
33
|
-
} }, h("div", { key: '
|
|
35
|
+
} }, h("div", { key: 'e8d943133fdbc74d31e8e2f824ae7b2a47426f9d', class: {
|
|
34
36
|
'wrapper': true,
|
|
35
37
|
'state-collapsed': this.collapsed,
|
|
36
|
-
} }, h(
|
|
38
|
+
} }, h(prefixedTagNames.tdsSideMenuItem, { key: '13be747559758d11dba4a5a8be20762385155b86', class: {
|
|
37
39
|
button: true,
|
|
38
|
-
} }, h("a", { key: '
|
|
40
|
+
} }, h("a", { key: '2660af6cc804011bcbd9838b00949001002170c4' }, h("svg", { key: '10bfa3c93ab0ca8f0dc7fc5a84198bf37dc4f968', class: "icon", slot: "icon", fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '5f77a44d3c22512f93d8c1bbcca0f650594c8be7', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16 1.975a1 1 0 0 1 1 1v20.3l9.311-9.312a1 1 0 0 1 1.415 1.414l-9.887 9.887a2.6 2.6 0 0 1-3.677 0l-9.887-9.887a1 1 0 1 1 1.414-1.414L15 23.274V2.975a1 1 0 0 1 1-1ZM5.188 28.001a1 1 0 0 0 0 2h21.62a1 1 0 1 0 0-2H5.188Z", fill: "currentColor" })), !this.collapsed && h("slot", { key: '0bb583b4f58f7933a55d515636b524ceb2ccb891' }))))));
|
|
39
41
|
}
|
|
40
42
|
static get is() { return "tds-side-menu-collapse-button"; }
|
|
41
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Fragment, h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot icon - Used for injecting the icon that compliments the dropdown title
|
|
4
5
|
* @slot label - Used for injecting the text, aka dropdown title
|
|
@@ -50,13 +51,14 @@ export class TdsSideMenuDropdown {
|
|
|
50
51
|
this.open = this.defaultOpen;
|
|
51
52
|
}
|
|
52
53
|
render() {
|
|
53
|
-
|
|
54
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
55
|
+
return (h(Host, { key: 'd61a2cd774e95646ec3f0c00a13404907cedecf1' }, h("div", { key: 'ab794f2a74f5d43d4f80ff84ac6a89abd4d8751d', class: {
|
|
54
56
|
'wrapper': true,
|
|
55
57
|
'state-open': this.getIsOpenState(),
|
|
56
58
|
'state-collapsed': this.collapsed,
|
|
57
|
-
} }, h(
|
|
59
|
+
} }, h(prefixedTagNames.tdsSideMenuItem, { key: 'e6b558615f822a452d63f174e1c83c80e4c07558', class: "button", active: this.getIsOpenState(), selected: this.selected, onClick: () => {
|
|
58
60
|
this.open = !this.open;
|
|
59
|
-
} }, h("button", { key: '
|
|
61
|
+
} }, h("button", { key: 'b9c9f561847d6b48ce83807fadc07192a42b11e3' }, h("slot", { key: 'e0ecb003ae2d04f0c7f01b357ab831ac2eb68d03', name: "icon" }), !this.collapsed && (h(Fragment, { key: 'f9fc33e944f4b56f86c7495084d32091d61fafa5' }, this.buttonLabel, h("slot", { key: 'c5494b6dd481897c452c8e45e21f35d0260f8703', name: "label" }), h(prefixedTagNames.tdsIcon, { key: '1a11f0ed9d78d15d4e68667ed79353af6a6255c9', class: "dropdown-icon", name: "chevron_down", size: "16px" }))))), h("div", { key: '75ef7b1e15e926813dabd29cb6f68b17774bbf4d', class: "menu" }, this.collapsed && (h("h3", { key: '89a41eed8483f37deb9391293584e93959d03532', class: "heading-collapsed" }, this.buttonLabel, h("slot", { key: '1c0cbdd49a1226ee5311a733ab24064ee3032604', name: "label" }))), h("slot", { key: '5850c21ffe901c0e8ed848d21106ff63653dce0a' })))));
|
|
60
62
|
}
|
|
61
63
|
static get is() { return "tds-side-menu-dropdown"; }
|
|
62
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> Used as alternative to props to inject <code><img...</code> element directly into the DOM.
|
|
4
5
|
* */
|
|
@@ -10,7 +11,8 @@ export class TdsSideMenuUser {
|
|
|
10
11
|
this.imgAlt = undefined;
|
|
11
12
|
}
|
|
12
13
|
render() {
|
|
13
|
-
|
|
14
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
15
|
+
return (h(Host, { key: '378797df81d1a0cdec4a7ad12813dcd2d57a8017' }, h(prefixedTagNames.tdsSideMenuUserImage, { key: 'faa47521346c55bfa10d27c2aabd9a9224ec1f88', src: this.imgSrc, alt: this.imgAlt }, h("slot", { key: '0863342a90fb83e8afc04d763181532c65f86060', name: "image" })), h(prefixedTagNames.tdsSideMenuUserLabel, { key: '7f5782f7a00fa2741d24f4d371da8f48e76b8267', heading: this.heading, subheading: this.subheading })));
|
|
14
16
|
}
|
|
15
17
|
static get is() { return "tds-side-menu-user"; }
|
|
16
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -96,4 +98,5 @@ export class TdsSideMenuUser {
|
|
|
96
98
|
}
|
|
97
99
|
};
|
|
98
100
|
}
|
|
101
|
+
static get elementRef() { return "host"; }
|
|
99
102
|
}
|
|
@@ -163,7 +163,7 @@ export class TdsSideMenu {
|
|
|
163
163
|
"references": {
|
|
164
164
|
"CollapseEvent": {
|
|
165
165
|
"location": "local",
|
|
166
|
-
"path": "/
|
|
166
|
+
"path": "/Users/rhyme/projects/scania/tegel/packages/core/src/components/side-menu/side-menu.tsx",
|
|
167
167
|
"id": "src/components/side-menu/side-menu.tsx::CollapseEvent"
|
|
168
168
|
}
|
|
169
169
|
}
|
|
@@ -187,7 +187,7 @@ export class TdsSideMenu {
|
|
|
187
187
|
"references": {
|
|
188
188
|
"CollapseEvent": {
|
|
189
189
|
"location": "local",
|
|
190
|
-
"path": "/
|
|
190
|
+
"path": "/Users/rhyme/projects/scania/tegel/packages/core/src/components/side-menu/side-menu.tsx",
|
|
191
191
|
"id": "src/components/side-menu/side-menu.tsx::CollapseEvent"
|
|
192
192
|
}
|
|
193
193
|
}
|
|
@@ -211,7 +211,7 @@ export class TdsSideMenu {
|
|
|
211
211
|
"references": {
|
|
212
212
|
"InternalTdsSideMenuPropChange": {
|
|
213
213
|
"location": "local",
|
|
214
|
-
"path": "/
|
|
214
|
+
"path": "/Users/rhyme/projects/scania/tegel/packages/core/src/components/side-menu/side-menu.tsx",
|
|
215
215
|
"id": "src/components/side-menu/side-menu.tsx::InternalTdsSideMenuPropChange"
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { h, } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../utils/generateUniqueId";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
export class TdsSlider {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.wrapperElement = null;
|
|
@@ -291,24 +292,25 @@ export class TdsSlider {
|
|
|
291
292
|
this.updateTrack();
|
|
292
293
|
}
|
|
293
294
|
render() {
|
|
294
|
-
|
|
295
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
296
|
+
return (h("div", { key: 'd676666417f2124dd55ca83f8d8823b47dca5275', class: {
|
|
295
297
|
'tds-slider-wrapper': true,
|
|
296
298
|
'read-only': this.readOnly,
|
|
297
|
-
} }, h("input", { key: '
|
|
299
|
+
} }, h("input", { key: '1cb6a822d82f5bfd0234dbc20cf46ee178ef4f3f', class: "tds-slider-native-element", type: "range", name: this.name, min: this.min, max: this.max, value: this.value, disabled: this.disabled }), h("div", { key: '25ee1da1072d4081404310fefcf6156ac1545bb6', class: {
|
|
298
300
|
'tds-slider': true,
|
|
299
301
|
'disabled': this.disabled,
|
|
300
302
|
'tds-slider-small': this.useSmall,
|
|
301
303
|
}, ref: (el) => {
|
|
302
304
|
this.wrapperElement = el;
|
|
303
|
-
} }, h("label", { key: '
|
|
305
|
+
} }, h("label", { key: '9f613d2362d32772238e4f9cf4cc21333fa610bb', class: this.showTickNumbers && 'offset' }, this.label), this.useInput && (h("div", { key: 'ebbcd4682a5563b5781b0aeeeeac2e56f6a79fbd', class: "tds-slider__input-values" }, h("div", { key: '3b0b92b1408f79864825be16dc851b12183bb799', class: "tds-slider__input-value min-value" }, this.min))), this.useControls && (h("div", { key: '6d36e25c24c5fe18200f65703a018b92726b3dee', class: "tds-slider__controls" }, h("div", { key: 'fb4de7652d093df433e2be7cc06a7b9a9421ed58', class: "tds-slider__control tds-slider__control-minus", onClick: (event) => this.stepLeft(event) }, h(prefixedTagNames.tdsIcon, { key: '6a0f6fd30de791dfe2bcab654a9368707cc5ff4c', name: "minus", size: "16px" })))), h("div", { key: '0a49a454753cae2f4e49bc5cdfe4094201e0f41b', class: "tds-slider-inner" }, this.tickValues.length > 0 && (h("div", { key: 'c920f993c2bf263ecaea5fa6b3904a34e8b94fe8', class: "tds-slider__value-dividers-wrapper" }, h("div", { key: 'ed326517f7c3338c88d3314c5848960de2882447', class: "tds-slider__value-dividers" }, this.tickValues.map((value) => (h("div", { class: "tds-slider__value-divider" }, this.showTickNumbers && h("span", null, value))))))), h("div", { key: '5170894e75bd459c9dc5e6010a8312b611c664e8', class: "tds-slider__track", ref: (el) => {
|
|
304
306
|
this.trackElement = el;
|
|
305
|
-
}, tabindex: this.disabled ? '-1' : '0' }, h("div", { key: '
|
|
307
|
+
}, tabindex: this.disabled ? '-1' : '0' }, h("div", { key: '55e94d65579e662b3b92a43418524f348ef4c69c', class: "tds-slider__track-fill", ref: (el) => {
|
|
306
308
|
this.trackFillElement = el;
|
|
307
|
-
} }), h("div", { key: '
|
|
309
|
+
} }), h("div", { key: 'a8129aaa54e8a03f254e8858e98427fa3f99f452', class: "tds-slider__thumb", ref: (el) => {
|
|
308
310
|
this.thumbElement = el;
|
|
309
|
-
}, onMouseDown: () => this.grabThumb(), onTouchStart: () => this.grabThumb() }, this.tooltip && (h("div", { key: '
|
|
311
|
+
}, onMouseDown: () => this.grabThumb(), onTouchStart: () => this.grabThumb() }, this.tooltip && (h("div", { key: '1d478384f0b6c31d4a2766a3a627cdd4574cd79e', class: "tds-slider__value" }, this.value, h("svg", { key: '343f422c8042eacbb37737913dcfd4e065a03679', width: "18", height: "14", viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '5057f976f09b5f176f2c1489e6ab94aed8dc0472', d: "M8.15882 12.6915L0.990487 1.54076C0.562658 0.875246 1.0405 0 1.83167 0H16.1683C16.9595 0 17.4373 0.875246 17.0095 1.54076L9.84118 12.6915C9.44754 13.3038 8.55246 13.3038 8.15882 12.6915Z", fill: "currentColor" })))), h("div", { key: '8ed0d33b1b5be47b9e231d88bf2ea9fa8d7a9199', class: "tds-slider__thumb-inner", ref: (el) => {
|
|
310
312
|
this.thumbInnerElement = el;
|
|
311
|
-
} })))), this.useInput && (h("div", { key: '
|
|
313
|
+
} })))), this.useInput && (h("div", { key: '17cdc0c35da1c5355edcacec51a84146ba052350', class: "tds-slider__input-values" }, h("div", { key: 'af0f7c10aa16cc44789c827f7eee086fa4abfc70', class: "tds-slider__input-value", onClick: (event) => this.stepLeft(event) }, this.max), h("div", { key: '6879810e310ab9f036cd37cd907f704470334cb8', class: "tds-slider__input-field-wrapper" }, h("input", { key: '4ea73453907e378ec31fa2c99517d7ba16af5d5a', size: this.calculateInputSizeFromMax(), class: "tds-slider__input-field", value: this.value, readOnly: this.readOnly, onBlur: (event) => this.updateSliderValueOnInputChange(event), onKeyDown: (event) => this.handleInputFieldEnterPress(event), type: "number", min: this.min, max: this.max })))), this.useControls && (h("div", { key: '9afa97d14e9e9b44c0f412462b302d160051161d', class: "tds-slider__controls" }, h("div", { key: 'efd5e7f9b2f3287e5294bebc51739c6b07876ec7', class: "tds-slider__control tds-slider__control-plus", onClick: (event) => this.stepRight(event) }, h(prefixedTagNames.tdsIcon, { key: '5d0fd79876dab01667cf73dcd816a9198e33bd85', name: "plus", size: "16px" })))))));
|
|
312
314
|
}
|
|
313
315
|
static get is() { return "tds-slider"; }
|
|
314
316
|
static get originalStyleUrls() {
|
|
@@ -667,6 +669,7 @@ export class TdsSlider {
|
|
|
667
669
|
}
|
|
668
670
|
};
|
|
669
671
|
}
|
|
672
|
+
static get elementRef() { return "host"; }
|
|
670
673
|
static get watchers() {
|
|
671
674
|
return [{
|
|
672
675
|
"propName": "value",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const propToStateMap = {
|
|
3
4
|
orientation: 'orientation',
|
|
4
5
|
labelPosition: 'labelPosition',
|
|
@@ -19,7 +20,7 @@ export class TdsStep {
|
|
|
19
20
|
}
|
|
20
21
|
/* Needs to be onload to do this on any updates. */
|
|
21
22
|
componentWillLoad() {
|
|
22
|
-
this.stepperEl = this.
|
|
23
|
+
this.stepperEl = this.host.closest('tds-stepper');
|
|
23
24
|
this.orientation = this.stepperEl.orientation;
|
|
24
25
|
this.labelPosition = this.stepperEl.labelPosition;
|
|
25
26
|
this.size = this.stepperEl.size;
|
|
@@ -39,7 +40,8 @@ export class TdsStep {
|
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
render() {
|
|
42
|
-
|
|
43
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
44
|
+
return (h(Host, { key: '52a70297ba2b6f186916f597e2e6f355fea93d50' }, h("div", { key: 'e6abd1a5dc488b03a16451e162ea9b6911e36875', role: "listitem", class: `${this.size} ${this.orientation} text-${this.labelPosition} ${this.hideLabels ? 'hide-labels' : ''}` }, h("span", { key: 'e98b565719a767a03386f9e351be40c3843ae7f2', class: `${this.state} content-container` }, this.state === 'success' || this.state === 'error' ? (h(prefixedTagNames.tdsIcon, { class: 'tds-step-icon', name: this.state === 'success' ? 'tick' : 'warning', size: this.size === 'lg' ? '20px' : '16px' })) : (h("span", { class: "index-container" }, this.index))), !this.hideLabels && (h("div", { key: 'eb6814fb3f3b932de0ea2adaa02e8d350db105b0', class: `label ${this.size} ${this.state}` }, h("slot", { key: '8e3c42eaa55d71e278f73ac7c920510fc182f00b', name: "label" }))))));
|
|
43
45
|
}
|
|
44
46
|
static get is() { return "tds-step"; }
|
|
45
47
|
static get encapsulation() { return "shadow"; }
|
|
@@ -100,7 +102,7 @@ export class TdsStep {
|
|
|
100
102
|
"labelPosition": {}
|
|
101
103
|
};
|
|
102
104
|
}
|
|
103
|
-
static get elementRef() { return "
|
|
105
|
+
static get elementRef() { return "host"; }
|
|
104
106
|
static get listeners() {
|
|
105
107
|
return [{
|
|
106
108
|
"name": "internalTdsPropsChange",
|
|
@@ -173,7 +173,7 @@ export class TdsStepper {
|
|
|
173
173
|
"references": {
|
|
174
174
|
"InternalTdsStepperPropChange": {
|
|
175
175
|
"location": "local",
|
|
176
|
-
"path": "/
|
|
176
|
+
"path": "/Users/rhyme/projects/scania/tegel/packages/core/src/components/stepper/stepper.tsx",
|
|
177
177
|
"id": "src/components/stepper/stepper.tsx::InternalTdsStepperPropChange"
|
|
178
178
|
}
|
|
179
179
|
}
|
|
@@ -305,7 +305,7 @@ export class TdsTable {
|
|
|
305
305
|
"references": {
|
|
306
306
|
"InternalTdsTablePropChange": {
|
|
307
307
|
"location": "local",
|
|
308
|
-
"path": "/
|
|
308
|
+
"path": "/Users/rhyme/projects/scania/tegel/packages/core/src/components/table/table/table.tsx",
|
|
309
309
|
"id": "src/components/table/table/table.tsx::InternalTdsTablePropChange"
|
|
310
310
|
}
|
|
311
311
|
}
|
package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = ['compactDesign'];
|
|
3
4
|
export class TdsTableBodyInputWrapper {
|
|
4
5
|
constructor() {
|
|
@@ -63,11 +64,12 @@ export class TdsTableBodyInputWrapper {
|
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
render() {
|
|
66
|
-
|
|
67
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
68
|
+
return (h(Host, { key: '05e41154f07408493f682755fcfce90b16540f05', class: {
|
|
67
69
|
'focused-input-wrapper': this.inputFocused,
|
|
68
70
|
'show-icon': this.showIcon,
|
|
69
71
|
'tds-table__compact': this.compactDesign,
|
|
70
|
-
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(
|
|
72
|
+
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(prefixedTagNames.tdsIcon, { class: "edit-icon", slot: "icon", size: "16px", name: "edit" })) : null));
|
|
71
73
|
}
|
|
72
74
|
static get is() { return "tds-table-body-input-wrapper"; }
|
|
73
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = [
|
|
3
4
|
'multiselect',
|
|
4
5
|
'verticalDividers',
|
|
@@ -48,12 +49,13 @@ export class TdsTableBodyRow {
|
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
51
|
render() {
|
|
51
|
-
|
|
52
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
53
|
+
return (h(Host, { key: '0ac4875938275167c52bdb1a66fc54158c61a76d', class: {
|
|
52
54
|
'tds-table__row': true,
|
|
53
55
|
'tds-table__row--selected': this.selected,
|
|
54
56
|
'tds-table__compact': this.compactDesign,
|
|
55
57
|
'tds-table--divider': this.verticalDividers,
|
|
56
|
-
} }, this.multiselect && (h("td", { key: '
|
|
58
|
+
} }, this.multiselect && (h("td", { key: 'c7207da4609b85ae7d2af89df17a06021ed4d5dc', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h(prefixedTagNames.tdsCheckbox, { key: '46d7c610a47b1318d0d30d689bcdcfde5761727c', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), h("slot", { key: '06e607ab15a8f5610f67be5afd2a46ed0f96c4b4' })));
|
|
57
59
|
}
|
|
58
60
|
static get is() { return "tds-table-body-row"; }
|
|
59
61
|
static get encapsulation() { return "shadow"; }
|