@ukho/admiralty-core 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +86 -0
- package/dist/admiralty/admiralty.esm.js +2 -0
- package/dist/admiralty/admiralty.esm.js.map +1 -0
- package/dist/admiralty/index.esm.js +2 -0
- package/dist/admiralty/index.esm.js.map +1 -0
- package/dist/admiralty/p-01cb7adb.entry.js +2 -0
- package/dist/admiralty/p-01cb7adb.entry.js.map +1 -0
- package/dist/admiralty/p-05415353.entry.js +2 -0
- package/dist/admiralty/p-05415353.entry.js.map +1 -0
- package/dist/admiralty/p-08baadfe.entry.js +2 -0
- package/dist/admiralty/p-08baadfe.entry.js.map +1 -0
- package/dist/admiralty/p-1156fb5a.entry.js +2 -0
- package/dist/admiralty/p-1156fb5a.entry.js.map +1 -0
- package/dist/admiralty/p-1597c067.entry.js +2 -0
- package/dist/admiralty/p-1597c067.entry.js.map +1 -0
- package/dist/admiralty/p-18cff2de.js +2 -0
- package/dist/admiralty/p-18cff2de.js.map +1 -0
- package/dist/admiralty/p-1e0fcbb0.entry.js +2 -0
- package/dist/admiralty/p-1e0fcbb0.entry.js.map +1 -0
- package/dist/admiralty/p-281fb779.entry.js +2 -0
- package/dist/admiralty/p-281fb779.entry.js.map +1 -0
- package/dist/admiralty/p-31b52c40.entry.js +2 -0
- package/dist/admiralty/p-31b52c40.entry.js.map +1 -0
- package/dist/admiralty/p-33b7244b.entry.js +2 -0
- package/dist/admiralty/p-33b7244b.entry.js.map +1 -0
- package/dist/admiralty/p-34cbc7a1.entry.js +2 -0
- package/dist/admiralty/p-34cbc7a1.entry.js.map +1 -0
- package/dist/admiralty/p-3c9dee38.entry.js +2 -0
- package/dist/admiralty/p-3c9dee38.entry.js.map +1 -0
- package/dist/admiralty/p-3dfc9fc0.entry.js +2 -0
- package/dist/admiralty/p-3dfc9fc0.entry.js.map +1 -0
- package/dist/admiralty/p-52cb5c3d.entry.js +2 -0
- package/dist/admiralty/p-52cb5c3d.entry.js.map +1 -0
- package/dist/admiralty/p-573407ef.entry.js +2 -0
- package/dist/admiralty/p-573407ef.entry.js.map +1 -0
- package/dist/admiralty/p-61a86783.entry.js +2 -0
- package/dist/admiralty/p-61a86783.entry.js.map +1 -0
- package/dist/admiralty/p-6293fffb.entry.js +2 -0
- package/dist/admiralty/p-6293fffb.entry.js.map +1 -0
- package/dist/admiralty/p-69e7a596.entry.js +2 -0
- package/dist/admiralty/p-69e7a596.entry.js.map +1 -0
- package/dist/admiralty/p-6b102dd7.entry.js +2 -0
- package/dist/admiralty/p-6b102dd7.entry.js.map +1 -0
- package/dist/admiralty/p-80c03397.entry.js +2 -0
- package/dist/admiralty/p-80c03397.entry.js.map +1 -0
- package/dist/admiralty/p-914567f9.entry.js +2 -0
- package/dist/admiralty/p-914567f9.entry.js.map +1 -0
- package/dist/admiralty/p-96a33adb.entry.js +2 -0
- package/dist/admiralty/p-96a33adb.entry.js.map +1 -0
- package/dist/admiralty/p-aa03be54.entry.js +2 -0
- package/dist/admiralty/p-aa03be54.entry.js.map +1 -0
- package/dist/admiralty/p-bbe4dd68.entry.js +2 -0
- package/dist/admiralty/p-bbe4dd68.entry.js.map +1 -0
- package/dist/admiralty/p-c63b9703.entry.js +2 -0
- package/dist/admiralty/p-c63b9703.entry.js.map +1 -0
- package/dist/admiralty/p-c7dd53e5.js +2 -0
- package/dist/admiralty/p-c7dd53e5.js.map +1 -0
- package/dist/admiralty/p-c9625a50.entry.js +2 -0
- package/dist/admiralty/p-c9625a50.entry.js.map +1 -0
- package/dist/admiralty/p-d23537cc.entry.js +2 -0
- package/dist/admiralty/p-d23537cc.entry.js.map +1 -0
- package/dist/admiralty/p-d5680d2f.entry.js +2 -0
- package/dist/admiralty/p-d5680d2f.entry.js.map +1 -0
- package/dist/admiralty/p-da4c6170.entry.js +2 -0
- package/dist/admiralty/p-da4c6170.entry.js.map +1 -0
- package/dist/admiralty/p-dae5bfda.entry.js +2 -0
- package/dist/admiralty/p-dae5bfda.entry.js.map +1 -0
- package/dist/admiralty/p-de48be42.entry.js +2 -0
- package/dist/admiralty/p-de48be42.entry.js.map +1 -0
- package/dist/admiralty/p-e1457fd2.entry.js +2 -0
- package/dist/admiralty/p-e1457fd2.entry.js.map +1 -0
- package/dist/admiralty/p-e1680782.js +3 -0
- package/dist/admiralty/p-e1680782.js.map +1 -0
- package/dist/admiralty/p-e5f9308a.entry.js +2 -0
- package/dist/admiralty/p-e5f9308a.entry.js.map +1 -0
- package/dist/admiralty/p-e7bb0eca.entry.js +2 -0
- package/dist/admiralty/p-e7bb0eca.entry.js.map +1 -0
- package/dist/admiralty/p-eba5b551.entry.js +2 -0
- package/dist/admiralty/p-eba5b551.entry.js.map +1 -0
- package/dist/admiralty/p-eefe699d.entry.js +2 -0
- package/dist/admiralty/p-eefe699d.entry.js.map +1 -0
- package/dist/admiralty/p-f049a682.entry.js +2 -0
- package/dist/admiralty/p-f049a682.entry.js.map +1 -0
- package/dist/admiralty/p-f268e1dd.entry.js +2 -0
- package/dist/admiralty/p-f268e1dd.entry.js.map +1 -0
- package/dist/admiralty/p-f9815502.entry.js +2 -0
- package/dist/admiralty/p-f9815502.entry.js.map +1 -0
- package/dist/admiralty/p-ffb0dae5.entry.js +2 -0
- package/dist/admiralty/p-ffb0dae5.entry.js.map +1 -0
- package/dist/admiralty/p-ffe3ca07.entry.js +2 -0
- package/dist/admiralty/p-ffe3ca07.entry.js.map +1 -0
- package/dist/cjs/admiralty-breadcrumb.cjs.entry.js +25 -0
- package/dist/cjs/admiralty-breadcrumb.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-breadcrumbs.cjs.entry.js +48 -0
- package/dist/cjs/admiralty-breadcrumbs.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-button.cjs.entry.js +26 -0
- package/dist/cjs/admiralty-button.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-card.cjs.entry.js +22 -0
- package/dist/cjs/admiralty-card.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-checkbox.cjs.entry.js +54 -0
- package/dist/cjs/admiralty-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-colour-block.cjs.entry.js +37 -0
- package/dist/cjs/admiralty-colour-block.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-dialogue.cjs.entry.js +39 -0
- package/dist/cjs/admiralty-dialogue.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-expansion.cjs.entry.js +42 -0
- package/dist/cjs/admiralty-expansion.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-file-input.cjs.entry.js +89 -0
- package/dist/cjs/admiralty-file-input.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-filter-group.cjs.entry.js +22 -0
- package/dist/cjs/admiralty-filter-group.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-filter.cjs.entry.js +32 -0
- package/dist/cjs/admiralty-filter.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-footer.cjs.entry.js +25 -0
- package/dist/cjs/admiralty-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-header-menu-item.cjs.entry.js +63 -0
- package/dist/cjs/admiralty-header-menu-item.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-header-profile.cjs.entry.js +44 -0
- package/dist/cjs/admiralty-header-profile.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-header-sub-menu-item.cjs.entry.js +28 -0
- package/dist/cjs/admiralty-header-sub-menu-item.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-header.cjs.entry.js +32 -0
- package/dist/cjs/admiralty-header.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-hint_3.cjs.entry.js +51 -0
- package/dist/cjs/admiralty-hint_3.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-hr.cjs.entry.js +21 -0
- package/dist/cjs/admiralty-hr.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-icon.cjs.entry.js +7045 -0
- package/dist/cjs/admiralty-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-input.cjs.entry.js +62 -0
- package/dist/cjs/admiralty-input.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-link.cjs.entry.js +20 -0
- package/dist/cjs/admiralty-link.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-paginator-wrapper.cjs.entry.js +32 -0
- package/dist/cjs/admiralty-paginator-wrapper.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-paginator.cjs.entry.js +46 -0
- package/dist/cjs/admiralty-paginator.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-phase-banner.cjs.entry.js +23 -0
- package/dist/cjs/admiralty-phase-banner.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-progress-bar.cjs.entry.js +28 -0
- package/dist/cjs/admiralty-progress-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-radio-group.cjs.entry.js +71 -0
- package/dist/cjs/admiralty-radio-group.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-radio.cjs.entry.js +64 -0
- package/dist/cjs/admiralty-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-select.cjs.entry.js +61 -0
- package/dist/cjs/admiralty-select.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-side-nav-item.cjs.entry.js +39 -0
- package/dist/cjs/admiralty-side-nav-item.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-side-nav-wrapper.cjs.entry.js +27 -0
- package/dist/cjs/admiralty-side-nav-wrapper.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-side-nav.cjs.entry.js +22 -0
- package/dist/cjs/admiralty-side-nav.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-table-body.cjs.entry.js +21 -0
- package/dist/cjs/admiralty-table-body.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-table-cell.cjs.entry.js +21 -0
- package/dist/cjs/admiralty-table-cell.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-table-header-cell.cjs.entry.js +21 -0
- package/dist/cjs/admiralty-table-header-cell.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-table-header.cjs.entry.js +21 -0
- package/dist/cjs/admiralty-table-header.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-table-row.cjs.entry.js +21 -0
- package/dist/cjs/admiralty-table-row.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-table.cjs.entry.js +22 -0
- package/dist/cjs/admiralty-table.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-textarea.cjs.entry.js +38 -0
- package/dist/cjs/admiralty-textarea.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-type-ahead-item.cjs.entry.js +22 -0
- package/dist/cjs/admiralty-type-ahead-item.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty-type-ahead.cjs.entry.js +185 -0
- package/dist/cjs/admiralty-type-ahead.cjs.entry.js.map +1 -0
- package/dist/cjs/admiralty.cjs.js +28 -0
- package/dist/cjs/admiralty.cjs.js.map +1 -0
- package/dist/cjs/button.types-0549d311.js +12 -0
- package/dist/cjs/button.types-0549d311.js.map +1 -0
- package/dist/cjs/index-18b58c3d.js +9484 -0
- package/dist/cjs/index-18b58c3d.js.map +1 -0
- package/dist/cjs/index-9db1e550.js +1971 -0
- package/dist/cjs/index-9db1e550.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +24 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/collection/assets/svg/Admiralty linear logo.svg +373 -0
- package/dist/collection/assets/svg/Admiralty stacked logo.svg +1275 -0
- package/dist/collection/assets/svg/AdmiraltyUKHO linear logo.svg +3350 -0
- package/dist/collection/assets/svg/UKHO linear logo.svg +3526 -0
- package/dist/collection/assets/svg/UKHO stacked logo.svg +2985 -0
- package/dist/collection/collection-manifest.json +53 -0
- package/dist/collection/components/breadcrumb/breadcrumb.css +89 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +84 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.css +25 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +48 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/collection/components/button/button.css +384 -0
- package/dist/collection/components/button/button.js +109 -0
- package/dist/collection/components/button/button.js.map +1 -0
- package/dist/collection/components/button/button.types.js +9 -0
- package/dist/collection/components/button/button.types.js.map +1 -0
- package/dist/collection/components/card/card.css +101 -0
- package/dist/collection/components/card/card.js +42 -0
- package/dist/collection/components/card/card.js.map +1 -0
- package/dist/collection/components/checkbox/checkbox.css +72 -0
- package/dist/collection/components/checkbox/checkbox.js +222 -0
- package/dist/collection/components/checkbox/checkbox.js.map +1 -0
- package/dist/collection/components/colour-block/colour-block.css +53 -0
- package/dist/collection/components/colour-block/colour-block.js +141 -0
- package/dist/collection/components/colour-block/colour-block.js.map +1 -0
- package/dist/collection/components/dialogue/dialogue.css +105 -0
- package/dist/collection/components/dialogue/dialogue.js +78 -0
- package/dist/collection/components/dialogue/dialogue.js.map +1 -0
- package/dist/collection/components/expansion/expansion.css +75 -0
- package/dist/collection/components/expansion/expansion.js +133 -0
- package/dist/collection/components/expansion/expansion.js.map +1 -0
- package/dist/collection/components/file-input/file-input.css +78 -0
- package/dist/collection/components/file-input/file-input.js +155 -0
- package/dist/collection/components/file-input/file-input.js.map +1 -0
- package/dist/collection/components/filter/filter.css +277 -0
- package/dist/collection/components/filter/filter.js +88 -0
- package/dist/collection/components/filter/filter.js.map +1 -0
- package/dist/collection/components/filter-group/filter-group.css +0 -0
- package/dist/collection/components/filter-group/filter-group.js +46 -0
- package/dist/collection/components/filter-group/filter-group.js.map +1 -0
- package/dist/collection/components/footer/footer.css +61 -0
- package/dist/collection/components/footer/footer.js +104 -0
- package/dist/collection/components/footer/footer.js.map +1 -0
- package/dist/collection/components/header/header.css +113 -0
- package/dist/collection/components/header/header.js +145 -0
- package/dist/collection/components/header/header.js.map +1 -0
- package/dist/collection/components/header/header.stories.data.js +146 -0
- package/dist/collection/components/header/header.stories.data.js.map +1 -0
- package/dist/collection/components/header/header.types.js +2 -0
- package/dist/collection/components/header/header.types.js.map +1 -0
- package/dist/collection/components/header-menu-item/header-menu-item.css +53 -0
- package/dist/collection/components/header-menu-item/header-menu-item.js +122 -0
- package/dist/collection/components/header-menu-item/header-menu-item.js.map +1 -0
- package/dist/collection/components/header-profile/header-profile.css +81 -0
- package/dist/collection/components/header-profile/header-profile.js +148 -0
- package/dist/collection/components/header-profile/header-profile.js.map +1 -0
- package/dist/collection/components/header-sub-menu-item/header-sub-menu-item.css +35 -0
- package/dist/collection/components/header-sub-menu-item/header-sub-menu-item.js +66 -0
- package/dist/collection/components/header-sub-menu-item/header-sub-menu-item.js.map +1 -0
- package/dist/collection/components/hint/hint.css +26 -0
- package/dist/collection/components/hint/hint.js +47 -0
- package/dist/collection/components/hint/hint.js.map +1 -0
- package/dist/collection/components/horizontal-rule/horizontal-rule.css +23 -0
- package/dist/collection/components/horizontal-rule/horizontal-rule.js +18 -0
- package/dist/collection/components/horizontal-rule/horizontal-rule.js.map +1 -0
- package/dist/collection/components/icon/icon.css +15 -0
- package/dist/collection/components/icon/icon.js +79 -0
- package/dist/collection/components/icon/icon.js.map +1 -0
- package/dist/collection/components/input/input.css +58 -0
- package/dist/collection/components/input/input.interface.js +2 -0
- package/dist/collection/components/input/input.interface.js.map +1 -0
- package/dist/collection/components/input/input.js +308 -0
- package/dist/collection/components/input/input.js.map +1 -0
- package/dist/collection/components/input-error/input-error.css +30 -0
- package/dist/collection/components/input-error/input-error.js +24 -0
- package/dist/collection/components/input-error/input-error.js.map +1 -0
- package/dist/collection/components/label/label.css +25 -0
- package/dist/collection/components/label/label.js +65 -0
- package/dist/collection/components/label/label.js.map +1 -0
- package/dist/collection/components/link/link.js +51 -0
- package/dist/collection/components/link/link.js.map +1 -0
- package/dist/collection/components/paginator/paginator.css +29 -0
- package/dist/collection/components/paginator/paginator.js +120 -0
- package/dist/collection/components/paginator/paginator.js.map +1 -0
- package/dist/collection/components/paginator/paginator.stories.data.js +36 -0
- package/dist/collection/components/paginator/paginator.stories.data.js.map +1 -0
- package/dist/collection/components/phase-banner/phase-banner.css +84 -0
- package/dist/collection/components/phase-banner/phase-banner.js +61 -0
- package/dist/collection/components/phase-banner/phase-banner.js.map +1 -0
- package/dist/collection/components/progress-bar/progress-bar.css +35 -0
- package/dist/collection/components/progress-bar/progress-bar.js +90 -0
- package/dist/collection/components/progress-bar/progress-bar.js.map +1 -0
- package/dist/collection/components/radio/radio.css +49 -0
- package/dist/collection/components/radio/radio.js +206 -0
- package/dist/collection/components/radio/radio.js.map +1 -0
- package/dist/collection/components/radio-group/radio-group.css +14 -0
- package/dist/collection/components/radio-group/radio-group.js +148 -0
- package/dist/collection/components/radio-group/radio-group.js.map +1 -0
- package/dist/collection/components/select/select.css +59 -0
- package/dist/collection/components/select/select.js +207 -0
- package/dist/collection/components/select/select.js.map +1 -0
- package/dist/collection/components/select/select.types.js +3 -0
- package/dist/collection/components/select/select.types.js.map +1 -0
- package/dist/collection/components/side-nav/side-nav.css +68 -0
- package/dist/collection/components/side-nav/side-nav.js +43 -0
- package/dist/collection/components/side-nav/side-nav.js.map +1 -0
- package/dist/collection/components/side-nav/side-nav.stories.data.js +31 -0
- package/dist/collection/components/side-nav/side-nav.stories.data.js.map +1 -0
- package/dist/collection/components/side-nav-item/side-nav-item.css +90 -0
- package/dist/collection/components/side-nav-item/side-nav-item.js +112 -0
- package/dist/collection/components/side-nav-item/side-nav-item.js.map +1 -0
- package/dist/collection/components/table/table.css +29 -0
- package/dist/collection/components/table/table.js +47 -0
- package/dist/collection/components/table/table.js.map +1 -0
- package/dist/collection/components/table-body/table-body.css +28 -0
- package/dist/collection/components/table-body/table-body.js +23 -0
- package/dist/collection/components/table-body/table-body.js.map +1 -0
- package/dist/collection/components/table-cell/table-cell.css +28 -0
- package/dist/collection/components/table-cell/table-cell.js +23 -0
- package/dist/collection/components/table-cell/table-cell.js.map +1 -0
- package/dist/collection/components/table-header/table-header.css +20 -0
- package/dist/collection/components/table-header/table-header.js +23 -0
- package/dist/collection/components/table-header/table-header.js.map +1 -0
- package/dist/collection/components/table-header-cell/table-header-cell.css +27 -0
- package/dist/collection/components/table-header-cell/table-header-cell.js +23 -0
- package/dist/collection/components/table-header-cell/table-header-cell.js.map +1 -0
- package/dist/collection/components/table-row/table-row.css +20 -0
- package/dist/collection/components/table-row/table-row.js +23 -0
- package/dist/collection/components/table-row/table-row.js.map +1 -0
- package/dist/collection/components/textarea/textarea.css +269 -0
- package/dist/collection/components/textarea/textarea.js +202 -0
- package/dist/collection/components/textarea/textarea.js.map +1 -0
- package/dist/collection/components/type-ahead/type-ahead.css +73 -0
- package/dist/collection/components/type-ahead/type-ahead.js +294 -0
- package/dist/collection/components/type-ahead/type-ahead.js.map +1 -0
- package/dist/collection/components/type-ahead-item/type-ahead-item.css +3 -0
- package/dist/collection/components/type-ahead-item/type-ahead-item.js +43 -0
- package/dist/collection/components/type-ahead-item/type-ahead-item.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/components/admiralty-breadcrumb.d.ts +11 -0
- package/dist/components/admiralty-breadcrumb.js +48 -0
- package/dist/components/admiralty-breadcrumb.js.map +1 -0
- package/dist/components/admiralty-breadcrumbs.d.ts +11 -0
- package/dist/components/admiralty-breadcrumbs.js +62 -0
- package/dist/components/admiralty-breadcrumbs.js.map +1 -0
- package/dist/components/admiralty-button.d.ts +11 -0
- package/dist/components/admiralty-button.js +8 -0
- package/dist/components/admiralty-button.js.map +1 -0
- package/dist/components/admiralty-card.d.ts +11 -0
- package/dist/components/admiralty-card.js +37 -0
- package/dist/components/admiralty-card.js.map +1 -0
- package/dist/components/admiralty-checkbox.d.ts +11 -0
- package/dist/components/admiralty-checkbox.js +75 -0
- package/dist/components/admiralty-checkbox.js.map +1 -0
- package/dist/components/admiralty-colour-block.d.ts +11 -0
- package/dist/components/admiralty-colour-block.js +68 -0
- package/dist/components/admiralty-colour-block.js.map +1 -0
- package/dist/components/admiralty-dialogue.d.ts +11 -0
- package/dist/components/admiralty-dialogue.js +61 -0
- package/dist/components/admiralty-dialogue.js.map +1 -0
- package/dist/components/admiralty-expansion.d.ts +11 -0
- package/dist/components/admiralty-expansion.js +8 -0
- package/dist/components/admiralty-expansion.js.map +1 -0
- package/dist/components/admiralty-file-input.d.ts +11 -0
- package/dist/components/admiralty-file-input.js +113 -0
- package/dist/components/admiralty-file-input.js.map +1 -0
- package/dist/components/admiralty-filter-group.d.ts +11 -0
- package/dist/components/admiralty-filter-group.js +49 -0
- package/dist/components/admiralty-filter-group.js.map +1 -0
- package/dist/components/admiralty-filter.d.ts +11 -0
- package/dist/components/admiralty-filter.js +59 -0
- package/dist/components/admiralty-filter.js.map +1 -0
- package/dist/components/admiralty-footer.d.ts +11 -0
- package/dist/components/admiralty-footer.js +43 -0
- package/dist/components/admiralty-footer.js.map +1 -0
- package/dist/components/admiralty-header-menu-item.d.ts +11 -0
- package/dist/components/admiralty-header-menu-item.js +80 -0
- package/dist/components/admiralty-header-menu-item.js.map +1 -0
- package/dist/components/admiralty-header-profile.d.ts +11 -0
- package/dist/components/admiralty-header-profile.js +62 -0
- package/dist/components/admiralty-header-profile.js.map +1 -0
- package/dist/components/admiralty-header-sub-menu-item.d.ts +11 -0
- package/dist/components/admiralty-header-sub-menu-item.js +44 -0
- package/dist/components/admiralty-header-sub-menu-item.js.map +1 -0
- package/dist/components/admiralty-header.d.ts +11 -0
- package/dist/components/admiralty-header.js +51 -0
- package/dist/components/admiralty-header.js.map +1 -0
- package/dist/components/admiralty-hint.d.ts +11 -0
- package/dist/components/admiralty-hint.js +8 -0
- package/dist/components/admiralty-hint.js.map +1 -0
- package/dist/components/admiralty-hr.d.ts +11 -0
- package/dist/components/admiralty-hr.js +34 -0
- package/dist/components/admiralty-hr.js.map +1 -0
- package/dist/components/admiralty-icon.d.ts +11 -0
- package/dist/components/admiralty-icon.js +8 -0
- package/dist/components/admiralty-icon.js.map +1 -0
- package/dist/components/admiralty-input-error.d.ts +11 -0
- package/dist/components/admiralty-input-error.js +8 -0
- package/dist/components/admiralty-input-error.js.map +1 -0
- package/dist/components/admiralty-input.d.ts +11 -0
- package/dist/components/admiralty-input.js +8 -0
- package/dist/components/admiralty-input.js.map +1 -0
- package/dist/components/admiralty-label.d.ts +11 -0
- package/dist/components/admiralty-label.js +8 -0
- package/dist/components/admiralty-label.js.map +1 -0
- package/dist/components/admiralty-link.d.ts +11 -0
- package/dist/components/admiralty-link.js +36 -0
- package/dist/components/admiralty-link.js.map +1 -0
- package/dist/components/admiralty-paginator-wrapper.d.ts +11 -0
- package/dist/components/admiralty-paginator-wrapper.js +45 -0
- package/dist/components/admiralty-paginator-wrapper.js.map +1 -0
- package/dist/components/admiralty-paginator.d.ts +11 -0
- package/dist/components/admiralty-paginator.js +73 -0
- package/dist/components/admiralty-paginator.js.map +1 -0
- package/dist/components/admiralty-phase-banner.d.ts +11 -0
- package/dist/components/admiralty-phase-banner.js +39 -0
- package/dist/components/admiralty-phase-banner.js.map +1 -0
- package/dist/components/admiralty-progress-bar.d.ts +11 -0
- package/dist/components/admiralty-progress-bar.js +52 -0
- package/dist/components/admiralty-progress-bar.js.map +1 -0
- package/dist/components/admiralty-radio-group.d.ts +11 -0
- package/dist/components/admiralty-radio-group.js +88 -0
- package/dist/components/admiralty-radio-group.js.map +1 -0
- package/dist/components/admiralty-radio.d.ts +11 -0
- package/dist/components/admiralty-radio.js +84 -0
- package/dist/components/admiralty-radio.js.map +1 -0
- package/dist/components/admiralty-select.d.ts +11 -0
- package/dist/components/admiralty-select.js +106 -0
- package/dist/components/admiralty-select.js.map +1 -0
- package/dist/components/admiralty-side-nav-item.d.ts +11 -0
- package/dist/components/admiralty-side-nav-item.js +56 -0
- package/dist/components/admiralty-side-nav-item.js.map +1 -0
- package/dist/components/admiralty-side-nav-wrapper.d.ts +11 -0
- package/dist/components/admiralty-side-nav-wrapper.js +40 -0
- package/dist/components/admiralty-side-nav-wrapper.js.map +1 -0
- package/dist/components/admiralty-side-nav.d.ts +11 -0
- package/dist/components/admiralty-side-nav.js +37 -0
- package/dist/components/admiralty-side-nav.js.map +1 -0
- package/dist/components/admiralty-table-body.d.ts +11 -0
- package/dist/components/admiralty-table-body.js +34 -0
- package/dist/components/admiralty-table-body.js.map +1 -0
- package/dist/components/admiralty-table-cell.d.ts +11 -0
- package/dist/components/admiralty-table-cell.js +34 -0
- package/dist/components/admiralty-table-cell.js.map +1 -0
- package/dist/components/admiralty-table-header-cell.d.ts +11 -0
- package/dist/components/admiralty-table-header-cell.js +34 -0
- package/dist/components/admiralty-table-header-cell.js.map +1 -0
- package/dist/components/admiralty-table-header.d.ts +11 -0
- package/dist/components/admiralty-table-header.js +34 -0
- package/dist/components/admiralty-table-header.js.map +1 -0
- package/dist/components/admiralty-table-row.d.ts +11 -0
- package/dist/components/admiralty-table-row.js +34 -0
- package/dist/components/admiralty-table-row.js.map +1 -0
- package/dist/components/admiralty-table.d.ts +11 -0
- package/dist/components/admiralty-table.js +37 -0
- package/dist/components/admiralty-table.js.map +1 -0
- package/dist/components/admiralty-textarea.d.ts +11 -0
- package/dist/components/admiralty-textarea.js +84 -0
- package/dist/components/admiralty-textarea.js.map +1 -0
- package/dist/components/admiralty-type-ahead-item.d.ts +11 -0
- package/dist/components/admiralty-type-ahead-item.js +37 -0
- package/dist/components/admiralty-type-ahead-item.js.map +1 -0
- package/dist/components/admiralty-type-ahead.d.ts +11 -0
- package/dist/components/admiralty-type-ahead.js +235 -0
- package/dist/components/admiralty-type-ahead.js.map +1 -0
- package/dist/components/button.js +55 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/expansion.js +62 -0
- package/dist/components/expansion.js.map +1 -0
- package/dist/components/hint.js +35 -0
- package/dist/components/hint.js.map +1 -0
- package/dist/components/icon.js +16529 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/index.d.ts +27 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/input-error.js +38 -0
- package/dist/components/input-error.js.map +1 -0
- package/dist/components/input.js +109 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/label.js +37 -0
- package/dist/components/label.js.map +1 -0
- package/dist/esm/admiralty-breadcrumb.entry.js +21 -0
- package/dist/esm/admiralty-breadcrumb.entry.js.map +1 -0
- package/dist/esm/admiralty-breadcrumbs.entry.js +44 -0
- package/dist/esm/admiralty-breadcrumbs.entry.js.map +1 -0
- package/dist/esm/admiralty-button.entry.js +22 -0
- package/dist/esm/admiralty-button.entry.js.map +1 -0
- package/dist/esm/admiralty-card.entry.js +18 -0
- package/dist/esm/admiralty-card.entry.js.map +1 -0
- package/dist/esm/admiralty-checkbox.entry.js +50 -0
- package/dist/esm/admiralty-checkbox.entry.js.map +1 -0
- package/dist/esm/admiralty-colour-block.entry.js +33 -0
- package/dist/esm/admiralty-colour-block.entry.js.map +1 -0
- package/dist/esm/admiralty-dialogue.entry.js +35 -0
- package/dist/esm/admiralty-dialogue.entry.js.map +1 -0
- package/dist/esm/admiralty-expansion.entry.js +38 -0
- package/dist/esm/admiralty-expansion.entry.js.map +1 -0
- package/dist/esm/admiralty-file-input.entry.js +85 -0
- package/dist/esm/admiralty-file-input.entry.js.map +1 -0
- package/dist/esm/admiralty-filter-group.entry.js +18 -0
- package/dist/esm/admiralty-filter-group.entry.js.map +1 -0
- package/dist/esm/admiralty-filter.entry.js +28 -0
- package/dist/esm/admiralty-filter.entry.js.map +1 -0
- package/dist/esm/admiralty-footer.entry.js +21 -0
- package/dist/esm/admiralty-footer.entry.js.map +1 -0
- package/dist/esm/admiralty-header-menu-item.entry.js +59 -0
- package/dist/esm/admiralty-header-menu-item.entry.js.map +1 -0
- package/dist/esm/admiralty-header-profile.entry.js +40 -0
- package/dist/esm/admiralty-header-profile.entry.js.map +1 -0
- package/dist/esm/admiralty-header-sub-menu-item.entry.js +24 -0
- package/dist/esm/admiralty-header-sub-menu-item.entry.js.map +1 -0
- package/dist/esm/admiralty-header.entry.js +28 -0
- package/dist/esm/admiralty-header.entry.js.map +1 -0
- package/dist/esm/admiralty-hint_3.entry.js +45 -0
- package/dist/esm/admiralty-hint_3.entry.js.map +1 -0
- package/dist/esm/admiralty-hr.entry.js +17 -0
- package/dist/esm/admiralty-hr.entry.js.map +1 -0
- package/dist/esm/admiralty-icon.entry.js +7041 -0
- package/dist/esm/admiralty-icon.entry.js.map +1 -0
- package/dist/esm/admiralty-input.entry.js +58 -0
- package/dist/esm/admiralty-input.entry.js.map +1 -0
- package/dist/esm/admiralty-link.entry.js +16 -0
- package/dist/esm/admiralty-link.entry.js.map +1 -0
- package/dist/esm/admiralty-paginator-wrapper.entry.js +28 -0
- package/dist/esm/admiralty-paginator-wrapper.entry.js.map +1 -0
- package/dist/esm/admiralty-paginator.entry.js +42 -0
- package/dist/esm/admiralty-paginator.entry.js.map +1 -0
- package/dist/esm/admiralty-phase-banner.entry.js +19 -0
- package/dist/esm/admiralty-phase-banner.entry.js.map +1 -0
- package/dist/esm/admiralty-progress-bar.entry.js +24 -0
- package/dist/esm/admiralty-progress-bar.entry.js.map +1 -0
- package/dist/esm/admiralty-radio-group.entry.js +67 -0
- package/dist/esm/admiralty-radio-group.entry.js.map +1 -0
- package/dist/esm/admiralty-radio.entry.js +60 -0
- package/dist/esm/admiralty-radio.entry.js.map +1 -0
- package/dist/esm/admiralty-select.entry.js +57 -0
- package/dist/esm/admiralty-select.entry.js.map +1 -0
- package/dist/esm/admiralty-side-nav-item.entry.js +35 -0
- package/dist/esm/admiralty-side-nav-item.entry.js.map +1 -0
- package/dist/esm/admiralty-side-nav-wrapper.entry.js +23 -0
- package/dist/esm/admiralty-side-nav-wrapper.entry.js.map +1 -0
- package/dist/esm/admiralty-side-nav.entry.js +18 -0
- package/dist/esm/admiralty-side-nav.entry.js.map +1 -0
- package/dist/esm/admiralty-table-body.entry.js +17 -0
- package/dist/esm/admiralty-table-body.entry.js.map +1 -0
- package/dist/esm/admiralty-table-cell.entry.js +17 -0
- package/dist/esm/admiralty-table-cell.entry.js.map +1 -0
- package/dist/esm/admiralty-table-header-cell.entry.js +17 -0
- package/dist/esm/admiralty-table-header-cell.entry.js.map +1 -0
- package/dist/esm/admiralty-table-header.entry.js +17 -0
- package/dist/esm/admiralty-table-header.entry.js.map +1 -0
- package/dist/esm/admiralty-table-row.entry.js +17 -0
- package/dist/esm/admiralty-table-row.entry.js.map +1 -0
- package/dist/esm/admiralty-table.entry.js +18 -0
- package/dist/esm/admiralty-table.entry.js.map +1 -0
- package/dist/esm/admiralty-textarea.entry.js +34 -0
- package/dist/esm/admiralty-textarea.entry.js.map +1 -0
- package/dist/esm/admiralty-type-ahead-item.entry.js +18 -0
- package/dist/esm/admiralty-type-ahead-item.entry.js.map +1 -0
- package/dist/esm/admiralty-type-ahead.entry.js +181 -0
- package/dist/esm/admiralty-type-ahead.entry.js.map +1 -0
- package/dist/esm/admiralty.js +23 -0
- package/dist/esm/admiralty.js.map +1 -0
- package/dist/esm/button.types-2655b2cf.js +12 -0
- package/dist/esm/button.types-2655b2cf.js.map +1 -0
- package/dist/esm/index-a64d8966.js +1942 -0
- package/dist/esm/index-a64d8966.js.map +1 -0
- package/dist/esm/index-e73d97b7.js +9474 -0
- package/dist/esm/index-e73d97b7.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +20 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +18 -0
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +8 -0
- package/dist/types/components/button/button.d.ts +23 -0
- package/dist/types/components/button/button.types.d.ts +7 -0
- package/dist/types/components/card/card.d.ts +7 -0
- package/dist/types/components/checkbox/checkbox.d.ts +52 -0
- package/dist/types/components/colour-block/colour-block.d.ts +27 -0
- package/dist/types/components/dialogue/dialogue.d.ts +13 -0
- package/dist/types/components/expansion/expansion.d.ts +30 -0
- package/dist/types/components/file-input/file-input.d.ts +53 -0
- package/dist/types/components/filter/filter.d.ts +21 -0
- package/dist/types/components/filter-group/filter-group.d.ts +10 -0
- package/dist/types/components/footer/footer.d.ts +25 -0
- package/dist/types/components/header/header.d.ts +33 -0
- package/dist/types/components/header/header.stories.data.d.ts +6 -0
- package/dist/types/components/header/header.types.d.ts +10 -0
- package/dist/types/components/header-menu-item/header-menu-item.d.ts +34 -0
- package/dist/types/components/header-profile/header-profile.d.ts +38 -0
- package/dist/types/components/header-sub-menu-item/header-sub-menu-item.d.ts +13 -0
- package/dist/types/components/hint/hint.d.ts +11 -0
- package/dist/types/components/horizontal-rule/horizontal-rule.d.ts +3 -0
- package/dist/types/components/icon/icon.d.ts +17 -0
- package/dist/types/components/input/input.d.ts +71 -0
- package/dist/types/components/input/input.interface.d.ts +3 -0
- package/dist/types/components/input-error/input-error.d.ts +7 -0
- package/dist/types/components/label/label.d.ts +15 -0
- package/dist/types/components/link/link.d.ts +11 -0
- package/dist/types/components/paginator/paginator.d.ts +26 -0
- package/dist/types/components/paginator/paginator.stories.data.d.ts +10 -0
- package/dist/types/components/phase-banner/phase-banner.d.ts +11 -0
- package/dist/types/components/progress-bar/progress-bar.d.ts +19 -0
- package/dist/types/components/radio/radio.d.ts +44 -0
- package/dist/types/components/radio-group/radio-group.d.ts +27 -0
- package/dist/types/components/select/select.d.ts +48 -0
- package/dist/types/components/select/select.types.d.ts +4 -0
- package/dist/types/components/side-nav/side-nav.d.ts +8 -0
- package/dist/types/components/side-nav/side-nav.stories.data.d.ts +10 -0
- package/dist/types/components/side-nav-item/side-nav-item.d.ts +26 -0
- package/dist/types/components/table/table.d.ts +8 -0
- package/dist/types/components/table-body/table-body.d.ts +7 -0
- package/dist/types/components/table-cell/table-cell.d.ts +7 -0
- package/dist/types/components/table-header/table-header.d.ts +7 -0
- package/dist/types/components/table-header-cell/table-header-cell.d.ts +7 -0
- package/dist/types/components/table-row/table-row.d.ts +7 -0
- package/dist/types/components/textarea/textarea.d.ts +45 -0
- package/dist/types/components/type-ahead/type-ahead.d.ts +66 -0
- package/dist/types/components/type-ahead-item/type-ahead-item.d.ts +4 -0
- package/dist/types/components.d.ts +1637 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/stencil-public-runtime.d.ts +1637 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +69 -0
- package/styles/core.css +1 -0
- package/styles/core.css.map +1 -0
- package/styles/webfonts/JohnstonITC/bold/JohnstonITCStd-Bold.woff +0 -0
- package/styles/webfonts/JohnstonITC/bold/JohnstonITCStd-Bold.woff2 +0 -0
- package/styles/webfonts/JohnstonITC/italic/JohnstonITCStd-MediumIta.woff +0 -0
- package/styles/webfonts/JohnstonITC/italic/JohnstonITCStd-MediumIta.woff2 +0 -0
- package/styles/webfonts/JohnstonITC/light/JohnstonITCStd-Light.woff +0 -0
- package/styles/webfonts/JohnstonITC/light/JohnstonITCStd-Light.woff2 +0 -0
- package/styles/webfonts/JohnstonITC/light-italic/JohnstonITCStd-LightIta.woff +0 -0
- package/styles/webfonts/JohnstonITC/light-italic/JohnstonITCStd-LightIta.woff2 +0 -0
- package/styles/webfonts/JohnstonITC/medium/JohnstonITCStd-Medium.woff +0 -0
- package/styles/webfonts/JohnstonITC/medium/JohnstonITCStd-Medium.woff2 +0 -0
|
@@ -0,0 +1,1637 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { ButtonVariant } from "./components/button/button.types";
|
|
9
|
+
import { IconName, IconPrefix } from "@fortawesome/fontawesome-svg-core";
|
|
10
|
+
import { IconName as IconName1 } from "@fortawesome/free-solid-svg-icons";
|
|
11
|
+
import { InputChangeEventDetail } from "./components/input/input.interface";
|
|
12
|
+
export { ButtonVariant } from "./components/button/button.types";
|
|
13
|
+
export { IconName, IconPrefix } from "@fortawesome/fontawesome-svg-core";
|
|
14
|
+
export { IconName as IconName1 } from "@fortawesome/free-solid-svg-icons";
|
|
15
|
+
export { InputChangeEventDetail } from "./components/input/input.interface";
|
|
16
|
+
export namespace Components {
|
|
17
|
+
interface AdmiraltyBreadcrumb {
|
|
18
|
+
/**
|
|
19
|
+
* When `true` the breadcrumb will by styled to show that it is the currently active breadcrumb. Defaults to `true` for the last breadcrumb if it is not set on any.
|
|
20
|
+
*/
|
|
21
|
+
"active": boolean;
|
|
22
|
+
"first": boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Contains a URL or a URL fragment that the hyperlink points to.
|
|
25
|
+
*/
|
|
26
|
+
"href": string | undefined;
|
|
27
|
+
}
|
|
28
|
+
interface AdmiraltyBreadcrumbs {
|
|
29
|
+
}
|
|
30
|
+
interface AdmiraltyButton {
|
|
31
|
+
/**
|
|
32
|
+
* Determines whether the button is disabled. A button in disabled state will not fire click output events.
|
|
33
|
+
*/
|
|
34
|
+
"disabled": boolean;
|
|
35
|
+
/**
|
|
36
|
+
* When passed Font Awesome Icon name, then an icon will be rendered.
|
|
37
|
+
*/
|
|
38
|
+
"icon": IconName;
|
|
39
|
+
/**
|
|
40
|
+
* The default behavior of the button. Valid values are `button`, `submit` and `reset`. Default value is `submit`.
|
|
41
|
+
*/
|
|
42
|
+
"type": 'button' | 'submit' | 'reset';
|
|
43
|
+
/**
|
|
44
|
+
* The type of button to render. Valid values are `primary`, `secondary`, `warning`, `text` and `icon`. Default value is `primary`.
|
|
45
|
+
*/
|
|
46
|
+
"variant": ButtonVariant;
|
|
47
|
+
}
|
|
48
|
+
interface AdmiraltyCard {
|
|
49
|
+
/**
|
|
50
|
+
* The title of the card.
|
|
51
|
+
*/
|
|
52
|
+
"heading": string;
|
|
53
|
+
}
|
|
54
|
+
interface AdmiraltyCheckbox {
|
|
55
|
+
/**
|
|
56
|
+
* Whether the checkbox should be positioned to the right of the label.
|
|
57
|
+
*/
|
|
58
|
+
"checkboxRight": boolean;
|
|
59
|
+
/**
|
|
60
|
+
* If `true`, the checkbox is selected.
|
|
61
|
+
*/
|
|
62
|
+
"checked": boolean;
|
|
63
|
+
/**
|
|
64
|
+
* This dictates whether the form field is disabled.
|
|
65
|
+
*/
|
|
66
|
+
"disabled": boolean;
|
|
67
|
+
/**
|
|
68
|
+
* The text that's displayed alongside the checkbox
|
|
69
|
+
*/
|
|
70
|
+
"labelText": string;
|
|
71
|
+
/**
|
|
72
|
+
* The name of the control, which is submitted with the form data.
|
|
73
|
+
*/
|
|
74
|
+
"name": string;
|
|
75
|
+
/**
|
|
76
|
+
* The value of the checkbox does not mean if it's checked or not, use the `checked` property for that. The value of a checkbox is analogous to the value of an `<input type="checkbox">`, it's only used when the checkbox participates in a native `<form>`.
|
|
77
|
+
*/
|
|
78
|
+
"value": any | null;
|
|
79
|
+
}
|
|
80
|
+
interface AdmiraltyColourBlock {
|
|
81
|
+
/**
|
|
82
|
+
* The text to display on the action button
|
|
83
|
+
*/
|
|
84
|
+
"actionText": string;
|
|
85
|
+
/**
|
|
86
|
+
* The function to call when the action button is pressed.
|
|
87
|
+
*/
|
|
88
|
+
"clickAction": () => any;
|
|
89
|
+
/**
|
|
90
|
+
* The background colour of the component.
|
|
91
|
+
*/
|
|
92
|
+
"colour": 'admiralty-blue' | 'teal' | 'bright-blue';
|
|
93
|
+
/**
|
|
94
|
+
* The heading text to display.
|
|
95
|
+
*/
|
|
96
|
+
"heading": string;
|
|
97
|
+
/**
|
|
98
|
+
* The height in pixels of the component.
|
|
99
|
+
*/
|
|
100
|
+
"height": number;
|
|
101
|
+
/**
|
|
102
|
+
* The width in pixels of the component.
|
|
103
|
+
*/
|
|
104
|
+
"width": number;
|
|
105
|
+
}
|
|
106
|
+
interface AdmiraltyDialogue {
|
|
107
|
+
/**
|
|
108
|
+
* The heading to display.
|
|
109
|
+
*/
|
|
110
|
+
"heading": string;
|
|
111
|
+
/**
|
|
112
|
+
* The type of dialogue box to render.
|
|
113
|
+
*/
|
|
114
|
+
"type": 'info' | 'warning' | 'success' | 'error';
|
|
115
|
+
}
|
|
116
|
+
interface AdmiraltyExpansion {
|
|
117
|
+
/**
|
|
118
|
+
* CWhether the heading should be right aligned.
|
|
119
|
+
*/
|
|
120
|
+
"alignHeadingRight": boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Whether the component is expanded.
|
|
123
|
+
*/
|
|
124
|
+
"expanded": boolean;
|
|
125
|
+
/**
|
|
126
|
+
* The text to display in the heading of the expansion component.
|
|
127
|
+
*/
|
|
128
|
+
"heading": string;
|
|
129
|
+
/**
|
|
130
|
+
* Whether the border on the bottom of the component should be hidden.
|
|
131
|
+
*/
|
|
132
|
+
"hideBorder": boolean;
|
|
133
|
+
}
|
|
134
|
+
interface AdmiraltyFileInput {
|
|
135
|
+
/**
|
|
136
|
+
* Used to display instructions to the user and is replaced with the filename the user inputs
|
|
137
|
+
*/
|
|
138
|
+
"label": string;
|
|
139
|
+
/**
|
|
140
|
+
* If true, enables multiple files to be selected or dragged
|
|
141
|
+
*/
|
|
142
|
+
"multiple": boolean;
|
|
143
|
+
}
|
|
144
|
+
interface AdmiraltyFilter {
|
|
145
|
+
/**
|
|
146
|
+
* The title of the filter
|
|
147
|
+
*/
|
|
148
|
+
"filterTitle": string;
|
|
149
|
+
}
|
|
150
|
+
interface AdmiraltyFilterGroup {
|
|
151
|
+
/**
|
|
152
|
+
* The title of the filter group
|
|
153
|
+
*/
|
|
154
|
+
"groupTitle": string;
|
|
155
|
+
}
|
|
156
|
+
interface AdmiraltyFooter {
|
|
157
|
+
/**
|
|
158
|
+
* A description for the image displayed in the footer. This might be shown if the image fails to load or get read out by screen readers.
|
|
159
|
+
*/
|
|
160
|
+
"imageAlt": string;
|
|
161
|
+
/**
|
|
162
|
+
* The URL that the image links to.
|
|
163
|
+
*/
|
|
164
|
+
"imageLink": string;
|
|
165
|
+
/**
|
|
166
|
+
* The source of the image displayed in the footer.
|
|
167
|
+
*/
|
|
168
|
+
"imageSrc": string;
|
|
169
|
+
/**
|
|
170
|
+
* The text to display in the footer. The default value displays crown copyright, the current year and `UK Hydrographic Office`.
|
|
171
|
+
*/
|
|
172
|
+
"text": string;
|
|
173
|
+
}
|
|
174
|
+
interface AdmiraltyHeader {
|
|
175
|
+
/**
|
|
176
|
+
* The header title that is displayed to the right of the logo
|
|
177
|
+
*/
|
|
178
|
+
"headerTitle": string;
|
|
179
|
+
/**
|
|
180
|
+
* The url that clicking on the nav link will take you too
|
|
181
|
+
*/
|
|
182
|
+
"headerTitleUrl": string;
|
|
183
|
+
/**
|
|
184
|
+
* The alternate image text for the logo image
|
|
185
|
+
*/
|
|
186
|
+
"logoAltText": string;
|
|
187
|
+
/**
|
|
188
|
+
* The uri of the logo image
|
|
189
|
+
*/
|
|
190
|
+
"logoImgUrl": string;
|
|
191
|
+
/**
|
|
192
|
+
* The destination url when the logo is clicked
|
|
193
|
+
*/
|
|
194
|
+
"logoLinkUrl": string;
|
|
195
|
+
}
|
|
196
|
+
interface AdmiraltyHeaderMenuItem {
|
|
197
|
+
/**
|
|
198
|
+
* The text that will be displayed in the menu
|
|
199
|
+
*/
|
|
200
|
+
"active"?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* The text that will be displayed in the menu
|
|
203
|
+
*/
|
|
204
|
+
"menuTitle": string;
|
|
205
|
+
}
|
|
206
|
+
interface AdmiraltyHeaderProfile {
|
|
207
|
+
/**
|
|
208
|
+
* A boolean to indicate if the user is signed in or not
|
|
209
|
+
*/
|
|
210
|
+
"isSignedIn": boolean;
|
|
211
|
+
/**
|
|
212
|
+
* The text that is displayed after the user signs in
|
|
213
|
+
*/
|
|
214
|
+
"signedInText": string;
|
|
215
|
+
}
|
|
216
|
+
interface AdmiraltyHeaderSubMenuItem {
|
|
217
|
+
/**
|
|
218
|
+
* The text that will be displayed in the menu
|
|
219
|
+
*/
|
|
220
|
+
"menuTitle": string;
|
|
221
|
+
}
|
|
222
|
+
interface AdmiraltyHint {
|
|
223
|
+
/**
|
|
224
|
+
* The disabled option can be used to disable the component.
|
|
225
|
+
*/
|
|
226
|
+
"disabled": boolean;
|
|
227
|
+
}
|
|
228
|
+
interface AdmiraltyHr {
|
|
229
|
+
}
|
|
230
|
+
interface AdmiraltyIcon {
|
|
231
|
+
/**
|
|
232
|
+
* Name of the icon to be rendered Check out <a href="https://fontawesome.com/search?m=free}">FontAwesome</a> for a list of icons
|
|
233
|
+
*/
|
|
234
|
+
"iconName": IconName1;
|
|
235
|
+
/**
|
|
236
|
+
* The style prefix to apply to the icon By default, icons use Font Awesome's solid style
|
|
237
|
+
*/
|
|
238
|
+
"iconPrefix": IconPrefix;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Once this component works, review whether a form field component should be created so
|
|
242
|
+
* that shared properties such as `label`, `hint`, `disabled` etc. can be defined once.
|
|
243
|
+
* Examples of similar components that can extend that base component are area, select
|
|
244
|
+
* and checkbox.
|
|
245
|
+
*/
|
|
246
|
+
interface AdmiraltyInput {
|
|
247
|
+
/**
|
|
248
|
+
* Indicates whether the value of the control can be automatically completed by the browser.
|
|
249
|
+
*/
|
|
250
|
+
"autocomplete": string;
|
|
251
|
+
/**
|
|
252
|
+
* This dictates whether the form field is disabled.
|
|
253
|
+
*/
|
|
254
|
+
"disabled": boolean;
|
|
255
|
+
/**
|
|
256
|
+
* The hint which will be used under the label to describe the input.
|
|
257
|
+
*/
|
|
258
|
+
"hint": string;
|
|
259
|
+
/**
|
|
260
|
+
* Whether to show the input in an invalid state
|
|
261
|
+
*/
|
|
262
|
+
"invalid": boolean;
|
|
263
|
+
/**
|
|
264
|
+
* The message to show when the input is invalid
|
|
265
|
+
*/
|
|
266
|
+
"invalidMessage": string;
|
|
267
|
+
/**
|
|
268
|
+
* The label which will be used above the input to describe the input.
|
|
269
|
+
*/
|
|
270
|
+
"label": string;
|
|
271
|
+
/**
|
|
272
|
+
* The name of the control, which is submitted with the form data.
|
|
273
|
+
*/
|
|
274
|
+
"name": string;
|
|
275
|
+
/**
|
|
276
|
+
* The placeholder text to show in the input
|
|
277
|
+
*/
|
|
278
|
+
"placeholder": string;
|
|
279
|
+
/**
|
|
280
|
+
* This dictates whether the input is required or not
|
|
281
|
+
*/
|
|
282
|
+
"required": boolean;
|
|
283
|
+
/**
|
|
284
|
+
* The input type, options are: `text | date | time | email | password | tel | url`
|
|
285
|
+
*/
|
|
286
|
+
"type": 'text' | 'date' | 'time' | 'email' | 'password' | 'tel' | 'url';
|
|
287
|
+
/**
|
|
288
|
+
* The value of the input.
|
|
289
|
+
*/
|
|
290
|
+
"value"?: string | number | null;
|
|
291
|
+
/**
|
|
292
|
+
* The maximum width for the input field.
|
|
293
|
+
*/
|
|
294
|
+
"width": number;
|
|
295
|
+
}
|
|
296
|
+
interface AdmiraltyInputError {
|
|
297
|
+
}
|
|
298
|
+
interface AdmiraltyLabel {
|
|
299
|
+
/**
|
|
300
|
+
* The disabled option can be used to disable the component.
|
|
301
|
+
*/
|
|
302
|
+
"disabled": boolean;
|
|
303
|
+
/**
|
|
304
|
+
* The id of the input the label is attached to
|
|
305
|
+
*/
|
|
306
|
+
"for": string;
|
|
307
|
+
}
|
|
308
|
+
interface AdmiraltyLink {
|
|
309
|
+
/**
|
|
310
|
+
* The URL that the link will navigate to.
|
|
311
|
+
*/
|
|
312
|
+
"href": string;
|
|
313
|
+
/**
|
|
314
|
+
* Whether to open the URL in a new tab.
|
|
315
|
+
*/
|
|
316
|
+
"newTab": boolean;
|
|
317
|
+
}
|
|
318
|
+
interface AdmiraltyPaginator {
|
|
319
|
+
/**
|
|
320
|
+
* The current page. Defaults to 1.
|
|
321
|
+
*/
|
|
322
|
+
"currentPage": number;
|
|
323
|
+
/**
|
|
324
|
+
* The label to display.
|
|
325
|
+
*/
|
|
326
|
+
"label": string;
|
|
327
|
+
/**
|
|
328
|
+
* The total number of pages. Defaults to 1.
|
|
329
|
+
*/
|
|
330
|
+
"pages": number;
|
|
331
|
+
}
|
|
332
|
+
interface AdmiraltyPaginatorWrapper {
|
|
333
|
+
}
|
|
334
|
+
interface AdmiraltyPhaseBanner {
|
|
335
|
+
/**
|
|
336
|
+
* A link to where the end user can provide feedback
|
|
337
|
+
*/
|
|
338
|
+
"link": string;
|
|
339
|
+
/**
|
|
340
|
+
* The phase for the phase banner
|
|
341
|
+
*/
|
|
342
|
+
"phase": 'alpha' | 'beta';
|
|
343
|
+
}
|
|
344
|
+
interface AdmiraltyProgressBar {
|
|
345
|
+
/**
|
|
346
|
+
* Set to true to indicate an error (turns the progress bar red)
|
|
347
|
+
*/
|
|
348
|
+
"error": boolean;
|
|
349
|
+
/**
|
|
350
|
+
* If set, adds a label above the progress bar
|
|
351
|
+
*/
|
|
352
|
+
"label"?: string;
|
|
353
|
+
/**
|
|
354
|
+
* * A value from 0 - 100 that visually represents the current progression
|
|
355
|
+
*/
|
|
356
|
+
"progression": number;
|
|
357
|
+
}
|
|
358
|
+
interface AdmiraltyRadio {
|
|
359
|
+
/**
|
|
360
|
+
* Determines whether the radio button is selected (or checked)
|
|
361
|
+
*/
|
|
362
|
+
"checked"?: boolean;
|
|
363
|
+
/**
|
|
364
|
+
* Determines whether the radio button is disabled. A button in disabled state will not fire click output events.
|
|
365
|
+
*/
|
|
366
|
+
"disabled"?: boolean;
|
|
367
|
+
/**
|
|
368
|
+
* The name of the radio button for use on selection within a radio group
|
|
369
|
+
*/
|
|
370
|
+
"name": string;
|
|
371
|
+
"setButtonTabindex": (value: number) => Promise<void>;
|
|
372
|
+
/**
|
|
373
|
+
* The value of the radio button for use on selection within a radio group
|
|
374
|
+
*/
|
|
375
|
+
"value": string | null;
|
|
376
|
+
}
|
|
377
|
+
interface AdmiraltyRadioGroup {
|
|
378
|
+
/**
|
|
379
|
+
* Setting this true displays the radio options vertically (defaults to false)
|
|
380
|
+
*/
|
|
381
|
+
"displayVertical": boolean;
|
|
382
|
+
/**
|
|
383
|
+
* The name of the control, which is submitted with the form data
|
|
384
|
+
*/
|
|
385
|
+
"name": string;
|
|
386
|
+
/**
|
|
387
|
+
* The value of the radio group
|
|
388
|
+
*/
|
|
389
|
+
"value": any | null;
|
|
390
|
+
}
|
|
391
|
+
interface AdmiraltySelect {
|
|
392
|
+
/**
|
|
393
|
+
* If `true`, the user cannot interact with the select.
|
|
394
|
+
*/
|
|
395
|
+
"disabled": boolean;
|
|
396
|
+
/**
|
|
397
|
+
* If 'true', the 'error' class is added to suggest an error
|
|
398
|
+
*/
|
|
399
|
+
"error": boolean;
|
|
400
|
+
/**
|
|
401
|
+
* The hint that is used to inform the user of an error (displayed below the select box)
|
|
402
|
+
*/
|
|
403
|
+
"errorHint": string;
|
|
404
|
+
/**
|
|
405
|
+
* The text that will be used as a field label.
|
|
406
|
+
*/
|
|
407
|
+
"hint": string;
|
|
408
|
+
/**
|
|
409
|
+
* The text that will be used as a field label.
|
|
410
|
+
*/
|
|
411
|
+
"label": string;
|
|
412
|
+
/**
|
|
413
|
+
* The maximum width (px) for the input field.
|
|
414
|
+
*/
|
|
415
|
+
"width"?: number;
|
|
416
|
+
}
|
|
417
|
+
interface AdmiraltySideNav {
|
|
418
|
+
/**
|
|
419
|
+
* A label for accessibility purposes to describe what this Side Nav navigation is for e.g. Product Menu, Map Tool Menu etc.
|
|
420
|
+
*/
|
|
421
|
+
"label": string;
|
|
422
|
+
}
|
|
423
|
+
interface AdmiraltySideNavItem {
|
|
424
|
+
/**
|
|
425
|
+
* The text that is displayed in the SideNavItem
|
|
426
|
+
*/
|
|
427
|
+
"headingTitle": string;
|
|
428
|
+
/**
|
|
429
|
+
* Represents whether this SideNavItem is 'active' and will be styled differently than SideNavItems that are not 'active'. The intent behind the design for SideNav is for there to only be ONE SideNavItem that is 'active' per SideNav
|
|
430
|
+
*/
|
|
431
|
+
"navActive": boolean;
|
|
432
|
+
/**
|
|
433
|
+
* A unique id for this SideNavItem
|
|
434
|
+
*/
|
|
435
|
+
"sideNavItemId": string;
|
|
436
|
+
}
|
|
437
|
+
interface AdmiraltySideNavWrapper {
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Use tables to make information easier for users to scan and compare
|
|
441
|
+
*/
|
|
442
|
+
interface AdmiraltyTable {
|
|
443
|
+
"caption": string;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* The table body element is a wrapper for a standard html table body and should be used to wrap rows
|
|
447
|
+
*/
|
|
448
|
+
interface AdmiraltyTableBody {
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* The table cell is a wrapper for a standard <td> element and should be used inside of table rows
|
|
452
|
+
*/
|
|
453
|
+
interface AdmiraltyTableCell {
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* The table header should be used inside a table element to give headers to all the columns
|
|
457
|
+
*/
|
|
458
|
+
interface AdmiraltyTableHeader {
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* The table header cell element is used for showing headings for the columns
|
|
462
|
+
*/
|
|
463
|
+
interface AdmiraltyTableHeaderCell {
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* The table row element should be used to define rows within the table body
|
|
467
|
+
*/
|
|
468
|
+
interface AdmiraltyTableRow {
|
|
469
|
+
}
|
|
470
|
+
interface AdmiraltyTextarea {
|
|
471
|
+
/**
|
|
472
|
+
* This dictates whether the form field is disabled.
|
|
473
|
+
*/
|
|
474
|
+
"disabled": boolean;
|
|
475
|
+
/**
|
|
476
|
+
* The hint which will be used under the label to describe the input.
|
|
477
|
+
*/
|
|
478
|
+
"hint": string;
|
|
479
|
+
/**
|
|
480
|
+
* Whether to show the input in an invalid state
|
|
481
|
+
*/
|
|
482
|
+
"invalid": boolean;
|
|
483
|
+
/**
|
|
484
|
+
* The message to show when the input is invalid
|
|
485
|
+
*/
|
|
486
|
+
"invalidMessage": string;
|
|
487
|
+
/**
|
|
488
|
+
* The label which will be used as a placeholder in the unfilled state, and as a field label in the filled state.
|
|
489
|
+
*/
|
|
490
|
+
"label": string;
|
|
491
|
+
/**
|
|
492
|
+
* The contents of the textarea
|
|
493
|
+
*/
|
|
494
|
+
"text": string;
|
|
495
|
+
/**
|
|
496
|
+
* The maximum width for the input field.
|
|
497
|
+
*/
|
|
498
|
+
"width"?: number;
|
|
499
|
+
}
|
|
500
|
+
interface AdmiraltyTypeAhead {
|
|
501
|
+
/**
|
|
502
|
+
* The text content of the label for the input box
|
|
503
|
+
*/
|
|
504
|
+
"label": string;
|
|
505
|
+
/**
|
|
506
|
+
* The placeholder text for the input field
|
|
507
|
+
*/
|
|
508
|
+
"placeholder": string;
|
|
509
|
+
/**
|
|
510
|
+
* Optional property to show results when input box is initally focused
|
|
511
|
+
*/
|
|
512
|
+
"resultsOnInitFocus": boolean;
|
|
513
|
+
/**
|
|
514
|
+
* The value of the textinput
|
|
515
|
+
*/
|
|
516
|
+
"value": string;
|
|
517
|
+
}
|
|
518
|
+
interface AdmiraltyTypeAheadItem {
|
|
519
|
+
"value": string;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
export interface AdmiraltyCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
523
|
+
detail: T;
|
|
524
|
+
target: HTMLAdmiraltyCheckboxElement;
|
|
525
|
+
}
|
|
526
|
+
export interface AdmiraltyExpansionCustomEvent<T> extends CustomEvent<T> {
|
|
527
|
+
detail: T;
|
|
528
|
+
target: HTMLAdmiraltyExpansionElement;
|
|
529
|
+
}
|
|
530
|
+
export interface AdmiraltyFileInputCustomEvent<T> extends CustomEvent<T> {
|
|
531
|
+
detail: T;
|
|
532
|
+
target: HTMLAdmiraltyFileInputElement;
|
|
533
|
+
}
|
|
534
|
+
export interface AdmiraltyFilterCustomEvent<T> extends CustomEvent<T> {
|
|
535
|
+
detail: T;
|
|
536
|
+
target: HTMLAdmiraltyFilterElement;
|
|
537
|
+
}
|
|
538
|
+
export interface AdmiraltyHeaderCustomEvent<T> extends CustomEvent<T> {
|
|
539
|
+
detail: T;
|
|
540
|
+
target: HTMLAdmiraltyHeaderElement;
|
|
541
|
+
}
|
|
542
|
+
export interface AdmiraltyHeaderMenuItemCustomEvent<T> extends CustomEvent<T> {
|
|
543
|
+
detail: T;
|
|
544
|
+
target: HTMLAdmiraltyHeaderMenuItemElement;
|
|
545
|
+
}
|
|
546
|
+
export interface AdmiraltyHeaderProfileCustomEvent<T> extends CustomEvent<T> {
|
|
547
|
+
detail: T;
|
|
548
|
+
target: HTMLAdmiraltyHeaderProfileElement;
|
|
549
|
+
}
|
|
550
|
+
export interface AdmiraltyHeaderSubMenuItemCustomEvent<T> extends CustomEvent<T> {
|
|
551
|
+
detail: T;
|
|
552
|
+
target: HTMLAdmiraltyHeaderSubMenuItemElement;
|
|
553
|
+
}
|
|
554
|
+
export interface AdmiraltyInputCustomEvent<T> extends CustomEvent<T> {
|
|
555
|
+
detail: T;
|
|
556
|
+
target: HTMLAdmiraltyInputElement;
|
|
557
|
+
}
|
|
558
|
+
export interface AdmiraltyPaginatorCustomEvent<T> extends CustomEvent<T> {
|
|
559
|
+
detail: T;
|
|
560
|
+
target: HTMLAdmiraltyPaginatorElement;
|
|
561
|
+
}
|
|
562
|
+
export interface AdmiraltyRadioCustomEvent<T> extends CustomEvent<T> {
|
|
563
|
+
detail: T;
|
|
564
|
+
target: HTMLAdmiraltyRadioElement;
|
|
565
|
+
}
|
|
566
|
+
export interface AdmiraltyRadioGroupCustomEvent<T> extends CustomEvent<T> {
|
|
567
|
+
detail: T;
|
|
568
|
+
target: HTMLAdmiraltyRadioGroupElement;
|
|
569
|
+
}
|
|
570
|
+
export interface AdmiraltySelectCustomEvent<T> extends CustomEvent<T> {
|
|
571
|
+
detail: T;
|
|
572
|
+
target: HTMLAdmiraltySelectElement;
|
|
573
|
+
}
|
|
574
|
+
export interface AdmiraltySideNavItemCustomEvent<T> extends CustomEvent<T> {
|
|
575
|
+
detail: T;
|
|
576
|
+
target: HTMLAdmiraltySideNavItemElement;
|
|
577
|
+
}
|
|
578
|
+
export interface AdmiraltyTextareaCustomEvent<T> extends CustomEvent<T> {
|
|
579
|
+
detail: T;
|
|
580
|
+
target: HTMLAdmiraltyTextareaElement;
|
|
581
|
+
}
|
|
582
|
+
export interface AdmiraltyTypeAheadCustomEvent<T> extends CustomEvent<T> {
|
|
583
|
+
detail: T;
|
|
584
|
+
target: HTMLAdmiraltyTypeAheadElement;
|
|
585
|
+
}
|
|
586
|
+
declare global {
|
|
587
|
+
interface HTMLAdmiraltyBreadcrumbElement extends Components.AdmiraltyBreadcrumb, HTMLStencilElement {
|
|
588
|
+
}
|
|
589
|
+
var HTMLAdmiraltyBreadcrumbElement: {
|
|
590
|
+
prototype: HTMLAdmiraltyBreadcrumbElement;
|
|
591
|
+
new (): HTMLAdmiraltyBreadcrumbElement;
|
|
592
|
+
};
|
|
593
|
+
interface HTMLAdmiraltyBreadcrumbsElement extends Components.AdmiraltyBreadcrumbs, HTMLStencilElement {
|
|
594
|
+
}
|
|
595
|
+
var HTMLAdmiraltyBreadcrumbsElement: {
|
|
596
|
+
prototype: HTMLAdmiraltyBreadcrumbsElement;
|
|
597
|
+
new (): HTMLAdmiraltyBreadcrumbsElement;
|
|
598
|
+
};
|
|
599
|
+
interface HTMLAdmiraltyButtonElement extends Components.AdmiraltyButton, HTMLStencilElement {
|
|
600
|
+
}
|
|
601
|
+
var HTMLAdmiraltyButtonElement: {
|
|
602
|
+
prototype: HTMLAdmiraltyButtonElement;
|
|
603
|
+
new (): HTMLAdmiraltyButtonElement;
|
|
604
|
+
};
|
|
605
|
+
interface HTMLAdmiraltyCardElement extends Components.AdmiraltyCard, HTMLStencilElement {
|
|
606
|
+
}
|
|
607
|
+
var HTMLAdmiraltyCardElement: {
|
|
608
|
+
prototype: HTMLAdmiraltyCardElement;
|
|
609
|
+
new (): HTMLAdmiraltyCardElement;
|
|
610
|
+
};
|
|
611
|
+
interface HTMLAdmiraltyCheckboxElement extends Components.AdmiraltyCheckbox, HTMLStencilElement {
|
|
612
|
+
}
|
|
613
|
+
var HTMLAdmiraltyCheckboxElement: {
|
|
614
|
+
prototype: HTMLAdmiraltyCheckboxElement;
|
|
615
|
+
new (): HTMLAdmiraltyCheckboxElement;
|
|
616
|
+
};
|
|
617
|
+
interface HTMLAdmiraltyColourBlockElement extends Components.AdmiraltyColourBlock, HTMLStencilElement {
|
|
618
|
+
}
|
|
619
|
+
var HTMLAdmiraltyColourBlockElement: {
|
|
620
|
+
prototype: HTMLAdmiraltyColourBlockElement;
|
|
621
|
+
new (): HTMLAdmiraltyColourBlockElement;
|
|
622
|
+
};
|
|
623
|
+
interface HTMLAdmiraltyDialogueElement extends Components.AdmiraltyDialogue, HTMLStencilElement {
|
|
624
|
+
}
|
|
625
|
+
var HTMLAdmiraltyDialogueElement: {
|
|
626
|
+
prototype: HTMLAdmiraltyDialogueElement;
|
|
627
|
+
new (): HTMLAdmiraltyDialogueElement;
|
|
628
|
+
};
|
|
629
|
+
interface HTMLAdmiraltyExpansionElement extends Components.AdmiraltyExpansion, HTMLStencilElement {
|
|
630
|
+
}
|
|
631
|
+
var HTMLAdmiraltyExpansionElement: {
|
|
632
|
+
prototype: HTMLAdmiraltyExpansionElement;
|
|
633
|
+
new (): HTMLAdmiraltyExpansionElement;
|
|
634
|
+
};
|
|
635
|
+
interface HTMLAdmiraltyFileInputElement extends Components.AdmiraltyFileInput, HTMLStencilElement {
|
|
636
|
+
}
|
|
637
|
+
var HTMLAdmiraltyFileInputElement: {
|
|
638
|
+
prototype: HTMLAdmiraltyFileInputElement;
|
|
639
|
+
new (): HTMLAdmiraltyFileInputElement;
|
|
640
|
+
};
|
|
641
|
+
interface HTMLAdmiraltyFilterElement extends Components.AdmiraltyFilter, HTMLStencilElement {
|
|
642
|
+
}
|
|
643
|
+
var HTMLAdmiraltyFilterElement: {
|
|
644
|
+
prototype: HTMLAdmiraltyFilterElement;
|
|
645
|
+
new (): HTMLAdmiraltyFilterElement;
|
|
646
|
+
};
|
|
647
|
+
interface HTMLAdmiraltyFilterGroupElement extends Components.AdmiraltyFilterGroup, HTMLStencilElement {
|
|
648
|
+
}
|
|
649
|
+
var HTMLAdmiraltyFilterGroupElement: {
|
|
650
|
+
prototype: HTMLAdmiraltyFilterGroupElement;
|
|
651
|
+
new (): HTMLAdmiraltyFilterGroupElement;
|
|
652
|
+
};
|
|
653
|
+
interface HTMLAdmiraltyFooterElement extends Components.AdmiraltyFooter, HTMLStencilElement {
|
|
654
|
+
}
|
|
655
|
+
var HTMLAdmiraltyFooterElement: {
|
|
656
|
+
prototype: HTMLAdmiraltyFooterElement;
|
|
657
|
+
new (): HTMLAdmiraltyFooterElement;
|
|
658
|
+
};
|
|
659
|
+
interface HTMLAdmiraltyHeaderElement extends Components.AdmiraltyHeader, HTMLStencilElement {
|
|
660
|
+
}
|
|
661
|
+
var HTMLAdmiraltyHeaderElement: {
|
|
662
|
+
prototype: HTMLAdmiraltyHeaderElement;
|
|
663
|
+
new (): HTMLAdmiraltyHeaderElement;
|
|
664
|
+
};
|
|
665
|
+
interface HTMLAdmiraltyHeaderMenuItemElement extends Components.AdmiraltyHeaderMenuItem, HTMLStencilElement {
|
|
666
|
+
}
|
|
667
|
+
var HTMLAdmiraltyHeaderMenuItemElement: {
|
|
668
|
+
prototype: HTMLAdmiraltyHeaderMenuItemElement;
|
|
669
|
+
new (): HTMLAdmiraltyHeaderMenuItemElement;
|
|
670
|
+
};
|
|
671
|
+
interface HTMLAdmiraltyHeaderProfileElement extends Components.AdmiraltyHeaderProfile, HTMLStencilElement {
|
|
672
|
+
}
|
|
673
|
+
var HTMLAdmiraltyHeaderProfileElement: {
|
|
674
|
+
prototype: HTMLAdmiraltyHeaderProfileElement;
|
|
675
|
+
new (): HTMLAdmiraltyHeaderProfileElement;
|
|
676
|
+
};
|
|
677
|
+
interface HTMLAdmiraltyHeaderSubMenuItemElement extends Components.AdmiraltyHeaderSubMenuItem, HTMLStencilElement {
|
|
678
|
+
}
|
|
679
|
+
var HTMLAdmiraltyHeaderSubMenuItemElement: {
|
|
680
|
+
prototype: HTMLAdmiraltyHeaderSubMenuItemElement;
|
|
681
|
+
new (): HTMLAdmiraltyHeaderSubMenuItemElement;
|
|
682
|
+
};
|
|
683
|
+
interface HTMLAdmiraltyHintElement extends Components.AdmiraltyHint, HTMLStencilElement {
|
|
684
|
+
}
|
|
685
|
+
var HTMLAdmiraltyHintElement: {
|
|
686
|
+
prototype: HTMLAdmiraltyHintElement;
|
|
687
|
+
new (): HTMLAdmiraltyHintElement;
|
|
688
|
+
};
|
|
689
|
+
interface HTMLAdmiraltyHrElement extends Components.AdmiraltyHr, HTMLStencilElement {
|
|
690
|
+
}
|
|
691
|
+
var HTMLAdmiraltyHrElement: {
|
|
692
|
+
prototype: HTMLAdmiraltyHrElement;
|
|
693
|
+
new (): HTMLAdmiraltyHrElement;
|
|
694
|
+
};
|
|
695
|
+
interface HTMLAdmiraltyIconElement extends Components.AdmiraltyIcon, HTMLStencilElement {
|
|
696
|
+
}
|
|
697
|
+
var HTMLAdmiraltyIconElement: {
|
|
698
|
+
prototype: HTMLAdmiraltyIconElement;
|
|
699
|
+
new (): HTMLAdmiraltyIconElement;
|
|
700
|
+
};
|
|
701
|
+
/**
|
|
702
|
+
* Once this component works, review whether a form field component should be created so
|
|
703
|
+
* that shared properties such as `label`, `hint`, `disabled` etc. can be defined once.
|
|
704
|
+
* Examples of similar components that can extend that base component are area, select
|
|
705
|
+
* and checkbox.
|
|
706
|
+
*/
|
|
707
|
+
interface HTMLAdmiraltyInputElement extends Components.AdmiraltyInput, HTMLStencilElement {
|
|
708
|
+
}
|
|
709
|
+
var HTMLAdmiraltyInputElement: {
|
|
710
|
+
prototype: HTMLAdmiraltyInputElement;
|
|
711
|
+
new (): HTMLAdmiraltyInputElement;
|
|
712
|
+
};
|
|
713
|
+
interface HTMLAdmiraltyInputErrorElement extends Components.AdmiraltyInputError, HTMLStencilElement {
|
|
714
|
+
}
|
|
715
|
+
var HTMLAdmiraltyInputErrorElement: {
|
|
716
|
+
prototype: HTMLAdmiraltyInputErrorElement;
|
|
717
|
+
new (): HTMLAdmiraltyInputErrorElement;
|
|
718
|
+
};
|
|
719
|
+
interface HTMLAdmiraltyLabelElement extends Components.AdmiraltyLabel, HTMLStencilElement {
|
|
720
|
+
}
|
|
721
|
+
var HTMLAdmiraltyLabelElement: {
|
|
722
|
+
prototype: HTMLAdmiraltyLabelElement;
|
|
723
|
+
new (): HTMLAdmiraltyLabelElement;
|
|
724
|
+
};
|
|
725
|
+
interface HTMLAdmiraltyLinkElement extends Components.AdmiraltyLink, HTMLStencilElement {
|
|
726
|
+
}
|
|
727
|
+
var HTMLAdmiraltyLinkElement: {
|
|
728
|
+
prototype: HTMLAdmiraltyLinkElement;
|
|
729
|
+
new (): HTMLAdmiraltyLinkElement;
|
|
730
|
+
};
|
|
731
|
+
interface HTMLAdmiraltyPaginatorElement extends Components.AdmiraltyPaginator, HTMLStencilElement {
|
|
732
|
+
}
|
|
733
|
+
var HTMLAdmiraltyPaginatorElement: {
|
|
734
|
+
prototype: HTMLAdmiraltyPaginatorElement;
|
|
735
|
+
new (): HTMLAdmiraltyPaginatorElement;
|
|
736
|
+
};
|
|
737
|
+
interface HTMLAdmiraltyPaginatorWrapperElement extends Components.AdmiraltyPaginatorWrapper, HTMLStencilElement {
|
|
738
|
+
}
|
|
739
|
+
var HTMLAdmiraltyPaginatorWrapperElement: {
|
|
740
|
+
prototype: HTMLAdmiraltyPaginatorWrapperElement;
|
|
741
|
+
new (): HTMLAdmiraltyPaginatorWrapperElement;
|
|
742
|
+
};
|
|
743
|
+
interface HTMLAdmiraltyPhaseBannerElement extends Components.AdmiraltyPhaseBanner, HTMLStencilElement {
|
|
744
|
+
}
|
|
745
|
+
var HTMLAdmiraltyPhaseBannerElement: {
|
|
746
|
+
prototype: HTMLAdmiraltyPhaseBannerElement;
|
|
747
|
+
new (): HTMLAdmiraltyPhaseBannerElement;
|
|
748
|
+
};
|
|
749
|
+
interface HTMLAdmiraltyProgressBarElement extends Components.AdmiraltyProgressBar, HTMLStencilElement {
|
|
750
|
+
}
|
|
751
|
+
var HTMLAdmiraltyProgressBarElement: {
|
|
752
|
+
prototype: HTMLAdmiraltyProgressBarElement;
|
|
753
|
+
new (): HTMLAdmiraltyProgressBarElement;
|
|
754
|
+
};
|
|
755
|
+
interface HTMLAdmiraltyRadioElement extends Components.AdmiraltyRadio, HTMLStencilElement {
|
|
756
|
+
}
|
|
757
|
+
var HTMLAdmiraltyRadioElement: {
|
|
758
|
+
prototype: HTMLAdmiraltyRadioElement;
|
|
759
|
+
new (): HTMLAdmiraltyRadioElement;
|
|
760
|
+
};
|
|
761
|
+
interface HTMLAdmiraltyRadioGroupElement extends Components.AdmiraltyRadioGroup, HTMLStencilElement {
|
|
762
|
+
}
|
|
763
|
+
var HTMLAdmiraltyRadioGroupElement: {
|
|
764
|
+
prototype: HTMLAdmiraltyRadioGroupElement;
|
|
765
|
+
new (): HTMLAdmiraltyRadioGroupElement;
|
|
766
|
+
};
|
|
767
|
+
interface HTMLAdmiraltySelectElement extends Components.AdmiraltySelect, HTMLStencilElement {
|
|
768
|
+
}
|
|
769
|
+
var HTMLAdmiraltySelectElement: {
|
|
770
|
+
prototype: HTMLAdmiraltySelectElement;
|
|
771
|
+
new (): HTMLAdmiraltySelectElement;
|
|
772
|
+
};
|
|
773
|
+
interface HTMLAdmiraltySideNavElement extends Components.AdmiraltySideNav, HTMLStencilElement {
|
|
774
|
+
}
|
|
775
|
+
var HTMLAdmiraltySideNavElement: {
|
|
776
|
+
prototype: HTMLAdmiraltySideNavElement;
|
|
777
|
+
new (): HTMLAdmiraltySideNavElement;
|
|
778
|
+
};
|
|
779
|
+
interface HTMLAdmiraltySideNavItemElement extends Components.AdmiraltySideNavItem, HTMLStencilElement {
|
|
780
|
+
}
|
|
781
|
+
var HTMLAdmiraltySideNavItemElement: {
|
|
782
|
+
prototype: HTMLAdmiraltySideNavItemElement;
|
|
783
|
+
new (): HTMLAdmiraltySideNavItemElement;
|
|
784
|
+
};
|
|
785
|
+
interface HTMLAdmiraltySideNavWrapperElement extends Components.AdmiraltySideNavWrapper, HTMLStencilElement {
|
|
786
|
+
}
|
|
787
|
+
var HTMLAdmiraltySideNavWrapperElement: {
|
|
788
|
+
prototype: HTMLAdmiraltySideNavWrapperElement;
|
|
789
|
+
new (): HTMLAdmiraltySideNavWrapperElement;
|
|
790
|
+
};
|
|
791
|
+
/**
|
|
792
|
+
* Use tables to make information easier for users to scan and compare
|
|
793
|
+
*/
|
|
794
|
+
interface HTMLAdmiraltyTableElement extends Components.AdmiraltyTable, HTMLStencilElement {
|
|
795
|
+
}
|
|
796
|
+
var HTMLAdmiraltyTableElement: {
|
|
797
|
+
prototype: HTMLAdmiraltyTableElement;
|
|
798
|
+
new (): HTMLAdmiraltyTableElement;
|
|
799
|
+
};
|
|
800
|
+
/**
|
|
801
|
+
* The table body element is a wrapper for a standard html table body and should be used to wrap rows
|
|
802
|
+
*/
|
|
803
|
+
interface HTMLAdmiraltyTableBodyElement extends Components.AdmiraltyTableBody, HTMLStencilElement {
|
|
804
|
+
}
|
|
805
|
+
var HTMLAdmiraltyTableBodyElement: {
|
|
806
|
+
prototype: HTMLAdmiraltyTableBodyElement;
|
|
807
|
+
new (): HTMLAdmiraltyTableBodyElement;
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* The table cell is a wrapper for a standard <td> element and should be used inside of table rows
|
|
811
|
+
*/
|
|
812
|
+
interface HTMLAdmiraltyTableCellElement extends Components.AdmiraltyTableCell, HTMLStencilElement {
|
|
813
|
+
}
|
|
814
|
+
var HTMLAdmiraltyTableCellElement: {
|
|
815
|
+
prototype: HTMLAdmiraltyTableCellElement;
|
|
816
|
+
new (): HTMLAdmiraltyTableCellElement;
|
|
817
|
+
};
|
|
818
|
+
/**
|
|
819
|
+
* The table header should be used inside a table element to give headers to all the columns
|
|
820
|
+
*/
|
|
821
|
+
interface HTMLAdmiraltyTableHeaderElement extends Components.AdmiraltyTableHeader, HTMLStencilElement {
|
|
822
|
+
}
|
|
823
|
+
var HTMLAdmiraltyTableHeaderElement: {
|
|
824
|
+
prototype: HTMLAdmiraltyTableHeaderElement;
|
|
825
|
+
new (): HTMLAdmiraltyTableHeaderElement;
|
|
826
|
+
};
|
|
827
|
+
/**
|
|
828
|
+
* The table header cell element is used for showing headings for the columns
|
|
829
|
+
*/
|
|
830
|
+
interface HTMLAdmiraltyTableHeaderCellElement extends Components.AdmiraltyTableHeaderCell, HTMLStencilElement {
|
|
831
|
+
}
|
|
832
|
+
var HTMLAdmiraltyTableHeaderCellElement: {
|
|
833
|
+
prototype: HTMLAdmiraltyTableHeaderCellElement;
|
|
834
|
+
new (): HTMLAdmiraltyTableHeaderCellElement;
|
|
835
|
+
};
|
|
836
|
+
/**
|
|
837
|
+
* The table row element should be used to define rows within the table body
|
|
838
|
+
*/
|
|
839
|
+
interface HTMLAdmiraltyTableRowElement extends Components.AdmiraltyTableRow, HTMLStencilElement {
|
|
840
|
+
}
|
|
841
|
+
var HTMLAdmiraltyTableRowElement: {
|
|
842
|
+
prototype: HTMLAdmiraltyTableRowElement;
|
|
843
|
+
new (): HTMLAdmiraltyTableRowElement;
|
|
844
|
+
};
|
|
845
|
+
interface HTMLAdmiraltyTextareaElement extends Components.AdmiraltyTextarea, HTMLStencilElement {
|
|
846
|
+
}
|
|
847
|
+
var HTMLAdmiraltyTextareaElement: {
|
|
848
|
+
prototype: HTMLAdmiraltyTextareaElement;
|
|
849
|
+
new (): HTMLAdmiraltyTextareaElement;
|
|
850
|
+
};
|
|
851
|
+
interface HTMLAdmiraltyTypeAheadElement extends Components.AdmiraltyTypeAhead, HTMLStencilElement {
|
|
852
|
+
}
|
|
853
|
+
var HTMLAdmiraltyTypeAheadElement: {
|
|
854
|
+
prototype: HTMLAdmiraltyTypeAheadElement;
|
|
855
|
+
new (): HTMLAdmiraltyTypeAheadElement;
|
|
856
|
+
};
|
|
857
|
+
interface HTMLAdmiraltyTypeAheadItemElement extends Components.AdmiraltyTypeAheadItem, HTMLStencilElement {
|
|
858
|
+
}
|
|
859
|
+
var HTMLAdmiraltyTypeAheadItemElement: {
|
|
860
|
+
prototype: HTMLAdmiraltyTypeAheadItemElement;
|
|
861
|
+
new (): HTMLAdmiraltyTypeAheadItemElement;
|
|
862
|
+
};
|
|
863
|
+
interface HTMLElementTagNameMap {
|
|
864
|
+
"admiralty-breadcrumb": HTMLAdmiraltyBreadcrumbElement;
|
|
865
|
+
"admiralty-breadcrumbs": HTMLAdmiraltyBreadcrumbsElement;
|
|
866
|
+
"admiralty-button": HTMLAdmiraltyButtonElement;
|
|
867
|
+
"admiralty-card": HTMLAdmiraltyCardElement;
|
|
868
|
+
"admiralty-checkbox": HTMLAdmiraltyCheckboxElement;
|
|
869
|
+
"admiralty-colour-block": HTMLAdmiraltyColourBlockElement;
|
|
870
|
+
"admiralty-dialogue": HTMLAdmiraltyDialogueElement;
|
|
871
|
+
"admiralty-expansion": HTMLAdmiraltyExpansionElement;
|
|
872
|
+
"admiralty-file-input": HTMLAdmiraltyFileInputElement;
|
|
873
|
+
"admiralty-filter": HTMLAdmiraltyFilterElement;
|
|
874
|
+
"admiralty-filter-group": HTMLAdmiraltyFilterGroupElement;
|
|
875
|
+
"admiralty-footer": HTMLAdmiraltyFooterElement;
|
|
876
|
+
"admiralty-header": HTMLAdmiraltyHeaderElement;
|
|
877
|
+
"admiralty-header-menu-item": HTMLAdmiraltyHeaderMenuItemElement;
|
|
878
|
+
"admiralty-header-profile": HTMLAdmiraltyHeaderProfileElement;
|
|
879
|
+
"admiralty-header-sub-menu-item": HTMLAdmiraltyHeaderSubMenuItemElement;
|
|
880
|
+
"admiralty-hint": HTMLAdmiraltyHintElement;
|
|
881
|
+
"admiralty-hr": HTMLAdmiraltyHrElement;
|
|
882
|
+
"admiralty-icon": HTMLAdmiraltyIconElement;
|
|
883
|
+
"admiralty-input": HTMLAdmiraltyInputElement;
|
|
884
|
+
"admiralty-input-error": HTMLAdmiraltyInputErrorElement;
|
|
885
|
+
"admiralty-label": HTMLAdmiraltyLabelElement;
|
|
886
|
+
"admiralty-link": HTMLAdmiraltyLinkElement;
|
|
887
|
+
"admiralty-paginator": HTMLAdmiraltyPaginatorElement;
|
|
888
|
+
"admiralty-paginator-wrapper": HTMLAdmiraltyPaginatorWrapperElement;
|
|
889
|
+
"admiralty-phase-banner": HTMLAdmiraltyPhaseBannerElement;
|
|
890
|
+
"admiralty-progress-bar": HTMLAdmiraltyProgressBarElement;
|
|
891
|
+
"admiralty-radio": HTMLAdmiraltyRadioElement;
|
|
892
|
+
"admiralty-radio-group": HTMLAdmiraltyRadioGroupElement;
|
|
893
|
+
"admiralty-select": HTMLAdmiraltySelectElement;
|
|
894
|
+
"admiralty-side-nav": HTMLAdmiraltySideNavElement;
|
|
895
|
+
"admiralty-side-nav-item": HTMLAdmiraltySideNavItemElement;
|
|
896
|
+
"admiralty-side-nav-wrapper": HTMLAdmiraltySideNavWrapperElement;
|
|
897
|
+
"admiralty-table": HTMLAdmiraltyTableElement;
|
|
898
|
+
"admiralty-table-body": HTMLAdmiraltyTableBodyElement;
|
|
899
|
+
"admiralty-table-cell": HTMLAdmiraltyTableCellElement;
|
|
900
|
+
"admiralty-table-header": HTMLAdmiraltyTableHeaderElement;
|
|
901
|
+
"admiralty-table-header-cell": HTMLAdmiraltyTableHeaderCellElement;
|
|
902
|
+
"admiralty-table-row": HTMLAdmiraltyTableRowElement;
|
|
903
|
+
"admiralty-textarea": HTMLAdmiraltyTextareaElement;
|
|
904
|
+
"admiralty-type-ahead": HTMLAdmiraltyTypeAheadElement;
|
|
905
|
+
"admiralty-type-ahead-item": HTMLAdmiraltyTypeAheadItemElement;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
declare namespace LocalJSX {
|
|
909
|
+
interface AdmiraltyBreadcrumb {
|
|
910
|
+
/**
|
|
911
|
+
* When `true` the breadcrumb will by styled to show that it is the currently active breadcrumb. Defaults to `true` for the last breadcrumb if it is not set on any.
|
|
912
|
+
*/
|
|
913
|
+
"active"?: boolean;
|
|
914
|
+
/**
|
|
915
|
+
* Contains a URL or a URL fragment that the hyperlink points to.
|
|
916
|
+
*/
|
|
917
|
+
"href"?: string | undefined;
|
|
918
|
+
}
|
|
919
|
+
interface AdmiraltyBreadcrumbs {
|
|
920
|
+
}
|
|
921
|
+
interface AdmiraltyButton {
|
|
922
|
+
/**
|
|
923
|
+
* Determines whether the button is disabled. A button in disabled state will not fire click output events.
|
|
924
|
+
*/
|
|
925
|
+
"disabled"?: boolean;
|
|
926
|
+
/**
|
|
927
|
+
* When passed Font Awesome Icon name, then an icon will be rendered.
|
|
928
|
+
*/
|
|
929
|
+
"icon"?: IconName;
|
|
930
|
+
/**
|
|
931
|
+
* The default behavior of the button. Valid values are `button`, `submit` and `reset`. Default value is `submit`.
|
|
932
|
+
*/
|
|
933
|
+
"type"?: 'button' | 'submit' | 'reset';
|
|
934
|
+
/**
|
|
935
|
+
* The type of button to render. Valid values are `primary`, `secondary`, `warning`, `text` and `icon`. Default value is `primary`.
|
|
936
|
+
*/
|
|
937
|
+
"variant"?: ButtonVariant;
|
|
938
|
+
}
|
|
939
|
+
interface AdmiraltyCard {
|
|
940
|
+
/**
|
|
941
|
+
* The title of the card.
|
|
942
|
+
*/
|
|
943
|
+
"heading"?: string;
|
|
944
|
+
}
|
|
945
|
+
interface AdmiraltyCheckbox {
|
|
946
|
+
/**
|
|
947
|
+
* Whether the checkbox should be positioned to the right of the label.
|
|
948
|
+
*/
|
|
949
|
+
"checkboxRight"?: boolean;
|
|
950
|
+
/**
|
|
951
|
+
* If `true`, the checkbox is selected.
|
|
952
|
+
*/
|
|
953
|
+
"checked"?: boolean;
|
|
954
|
+
/**
|
|
955
|
+
* This dictates whether the form field is disabled.
|
|
956
|
+
*/
|
|
957
|
+
"disabled"?: boolean;
|
|
958
|
+
/**
|
|
959
|
+
* The text that's displayed alongside the checkbox
|
|
960
|
+
*/
|
|
961
|
+
"labelText"?: string;
|
|
962
|
+
/**
|
|
963
|
+
* The name of the control, which is submitted with the form data.
|
|
964
|
+
*/
|
|
965
|
+
"name"?: string;
|
|
966
|
+
/**
|
|
967
|
+
* Event is fired when the form control loses focus
|
|
968
|
+
* @event checkboxBlur
|
|
969
|
+
*/
|
|
970
|
+
"onCheckboxBlur"?: (event: AdmiraltyCheckboxCustomEvent<any>) => void;
|
|
971
|
+
/**
|
|
972
|
+
* Event is fired when the form control changes state
|
|
973
|
+
* @event radioChanges
|
|
974
|
+
*/
|
|
975
|
+
"onCheckboxChange"?: (event: AdmiraltyCheckboxCustomEvent<any>) => void;
|
|
976
|
+
/**
|
|
977
|
+
* Event is fired when the form control gains focus
|
|
978
|
+
* @event checkboxFocus
|
|
979
|
+
*/
|
|
980
|
+
"onCheckboxFocus"?: (event: AdmiraltyCheckboxCustomEvent<any>) => void;
|
|
981
|
+
/**
|
|
982
|
+
* The value of the checkbox does not mean if it's checked or not, use the `checked` property for that. The value of a checkbox is analogous to the value of an `<input type="checkbox">`, it's only used when the checkbox participates in a native `<form>`.
|
|
983
|
+
*/
|
|
984
|
+
"value"?: any | null;
|
|
985
|
+
}
|
|
986
|
+
interface AdmiraltyColourBlock {
|
|
987
|
+
/**
|
|
988
|
+
* The text to display on the action button
|
|
989
|
+
*/
|
|
990
|
+
"actionText"?: string;
|
|
991
|
+
/**
|
|
992
|
+
* The function to call when the action button is pressed.
|
|
993
|
+
*/
|
|
994
|
+
"clickAction"?: () => any;
|
|
995
|
+
/**
|
|
996
|
+
* The background colour of the component.
|
|
997
|
+
*/
|
|
998
|
+
"colour"?: 'admiralty-blue' | 'teal' | 'bright-blue';
|
|
999
|
+
/**
|
|
1000
|
+
* The heading text to display.
|
|
1001
|
+
*/
|
|
1002
|
+
"heading"?: string;
|
|
1003
|
+
/**
|
|
1004
|
+
* The height in pixels of the component.
|
|
1005
|
+
*/
|
|
1006
|
+
"height"?: number;
|
|
1007
|
+
/**
|
|
1008
|
+
* The width in pixels of the component.
|
|
1009
|
+
*/
|
|
1010
|
+
"width"?: number;
|
|
1011
|
+
}
|
|
1012
|
+
interface AdmiraltyDialogue {
|
|
1013
|
+
/**
|
|
1014
|
+
* The heading to display.
|
|
1015
|
+
*/
|
|
1016
|
+
"heading"?: string;
|
|
1017
|
+
/**
|
|
1018
|
+
* The type of dialogue box to render.
|
|
1019
|
+
*/
|
|
1020
|
+
"type"?: 'info' | 'warning' | 'success' | 'error';
|
|
1021
|
+
}
|
|
1022
|
+
interface AdmiraltyExpansion {
|
|
1023
|
+
/**
|
|
1024
|
+
* CWhether the heading should be right aligned.
|
|
1025
|
+
*/
|
|
1026
|
+
"alignHeadingRight"?: boolean;
|
|
1027
|
+
/**
|
|
1028
|
+
* Whether the component is expanded.
|
|
1029
|
+
*/
|
|
1030
|
+
"expanded"?: boolean;
|
|
1031
|
+
/**
|
|
1032
|
+
* The text to display in the heading of the expansion component.
|
|
1033
|
+
*/
|
|
1034
|
+
"heading"?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Whether the border on the bottom of the component should be hidden.
|
|
1037
|
+
*/
|
|
1038
|
+
"hideBorder"?: boolean;
|
|
1039
|
+
/**
|
|
1040
|
+
* The event that is dispatched when the expanded status is toggled.
|
|
1041
|
+
*/
|
|
1042
|
+
"onToggled"?: (event: AdmiraltyExpansionCustomEvent<boolean>) => void;
|
|
1043
|
+
}
|
|
1044
|
+
interface AdmiraltyFileInput {
|
|
1045
|
+
/**
|
|
1046
|
+
* Used to display instructions to the user and is replaced with the filename the user inputs
|
|
1047
|
+
*/
|
|
1048
|
+
"label"?: string;
|
|
1049
|
+
/**
|
|
1050
|
+
* If true, enables multiple files to be selected or dragged
|
|
1051
|
+
*/
|
|
1052
|
+
"multiple"?: boolean;
|
|
1053
|
+
/**
|
|
1054
|
+
* Emitted when the added file(s) changes
|
|
1055
|
+
*/
|
|
1056
|
+
"onFileInputChange"?: (event: AdmiraltyFileInputCustomEvent<File[]>) => void;
|
|
1057
|
+
}
|
|
1058
|
+
interface AdmiraltyFilter {
|
|
1059
|
+
/**
|
|
1060
|
+
* The title of the filter
|
|
1061
|
+
*/
|
|
1062
|
+
"filterTitle"?: string;
|
|
1063
|
+
/**
|
|
1064
|
+
* Event that is emitted when the filters are applied
|
|
1065
|
+
*/
|
|
1066
|
+
"onFilterApplied"?: (event: AdmiraltyFilterCustomEvent<void>) => void;
|
|
1067
|
+
/**
|
|
1068
|
+
* Event that is emitted when the filters are cleared
|
|
1069
|
+
*/
|
|
1070
|
+
"onFilterCleared"?: (event: AdmiraltyFilterCustomEvent<void>) => void;
|
|
1071
|
+
}
|
|
1072
|
+
interface AdmiraltyFilterGroup {
|
|
1073
|
+
/**
|
|
1074
|
+
* The title of the filter group
|
|
1075
|
+
*/
|
|
1076
|
+
"groupTitle"?: string;
|
|
1077
|
+
}
|
|
1078
|
+
interface AdmiraltyFooter {
|
|
1079
|
+
/**
|
|
1080
|
+
* A description for the image displayed in the footer. This might be shown if the image fails to load or get read out by screen readers.
|
|
1081
|
+
*/
|
|
1082
|
+
"imageAlt"?: string;
|
|
1083
|
+
/**
|
|
1084
|
+
* The URL that the image links to.
|
|
1085
|
+
*/
|
|
1086
|
+
"imageLink"?: string;
|
|
1087
|
+
/**
|
|
1088
|
+
* The source of the image displayed in the footer.
|
|
1089
|
+
*/
|
|
1090
|
+
"imageSrc"?: string;
|
|
1091
|
+
/**
|
|
1092
|
+
* The text to display in the footer. The default value displays crown copyright, the current year and `UK Hydrographic Office`.
|
|
1093
|
+
*/
|
|
1094
|
+
"text"?: string;
|
|
1095
|
+
}
|
|
1096
|
+
interface AdmiraltyHeader {
|
|
1097
|
+
/**
|
|
1098
|
+
* The header title that is displayed to the right of the logo
|
|
1099
|
+
*/
|
|
1100
|
+
"headerTitle"?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* The url that clicking on the nav link will take you too
|
|
1103
|
+
*/
|
|
1104
|
+
"headerTitleUrl"?: string;
|
|
1105
|
+
/**
|
|
1106
|
+
* The alternate image text for the logo image
|
|
1107
|
+
*/
|
|
1108
|
+
"logoAltText"?: string;
|
|
1109
|
+
/**
|
|
1110
|
+
* The uri of the logo image
|
|
1111
|
+
*/
|
|
1112
|
+
"logoImgUrl"?: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* The destination url when the logo is clicked
|
|
1115
|
+
*/
|
|
1116
|
+
"logoLinkUrl"?: string;
|
|
1117
|
+
/**
|
|
1118
|
+
* Emits an event that can be listened to when the title in the header is clicked
|
|
1119
|
+
*/
|
|
1120
|
+
"onTitledClicked"?: (event: AdmiraltyHeaderCustomEvent<string>) => void;
|
|
1121
|
+
}
|
|
1122
|
+
interface AdmiraltyHeaderMenuItem {
|
|
1123
|
+
/**
|
|
1124
|
+
* The text that will be displayed in the menu
|
|
1125
|
+
*/
|
|
1126
|
+
"active"?: boolean;
|
|
1127
|
+
/**
|
|
1128
|
+
* The text that will be displayed in the menu
|
|
1129
|
+
*/
|
|
1130
|
+
"menuTitle"?: string;
|
|
1131
|
+
/**
|
|
1132
|
+
* The event that is fired when a user clicks on the menu
|
|
1133
|
+
*/
|
|
1134
|
+
"onMenuItemClick"?: (event: AdmiraltyHeaderMenuItemCustomEvent<void>) => void;
|
|
1135
|
+
}
|
|
1136
|
+
interface AdmiraltyHeaderProfile {
|
|
1137
|
+
/**
|
|
1138
|
+
* A boolean to indicate if the user is signed in or not
|
|
1139
|
+
*/
|
|
1140
|
+
"isSignedIn"?: boolean;
|
|
1141
|
+
/**
|
|
1142
|
+
* The event that is fired when the user clicks on the sign in button
|
|
1143
|
+
*/
|
|
1144
|
+
"onSignInClicked"?: (event: AdmiraltyHeaderProfileCustomEvent<void>) => void;
|
|
1145
|
+
/**
|
|
1146
|
+
* The event that is fired when the user clicks on the 'sign out' button
|
|
1147
|
+
*/
|
|
1148
|
+
"onSignOutClicked"?: (event: AdmiraltyHeaderProfileCustomEvent<void>) => void;
|
|
1149
|
+
/**
|
|
1150
|
+
* TThe event that is fired when the user clicks 'user profile' on the profile sub menu
|
|
1151
|
+
*/
|
|
1152
|
+
"onUserProfileClicked"?: (event: AdmiraltyHeaderProfileCustomEvent<void>) => void;
|
|
1153
|
+
/**
|
|
1154
|
+
* The event that is fired when the user clicks on the 'Your account' button
|
|
1155
|
+
*/
|
|
1156
|
+
"onYourAccountClicked"?: (event: AdmiraltyHeaderProfileCustomEvent<void>) => void;
|
|
1157
|
+
/**
|
|
1158
|
+
* The text that is displayed after the user signs in
|
|
1159
|
+
*/
|
|
1160
|
+
"signedInText"?: string;
|
|
1161
|
+
}
|
|
1162
|
+
interface AdmiraltyHeaderSubMenuItem {
|
|
1163
|
+
/**
|
|
1164
|
+
* The text that will be displayed in the menu
|
|
1165
|
+
*/
|
|
1166
|
+
"menuTitle"?: string;
|
|
1167
|
+
/**
|
|
1168
|
+
* The event that is fired when a user clicks on the menu
|
|
1169
|
+
*/
|
|
1170
|
+
"onSubMenuItemClick"?: (event: AdmiraltyHeaderSubMenuItemCustomEvent<void>) => void;
|
|
1171
|
+
}
|
|
1172
|
+
interface AdmiraltyHint {
|
|
1173
|
+
/**
|
|
1174
|
+
* The disabled option can be used to disable the component.
|
|
1175
|
+
*/
|
|
1176
|
+
"disabled"?: boolean;
|
|
1177
|
+
}
|
|
1178
|
+
interface AdmiraltyHr {
|
|
1179
|
+
}
|
|
1180
|
+
interface AdmiraltyIcon {
|
|
1181
|
+
/**
|
|
1182
|
+
* Name of the icon to be rendered Check out <a href="https://fontawesome.com/search?m=free}">FontAwesome</a> for a list of icons
|
|
1183
|
+
*/
|
|
1184
|
+
"iconName"?: IconName1;
|
|
1185
|
+
/**
|
|
1186
|
+
* The style prefix to apply to the icon By default, icons use Font Awesome's solid style
|
|
1187
|
+
*/
|
|
1188
|
+
"iconPrefix"?: IconPrefix;
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
* Once this component works, review whether a form field component should be created so
|
|
1192
|
+
* that shared properties such as `label`, `hint`, `disabled` etc. can be defined once.
|
|
1193
|
+
* Examples of similar components that can extend that base component are area, select
|
|
1194
|
+
* and checkbox.
|
|
1195
|
+
*/
|
|
1196
|
+
interface AdmiraltyInput {
|
|
1197
|
+
/**
|
|
1198
|
+
* Indicates whether the value of the control can be automatically completed by the browser.
|
|
1199
|
+
*/
|
|
1200
|
+
"autocomplete"?: string;
|
|
1201
|
+
/**
|
|
1202
|
+
* This dictates whether the form field is disabled.
|
|
1203
|
+
*/
|
|
1204
|
+
"disabled"?: boolean;
|
|
1205
|
+
/**
|
|
1206
|
+
* The hint which will be used under the label to describe the input.
|
|
1207
|
+
*/
|
|
1208
|
+
"hint"?: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* Whether to show the input in an invalid state
|
|
1211
|
+
*/
|
|
1212
|
+
"invalid"?: boolean;
|
|
1213
|
+
/**
|
|
1214
|
+
* The message to show when the input is invalid
|
|
1215
|
+
*/
|
|
1216
|
+
"invalidMessage"?: string;
|
|
1217
|
+
/**
|
|
1218
|
+
* The label which will be used above the input to describe the input.
|
|
1219
|
+
*/
|
|
1220
|
+
"label"?: string;
|
|
1221
|
+
/**
|
|
1222
|
+
* The name of the control, which is submitted with the form data.
|
|
1223
|
+
*/
|
|
1224
|
+
"name"?: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* Emitted when the value has changed.
|
|
1227
|
+
*/
|
|
1228
|
+
"onAdmiraltyChange"?: (event: AdmiraltyInputCustomEvent<InputChangeEventDetail>) => void;
|
|
1229
|
+
/**
|
|
1230
|
+
* The placeholder text to show in the input
|
|
1231
|
+
*/
|
|
1232
|
+
"placeholder"?: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* This dictates whether the input is required or not
|
|
1235
|
+
*/
|
|
1236
|
+
"required"?: boolean;
|
|
1237
|
+
/**
|
|
1238
|
+
* The input type, options are: `text | date | time | email | password | tel | url`
|
|
1239
|
+
*/
|
|
1240
|
+
"type"?: 'text' | 'date' | 'time' | 'email' | 'password' | 'tel' | 'url';
|
|
1241
|
+
/**
|
|
1242
|
+
* The value of the input.
|
|
1243
|
+
*/
|
|
1244
|
+
"value"?: string | number | null;
|
|
1245
|
+
/**
|
|
1246
|
+
* The maximum width for the input field.
|
|
1247
|
+
*/
|
|
1248
|
+
"width"?: number;
|
|
1249
|
+
}
|
|
1250
|
+
interface AdmiraltyInputError {
|
|
1251
|
+
}
|
|
1252
|
+
interface AdmiraltyLabel {
|
|
1253
|
+
/**
|
|
1254
|
+
* The disabled option can be used to disable the component.
|
|
1255
|
+
*/
|
|
1256
|
+
"disabled"?: boolean;
|
|
1257
|
+
/**
|
|
1258
|
+
* The id of the input the label is attached to
|
|
1259
|
+
*/
|
|
1260
|
+
"for"?: string;
|
|
1261
|
+
}
|
|
1262
|
+
interface AdmiraltyLink {
|
|
1263
|
+
/**
|
|
1264
|
+
* The URL that the link will navigate to.
|
|
1265
|
+
*/
|
|
1266
|
+
"href"?: string;
|
|
1267
|
+
/**
|
|
1268
|
+
* Whether to open the URL in a new tab.
|
|
1269
|
+
*/
|
|
1270
|
+
"newTab"?: boolean;
|
|
1271
|
+
}
|
|
1272
|
+
interface AdmiraltyPaginator {
|
|
1273
|
+
/**
|
|
1274
|
+
* The current page. Defaults to 1.
|
|
1275
|
+
*/
|
|
1276
|
+
"currentPage"?: number;
|
|
1277
|
+
/**
|
|
1278
|
+
* The label to display.
|
|
1279
|
+
*/
|
|
1280
|
+
"label"?: string;
|
|
1281
|
+
/**
|
|
1282
|
+
* Dispatched when the previous or next button is pressed. The event detail contains the requested page number.
|
|
1283
|
+
*/
|
|
1284
|
+
"onPageChange"?: (event: AdmiraltyPaginatorCustomEvent<number>) => void;
|
|
1285
|
+
/**
|
|
1286
|
+
* The total number of pages. Defaults to 1.
|
|
1287
|
+
*/
|
|
1288
|
+
"pages"?: number;
|
|
1289
|
+
}
|
|
1290
|
+
interface AdmiraltyPaginatorWrapper {
|
|
1291
|
+
}
|
|
1292
|
+
interface AdmiraltyPhaseBanner {
|
|
1293
|
+
/**
|
|
1294
|
+
* A link to where the end user can provide feedback
|
|
1295
|
+
*/
|
|
1296
|
+
"link"?: string;
|
|
1297
|
+
/**
|
|
1298
|
+
* The phase for the phase banner
|
|
1299
|
+
*/
|
|
1300
|
+
"phase"?: 'alpha' | 'beta';
|
|
1301
|
+
}
|
|
1302
|
+
interface AdmiraltyProgressBar {
|
|
1303
|
+
/**
|
|
1304
|
+
* Set to true to indicate an error (turns the progress bar red)
|
|
1305
|
+
*/
|
|
1306
|
+
"error"?: boolean;
|
|
1307
|
+
/**
|
|
1308
|
+
* If set, adds a label above the progress bar
|
|
1309
|
+
*/
|
|
1310
|
+
"label"?: string;
|
|
1311
|
+
/**
|
|
1312
|
+
* * A value from 0 - 100 that visually represents the current progression
|
|
1313
|
+
*/
|
|
1314
|
+
"progression"?: number;
|
|
1315
|
+
}
|
|
1316
|
+
interface AdmiraltyRadio {
|
|
1317
|
+
/**
|
|
1318
|
+
* Determines whether the radio button is selected (or checked)
|
|
1319
|
+
*/
|
|
1320
|
+
"checked"?: boolean;
|
|
1321
|
+
/**
|
|
1322
|
+
* Determines whether the radio button is disabled. A button in disabled state will not fire click output events.
|
|
1323
|
+
*/
|
|
1324
|
+
"disabled"?: boolean;
|
|
1325
|
+
/**
|
|
1326
|
+
* The name of the radio button for use on selection within a radio group
|
|
1327
|
+
*/
|
|
1328
|
+
"name"?: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* Emitted when the radio button loses focus.
|
|
1331
|
+
*/
|
|
1332
|
+
"onAdmiraltyBlur"?: (event: AdmiraltyRadioCustomEvent<void>) => void;
|
|
1333
|
+
/**
|
|
1334
|
+
* Emitted when the radio button gains focus.
|
|
1335
|
+
*/
|
|
1336
|
+
"onAdmiraltyFocus"?: (event: AdmiraltyRadioCustomEvent<void>) => void;
|
|
1337
|
+
/**
|
|
1338
|
+
* The value of the radio button for use on selection within a radio group
|
|
1339
|
+
*/
|
|
1340
|
+
"value"?: string | null;
|
|
1341
|
+
}
|
|
1342
|
+
interface AdmiraltyRadioGroup {
|
|
1343
|
+
/**
|
|
1344
|
+
* Setting this true displays the radio options vertically (defaults to false)
|
|
1345
|
+
*/
|
|
1346
|
+
"displayVertical"?: boolean;
|
|
1347
|
+
/**
|
|
1348
|
+
* The name of the control, which is submitted with the form data
|
|
1349
|
+
*/
|
|
1350
|
+
"name"?: string;
|
|
1351
|
+
/**
|
|
1352
|
+
* Event fired when the checked radio button changes
|
|
1353
|
+
*/
|
|
1354
|
+
"onRadioChange"?: (event: AdmiraltyRadioGroupCustomEvent<any>) => void;
|
|
1355
|
+
/**
|
|
1356
|
+
* The value of the radio group
|
|
1357
|
+
*/
|
|
1358
|
+
"value"?: any | null;
|
|
1359
|
+
}
|
|
1360
|
+
interface AdmiraltySelect {
|
|
1361
|
+
/**
|
|
1362
|
+
* If `true`, the user cannot interact with the select.
|
|
1363
|
+
*/
|
|
1364
|
+
"disabled"?: boolean;
|
|
1365
|
+
/**
|
|
1366
|
+
* If 'true', the 'error' class is added to suggest an error
|
|
1367
|
+
*/
|
|
1368
|
+
"error"?: boolean;
|
|
1369
|
+
/**
|
|
1370
|
+
* The hint that is used to inform the user of an error (displayed below the select box)
|
|
1371
|
+
*/
|
|
1372
|
+
"errorHint"?: string;
|
|
1373
|
+
/**
|
|
1374
|
+
* The text that will be used as a field label.
|
|
1375
|
+
*/
|
|
1376
|
+
"hint"?: string;
|
|
1377
|
+
/**
|
|
1378
|
+
* The text that will be used as a field label.
|
|
1379
|
+
*/
|
|
1380
|
+
"label"?: string;
|
|
1381
|
+
/**
|
|
1382
|
+
* Emitted when the component loses focus.
|
|
1383
|
+
*/
|
|
1384
|
+
"onAdmiraltyBlur"?: (event: AdmiraltySelectCustomEvent<void>) => void;
|
|
1385
|
+
/**
|
|
1386
|
+
* Emitted when the value has changed.
|
|
1387
|
+
*/
|
|
1388
|
+
"onAdmiraltyChange"?: (event: AdmiraltySelectCustomEvent<EventTarget>) => void;
|
|
1389
|
+
/**
|
|
1390
|
+
* The maximum width (px) for the input field.
|
|
1391
|
+
*/
|
|
1392
|
+
"width"?: number;
|
|
1393
|
+
}
|
|
1394
|
+
interface AdmiraltySideNav {
|
|
1395
|
+
/**
|
|
1396
|
+
* A label for accessibility purposes to describe what this Side Nav navigation is for e.g. Product Menu, Map Tool Menu etc.
|
|
1397
|
+
*/
|
|
1398
|
+
"label"?: string;
|
|
1399
|
+
}
|
|
1400
|
+
interface AdmiraltySideNavItem {
|
|
1401
|
+
/**
|
|
1402
|
+
* The text that is displayed in the SideNavItem
|
|
1403
|
+
*/
|
|
1404
|
+
"headingTitle"?: string;
|
|
1405
|
+
/**
|
|
1406
|
+
* Represents whether this SideNavItem is 'active' and will be styled differently than SideNavItems that are not 'active'. The intent behind the design for SideNav is for there to only be ONE SideNavItem that is 'active' per SideNav
|
|
1407
|
+
*/
|
|
1408
|
+
"navActive"?: boolean;
|
|
1409
|
+
/**
|
|
1410
|
+
* An event emitted when this Side Nav item is selected containing the sideNavItemId
|
|
1411
|
+
*/
|
|
1412
|
+
"onSideNavItemSelected"?: (event: AdmiraltySideNavItemCustomEvent<string>) => void;
|
|
1413
|
+
/**
|
|
1414
|
+
* A unique id for this SideNavItem
|
|
1415
|
+
*/
|
|
1416
|
+
"sideNavItemId"?: string;
|
|
1417
|
+
}
|
|
1418
|
+
interface AdmiraltySideNavWrapper {
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* Use tables to make information easier for users to scan and compare
|
|
1422
|
+
*/
|
|
1423
|
+
interface AdmiraltyTable {
|
|
1424
|
+
"caption"?: string;
|
|
1425
|
+
}
|
|
1426
|
+
/**
|
|
1427
|
+
* The table body element is a wrapper for a standard html table body and should be used to wrap rows
|
|
1428
|
+
*/
|
|
1429
|
+
interface AdmiraltyTableBody {
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1432
|
+
* The table cell is a wrapper for a standard <td> element and should be used inside of table rows
|
|
1433
|
+
*/
|
|
1434
|
+
interface AdmiraltyTableCell {
|
|
1435
|
+
}
|
|
1436
|
+
/**
|
|
1437
|
+
* The table header should be used inside a table element to give headers to all the columns
|
|
1438
|
+
*/
|
|
1439
|
+
interface AdmiraltyTableHeader {
|
|
1440
|
+
}
|
|
1441
|
+
/**
|
|
1442
|
+
* The table header cell element is used for showing headings for the columns
|
|
1443
|
+
*/
|
|
1444
|
+
interface AdmiraltyTableHeaderCell {
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* The table row element should be used to define rows within the table body
|
|
1448
|
+
*/
|
|
1449
|
+
interface AdmiraltyTableRow {
|
|
1450
|
+
}
|
|
1451
|
+
interface AdmiraltyTextarea {
|
|
1452
|
+
/**
|
|
1453
|
+
* This dictates whether the form field is disabled.
|
|
1454
|
+
*/
|
|
1455
|
+
"disabled"?: boolean;
|
|
1456
|
+
/**
|
|
1457
|
+
* The hint which will be used under the label to describe the input.
|
|
1458
|
+
*/
|
|
1459
|
+
"hint"?: string;
|
|
1460
|
+
/**
|
|
1461
|
+
* Whether to show the input in an invalid state
|
|
1462
|
+
*/
|
|
1463
|
+
"invalid"?: boolean;
|
|
1464
|
+
/**
|
|
1465
|
+
* The message to show when the input is invalid
|
|
1466
|
+
*/
|
|
1467
|
+
"invalidMessage"?: string;
|
|
1468
|
+
/**
|
|
1469
|
+
* The label which will be used as a placeholder in the unfilled state, and as a field label in the filled state.
|
|
1470
|
+
*/
|
|
1471
|
+
"label"?: string;
|
|
1472
|
+
/**
|
|
1473
|
+
* Event is fired when the form control loses focus
|
|
1474
|
+
* @event textareaBlur
|
|
1475
|
+
*/
|
|
1476
|
+
"onTextareaBlur"?: (event: AdmiraltyTextareaCustomEvent<any>) => void;
|
|
1477
|
+
/**
|
|
1478
|
+
* Event is fired when the form control changes
|
|
1479
|
+
* @event textareaChanged
|
|
1480
|
+
*/
|
|
1481
|
+
"onTextareaChanged"?: (event: AdmiraltyTextareaCustomEvent<string>) => void;
|
|
1482
|
+
/**
|
|
1483
|
+
* The contents of the textarea
|
|
1484
|
+
*/
|
|
1485
|
+
"text"?: string;
|
|
1486
|
+
/**
|
|
1487
|
+
* The maximum width for the input field.
|
|
1488
|
+
*/
|
|
1489
|
+
"width"?: number;
|
|
1490
|
+
}
|
|
1491
|
+
interface AdmiraltyTypeAhead {
|
|
1492
|
+
/**
|
|
1493
|
+
* The text content of the label for the input box
|
|
1494
|
+
*/
|
|
1495
|
+
"label"?: string;
|
|
1496
|
+
/**
|
|
1497
|
+
* Optional function that will be executed when the user selects an item from the typeahead
|
|
1498
|
+
*/
|
|
1499
|
+
"onSelectionChanged"?: (event: AdmiraltyTypeAheadCustomEvent<string>) => void;
|
|
1500
|
+
/**
|
|
1501
|
+
* Event that is fired whenever the value of the typeahead changes e.g. selection from the dropdown or manually typed entry
|
|
1502
|
+
*/
|
|
1503
|
+
"onValueChanged"?: (event: AdmiraltyTypeAheadCustomEvent<string>) => void;
|
|
1504
|
+
/**
|
|
1505
|
+
* The placeholder text for the input field
|
|
1506
|
+
*/
|
|
1507
|
+
"placeholder"?: string;
|
|
1508
|
+
/**
|
|
1509
|
+
* Optional property to show results when input box is initally focused
|
|
1510
|
+
*/
|
|
1511
|
+
"resultsOnInitFocus"?: boolean;
|
|
1512
|
+
/**
|
|
1513
|
+
* The value of the textinput
|
|
1514
|
+
*/
|
|
1515
|
+
"value"?: string;
|
|
1516
|
+
}
|
|
1517
|
+
interface AdmiraltyTypeAheadItem {
|
|
1518
|
+
"value": string;
|
|
1519
|
+
}
|
|
1520
|
+
interface IntrinsicElements {
|
|
1521
|
+
"admiralty-breadcrumb": AdmiraltyBreadcrumb;
|
|
1522
|
+
"admiralty-breadcrumbs": AdmiraltyBreadcrumbs;
|
|
1523
|
+
"admiralty-button": AdmiraltyButton;
|
|
1524
|
+
"admiralty-card": AdmiraltyCard;
|
|
1525
|
+
"admiralty-checkbox": AdmiraltyCheckbox;
|
|
1526
|
+
"admiralty-colour-block": AdmiraltyColourBlock;
|
|
1527
|
+
"admiralty-dialogue": AdmiraltyDialogue;
|
|
1528
|
+
"admiralty-expansion": AdmiraltyExpansion;
|
|
1529
|
+
"admiralty-file-input": AdmiraltyFileInput;
|
|
1530
|
+
"admiralty-filter": AdmiraltyFilter;
|
|
1531
|
+
"admiralty-filter-group": AdmiraltyFilterGroup;
|
|
1532
|
+
"admiralty-footer": AdmiraltyFooter;
|
|
1533
|
+
"admiralty-header": AdmiraltyHeader;
|
|
1534
|
+
"admiralty-header-menu-item": AdmiraltyHeaderMenuItem;
|
|
1535
|
+
"admiralty-header-profile": AdmiraltyHeaderProfile;
|
|
1536
|
+
"admiralty-header-sub-menu-item": AdmiraltyHeaderSubMenuItem;
|
|
1537
|
+
"admiralty-hint": AdmiraltyHint;
|
|
1538
|
+
"admiralty-hr": AdmiraltyHr;
|
|
1539
|
+
"admiralty-icon": AdmiraltyIcon;
|
|
1540
|
+
"admiralty-input": AdmiraltyInput;
|
|
1541
|
+
"admiralty-input-error": AdmiraltyInputError;
|
|
1542
|
+
"admiralty-label": AdmiraltyLabel;
|
|
1543
|
+
"admiralty-link": AdmiraltyLink;
|
|
1544
|
+
"admiralty-paginator": AdmiraltyPaginator;
|
|
1545
|
+
"admiralty-paginator-wrapper": AdmiraltyPaginatorWrapper;
|
|
1546
|
+
"admiralty-phase-banner": AdmiraltyPhaseBanner;
|
|
1547
|
+
"admiralty-progress-bar": AdmiraltyProgressBar;
|
|
1548
|
+
"admiralty-radio": AdmiraltyRadio;
|
|
1549
|
+
"admiralty-radio-group": AdmiraltyRadioGroup;
|
|
1550
|
+
"admiralty-select": AdmiraltySelect;
|
|
1551
|
+
"admiralty-side-nav": AdmiraltySideNav;
|
|
1552
|
+
"admiralty-side-nav-item": AdmiraltySideNavItem;
|
|
1553
|
+
"admiralty-side-nav-wrapper": AdmiraltySideNavWrapper;
|
|
1554
|
+
"admiralty-table": AdmiraltyTable;
|
|
1555
|
+
"admiralty-table-body": AdmiraltyTableBody;
|
|
1556
|
+
"admiralty-table-cell": AdmiraltyTableCell;
|
|
1557
|
+
"admiralty-table-header": AdmiraltyTableHeader;
|
|
1558
|
+
"admiralty-table-header-cell": AdmiraltyTableHeaderCell;
|
|
1559
|
+
"admiralty-table-row": AdmiraltyTableRow;
|
|
1560
|
+
"admiralty-textarea": AdmiraltyTextarea;
|
|
1561
|
+
"admiralty-type-ahead": AdmiraltyTypeAhead;
|
|
1562
|
+
"admiralty-type-ahead-item": AdmiraltyTypeAheadItem;
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
export { LocalJSX as JSX };
|
|
1566
|
+
declare module "@stencil/core" {
|
|
1567
|
+
export namespace JSX {
|
|
1568
|
+
interface IntrinsicElements {
|
|
1569
|
+
"admiralty-breadcrumb": LocalJSX.AdmiraltyBreadcrumb & JSXBase.HTMLAttributes<HTMLAdmiraltyBreadcrumbElement>;
|
|
1570
|
+
"admiralty-breadcrumbs": LocalJSX.AdmiraltyBreadcrumbs & JSXBase.HTMLAttributes<HTMLAdmiraltyBreadcrumbsElement>;
|
|
1571
|
+
"admiralty-button": LocalJSX.AdmiraltyButton & JSXBase.HTMLAttributes<HTMLAdmiraltyButtonElement>;
|
|
1572
|
+
"admiralty-card": LocalJSX.AdmiraltyCard & JSXBase.HTMLAttributes<HTMLAdmiraltyCardElement>;
|
|
1573
|
+
"admiralty-checkbox": LocalJSX.AdmiraltyCheckbox & JSXBase.HTMLAttributes<HTMLAdmiraltyCheckboxElement>;
|
|
1574
|
+
"admiralty-colour-block": LocalJSX.AdmiraltyColourBlock & JSXBase.HTMLAttributes<HTMLAdmiraltyColourBlockElement>;
|
|
1575
|
+
"admiralty-dialogue": LocalJSX.AdmiraltyDialogue & JSXBase.HTMLAttributes<HTMLAdmiraltyDialogueElement>;
|
|
1576
|
+
"admiralty-expansion": LocalJSX.AdmiraltyExpansion & JSXBase.HTMLAttributes<HTMLAdmiraltyExpansionElement>;
|
|
1577
|
+
"admiralty-file-input": LocalJSX.AdmiraltyFileInput & JSXBase.HTMLAttributes<HTMLAdmiraltyFileInputElement>;
|
|
1578
|
+
"admiralty-filter": LocalJSX.AdmiraltyFilter & JSXBase.HTMLAttributes<HTMLAdmiraltyFilterElement>;
|
|
1579
|
+
"admiralty-filter-group": LocalJSX.AdmiraltyFilterGroup & JSXBase.HTMLAttributes<HTMLAdmiraltyFilterGroupElement>;
|
|
1580
|
+
"admiralty-footer": LocalJSX.AdmiraltyFooter & JSXBase.HTMLAttributes<HTMLAdmiraltyFooterElement>;
|
|
1581
|
+
"admiralty-header": LocalJSX.AdmiraltyHeader & JSXBase.HTMLAttributes<HTMLAdmiraltyHeaderElement>;
|
|
1582
|
+
"admiralty-header-menu-item": LocalJSX.AdmiraltyHeaderMenuItem & JSXBase.HTMLAttributes<HTMLAdmiraltyHeaderMenuItemElement>;
|
|
1583
|
+
"admiralty-header-profile": LocalJSX.AdmiraltyHeaderProfile & JSXBase.HTMLAttributes<HTMLAdmiraltyHeaderProfileElement>;
|
|
1584
|
+
"admiralty-header-sub-menu-item": LocalJSX.AdmiraltyHeaderSubMenuItem & JSXBase.HTMLAttributes<HTMLAdmiraltyHeaderSubMenuItemElement>;
|
|
1585
|
+
"admiralty-hint": LocalJSX.AdmiraltyHint & JSXBase.HTMLAttributes<HTMLAdmiraltyHintElement>;
|
|
1586
|
+
"admiralty-hr": LocalJSX.AdmiraltyHr & JSXBase.HTMLAttributes<HTMLAdmiraltyHrElement>;
|
|
1587
|
+
"admiralty-icon": LocalJSX.AdmiraltyIcon & JSXBase.HTMLAttributes<HTMLAdmiraltyIconElement>;
|
|
1588
|
+
/**
|
|
1589
|
+
* Once this component works, review whether a form field component should be created so
|
|
1590
|
+
* that shared properties such as `label`, `hint`, `disabled` etc. can be defined once.
|
|
1591
|
+
* Examples of similar components that can extend that base component are area, select
|
|
1592
|
+
* and checkbox.
|
|
1593
|
+
*/
|
|
1594
|
+
"admiralty-input": LocalJSX.AdmiraltyInput & JSXBase.HTMLAttributes<HTMLAdmiraltyInputElement>;
|
|
1595
|
+
"admiralty-input-error": LocalJSX.AdmiraltyInputError & JSXBase.HTMLAttributes<HTMLAdmiraltyInputErrorElement>;
|
|
1596
|
+
"admiralty-label": LocalJSX.AdmiraltyLabel & JSXBase.HTMLAttributes<HTMLAdmiraltyLabelElement>;
|
|
1597
|
+
"admiralty-link": LocalJSX.AdmiraltyLink & JSXBase.HTMLAttributes<HTMLAdmiraltyLinkElement>;
|
|
1598
|
+
"admiralty-paginator": LocalJSX.AdmiraltyPaginator & JSXBase.HTMLAttributes<HTMLAdmiraltyPaginatorElement>;
|
|
1599
|
+
"admiralty-paginator-wrapper": LocalJSX.AdmiraltyPaginatorWrapper & JSXBase.HTMLAttributes<HTMLAdmiraltyPaginatorWrapperElement>;
|
|
1600
|
+
"admiralty-phase-banner": LocalJSX.AdmiraltyPhaseBanner & JSXBase.HTMLAttributes<HTMLAdmiraltyPhaseBannerElement>;
|
|
1601
|
+
"admiralty-progress-bar": LocalJSX.AdmiraltyProgressBar & JSXBase.HTMLAttributes<HTMLAdmiraltyProgressBarElement>;
|
|
1602
|
+
"admiralty-radio": LocalJSX.AdmiraltyRadio & JSXBase.HTMLAttributes<HTMLAdmiraltyRadioElement>;
|
|
1603
|
+
"admiralty-radio-group": LocalJSX.AdmiraltyRadioGroup & JSXBase.HTMLAttributes<HTMLAdmiraltyRadioGroupElement>;
|
|
1604
|
+
"admiralty-select": LocalJSX.AdmiraltySelect & JSXBase.HTMLAttributes<HTMLAdmiraltySelectElement>;
|
|
1605
|
+
"admiralty-side-nav": LocalJSX.AdmiraltySideNav & JSXBase.HTMLAttributes<HTMLAdmiraltySideNavElement>;
|
|
1606
|
+
"admiralty-side-nav-item": LocalJSX.AdmiraltySideNavItem & JSXBase.HTMLAttributes<HTMLAdmiraltySideNavItemElement>;
|
|
1607
|
+
"admiralty-side-nav-wrapper": LocalJSX.AdmiraltySideNavWrapper & JSXBase.HTMLAttributes<HTMLAdmiraltySideNavWrapperElement>;
|
|
1608
|
+
/**
|
|
1609
|
+
* Use tables to make information easier for users to scan and compare
|
|
1610
|
+
*/
|
|
1611
|
+
"admiralty-table": LocalJSX.AdmiraltyTable & JSXBase.HTMLAttributes<HTMLAdmiraltyTableElement>;
|
|
1612
|
+
/**
|
|
1613
|
+
* The table body element is a wrapper for a standard html table body and should be used to wrap rows
|
|
1614
|
+
*/
|
|
1615
|
+
"admiralty-table-body": LocalJSX.AdmiraltyTableBody & JSXBase.HTMLAttributes<HTMLAdmiraltyTableBodyElement>;
|
|
1616
|
+
/**
|
|
1617
|
+
* The table cell is a wrapper for a standard <td> element and should be used inside of table rows
|
|
1618
|
+
*/
|
|
1619
|
+
"admiralty-table-cell": LocalJSX.AdmiraltyTableCell & JSXBase.HTMLAttributes<HTMLAdmiraltyTableCellElement>;
|
|
1620
|
+
/**
|
|
1621
|
+
* The table header should be used inside a table element to give headers to all the columns
|
|
1622
|
+
*/
|
|
1623
|
+
"admiralty-table-header": LocalJSX.AdmiraltyTableHeader & JSXBase.HTMLAttributes<HTMLAdmiraltyTableHeaderElement>;
|
|
1624
|
+
/**
|
|
1625
|
+
* The table header cell element is used for showing headings for the columns
|
|
1626
|
+
*/
|
|
1627
|
+
"admiralty-table-header-cell": LocalJSX.AdmiraltyTableHeaderCell & JSXBase.HTMLAttributes<HTMLAdmiraltyTableHeaderCellElement>;
|
|
1628
|
+
/**
|
|
1629
|
+
* The table row element should be used to define rows within the table body
|
|
1630
|
+
*/
|
|
1631
|
+
"admiralty-table-row": LocalJSX.AdmiraltyTableRow & JSXBase.HTMLAttributes<HTMLAdmiraltyTableRowElement>;
|
|
1632
|
+
"admiralty-textarea": LocalJSX.AdmiraltyTextarea & JSXBase.HTMLAttributes<HTMLAdmiraltyTextareaElement>;
|
|
1633
|
+
"admiralty-type-ahead": LocalJSX.AdmiraltyTypeAhead & JSXBase.HTMLAttributes<HTMLAdmiraltyTypeAheadElement>;
|
|
1634
|
+
"admiralty-type-ahead-item": LocalJSX.AdmiraltyTypeAheadItem & JSXBase.HTMLAttributes<HTMLAdmiraltyTypeAheadItemElement>;
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
}
|