@dubai-design-system/components-js 5.2.0 → 5.3.1
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 +92 -0
- package/MIGRATION.md +153 -18
- package/dist/cjs/dda-accordion.cjs.entry.js +3 -3
- package/dist/cjs/dda-alert.cjs.entry.js +5 -5
- package/dist/cjs/dda-attach-file.cjs.entry.js +3 -3
- package/dist/cjs/dda-avatar.cjs.entry.js +8 -8
- package/dist/{dda/dda-credit-card.entry.js → cjs/dda-banner-card.cjs.entry.js} +16 -16
- package/dist/cjs/dda-banner.cjs.entry.js +3 -3
- package/dist/cjs/dda-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/dda-button.cjs.entry.js +3 -3
- package/dist/cjs/dda-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/dda-chip.cjs.entry.js +3 -3
- package/dist/cjs/dda-credit-card.cjs.entry.js +3 -3
- package/dist/cjs/dda-creditcard-field.cjs.entry.js +4 -4
- package/dist/cjs/dda-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/dda-footer.cjs.entry.js +3 -3
- package/dist/cjs/dda-header.cjs.entry.js +208 -23
- package/dist/cjs/dda-home-banner.cjs.entry.js +9 -5
- package/dist/{dda/dda-tooltip.entry.js → cjs/dda-home-carousel.cjs.entry.js} +18 -36
- package/dist/cjs/dda-horizontal-stepper.cjs.entry.js +3 -3
- package/dist/cjs/dda-input.cjs.entry.js +3 -3
- package/dist/cjs/dda-link-button_2.cjs.entry.js +6 -6
- package/dist/cjs/dda-number-field.cjs.entry.js +3 -3
- package/dist/cjs/dda-pagination.cjs.entry.js +4 -4
- package/dist/cjs/dda-phonefield.cjs.entry.js +3 -3
- package/dist/cjs/dda-progressbar.cjs.entry.js +3 -3
- package/dist/cjs/dda-range-slider.cjs.entry.js +3 -3
- package/dist/cjs/dda-scroll-icon.cjs.entry.js +32 -0
- package/dist/cjs/dda-search-input.cjs.entry.js +2 -2
- package/dist/cjs/dda-segmented-tabs.cjs.entry.js +5 -5
- package/dist/cjs/dda-select.cjs.entry.js +84 -15
- package/dist/cjs/dda-sticky-footer.cjs.entry.js +41 -4
- package/dist/cjs/dda-tabs.cjs.entry.js +4 -4
- package/dist/cjs/dda-textarea.cjs.entry.js +1351 -16189
- package/dist/cjs/dda-toggle.cjs.entry.js +3 -3
- package/dist/cjs/dda-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/dda-ui-card.cjs.entry.js +3 -3
- package/dist/cjs/dda-vertical-stepper.cjs.entry.js +2 -2
- package/dist/cjs/dda.cjs.js +3 -30
- package/dist/cjs/{index-Na_7EWDR.js → index-CM4T__Je.js} +1 -1
- package/dist/cjs/index.cjs.js +0 -10
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/parse-json-prop-B0KWD8qe.js +38 -0
- package/dist/collection/collection-manifest.json +7 -4
- package/dist/collection/components/dda-accordion/dda-accordion.js +1 -1
- package/dist/collection/components/dda-alert/dda-alert.js +1 -1
- package/dist/collection/components/dda-attach-file/dda-attach-file.js +1 -1
- package/dist/collection/components/dda-avatar/dda-avatar.js +5 -5
- package/dist/collection/components/dda-banner/dda-banner.js +1 -1
- package/dist/collection/components/dda-banner-card/dda-banner-card.js +243 -0
- package/dist/collection/components/dda-button/dda-button.js +1 -1
- package/dist/collection/components/dda-checkbox/dda-checkbox.js +1 -1
- package/dist/collection/components/dda-chip/dda-chip.js +1 -1
- package/dist/collection/components/dda-credit-card/dda-credit-card.js +1 -1
- package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js +1 -1
- package/dist/collection/components/dda-dropdown/dda-dropdown.js +1 -1
- package/dist/collection/components/dda-footer/dda-footer.js +1 -1
- package/dist/collection/components/dda-header/dda-header.js +838 -88
- package/dist/collection/components/dda-header/dda-header.stories.js +200 -35
- package/dist/collection/components/dda-header/nav-model.js +69 -0
- package/dist/collection/components/dda-home-banner/dda-home-banner.js +46 -2
- package/dist/collection/components/dda-home-banner/dda-home-banner.stories.js +6 -0
- package/dist/collection/components/dda-home-banner/home-banner.css +10 -0
- package/dist/collection/components/dda-home-carousel/dda-home-carousel.js +164 -0
- package/dist/collection/components/dda-home-carousel/dda-home-carousel.stories.js +24 -0
- package/dist/collection/components/dda-input/dda-input.js +1 -1
- package/dist/collection/components/dda-link-button/dda-link-button.js +2 -2
- package/dist/collection/components/dda-number-field/dda-number-field.js +1 -1
- package/dist/collection/components/dda-pagination/dda-pagination.js +1 -1
- package/dist/collection/components/dda-phonefield/dda-phonefield.js +1 -1
- package/dist/collection/components/dda-progressbar/dda-progressbar.js +1 -1
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.css +233 -6
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.js +1 -1
- package/dist/collection/components/dda-range-slider/dda-range-slider.js +2 -2
- package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.css +72 -0
- package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.js +120 -0
- package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.stories.js +17 -0
- package/dist/collection/components/dda-select/dda-select.js +209 -18
- package/dist/collection/components/dda-select/dda-select.stories.js +68 -10
- package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +496 -5
- package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.stories.js +12 -1
- package/dist/collection/components/dda-tabs/dda-tabs.js +1 -1
- package/dist/collection/components/dda-textarea/dda-textarea.js +2 -2
- package/dist/collection/components/dda-toggle/dda-toggle.js +1 -1
- package/dist/collection/components/dda-tooltip/dda-tooltip.js +1 -1
- package/dist/collection/components/dda-ui-card/dda-ui-card.js +1 -1
- package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.css +29 -9
- package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js +1 -1
- package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js +1 -1
- package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js +1 -1
- package/dist/collection/global/global.css +233 -6
- package/dist/collection/utils/parse-json-prop.js +34 -0
- package/dist/components/dda-accordion.js +1 -59
- package/dist/components/dda-alert.js +1 -94
- package/dist/components/dda-attach-file.js +1 -138
- package/dist/components/dda-avatar.js +1 -107
- package/dist/components/dda-banner-card.d.ts +11 -0
- package/dist/components/dda-banner-card.js +1 -0
- package/dist/components/dda-banner.js +1 -57
- package/dist/components/dda-breadcrumb.js +1 -66
- package/dist/components/dda-button.js +1 -6
- package/dist/components/dda-checkbox.js +1 -59
- package/dist/components/dda-chip.js +1 -55
- package/dist/components/dda-credit-card.js +1 -54
- package/dist/components/dda-creditcard-field.js +1 -133
- package/dist/components/dda-dropdown.js +1 -113
- package/dist/components/dda-footer.js +1 -72
- package/dist/components/dda-header.js +1 -367
- package/dist/components/dda-home-banner.js +1 -249
- package/dist/components/dda-home-carousel.d.ts +11 -0
- package/dist/components/dda-home-carousel.js +1 -0
- package/dist/components/dda-horizontal-stepper.js +1 -69
- package/dist/components/dda-input.js +1 -92
- package/dist/components/dda-link-button.js +1 -6
- package/dist/components/dda-number-field.js +1 -127
- package/dist/components/dda-pagination.js +1 -133
- package/dist/components/dda-phonefield.js +1 -316
- package/dist/components/dda-progressbar.js +1 -58
- package/dist/components/dda-radiobutton.js +1 -6
- package/dist/components/dda-range-slider.js +1 -93
- package/dist/components/dda-scroll-icon.d.ts +11 -0
- package/dist/components/dda-scroll-icon.js +1 -0
- package/dist/components/dda-search-input.js +1 -102
- package/dist/components/dda-segmented-tabs.js +1 -133
- package/dist/components/dda-select.js +1 -219
- package/dist/components/dda-sticky-footer.js +1 -132
- package/dist/components/dda-tabs.js +1 -91
- package/dist/components/dda-textarea.js +1 -31277
- package/dist/components/dda-toggle.js +1 -55
- package/dist/components/dda-tooltip.js +1 -6
- package/dist/components/dda-ui-card.js +1 -71
- package/dist/components/dda-vertical-stepper.js +1 -72
- package/dist/components/index.js +1 -34
- package/dist/components/p-BUv5-HOm.js +1 -0
- package/dist/components/p-BvEnF2US.js +1 -0
- package/dist/components/{p-C2Cs3ruo.js → p-C8EPNbJC.js} +1 -1
- package/dist/components/p-CS5LPB9B.js +1 -0
- package/dist/components/p-CedhFs0i.js +1 -0
- package/dist/components/p-CvcFE821.js +1 -0
- package/dist/components/{p-D7sJgBDk.js → p-DHgv6zQy.js} +1 -1
- package/dist/components/p-kJRBkcMn.js +1 -0
- package/dist/dda/dda.css +46 -6385
- package/dist/dda/dda.esm.js +1 -47
- package/dist/dda/index.esm.js +1 -29
- package/dist/dda/p-074f8dab.entry.js +1 -0
- package/dist/dda/p-1a0d490e.entry.js +1 -0
- package/dist/dda/p-1c42a19b.entry.js +1 -0
- package/dist/dda/p-1eb0af5a.entry.js +1 -0
- package/dist/dda/p-215629d6.entry.js +1 -0
- package/dist/dda/{p-eed4a104.entry.js → p-221613e8.entry.js} +1 -1
- package/dist/dda/{p-3835f3b7.entry.js → p-284bc873.entry.js} +1 -1
- package/dist/dda/{p-98c59aa8.entry.js → p-2f99af01.entry.js} +1 -1
- package/dist/dda/p-3003acb0.entry.js +1 -0
- package/dist/dda/p-5b314403.entry.js +1 -0
- package/dist/dda/{p-32746429.entry.js → p-5b669c2f.entry.js} +1 -1
- package/dist/dda/p-5fe5c488.entry.js +1 -0
- package/dist/dda/{p-95b87c55.entry.js → p-6577d6b5.entry.js} +1 -1
- package/dist/dda/{p-95e1a389.entry.js → p-6b358fa8.entry.js} +1 -1
- package/dist/dda/{p-eecfe091.entry.js → p-6e6ce5c8.entry.js} +1 -1
- package/dist/dda/{p-d8fd3f73.entry.js → p-70a20025.entry.js} +1 -1
- package/dist/dda/p-78ff5172.entry.js +1 -0
- package/dist/dda/{p-489a3711.entry.js → p-7afdde8a.entry.js} +1 -1
- package/dist/dda/{p-1acc0fda.entry.js → p-7ba8071a.entry.js} +1 -1
- package/dist/dda/{p-96741f45.entry.js → p-7d20f926.entry.js} +1 -1
- package/dist/dda/p-806de72d.entry.js +1 -0
- package/dist/dda/{p-0a86a74c.entry.js → p-922d33f8.entry.js} +1 -1
- package/dist/dda/{p-c39d196d.entry.js → p-9a9e372d.entry.js} +1 -1
- package/dist/dda/{p-0574c9df.entry.js → p-9c3b7bf8.entry.js} +1 -1
- package/dist/dda/p-BJOt1fv7.js +2 -0
- package/dist/dda/p-CvcFE821.js +1 -0
- package/dist/dda/{p-ee6d56fc.entry.js → p-a19303b5.entry.js} +1 -1
- package/dist/dda/{p-87d647e7.entry.js → p-c7a4e410.entry.js} +1 -1
- package/dist/dda/{p-8de4f35e.entry.js → p-c9e411cb.entry.js} +1 -1
- package/dist/dda/{p-3d57e957.entry.js → p-cd1d47cb.entry.js} +1 -1
- package/dist/dda/p-cfdbbd1a.entry.js +1 -0
- package/dist/dda/{p-e660a594.entry.js → p-d114dea3.entry.js} +1 -1
- package/dist/dda/{p-16f94322.entry.js → p-db565a30.entry.js} +1 -1
- package/dist/dda/{p-d06c5daf.entry.js → p-e6043272.entry.js} +1 -1
- package/dist/dda/p-ef52ec1e.entry.js +1 -0
- package/dist/dda/{p-9c86dc30.entry.js → p-f2c9d77a.entry.js} +1 -1
- package/dist/dda/{p-2630152f.entry.js → p-faccb313.entry.js} +1 -1
- package/dist/dda/{p-9416d8ec.entry.js → p-fdf0dce8.entry.js} +1 -1
- package/dist/esm/dda-accordion.entry.js +3 -3
- package/dist/esm/dda-alert.entry.js +5 -5
- package/dist/esm/dda-attach-file.entry.js +3 -3
- package/dist/esm/dda-avatar.entry.js +8 -8
- package/dist/{dda/dda-tabs.entry.js → esm/dda-banner-card.entry.js} +14 -49
- package/dist/esm/dda-banner.entry.js +3 -3
- package/dist/esm/dda-breadcrumb.entry.js +2 -2
- package/dist/esm/dda-button.entry.js +3 -3
- package/dist/esm/dda-checkbox.entry.js +3 -3
- package/dist/esm/dda-chip.entry.js +3 -3
- package/dist/esm/dda-credit-card.entry.js +3 -3
- package/dist/esm/dda-creditcard-field.entry.js +4 -4
- package/dist/esm/dda-dropdown.entry.js +4 -4
- package/dist/esm/dda-footer.entry.js +3 -3
- package/dist/esm/dda-header.entry.js +208 -23
- package/dist/esm/dda-home-banner.entry.js +9 -5
- package/dist/{dda/dda-breadcrumb.entry.js → esm/dda-home-carousel.entry.js} +16 -30
- package/dist/esm/dda-horizontal-stepper.entry.js +3 -3
- package/dist/esm/dda-input.entry.js +3 -3
- package/dist/esm/dda-link-button_2.entry.js +6 -6
- package/dist/esm/dda-number-field.entry.js +3 -3
- package/dist/esm/dda-pagination.entry.js +4 -4
- package/dist/esm/dda-phonefield.entry.js +3 -3
- package/dist/esm/dda-progressbar.entry.js +3 -3
- package/dist/esm/dda-range-slider.entry.js +3 -3
- package/dist/esm/dda-scroll-icon.entry.js +30 -0
- package/dist/esm/dda-search-input.entry.js +2 -2
- package/dist/esm/dda-segmented-tabs.entry.js +5 -5
- package/dist/esm/dda-select.entry.js +84 -15
- package/dist/esm/dda-sticky-footer.entry.js +41 -4
- package/dist/esm/dda-tabs.entry.js +4 -4
- package/dist/esm/dda-textarea.entry.js +1351 -16189
- package/dist/esm/dda-toggle.entry.js +3 -3
- package/dist/esm/dda-tooltip.entry.js +3 -3
- package/dist/esm/dda-ui-card.entry.js +3 -3
- package/dist/esm/dda-vertical-stepper.entry.js +2 -2
- package/dist/esm/dda.js +4 -31
- package/dist/esm/{index-CI_UcUy5.js → index-BJOt1fv7.js} +1 -1
- package/dist/esm/index.js +0 -10
- package/dist/esm/loader.js +3 -3
- package/dist/esm/parse-json-prop-CvcFE821.js +36 -0
- package/dist/types/components/dda-banner-card/dda-banner-card.d.ts +25 -0
- package/dist/types/components/dda-header/dda-header.d.ts +114 -4
- package/dist/types/components/dda-header/dda-header.stories.d.ts +187 -0
- package/dist/types/components/dda-header/nav-model.d.ts +19 -0
- package/dist/types/components/dda-home-banner/dda-home-banner.d.ts +4 -0
- package/dist/types/components/dda-home-banner/dda-home-banner.stories.d.ts +8 -0
- package/dist/types/components/dda-home-carousel/dda-home-carousel.d.ts +29 -0
- package/dist/types/components/dda-home-carousel/dda-home-carousel.stories.d.ts +20 -0
- package/dist/types/components/dda-scroll-icon/dda-scroll-icon.d.ts +11 -0
- package/dist/types/components/dda-scroll-icon/dda-scroll-icon.stories.d.ts +20 -0
- package/dist/types/components/dda-select/dda-select.d.ts +40 -5
- package/dist/types/components/dda-select/dda-select.stories.d.ts +25 -0
- package/dist/types/components/dda-sticky-footer/dda-sticky-footer.d.ts +70 -1
- package/dist/types/components/dda-sticky-footer/dda-sticky-footer.stories.d.ts +4 -0
- package/dist/types/components.d.ts +863 -21
- package/dist/types/utils/parse-json-prop.d.ts +1 -0
- package/package.json +4 -2
- package/dist/cjs/dda-link-button.cjs.entry.js +0 -51
- package/dist/cjs/dda-radiobutton.cjs.entry.js +0 -27
- package/dist/cjs/index-DXyiIgGK.js +0 -4637
- package/dist/components/dda-button2.js +0 -80
- package/dist/components/dda-link-button2.js +0 -81
- package/dist/components/dda-radiobutton2.js +0 -54
- package/dist/components/dda-tooltip2.js +0 -70
- package/dist/components/index2.js +0 -4622
- package/dist/components/p-C520q-ka.js +0 -1
- package/dist/components/p-CZO9Eawo.js +0 -1
- package/dist/components/p-_-I_65FG.js +0 -1
- package/dist/components/unique-id.js +0 -12
- package/dist/dda/dda-accordion.entry.js +0 -31
- package/dist/dda/dda-alert.entry.js +0 -57
- package/dist/dda/dda-attach-file.entry.js +0 -102
- package/dist/dda/dda-avatar.entry.js +0 -70
- package/dist/dda/dda-banner.entry.js +0 -30
- package/dist/dda/dda-button.entry.js +0 -47
- package/dist/dda/dda-checkbox.entry.js +0 -27
- package/dist/dda/dda-chip.entry.js +0 -25
- package/dist/dda/dda-creditcard-field.entry.js +0 -94
- package/dist/dda/dda-dropdown.entry.js +0 -75
- package/dist/dda/dda-footer.entry.js +0 -34
- package/dist/dda/dda-header.entry.js +0 -282
- package/dist/dda/dda-home-banner.entry.js +0 -208
- package/dist/dda/dda-horizontal-stepper.entry.js +0 -39
- package/dist/dda/dda-input.entry.js +0 -56
- package/dist/dda/dda-link-button.entry.js +0 -49
- package/dist/dda/dda-number-field.entry.js +0 -86
- package/dist/dda/dda-pagination.entry.js +0 -86
- package/dist/dda/dda-phonefield.entry.js +0 -271
- package/dist/dda/dda-progressbar.entry.js +0 -30
- package/dist/dda/dda-radiobutton.entry.js +0 -25
- package/dist/dda/dda-range-slider.entry.js +0 -55
- package/dist/dda/dda-search-input.entry.js +0 -63
- package/dist/dda/dda-segmented-tabs.entry.js +0 -96
- package/dist/dda/dda-select.entry.js +0 -183
- package/dist/dda/dda-sticky-footer.entry.js +0 -61
- package/dist/dda/dda-textarea.entry.js +0 -31241
- package/dist/dda/dda-toggle.entry.js +0 -25
- package/dist/dda/dda-ui-card.entry.js +0 -41
- package/dist/dda/dda-vertical-stepper.entry.js +0 -41
- package/dist/dda/index-CFIwfRqf.js +0 -4622
- package/dist/dda/p-271c5f91.entry.js +0 -1
- package/dist/dda/p-58de747b.entry.js +0 -1
- package/dist/dda/p-63754a93.entry.js +0 -1
- package/dist/dda/p-9541e108.entry.js +0 -1
- package/dist/dda/p-CI_UcUy5.js +0 -2
- package/dist/dda/p-b6190656.entry.js +0 -1
- package/dist/dda/p-c0da1e14.entry.js +0 -1
- package/dist/dda/p-c5ebf7df.entry.js +0 -1
- package/dist/dda/p-e8ca224f.entry.js +0 -1
- package/dist/dda/p-ea1720d2.entry.js +0 -1
- package/dist/dda/unique-id-B-I003EB.js +0 -12
- package/dist/esm/dda-link-button.entry.js +0 -49
- package/dist/esm/dda-radiobutton.entry.js +0 -25
- package/dist/esm/index-CFIwfRqf.js +0 -4622
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/** One option. 5.x string options are read as `{ id: text, text }`. */
|
|
3
|
+
export interface SelectOption {
|
|
4
|
+
id: string | number;
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
/** Internal: a parsed option plus, for an object option, the original entry (`source`), so
|
|
8
|
+
* `selectChanged` can emit it with its extra fields, as 3.x did. Never sent on `selectionChange`,
|
|
9
|
+
* and not part of the public `SelectOption` type. */
|
|
10
|
+
interface ParsedOption extends SelectOption {
|
|
11
|
+
source?: SelectOption;
|
|
12
|
+
}
|
|
2
13
|
export declare class Ddaselect {
|
|
3
14
|
/** Label shown above the field. The trigger button is named by the label and its current text. */
|
|
4
15
|
label: string;
|
|
5
|
-
/** Options
|
|
6
|
-
options: string
|
|
7
|
-
/** The selected option
|
|
16
|
+
/** Options: a JSON array, or an array property, of strings (`["Dubai","Sharjah"]`) or 3.x `{ id, text }` objects (`[{"id":1,"text":"Dubai"}]`). Other entries are ignored. Invalid JSON shows "No options available". */
|
|
17
|
+
options: string | Array<string | SelectOption>;
|
|
18
|
+
/** The selected option: its id, or its text. For string options the id is the text. Updated to the picked option's id (as a string) when the user picks one. Mutable: the component assigns it. */
|
|
8
19
|
selected: string;
|
|
9
20
|
/** Disables the select: the list does not open and options cannot be picked. */
|
|
10
21
|
disabled: boolean;
|
|
@@ -29,9 +40,28 @@ export declare class Ddaselect {
|
|
|
29
40
|
toggle_button_name: string;
|
|
30
41
|
/** `name` of each option button in the list. */
|
|
31
42
|
option_select_button_name: string;
|
|
32
|
-
/**
|
|
43
|
+
/** Text in the trigger when nothing is selected. Default: `Select an option`. */
|
|
44
|
+
placeholder: string;
|
|
45
|
+
/** `name` sent in `selectBlurred`. Falls back to `button_id`. */
|
|
46
|
+
input_name: string;
|
|
47
|
+
/** 3.x name of `aria_label`, used as the trigger's aria-label only when `label` is not set. `aria_label` wins when both are set; when `label` is set, `main_aria_label` is ignored and the trigger keeps its `aria-labelledby`. */
|
|
48
|
+
main_aria_label: string;
|
|
49
|
+
/** 3.x name of `error` (the validation state class). `error` wins when both are set. */
|
|
50
|
+
validation_type: string;
|
|
51
|
+
/** Emitted when the user picks an option other than the selected one, by mouse or keyboard. `detail.value` is the new `selected` value (the option id as a string); `detail.id` and `detail.text` are the option. */
|
|
33
52
|
selectionChange: EventEmitter<{
|
|
34
53
|
value: string;
|
|
54
|
+
id: string | number;
|
|
55
|
+
text: string;
|
|
56
|
+
}>;
|
|
57
|
+
/** 3.x event: emitted each time the user picks one, even if it is already selected. For a string
|
|
58
|
+
* option this is `{ id, text }`; for an object option this is the original option object, extra
|
|
59
|
+
* fields included, as 3.x did. */
|
|
60
|
+
selectChanged: EventEmitter<SelectOption>;
|
|
61
|
+
/** 3.x event: emitted when the trigger loses focus, with `{ name, value }` — `input_name` (or `button_id`) and the selected text. */
|
|
62
|
+
selectBlurred: EventEmitter<{
|
|
63
|
+
name: string;
|
|
64
|
+
value: string;
|
|
35
65
|
}>;
|
|
36
66
|
el: HTMLElement;
|
|
37
67
|
private pendingFocusIndex;
|
|
@@ -43,15 +73,20 @@ export declare class Ddaselect {
|
|
|
43
73
|
private get errorId();
|
|
44
74
|
private get describedBy();
|
|
45
75
|
private get parsedOptions();
|
|
76
|
+
private findSelected;
|
|
77
|
+
private get selectedOption();
|
|
78
|
+
private get triggerLabel();
|
|
46
79
|
private focusOption;
|
|
47
80
|
private currentFocusedOptionIndex;
|
|
48
81
|
private initialOptionIndex;
|
|
49
82
|
toggleSelect(): void;
|
|
50
83
|
private closeAndReturnFocus;
|
|
51
84
|
onHostClick(event: MouseEvent): void;
|
|
52
|
-
selectOption(option:
|
|
85
|
+
selectOption(option: ParsedOption): void;
|
|
86
|
+
private onTriggerBlur;
|
|
53
87
|
private onTriggerKeyDown;
|
|
54
88
|
private onOptionKeyDown;
|
|
55
89
|
componentDidRender(): void;
|
|
56
90
|
render(): any;
|
|
57
91
|
}
|
|
92
|
+
export {};
|
|
@@ -77,6 +77,30 @@ declare const _default: {
|
|
|
77
77
|
};
|
|
78
78
|
description: string;
|
|
79
79
|
};
|
|
80
|
+
placeholder: {
|
|
81
|
+
control: {
|
|
82
|
+
type: string;
|
|
83
|
+
};
|
|
84
|
+
description: string;
|
|
85
|
+
};
|
|
86
|
+
input_name: {
|
|
87
|
+
control: {
|
|
88
|
+
type: string;
|
|
89
|
+
};
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
main_aria_label: {
|
|
93
|
+
control: {
|
|
94
|
+
type: string;
|
|
95
|
+
};
|
|
96
|
+
description: string;
|
|
97
|
+
};
|
|
98
|
+
validation_type: {
|
|
99
|
+
control: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
80
104
|
};
|
|
81
105
|
parameters: {
|
|
82
106
|
docs: {
|
|
@@ -91,3 +115,4 @@ export declare const Default: any;
|
|
|
91
115
|
export declare const Small: any;
|
|
92
116
|
export declare const WithError: any;
|
|
93
117
|
export declare const Disabled: any;
|
|
118
|
+
export declare const IdAndText: any;
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
export interface MiddleLinkItem {
|
|
2
|
+
LogoTooltip?: string;
|
|
3
|
+
href?: string;
|
|
4
|
+
src?: string;
|
|
5
|
+
srcDark?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface RightLinkItem {
|
|
9
|
+
RightLinkTooltip?: string;
|
|
10
|
+
href?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
itemId?: string;
|
|
13
|
+
IconFamily?: string;
|
|
14
|
+
IconName?: string;
|
|
15
|
+
LinkText?: string;
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
}
|
|
1
18
|
export declare class DdaStickyFooter {
|
|
2
19
|
el: HTMLElement;
|
|
3
20
|
/** Link URL of the happiness icon (left section). */
|
|
@@ -8,6 +25,10 @@ export declare class DdaStickyFooter {
|
|
|
8
25
|
happinessIconAlt: string;
|
|
9
26
|
/** Tooltip text of the happiness icon. */
|
|
10
27
|
happinessIconTooltip: string;
|
|
28
|
+
/** `id` of the happiness link. */
|
|
29
|
+
happinessIconId: string;
|
|
30
|
+
/** Happiness image for `color-theme="dark"`. */
|
|
31
|
+
happinessIconSrcDark: string;
|
|
11
32
|
/** Link URL of the accessibility icon, the second icon in the left section. */
|
|
12
33
|
accessibilityIconHref: string;
|
|
13
34
|
/** Image URL of the accessibility icon. */
|
|
@@ -16,6 +37,10 @@ export declare class DdaStickyFooter {
|
|
|
16
37
|
accessibilityIconAlt: string;
|
|
17
38
|
/** Tooltip text of the accessibility icon. */
|
|
18
39
|
accessibilityIconTooltip: string;
|
|
40
|
+
/** `id` of the accessibility (04) link. */
|
|
41
|
+
accessibilityIconId: string;
|
|
42
|
+
/** Accessibility (04) image for `color-theme="dark"`. */
|
|
43
|
+
accessibilityIconSrcDark: string;
|
|
19
44
|
/** Link URL of the services icon (left section). */
|
|
20
45
|
servicesIconHref: string;
|
|
21
46
|
/** Image URL of the services icon. */
|
|
@@ -26,6 +51,10 @@ export declare class DdaStickyFooter {
|
|
|
26
51
|
servicesIconTooltip: string;
|
|
27
52
|
/** Text shown next to the services icon. Nothing is shown when it is not set. */
|
|
28
53
|
servicesIconText: string;
|
|
54
|
+
/** `id` of the services link. */
|
|
55
|
+
servicesIconId: string;
|
|
56
|
+
/** Services image for `color-theme="dark"`. */
|
|
57
|
+
servicesIconSrcDark: string;
|
|
29
58
|
/** Link URL of the first logo (middle section). */
|
|
30
59
|
firstLogoHref: string;
|
|
31
60
|
/** Image URL of the first logo. */
|
|
@@ -50,6 +79,8 @@ export declare class DdaStickyFooter {
|
|
|
50
79
|
thirdLogoAlt: string;
|
|
51
80
|
/** Tooltip text of the third logo. */
|
|
52
81
|
thirdLogoTooltip: string;
|
|
82
|
+
/** Middle logos as a list (3.x). JSON array, or array property, of `{ LogoTooltip, href, src, srcDark, alt }`. When set, it replaces the first, second and third logo props. */
|
|
83
|
+
middleLink: string | MiddleLinkItem[];
|
|
53
84
|
/** Link URL of the location icon (right section). */
|
|
54
85
|
locationButtonHref: string;
|
|
55
86
|
/** Image URL of the location icon. Takes precedence over `locationButtonIcon`. */
|
|
@@ -74,6 +105,10 @@ export declare class DdaStickyFooter {
|
|
|
74
105
|
aiIconAlt: string;
|
|
75
106
|
/** Tooltip text of the AI assistant icon. */
|
|
76
107
|
aiIconTooltip: string;
|
|
108
|
+
/** `id` of the AI assistant link. */
|
|
109
|
+
aiIconId: string;
|
|
110
|
+
/** AI assistant image for `color-theme="dark"`. */
|
|
111
|
+
aiIconSrcDark: string;
|
|
77
112
|
/** Link URL of the chat icon (right section). */
|
|
78
113
|
chatIconHref: string;
|
|
79
114
|
/** Image URL of the chat icon. */
|
|
@@ -82,17 +117,51 @@ export declare class DdaStickyFooter {
|
|
|
82
117
|
chatIconAlt: string;
|
|
83
118
|
/** Tooltip text of the chat icon. */
|
|
84
119
|
chatIconTooltip: string;
|
|
120
|
+
/** `id` of the chat link. */
|
|
121
|
+
chatIconId: string;
|
|
122
|
+
/** Chat image for `color-theme="dark"`. */
|
|
123
|
+
chatIconSrcDark: string;
|
|
124
|
+
/** Right-side text links as a list (3.x). JSON array, or array property, of `{ RightLinkTooltip, href, title, itemId, IconFamily, IconName, LinkText }`. When set, it replaces the location and news links. */
|
|
125
|
+
rightLink: string | RightLinkItem[];
|
|
126
|
+
/** Link URL of the dubai.ae link (right section). */
|
|
127
|
+
dubaiaeIconHref: string;
|
|
128
|
+
/** `id` of the dubai.ae link. */
|
|
129
|
+
dubaiaeIconId: string;
|
|
130
|
+
/** dubai.ae wordmark image, shown on desktop. The link shows only when this and `dubaiaeIconSmallSrc` are set. */
|
|
131
|
+
dubaiaeIconSrc: string;
|
|
132
|
+
/** dubai.ae wordmark for `color-theme="dark"`. */
|
|
133
|
+
dubaiaeIconSrcDark: string;
|
|
134
|
+
/** dubai.ae small icon, shown at 992px and below. */
|
|
135
|
+
dubaiaeIconSmallSrc: string;
|
|
136
|
+
/** Alternative text of both dubai.ae images. */
|
|
137
|
+
dubaiaeIconAlt: string;
|
|
138
|
+
/** Tooltip text of the dubai.ae link. */
|
|
139
|
+
dubaiaeIconTooltip: string;
|
|
140
|
+
/** Material icon name of the "more" button. When set, the right links collapse behind this button at 992px and below. */
|
|
141
|
+
moreIcon: string;
|
|
142
|
+
/** `class` of the "more" button icon. Default: `material-icons`. */
|
|
143
|
+
moreIconFamily: string;
|
|
144
|
+
/** Accessible name of the "more" button. Default, and fallback for an empty value: `More`. */
|
|
145
|
+
more_button_label: string;
|
|
146
|
+
/** `dark` uses the `*-src-dark` images; an image without a dark version keeps its light image. Default: `light`. */
|
|
147
|
+
colorTheme: 'light' | 'dark';
|
|
85
148
|
/** Accessible name of the bar's `<aside>` landmark. Default: `Quick actions`. */
|
|
86
149
|
aria_label: string;
|
|
87
150
|
isHidden: boolean;
|
|
88
151
|
private lastScrollY;
|
|
89
|
-
|
|
152
|
+
rightOpen: boolean;
|
|
153
|
+
private readonly rightListId;
|
|
154
|
+
isMobile: boolean;
|
|
155
|
+
private mobileQuery;
|
|
156
|
+
private onMobileChange;
|
|
157
|
+
/** Hides the middle logo section. Default: `false` (the logos show when at least one is set). */
|
|
90
158
|
hideMiddleSection: boolean;
|
|
91
159
|
componentWillLoad(): void;
|
|
92
160
|
private resizeObserver;
|
|
93
161
|
componentDidLoad(): void;
|
|
94
162
|
disconnectedCallback(): void;
|
|
95
163
|
private renderLinkGraphic;
|
|
164
|
+
private img;
|
|
96
165
|
handleScroll(): void;
|
|
97
166
|
render(): any;
|
|
98
167
|
}
|