@siemens/ix 1.2.1 → 1.3.0-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/alignment-24ae2e63.js +1372 -0
- package/dist/cjs/{index-354a8c3d.js → index-17eb8998.js} +4 -3
- package/dist/cjs/index.cjs.js +5 -2
- package/dist/cjs/ix-animated-tab_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +1 -1
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ix-blind.cjs.entry.js +1 -1
- package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-button.cjs.entry.js +5 -3
- package/dist/cjs/ix-category-filter.cjs.entry.js +9 -9
- package/dist/cjs/ix-chip.cjs.entry.js +22 -9
- package/dist/cjs/ix-counter-pill.cjs.entry.js +2 -2
- package/dist/cjs/ix-date-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-date-time-card.cjs.entry.js +1 -1
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +1 -1
- package/dist/cjs/ix-drawer.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +40 -0
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +88 -42
- package/dist/cjs/ix-event-list_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-expanding-search.cjs.entry.js +3 -3
- package/dist/cjs/ix-filter-chip.cjs.entry.js +1 -1
- package/dist/cjs/ix-flip-tile_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-group-context-menu.cjs.entry.js +1 -1
- package/dist/cjs/ix-group_3.cjs.entry.js +1 -1
- package/dist/cjs/ix-icon-button.cjs.entry.js +3 -3
- package/dist/cjs/ix-icon.cjs.entry.js +1 -1
- package/dist/cjs/ix-input-group.cjs.entry.js +1 -1
- package/dist/cjs/ix-kpi.cjs.entry.js +1 -1
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js +5 -4
- package/dist/cjs/ix-menu_9.cjs.entry.js +14 -95
- package/dist/cjs/ix-message-bar.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal-example.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-pill.cjs.entry.js +6 -3
- package/dist/cjs/ix-select_2.cjs.entry.js +36 -15
- package/dist/cjs/ix-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ix-split-button_2.cjs.entry.js +7 -36
- package/dist/cjs/ix-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ix-tile.cjs.entry.js +1 -1
- package/dist/cjs/ix-toast_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-toggle.cjs.entry.js +1 -1
- package/dist/cjs/ix-tree_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-upload.cjs.entry.js +1 -1
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +72 -27
- package/dist/cjs/ix-workflow-step_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{modal-a5b22d3f.js → modal-dda2f6be.js} +9 -3
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/siemens-ix.cjs.js +2 -2
- package/dist/cjs/theme-switcher-6b45e082.js +92 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/button/button.js +4 -2
- package/dist/collection/components/category-filter/category-filter.css +4 -4
- package/dist/collection/components/category-filter/category-filter.js +7 -7
- package/dist/collection/components/chip/chip.css +20 -0
- package/dist/collection/components/chip/chip.js +22 -9
- package/dist/collection/components/counter-pill/counter-pill.css +10 -0
- package/dist/collection/components/dropdown/alignment.js +9 -0
- package/dist/collection/components/dropdown/dropdown.css +1 -0
- package/dist/collection/components/dropdown/dropdown.js +113 -50
- package/dist/collection/components/dropdown/placement.js +1 -0
- package/dist/collection/components/dropdown-button/dropdown-button.css +81 -0
- package/dist/collection/components/dropdown-button/dropdown-button.js +191 -0
- package/dist/collection/components/expanding-search/expanding-search.css +1 -0
- package/dist/collection/components/expanding-search/expanding-search.js +1 -1
- package/dist/collection/components/icon-button/icon-button.css +3 -30
- package/dist/collection/components/icon-button/icon-button.js +2 -2
- package/dist/collection/components/map-navigation/map-navigation.js +3 -2
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.css +9 -4
- package/dist/collection/components/menu/menu.css +1 -1
- package/dist/collection/components/menu/menu.js +6 -21
- package/dist/collection/components/menu-avatar/menu-avatar.js +4 -30
- package/dist/collection/components/modal/modal.css +1 -0
- package/dist/collection/components/modal/modal.js +7 -1
- package/dist/collection/components/pill/pill.css +10 -0
- package/dist/collection/components/pill/pill.js +4 -1
- package/dist/collection/components/select/select.css +0 -3
- package/dist/collection/components/select/select.js +13 -12
- package/dist/collection/components/select-item/events.js +16 -0
- package/dist/collection/components/select-item/select-item.js +23 -4
- package/dist/collection/components/split-button/split-button.js +7 -36
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/utils/theme-switcher.js +86 -0
- package/dist/collection/components/validation-tooltip/validation-tooltip.css +4 -24
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +75 -28
- package/dist/collection/exports.js +1 -0
- package/dist/components/alignment.js +1363 -0
- package/dist/components/button.js +5 -3
- package/dist/components/dropdown.js +88 -41
- package/dist/components/icon-button.js +3 -3
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -1
- package/dist/components/ix-category-filter.js +18 -12
- package/dist/components/ix-chip.js +21 -8
- package/dist/components/ix-counter-pill.js +1 -1
- package/dist/components/ix-dropdown-button.d.ts +11 -0
- package/dist/components/ix-dropdown-button.js +86 -0
- package/dist/components/ix-expanding-search.js +2 -2
- package/dist/components/ix-map-navigation.js +3 -2
- package/dist/components/ix-menu-avatar.js +6 -19
- package/dist/components/ix-menu.js +93 -46
- package/dist/components/ix-pill.js +5 -2
- package/dist/components/ix-select.js +9 -14
- package/dist/components/ix-split-button.js +6 -35
- package/dist/components/ix-validation-tooltip.js +74 -27
- package/dist/components/map-navigation-overlay.js +1 -1
- package/dist/components/modal.js +8 -2
- package/dist/components/select-item.js +27 -1
- package/dist/esm/alignment-f63c1b89.js +1363 -0
- package/dist/esm/{index-7746a810.js → index-6f4f3582.js} +5 -3
- package/dist/esm/index.js +3 -2
- package/dist/esm/ix-animated-tab_2.entry.js +1 -1
- package/dist/esm/ix-application-header.entry.js +1 -1
- package/dist/esm/ix-basic-navigation.entry.js +1 -1
- package/dist/esm/ix-blind.entry.js +1 -1
- package/dist/esm/ix-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ix-button.entry.js +5 -3
- package/dist/esm/ix-category-filter.entry.js +9 -9
- package/dist/esm/ix-chip.entry.js +22 -9
- package/dist/esm/ix-counter-pill.entry.js +2 -2
- package/dist/esm/ix-date-picker_2.entry.js +1 -1
- package/dist/esm/ix-date-time-card.entry.js +1 -1
- package/dist/esm/ix-datetime-picker.entry.js +1 -1
- package/dist/esm/ix-drawer.entry.js +1 -1
- package/dist/esm/ix-dropdown-button.entry.js +36 -0
- package/dist/esm/ix-dropdown_2.entry.js +88 -42
- package/dist/esm/ix-event-list_2.entry.js +1 -1
- package/dist/esm/ix-expanding-search.entry.js +3 -3
- package/dist/esm/ix-filter-chip.entry.js +1 -1
- package/dist/esm/ix-flip-tile_2.entry.js +1 -1
- package/dist/esm/ix-group-context-menu.entry.js +1 -1
- package/dist/esm/ix-group_3.entry.js +1 -1
- package/dist/esm/ix-icon-button.entry.js +3 -3
- package/dist/esm/ix-icon.entry.js +1 -1
- package/dist/esm/ix-input-group.entry.js +1 -1
- package/dist/esm/ix-kpi.entry.js +1 -1
- package/dist/esm/ix-map-navigation_2.entry.js +5 -4
- package/dist/esm/ix-menu_9.entry.js +14 -95
- package/dist/esm/ix-message-bar.entry.js +1 -1
- package/dist/esm/ix-modal-example.entry.js +1 -1
- package/dist/esm/ix-modal_2.entry.js +2 -2
- package/dist/esm/ix-pill.entry.js +6 -3
- package/dist/esm/ix-select_2.entry.js +36 -15
- package/dist/esm/ix-spinner.entry.js +1 -1
- package/dist/esm/ix-split-button_2.entry.js +7 -36
- package/dist/esm/ix-tab-item.entry.js +1 -1
- package/dist/esm/ix-tabs.entry.js +1 -1
- package/dist/esm/ix-tile.entry.js +1 -1
- package/dist/esm/ix-toast_2.entry.js +1 -1
- package/dist/esm/ix-toggle.entry.js +1 -1
- package/dist/esm/ix-tree_2.entry.js +1 -1
- package/dist/esm/ix-upload.entry.js +1 -1
- package/dist/esm/ix-validation-tooltip.entry.js +72 -27
- package/dist/esm/ix-workflow-step_2.entry.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{modal-9c9eaf8e.js → modal-df0a62f2.js} +9 -3
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/siemens-ix.js +2 -2
- package/dist/esm/theme-switcher-dce1aaec.js +89 -0
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/p-03d38416.entry.js +1 -0
- package/dist/siemens-ix/{p-5e4c3828.js → p-05c16b94.js} +2 -2
- package/dist/siemens-ix/p-0e357d27.entry.js +1 -0
- package/dist/siemens-ix/{p-963c5690.entry.js → p-150d7a02.entry.js} +1 -1
- package/dist/siemens-ix/p-18d02e6f.entry.js +1 -0
- package/dist/siemens-ix/{p-b2ecf415.entry.js → p-23d79e3d.entry.js} +1 -1
- package/dist/siemens-ix/{p-91eb1fdd.entry.js → p-2bc72119.entry.js} +1 -1
- package/dist/siemens-ix/p-2bd88760.entry.js +1 -0
- package/dist/siemens-ix/p-2c5abec1.js +1 -0
- package/dist/siemens-ix/{p-dfb5730f.entry.js → p-2e24ae23.entry.js} +1 -1
- package/dist/siemens-ix/{p-4d61503b.entry.js → p-33283dbf.entry.js} +1 -1
- package/dist/siemens-ix/p-35990ac7.js +1 -0
- package/dist/siemens-ix/{p-6e915c70.entry.js → p-3663f989.entry.js} +1 -1
- package/dist/siemens-ix/{p-2f3294b8.entry.js → p-418e2d14.entry.js} +1 -1
- package/dist/siemens-ix/p-43616759.entry.js +1 -0
- package/dist/siemens-ix/{p-03687070.entry.js → p-4b170382.entry.js} +1 -1
- package/dist/siemens-ix/p-4fcb5f2b.entry.js +1 -0
- package/dist/siemens-ix/p-5631ae88.entry.js +1 -0
- package/dist/siemens-ix/{p-5871e480.entry.js → p-5661957c.entry.js} +1 -1
- package/dist/siemens-ix/{p-56771b32.entry.js → p-592f1ed3.entry.js} +1 -1
- package/dist/siemens-ix/p-5bbe9943.entry.js +1 -0
- package/dist/siemens-ix/{p-05f3c48e.entry.js → p-65e61684.entry.js} +1 -1
- package/dist/siemens-ix/p-6fe3bb9c.entry.js +1 -0
- package/dist/siemens-ix/{p-5e3700c3.entry.js → p-72f851ae.entry.js} +1 -1
- package/dist/siemens-ix/{p-e5397173.entry.js → p-7f842cdc.entry.js} +1 -1
- package/dist/siemens-ix/{p-412dbb89.entry.js → p-8a7141a6.entry.js} +1 -1
- package/dist/siemens-ix/{p-10879145.entry.js → p-8b4e4718.entry.js} +1 -1
- package/dist/siemens-ix/{p-ded3a35d.entry.js → p-9b5290d4.entry.js} +1 -1
- package/dist/siemens-ix/{p-c885685e.entry.js → p-a5fa7ae5.entry.js} +1 -1
- package/dist/siemens-ix/{p-61cb7ab7.entry.js → p-a88618e3.entry.js} +1 -1
- package/dist/siemens-ix/p-ab7949ff.entry.js +1 -0
- package/dist/siemens-ix/{p-23578bb6.entry.js → p-b242bd39.entry.js} +1 -1
- package/dist/siemens-ix/p-b3d00feb.entry.js +1 -0
- package/dist/siemens-ix/p-be641020.entry.js +1 -0
- package/dist/siemens-ix/{p-19cc942a.entry.js → p-c3e90c06.entry.js} +1 -1
- package/dist/siemens-ix/{p-558623ce.entry.js → p-c993560f.entry.js} +1 -1
- package/dist/siemens-ix/{p-35d7f18d.entry.js → p-cc0f6f6b.entry.js} +1 -1
- package/dist/siemens-ix/{p-f24f1eb7.entry.js → p-d0bb8225.entry.js} +1 -1
- package/dist/siemens-ix/p-d20119c1.entry.js +1 -0
- package/dist/siemens-ix/p-dec6114f.js +1 -0
- package/dist/siemens-ix/{p-91ecd6ac.entry.js → p-e2925222.entry.js} +1 -1
- package/dist/siemens-ix/{p-1ba8c910.entry.js → p-e7621b0a.entry.js} +1 -1
- package/dist/siemens-ix/{p-494512c0.entry.js → p-ea333007.entry.js} +1 -1
- package/dist/siemens-ix/{p-8f6809f1.entry.js → p-eb150313.entry.js} +1 -1
- package/dist/siemens-ix/{p-b0c95c22.entry.js → p-eed28e55.entry.js} +1 -1
- package/dist/siemens-ix/p-f35ce089.entry.js +1 -0
- package/dist/siemens-ix/{p-2995294d.entry.js → p-f7be9635.entry.js} +1 -1
- package/dist/siemens-ix/{p-712e8945.entry.js → p-fecf0ade.entry.js} +1 -1
- package/dist/siemens-ix/siemens-ix.css +25 -3
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/types/components/category-filter/category-filter.d.ts +1 -0
- package/dist/types/components/chip/chip.d.ts +2 -1
- package/dist/types/components/dropdown/alignment.d.ts +2 -0
- package/dist/types/components/dropdown/dropdown.d.ts +19 -6
- package/dist/types/components/dropdown/placement.d.ts +8 -0
- package/dist/types/components/dropdown-button/dropdown-button.d.ts +37 -0
- package/dist/types/components/menu/menu.d.ts +0 -2
- package/dist/types/components/menu-avatar/menu-avatar.d.ts +1 -5
- package/dist/types/components/modal/modal.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +2 -1
- package/dist/types/components/select-item/events.d.ts +9 -0
- package/dist/types/components/select-item/select-item.d.ts +3 -2
- package/dist/types/components/split-button/split-button.d.ts +4 -6
- package/dist/types/components/tree/tree.d.ts +1 -1
- package/dist/types/components/utils/theme-switcher.d.ts +19 -0
- package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +12 -4
- package/dist/types/components.d.ts +86 -15
- package/dist/types/exports.d.ts +1 -0
- package/package.json +5 -6
- package/scss/components/_buttons.scss +23 -0
- package/scss/components/_dropdown.scss +2 -0
- package/dist/cjs/popper-d7a0f999.js +0 -1801
- package/dist/collection/components/utils/popover.util.js +0 -33
- package/dist/collection/components/utils/toggle-theme.js +0 -24
- package/dist/components/popover.util.js +0 -36
- package/dist/components/popper.js +0 -1799
- package/dist/esm/popper-42db9fbd.js +0 -1799
- package/dist/siemens-ix/p-080c00b1.entry.js +0 -1
- package/dist/siemens-ix/p-263949b1.js +0 -1
- package/dist/siemens-ix/p-2709fafd.entry.js +0 -1
- package/dist/siemens-ix/p-2b69b027.entry.js +0 -1
- package/dist/siemens-ix/p-6da1e24d.entry.js +0 -1
- package/dist/siemens-ix/p-7b103473.entry.js +0 -1
- package/dist/siemens-ix/p-80d27c08.entry.js +0 -1
- package/dist/siemens-ix/p-842a7652.entry.js +0 -1
- package/dist/siemens-ix/p-9a98369e.entry.js +0 -1
- package/dist/siemens-ix/p-af8213cc.entry.js +0 -1
- package/dist/siemens-ix/p-aff5f463.entry.js +0 -1
- package/dist/siemens-ix/p-bf387a1f.entry.js +0 -1
- package/dist/siemens-ix/p-f3996fc1.entry.js +0 -1
- package/dist/siemens-ix/p-f86fcdf4.js +0 -1
- package/dist/siemens-ix/p-fe28a2be.entry.js +0 -1
- package/dist/types/components/utils/popover.util.d.ts +0 -9
- package/dist/types/components/utils/toggle-theme.d.ts +0 -1
- package/src/components/animated-tab/readme.md +0 -24
- package/src/components/animated-tabs/readme.md +0 -31
- package/src/components/application-header/readme.md +0 -21
- package/src/components/basic-navigation/readme.md +0 -22
- package/src/components/blind/readme.md +0 -29
- package/src/components/breadcrumb/readme.md +0 -33
- package/src/components/breadcrumb-item/readme.md +0 -22
- package/src/components/button/readme.md +0 -27
- package/src/components/category-filter/readme.md +0 -39
- package/src/components/chip/readme.md +0 -36
- package/src/components/counter-pill/readme.md +0 -25
- package/src/components/date-picker/readme.md +0 -53
- package/src/components/date-time-card/readme.md +0 -22
- package/src/components/datetime-picker/readme.md +0 -45
- package/src/components/drawer/readme.md +0 -47
- package/src/components/dropdown/readme.md +0 -49
- package/src/components/dropdown-item/readme.md +0 -45
- package/src/components/event-list/readme.md +0 -24
- package/src/components/event-list-item/readme.md +0 -32
- package/src/components/expanding-search/readme.md +0 -32
- package/src/components/filter-chip/readme.md +0 -30
- package/src/components/flip-tile/readme.md +0 -22
- package/src/components/flip-tile-content/readme.md +0 -14
- package/src/components/group/readme.md +0 -14
- package/src/components/group-dropdown-item/readme.md +0 -22
- package/src/components/group-item/readme.md +0 -34
- package/src/components/icon/readme.md +0 -23
- package/src/components/icon-button/readme.md +0 -31
- package/src/components/input-group/readme.md +0 -14
- package/src/components/kpi/readme.md +0 -27
- package/src/components/map-navigation/readme.md +0 -54
- package/src/components/map-navigation-overlay/readme.md +0 -30
- package/src/components/menu/readme.md +0 -86
- package/src/components/menu-about/readme.md +0 -30
- package/src/components/menu-about-item/readme.md +0 -21
- package/src/components/menu-about-news/readme.md +0 -34
- package/src/components/menu-avatar/readme.md +0 -30
- package/src/components/menu-avatar-item/readme.md +0 -29
- package/src/components/menu-item/readme.md +0 -26
- package/src/components/menu-settings/readme.md +0 -30
- package/src/components/menu-settings-item/readme.md +0 -21
- package/src/components/message-bar/readme.md +0 -31
- package/src/components/modal/readme.md +0 -67
- package/src/components/modal-container/readme.md +0 -29
- package/src/components/my-component/readme.md +0 -16
- package/src/components/pill/readme.md +0 -26
- package/src/components/select/readme.md +0 -37
- package/src/components/select-item/readme.md +0 -44
- package/src/components/spinner/readme.md +0 -22
- package/src/components/split-button/readme.md +0 -36
- package/src/components/split-button-item/readme.md +0 -29
- package/src/components/tab-item/readme.md +0 -28
- package/src/components/tabs/readme.md +0 -25
- package/src/components/tile/readme.md +0 -21
- package/src/components/time-picker/readme.md +0 -51
- package/src/components/toast/readme.md +0 -36
- package/src/components/toggle/readme.md +0 -35
- package/src/components/tree/readme.md +0 -32
- package/src/components/tree-item/readme.md +0 -31
- package/src/components/upload/readme.md +0 -51
- package/src/components/validation-tooltip/readme.md +0 -31
- package/src/components/workflow-step/readme.md +0 -28
- package/src/components/workflow-steps/readme.md +0 -33
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
*/
|
|
37
37
|
:host {
|
|
38
38
|
display: inline-flex;
|
|
39
|
+
width: -moz-fit-content;
|
|
40
|
+
width: fit-content;
|
|
39
41
|
position: relative;
|
|
40
42
|
align-items: center;
|
|
41
43
|
border-radius: 100px;
|
|
@@ -48,6 +50,10 @@
|
|
|
48
50
|
:host .with-icon {
|
|
49
51
|
margin-right: 0.25rem;
|
|
50
52
|
}
|
|
53
|
+
:host .hidden {
|
|
54
|
+
width: 0px;
|
|
55
|
+
margin-right: 0px;
|
|
56
|
+
}
|
|
51
57
|
:host .close-button-container {
|
|
52
58
|
display: inline-flex;
|
|
53
59
|
flex-grow: 1;
|
|
@@ -468,8 +474,22 @@
|
|
|
468
474
|
outline: 1px solid #199fff;
|
|
469
475
|
outline-offset: var(--theme-btn--focus--outline-offset);
|
|
470
476
|
}
|
|
477
|
+
:host[variant=custom].outline {
|
|
478
|
+
border: solid 1px transparent;
|
|
479
|
+
background-color: transparent;
|
|
480
|
+
}
|
|
481
|
+
:host[variant=custom].outline:hover {
|
|
482
|
+
background-color: rgba(0, 0, 0, var(--theme-l-hover));
|
|
483
|
+
}
|
|
484
|
+
:host[variant=custom].outline:active {
|
|
485
|
+
background-color: rgba(0, 0, 0, var(--theme-l-active));
|
|
486
|
+
}
|
|
471
487
|
:host .slot-container {
|
|
472
488
|
overflow: hidden;
|
|
473
489
|
text-overflow: ellipsis;
|
|
474
490
|
white-space: nowrap;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
:host(.inactive) {
|
|
494
|
+
pointer-events: none;
|
|
475
495
|
}
|
|
@@ -10,7 +10,7 @@ import { h, Host, } from '@stencil/core';
|
|
|
10
10
|
export class Chip {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.variant = 'primary';
|
|
13
|
-
this.active =
|
|
13
|
+
this.active = true;
|
|
14
14
|
this.closable = false;
|
|
15
15
|
this.icon = undefined;
|
|
16
16
|
this.background = undefined;
|
|
@@ -21,14 +21,27 @@ export class Chip {
|
|
|
21
21
|
return (h("div", { class: "close-button-container" }, h("button", { type: "button", class: "btn btn-invisible-secondary btn-icon btn-oval close-button", onClick: (event) => this.close.emit(event) }, this.variant === 'custom' ? (h("i", { class: "glyph glyph-16 glyph-close-small", style: { color: this.color } })) : (h("ix-icon", { name: 'close-small', size: '16' })))));
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
+
const isInactive = this.active === false;
|
|
25
|
+
let customStyle = {};
|
|
26
|
+
if (this.variant === 'custom' && this.outline === false) {
|
|
27
|
+
customStyle = {
|
|
28
|
+
color: this.color,
|
|
29
|
+
backgroundColor: this.background,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
if (this.variant === 'custom' && this.outline === true) {
|
|
33
|
+
customStyle = {
|
|
34
|
+
color: this.color,
|
|
35
|
+
borderColor: this.background,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
24
38
|
return (h(Host, { class: {
|
|
25
39
|
outline: this.outline,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
: {} }, this.icon ? (h("ix-icon", { class: 'with-icon', name: this.icon, size: '24' })) : null, h("span", { class: "slot-container" }, h("slot", null)), this.closable ? this.getCloseButton() : null));
|
|
40
|
+
inactive: isInactive,
|
|
41
|
+
}, tabIndex: "-1", title: this.el.textContent, style: Object.assign({}, customStyle) }, h("ix-icon", { class: {
|
|
42
|
+
'with-icon': true,
|
|
43
|
+
hidden: this.icon === undefined || this.icon === '',
|
|
44
|
+
}, name: this.icon, size: '24' }), h("span", { class: "slot-container" }, h("slot", null)), isInactive === false && this.closable ? this.getCloseButton() : null));
|
|
32
45
|
}
|
|
33
46
|
static get is() { return "ix-chip"; }
|
|
34
47
|
static get encapsulation() { return "scoped"; }
|
|
@@ -74,11 +87,11 @@ export class Chip {
|
|
|
74
87
|
"optional": false,
|
|
75
88
|
"docs": {
|
|
76
89
|
"tags": [],
|
|
77
|
-
"text": "
|
|
90
|
+
"text": "Determines if the chip is interactive. If false no user input (e.g. mouse states, keyboard navigation)\nwill be possible and also the close button will not be present."
|
|
78
91
|
},
|
|
79
92
|
"attribute": "active",
|
|
80
93
|
"reflect": false,
|
|
81
|
-
"defaultValue": "
|
|
94
|
+
"defaultValue": "true"
|
|
82
95
|
},
|
|
83
96
|
"closable": {
|
|
84
97
|
"type": "boolean",
|
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
*/
|
|
45
45
|
:host {
|
|
46
46
|
display: inline-flex;
|
|
47
|
+
width: -moz-fit-content;
|
|
48
|
+
width: fit-content;
|
|
47
49
|
position: relative;
|
|
48
50
|
align-items: center;
|
|
49
51
|
justify-content: center;
|
|
@@ -270,11 +272,19 @@
|
|
|
270
272
|
:host[variant=success].outline.active, :host[variant=success].outline:active {
|
|
271
273
|
background-color: var(--theme-chip-outline--background--active);
|
|
272
274
|
}
|
|
275
|
+
:host[variant=custom].outline {
|
|
276
|
+
border: solid 1px transparent;
|
|
277
|
+
background-color: transparent;
|
|
278
|
+
}
|
|
273
279
|
:host .slot {
|
|
274
280
|
overflow: hidden;
|
|
275
281
|
text-overflow: ellipsis;
|
|
276
282
|
white-space: nowrap;
|
|
277
283
|
}
|
|
284
|
+
:host .hidden {
|
|
285
|
+
width: 0px;
|
|
286
|
+
margin-right: 0px;
|
|
287
|
+
}
|
|
278
288
|
|
|
279
289
|
/*
|
|
280
290
|
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
@@ -6,67 +6,65 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { autoPlacement, autoUpdate, computePosition, inline, offset, shift, } from '@floating-ui/dom';
|
|
10
10
|
import { h, Host, } from '@stencil/core';
|
|
11
|
+
import { getAlignment } from './alignment';
|
|
11
12
|
export class Dropdown {
|
|
12
13
|
constructor() {
|
|
14
|
+
this.autoUpdateCleanup = null;
|
|
13
15
|
this.show = false;
|
|
14
16
|
this.trigger = undefined;
|
|
15
17
|
this.anchor = undefined;
|
|
16
18
|
this.closeBehavior = 'both';
|
|
17
|
-
this.placement = 'bottom-
|
|
19
|
+
this.placement = 'bottom-start';
|
|
18
20
|
this.positioningStrategy = 'fixed';
|
|
19
21
|
this.adjustDropdownWidthToReferenceWith = false;
|
|
20
22
|
this.adjustDropdownWidthToReferenceWidth = false;
|
|
21
23
|
this.header = undefined;
|
|
24
|
+
this.offset = undefined;
|
|
22
25
|
this.openBind = this.open.bind(this);
|
|
23
26
|
}
|
|
24
27
|
get dropdownItems() {
|
|
25
28
|
return Array.from(this.hostElement.querySelectorAll('ix-dropdown-item'));
|
|
26
29
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
async registerListener(element) {
|
|
31
|
+
this.triggerElement = await this.resolveElement(element);
|
|
32
|
+
if (this.triggerElement) {
|
|
33
|
+
this.triggerElement.addEventListener('click', this.openBind);
|
|
30
34
|
}
|
|
31
|
-
return prop;
|
|
32
35
|
}
|
|
33
|
-
async
|
|
34
|
-
|
|
35
|
-
this.registerListener(this.trigger);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
registerListener(element) {
|
|
39
|
-
this.triggerElement = this.resolveElement(element);
|
|
40
|
-
this.triggerElement.addEventListener('click', this.openBind);
|
|
41
|
-
}
|
|
42
|
-
unregisterListener(element) {
|
|
43
|
-
const trigger = this.resolveElement(element);
|
|
36
|
+
async unregisterListener(element) {
|
|
37
|
+
const trigger = await this.resolveElement(element);
|
|
44
38
|
trigger.removeEventListener('click', this.openBind);
|
|
45
39
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
resolveElement(element) {
|
|
41
|
+
if (typeof element !== 'string') {
|
|
42
|
+
return Promise.resolve(element);
|
|
43
|
+
}
|
|
44
|
+
const selector = `#${element}`;
|
|
45
|
+
return new Promise((resolve) => {
|
|
46
|
+
if (document.querySelector(selector)) {
|
|
47
|
+
return resolve(document.querySelector(selector));
|
|
48
|
+
}
|
|
49
|
+
const observer = new MutationObserver(() => {
|
|
50
|
+
if (document.querySelector(selector)) {
|
|
51
|
+
resolve(document.querySelector(selector));
|
|
52
|
+
observer.disconnect();
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
observer.observe(document.body, {
|
|
56
|
+
childList: true,
|
|
57
|
+
subtree: true,
|
|
58
|
+
});
|
|
59
|
+
});
|
|
49
60
|
}
|
|
50
61
|
async changedShow(newShow) {
|
|
51
|
-
var _a;
|
|
52
62
|
if (newShow) {
|
|
53
|
-
this.anchorElement = this.anchor
|
|
63
|
+
this.anchorElement = await (this.anchor
|
|
54
64
|
? this.resolveElement(this.anchor)
|
|
55
|
-
: this.resolveElement(this.trigger);
|
|
65
|
+
: this.resolveElement(this.trigger));
|
|
56
66
|
if (this.anchorElement) {
|
|
57
|
-
|
|
58
|
-
this.popperInstance = createPopper(this.anchorElement, this.dropdownRef, {
|
|
59
|
-
placement: this.placement,
|
|
60
|
-
strategy: this.positioningStrategy,
|
|
61
|
-
onFirstUpdate: ({ elements }) => {
|
|
62
|
-
if (this.adjustDropdownWidthToReferenceWith ||
|
|
63
|
-
this.adjustDropdownWidthToReferenceWidth) {
|
|
64
|
-
const { popper, reference } = elements;
|
|
65
|
-
const width = reference.getBoundingClientRect().width;
|
|
66
|
-
popper.style.width = `${width}px`;
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
});
|
|
67
|
+
this.applyDropdownPosition();
|
|
70
68
|
}
|
|
71
69
|
}
|
|
72
70
|
}
|
|
@@ -111,16 +109,64 @@ export class Dropdown {
|
|
|
111
109
|
this.show = false;
|
|
112
110
|
this.showChanged.emit(this.show);
|
|
113
111
|
}
|
|
112
|
+
async applyDropdownPosition() {
|
|
113
|
+
if (this.anchorElement && this.dropdownRef) {
|
|
114
|
+
let positionConfig = {
|
|
115
|
+
strategy: this.positioningStrategy,
|
|
116
|
+
middleware: [],
|
|
117
|
+
};
|
|
118
|
+
if (this.placement.includes('auto')) {
|
|
119
|
+
positionConfig.middleware.push(autoPlacement({
|
|
120
|
+
alignment: getAlignment(this.placement),
|
|
121
|
+
}));
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
positionConfig.placement = this.placement;
|
|
125
|
+
}
|
|
126
|
+
positionConfig.middleware = [
|
|
127
|
+
...positionConfig.middleware,
|
|
128
|
+
inline(),
|
|
129
|
+
shift(),
|
|
130
|
+
];
|
|
131
|
+
if (this.offset) {
|
|
132
|
+
positionConfig.middleware.push(offset(this.offset));
|
|
133
|
+
}
|
|
134
|
+
if (this.autoUpdateCleanup) {
|
|
135
|
+
this.autoUpdateCleanup();
|
|
136
|
+
this.autoUpdateCleanup = null;
|
|
137
|
+
}
|
|
138
|
+
this.autoUpdateCleanup = autoUpdate(this.anchorElement, this.dropdownRef, async () => {
|
|
139
|
+
const computeResponse = await computePosition(this.anchorElement, this.dropdownRef, positionConfig);
|
|
140
|
+
Object.assign(this.dropdownRef.style, {
|
|
141
|
+
top: '0',
|
|
142
|
+
left: '0',
|
|
143
|
+
transform: `translate(${Math.round(computeResponse.x)}px,${Math.round(computeResponse.y)}px)`,
|
|
144
|
+
});
|
|
145
|
+
}, {
|
|
146
|
+
ancestorResize: true,
|
|
147
|
+
ancestorScroll: true,
|
|
148
|
+
elementResize: true,
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
async componentDidLoad() {
|
|
153
|
+
if (this.trigger) {
|
|
154
|
+
this.registerListener(this.trigger);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
async componentDidRender() {
|
|
158
|
+
await this.applyDropdownPosition();
|
|
159
|
+
}
|
|
114
160
|
disconnectedCallback() {
|
|
115
|
-
|
|
116
|
-
|
|
161
|
+
if (this.autoUpdateCleanup) {
|
|
162
|
+
this.autoUpdateCleanup();
|
|
163
|
+
}
|
|
117
164
|
}
|
|
118
165
|
/**
|
|
119
166
|
* Update position of dropdown
|
|
120
167
|
*/
|
|
121
168
|
async updatePosition() {
|
|
122
|
-
|
|
123
|
-
await ((_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.update());
|
|
169
|
+
this.applyDropdownPosition();
|
|
124
170
|
}
|
|
125
171
|
render() {
|
|
126
172
|
return (h(Host, { ref: (ref) => (this.dropdownRef = ref), class: {
|
|
@@ -129,6 +175,7 @@ export class Dropdown {
|
|
|
129
175
|
}, style: {
|
|
130
176
|
margin: '0',
|
|
131
177
|
minWidth: '0px',
|
|
178
|
+
position: this.positioningStrategy,
|
|
132
179
|
} }, h("div", { style: { display: 'contents' } }, this.header ? h("div", { class: "dropdown-header" }, this.header) : '', h("slot", null))));
|
|
133
180
|
}
|
|
134
181
|
static get is() { return "ix-dropdown"; }
|
|
@@ -232,7 +279,7 @@ export class Dropdown {
|
|
|
232
279
|
"references": {
|
|
233
280
|
"Placement": {
|
|
234
281
|
"location": "import",
|
|
235
|
-
"path": "
|
|
282
|
+
"path": "./placement"
|
|
236
283
|
}
|
|
237
284
|
}
|
|
238
285
|
},
|
|
@@ -244,20 +291,15 @@ export class Dropdown {
|
|
|
244
291
|
},
|
|
245
292
|
"attribute": "placement",
|
|
246
293
|
"reflect": false,
|
|
247
|
-
"defaultValue": "'bottom-
|
|
294
|
+
"defaultValue": "'bottom-start'"
|
|
248
295
|
},
|
|
249
296
|
"positioningStrategy": {
|
|
250
297
|
"type": "string",
|
|
251
298
|
"mutable": false,
|
|
252
299
|
"complexType": {
|
|
253
|
-
"original": "
|
|
300
|
+
"original": "'absolute' | 'fixed'",
|
|
254
301
|
"resolved": "\"absolute\" | \"fixed\"",
|
|
255
|
-
"references": {
|
|
256
|
-
"PositioningStrategy": {
|
|
257
|
-
"location": "import",
|
|
258
|
-
"path": "@popperjs/core"
|
|
259
|
-
}
|
|
260
|
-
}
|
|
302
|
+
"references": {}
|
|
261
303
|
},
|
|
262
304
|
"required": false,
|
|
263
305
|
"optional": false,
|
|
@@ -301,7 +343,10 @@ export class Dropdown {
|
|
|
301
343
|
"required": false,
|
|
302
344
|
"optional": false,
|
|
303
345
|
"docs": {
|
|
304
|
-
"tags": [
|
|
346
|
+
"tags": [{
|
|
347
|
+
"name": "deprecated",
|
|
348
|
+
"text": "Will be removed. Not used anymore"
|
|
349
|
+
}],
|
|
305
350
|
"text": "Adjust dropdown width to the parent width"
|
|
306
351
|
},
|
|
307
352
|
"attribute": "adjust-dropdown-width-to-reference-width",
|
|
@@ -324,6 +369,24 @@ export class Dropdown {
|
|
|
324
369
|
},
|
|
325
370
|
"attribute": "header",
|
|
326
371
|
"reflect": false
|
|
372
|
+
},
|
|
373
|
+
"offset": {
|
|
374
|
+
"type": "unknown",
|
|
375
|
+
"mutable": false,
|
|
376
|
+
"complexType": {
|
|
377
|
+
"original": "{\n mainAxis?: number;\n crossAxis?: number;\n alignmentAxis?: number;\n }",
|
|
378
|
+
"resolved": "{ mainAxis?: number; crossAxis?: number; alignmentAxis?: number; }",
|
|
379
|
+
"references": {}
|
|
380
|
+
},
|
|
381
|
+
"required": false,
|
|
382
|
+
"optional": false,
|
|
383
|
+
"docs": {
|
|
384
|
+
"tags": [{
|
|
385
|
+
"name": "internal",
|
|
386
|
+
"text": undefined
|
|
387
|
+
}],
|
|
388
|
+
"text": "Move dropdown along main axis of alignment"
|
|
389
|
+
}
|
|
327
390
|
}
|
|
328
391
|
};
|
|
329
392
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
11
|
+
*
|
|
12
|
+
* SPDX-License-Identifier: MIT
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the MIT license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/
|
|
17
|
+
/* Dimensions */
|
|
18
|
+
/* Font sizes */
|
|
19
|
+
/* Line heights */
|
|
20
|
+
/* Animation timings */
|
|
21
|
+
:host {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
position: relative;
|
|
24
|
+
height: 2rem;
|
|
25
|
+
}
|
|
26
|
+
:host .dropdown-button {
|
|
27
|
+
position: relative;
|
|
28
|
+
}
|
|
29
|
+
:host .hide {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
:host .triangle {
|
|
33
|
+
position: absolute;
|
|
34
|
+
-webkit-margin-start: 1.5625rem;
|
|
35
|
+
margin-inline-start: 1.5625rem;
|
|
36
|
+
-webkit-margin-before: -0.4375rem;
|
|
37
|
+
margin-block-start: -0.4375rem;
|
|
38
|
+
border-right: 0 solid transparent;
|
|
39
|
+
border-left: 4px solid transparent;
|
|
40
|
+
border-top: 0 solid transparent;
|
|
41
|
+
border-bottom: 4px solid;
|
|
42
|
+
color: var(--theme-btn-primary--color);
|
|
43
|
+
}
|
|
44
|
+
:host .triangle.primary.ghost {
|
|
45
|
+
color: var(--theme-btn-invisible-primary--color);
|
|
46
|
+
}
|
|
47
|
+
:host .triangle.primary.outline {
|
|
48
|
+
color: var(--theme-btn-outline-primary--color);
|
|
49
|
+
}
|
|
50
|
+
:host .triangle.primary.ghost.disabled {
|
|
51
|
+
color: var(--theme-btn-invisible-primary--color--disabled);
|
|
52
|
+
}
|
|
53
|
+
:host .triangle.primary.outline.disabled {
|
|
54
|
+
color: var(--theme-btn-outline-primary--color--disabled);
|
|
55
|
+
}
|
|
56
|
+
:host .triangle.primary.disabled {
|
|
57
|
+
color: var(--theme-btn-primary--color--disabled);
|
|
58
|
+
}
|
|
59
|
+
:host .triangle.secondary.ghost {
|
|
60
|
+
color: var(--theme-btn-invisible-secondary--color);
|
|
61
|
+
}
|
|
62
|
+
:host .triangle.secondary.outline {
|
|
63
|
+
color: var(--theme-btn-outline-secondary--color);
|
|
64
|
+
}
|
|
65
|
+
:host .triangle.secondary.ghost.disabled {
|
|
66
|
+
color: var(--theme-btn-invisible-secondary--color--disabled);
|
|
67
|
+
}
|
|
68
|
+
:host .triangle.secondary.outline.disabled {
|
|
69
|
+
color: var(--theme-btn-outline-secondary--color--disabled);
|
|
70
|
+
}
|
|
71
|
+
:host .triangle.secondary.disabled {
|
|
72
|
+
color: var(--theme-btn-secondary--color--disabled);
|
|
73
|
+
}
|
|
74
|
+
:host .hide {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
:host .dropdown {
|
|
78
|
+
width: auto !important;
|
|
79
|
+
inset: auto !important;
|
|
80
|
+
transform: unset !important;
|
|
81
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import { h, Host } from '@stencil/core';
|
|
10
|
+
/**
|
|
11
|
+
* @since 1.3.0
|
|
12
|
+
*/
|
|
13
|
+
export class DropdownButton {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.variant = 'Primary';
|
|
16
|
+
this.outline = false;
|
|
17
|
+
this.ghost = false;
|
|
18
|
+
this.active = false;
|
|
19
|
+
this.disabled = false;
|
|
20
|
+
this.label = '';
|
|
21
|
+
this.icon = undefined;
|
|
22
|
+
this.dropdownAnchor = undefined;
|
|
23
|
+
}
|
|
24
|
+
getTriangle() {
|
|
25
|
+
return (h("div", { class: {
|
|
26
|
+
triangle: true,
|
|
27
|
+
hide: this.label !== '',
|
|
28
|
+
primary: this.variant === 'Primary',
|
|
29
|
+
secondary: this.variant === 'Secondary',
|
|
30
|
+
ghost: this.ghost,
|
|
31
|
+
outline: this.outline,
|
|
32
|
+
disabled: this.disabled,
|
|
33
|
+
} }));
|
|
34
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
return (h(Host, null, h("div", { class: "dropdown-button", ref: (ref) => {
|
|
37
|
+
this.dropdownAnchor = ref;
|
|
38
|
+
} }, h("ix-button", { variant: this.variant, outline: this.outline, ghost: this.ghost, disabled: this.disabled, class: { hide: this.label === '' } }, h("ix-icon", { name: this.icon, size: "24", class: { hide: this.icon === '' || this.icon === undefined } }), this.label, h("ix-icon", { name: "chevron-down-small", size: "24" })), h("ix-icon-button", { icon: this.icon, variant: this.variant, outline: this.outline, ghost: this.ghost, disabled: this.disabled, class: { hide: this.label !== '' } }), this.getTriangle()), h("ix-dropdown", { class: "dropdown", trigger: this.dropdownAnchor, placement: "bottom", positioningStrategy: 'fixed', adjustDropdownWidthToReferenceWidth: true }, h("slot", null))));
|
|
39
|
+
}
|
|
40
|
+
static get is() { return "ix-dropdown-button"; }
|
|
41
|
+
static get encapsulation() { return "scoped"; }
|
|
42
|
+
static get originalStyleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["dropdown-button.scss"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get styleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["dropdown-button.css"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get properties() {
|
|
53
|
+
return {
|
|
54
|
+
"variant": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "Buttons",
|
|
59
|
+
"resolved": "\"Primary\" | \"Secondary\"",
|
|
60
|
+
"references": {
|
|
61
|
+
"Buttons": {
|
|
62
|
+
"location": "import",
|
|
63
|
+
"path": "../utils/button-variants"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": "Button varaint"
|
|
72
|
+
},
|
|
73
|
+
"attribute": "variant",
|
|
74
|
+
"reflect": false,
|
|
75
|
+
"defaultValue": "'Primary'"
|
|
76
|
+
},
|
|
77
|
+
"outline": {
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"mutable": false,
|
|
80
|
+
"complexType": {
|
|
81
|
+
"original": "boolean",
|
|
82
|
+
"resolved": "boolean",
|
|
83
|
+
"references": {}
|
|
84
|
+
},
|
|
85
|
+
"required": false,
|
|
86
|
+
"optional": false,
|
|
87
|
+
"docs": {
|
|
88
|
+
"tags": [],
|
|
89
|
+
"text": "Outline button"
|
|
90
|
+
},
|
|
91
|
+
"attribute": "outline",
|
|
92
|
+
"reflect": false,
|
|
93
|
+
"defaultValue": "false"
|
|
94
|
+
},
|
|
95
|
+
"ghost": {
|
|
96
|
+
"type": "boolean",
|
|
97
|
+
"mutable": false,
|
|
98
|
+
"complexType": {
|
|
99
|
+
"original": "boolean",
|
|
100
|
+
"resolved": "boolean",
|
|
101
|
+
"references": {}
|
|
102
|
+
},
|
|
103
|
+
"required": false,
|
|
104
|
+
"optional": false,
|
|
105
|
+
"docs": {
|
|
106
|
+
"tags": [],
|
|
107
|
+
"text": "Button with no background or outline"
|
|
108
|
+
},
|
|
109
|
+
"attribute": "ghost",
|
|
110
|
+
"reflect": false,
|
|
111
|
+
"defaultValue": "false"
|
|
112
|
+
},
|
|
113
|
+
"active": {
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"mutable": false,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "boolean",
|
|
118
|
+
"resolved": "boolean",
|
|
119
|
+
"references": {}
|
|
120
|
+
},
|
|
121
|
+
"required": false,
|
|
122
|
+
"optional": false,
|
|
123
|
+
"docs": {
|
|
124
|
+
"tags": [],
|
|
125
|
+
"text": "Active button"
|
|
126
|
+
},
|
|
127
|
+
"attribute": "active",
|
|
128
|
+
"reflect": false,
|
|
129
|
+
"defaultValue": "false"
|
|
130
|
+
},
|
|
131
|
+
"disabled": {
|
|
132
|
+
"type": "boolean",
|
|
133
|
+
"mutable": false,
|
|
134
|
+
"complexType": {
|
|
135
|
+
"original": "boolean",
|
|
136
|
+
"resolved": "boolean",
|
|
137
|
+
"references": {}
|
|
138
|
+
},
|
|
139
|
+
"required": false,
|
|
140
|
+
"optional": false,
|
|
141
|
+
"docs": {
|
|
142
|
+
"tags": [],
|
|
143
|
+
"text": "Disable button"
|
|
144
|
+
},
|
|
145
|
+
"attribute": "disabled",
|
|
146
|
+
"reflect": false,
|
|
147
|
+
"defaultValue": "false"
|
|
148
|
+
},
|
|
149
|
+
"label": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"mutable": false,
|
|
152
|
+
"complexType": {
|
|
153
|
+
"original": "string",
|
|
154
|
+
"resolved": "string",
|
|
155
|
+
"references": {}
|
|
156
|
+
},
|
|
157
|
+
"required": false,
|
|
158
|
+
"optional": false,
|
|
159
|
+
"docs": {
|
|
160
|
+
"tags": [],
|
|
161
|
+
"text": "Set label"
|
|
162
|
+
},
|
|
163
|
+
"attribute": "label",
|
|
164
|
+
"reflect": false,
|
|
165
|
+
"defaultValue": "''"
|
|
166
|
+
},
|
|
167
|
+
"icon": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"mutable": false,
|
|
170
|
+
"complexType": {
|
|
171
|
+
"original": "string",
|
|
172
|
+
"resolved": "string",
|
|
173
|
+
"references": {}
|
|
174
|
+
},
|
|
175
|
+
"required": false,
|
|
176
|
+
"optional": false,
|
|
177
|
+
"docs": {
|
|
178
|
+
"tags": [],
|
|
179
|
+
"text": "Button icon"
|
|
180
|
+
},
|
|
181
|
+
"attribute": "icon",
|
|
182
|
+
"reflect": false
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
static get states() {
|
|
187
|
+
return {
|
|
188
|
+
"dropdownAnchor": {}
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}
|
|
@@ -74,7 +74,7 @@ export class ExpandingSearch {
|
|
|
74
74
|
}, ref: (el) => (this.textInput = el), "data-testid": "input", placeholder: this.placeholder, type: "text", value: this.value, onBlur: () => {
|
|
75
75
|
this.collapseInput();
|
|
76
76
|
this.hasFocus = false;
|
|
77
|
-
}, onFocus: () => (this.hasFocus = true), onInput: (e) => this.onChange(e), tabindex: this.expanded ? 0 : -1 }), this.isFieldChanged ? (h("ix-icon-button", { class: "btn-clear", icon: "clear", ghost: true, size: "
|
|
77
|
+
}, onFocus: () => (this.hasFocus = true), onInput: (e) => this.onChange(e), tabindex: this.expanded ? 0 : -1 }), this.isFieldChanged ? (h("ix-icon-button", { class: "btn-clear", icon: "clear", ghost: true, size: "16", "data-testid": "clear-button", onClick: () => this.clearClicked() })) : null)));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "ix-expanding-search"; }
|
|
80
80
|
static get encapsulation() { return "scoped"; }
|