@quartzds/core 1.0.0-beta.12 → 1.0.0-beta.121
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/CHANGELOG.md +1919 -0
- package/README.md +23 -23
- package/components/index.d.ts +50 -0
- package/components/index.js +62 -28
- package/components/index.js.map +1 -1
- package/components/p-5dwtV5iH.js +428 -0
- package/components/p-5dwtV5iH.js.map +1 -0
- package/components/p-B2ZVUvk9.js +162 -0
- package/components/p-B2ZVUvk9.js.map +1 -0
- package/components/{floating-ui.dom.esm.js → p-Bv2vPjgL.js} +557 -345
- package/components/p-Bv2vPjgL.js.map +1 -0
- package/components/p-C1c4JVlg.js +112 -0
- package/components/p-C1c4JVlg.js.map +1 -0
- package/components/p-CDRwHAIT.js +105 -0
- package/components/p-CDRwHAIT.js.map +1 -0
- package/components/p-CURs27Ur.js +291 -0
- package/components/p-CURs27Ur.js.map +1 -0
- package/components/p-CZRW1LV_.js +28 -0
- package/components/p-CZRW1LV_.js.map +1 -0
- package/components/p-CjVnGhSO.js +91 -0
- package/components/p-CjVnGhSO.js.map +1 -0
- package/components/p-CkUTS1aU.js +102 -0
- package/components/p-CkUTS1aU.js.map +1 -0
- package/components/p-CkyaV9az.js +269 -0
- package/components/p-CkyaV9az.js.map +1 -0
- package/components/p-D2489VzR.js +2133 -0
- package/components/p-D2489VzR.js.map +1 -0
- package/components/p-D82sb4oJ.js +393 -0
- package/components/p-D82sb4oJ.js.map +1 -0
- package/components/p-D9pW936J.js +164 -0
- package/components/p-D9pW936J.js.map +1 -0
- package/components/p-DNHI4C-W.js +274 -0
- package/components/p-DNHI4C-W.js.map +1 -0
- package/components/p-DR79BVX5.js +149 -0
- package/components/p-DR79BVX5.js.map +1 -0
- package/components/p-DtxwXYGb.js +282 -0
- package/components/p-DtxwXYGb.js.map +1 -0
- package/components/p-U2Q0vF-d.js +96 -0
- package/components/p-U2Q0vF-d.js.map +1 -0
- package/components/p-laE-pGH7.js +163 -0
- package/components/p-laE-pGH7.js.map +1 -0
- package/components/qds-action-item.d.ts +11 -0
- package/components/qds-action-item.js +183 -0
- package/components/qds-action-item.js.map +1 -0
- package/components/qds-avatar-media.d.ts +11 -0
- package/components/qds-avatar-media.js +14 -0
- package/components/qds-avatar-media.js.map +1 -0
- package/components/qds-badge-counter.d.ts +11 -0
- package/components/qds-badge-counter.js +14 -0
- package/components/qds-badge-counter.js.map +1 -0
- package/components/qds-badge-indicator.d.ts +11 -0
- package/components/qds-badge-indicator.js +14 -0
- package/components/qds-badge-indicator.js.map +1 -0
- package/components/qds-breadcrumb-item.d.ts +11 -0
- package/components/qds-breadcrumb-item.js +169 -0
- package/components/qds-breadcrumb-item.js.map +1 -0
- package/components/qds-button.d.ts +2 -2
- package/components/qds-button.js +457 -129
- package/components/qds-button.js.map +1 -1
- package/components/qds-checkbox.d.ts +2 -2
- package/components/qds-checkbox.js +4 -146
- package/components/qds-checkbox.js.map +1 -1
- package/components/qds-chip.d.ts +11 -0
- package/components/qds-chip.js +304 -0
- package/components/qds-chip.js.map +1 -0
- package/components/qds-dialog.d.ts +2 -2
- package/components/qds-dialog.js +179 -93
- package/components/qds-dialog.js.map +1 -1
- package/components/qds-divider.d.ts +2 -2
- package/components/qds-divider.js +4 -39
- package/components/qds-divider.js.map +1 -1
- package/components/qds-dropdown.d.ts +2 -2
- package/components/qds-dropdown.js +4 -249
- package/components/qds-dropdown.js.map +1 -1
- package/components/qds-form-message.d.ts +2 -2
- package/components/qds-form-message.js +100 -50
- package/components/qds-form-message.js.map +1 -1
- package/components/qds-icon-button.d.ts +11 -0
- package/components/qds-icon-button.js +14 -0
- package/components/qds-icon-button.js.map +1 -0
- package/components/qds-icon-tab.d.ts +11 -0
- package/components/qds-icon-tab.js +278 -0
- package/components/qds-icon-tab.js.map +1 -0
- package/components/qds-icon.d.ts +2 -2
- package/components/qds-icon.js +4 -3
- package/components/qds-inline-link.d.ts +2 -2
- package/components/qds-inline-link.js +171 -74
- package/components/qds-inline-link.js.map +1 -1
- package/components/qds-input.d.ts +2 -2
- package/components/qds-input.js +575 -230
- package/components/qds-input.js.map +1 -1
- package/components/qds-label.d.ts +2 -2
- package/components/qds-label.js +4 -3
- package/components/qds-list-item.d.ts +11 -0
- package/components/qds-list-item.js +395 -0
- package/components/qds-list-item.js.map +1 -0
- package/components/qds-loader.d.ts +11 -0
- package/components/qds-loader.js +152 -0
- package/components/qds-loader.js.map +1 -0
- package/components/qds-menu-item.d.ts +11 -0
- package/components/qds-menu-item.js +204 -0
- package/components/qds-menu-item.js.map +1 -0
- package/components/qds-mini-button.d.ts +11 -0
- package/components/qds-mini-button.js +14 -0
- package/components/qds-mini-button.js.map +1 -0
- package/components/qds-progress-bar.d.ts +11 -0
- package/components/qds-progress-bar.js +155 -0
- package/components/qds-progress-bar.js.map +1 -0
- package/components/qds-radio.d.ts +2 -2
- package/components/qds-radio.js +4 -99
- package/components/qds-radio.js.map +1 -1
- package/components/qds-select.d.ts +11 -0
- package/components/qds-select.js +381 -0
- package/components/qds-select.js.map +1 -0
- package/components/qds-standalone-link.d.ts +11 -0
- package/components/qds-standalone-link.js +208 -0
- package/components/qds-standalone-link.js.map +1 -0
- package/components/qds-switch.d.ts +2 -2
- package/components/qds-switch.js +257 -105
- package/components/qds-switch.js.map +1 -1
- package/components/qds-tab.d.ts +11 -0
- package/components/qds-tab.js +339 -0
- package/components/qds-tab.js.map +1 -0
- package/components/qds-tabbar.d.ts +11 -0
- package/components/qds-tabbar.js +410 -0
- package/components/qds-tabbar.js.map +1 -0
- package/components/qds-table-cell.d.ts +11 -0
- package/components/qds-table-cell.js +81 -0
- package/components/qds-table-cell.js.map +1 -0
- package/components/qds-table-head-cell.d.ts +11 -0
- package/components/qds-table-head-cell.js +87 -0
- package/components/qds-table-head-cell.js.map +1 -0
- package/components/qds-table-row.d.ts +11 -0
- package/components/qds-table-row.js +48 -0
- package/components/qds-table-row.js.map +1 -0
- package/components/qds-table.d.ts +11 -0
- package/components/qds-table.js +48 -0
- package/components/qds-table.js.map +1 -0
- package/components/qds-tag.d.ts +11 -0
- package/components/qds-tag.js +14 -0
- package/components/qds-tag.js.map +1 -0
- package/components/qds-textarea.d.ts +2 -2
- package/components/qds-textarea.js +352 -193
- package/components/qds-textarea.js.map +1 -1
- package/components/qds-title.d.ts +2 -2
- package/components/qds-title.js +4 -84
- package/components/qds-title.js.map +1 -1
- package/components/qds-tooltip.d.ts +2 -2
- package/components/qds-tooltip.js +4 -315
- package/components/qds-tooltip.js.map +1 -1
- package/dist/cjs/app-globals-CLoao1by.js +13 -0
- package/dist/cjs/app-globals-CLoao1by.js.map +1 -0
- package/dist/cjs/controls-DKGeNyr5.js +32 -0
- package/dist/cjs/controls-DKGeNyr5.js.map +1 -0
- package/dist/cjs/{floating-ui.dom.esm-7f1cac3e.js → floating-ui.dom-Bvzubd50.js} +557 -345
- package/dist/cjs/floating-ui.dom-Bvzubd50.js.map +1 -0
- package/dist/cjs/helpers-Qs3cpKiI.js +308 -0
- package/dist/cjs/helpers-Qs3cpKiI.js.map +1 -0
- package/dist/cjs/index-DIY7gpXM.js +2376 -0
- package/dist/cjs/index-DIY7gpXM.js.map +1 -0
- package/dist/cjs/index.cjs.js +40 -31
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/library-CeKRI2f2.js +142 -0
- package/dist/cjs/library-CeKRI2f2.js.map +1 -0
- package/dist/cjs/loader.cjs.js +9 -10
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/qds-action-item.cjs.entry.js +145 -0
- package/dist/cjs/qds-action-item.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-avatar-media.qds-checkbox.qds-radio.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-avatar-media_3.cjs.entry.js +399 -0
- package/dist/cjs/qds-badge-counter.qds-badge-indicator.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-badge-counter_2.cjs.entry.js +146 -0
- package/dist/cjs/qds-breadcrumb-item.cjs.entry.js +129 -0
- package/dist/cjs/qds-breadcrumb-item.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-button.cjs.entry.js +385 -93
- package/dist/cjs/qds-button.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-chip.cjs.entry.js +252 -0
- package/dist/cjs/qds-chip.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-dialog.cjs.entry.js +124 -77
- package/dist/cjs/qds-dialog.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-divider.qds-icon-button.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-divider_2.cjs.entry.js +280 -0
- package/dist/cjs/qds-dropdown.cjs.entry.js +373 -209
- package/dist/cjs/qds-dropdown.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-form-message.cjs.entry.js +70 -27
- package/dist/cjs/qds-form-message.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-icon-tab.cjs.entry.js +214 -0
- package/dist/cjs/qds-icon-tab.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-icon.cjs.entry.js +112 -93
- package/dist/cjs/qds-icon.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-inline-link.cjs.entry.js +137 -49
- package/dist/cjs/qds-inline-link.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-input.cjs.entry.js +499 -188
- package/dist/cjs/qds-input.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-label.cjs.entry.js +118 -27
- package/dist/cjs/qds-label.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-list-item.cjs.entry.js +290 -0
- package/dist/cjs/qds-list-item.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-loader.cjs.entry.js +126 -0
- package/dist/cjs/qds-loader.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-menu-item.cjs.entry.js +158 -0
- package/dist/cjs/qds-menu-item.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-mini-button.cjs.entry.js +132 -0
- package/dist/cjs/qds-mini-button.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-progress-bar.cjs.entry.js +131 -0
- package/dist/cjs/qds-progress-bar.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-select.cjs.entry.js +335 -0
- package/dist/cjs/qds-select.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-standalone-link.cjs.entry.js +169 -0
- package/dist/cjs/qds-standalone-link.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-switch.cjs.entry.js +221 -67
- package/dist/cjs/qds-switch.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-tab.cjs.entry.js +265 -0
- package/dist/cjs/qds-tab.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-tabbar.cjs.entry.js +344 -0
- package/dist/cjs/qds-tabbar.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-table-cell.cjs.entry.js +61 -0
- package/dist/cjs/qds-table-cell.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-table-head-cell.cjs.entry.js +65 -0
- package/dist/cjs/qds-table-head-cell.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-table-row.cjs.entry.js +34 -0
- package/dist/cjs/qds-table-row.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-table.cjs.entry.js +34 -0
- package/dist/cjs/qds-table.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-tag.cjs.entry.js +110 -0
- package/dist/cjs/qds-tag.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-textarea.cjs.entry.js +303 -156
- package/dist/cjs/qds-textarea.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-title.cjs.entry.js +61 -52
- package/dist/cjs/qds-title.entry.cjs.js.map +1 -0
- package/dist/cjs/qds-tooltip.cjs.entry.js +334 -263
- package/dist/cjs/qds-tooltip.entry.cjs.js.map +1 -0
- package/dist/cjs/qds.cjs.js +18 -17
- package/dist/cjs/qds.cjs.js.map +1 -1
- package/dist/custom-elements.json +12148 -2304
- package/dist/docs.d.ts +344 -240
- package/dist/docs.json +13199 -3351
- package/dist/esm/app-globals-WylVyaRG.js +11 -0
- package/dist/esm/app-globals-WylVyaRG.js.map +1 -0
- package/dist/esm/controls-CZRW1LV_.js +28 -0
- package/dist/esm/controls-CZRW1LV_.js.map +1 -0
- package/dist/esm/{floating-ui.dom.esm-c2f3e549.js → floating-ui.dom-Bv2vPjgL.js} +557 -345
- package/dist/esm/floating-ui.dom-Bv2vPjgL.js.map +1 -0
- package/dist/esm/helpers-eFD8hV6J.js +291 -0
- package/dist/esm/helpers-eFD8hV6J.js.map +1 -0
- package/dist/esm/index-Hg1Liloy.js +2364 -0
- package/dist/esm/index-Hg1Liloy.js.map +1 -0
- package/dist/esm/index.js +40 -30
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/library-CBfntPWH.js +138 -0
- package/dist/esm/library-CBfntPWH.js.map +1 -0
- package/dist/esm/loader.js +10 -9
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/qds-action-item.entry.js +143 -0
- package/dist/esm/qds-action-item.entry.js.map +1 -0
- package/dist/esm/qds-avatar-media.qds-checkbox.qds-radio.entry.js.map +1 -0
- package/dist/esm/qds-avatar-media_3.entry.js +395 -0
- package/dist/esm/qds-badge-counter.qds-badge-indicator.entry.js.map +1 -0
- package/dist/esm/qds-badge-counter_2.entry.js +143 -0
- package/dist/esm/qds-breadcrumb-item.entry.js +127 -0
- package/dist/esm/qds-breadcrumb-item.entry.js.map +1 -0
- package/dist/esm/qds-button.entry.js +385 -91
- package/dist/esm/qds-button.entry.js.map +1 -1
- package/dist/esm/qds-chip.entry.js +250 -0
- package/dist/esm/qds-chip.entry.js.map +1 -0
- package/dist/esm/qds-dialog.entry.js +124 -75
- package/dist/esm/qds-dialog.entry.js.map +1 -1
- package/dist/esm/qds-divider.qds-icon-button.entry.js.map +1 -0
- package/dist/esm/qds-divider_2.entry.js +277 -0
- package/dist/esm/qds-dropdown.entry.js +373 -207
- package/dist/esm/qds-dropdown.entry.js.map +1 -1
- package/dist/esm/qds-form-message.entry.js +70 -25
- package/dist/esm/qds-form-message.entry.js.map +1 -1
- package/dist/esm/qds-icon-tab.entry.js +212 -0
- package/dist/esm/qds-icon-tab.entry.js.map +1 -0
- package/dist/esm/qds-icon.entry.js +112 -91
- package/dist/esm/qds-icon.entry.js.map +1 -1
- package/dist/esm/qds-inline-link.entry.js +137 -47
- package/dist/esm/qds-inline-link.entry.js.map +1 -1
- package/dist/esm/qds-input.entry.js +499 -186
- package/dist/esm/qds-input.entry.js.map +1 -1
- package/dist/esm/qds-label.entry.js +118 -25
- package/dist/esm/qds-label.entry.js.map +1 -1
- package/dist/esm/qds-list-item.entry.js +288 -0
- package/dist/esm/qds-list-item.entry.js.map +1 -0
- package/dist/esm/qds-loader.entry.js +124 -0
- package/dist/esm/qds-loader.entry.js.map +1 -0
- package/dist/esm/qds-menu-item.entry.js +156 -0
- package/dist/esm/qds-menu-item.entry.js.map +1 -0
- package/dist/esm/qds-mini-button.entry.js +130 -0
- package/dist/esm/qds-mini-button.entry.js.map +1 -0
- package/dist/esm/qds-progress-bar.entry.js +129 -0
- package/dist/esm/qds-progress-bar.entry.js.map +1 -0
- package/dist/esm/qds-select.entry.js +333 -0
- package/dist/esm/qds-select.entry.js.map +1 -0
- package/dist/esm/qds-standalone-link.entry.js +167 -0
- package/dist/esm/qds-standalone-link.entry.js.map +1 -0
- package/dist/esm/qds-switch.entry.js +221 -65
- package/dist/esm/qds-switch.entry.js.map +1 -1
- package/dist/esm/qds-tab.entry.js +263 -0
- package/dist/esm/qds-tab.entry.js.map +1 -0
- package/dist/esm/qds-tabbar.entry.js +342 -0
- package/dist/esm/qds-tabbar.entry.js.map +1 -0
- package/dist/esm/qds-table-cell.entry.js +59 -0
- package/dist/esm/qds-table-cell.entry.js.map +1 -0
- package/dist/esm/qds-table-head-cell.entry.js +63 -0
- package/dist/esm/qds-table-head-cell.entry.js.map +1 -0
- package/dist/esm/qds-table-row.entry.js +32 -0
- package/dist/esm/qds-table-row.entry.js.map +1 -0
- package/dist/esm/qds-table.entry.js +32 -0
- package/dist/esm/qds-table.entry.js.map +1 -0
- package/dist/esm/qds-tag.entry.js +108 -0
- package/dist/esm/qds-tag.entry.js.map +1 -0
- package/dist/esm/qds-textarea.entry.js +303 -154
- package/dist/esm/qds-textarea.entry.js.map +1 -1
- package/dist/esm/qds-title.entry.js +61 -50
- package/dist/esm/qds-title.entry.js.map +1 -1
- package/dist/esm/qds-tooltip.entry.js +334 -261
- package/dist/esm/qds-tooltip.entry.js.map +1 -1
- package/dist/esm/qds.js +18 -16
- package/dist/esm/qds.js.map +1 -1
- package/dist/types/components/action-item/action-item.d.ts +67 -0
- package/dist/types/components/avatar-media/avatar-media.d.ts +39 -0
- package/dist/types/components/badge-counter/badge-counter.d.ts +40 -0
- package/dist/types/components/badge-indicator/badge-indicator.d.ts +36 -0
- package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +178 -0
- package/dist/types/components/button/button.d.ts +282 -198
- package/dist/types/components/checkbox/checkbox.d.ts +137 -124
- package/dist/types/components/chip/chip.d.ts +109 -0
- package/dist/types/components/controls.d.ts +4 -1
- package/dist/types/components/dialog/dialog.d.ts +32 -41
- package/dist/types/components/divider/divider.d.ts +14 -9
- package/dist/types/components/dropdown/dropdown.d.ts +116 -125
- package/dist/types/components/form-message/form-message.d.ts +33 -25
- package/dist/types/components/icon/icon.d.ts +24 -24
- package/dist/types/components/icon/library.d.ts +3 -3
- package/dist/types/components/icon/request.d.ts +5 -9
- package/dist/types/components/icon-button/icon-button.d.ts +121 -0
- package/dist/types/components/icon-tab/icon-tab.d.ts +110 -0
- package/dist/types/components/inline-link/inline-link.d.ts +209 -191
- package/dist/types/components/input/input.d.ts +441 -368
- package/dist/types/components/label/label.d.ts +37 -24
- package/dist/types/components/list-item/list-item.d.ts +121 -0
- package/dist/types/components/loader/loader.d.ts +32 -0
- package/dist/types/components/menu-item/menu-item.d.ts +71 -0
- package/dist/types/components/mini-button/mini-button.d.ts +82 -0
- package/dist/types/components/progress-bar/progress-bar.d.ts +60 -0
- package/dist/types/components/radio/radio.d.ts +90 -95
- package/dist/types/components/select/select.d.ts +209 -0
- package/dist/types/components/shared.d.ts +6 -0
- package/dist/types/components/standalone-link/standalone-link.d.ts +234 -0
- package/dist/types/components/switch/switch.d.ts +122 -107
- package/dist/types/components/tab/tab.d.ts +155 -0
- package/dist/types/components/tabbar/tabbar.d.ts +56 -0
- package/dist/types/components/table/table.d.ts +14 -0
- package/dist/types/components/table-cell/table-cell.d.ts +33 -0
- package/dist/types/components/table-head-cell/table-head-cell.d.ts +50 -0
- package/dist/types/components/table-row/table-row.d.ts +14 -0
- package/dist/types/components/tag/tag.d.ts +55 -0
- package/dist/types/components/textarea/textarea.d.ts +295 -300
- package/dist/types/components/title/title.d.ts +39 -32
- package/dist/types/components/tooltip/tooltip.d.ts +111 -136
- package/dist/types/components.d.ts +4419 -957
- package/dist/types/helpers.d.ts +38 -19
- package/dist/types/index.d.ts +2 -1
- package/dist/types/interface-overrides.d.ts +215 -0
- package/dist/types/qds-test.d.ts +22 -11
- package/dist/types/stencil-public-runtime.d.ts +109 -17
- package/dist/types/utils.d.ts +11 -4
- package/dist/vscode.html-custom-data.json +2378 -439
- package/hydrate/index.d.ts +73 -18
- package/hydrate/index.js +28066 -9253
- package/hydrate/index.mjs +28956 -0
- package/hydrate/package.json +7 -1
- package/loader/cdn.js +3 -4
- package/loader/index.cjs.js +3 -4
- package/loader/index.d.ts +4 -1
- package/loader/index.es2017.js +3 -4
- package/loader/index.js +3 -4
- package/package.json +23 -180
- package/styles/core.css +147 -19
- package/components/floating-ui.dom.esm.js.map +0 -1
- package/components/helpers.js +0 -175
- package/components/helpers.js.map +0 -1
- package/components/icon.js +0 -185
- package/components/icon.js.map +0 -1
- package/components/label.js +0 -55
- package/components/label.js.map +0 -1
- package/dist/cjs/floating-ui.dom.esm-7f1cac3e.js.map +0 -1
- package/dist/cjs/helpers-452256e8.js +0 -185
- package/dist/cjs/helpers-452256e8.js.map +0 -1
- package/dist/cjs/index-d181f952.js +0 -2039
- package/dist/cjs/index-d181f952.js.map +0 -1
- package/dist/cjs/library-ad8d9466.js +0 -72
- package/dist/cjs/library-ad8d9466.js.map +0 -1
- package/dist/cjs/qds-button.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-checkbox.cjs.entry.js +0 -116
- package/dist/cjs/qds-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-dialog.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-divider.cjs.entry.js +0 -33
- package/dist/cjs/qds-divider.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-form-message.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-inline-link.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-input.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-label.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-radio.cjs.entry.js +0 -74
- package/dist/cjs/qds-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-textarea.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-title.cjs.entry.js.map +0 -1
- package/dist/cjs/qds-tooltip.cjs.entry.js.map +0 -1
- package/dist/esm/floating-ui.dom.esm-c2f3e549.js.map +0 -1
- package/dist/esm/helpers-76b84f45.js +0 -175
- package/dist/esm/helpers-76b84f45.js.map +0 -1
- package/dist/esm/index-d7183092.js +0 -2009
- package/dist/esm/index-d7183092.js.map +0 -1
- package/dist/esm/library-f36d7d09.js +0 -68
- package/dist/esm/library-f36d7d09.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/qds-checkbox.entry.js +0 -112
- package/dist/esm/qds-checkbox.entry.js.map +0 -1
- package/dist/esm/qds-divider.entry.js +0 -29
- package/dist/esm/qds-divider.entry.js.map +0 -1
- package/dist/esm/qds-radio.entry.js +0 -70
- package/dist/esm/qds-radio.entry.js.map +0 -1
- package/dist/types/components/create-story.d.ts +0 -5
- package/loader/package.json +0 -11
|
@@ -1,106 +1,400 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SPDX-FileCopyrightText: ©
|
|
2
|
+
* SPDX-FileCopyrightText: © 2026 Schneider Electric
|
|
3
3
|
*
|
|
4
|
-
* SPDX-License-Identifier:
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { r as registerInstance, c as createEvent, h,
|
|
7
|
-
import { p as pickFocusEventAttributes,
|
|
6
|
+
import { r as registerInstance, c as createEvent, a as readTask, h, g as getElement } from './index-Hg1Liloy.js';
|
|
7
|
+
import { p as pickFocusEventAttributes, a as isEllipsisActive } from './helpers-eFD8hV6J.js';
|
|
8
|
+
import { V as VALID_STATE, C as CUSTOM_ERROR_FLAGS, N as NO_ERROR_FLAGS } from './controls-CZRW1LV_.js';
|
|
8
9
|
|
|
9
|
-
const buttonCss = ":host
|
|
10
|
+
const buttonCss = ":host([hidden]){display:none!important}:host{display:inline-block;outline:none}.qds-button:disabled,.qds-disabled{opacity:var(--qds-theme-disabled);pointer-events:none}.qds-overflow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qds-overflow[data-size=hero]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}.qds-action{transform:scaleX(var(--qds-direction-factor,1))}.qds-container{display:grid;grid-template-areas:\"b\"}.qds-focus-ring{border-radius:max(1px,var(\n --qds-control-border-radius-top-left,var(--qds-control-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-top-right,var(--qds-control-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-bottom-right,var(--qds-control-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-bottom-left,var(--qds-control-border-radius)\n ));box-shadow:0 0 0 var(--qds-focus-heavy-border-width) var(--qds-theme-focus-border);grid-area:b;height:calc(100% + var(--qds-control-border-width) - var(--qds-control-border-width));isolation:isolate;outline:var(--qds-theme-focus-border-contrast) solid var(--qds-focus-light-border-width);outline-offset:0;pointer-events:none;visibility:hidden;width:calc(100% + var(--qds-control-border-width) - var(\n --qds-control-border-width-inline-end,\n var(--qds-control-border-width)\n ))}:host(:focus-visible) .qds-focus-ring{visibility:visible}.qds-button{align-items:center;-webkit-appearance:none;appearance:none;background-color:initial;border:none;border-radius:var(\n --qds-control-border-radius-top-left,var(--qds-control-border-radius)\n ) var(--qds-control-border-radius-top-right,var(--qds-control-border-radius)) var(\n --qds-control-border-radius-bottom-right,var(--qds-control-border-radius)\n ) var(\n --qds-control-border-radius-bottom-left,var(--qds-control-border-radius)\n );box-sizing:border-box;cursor:pointer;display:inline-flex;grid-area:b;justify-content:center;min-width:0;outline:none;padding-block:0;position:relative;-webkit-print-color-adjust:exact;print-color-adjust:exact;text-align:center;-webkit-user-select:none;user-select:none}.qds-button:any-link{-webkit-text-decoration:none;text-decoration:none}.qds-icon{flex-shrink:0}.qds-indicator{inset-block-start:0;inset-inline-end:0;position:absolute;transform:translate(50%,-50%)}[data-size=small]{font:var(--qds-control-small-text)}.qds-button[data-size=small]{gap:var(--qds-control-small-gap-internal);min-height:var(--qds-control-small-height);padding-inline:var(--qds-control-button-small-padding-horizontal)}.qds-icon-only[data-size=small]{width:var(--qds-control-small-height)}.qds-icon[data-size=small]{height:var(--qds-control-small-icon-size);width:var(--qds-control-small-icon-size)}[data-size=standard]{font:var(--qds-control-standard-text)}.qds-button[data-size=standard]{gap:var(--qds-control-standard-gap-internal);min-height:var(--qds-control-standard-height);padding-inline:var(--qds-control-button-standard-padding-horizontal)}.qds-icon-only[data-size=standard]{width:var(--qds-control-standard-height)}.qds-icon[data-size=standard]{height:var(--qds-control-standard-icon-size);width:var(--qds-control-standard-icon-size)}[data-size=large]{font:var(--qds-control-large-text)}.qds-button[data-size=large]{gap:var(--qds-control-large-gap-internal);min-height:var(--qds-control-large-height);padding-inline:var(--qds-control-button-large-padding-horizontal)}.qds-icon-only[data-size=large]{width:var(--qds-control-large-height)}.qds-icon[data-size=large]{height:var(--qds-control-large-icon-size);width:var(--qds-control-large-icon-size)}[data-size=large],[data-size=small],[data-size=standard]{line-height:normal}.qds-button.qds-icon-only[data-size=large],.qds-button.qds-icon-only[data-size=small],.qds-button.qds-icon-only[data-size=standard]{padding-inline:0}[data-size=hero]{font:var(--qds-control-hero-text)}.qds-button[data-size=hero]{border-radius:var(\n --qds-control-border-radius-top-left,var(--qds-control-hero-border-radius)\n ) var(\n --qds-control-border-radius-top-right,var(--qds-control-hero-border-radius)\n ) var(\n --qds-control-border-radius-bottom-right,var(--qds-control-hero-border-radius)\n ) var(\n --qds-control-border-radius-bottom-left,var(--qds-control-hero-border-radius)\n );gap:var(--qds-control-hero-gap-internal);padding-block:var(--qds-control-hero-padding-auto-height);padding-inline:var(--qds-control-button-hero-padding-horizontal)}.qds-button.qds-icon-only[data-size=hero]{min-height:var(--qds-control-hero-height);padding-inline:0;width:var(--qds-control-hero-height)}.qds-focus-ring[data-size=hero]{border-radius:max(1px,var(\n --qds-control-border-radius-top-left,var(--qds-control-hero-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-top-right,var(--qds-control-hero-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-bottom-right,var(--qds-control-hero-border-radius)\n )) max(1px,var(\n --qds-control-border-radius-bottom-left,var(--qds-control-hero-border-radius)\n ))}.qds-icon[data-size=hero]{height:var(--qds-control-hero-icon-size);width:var(--qds-control-hero-icon-size)}[data-importance=subdued]{border-radius:0;color:var(--qds-theme-link-standard-default)}.qds-button[data-importance=subdued]{border-block-end:var(--qds-control-border-width) solid #0000;padding-inline:0}.qds-button[data-importance=subdued]:hover{border-block-end:var(--qds-control-border-width) solid var(--qds-theme-link-standard-hover);color:var(--qds-theme-link-standard-hover)}.qds-button[data-importance=subdued]:active{border-block-end:var(--qds-control-border-width) solid var(--qds-theme-link-standard-pressed);color:var(--qds-theme-link-standard-pressed)}.qds-button[data-importance=subdued]:not(.qds-icon-only){border-radius:0}.qds-button.qds-icon-only[data-importance=subdued]{border:none;color:var(--qds-theme-control-text-standard)}.qds-button.qds-icon-only[data-importance=subdued]:hover{background-color:var(--qds-theme-interactive-background-hover)}.qds-button.qds-icon-only[data-importance=subdued]:active{background-color:var(--qds-theme-interactive-background-pressed)}[data-importance=standard]{color:var(--qds-theme-control-text-standard)}.qds-button[data-importance=standard]{border-color:var(--qds-theme-control-border);border-style:solid;border-width:var(--qds-control-border-width)}.qds-button[data-importance=standard]:hover{background-color:var(--qds-theme-interactive-background-hover)}.qds-button[data-importance=standard]:active{background-color:var(--qds-theme-interactive-background-pressed)}.qds-button[data-importance=emphasized]{background-color:var(--qds-theme-signature-color-default);color:var(--qds-theme-signature-color-contrast)}.qds-button[data-importance=emphasized]:hover{background-color:var(--qds-theme-signature-color-hover)}.qds-button[data-importance=emphasized]:active{background-color:var(--qds-theme-signature-color-pressed)}.qds-button[data-importance=destructive]{background-color:var(--qds-theme-feedback-action-destructive-default);color:var(--qds-theme-feedback-action-destructive-contrast)}.qds-button[data-importance=destructive]:hover{background-color:var(--qds-theme-feedback-action-destructive-hover)}.qds-button[data-importance=destructive]:active{background-color:var(--qds-theme-feedback-action-destructive-pressed)}[data-importance=subdued-destructive]{border-radius:0;color:var(--qds-theme-feedback-action-destructive-default)}.qds-button[data-importance=subdued-destructive]{border-block-end:var(--qds-control-border-width) solid #0000;padding-inline:0}.qds-button[data-importance=subdued-destructive]:hover{border-block-end:var(--qds-control-border-width) solid var(--qds-theme-feedback-action-destructive-hover);color:var(--qds-theme-feedback-action-destructive-hover)}.qds-button[data-importance=subdued-destructive]:active{border-block-end:var(--qds-control-border-width) solid var(--qds-theme-feedback-action-destructive-pressed);color:var(--qds-theme-feedback-action-destructive-pressed)}.qds-button[data-importance=subdued-destructive]:not(.qds-icon-only){border-radius:0}.qds-button.qds-icon-only[data-importance=subdued-destructive]{border:none}.qds-button.qds-icon-only[data-importance=subdued-destructive]:hover{background-color:var(--qds-theme-interactive-background-hover);color:var(--qds-theme-feedback-action-destructive-default)}.qds-button.qds-icon-only[data-importance=subdued-destructive]:active{background-color:var(--qds-theme-interactive-background-pressed);color:var(--qds-theme-feedback-action-destructive-default)}[data-action=dropdown-close] .qds-action{transform:rotate(-180deg)}:is([data-action=dropdown],[data-action=dropdown-close]) .qds-action{transition-duration:.3s;transition-property:transform}:is([data-action=dropdown],[data-action=dropdown-close]):not(:has(qds-badge-counter)) .qds-action{margin-inline-start:auto}:is([data-action=dropdown],[data-action=dropdown-close]) qds-badge-counter{margin-inline-start:auto}:is([data-action=dropdown],[data-action=dropdown-close]):not([data-importance=subdued]):not([data-importance=subdued-destructive]){padding-inline:var(--qds-control-input-padding-horizontal)}";
|
|
10
11
|
|
|
12
|
+
// SPDX-FileCopyrightText: © 2024 Schneider Electric
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
15
|
+
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
16
|
+
if (kind === "a" && !f)
|
|
17
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
18
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
19
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
20
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
21
|
+
};
|
|
22
|
+
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
23
|
+
if (kind === "m")
|
|
24
|
+
throw new TypeError("Private method is not writable");
|
|
25
|
+
if (kind === "a" && !f)
|
|
26
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
27
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
28
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
29
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
30
|
+
};
|
|
31
|
+
var _Button_instances, _Button_savedTabIndex, _Button_button, _Button_span, _Button_ro, _Button_buttonType_get, _Button_iconOnly_get, _Button_computedAction_get, _Button_computedActionIcon_get, _Button_computedDisabled_get, _Button_computedImportance_get, _Button_computedSize_get, _Button_buttonRef, _Button_spanRef, _Button_tooltipRef, _Button_onClick, _Button_updateAriaLabel, _Button_defineGetter;
|
|
32
|
+
const isCounter = (value) => typeof value === 'string'
|
|
33
|
+
? !Number.isNaN(Number.parseFloat(value))
|
|
34
|
+
: typeof value === 'number';
|
|
35
|
+
const isIndicator = (value) => value === '' || value === true;
|
|
36
|
+
const preventDefault = (event) => {
|
|
37
|
+
event.preventDefault();
|
|
38
|
+
};
|
|
11
39
|
const Button = class {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
40
|
+
constructor(hostRef) {
|
|
41
|
+
registerInstance(this, hostRef);
|
|
42
|
+
this.blurEmitter = createEvent(this, "qdsBlur", 2);
|
|
43
|
+
this.focusEmitter = createEvent(this, "qdsFocus", 2);
|
|
44
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
45
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
49
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
50
|
+
}
|
|
51
|
+
_Button_instances.add(this);
|
|
52
|
+
/**
|
|
53
|
+
* The indicator's status.
|
|
54
|
+
*/
|
|
55
|
+
this.badgeIndicatorStatus = 'neutral';
|
|
56
|
+
/**
|
|
57
|
+
* The name of a registered icon library.
|
|
58
|
+
*/
|
|
59
|
+
this.iconLibrary = 'default';
|
|
60
|
+
/**
|
|
61
|
+
* The button's importance.
|
|
62
|
+
*/
|
|
63
|
+
this.importance = 'standard';
|
|
64
|
+
/**
|
|
65
|
+
* The button's size.
|
|
66
|
+
*/
|
|
67
|
+
this.size = 'standard';
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated The icon-only button feature is deprecated and will be removed by september 2026. Please use the icon-button instead.
|
|
70
|
+
*
|
|
71
|
+
* Sets if button is icon only.
|
|
72
|
+
*/
|
|
73
|
+
this.iconOnly = false;
|
|
74
|
+
/**
|
|
75
|
+
* The [`<form>`][] element to associate the button with (its form owner).
|
|
76
|
+
*
|
|
77
|
+
* The value of this attribute must be the id of a `<form>` in the same
|
|
78
|
+
* document. If this attribute is not set, the `<qds-button>` is associated
|
|
79
|
+
* with its ancestor `<form>` element, if any.
|
|
80
|
+
*
|
|
81
|
+
* This attribute lets you associate `<qds-button>` elements to `<form>`s
|
|
82
|
+
* anywhere in the document, not just inside a `<form>`. It can also override
|
|
83
|
+
* an ancestor `<form>` element.
|
|
84
|
+
*
|
|
85
|
+
* [`<form>`]: https://developer.mozilla.org/docs/Web/HTML/Element/form
|
|
86
|
+
*
|
|
87
|
+
* @readonly
|
|
88
|
+
* @webnative
|
|
89
|
+
*/
|
|
90
|
+
// eslint-disable-next-line unicorn/no-null
|
|
91
|
+
this.form = null;
|
|
92
|
+
/**
|
|
93
|
+
* If the button is a submit button, this attribute specifies that the form
|
|
94
|
+
* is not to be
|
|
95
|
+
* [validated](https://developer.mozilla.org/docs/Learn/Forms/Form_validation)
|
|
96
|
+
* when it is submitted. If this attribute is specified, it overrides the
|
|
97
|
+
* [`novalidate`](https://developer.mozilla.org/docs/Web/HTML/Element/form#attr-novalidate)
|
|
98
|
+
* attribute of the button's form owner.
|
|
99
|
+
*
|
|
100
|
+
* @webnative
|
|
101
|
+
*/
|
|
102
|
+
this.formNoValidate = false;
|
|
103
|
+
/**
|
|
104
|
+
* If the button is a submit button, this attribute is an author-defined name
|
|
105
|
+
* or standardized, underscore-prefixed keyword indicating where to display
|
|
106
|
+
* the response from submitting the form. This is the `name` of, or keyword
|
|
107
|
+
* for, a browsing context (a tab, window, or
|
|
108
|
+
* [`<iframe>`](https://developer.mozilla.org/docs/Web/HTML/Element/iframe)).
|
|
109
|
+
* If this attribute is specified, it overrides the
|
|
110
|
+
* [`target`](https://developer.mozilla.org/docs/Web/HTML/Element/form#attr-target)
|
|
111
|
+
* attribute of the button's form owner. The following keywords have special
|
|
112
|
+
* meanings:
|
|
113
|
+
*
|
|
114
|
+
* - `_blank`: Load the response into a new unnamed browsing context — usually
|
|
115
|
+
* a new tab or window, depending on the user's browser settings.
|
|
116
|
+
* - `_parent`: Load the response into the parent browsing context of the
|
|
117
|
+
* current one. If there is no parent, this option behaves the same way as
|
|
118
|
+
* `_self`.
|
|
119
|
+
* - `_self`: Load the response into the same browsing context as the current
|
|
120
|
+
* one.
|
|
121
|
+
* - `_top`: Load the response into the top-level browsing context (that is,
|
|
122
|
+
* the browsing context that is an ancestor of the current one, and has no
|
|
123
|
+
* parent). If there is no parent, this option behaves the same way as
|
|
124
|
+
* `_self`.
|
|
125
|
+
*
|
|
126
|
+
* @webnative
|
|
127
|
+
*/
|
|
128
|
+
this.formTarget = '_self';
|
|
129
|
+
/**
|
|
130
|
+
* Returns a list of the [`<label>`][] elements associated with the
|
|
131
|
+
* `qds-button` element.
|
|
132
|
+
*
|
|
133
|
+
* [`<label>`]: https://developer.mozilla.org/docs/Web/HTML/Element/label
|
|
134
|
+
*
|
|
135
|
+
* @readonly
|
|
136
|
+
* @webnative
|
|
137
|
+
*/
|
|
138
|
+
this.labels = {};
|
|
139
|
+
/**
|
|
140
|
+
* When href is define and the button act as a link (`<a>`), the `rel` will be added to the element.
|
|
141
|
+
*
|
|
142
|
+
* @webnative
|
|
143
|
+
*/
|
|
144
|
+
this.rel = 'noopener';
|
|
145
|
+
/**
|
|
146
|
+
* The error message that would be shown to the user if the `<qds-button>`
|
|
147
|
+
* was to be checked for validity.
|
|
148
|
+
*
|
|
149
|
+
* @readonly
|
|
150
|
+
* @webnative
|
|
151
|
+
*/
|
|
152
|
+
this.validationMessage = '';
|
|
153
|
+
/**
|
|
154
|
+
* The [`ValidityState`][] object for this `<qds-button>`.
|
|
155
|
+
*
|
|
156
|
+
* [`ValidityState`]: https://developer.mozilla.org/docs/Web/API/ValidityState
|
|
157
|
+
*
|
|
158
|
+
* @readonly
|
|
159
|
+
* @webnative
|
|
160
|
+
*/
|
|
161
|
+
this.validity = VALID_STATE;
|
|
162
|
+
/**
|
|
163
|
+
* True if `<qds-button>` will be validated when the form is submitted; false
|
|
164
|
+
* otherwise.
|
|
165
|
+
*
|
|
166
|
+
* @readonly
|
|
167
|
+
* @webnative
|
|
168
|
+
*/
|
|
169
|
+
this.willValidate = false;
|
|
170
|
+
/**
|
|
171
|
+
* Placement of the overflow tooltip.
|
|
172
|
+
*/
|
|
173
|
+
this.tooltipPlacement = 'top';
|
|
174
|
+
this.tooltip = false;
|
|
175
|
+
_Button_savedTabIndex.set(this, 0);
|
|
176
|
+
_Button_button.set(this, void 0);
|
|
177
|
+
_Button_span.set(this, void 0);
|
|
178
|
+
_Button_ro.set(this, void 0);
|
|
179
|
+
this.checkValidity = () => this.internals.checkValidity();
|
|
180
|
+
this.reportValidity = () => this.internals.reportValidity();
|
|
181
|
+
this.setCustomValidity = (error) => {
|
|
182
|
+
if (error)
|
|
183
|
+
this.internals.setValidity(CUSTOM_ERROR_FLAGS, error, __classPrivateFieldGet(this, _Button_button, "f"));
|
|
184
|
+
else
|
|
185
|
+
this.internals.setValidity(NO_ERROR_FLAGS);
|
|
186
|
+
};
|
|
187
|
+
_Button_buttonRef.set(this, (button) => {
|
|
188
|
+
__classPrivateFieldSet(this, _Button_button, button, "f");
|
|
189
|
+
});
|
|
190
|
+
_Button_spanRef.set(this, (span) => {
|
|
191
|
+
__classPrivateFieldSet(this, _Button_span, span, "f");
|
|
192
|
+
});
|
|
193
|
+
_Button_tooltipRef.set(this, (tooltip) => {
|
|
194
|
+
if (tooltip)
|
|
195
|
+
// eslint-disable-next-line no-param-reassign
|
|
196
|
+
tooltip.target = this.host;
|
|
197
|
+
});
|
|
198
|
+
_Button_onClick.set(this, (event) => {
|
|
199
|
+
if (__classPrivateFieldGet(this, _Button_instances, "a", _Button_computedDisabled_get)) {
|
|
200
|
+
preventDefault(event);
|
|
201
|
+
event.stopImmediatePropagation();
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
onBlur(event) {
|
|
206
|
+
this.blurEmitter.emit(pickFocusEventAttributes(event));
|
|
207
|
+
}
|
|
208
|
+
onClick(event) {
|
|
209
|
+
if (__classPrivateFieldGet(this, _Button_instances, "a", _Button_computedDisabled_get)) {
|
|
210
|
+
event.stopImmediatePropagation();
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
if (__classPrivateFieldGet(this, _Button_instances, "a", _Button_buttonType_get) === 'button' || !this.internals.form)
|
|
214
|
+
return;
|
|
215
|
+
if (__classPrivateFieldGet(this, _Button_instances, "a", _Button_buttonType_get) === 'reset') {
|
|
216
|
+
this.internals.form.reset();
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
this.internals.form.requestSubmit();
|
|
220
|
+
}
|
|
19
221
|
event.preventDefault();
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
222
|
+
}
|
|
223
|
+
onFocus(event) {
|
|
224
|
+
this.focusEmitter.emit(pickFocusEventAttributes(event));
|
|
225
|
+
}
|
|
226
|
+
onKeydown(event) {
|
|
227
|
+
if (event.key === 'Enter') {
|
|
228
|
+
if (__classPrivateFieldGet(this, _Button_button, "f") instanceof HTMLAnchorElement)
|
|
229
|
+
__classPrivateFieldGet(this, _Button_button, "f").click();
|
|
230
|
+
else
|
|
231
|
+
this.host.click();
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
onKeyup(event) {
|
|
235
|
+
if (event.key === ' ')
|
|
236
|
+
this.host.click();
|
|
237
|
+
}
|
|
238
|
+
disabledChanged() {
|
|
239
|
+
this.internals.ariaDisabled = __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedDisabled_get).toString();
|
|
240
|
+
if (__classPrivateFieldGet(this, _Button_instances, "a", _Button_computedDisabled_get))
|
|
241
|
+
this.host.removeAttribute('tabindex');
|
|
242
|
+
else
|
|
243
|
+
this.host.tabIndex = __classPrivateFieldGet(this, _Button_savedTabIndex, "f");
|
|
244
|
+
}
|
|
245
|
+
hrefChanged() {
|
|
246
|
+
this.internals.role = this.href === undefined ? 'button' : 'link';
|
|
247
|
+
}
|
|
248
|
+
tabindexChanged(newValue) {
|
|
249
|
+
if (newValue !== null) {
|
|
250
|
+
const parsedValue = Number.parseInt(newValue, 10);
|
|
251
|
+
__classPrivateFieldSet(this, _Button_savedTabIndex, Number.isNaN(parsedValue) || !Number.isFinite(parsedValue)
|
|
252
|
+
? 0
|
|
253
|
+
: parsedValue, "f");
|
|
254
|
+
}
|
|
255
|
+
if (__classPrivateFieldGet(this, _Button_instances, "a", _Button_computedDisabled_get))
|
|
256
|
+
this.host.removeAttribute('tabindex');
|
|
257
|
+
else
|
|
258
|
+
this.host.tabIndex = __classPrivateFieldGet(this, _Button_savedTabIndex, "f");
|
|
259
|
+
}
|
|
260
|
+
textChanged() {
|
|
261
|
+
__classPrivateFieldGet(this, _Button_instances, "m", _Button_updateAriaLabel).call(this);
|
|
262
|
+
if (__classPrivateFieldGet(this, _Button_ro, "f"))
|
|
263
|
+
__classPrivateFieldGet(this, _Button_ro, "f").disconnect();
|
|
264
|
+
if (!__classPrivateFieldGet(this, _Button_span, "f"))
|
|
265
|
+
return;
|
|
266
|
+
const span = __classPrivateFieldGet(this, _Button_span, "f");
|
|
267
|
+
readTask(() => {
|
|
268
|
+
this.tooltip = isEllipsisActive(span);
|
|
269
|
+
});
|
|
270
|
+
__classPrivateFieldSet(this, _Button_ro, new ResizeObserver(([spanEntry]) => {
|
|
271
|
+
this.tooltip = isEllipsisActive(spanEntry.target);
|
|
272
|
+
}), "f");
|
|
273
|
+
__classPrivateFieldGet(this, _Button_ro, "f").observe(__classPrivateFieldGet(this, _Button_span, "f"));
|
|
274
|
+
}
|
|
275
|
+
/* DEPRECATED: will be removed by september 2026 */
|
|
276
|
+
iconOnlyChanged() {
|
|
277
|
+
this.tooltip = this.iconOnly;
|
|
278
|
+
}
|
|
279
|
+
componentWillLoad() {
|
|
280
|
+
__classPrivateFieldGet(this, _Button_instances, "m", _Button_defineGetter).call(this, 'form', () => this.internals.form);
|
|
281
|
+
__classPrivateFieldGet(this, _Button_instances, "m", _Button_defineGetter).call(this, 'willValidate', () => this.internals.willValidate);
|
|
282
|
+
__classPrivateFieldGet(this, _Button_instances, "m", _Button_defineGetter).call(this, 'validity', () => this.internals.validity);
|
|
283
|
+
__classPrivateFieldGet(this, _Button_instances, "m", _Button_defineGetter).call(this, 'validationMessage', () => this.internals.validationMessage);
|
|
284
|
+
__classPrivateFieldGet(this, _Button_instances, "m", _Button_defineGetter).call(this, 'labels', () => this.internals.labels);
|
|
285
|
+
this.hrefChanged();
|
|
286
|
+
this.tabindexChanged(this.host.getAttribute('tabindex') ?? '0');
|
|
287
|
+
this.disabledChanged();
|
|
288
|
+
}
|
|
289
|
+
componentDidLoad() {
|
|
290
|
+
this.textChanged();
|
|
291
|
+
/* DEPRECATED: will be removed by september 2026 */
|
|
292
|
+
this.iconOnlyChanged();
|
|
293
|
+
}
|
|
294
|
+
disconnectedCallback() {
|
|
295
|
+
if (__classPrivateFieldGet(this, _Button_ro, "f"))
|
|
296
|
+
__classPrivateFieldGet(this, _Button_ro, "f").disconnect();
|
|
297
|
+
}
|
|
298
|
+
render() {
|
|
299
|
+
const Tag = this.href === undefined ? 'button' : 'a';
|
|
300
|
+
return (h("div", { key: '5054db1b3354d932b0ec1f12a93958d8d7813248', class: "qds-container", onClick: __classPrivateFieldGet(this, _Button_onClick, "f"), onKeyDown: preventDefault, onKeyUp: preventDefault, onKeyPress: preventDefault, "aria-hidden": "true" }, h(Tag, { key: '409fa13363df964507be7e4a83c5f9c84c32fb56', class: {
|
|
301
|
+
'qds-button': true,
|
|
302
|
+
'qds-disabled': Tag === 'a' ? __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedDisabled_get) : false,
|
|
303
|
+
/* DEPRECATED: will be removed by september 2026 */
|
|
304
|
+
'qds-icon-only': __classPrivateFieldGet(this, _Button_instances, "a", _Button_iconOnly_get),
|
|
305
|
+
}, "data-importance": __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedImportance_get), "data-size": __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedSize_get), "data-action": __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedAction_get), disabled: Tag === 'a' ? undefined : this.disabled, download: Tag === 'a' ? this.download : undefined, formAction: this.formAction, formMethod: this.formMethod, formNoValidate: this.formNoValidate, formTarget: this.formTarget, href: Tag === 'a' ? this.href : undefined, name: Tag === 'a' ? undefined : this.name, ref: __classPrivateFieldGet(this, _Button_buttonRef, "f"), rel: Tag === 'a' ? this.rel : undefined, tabIndex: -1, target: Tag === 'a' ? this.target : undefined, type: Tag === 'a' ? undefined : __classPrivateFieldGet(this, _Button_instances, "a", _Button_buttonType_get), value: Tag === 'a' ? undefined : this.value }, this.iconName !== undefined && this.iconName !== '' && (h("qds-icon", { key: 'd784fbf3badc14df36b1ac9fa354d03a60eef2d4', class: "qds-icon", "data-size": __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedSize_get), library: this.iconLibrary, name: this.iconName })), !__classPrivateFieldGet(this, _Button_instances, "a", _Button_iconOnly_get) && (
|
|
306
|
+
/* DEPRECATED: will be removed by september 2026 */
|
|
307
|
+
h("span", { key: '3aab08349fefe93cae8702f816befae266f98a6a', class: "qds-overflow", "data-size": __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedSize_get), ref: __classPrivateFieldGet(this, _Button_spanRef, "f") }, this.text)), isIndicator(this.badge) && (h("qds-badge-indicator", { key: '1e328f7471a1d5b5ec1cc2f45bde6c58e77d9b22', class: "qds-indicator", status: this.badgeIndicatorStatus, description: this.badgeDescription, size: __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedSize_get), strokeRing: true })), isCounter(this.badge) && (h("qds-badge-counter", { key: 'b033e659fdd37de19534067ed28ca694f5674ded', class: {
|
|
308
|
+
/* DEPRECATED: will be removed by september 2026 */
|
|
309
|
+
'qds-indicator': __classPrivateFieldGet(this, _Button_instances, "a", _Button_iconOnly_get),
|
|
310
|
+
}, description: this.badgeDescription, importance: __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedImportance_get), size: __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedSize_get), strokeRing: true, value: this.badge })), __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedActionIcon_get) !== undefined && (h("qds-icon", { key: '3f27c4969412f2a3dc14aa1ab137c04c19231953', class: "qds-icon qds-action", "data-size": __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedSize_get), library: "core", name: __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedActionIcon_get) }))), h("div", { key: '347df81b48ec9318c0ba049f56cb1a63046a7fd6', class: {
|
|
311
|
+
'qds-focus-ring': true,
|
|
312
|
+
/* DEPRECATED: will be removed by september 2026 */
|
|
313
|
+
'qds-icon-only': __classPrivateFieldGet(this, _Button_instances, "a", _Button_iconOnly_get),
|
|
314
|
+
}, "data-importance": __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedImportance_get), "data-size": __classPrivateFieldGet(this, _Button_instances, "a", _Button_computedSize_get) }), this.tooltip && (h("qds-tooltip", { key: 'd97c38bab772dc277db8f058fce4ea21ce015251', ref: __classPrivateFieldGet(this, _Button_tooltipRef, "f"), placement: this.tooltipPlacement }, this.text))));
|
|
315
|
+
}
|
|
316
|
+
static get formAssociated() { return true; }
|
|
317
|
+
get host() { return getElement(this); }
|
|
318
|
+
static get watchers() { return {
|
|
319
|
+
"disabled": ["disabledChanged"],
|
|
320
|
+
"href": ["hrefChanged"],
|
|
321
|
+
"tabindex": ["tabindexChanged"],
|
|
322
|
+
"text": ["textChanged"],
|
|
323
|
+
"iconOnly": ["iconOnlyChanged"]
|
|
324
|
+
}; }
|
|
325
|
+
};
|
|
326
|
+
_Button_savedTabIndex = new WeakMap(), _Button_button = new WeakMap(), _Button_span = new WeakMap(), _Button_ro = new WeakMap(), _Button_buttonRef = new WeakMap(), _Button_spanRef = new WeakMap(), _Button_tooltipRef = new WeakMap(), _Button_onClick = new WeakMap(), _Button_instances = new WeakSet(), _Button_buttonType_get = function _Button_buttonType_get() {
|
|
73
327
|
if (this.type === undefined)
|
|
74
|
-
|
|
328
|
+
return this.internals.form ? 'submit' : 'button';
|
|
75
329
|
return this.type;
|
|
76
|
-
|
|
77
|
-
get iconOnly() {
|
|
330
|
+
}, _Button_iconOnly_get = function _Button_iconOnly_get() {
|
|
78
331
|
const hasIcon = this.iconName !== undefined && this.iconName !== '';
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
332
|
+
return hasIcon && this.iconOnly;
|
|
333
|
+
}, _Button_computedAction_get = function _Button_computedAction_get() {
|
|
334
|
+
switch (this.action) {
|
|
335
|
+
case 'dropdown':
|
|
336
|
+
case 'dropdown-close':
|
|
337
|
+
case 'next': {
|
|
338
|
+
return this.action;
|
|
339
|
+
}
|
|
340
|
+
default: {
|
|
341
|
+
return undefined;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}, _Button_computedActionIcon_get = function _Button_computedActionIcon_get() {
|
|
345
|
+
switch (this.action) {
|
|
346
|
+
case 'dropdown':
|
|
347
|
+
case 'next': {
|
|
348
|
+
return this.action;
|
|
349
|
+
}
|
|
350
|
+
case 'dropdown-close': {
|
|
351
|
+
return 'dropdown';
|
|
352
|
+
}
|
|
353
|
+
default: {
|
|
354
|
+
return undefined;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}, _Button_computedDisabled_get = function _Button_computedDisabled_get() {
|
|
83
358
|
return this.disabled ?? false;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
359
|
+
}, _Button_computedImportance_get = function _Button_computedImportance_get() {
|
|
360
|
+
switch (this.importance) {
|
|
361
|
+
case 'emphasized':
|
|
362
|
+
case 'subdued':
|
|
363
|
+
case 'destructive':
|
|
364
|
+
case 'subdued-destructive': {
|
|
365
|
+
return this.importance;
|
|
366
|
+
}
|
|
367
|
+
default: {
|
|
368
|
+
return 'standard';
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}, _Button_computedSize_get = function _Button_computedSize_get() {
|
|
372
|
+
switch (this.size) {
|
|
373
|
+
case 'small':
|
|
374
|
+
case 'large':
|
|
375
|
+
case 'hero': {
|
|
376
|
+
return this.size;
|
|
377
|
+
}
|
|
378
|
+
default: {
|
|
379
|
+
return 'standard';
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}, _Button_updateAriaLabel = function _Button_updateAriaLabel() {
|
|
383
|
+
if (this.badge !== undefined && this.badgeDescription !== undefined) {
|
|
384
|
+
this.internals.ariaLabel = `${this.text} ${isIndicator(this.badge) ? '' : this.badge} ${this.badgeDescription}`;
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
if (this.target !== undefined &&
|
|
388
|
+
this.target === '_blank' &&
|
|
389
|
+
this.href !== undefined) {
|
|
390
|
+
this.internals.ariaLabel = `${this.text} Opens in a new tab`;
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
this.internals.ariaLabel = this.text;
|
|
394
|
+
}, _Button_defineGetter = function _Button_defineGetter(p, get) {
|
|
395
|
+
Object.defineProperty(this.host, p, { enumerable: true, get });
|
|
101
396
|
};
|
|
102
397
|
Button.style = buttonCss;
|
|
103
398
|
|
|
104
399
|
export { Button as qds_button };
|
|
105
|
-
|
|
106
|
-
//# sourceMappingURL=qds-button.entry.js.map
|
|
400
|
+
//# sourceMappingURL=qds-button.entry.js.map
|