@quartzds/core 1.0.0-beta.9 → 1.0.0-beta.90
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/README.md +5 -5
- package/components/index.d.ts +48 -0
- package/components/index.js +60 -28
- package/components/index.js.map +1 -1
- package/components/p-2806fee1.js +1887 -0
- package/components/p-2806fee1.js.map +1 -0
- package/components/p-3c48ff53.js +103 -0
- package/components/p-3c48ff53.js.map +1 -0
- package/components/p-688c90f6.js +267 -0
- package/components/p-688c90f6.js.map +1 -0
- package/components/p-8abba29b.js +204 -0
- package/components/p-8abba29b.js.map +1 -0
- package/components/p-a020ece3.js +142 -0
- package/components/p-a020ece3.js.map +1 -0
- package/components/p-a6310886.js +144 -0
- package/components/p-a6310886.js.map +1 -0
- package/components/p-adefd438.js +404 -0
- package/components/p-adefd438.js.map +1 -0
- package/components/p-b4c302d4.js +91 -0
- package/components/p-b4c302d4.js.map +1 -0
- package/components/p-ba880369.js +256 -0
- package/components/p-ba880369.js.map +1 -0
- package/components/p-c80f112a.js +408 -0
- package/components/p-c80f112a.js.map +1 -0
- package/components/p-d107c90c.js +27 -0
- package/components/p-d107c90c.js.map +1 -0
- package/components/p-fac26e20.js +111 -0
- package/components/p-fac26e20.js.map +1 -0
- package/components/{floating-ui.dom.esm.js → p-fdd0abae.js} +468 -416
- package/components/p-fdd0abae.js.map +1 -0
- package/components/p-fed0d11f.js +94 -0
- package/components/p-fed0d11f.js.map +1 -0
- package/components/qds-badge-counter.d.ts +11 -0
- package/components/qds-badge-counter.js +13 -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 +13 -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 +126 -0
- package/components/qds-breadcrumb-item.js.map +1 -0
- package/components/qds-button.d.ts +2 -2
- package/components/qds-button.js +3 -138
- package/components/qds-button.js.map +1 -1
- package/components/qds-checkbox.d.ts +2 -2
- package/components/qds-checkbox.js +3 -146
- package/components/qds-checkbox.js.map +1 -1
- package/components/qds-chip.d.ts +11 -0
- package/components/qds-chip.js +296 -0
- package/components/qds-chip.js.map +1 -0
- package/components/qds-dialog.d.ts +11 -0
- package/components/qds-dialog.js +126 -0
- package/components/qds-dialog.js.map +1 -0
- package/components/qds-divider.d.ts +2 -2
- package/components/qds-divider.js +3 -39
- package/components/qds-divider.js.map +1 -1
- package/components/qds-dropdown.d.ts +2 -2
- package/components/qds-dropdown.js +273 -239
- package/components/qds-dropdown.js.map +1 -1
- package/components/qds-form-message.d.ts +11 -0
- package/components/qds-form-message.js +112 -0
- package/components/qds-form-message.js.map +1 -0
- package/components/qds-icon.d.ts +2 -2
- package/components/qds-icon.js +3 -3
- package/components/qds-inline-link.d.ts +2 -2
- package/components/qds-inline-link.js +136 -73
- package/components/qds-inline-link.js.map +1 -1
- package/components/qds-input.d.ts +2 -2
- package/components/qds-input.js +489 -230
- package/components/qds-input.js.map +1 -1
- package/components/qds-label.d.ts +2 -2
- package/components/qds-label.js +3 -3
- package/components/qds-list-item.d.ts +11 -0
- package/components/qds-list-item.js +212 -0
- package/components/qds-list-item.js.map +1 -0
- package/components/qds-loader.d.ts +11 -0
- package/components/qds-loader.js +113 -0
- package/components/qds-loader.js.map +1 -0
- package/components/qds-nav-list-item.d.ts +11 -0
- package/components/qds-nav-list-item.js +162 -0
- package/components/qds-nav-list-item.js.map +1 -0
- package/components/qds-progress-bar.d.ts +11 -0
- package/components/qds-progress-bar.js +153 -0
- package/components/qds-progress-bar.js.map +1 -0
- package/components/qds-radio.d.ts +2 -2
- package/components/qds-radio.js +147 -93
- package/components/qds-radio.js.map +1 -1
- package/components/qds-select.d.ts +11 -0
- package/components/qds-select.js +361 -0
- package/components/qds-select.js.map +1 -0
- package/components/qds-standalone-link.d.ts +11 -0
- package/components/qds-standalone-link.js +174 -0
- package/components/qds-standalone-link.js.map +1 -0
- package/components/qds-switch.d.ts +2 -2
- package/components/qds-switch.js +221 -105
- package/components/qds-switch.js.map +1 -1
- package/components/qds-tab.d.ts +11 -0
- package/components/qds-tab.js +379 -0
- package/components/qds-tab.js.map +1 -0
- package/components/qds-tabbar.d.ts +11 -0
- package/components/qds-tabbar.js +407 -0
- package/components/qds-tabbar.js.map +1 -0
- package/components/qds-table-body.d.ts +11 -0
- package/components/qds-table-body.js +68 -0
- package/components/qds-table-body.js.map +1 -0
- package/components/qds-table-cell.d.ts +11 -0
- package/components/qds-table-cell.js +71 -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 +73 -0
- package/components/qds-table-head-cell.js.map +1 -0
- package/components/qds-table-head.d.ts +11 -0
- package/components/qds-table-head.js +68 -0
- package/components/qds-table-head.js.map +1 -0
- package/components/qds-table-row.d.ts +11 -0
- package/components/qds-table-row.js +68 -0
- package/components/qds-table-row.js.map +1 -0
- package/components/qds-table.d.ts +11 -0
- package/components/qds-table.js +68 -0
- package/components/qds-table.js.map +1 -0
- package/components/qds-tag.d.ts +11 -0
- package/components/qds-tag.js +13 -0
- package/components/qds-tag.js.map +1 -0
- package/components/qds-textarea.d.ts +2 -2
- package/components/qds-textarea.js +331 -193
- package/components/qds-textarea.js.map +1 -1
- package/components/qds-title.d.ts +2 -2
- package/components/qds-title.js +3 -84
- package/components/qds-title.js.map +1 -1
- package/components/qds-tooltip.d.ts +2 -2
- package/components/qds-tooltip.js +3 -315
- package/components/qds-tooltip.js.map +1 -1
- package/dist/cjs/app-globals-c4cf08df.js +12 -0
- package/dist/cjs/app-globals-c4cf08df.js.map +1 -0
- package/dist/cjs/controls-ee3d2ec8.js +31 -0
- package/dist/cjs/controls-ee3d2ec8.js.map +1 -0
- package/dist/cjs/{floating-ui.dom.esm-71fa96af.js → floating-ui.dom.esm-19b2b933.js} +468 -416
- package/dist/cjs/floating-ui.dom.esm-19b2b933.js.map +1 -0
- package/dist/cjs/helpers-10154521.js +217 -0
- package/dist/cjs/helpers-10154521.js.map +1 -0
- package/dist/cjs/index-523dd2e0.js +2149 -0
- package/dist/cjs/index-523dd2e0.js.map +1 -0
- package/dist/cjs/index.cjs.js +39 -27
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/library-41b19b9e.js +117 -0
- package/dist/cjs/library-41b19b9e.js.map +1 -0
- package/dist/cjs/loader.cjs.js +8 -6
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/qds-badge-counter_2.cjs.entry.js +151 -0
- package/dist/cjs/qds-badge-counter_2.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-breadcrumb-item.cjs.entry.js +96 -0
- package/dist/cjs/qds-breadcrumb-item.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-button.cjs.entry.js +321 -90
- package/dist/cjs/qds-button.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-checkbox.cjs.entry.js +207 -99
- package/dist/cjs/qds-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-chip.cjs.entry.js +256 -0
- package/dist/cjs/qds-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-dialog.cjs.entry.js +108 -0
- package/dist/cjs/qds-dialog.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-divider.cjs.entry.js +60 -18
- package/dist/cjs/qds-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-dropdown.cjs.entry.js +232 -206
- package/dist/cjs/qds-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-form-message.cjs.entry.js +86 -0
- package/dist/cjs/qds-form-message.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-icon.cjs.entry.js +113 -90
- package/dist/cjs/qds-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-inline-link.cjs.entry.js +99 -46
- package/dist/cjs/qds-inline-link.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-input.cjs.entry.js +404 -185
- package/dist/cjs/qds-input.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-label.cjs.entry.js +102 -24
- package/dist/cjs/qds-label.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-list-item.cjs.entry.js +157 -0
- package/dist/cjs/qds-list-item.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-loader.cjs.entry.js +94 -0
- package/dist/cjs/qds-loader.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-nav-list-item.cjs.entry.js +124 -0
- package/dist/cjs/qds-nav-list-item.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-progress-bar.cjs.entry.js +135 -0
- package/dist/cjs/qds-progress-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-radio.cjs.entry.js +102 -57
- package/dist/cjs/qds-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-select.cjs.entry.js +323 -0
- package/dist/cjs/qds-select.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-standalone-link.cjs.entry.js +134 -0
- package/dist/cjs/qds-standalone-link.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-switch.cjs.entry.js +193 -64
- package/dist/cjs/qds-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-tab.cjs.entry.js +299 -0
- package/dist/cjs/qds-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-tabbar.cjs.entry.js +349 -0
- package/dist/cjs/qds-tabbar.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-table-body.cjs.entry.js +54 -0
- package/dist/cjs/qds-table-body.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-table-cell.cjs.entry.js +54 -0
- package/dist/cjs/qds-table-cell.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-table-head-cell.cjs.entry.js +54 -0
- package/dist/cjs/qds-table-head-cell.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-table-head.cjs.entry.js +54 -0
- package/dist/cjs/qds-table-head.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-table-row.cjs.entry.js +54 -0
- package/dist/cjs/qds-table-row.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-table.cjs.entry.js +54 -0
- package/dist/cjs/qds-table.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-tag_2.cjs.entry.js +181 -0
- package/dist/cjs/qds-tag_2.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-textarea.cjs.entry.js +288 -153
- package/dist/cjs/qds-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/qds-tooltip.cjs.entry.js +332 -260
- package/dist/cjs/qds-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/qds.cjs.js +15 -13
- package/dist/cjs/qds.cjs.js.map +1 -1
- package/dist/custom-elements.json +8707 -2149
- package/dist/docs.d.ts +344 -240
- package/dist/docs.json +9494 -3054
- package/dist/esm/app-globals-8ced3a41.js +10 -0
- package/dist/esm/app-globals-8ced3a41.js.map +1 -0
- package/dist/esm/controls-a4768aaf.js +27 -0
- package/dist/esm/controls-a4768aaf.js.map +1 -0
- package/dist/esm/{floating-ui.dom.esm-f96ac766.js → floating-ui.dom.esm-61986f35.js} +468 -416
- package/dist/esm/floating-ui.dom.esm-61986f35.js.map +1 -0
- package/dist/esm/helpers-2e4ca34d.js +204 -0
- package/dist/esm/helpers-2e4ca34d.js.map +1 -0
- package/dist/esm/index-b1d6acd2.js +2118 -0
- package/dist/esm/index-b1d6acd2.js.map +1 -0
- package/dist/esm/index.js +39 -28
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/library-2e5458af.js +113 -0
- package/dist/esm/library-2e5458af.js.map +1 -0
- package/dist/esm/loader.js +9 -7
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/qds-badge-counter_2.entry.js +146 -0
- package/dist/esm/qds-badge-counter_2.entry.js.map +1 -0
- package/dist/esm/qds-breadcrumb-item.entry.js +92 -0
- package/dist/esm/qds-breadcrumb-item.entry.js.map +1 -0
- package/dist/esm/qds-button.entry.js +321 -90
- package/dist/esm/qds-button.entry.js.map +1 -1
- package/dist/esm/qds-checkbox.entry.js +207 -99
- package/dist/esm/qds-checkbox.entry.js.map +1 -1
- package/dist/esm/qds-chip.entry.js +252 -0
- package/dist/esm/qds-chip.entry.js.map +1 -0
- package/dist/esm/qds-dialog.entry.js +104 -0
- package/dist/esm/qds-dialog.entry.js.map +1 -0
- package/dist/esm/qds-divider.entry.js +60 -18
- package/dist/esm/qds-divider.entry.js.map +1 -1
- package/dist/esm/qds-dropdown.entry.js +232 -206
- package/dist/esm/qds-dropdown.entry.js.map +1 -1
- package/dist/esm/qds-form-message.entry.js +82 -0
- package/dist/esm/qds-form-message.entry.js.map +1 -0
- package/dist/esm/qds-icon.entry.js +113 -90
- package/dist/esm/qds-icon.entry.js.map +1 -1
- package/dist/esm/qds-inline-link.entry.js +99 -46
- package/dist/esm/qds-inline-link.entry.js.map +1 -1
- package/dist/esm/qds-input.entry.js +404 -185
- package/dist/esm/qds-input.entry.js.map +1 -1
- package/dist/esm/qds-label.entry.js +102 -24
- package/dist/esm/qds-label.entry.js.map +1 -1
- package/dist/esm/qds-list-item.entry.js +153 -0
- package/dist/esm/qds-list-item.entry.js.map +1 -0
- package/dist/esm/qds-loader.entry.js +90 -0
- package/dist/esm/qds-loader.entry.js.map +1 -0
- package/dist/esm/qds-nav-list-item.entry.js +120 -0
- package/dist/esm/qds-nav-list-item.entry.js.map +1 -0
- package/dist/esm/qds-progress-bar.entry.js +131 -0
- package/dist/esm/qds-progress-bar.entry.js.map +1 -0
- package/dist/esm/qds-radio.entry.js +102 -57
- package/dist/esm/qds-radio.entry.js.map +1 -1
- package/dist/esm/qds-select.entry.js +319 -0
- package/dist/esm/qds-select.entry.js.map +1 -0
- package/dist/esm/qds-standalone-link.entry.js +130 -0
- package/dist/esm/qds-standalone-link.entry.js.map +1 -0
- package/dist/esm/qds-switch.entry.js +193 -64
- package/dist/esm/qds-switch.entry.js.map +1 -1
- package/dist/esm/qds-tab.entry.js +295 -0
- package/dist/esm/qds-tab.entry.js.map +1 -0
- package/dist/esm/qds-tabbar.entry.js +345 -0
- package/dist/esm/qds-tabbar.entry.js.map +1 -0
- package/dist/esm/qds-table-body.entry.js +50 -0
- package/dist/esm/qds-table-body.entry.js.map +1 -0
- package/dist/esm/qds-table-cell.entry.js +50 -0
- package/dist/esm/qds-table-cell.entry.js.map +1 -0
- package/dist/esm/qds-table-head-cell.entry.js +50 -0
- package/dist/esm/qds-table-head-cell.entry.js.map +1 -0
- package/dist/esm/qds-table-head.entry.js +50 -0
- package/dist/esm/qds-table-head.entry.js.map +1 -0
- package/dist/esm/qds-table-row.entry.js +50 -0
- package/dist/esm/qds-table-row.entry.js.map +1 -0
- package/dist/esm/qds-table.entry.js +50 -0
- package/dist/esm/qds-table.entry.js.map +1 -0
- package/dist/esm/qds-tag_2.entry.js +176 -0
- package/dist/esm/qds-tag_2.entry.js.map +1 -0
- package/dist/esm/qds-textarea.entry.js +288 -153
- package/dist/esm/qds-textarea.entry.js.map +1 -1
- package/dist/esm/qds-tooltip.entry.js +332 -260
- package/dist/esm/qds-tooltip.entry.js.map +1 -1
- package/dist/esm/qds.js +16 -14
- package/dist/esm/qds.js.map +1 -1
- 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 +160 -0
- package/dist/types/components/button/button.d.ts +272 -194
- package/dist/types/components/checkbox/checkbox.d.ts +130 -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 +35 -0
- package/dist/types/components/divider/divider.d.ts +13 -9
- package/dist/types/components/dropdown/dropdown.d.ts +107 -125
- package/dist/types/components/form-message/form-message.d.ts +42 -0
- 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/inline-link/inline-link.d.ts +208 -191
- package/dist/types/components/input/input.d.ts +415 -368
- package/dist/types/components/label/label.d.ts +26 -24
- package/dist/types/components/list-item/list-item.d.ts +100 -0
- package/dist/types/components/loader/loader.d.ts +27 -0
- package/dist/types/components/nav-list-item/nav-list-item.d.ts +67 -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 +203 -0
- package/dist/types/components/shared.d.ts +6 -0
- package/dist/types/components/standalone-link/standalone-link.d.ts +233 -0
- package/dist/types/components/switch/switch.d.ts +114 -107
- package/dist/types/components/tab/tab.d.ts +160 -0
- package/dist/types/components/tabbar/tabbar.d.ts +47 -0
- package/dist/types/components/table/table.d.ts +15 -0
- package/dist/types/components/table-body/table-body.d.ts +15 -0
- package/dist/types/components/table-cell/table-cell.d.ts +32 -0
- package/dist/types/components/table-head/table-head.d.ts +15 -0
- package/dist/types/components/table-head-cell/table-head-cell.d.ts +56 -0
- package/dist/types/components/table-row/table-row.d.ts +15 -0
- package/dist/types/components/tag/tag.d.ts +55 -0
- package/dist/types/components/textarea/textarea.d.ts +285 -300
- package/dist/types/components/title/title.d.ts +39 -32
- package/dist/types/components/tooltip/tooltip.d.ts +123 -137
- package/dist/types/components.d.ts +3928 -820
- package/dist/types/helpers.d.ts +15 -16
- package/dist/types/index.d.ts +2 -1
- package/dist/types/interface-overrides.d.ts +211 -0
- package/dist/types/qds-test.d.ts +22 -11
- package/dist/types/stencil-public-runtime.d.ts +55 -15
- package/dist/types/utils.d.ts +11 -4
- package/dist/vscode.html-custom-data.json +1523 -209
- package/hydrate/index.d.ts +59 -18
- package/hydrate/index.js +25682 -8977
- package/hydrate/index.mjs +26622 -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 +53 -89
- package/styles/core.css +137 -14
- 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 -175
- 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-71fa96af.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-0a619eeb.js +0 -62
- package/dist/cjs/library-0a619eeb.js.map +0 -1
- package/dist/cjs/qds-title.cjs.entry.js +0 -66
- package/dist/cjs/qds-title.cjs.entry.js.map +0 -1
- package/dist/esm/floating-ui.dom.esm-f96ac766.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-021aca11.js +0 -58
- package/dist/esm/library-021aca11.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-title.entry.js +0 -62
- package/dist/esm/qds-title.entry.js.map +0 -1
- package/dist/types/components/create-story.d.ts +0 -5
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import type { ComponentInterface } from '../../stencil-public-runtime';
|
|
2
|
+
import type { AutoComplete } from '../controls';
|
|
3
|
+
import type { Size } from '../shared';
|
|
4
|
+
export type SelectType = 'select-multiple' | 'select-one';
|
|
5
|
+
/**
|
|
6
|
+
* The `<qds-select>` element represents a control that provides a menu of
|
|
7
|
+
* options.
|
|
8
|
+
*
|
|
9
|
+
* @see https://quartz.se.com/build/components/select
|
|
10
|
+
*/
|
|
11
|
+
export declare class Select implements ComponentInterface {
|
|
12
|
+
#private;
|
|
13
|
+
/**
|
|
14
|
+
* The select's size.
|
|
15
|
+
*
|
|
16
|
+
* > ***NOTE:*** The native [`size` HTML attribute] is not supported. CSS
|
|
17
|
+
* `height` should be used instead if this functionality is needed.
|
|
18
|
+
*
|
|
19
|
+
* [`size` HTML attribute]: https://developer.mozilla.org/docs/Web/HTML/Attributes/size
|
|
20
|
+
*/
|
|
21
|
+
readonly size?: Size;
|
|
22
|
+
/**
|
|
23
|
+
* Provides a hint for a [user agent's][] autocomplete feature. See
|
|
24
|
+
* [the HTML `autocomplete` attribute][] for a complete list of values and
|
|
25
|
+
* details on how to use `autoComplete`.
|
|
26
|
+
*
|
|
27
|
+
* [user agent's]: https://developer.mozilla.org/docs/Glossary/User_agent
|
|
28
|
+
* [the HTML `autocomplete` attribute]: https://developer.mozilla.org/docs/Web/HTML/Attributes/autocomplete
|
|
29
|
+
*
|
|
30
|
+
* @webnative
|
|
31
|
+
*/
|
|
32
|
+
readonly autoComplete?: AutoComplete;
|
|
33
|
+
/**
|
|
34
|
+
* Prevents the select from being interacted with: it cannot be pressed or
|
|
35
|
+
* focused.
|
|
36
|
+
*
|
|
37
|
+
* @webnative
|
|
38
|
+
*/
|
|
39
|
+
readonly disabled?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The [`<form>`][] element to associate the select with (its form owner).
|
|
42
|
+
*
|
|
43
|
+
* The value of this attribute must be the id of a `<form>` in the same
|
|
44
|
+
* document. If this attribute is not set, the `<qds-select>` is associated
|
|
45
|
+
* with its ancestor `<form>` element, if any.
|
|
46
|
+
*
|
|
47
|
+
* This attribute lets you associate `<qds-select>` elements to `<form>`s
|
|
48
|
+
* anywhere in the document, not just inside a `<form>`. It can also override
|
|
49
|
+
* an ancestor `<form>` element.
|
|
50
|
+
*
|
|
51
|
+
* [`<form>`]: https://developer.mozilla.org/docs/Web/HTML/Element/form
|
|
52
|
+
*
|
|
53
|
+
* @readonly
|
|
54
|
+
* @webnative
|
|
55
|
+
*/
|
|
56
|
+
readonly form: ElementInternals['form'] | string;
|
|
57
|
+
/**
|
|
58
|
+
* Returns the number of elements in the [`<option>`s collection][].
|
|
59
|
+
*
|
|
60
|
+
* [`<option>`s collection]: https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection
|
|
61
|
+
*
|
|
62
|
+
* @readonly
|
|
63
|
+
* @webnative
|
|
64
|
+
*/
|
|
65
|
+
readonly length: HTMLSelectElement['length'];
|
|
66
|
+
/**
|
|
67
|
+
* Indicates that multiple options can be selected in the list. If it is not
|
|
68
|
+
* specified, then only one option can be selected at a time. When `multiple`
|
|
69
|
+
* is specified, most browsers will show a scrolling list box instead of a
|
|
70
|
+
* single line dropdown.
|
|
71
|
+
*
|
|
72
|
+
* @webnative
|
|
73
|
+
*/
|
|
74
|
+
multiple?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* The name of the select, which is submitted with the form data.
|
|
77
|
+
*
|
|
78
|
+
* @webnative
|
|
79
|
+
*/
|
|
80
|
+
readonly name?: string;
|
|
81
|
+
/**
|
|
82
|
+
* An [`HTMLOptionsCollection`][] of the [`<option>`][] elements contained by
|
|
83
|
+
* the `<qds-select>` element.
|
|
84
|
+
*
|
|
85
|
+
* [`HTMLOptionsCollection`]: https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection
|
|
86
|
+
* [`<option>`]: https://developer.mozilla.org/docs/Web/HTML/Element/option
|
|
87
|
+
*
|
|
88
|
+
* @readonly
|
|
89
|
+
* @webnative
|
|
90
|
+
*/
|
|
91
|
+
readonly options: HTMLSelectElement['options'];
|
|
92
|
+
/**
|
|
93
|
+
* An `<option>` with a non-empty string value must be selected before this
|
|
94
|
+
* select can be submitted.
|
|
95
|
+
*
|
|
96
|
+
* See [Client-side validation] and the [HTML attribute: `required`] for more
|
|
97
|
+
* information.
|
|
98
|
+
*
|
|
99
|
+
* [Client-side validation]: https://developer.mozilla.org/docs/Web/HTML/Element/input#client-side_validation
|
|
100
|
+
* [HTML attribute: `required`]: https://developer.mozilla.org/docs/Web/HTML/Attributes/required
|
|
101
|
+
*
|
|
102
|
+
* @webnative
|
|
103
|
+
*/
|
|
104
|
+
readonly required?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* The index of the first or last selected [`<option>`][] element, depending
|
|
107
|
+
* on the value of `multiple`. The value `-1` indicates that no element is
|
|
108
|
+
* selected.
|
|
109
|
+
*
|
|
110
|
+
* [`<option>`]: https://developer.mozilla.org/docs/Web/HTML/Element/option
|
|
111
|
+
*
|
|
112
|
+
* @webnative
|
|
113
|
+
*/
|
|
114
|
+
selectedIndex: HTMLSelectElement['selectedIndex'];
|
|
115
|
+
/**
|
|
116
|
+
* Collection of the [`<option>`][] elements contained within the
|
|
117
|
+
* `<qds-select>` element that are currently selected.
|
|
118
|
+
*
|
|
119
|
+
* [`<option>`]: https://developer.mozilla.org/docs/Web/HTML/Element/option
|
|
120
|
+
*
|
|
121
|
+
* @readonly
|
|
122
|
+
* @webnative
|
|
123
|
+
*/
|
|
124
|
+
readonly selectedOptions: HTMLSelectElement['selectedOptions'];
|
|
125
|
+
/**
|
|
126
|
+
* Returns `select-multiple` if the `multiple` attribute is true;
|
|
127
|
+
* `select-one` otherwise.
|
|
128
|
+
*
|
|
129
|
+
* @readonly
|
|
130
|
+
* @webnative
|
|
131
|
+
*/
|
|
132
|
+
readonly type: SelectType;
|
|
133
|
+
/**
|
|
134
|
+
* The error message that would be shown to the user if the `<qds-select>`
|
|
135
|
+
* was to be checked for validity.
|
|
136
|
+
*
|
|
137
|
+
* @readonly
|
|
138
|
+
* @webnative
|
|
139
|
+
*/
|
|
140
|
+
readonly validationMessage: ElementInternals['validationMessage'];
|
|
141
|
+
/**
|
|
142
|
+
* The [`ValidityState`][] object for this `<qds-select>`.
|
|
143
|
+
*
|
|
144
|
+
* [`ValidityState`]: https://developer.mozilla.org/docs/Web/API/ValidityState
|
|
145
|
+
*
|
|
146
|
+
* @readonly
|
|
147
|
+
* @webnative
|
|
148
|
+
*/
|
|
149
|
+
readonly validity: ElementInternals['validity'];
|
|
150
|
+
/**
|
|
151
|
+
* The `value` property of the first selected [`<option>`][] element, or the
|
|
152
|
+
* empty string if no options are selected.
|
|
153
|
+
*
|
|
154
|
+
* [`<option>`]: https://developer.mozilla.org/docs/Web/HTML/Element/option
|
|
155
|
+
*
|
|
156
|
+
* @webnative
|
|
157
|
+
*/
|
|
158
|
+
value?: string | undefined;
|
|
159
|
+
/**
|
|
160
|
+
* True if `<qds-select>` will be validated when the form is submitted;
|
|
161
|
+
* false otherwise.
|
|
162
|
+
*
|
|
163
|
+
* @readonly
|
|
164
|
+
* @webnative
|
|
165
|
+
*/
|
|
166
|
+
readonly willValidate: ElementInternals['willValidate'];
|
|
167
|
+
private readonly internals;
|
|
168
|
+
/**
|
|
169
|
+
* Emitted when the select loses focus.
|
|
170
|
+
*/
|
|
171
|
+
private readonly blurEmitter;
|
|
172
|
+
/**
|
|
173
|
+
* Emitted when an alteration to the select's value is committed by the
|
|
174
|
+
* user.
|
|
175
|
+
*/
|
|
176
|
+
private readonly changeEmitter;
|
|
177
|
+
/**
|
|
178
|
+
* Emitted when the select gains focus.
|
|
179
|
+
*/
|
|
180
|
+
private readonly focusEmitter;
|
|
181
|
+
/**
|
|
182
|
+
* Emitted when the select's value changes.
|
|
183
|
+
*/
|
|
184
|
+
private readonly inputEmitter;
|
|
185
|
+
private readonly host;
|
|
186
|
+
private tabIndex?;
|
|
187
|
+
protected onClick(event: MouseEvent): void;
|
|
188
|
+
protected disabledChanged(): void;
|
|
189
|
+
protected selectedIndexChanged(): void;
|
|
190
|
+
protected tabindexChanged(newValue: string): void;
|
|
191
|
+
protected validationChanged(): void;
|
|
192
|
+
componentWillLoad(): void;
|
|
193
|
+
componentDidLoad(): void;
|
|
194
|
+
render(): any;
|
|
195
|
+
checkValidity: ElementInternals['checkValidity'];
|
|
196
|
+
reportValidity: ElementInternals['reportValidity'];
|
|
197
|
+
setCustomValidity: HTMLSelectElement['setCustomValidity'];
|
|
198
|
+
addItem: HTMLSelectElement['add'];
|
|
199
|
+
removeItem: (index: number) => void;
|
|
200
|
+
item: HTMLSelectElement['item'];
|
|
201
|
+
namedItem: HTMLSelectElement['namedItem'];
|
|
202
|
+
}
|
|
203
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type Importance = 'emphasized' | 'standard' | 'subdued';
|
|
2
|
+
export type Size = 'large' | 'small' | 'standard';
|
|
3
|
+
export type Status = 'error' | 'info' | 'success' | 'warning';
|
|
4
|
+
export type Target = '_blank' | '_parent' | '_self' | '_top';
|
|
5
|
+
export type LinkIcon = 'external-link' | 'external-new-tab-link' | 'new-tab-link';
|
|
6
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import type { ComponentInterface } from '../../stencil-public-runtime';
|
|
2
|
+
import type { LiteralUnion } from 'type-fest';
|
|
3
|
+
import type { Importance, Size, Target } from '../shared';
|
|
4
|
+
/**
|
|
5
|
+
* `<qds-standalone-link>` elements, with their `href` property, create a hyperlink
|
|
6
|
+
* to web pages, files, email addresses, locations in the same page, or
|
|
7
|
+
* anything else a URL can address.
|
|
8
|
+
*
|
|
9
|
+
* Content within each `<qds-standalone-link>` *should* indicate the standalone link's
|
|
10
|
+
* destination. If the `href` property is present, pressing the enter key while
|
|
11
|
+
* focused on the `<qds-standalone-link>` element will activate it.
|
|
12
|
+
*
|
|
13
|
+
* @slot Content to display for the standalone link.
|
|
14
|
+
* @see https://quartz.se.com/build/components/standalone-link
|
|
15
|
+
*/
|
|
16
|
+
export declare class StandaloneLink implements ComponentInterface {
|
|
17
|
+
#private;
|
|
18
|
+
/**
|
|
19
|
+
* Prevents the standalone link from being interacted with: it cannot be pressed
|
|
20
|
+
* or focused.
|
|
21
|
+
*/
|
|
22
|
+
readonly disabled: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The name of the icon to render.
|
|
25
|
+
*
|
|
26
|
+
* Available names depend on the icon library being used.
|
|
27
|
+
*/
|
|
28
|
+
readonly iconName?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The name of a registered icon library.
|
|
31
|
+
*/
|
|
32
|
+
readonly iconLibrary: string;
|
|
33
|
+
/**
|
|
34
|
+
* The standalone link's importance.
|
|
35
|
+
*/
|
|
36
|
+
readonly importance?: Importance;
|
|
37
|
+
/**
|
|
38
|
+
* The standalone link's size.
|
|
39
|
+
*/
|
|
40
|
+
readonly size?: Size;
|
|
41
|
+
/**
|
|
42
|
+
* Defines if the standalone link will display the visited state.
|
|
43
|
+
*/
|
|
44
|
+
readonly visitable: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Causes the browser to treat the linked URL as a download. Can be used with
|
|
47
|
+
* or without a `filename` value:
|
|
48
|
+
*
|
|
49
|
+
* - Without a value, the browser will suggest a filename/extension,
|
|
50
|
+
* generated from various sources:
|
|
51
|
+
*
|
|
52
|
+
* - The
|
|
53
|
+
* [`Content-Disposition`](https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Disposition)
|
|
54
|
+
* HTTP header
|
|
55
|
+
* - The final segment in the URL
|
|
56
|
+
* [path](https://developer.mozilla.org/docs/Web/API/URL/pathname)
|
|
57
|
+
* - The
|
|
58
|
+
* [media type](https://developer.mozilla.org/docs/Glossary/MIME_type)
|
|
59
|
+
* (from the
|
|
60
|
+
* [`Content-Type`](https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Type)
|
|
61
|
+
* header, the start of a
|
|
62
|
+
* [`data:` URL](https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/Data_URLs),
|
|
63
|
+
* or
|
|
64
|
+
* [`Blob.type`](https://developer.mozilla.org/docs/Web/API/Blob/type)
|
|
65
|
+
* for a
|
|
66
|
+
* [`blob:` URL](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL))
|
|
67
|
+
* - `filename`: defining a value suggests it as the filename. `/` and `\`
|
|
68
|
+
* characters are converted to underscores (`_`). Filesystems may forbid
|
|
69
|
+
* other characters in filenames, so browsers will adjust the suggested name
|
|
70
|
+
* if necessary.
|
|
71
|
+
*
|
|
72
|
+
* @webnative
|
|
73
|
+
*/
|
|
74
|
+
readonly download?: boolean | string;
|
|
75
|
+
/**
|
|
76
|
+
* The URL that the standalone link points to. Standalone links are not restricted to
|
|
77
|
+
* HTTP-based URLs — they can use any URL scheme supported by browsers:
|
|
78
|
+
*
|
|
79
|
+
* - Sections of a page with document fragments
|
|
80
|
+
* - Specific text portions with
|
|
81
|
+
* [text fragments](https://developer.mozilla.org/docs/Web/Text_fragments)
|
|
82
|
+
* - Pieces of media files with media fragments
|
|
83
|
+
* - Telephone numbers with `tel:` URLs
|
|
84
|
+
* - Email addresses with `mailto:` URLs
|
|
85
|
+
* - While web browsers may not support other URL schemes, websites can with
|
|
86
|
+
* [`registerProtocolHandler()`](https://developer.mozilla.org/docs/Web/API/Navigator/registerProtocolHandler)
|
|
87
|
+
*
|
|
88
|
+
* @webnative
|
|
89
|
+
*/
|
|
90
|
+
readonly href?: URL | string;
|
|
91
|
+
/**
|
|
92
|
+
* Hints at the human language of the linked URL. No built-in functionality.
|
|
93
|
+
* Allowed values are the same as
|
|
94
|
+
* [the global `lang` attribute](https://developer.mozilla.org/docs/Web/HTML/Global_attributes/lang).
|
|
95
|
+
*
|
|
96
|
+
* @webnative
|
|
97
|
+
*/
|
|
98
|
+
readonly hreflang?: string;
|
|
99
|
+
/**
|
|
100
|
+
* How much of the
|
|
101
|
+
* [referrer](https://developer.mozilla.org/docs/Web/HTTP/Headers/Referer)
|
|
102
|
+
* to send when following the standalone link.
|
|
103
|
+
*
|
|
104
|
+
* - `no-referrer`: The
|
|
105
|
+
* [`Referer`](https://developer.mozilla.org/docs/Web/HTTP/Headers/Referer)
|
|
106
|
+
* header will not be sent.
|
|
107
|
+
* - `no-referrer-when-downgrade`: The
|
|
108
|
+
* [`Referer`](https://developer.mozilla.org/docs/Web/HTTP/Headers/Referer)
|
|
109
|
+
* header will not be sent to
|
|
110
|
+
* [origin](https://developer.mozilla.org/docs/Glossary/Origin)s
|
|
111
|
+
* without [TLS](https://developer.mozilla.org/docs/Glossary/TLS)
|
|
112
|
+
* ([HTTPS](https://developer.mozilla.org/docs/Glossary/HTTPS)).
|
|
113
|
+
* - `origin`: The sent referrer will be limited to the origin of the
|
|
114
|
+
* referring page: its
|
|
115
|
+
* [scheme](https://developer.mozilla.org/docs/Learn/Common_questions/What_is_a_URL),
|
|
116
|
+
* [host](https://developer.mozilla.org/docs/Glossary/Host), and
|
|
117
|
+
* [port](https://developer.mozilla.org/docs/Glossary/Port).
|
|
118
|
+
* - `origin-when-cross-origin`: The referrer sent to other origins will be
|
|
119
|
+
* limited to the scheme, the host, and the port. Navigations on the same
|
|
120
|
+
* origin will still include the path.
|
|
121
|
+
* - `same-origin`: A referrer will be sent for
|
|
122
|
+
* [same origin](https://developer.mozilla.org/docs/Glossary/Same-origin_policy),
|
|
123
|
+
* but cross-origin requests will contain no referrer information.
|
|
124
|
+
* - `strict-origin`: Only send the origin of the document as the referrer
|
|
125
|
+
* when the protocol security level stays the same (HTTPS→HTTPS), but don't
|
|
126
|
+
* send it to a less secure destination (HTTPS→HTTP).
|
|
127
|
+
* - `strict-origin-when-cross-origin` (default): Send a full URL when
|
|
128
|
+
* performing a same-origin request, only send the origin when the protocol
|
|
129
|
+
* security level stays the same (HTTPS→HTTPS), and send no header to a less
|
|
130
|
+
* secure destination (HTTPS→HTTP).
|
|
131
|
+
* - `unsafe-url`: The referrer will include the origin and the path (but not the
|
|
132
|
+
* [fragment](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash),
|
|
133
|
+
* [password](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password),
|
|
134
|
+
* or [username](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/username)).
|
|
135
|
+
* **This value is unsafe** because it leaks origins and paths from
|
|
136
|
+
* TLS-protected resources to insecure origins.
|
|
137
|
+
*
|
|
138
|
+
* @webnative
|
|
139
|
+
*/
|
|
140
|
+
readonly referrerPolicy?: ReferrerPolicy;
|
|
141
|
+
/**
|
|
142
|
+
* The relationship of the linked URL as space-separated
|
|
143
|
+
* [link types](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel).
|
|
144
|
+
*
|
|
145
|
+
* The following list includes some of the most important existing keywords.
|
|
146
|
+
* Every keyword within a space-separated value should be unique within that
|
|
147
|
+
* value.
|
|
148
|
+
*
|
|
149
|
+
* - [`alternate`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel#attr-alternate):
|
|
150
|
+
* Alternate representations of the current document.
|
|
151
|
+
* - [`author`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel#attr-author):
|
|
152
|
+
* Author of the current document or article.
|
|
153
|
+
* - [`bookmark`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel#attr-bookmark):
|
|
154
|
+
* Permalink for the nearest ancestor section.
|
|
155
|
+
* - [`external`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel#attr-external):
|
|
156
|
+
* The referenced document is not part of the same site as the current
|
|
157
|
+
* document. An icon will be rendered next to the text if this value is
|
|
158
|
+
* specified.
|
|
159
|
+
* - [`help`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel#attr-help):
|
|
160
|
+
* Link to context-sensitive help.
|
|
161
|
+
* - [`license`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel#attr-license):
|
|
162
|
+
* Indicates that the main content of the current document is covered by the
|
|
163
|
+
* copyright license described by the referenced document.
|
|
164
|
+
* - [`me`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel/me):
|
|
165
|
+
* Indicates that the current document represents the person who owns the
|
|
166
|
+
* linked content.
|
|
167
|
+
* - [`next`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel#attr-next):
|
|
168
|
+
* Indicates that the current document is a part of a series and that the
|
|
169
|
+
* next document in the series is the referenced document.
|
|
170
|
+
* - [`nofollow`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel#attr-nofollow):
|
|
171
|
+
* Indicates that the current document's original author or publisher does
|
|
172
|
+
* not endorse the referenced document.
|
|
173
|
+
* - [`noopener`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel/noopener):
|
|
174
|
+
* Creates a top-level browsing context that is not an auxiliary browsing
|
|
175
|
+
* context if the hyperlink would create either of those, to begin with (i.e.,
|
|
176
|
+
* has an appropriate `target` attribute value).
|
|
177
|
+
* - [`noreferrer`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel#attr-noreferrer):
|
|
178
|
+
* No `Referer` header will be included. Additionally, has the same effect as
|
|
179
|
+
* `noopener`.
|
|
180
|
+
* - [`opener`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel#attr-opener):
|
|
181
|
+
* Creates an auxiliary browsing context if the hyperlink would otherwise
|
|
182
|
+
* create a top-level browsing context that is not an auxiliary browsing
|
|
183
|
+
* context (i.e., has "`_blank`" as `target` attribute value).
|
|
184
|
+
* - [`prev`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel#attr-prev):
|
|
185
|
+
* Indicates that the current document is a part of a series and that the
|
|
186
|
+
* previous document in the series is the referenced document.
|
|
187
|
+
* - [`search`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel#attr-search):
|
|
188
|
+
* Gives a link to a resource that can be used to search through the current
|
|
189
|
+
* document and its related pages.
|
|
190
|
+
* - [`tag`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel#attr-tag):
|
|
191
|
+
* Gives a tag (identified by the given address) that applies to the current
|
|
192
|
+
* document.
|
|
193
|
+
*
|
|
194
|
+
* @webnative
|
|
195
|
+
*/
|
|
196
|
+
readonly rel?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Where to display the linked URL, as the name for a browsing context (a
|
|
199
|
+
* tab, window, or
|
|
200
|
+
* [`<iframe>`](https://developer.mozilla.org/docs/Web/HTML/Element/iframe).
|
|
201
|
+
* The following keywords have special meanings for where to load the URL:
|
|
202
|
+
*
|
|
203
|
+
* - `_blank`: usually a new tab, but users can configure browsers to open a new
|
|
204
|
+
* window instead.
|
|
205
|
+
* - `_parent`: the parent browsing context of the current one. If no parent,
|
|
206
|
+
* behaves as `_self`.
|
|
207
|
+
* - `_self`: the current browsing context.
|
|
208
|
+
* - `_top`: the topmost browsing context (the "highest" context that's an
|
|
209
|
+
* ancestor of the current one). If no ancestors, behaves as `_self`.
|
|
210
|
+
*
|
|
211
|
+
* @webnative
|
|
212
|
+
*/
|
|
213
|
+
readonly target?: LiteralUnion<Target, string>;
|
|
214
|
+
/**
|
|
215
|
+
* Emitted when the standalone link loses focus.
|
|
216
|
+
*/
|
|
217
|
+
private readonly blurEmitter;
|
|
218
|
+
/**
|
|
219
|
+
* Emitted when the standalone link gains focus.
|
|
220
|
+
*/
|
|
221
|
+
private readonly focusEmitter;
|
|
222
|
+
private readonly host;
|
|
223
|
+
private linkIcon?;
|
|
224
|
+
private tabIndex?;
|
|
225
|
+
protected onClick(event: MouseEvent): void;
|
|
226
|
+
protected disabledChanged(): void;
|
|
227
|
+
protected tabindexChanged(newValue: string): void;
|
|
228
|
+
protected hrefTargetChanged(): void;
|
|
229
|
+
componentWillLoad(): void;
|
|
230
|
+
componentDidLoad(): void;
|
|
231
|
+
render(): any;
|
|
232
|
+
}
|
|
233
|
+
//# sourceMappingURL=standalone-link.d.ts.map
|
|
@@ -1,115 +1,122 @@
|
|
|
1
1
|
import type { ComponentInterface } from '../../stencil-public-runtime';
|
|
2
2
|
import type { Value } from '../controls';
|
|
3
|
-
|
|
3
|
+
import type { Size } from '../shared';
|
|
4
4
|
/**
|
|
5
5
|
* @see https://quartz.se.com/build/components/switch
|
|
6
6
|
*/
|
|
7
7
|
export declare class Switch implements ComponentInterface {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
8
|
+
#private;
|
|
9
|
+
/**
|
|
10
|
+
* Adds vertical margin to the switch for alignment.
|
|
11
|
+
*
|
|
12
|
+
* This is useful when creating inline layouts so that the first lines have
|
|
13
|
+
* the correct vertical centering.
|
|
14
|
+
*/
|
|
15
|
+
readonly inline: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The switches's size.
|
|
18
|
+
*/
|
|
19
|
+
readonly size?: Size;
|
|
20
|
+
/**
|
|
21
|
+
*Sets the switch's state.
|
|
22
|
+
*
|
|
23
|
+
* @webnative
|
|
24
|
+
*/
|
|
25
|
+
checked?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Prevents the switch from being interacted with: it cannot be pressed or
|
|
28
|
+
* focused.
|
|
29
|
+
*
|
|
30
|
+
* @webnative
|
|
31
|
+
*/
|
|
32
|
+
readonly disabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* The [`<form>`](https://developer.mozilla.org/docs/Web/HTML/Element/form)
|
|
35
|
+
* element to associate the switch with (its form owner).
|
|
36
|
+
*
|
|
37
|
+
* The value of this property must be the id of a `<form>` in the same
|
|
38
|
+
* document. If this property is not set, the `<qds-switch>` is associated
|
|
39
|
+
* with its ancestor `<form>` element, if any.
|
|
40
|
+
*
|
|
41
|
+
* This property lets you associate `<qds-switch>` elements to `<form>`s
|
|
42
|
+
* anywhere in the document, not just inside a `<form>`. It can also override
|
|
43
|
+
*an ancestor `<form>` element.
|
|
44
|
+
*
|
|
45
|
+
* @webnative
|
|
46
|
+
*/
|
|
47
|
+
readonly form: ElementInternals['form'] | string;
|
|
48
|
+
/**
|
|
49
|
+
* Returns a list of the [`<label>`][] elements associated with the
|
|
50
|
+
* `qds-switch` element.
|
|
51
|
+
*
|
|
52
|
+
* [`<label>`]: https://developer.mozilla.org/docs/Web/HTML/Element/label
|
|
53
|
+
*
|
|
54
|
+
* @readonly
|
|
55
|
+
* @webnative
|
|
56
|
+
*/
|
|
57
|
+
readonly labels: HTMLInputElement['labels'];
|
|
58
|
+
/**
|
|
59
|
+
* The name of the switch, which is submitted with the form data.
|
|
60
|
+
*
|
|
61
|
+
* @webnative
|
|
62
|
+
*/
|
|
63
|
+
readonly name?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The value of the switch, submitted as a name/value pair with form data.
|
|
66
|
+
*
|
|
67
|
+
* @webnative
|
|
68
|
+
*/
|
|
69
|
+
readonly value?: Value;
|
|
70
|
+
/**
|
|
71
|
+
* The error message that would be shown to the user if the `<qds-switch>`
|
|
72
|
+
* was to be checked for validity.
|
|
73
|
+
*
|
|
74
|
+
* @readonly
|
|
75
|
+
* @webnative
|
|
76
|
+
*/
|
|
77
|
+
readonly validationMessage: ElementInternals['validationMessage'];
|
|
78
|
+
/**
|
|
79
|
+
* The [`ValidityState`][] object for this `<qds-switch>`.
|
|
80
|
+
*
|
|
81
|
+
* [`ValidityState`]: https://developer.mozilla.org/docs/Web/API/ValidityState
|
|
82
|
+
*
|
|
83
|
+
* @readonly
|
|
84
|
+
* @webnative
|
|
85
|
+
*/
|
|
86
|
+
readonly validity: ElementInternals['validity'];
|
|
87
|
+
/**
|
|
88
|
+
* True if `<qds-switch>` will be validated when the form is submitted;
|
|
89
|
+
* false otherwise.
|
|
90
|
+
*
|
|
91
|
+
* @readonly
|
|
92
|
+
* @webnative
|
|
93
|
+
*/
|
|
94
|
+
readonly willValidate: ElementInternals['willValidate'];
|
|
95
|
+
private readonly internals;
|
|
96
|
+
/**
|
|
97
|
+
* Emitted when the switch loses focus.
|
|
98
|
+
*/
|
|
99
|
+
private readonly blurEmitter;
|
|
100
|
+
/**
|
|
101
|
+
* Emitted when a change to the switch's state is committed by the user.
|
|
102
|
+
*/
|
|
103
|
+
private readonly changeEmitter;
|
|
104
|
+
/**
|
|
105
|
+
* Emitted when the switch gains focus.
|
|
106
|
+
*/
|
|
107
|
+
private readonly focusEmitter;
|
|
108
|
+
private readonly host;
|
|
109
|
+
private tabIndex?;
|
|
110
|
+
private inheritedAttributes;
|
|
111
|
+
protected onClick(event: MouseEvent): void;
|
|
112
|
+
protected checkedChanged(): void;
|
|
113
|
+
protected disabledChanged(): void;
|
|
114
|
+
protected tabindexChanged(newValue: string): void;
|
|
115
|
+
protected valueChanged(): void;
|
|
116
|
+
componentWillLoad(): void;
|
|
117
|
+
render(): any;
|
|
118
|
+
checkValidity: ElementInternals['checkValidity'];
|
|
119
|
+
reportValidity: ElementInternals['reportValidity'];
|
|
120
|
+
setCustomValidity: HTMLInputElement['setCustomValidity'];
|
|
114
121
|
}
|
|
115
122
|
//# sourceMappingURL=switch.d.ts.map
|