@otto-de/b2b-core-components 1.0.1 → 1.1.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/b2b-core-components/b2b-core-components.esm.js +1 -1
- package/dist/b2b-core-components/{p-599b5bb1.entry.js → p-2125ea38.entry.js} +1 -1
- package/dist/b2b-core-components/{p-389defa1.entry.js → p-22cc8a9f.entry.js} +1 -1
- package/dist/b2b-core-components/{p-15e7db21.entry.js → p-3cbf9cd2.entry.js} +1 -1
- package/dist/b2b-core-components/{p-0a686eb7.entry.js → p-414fef03.entry.js} +1 -1
- package/dist/b2b-core-components/{p-2b66f8d1.entry.js → p-41e83c36.entry.js} +1 -1
- package/dist/b2b-core-components/{p-6a273cbb.entry.js → p-4cc68a17.entry.js} +1 -1
- package/dist/b2b-core-components/{p-80eca7db.entry.js → p-5048bec7.entry.js} +1 -1
- package/dist/b2b-core-components/{p-64a24de2.entry.js → p-5b1bc987.entry.js} +1 -1
- package/dist/b2b-core-components/{p-1a02cd63.entry.js → p-5b40beba.entry.js} +1 -1
- package/dist/b2b-core-components/p-6000aa40.js +2 -0
- package/dist/b2b-core-components/{p-bd501484.entry.js → p-644c602b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-18e2cb16.entry.js → p-66399e78.entry.js} +1 -1
- package/dist/b2b-core-components/{p-5f8076a5.entry.js → p-6dc0211c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-aae428c1.entry.js → p-7149e60c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-1631046e.entry.js → p-72c780a5.entry.js} +1 -1
- package/dist/b2b-core-components/{p-9a5cb4ae.entry.js → p-7e28e0f2.entry.js} +1 -1
- package/dist/b2b-core-components/{p-e4eebaf5.entry.js → p-81a32656.entry.js} +1 -1
- package/dist/b2b-core-components/{p-a8d35abb.entry.js → p-84608432.entry.js} +1 -1
- package/dist/b2b-core-components/{p-b77d7b88.entry.js → p-893f600f.entry.js} +1 -1
- package/dist/b2b-core-components/{p-a611338a.entry.js → p-977d2fff.entry.js} +1 -1
- package/dist/b2b-core-components/{p-01c930e6.entry.js → p-99d63c7c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-faad6997.entry.js → p-9cab38a6.entry.js} +1 -1
- package/dist/b2b-core-components/{p-401ec740.entry.js → p-9f670297.entry.js} +1 -1
- package/dist/b2b-core-components/{p-d56ea84b.entry.js → p-a1832e33.entry.js} +1 -1
- package/dist/b2b-core-components/{p-27e6330d.entry.js → p-ad2548ba.entry.js} +1 -1
- package/dist/b2b-core-components/{p-cfc0c9b5.entry.js → p-b35d3924.entry.js} +1 -1
- package/dist/b2b-core-components/{p-9e3ba717.entry.js → p-bfdc3e1d.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ce6ba2bd.entry.js → p-c2855f32.entry.js} +1 -1
- package/dist/b2b-core-components/{p-2768d91f.entry.js → p-c8585513.entry.js} +1 -1
- package/dist/b2b-core-components/{p-a5462c02.entry.js → p-c8ec3c18.entry.js} +1 -1
- package/dist/b2b-core-components/p-ca2722e8.entry.js +1 -0
- package/dist/b2b-core-components/p-cfdb21b6.entry.js +1 -0
- package/dist/b2b-core-components/{p-50c5299b.entry.js → p-da6ddbb2.entry.js} +1 -1
- package/dist/b2b-core-components/{p-dcc7125f.entry.js → p-dfa3663c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-00aee514.entry.js → p-ee1d70fc.entry.js} +1 -1
- package/dist/b2b-core-components/p-f6105da5.entry.js +1 -0
- package/dist/b2b-core-components/{p-d947bb64.entry.js → p-ff4d56aa.entry.js} +1 -1
- package/dist/cjs/b2b-alert.cjs.entry.js +1 -1
- package/dist/cjs/b2b-anchor.cjs.entry.js +1 -1
- package/dist/cjs/b2b-button_2.cjs.entry.js +1 -1
- package/dist/cjs/b2b-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/b2b-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/b2b-core-components.cjs.js +2 -2
- package/dist/cjs/b2b-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/b2b-grid-col.cjs.entry.js +1 -1
- package/dist/cjs/b2b-grid-row.cjs.entry.js +1 -1
- package/dist/cjs/b2b-grid.cjs.entry.js +1 -1
- package/dist/cjs/b2b-headline.cjs.entry.js +1 -1
- package/dist/cjs/b2b-icon.cjs.entry.js +1 -1
- package/dist/cjs/b2b-input-group_2.cjs.entry.js +10 -6
- package/dist/cjs/b2b-input-label.cjs.entry.js +1 -1
- package/dist/cjs/b2b-input_2.cjs.entry.js +6 -1
- package/dist/cjs/b2b-label.cjs.entry.js +1 -1
- package/dist/cjs/b2b-modal.cjs.entry.js +1 -1
- package/dist/cjs/b2b-pagination.cjs.entry.js +1 -1
- package/dist/cjs/b2b-paragraph.cjs.entry.js +1 -1
- package/dist/cjs/b2b-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/b2b-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/b2b-required-separator.cjs.entry.js +1 -1
- package/dist/cjs/b2b-scrollable-container.cjs.entry.js +2 -2
- package/dist/cjs/b2b-search.cjs.entry.js +1 -1
- package/dist/cjs/b2b-separator.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab.cjs.entry.js +1 -1
- package/dist/cjs/b2b-table-cell.cjs.entry.js +25 -6
- package/dist/cjs/b2b-table-header.cjs.entry.js +1 -1
- package/dist/cjs/b2b-table-row.cjs.entry.js +2 -2
- package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +1 -1
- package/dist/cjs/b2b-table.cjs.entry.js +1 -1
- package/dist/cjs/b2b-textarea.cjs.entry.js +1 -1
- package/dist/cjs/b2b-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/b2b-toggle-group.cjs.entry.js +6 -2
- package/dist/cjs/b2b-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/{index-f680aee0.js → index-494f6064.js} +3 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/alert/alert.css +2 -2
- package/dist/collection/components/anchor/anchor.css +2 -2
- package/dist/collection/components/button/button.css +2 -2
- package/dist/collection/components/checkbox/checkbox.css +2 -2
- package/dist/collection/components/checkbox-group/checkbox-group.css +2 -2
- package/dist/collection/components/dropdown/dropdown.css +2 -2
- package/dist/collection/components/headline/headline.css +2 -2
- package/dist/collection/components/icon/icon.css +2 -2
- package/dist/collection/components/input/input.css +2 -2
- package/dist/collection/components/input/input.js +21 -0
- package/dist/collection/components/input-group/input-group.css +2 -2
- package/dist/collection/components/input-list/input-list.css +2 -2
- package/dist/collection/components/input-list/input-list.js +31 -5
- package/dist/collection/components/label/label.css +2 -2
- package/dist/collection/components/modal/modal.css +2 -2
- package/dist/collection/components/pagination/pagination.css +2 -2
- package/dist/collection/components/paragraph/paragraph.css +2 -2
- package/dist/collection/components/radio/radio.css +2 -2
- package/dist/collection/components/radio-group/radio-group.css +2 -2
- package/dist/collection/components/required-separator/required-separator.css +2 -2
- package/dist/collection/components/scrollable-container/scrollable-container.css +3 -2
- package/dist/collection/components/separator/separator.css +2 -2
- package/dist/collection/components/spinner/spinner.css +2 -2
- package/dist/collection/components/tab/tab.css +2 -2
- package/dist/collection/components/tab-panel/tab-panel.css +2 -2
- package/dist/collection/components/table/table-cell/table-cell.css +13 -2
- package/dist/collection/components/table/table-cell/table-cell.js +28 -4
- package/dist/collection/components/table/table-header/table-header.css +2 -2
- package/dist/collection/components/table/table-row/table-row.css +12 -3
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +2 -2
- package/dist/collection/components/table/table.css +2 -2
- package/dist/collection/components/textarea/textarea.css +2 -2
- package/dist/collection/components/toggle-button/toggle-button.css +2 -2
- package/dist/collection/components/toggle-group/toggle-group.css +2 -2
- package/dist/collection/components/toggle-group/toggle-group.js +5 -1
- package/dist/collection/components/tooltip/tooltip.css +6 -18
- package/dist/components/b2b-scrollable-container.js +1 -1
- package/dist/components/b2b-table-cell.js +26 -6
- package/dist/components/b2b-table-row.js +1 -1
- package/dist/components/b2b-toggle-group.js +5 -1
- package/dist/components/b2b-tooltip.js +1 -1
- package/dist/components/input-list.js +10 -6
- package/dist/components/input.js +7 -1
- package/dist/esm/b2b-alert.entry.js +1 -1
- package/dist/esm/b2b-anchor.entry.js +1 -1
- package/dist/esm/b2b-button_2.entry.js +1 -1
- package/dist/esm/b2b-checkbox-group.entry.js +1 -1
- package/dist/esm/b2b-checkbox.entry.js +1 -1
- package/dist/esm/b2b-core-components.js +3 -3
- package/dist/esm/b2b-dropdown.entry.js +1 -1
- package/dist/esm/b2b-grid-col.entry.js +1 -1
- package/dist/esm/b2b-grid-row.entry.js +1 -1
- package/dist/esm/b2b-grid.entry.js +1 -1
- package/dist/esm/b2b-headline.entry.js +1 -1
- package/dist/esm/b2b-icon.entry.js +1 -1
- package/dist/esm/b2b-input-group_2.entry.js +10 -6
- package/dist/esm/b2b-input-label.entry.js +1 -1
- package/dist/esm/b2b-input_2.entry.js +6 -1
- package/dist/esm/b2b-label.entry.js +1 -1
- package/dist/esm/b2b-modal.entry.js +1 -1
- package/dist/esm/b2b-pagination.entry.js +1 -1
- package/dist/esm/b2b-paragraph.entry.js +1 -1
- package/dist/esm/b2b-radio-button.entry.js +1 -1
- package/dist/esm/b2b-radio-group.entry.js +1 -1
- package/dist/esm/b2b-required-separator.entry.js +1 -1
- package/dist/esm/b2b-scrollable-container.entry.js +2 -2
- package/dist/esm/b2b-search.entry.js +1 -1
- package/dist/esm/b2b-separator.entry.js +1 -1
- package/dist/esm/b2b-tab-group.entry.js +1 -1
- package/dist/esm/b2b-tab-panel.entry.js +1 -1
- package/dist/esm/b2b-tab.entry.js +1 -1
- package/dist/esm/b2b-table-cell.entry.js +25 -6
- package/dist/esm/b2b-table-header.entry.js +1 -1
- package/dist/esm/b2b-table-row.entry.js +2 -2
- package/dist/esm/b2b-table-rowgroup.entry.js +1 -1
- package/dist/esm/b2b-table.entry.js +1 -1
- package/dist/esm/b2b-textarea.entry.js +1 -1
- package/dist/esm/b2b-toggle-button.entry.js +1 -1
- package/dist/esm/b2b-toggle-group.entry.js +6 -2
- package/dist/esm/b2b-tooltip.entry.js +2 -2
- package/dist/esm/{index-f975f1ed.js → index-ffd21e30.js} +3 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/input/input.d.ts +2 -0
- package/dist/types/components/input-list/input-list.d.ts +3 -0
- package/dist/types/components/table/table-cell/table-cell.d.ts +7 -0
- package/dist/types/components.d.ts +11 -2
- package/dist/types/utils/interfaces/form.interface.d.ts +2 -0
- package/dist/web-types.json +13 -2
- package/package.json +2 -2
- package/dist/b2b-core-components/p-5055e8b3.entry.js +0 -1
- package/dist/b2b-core-components/p-889f1f58.entry.js +0 -1
- package/dist/b2b-core-components/p-d1c69d72.js +0 -2
- package/dist/b2b-core-components/p-e4345be2.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-494f6064.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Stencil Client Patch Esm v3.0.1 | MIT Licensed | https://stenciljs.com
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["b2b-search.cjs",[[1,"b2b-search",{"placeholder":[1],"optionsList":[16],"value":[1537],"closed":[32]}]]],["b2b-modal.cjs",[[1,"b2b-modal",{"heading":[1],"opened":[1540],"backdropDismiss":[4,"backdrop-dismiss"],"escDismiss":[4,"esc-dismiss"],"variant":[1],"iconHover":[32],"isOpen":[32]},[[0,"keydown","handleKeypress"]]]]],["b2b-pagination.cjs",[[1,"b2b-pagination",{"totalPages":[2,"total-pages"],"activePage":[1538,"active-page"],"ariaLabelNextPage":[1,"aria-label-next-page"],"ariaLabelPreviousPage":[1,"aria-label-previous-page"]}]]],["b2b-alert.cjs",[[1,"b2b-alert",{"type":[1],"size":[1],"opened":[1028],"hasCloseButton":[4,"has-close-button"],"customIcon":[4,"custom-icon"]}]]],["b2b-checkbox.cjs",[[1,"b2b-checkbox",{"label":[1],"required":[516],"checked":[1540],"disabled":[516],"error":[1],"hint":[1],"name":[513],"value":[520],"invalid":[4]}]]],["b2b-checkbox-group.cjs",[[1,"b2b-checkbox-group",{"label":[1],"required":[4],"disabled":[4],"invalid":[4],"alignment":[1],"hint":[1],"error":[1]},[[0,"b2b-change","handleCheckboxChange"]]]]],["b2b-dropdown.cjs",[[1,"b2b-dropdown",{"label":[1],"required":[516],"name":[513],"disabled":[516],"invalid":[516],"hint":[1],"error":[1]}]]],["b2b-radio-button.cjs",[[1,"b2b-radio-button",{"label":[1],"required":[516],"name":[513],"checked":[1540],"disabled":[516],"invalid":[4],"value":[513],"hint":[1],"error":[1]}]]],["b2b-radio-group.cjs",[[1,"b2b-radio-group",{"name":[1],"label":[1],"required":[4],"alignment":[1],"disabled":[516],"invalid":[516],"hint":[1],"error":[1],"currentValue":[32]},[[0,"b2b-change","handleRadioButtonChange"]]]]],["b2b-required-separator.cjs",[[1,"b2b-required-separator",{"label":[1]}]]],["b2b-tab-group.cjs",[[1,"b2b-tab-group",{"useRouter":[4,"use-router"]},[[0,"click","handleClick"],[0,"keydown","handleKeydown"]]]]],["b2b-textarea.cjs",[[1,"b2b-textarea",{"label":[1],"required":[516],"placeholder":[513],"disabled":[516],"invalid":[516],"autofocus":[516],"resize":[513],"hint":[1],"error":[1],"value":[1537],"name":[513],"maxLength":[514,"max-length"]}]]],["b2b-anchor.cjs",[[1,"b2b-anchor",{"href":[1],"download":[1],"target":[1],"size":[1]}]]],["b2b-grid.cjs",[[1,"b2b-grid",{"margin":[2]}]]],["b2b-grid-col.cjs",[[1,"b2b-grid-col",{"span":[514],"textAlign":[1,"text-align"]}]]],["b2b-grid-row.cjs",[[1,"b2b-grid-row",{"columnGap":[2,"column-gap"],"rowGap":[2,"row-gap"],"alignItems":[1,"align-items"],"justify":[1]}]]],["b2b-label.cjs",[[1,"b2b-label",{"type":[1]}]]],["b2b-paragraph.cjs",[[1,"b2b-paragraph",{"weight":[1],"size":[1],"align":[1]}]]],["b2b-scrollable-container.cjs",[[1,"b2b-scrollable-container"]]],["b2b-tab.cjs",[[1,"b2b-tab",{"selected":[516],"disabled":[4],"invalid":[4]}]]],["b2b-tab-panel.cjs",[[1,"b2b-tab-panel"]]],["b2b-table.cjs",[[1,"b2b-table",{"size":[1]},[[0,"b2b-change","onColumnSelected"]]]]],["b2b-table-cell.cjs",[[1,"b2b-table-cell",{"textWrap":[516,"text-wrap"],"size":[1],"align":[1],"divider":[4],"color":[1]}]]],["b2b-table-header.cjs",[[1,"b2b-table-header",{"divider":[4],"fixed":[4],"sortDirection":[1537,"sort-direction"],"sortId":[1,"sort-id"],"active":[32]}]]],["b2b-table-row.cjs",[[1,"b2b-table-row",{"highlight":[4],"color":[1]}]]],["b2b-table-rowgroup.cjs",[[1,"b2b-table-rowgroup",{"type":[1]}]]],["b2b-toggle-button.cjs",[[1,"b2b-toggle-button",{"label":[1],"name":[513],"checked":[1540],"disabled":[516],"value":[513]}]]],["b2b-toggle-group.cjs",[[1,"b2b-toggle-group",{"name":[1],"disabled":[516],"currentValue":[32]},[[0,"b2b-change","handleToggleButtonChange"]]]]],["b2b-tooltip.cjs",[[1,"b2b-tooltip",{"position":[1],"content":[1],"trigger":[1],"opened":[1540]}]]],["b2b-headline.cjs",[[1,"b2b-headline",{"size":[1],"align":[1],"noMargin":[4,"no-margin"]}]]],["b2b-input-label.cjs",[[1,"b2b-input-label",{"required":[4],"disabled":[4]}]]],["b2b-input_2.cjs",[[1,"b2b-input",{"label":[1],"required":[516],"type":[513],"disabled":[516],"invalid":[516],"placeholder":[513],"value":[1537],"name":[513],"hint":[1],"error":[1],"autofocus":[4],"hasFocus":[32],"hasTextPrefix":[32],"hasTextSuffix":[32],"setFocus":[64]}],[0,"b2b-input-list-option",{"option":[1]},[[0,"keydown","handleKeyDown"]]]]],["b2b-input-group_2.cjs",[[1,"b2b-input-list",{"label":[1],"required":[516],"placeholder":[513],"optionsList":[16],"value":[1537],"hasOptionList":[32],"isElementFocused":[32]},[[0,"keydown","handleKeyDown"]]],[1,"b2b-input-group",{"invalid":[4],"disabled":[4],"error":[1],"hint":[1]}]]],["b2b-separator.cjs",[[1,"b2b-separator",{"alignment":[1]}]]],["b2b-icon.cjs",[[1,"b2b-icon",{"icon":[1],"color":[1],"size":[1],"pathData":[32]}]]],["b2b-button_2.cjs",[[1,"b2b-button",{"variant":[1],"type":[1],"size":[1],"disabled":[516],"loading":[4],"active":[516],"href":[1],"target":[1],"download":[1],"setFocus":[64]},[[2,"click","handleHostClick"]]],[1,"b2b-spinner",{"size":[1],"color":[1]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["b2b-search.cjs",[[1,"b2b-search",{"placeholder":[1],"optionsList":[16],"value":[1537],"closed":[32]}]]],["b2b-modal.cjs",[[1,"b2b-modal",{"heading":[1],"opened":[1540],"backdropDismiss":[4,"backdrop-dismiss"],"escDismiss":[4,"esc-dismiss"],"variant":[1],"iconHover":[32],"isOpen":[32]},[[0,"keydown","handleKeypress"]]]]],["b2b-pagination.cjs",[[1,"b2b-pagination",{"totalPages":[2,"total-pages"],"activePage":[1538,"active-page"],"ariaLabelNextPage":[1,"aria-label-next-page"],"ariaLabelPreviousPage":[1,"aria-label-previous-page"]}]]],["b2b-alert.cjs",[[1,"b2b-alert",{"type":[1],"size":[1],"opened":[1028],"hasCloseButton":[4,"has-close-button"],"customIcon":[4,"custom-icon"]}]]],["b2b-checkbox.cjs",[[1,"b2b-checkbox",{"label":[1],"required":[516],"checked":[1540],"disabled":[516],"error":[1],"hint":[1],"name":[513],"value":[520],"invalid":[4]}]]],["b2b-checkbox-group.cjs",[[1,"b2b-checkbox-group",{"label":[1],"required":[4],"disabled":[4],"invalid":[4],"alignment":[1],"hint":[1],"error":[1]},[[0,"b2b-change","handleCheckboxChange"]]]]],["b2b-dropdown.cjs",[[1,"b2b-dropdown",{"label":[1],"required":[516],"name":[513],"disabled":[516],"invalid":[516],"hint":[1],"error":[1]}]]],["b2b-radio-button.cjs",[[1,"b2b-radio-button",{"label":[1],"required":[516],"name":[513],"checked":[1540],"disabled":[516],"invalid":[4],"value":[513],"hint":[1],"error":[1]}]]],["b2b-radio-group.cjs",[[1,"b2b-radio-group",{"name":[1],"label":[1],"required":[4],"alignment":[1],"disabled":[516],"invalid":[516],"hint":[1],"error":[1],"currentValue":[32]},[[0,"b2b-change","handleRadioButtonChange"]]]]],["b2b-required-separator.cjs",[[1,"b2b-required-separator",{"label":[1]}]]],["b2b-tab-group.cjs",[[1,"b2b-tab-group",{"useRouter":[4,"use-router"]},[[0,"click","handleClick"],[0,"keydown","handleKeydown"]]]]],["b2b-textarea.cjs",[[1,"b2b-textarea",{"label":[1],"required":[516],"placeholder":[513],"disabled":[516],"invalid":[516],"autofocus":[516],"resize":[513],"hint":[1],"error":[1],"value":[1537],"name":[513],"maxLength":[514,"max-length"]}]]],["b2b-anchor.cjs",[[1,"b2b-anchor",{"href":[1],"download":[1],"target":[1],"size":[1]}]]],["b2b-grid.cjs",[[1,"b2b-grid",{"margin":[2]}]]],["b2b-grid-col.cjs",[[1,"b2b-grid-col",{"span":[514],"textAlign":[1,"text-align"]}]]],["b2b-grid-row.cjs",[[1,"b2b-grid-row",{"columnGap":[2,"column-gap"],"rowGap":[2,"row-gap"],"alignItems":[1,"align-items"],"justify":[1]}]]],["b2b-label.cjs",[[1,"b2b-label",{"type":[1]}]]],["b2b-paragraph.cjs",[[1,"b2b-paragraph",{"weight":[1],"size":[1],"align":[1]}]]],["b2b-scrollable-container.cjs",[[1,"b2b-scrollable-container"]]],["b2b-tab.cjs",[[1,"b2b-tab",{"selected":[516],"disabled":[4],"invalid":[4]}]]],["b2b-tab-panel.cjs",[[1,"b2b-tab-panel"]]],["b2b-table.cjs",[[1,"b2b-table",{"size":[1]},[[0,"b2b-change","onColumnSelected"]]]]],["b2b-table-cell.cjs",[[1,"b2b-table-cell",{"textWrap":[516,"text-wrap"],"size":[1],"align":[1],"divider":[4],"color":[1],"useTextEllipsis":[32]}]]],["b2b-table-header.cjs",[[1,"b2b-table-header",{"divider":[4],"fixed":[4],"sortDirection":[1537,"sort-direction"],"sortId":[1,"sort-id"],"active":[32]}]]],["b2b-table-row.cjs",[[1,"b2b-table-row",{"highlight":[4],"color":[1]}]]],["b2b-table-rowgroup.cjs",[[1,"b2b-table-rowgroup",{"type":[1]}]]],["b2b-toggle-button.cjs",[[1,"b2b-toggle-button",{"label":[1],"name":[513],"checked":[1540],"disabled":[516],"value":[513]}]]],["b2b-toggle-group.cjs",[[1,"b2b-toggle-group",{"name":[1],"disabled":[516],"currentValue":[32]},[[0,"b2b-change","handleToggleButtonChange"]]]]],["b2b-tooltip.cjs",[[1,"b2b-tooltip",{"position":[1],"content":[1],"trigger":[1],"opened":[1540]}]]],["b2b-headline.cjs",[[1,"b2b-headline",{"size":[1],"align":[1],"noMargin":[4,"no-margin"]}]]],["b2b-input-label.cjs",[[1,"b2b-input-label",{"required":[4],"disabled":[4]}]]],["b2b-input_2.cjs",[[1,"b2b-input",{"label":[1],"required":[516],"type":[513],"disabled":[516],"invalid":[516],"placeholder":[513],"value":[1537],"name":[513],"hint":[1],"error":[1],"autofocus":[4],"hasFocus":[32],"hasTextPrefix":[32],"hasTextSuffix":[32],"setFocus":[64],"clearInput":[64]}],[0,"b2b-input-list-option",{"option":[1]},[[0,"keydown","handleKeyDown"]]]]],["b2b-input-group_2.cjs",[[1,"b2b-input-list",{"label":[1],"required":[516],"placeholder":[513],"optionsList":[16],"value":[1537],"hasOptionList":[32],"isElementFocused":[32]},[[0,"keydown","handleKeyDown"]]],[1,"b2b-input-group",{"invalid":[4],"disabled":[4],"error":[1],"hint":[1]}]]],["b2b-separator.cjs",[[1,"b2b-separator",{"alignment":[1]}]]],["b2b-icon.cjs",[[1,"b2b-icon",{"icon":[1],"color":[1],"size":[1],"pathData":[32]}]]],["b2b-button_2.cjs",[[1,"b2b-button",{"variant":[1],"type":[1],"size":[1],"disabled":[516],"loading":[4],"active":[516],"href":[1],"target":[1],"download":[1],"setFocus":[64]},[[2,"click","handleHostClick"]]],[1,"b2b-spinner",{"size":[1],"color":[1]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -58,6 +58,11 @@ export class InputComponent {
|
|
|
58
58
|
async setFocus() {
|
|
59
59
|
this.focusableElement.focus();
|
|
60
60
|
}
|
|
61
|
+
/** Simulate the native behavior of type="search" to emit an empty string when the input is cleared */
|
|
62
|
+
async clearInput() {
|
|
63
|
+
this.value = '';
|
|
64
|
+
this.b2bInput.emit({ value: '' });
|
|
65
|
+
}
|
|
61
66
|
connectedCallback() {
|
|
62
67
|
const form = this.hostElement.closest('form');
|
|
63
68
|
if (form != null) {
|
|
@@ -374,6 +379,22 @@ export class InputComponent {
|
|
|
374
379
|
"text": "Manually set focus to the element",
|
|
375
380
|
"tags": []
|
|
376
381
|
}
|
|
382
|
+
},
|
|
383
|
+
"clearInput": {
|
|
384
|
+
"complexType": {
|
|
385
|
+
"signature": "() => Promise<void>",
|
|
386
|
+
"parameters": [],
|
|
387
|
+
"references": {
|
|
388
|
+
"Promise": {
|
|
389
|
+
"location": "global"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"return": "Promise<void>"
|
|
393
|
+
},
|
|
394
|
+
"docs": {
|
|
395
|
+
"text": "Simulate the native behavior of type=\"search\" to emit an empty string when the input is cleared",
|
|
396
|
+
"tags": []
|
|
397
|
+
}
|
|
377
398
|
}
|
|
378
399
|
};
|
|
379
400
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -60,19 +60,22 @@ export class InputListComponent {
|
|
|
60
60
|
element.setAttribute('tabindex', '-1');
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
|
-
this.resetInput = (event) => {
|
|
63
|
+
this.resetInput = async (event) => {
|
|
64
|
+
const inputElement = this.hostElement.shadowRoot.querySelector('b2b-input');
|
|
64
65
|
if (event.type === 'keydown' && event.key === 'Enter') {
|
|
65
|
-
this.value = '';
|
|
66
66
|
/** Manually reset focus after blur to match mousedown behavior */
|
|
67
|
-
|
|
67
|
+
await inputElement.setFocus();
|
|
68
68
|
}
|
|
69
69
|
else if (event.type === 'mousedown') {
|
|
70
70
|
/** Manual blurring to prevent browser focus stack & component state mismatch */
|
|
71
71
|
event.preventDefault();
|
|
72
72
|
event.stopPropagation();
|
|
73
|
-
|
|
74
|
-
this.value = '';
|
|
73
|
+
await inputElement.setFocus();
|
|
75
74
|
}
|
|
75
|
+
this.value = '';
|
|
76
|
+
this.b2bClear.emit();
|
|
77
|
+
// Called to trigger an Input Event
|
|
78
|
+
await inputElement.clearInput();
|
|
76
79
|
return;
|
|
77
80
|
};
|
|
78
81
|
this.label = undefined;
|
|
@@ -253,6 +256,29 @@ export class InputListComponent {
|
|
|
253
256
|
"isElementFocused": {}
|
|
254
257
|
};
|
|
255
258
|
}
|
|
259
|
+
static get events() {
|
|
260
|
+
return [{
|
|
261
|
+
"method": "b2bClear",
|
|
262
|
+
"name": "b2b-clear",
|
|
263
|
+
"bubbles": true,
|
|
264
|
+
"cancelable": true,
|
|
265
|
+
"composed": true,
|
|
266
|
+
"docs": {
|
|
267
|
+
"tags": [],
|
|
268
|
+
"text": ""
|
|
269
|
+
},
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "InputClear",
|
|
272
|
+
"resolved": "InputClear<any>",
|
|
273
|
+
"references": {
|
|
274
|
+
"InputClear": {
|
|
275
|
+
"location": "import",
|
|
276
|
+
"path": "../../utils/interfaces/form.interface"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}];
|
|
281
|
+
}
|
|
256
282
|
static get elementRef() { return "hostElement"; }
|
|
257
283
|
static get watchers() {
|
|
258
284
|
return [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -218,4 +218,5 @@
|
|
|
218
218
|
overflow: auto;
|
|
219
219
|
display: block;
|
|
220
220
|
white-space: nowrap;
|
|
221
|
+
position: relative;
|
|
221
222
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Tue,
|
|
3
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on Tue,
|
|
126
|
+
* Generated on Tue, 16 May 2023 14:29:23 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -215,6 +215,7 @@
|
|
|
215
215
|
src: url("https://pattern-library.portal.otto.market/static/assets/fonts/obc-icons.woff");
|
|
216
216
|
}
|
|
217
217
|
:host {
|
|
218
|
+
--b2b-table-cell-text-expand-bg: var(--b2b-color-white-100);
|
|
218
219
|
display: table-cell;
|
|
219
220
|
padding: 12px;
|
|
220
221
|
margin: 0;
|
|
@@ -228,6 +229,16 @@
|
|
|
228
229
|
overflow: hidden;
|
|
229
230
|
text-overflow: ellipsis;
|
|
230
231
|
white-space: nowrap;
|
|
232
|
+
position: relative;
|
|
233
|
+
}
|
|
234
|
+
:host(.b2b-table-cell--expand-text) {
|
|
235
|
+
position: absolute;
|
|
236
|
+
white-space: normal;
|
|
237
|
+
background-color: var(--b2b-table-cell-text-expand-bg);
|
|
238
|
+
border: 1px solid var(--b2b-color-grey-200);
|
|
239
|
+
border-top: none;
|
|
240
|
+
z-index: 2000;
|
|
241
|
+
min-width: 100px;
|
|
231
242
|
}
|
|
232
243
|
:host(.b2b-table-cell--left) {
|
|
233
244
|
text-align: left;
|
|
@@ -2,18 +2,36 @@ import { h, Host } from '@stencil/core';
|
|
|
2
2
|
import { ContentAlignment, TableSizes } from '../types';
|
|
3
3
|
export class TableCellComponent {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.expandTextHoverWaitTime = 600;
|
|
6
|
+
this.addExpandStyles = () => {
|
|
7
|
+
this.expandTextHoverTimeoutId = setTimeout(() => {
|
|
8
|
+
const contentLength = this.host.innerText.length;
|
|
9
|
+
const children = this.host.children.length;
|
|
10
|
+
if (this.useTextEllipsis && contentLength > 25 && children === 0) {
|
|
11
|
+
this.host.style.width = `calc(${this.host.offsetWidth}px - 24px)`;
|
|
12
|
+
this.host.classList.add('b2b-table-cell--expand-text');
|
|
13
|
+
}
|
|
14
|
+
}, this.expandTextHoverWaitTime);
|
|
15
|
+
};
|
|
16
|
+
this.removeExpandStyles = () => {
|
|
17
|
+
this.expandTextHoverTimeoutId &&
|
|
18
|
+
clearTimeout(this.expandTextHoverTimeoutId);
|
|
19
|
+
this.host.classList.remove('b2b-table-cell--expand-text');
|
|
20
|
+
};
|
|
5
21
|
this.textWrap = true;
|
|
6
22
|
this.size = TableSizes.EXPAND;
|
|
7
23
|
this.align = ContentAlignment.LEFT;
|
|
8
24
|
this.divider = false;
|
|
9
25
|
this.color = 'default';
|
|
26
|
+
this.useTextEllipsis = false;
|
|
27
|
+
}
|
|
28
|
+
componentWillRender() {
|
|
29
|
+
this.useTextEllipsis = !this.textWrap && this.size === TableSizes.EQUAL;
|
|
10
30
|
}
|
|
11
31
|
render() {
|
|
12
|
-
|
|
13
|
-
const useTextEllipsis = !this.textWrap && this.size === TableSizes.EQUAL;
|
|
14
|
-
return (h(Host, { class: {
|
|
32
|
+
return (h(Host, { onMouseEnter: this.addExpandStyles, onMouseLeave: this.removeExpandStyles, class: {
|
|
15
33
|
'b2b-table-cell': true,
|
|
16
|
-
['b2b-table-cell--ellipsis']: useTextEllipsis,
|
|
34
|
+
['b2b-table-cell--ellipsis']: this.useTextEllipsis,
|
|
17
35
|
['b2b-table-cell--' + this.align]: true,
|
|
18
36
|
['b2b-table-cell--divider']: this.divider,
|
|
19
37
|
[`b2b-table-cell-color-${this.color}`]: true,
|
|
@@ -140,4 +158,10 @@ export class TableCellComponent {
|
|
|
140
158
|
}
|
|
141
159
|
};
|
|
142
160
|
}
|
|
161
|
+
static get states() {
|
|
162
|
+
return {
|
|
163
|
+
"useTextEllipsis": {}
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
static get elementRef() { return "host"; }
|
|
143
167
|
}
|