@danske/sapphire-angular 1.12.4
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 +7 -0
- package/README.md +25 -0
- package/esm2020/danske-sapphire-angular.mjs +5 -0
- package/esm2020/lib/badge/public_api.mjs +3 -0
- package/esm2020/lib/badge/src/badge.component.mjs +66 -0
- package/esm2020/lib/badge/src/badge.module.mjs +18 -0
- package/esm2020/lib/button/public_api.mjs +12 -0
- package/esm2020/lib/button/src/button-group.component.mjs +57 -0
- package/esm2020/lib/button/src/button-icon.directive.mjs +13 -0
- package/esm2020/lib/button/src/button.component.mjs +100 -0
- package/esm2020/lib/button/src/button.module.mjs +48 -0
- package/esm2020/lib/button/src/icon-button.component.mjs +95 -0
- package/esm2020/lib/button/src/toggle-button-required-validator.mjs +27 -0
- package/esm2020/lib/button/src/toggle-button.component.mjs +124 -0
- package/esm2020/lib/checkbox/public_api.mjs +8 -0
- package/esm2020/lib/checkbox/src/checkbox-required-validator.mjs +26 -0
- package/esm2020/lib/checkbox/src/checkbox.component.mjs +264 -0
- package/esm2020/lib/checkbox/src/checkbox.module.mjs +21 -0
- package/esm2020/lib/common/auto-id.decorator.mjs +24 -0
- package/esm2020/lib/common/coerce-boolean.decorator.mjs +32 -0
- package/esm2020/lib/common/constructor.mjs +2 -0
- package/esm2020/lib/common/disabled.mjs +16 -0
- package/esm2020/lib/common/focused.directive.mjs +64 -0
- package/esm2020/lib/common/placement.mjs +60 -0
- package/esm2020/lib/common/platform.mjs +45 -0
- package/esm2020/lib/common/pressed.directive.mjs +55 -0
- package/esm2020/lib/common/public_api.mjs +4 -0
- package/esm2020/lib/common/sapphire-view-encapsulation.mjs +83 -0
- package/esm2020/lib/common/scroll-monitor.directive.mjs +63 -0
- package/esm2020/lib/common/tabindex.mjs +19 -0
- package/esm2020/lib/common/visually-hidden.directive.mjs +32 -0
- package/esm2020/lib/contextual-help/public_api.mjs +3 -0
- package/esm2020/lib/contextual-help/src/contextual-help.component.mjs +112 -0
- package/esm2020/lib/contextual-help/src/contextual-help.module.mjs +33 -0
- package/esm2020/lib/core.module.mjs +179 -0
- package/esm2020/lib/field/public_api.mjs +8 -0
- package/esm2020/lib/field/src/field-control.mjs +17 -0
- package/esm2020/lib/field/src/field-error.directive.mjs +20 -0
- package/esm2020/lib/field/src/field-label.directive.mjs +17 -0
- package/esm2020/lib/field/src/field-note-suffix.directive.mjs +28 -0
- package/esm2020/lib/field/src/field-note.directive.mjs +17 -0
- package/esm2020/lib/field/src/field.component.mjs +153 -0
- package/esm2020/lib/field/src/field.module.mjs +49 -0
- package/esm2020/lib/icon/public_api.mjs +4 -0
- package/esm2020/lib/icon/src/icon-size-provider.mjs +18 -0
- package/esm2020/lib/icon/src/icon.component.mjs +67 -0
- package/esm2020/lib/icon/src/icon.module.mjs +18 -0
- package/esm2020/lib/label/public_api.mjs +6 -0
- package/esm2020/lib/label/src/label.component.mjs +61 -0
- package/esm2020/lib/link/public_api.mjs +7 -0
- package/esm2020/lib/link/src/link.component.mjs +62 -0
- package/esm2020/lib/link/src/link.module.mjs +16 -0
- package/esm2020/lib/listbox/public_api.mjs +10 -0
- package/esm2020/lib/listbox/src/cdk-option-scroll-issue-patch.mjs +30 -0
- package/esm2020/lib/listbox/src/listbox-child.mjs +7 -0
- package/esm2020/lib/listbox/src/listbox-input.directive.mjs +42 -0
- package/esm2020/lib/listbox/src/listbox-item.component.mjs +49 -0
- package/esm2020/lib/listbox/src/listbox.component.mjs +273 -0
- package/esm2020/lib/listbox/src/listbox.module.mjs +81 -0
- package/esm2020/lib/listbox/src/option-icon.directive.mjs +22 -0
- package/esm2020/lib/listbox/src/option-primary-text.directive.mjs +25 -0
- package/esm2020/lib/listbox/src/option-secondary-text.directive.mjs +22 -0
- package/esm2020/lib/listbox/src/option.component.mjs +58 -0
- package/esm2020/lib/listbox/src/section.directive.mjs +46 -0
- package/esm2020/lib/menu/public_api.mjs +10 -0
- package/esm2020/lib/menu/src/menu-item.component.mjs +45 -0
- package/esm2020/lib/menu/src/menu-section.component.mjs +27 -0
- package/esm2020/lib/menu/src/menu-trigger.directive.mjs +149 -0
- package/esm2020/lib/menu/src/menu.component.mjs +33 -0
- package/esm2020/lib/menu/src/menu.module.mjs +39 -0
- package/esm2020/lib/modal/public_api.mjs +19 -0
- package/esm2020/lib/modal/src/dialog/confirmation-dialog.component.mjs +61 -0
- package/esm2020/lib/modal/src/dialog/danger-dialog.component.mjs +62 -0
- package/esm2020/lib/modal/src/dialog/dialog-close-button.directive.mjs +18 -0
- package/esm2020/lib/modal/src/dialog/dialog-content.directive.mjs +29 -0
- package/esm2020/lib/modal/src/dialog/dialog-footer.component.mjs +43 -0
- package/esm2020/lib/modal/src/dialog/dialog-header.component.mjs +65 -0
- package/esm2020/lib/modal/src/dialog/dialog-trigger.directive.mjs +37 -0
- package/esm2020/lib/modal/src/dialog/dialog.component.mjs +60 -0
- package/esm2020/lib/modal/src/modal-base.component.mjs +89 -0
- package/esm2020/lib/modal/src/modal-close-button.directive.mjs +28 -0
- package/esm2020/lib/modal/src/modal-trigger.directive.mjs +42 -0
- package/esm2020/lib/modal/src/modal.module.mjs +143 -0
- package/esm2020/lib/modal/src/modal.service.mjs +58 -0
- package/esm2020/lib/modal/src/panel/inline-panel.component.mjs +15 -0
- package/esm2020/lib/modal/src/panel/panel-back-button.directive.mjs +13 -0
- package/esm2020/lib/modal/src/panel/panel-close-button.directive.mjs +16 -0
- package/esm2020/lib/modal/src/panel/panel-content.component.mjs +38 -0
- package/esm2020/lib/modal/src/panel/panel-footer.component.mjs +38 -0
- package/esm2020/lib/modal/src/panel/panel-header.component.mjs +68 -0
- package/esm2020/lib/modal/src/panel/panel-trigger.directive.mjs +37 -0
- package/esm2020/lib/modal/src/panel/panel.component.mjs +37 -0
- package/esm2020/lib/notification-badge/public_api.mjs +3 -0
- package/esm2020/lib/notification-badge/src/notification-badge.component.mjs +28 -0
- package/esm2020/lib/notification-badge/src/notification-badge.module.mjs +18 -0
- package/esm2020/lib/pagination/public_api.mjs +3 -0
- package/esm2020/lib/pagination/src/pagination.component.mjs +85 -0
- package/esm2020/lib/pagination/src/pagination.module.mjs +36 -0
- package/esm2020/lib/popover/public_api.mjs +10 -0
- package/esm2020/lib/popover/src/popover-close-button.directive.mjs +32 -0
- package/esm2020/lib/popover/src/popover-title.directive.mjs +24 -0
- package/esm2020/lib/popover/src/popover-trigger.directive.mjs +301 -0
- package/esm2020/lib/popover/src/popover.component.mjs +88 -0
- package/esm2020/lib/popover/src/popover.module.mjs +38 -0
- package/esm2020/lib/radio/public_api.mjs +8 -0
- package/esm2020/lib/radio/src/radio-group.component.mjs +195 -0
- package/esm2020/lib/radio/src/radio.component.mjs +279 -0
- package/esm2020/lib/radio/src/radio.module.mjs +22 -0
- package/esm2020/lib/segmented-tabs/public_api.mjs +6 -0
- package/esm2020/lib/segmented-tabs/src/segmented-tab-content.directive.mjs +15 -0
- package/esm2020/lib/segmented-tabs/src/segmented-tab-label.directive.mjs +20 -0
- package/esm2020/lib/segmented-tabs/src/segmented-tab.component.mjs +69 -0
- package/esm2020/lib/segmented-tabs/src/segmented-tabs.component.mjs +215 -0
- package/esm2020/lib/segmented-tabs/src/segmented-tabs.module.mjs +39 -0
- package/esm2020/lib/select/public_api.mjs +10 -0
- package/esm2020/lib/select/src/basic-select/basic-select.component.mjs +127 -0
- package/esm2020/lib/select/src/common/hidden-select.component.mjs +33 -0
- package/esm2020/lib/select/src/common/select-component-base.mjs +267 -0
- package/esm2020/lib/select/src/common/select-value-holder.mjs +86 -0
- package/esm2020/lib/select/src/select/searchable-select.directive.mjs +90 -0
- package/esm2020/lib/select/src/select/select.component.mjs +351 -0
- package/esm2020/lib/select/src/select/select.module.mjs +113 -0
- package/esm2020/lib/select/src/select/selection-text.directive.mjs +19 -0
- package/esm2020/lib/skeleton/public_api.mjs +6 -0
- package/esm2020/lib/skeleton/src/skeleton-block.directive.mjs +16 -0
- package/esm2020/lib/skeleton/src/skeleton-circle.directive.mjs +16 -0
- package/esm2020/lib/skeleton/src/skeleton-text.directive.mjs +43 -0
- package/esm2020/lib/skeleton/src/skeleton.component.mjs +29 -0
- package/esm2020/lib/skeleton/src/skeleton.module.mjs +37 -0
- package/esm2020/lib/skeleton/src/util.mjs +2 -0
- package/esm2020/lib/surface/public_api.mjs +7 -0
- package/esm2020/lib/surface/src/surface.component.mjs +25 -0
- package/esm2020/lib/surface/src/surface.module.mjs +16 -0
- package/esm2020/lib/switch/public_api.mjs +4 -0
- package/esm2020/lib/switch/src/switch-required-validator.mjs +27 -0
- package/esm2020/lib/switch/src/switch.component.mjs +216 -0
- package/esm2020/lib/switch/src/switch.module.mjs +19 -0
- package/esm2020/lib/table/public_api.mjs +15 -0
- package/esm2020/lib/table/src/table-body.directive.mjs +20 -0
- package/esm2020/lib/table/src/table-cell.directive.mjs +87 -0
- package/esm2020/lib/table/src/table-head-cell.component.mjs +57 -0
- package/esm2020/lib/table/src/table-head.directive.mjs +32 -0
- package/esm2020/lib/table/src/table-row.directive.mjs +48 -0
- package/esm2020/lib/table/src/table-sort-header.directive.mjs +44 -0
- package/esm2020/lib/table/src/table-sort.directive.mjs +26 -0
- package/esm2020/lib/table/src/table.component.mjs +82 -0
- package/esm2020/lib/table/src/table.directive.mjs +20 -0
- package/esm2020/lib/table/src/table.module.mjs +74 -0
- package/esm2020/lib/text-field/public_api.mjs +12 -0
- package/esm2020/lib/text-field/src/text-field-affix.directive.mjs +26 -0
- package/esm2020/lib/text-field/src/text-field-input.directive.mjs +51 -0
- package/esm2020/lib/text-field/src/text-field-postfix.directive.mjs +13 -0
- package/esm2020/lib/text-field/src/text-field-prefix.directive.mjs +13 -0
- package/esm2020/lib/text-field/src/text-field-textarea-autosize.directive.mjs +73 -0
- package/esm2020/lib/text-field/src/text-field.component.mjs +78 -0
- package/esm2020/lib/text-field/src/text-field.module.mjs +67 -0
- package/esm2020/lib/theme/public_api.mjs +34 -0
- package/esm2020/lib/theme/src/sapphire-overlay-container.service.mjs +38 -0
- package/esm2020/lib/theme/src/theme-base.directive.mjs +87 -0
- package/esm2020/lib/theme/src/theme-check.directive.mjs +29 -0
- package/esm2020/lib/theme/src/theme-root.directive.mjs +23 -0
- package/esm2020/lib/theme/src/theme.module.mjs +32 -0
- package/esm2020/lib/theme/src/themes.mjs +27 -0
- package/esm2020/lib/theme/src/top-level-theme-ref.service.mjs +21 -0
- package/esm2020/lib/tooltip/public_api.mjs +5 -0
- package/esm2020/lib/tooltip/src/tooltip.component.mjs +47 -0
- package/esm2020/lib/tooltip/src/tooltip.directive.mjs +223 -0
- package/esm2020/lib/tooltip/src/tooltip.module.mjs +30 -0
- package/esm2020/lib/tooltip/src/truncated-with-tooltip.directive.mjs +56 -0
- package/esm2020/lib/typography/public_api.mjs +8 -0
- package/esm2020/lib/typography/src/heading.component.mjs +44 -0
- package/esm2020/lib/typography/src/paragraph.component.mjs +24 -0
- package/esm2020/lib/typography/src/typography.module.mjs +19 -0
- package/esm2020/public-api.mjs +30 -0
- package/fesm2015/danske-sapphire-angular.mjs +8010 -0
- package/fesm2015/danske-sapphire-angular.mjs.map +1 -0
- package/fesm2020/danske-sapphire-angular.mjs +7890 -0
- package/fesm2020/danske-sapphire-angular.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/badge/public_api.d.ts +2 -0
- package/lib/badge/src/badge.component.d.ts +35 -0
- package/lib/badge/src/badge.module.d.ts +8 -0
- package/lib/button/public_api.d.ts +7 -0
- package/lib/button/src/button-group.component.d.ts +26 -0
- package/lib/button/src/button-icon.directive.d.ts +5 -0
- package/lib/button/src/button.component.d.ts +31 -0
- package/lib/button/src/button.module.d.ts +14 -0
- package/lib/button/src/icon-button.component.d.ts +26 -0
- package/lib/button/src/toggle-button-required-validator.d.ts +10 -0
- package/lib/button/src/toggle-button.component.d.ts +39 -0
- package/lib/checkbox/public_api.d.ts +3 -0
- package/lib/checkbox/src/checkbox-required-validator.d.ts +10 -0
- package/lib/checkbox/src/checkbox.component.d.ts +112 -0
- package/lib/checkbox/src/checkbox.module.d.ts +11 -0
- package/lib/common/auto-id.decorator.d.ts +7 -0
- package/lib/common/coerce-boolean.decorator.d.ts +7 -0
- package/lib/common/constructor.d.ts +2 -0
- package/lib/common/disabled.d.ts +9 -0
- package/lib/common/focused.directive.d.ts +30 -0
- package/lib/common/placement.d.ts +11 -0
- package/lib/common/platform.d.ts +9 -0
- package/lib/common/pressed.directive.d.ts +27 -0
- package/lib/common/public_api.d.ts +2 -0
- package/lib/common/sapphire-view-encapsulation.d.ts +37 -0
- package/lib/common/scroll-monitor.directive.d.ts +23 -0
- package/lib/common/tabindex.d.ts +12 -0
- package/lib/common/visually-hidden.directive.d.ts +11 -0
- package/lib/contextual-help/public_api.d.ts +2 -0
- package/lib/contextual-help/src/contextual-help.component.d.ts +50 -0
- package/lib/contextual-help/src/contextual-help.module.d.ts +7 -0
- package/lib/core.module.d.ts +30 -0
- package/lib/field/public_api.d.ts +7 -0
- package/lib/field/src/field-control.d.ts +16 -0
- package/lib/field/src/field-error.directive.d.ts +8 -0
- package/lib/field/src/field-label.directive.d.ts +8 -0
- package/lib/field/src/field-note-suffix.directive.d.ts +15 -0
- package/lib/field/src/field-note.directive.d.ts +8 -0
- package/lib/field/src/field.component.d.ts +77 -0
- package/lib/field/src/field.module.d.ts +14 -0
- package/lib/icon/public_api.d.ts +3 -0
- package/lib/icon/src/icon-size-provider.d.ts +23 -0
- package/lib/icon/src/icon.component.d.ts +18 -0
- package/lib/icon/src/icon.module.d.ts +8 -0
- package/lib/label/public_api.d.ts +5 -0
- package/lib/label/src/label.component.d.ts +43 -0
- package/lib/link/public_api.d.ts +2 -0
- package/lib/link/src/link.component.d.ts +13 -0
- package/lib/link/src/link.module.d.ts +7 -0
- package/lib/listbox/public_api.d.ts +9 -0
- package/lib/listbox/src/cdk-option-scroll-issue-patch.d.ts +17 -0
- package/lib/listbox/src/listbox-child.d.ts +6 -0
- package/lib/listbox/src/listbox-input.directive.d.ts +16 -0
- package/lib/listbox/src/listbox-item.component.d.ts +21 -0
- package/lib/listbox/src/listbox.component.d.ts +127 -0
- package/lib/listbox/src/listbox.module.d.ts +22 -0
- package/lib/listbox/src/option-icon.directive.d.ts +10 -0
- package/lib/listbox/src/option-primary-text.directive.d.ts +14 -0
- package/lib/listbox/src/option-secondary-text.directive.d.ts +10 -0
- package/lib/listbox/src/option.component.d.ts +21 -0
- package/lib/listbox/src/section.directive.d.ts +14 -0
- package/lib/menu/public_api.d.ts +5 -0
- package/lib/menu/src/menu-item.component.d.ts +12 -0
- package/lib/menu/src/menu-section.component.d.ts +12 -0
- package/lib/menu/src/menu-trigger.directive.d.ts +34 -0
- package/lib/menu/src/menu.component.d.ts +10 -0
- package/lib/menu/src/menu.module.d.ts +13 -0
- package/lib/modal/public_api.d.ts +18 -0
- package/lib/modal/src/dialog/confirmation-dialog.component.d.ts +43 -0
- package/lib/modal/src/dialog/danger-dialog.component.d.ts +44 -0
- package/lib/modal/src/dialog/dialog-close-button.directive.d.ts +7 -0
- package/lib/modal/src/dialog/dialog-content.directive.d.ts +13 -0
- package/lib/modal/src/dialog/dialog-footer.component.d.ts +20 -0
- package/lib/modal/src/dialog/dialog-header.component.d.ts +25 -0
- package/lib/modal/src/dialog/dialog-trigger.directive.d.ts +13 -0
- package/lib/modal/src/dialog/dialog.component.d.ts +33 -0
- package/lib/modal/src/modal-base.component.d.ts +33 -0
- package/lib/modal/src/modal-close-button.directive.d.ts +9 -0
- package/lib/modal/src/modal-trigger.directive.d.ts +24 -0
- package/lib/modal/src/modal.module.d.ts +30 -0
- package/lib/modal/src/modal.service.d.ts +26 -0
- package/lib/modal/src/panel/inline-panel.component.d.ts +6 -0
- package/lib/modal/src/panel/panel-back-button.directive.d.ts +5 -0
- package/lib/modal/src/panel/panel-close-button.directive.d.ts +6 -0
- package/lib/modal/src/panel/panel-content.component.d.ts +14 -0
- package/lib/modal/src/panel/panel-footer.component.d.ts +21 -0
- package/lib/modal/src/panel/panel-header.component.d.ts +26 -0
- package/lib/modal/src/panel/panel-trigger.directive.d.ts +13 -0
- package/lib/modal/src/panel/panel.component.d.ts +18 -0
- package/lib/notification-badge/public_api.d.ts +2 -0
- package/lib/notification-badge/src/notification-badge.component.d.ts +10 -0
- package/lib/notification-badge/src/notification-badge.module.d.ts +8 -0
- package/lib/pagination/public_api.d.ts +2 -0
- package/lib/pagination/src/pagination.component.d.ts +32 -0
- package/lib/pagination/src/pagination.module.d.ts +12 -0
- package/lib/popover/public_api.d.ts +5 -0
- package/lib/popover/src/popover-close-button.directive.d.ts +13 -0
- package/lib/popover/src/popover-title.directive.d.ts +11 -0
- package/lib/popover/src/popover-trigger.directive.d.ts +86 -0
- package/lib/popover/src/popover.component.d.ts +32 -0
- package/lib/popover/src/popover.module.d.ts +12 -0
- package/lib/radio/public_api.d.ts +3 -0
- package/lib/radio/src/radio-group.component.d.ts +65 -0
- package/lib/radio/src/radio.component.d.ts +99 -0
- package/lib/radio/src/radio.module.d.ts +12 -0
- package/lib/segmented-tabs/public_api.d.ts +5 -0
- package/lib/segmented-tabs/src/segmented-tab-content.directive.d.ts +6 -0
- package/lib/segmented-tabs/src/segmented-tab-label.directive.d.ts +6 -0
- package/lib/segmented-tabs/src/segmented-tab.component.d.ts +27 -0
- package/lib/segmented-tabs/src/segmented-tabs.component.d.ts +48 -0
- package/lib/segmented-tabs/src/segmented-tabs.module.d.ts +13 -0
- package/lib/select/public_api.d.ts +5 -0
- package/lib/select/src/basic-select/basic-select.component.d.ts +50 -0
- package/lib/select/src/common/hidden-select.component.d.ts +19 -0
- package/lib/select/src/common/select-component-base.d.ts +109 -0
- package/lib/select/src/common/select-value-holder.d.ts +54 -0
- package/lib/select/src/select/searchable-select.directive.d.ts +40 -0
- package/lib/select/src/select/select.component.d.ts +80 -0
- package/lib/select/src/select/select.module.d.ts +26 -0
- package/lib/select/src/select/selection-text.directive.d.ts +11 -0
- package/lib/skeleton/public_api.d.ts +5 -0
- package/lib/skeleton/src/skeleton-block.directive.d.ts +5 -0
- package/lib/skeleton/src/skeleton-circle.directive.d.ts +5 -0
- package/lib/skeleton/src/skeleton-text.directive.d.ts +13 -0
- package/lib/skeleton/src/skeleton.component.d.ts +13 -0
- package/lib/skeleton/src/skeleton.module.d.ts +11 -0
- package/lib/skeleton/src/util.d.ts +1 -0
- package/lib/surface/public_api.d.ts +2 -0
- package/lib/surface/src/surface.component.d.ts +11 -0
- package/lib/surface/src/surface.module.d.ts +7 -0
- package/lib/switch/public_api.d.ts +3 -0
- package/lib/switch/src/switch-required-validator.d.ts +10 -0
- package/lib/switch/src/switch.component.d.ts +91 -0
- package/lib/switch/src/switch.module.d.ts +9 -0
- package/lib/table/public_api.d.ts +10 -0
- package/lib/table/src/table-body.directive.d.ts +7 -0
- package/lib/table/src/table-cell.directive.d.ts +30 -0
- package/lib/table/src/table-head-cell.component.d.ts +19 -0
- package/lib/table/src/table-head.directive.d.ts +10 -0
- package/lib/table/src/table-row.directive.d.ts +16 -0
- package/lib/table/src/table-sort-header.directive.d.ts +11 -0
- package/lib/table/src/table-sort.directive.d.ts +13 -0
- package/lib/table/src/table.component.d.ts +37 -0
- package/lib/table/src/table.directive.d.ts +7 -0
- package/lib/table/src/table.module.d.ts +19 -0
- package/lib/text-field/public_api.d.ts +7 -0
- package/lib/text-field/src/text-field-affix.directive.d.ts +10 -0
- package/lib/text-field/src/text-field-input.directive.d.ts +16 -0
- package/lib/text-field/src/text-field-postfix.directive.d.ts +5 -0
- package/lib/text-field/src/text-field-prefix.directive.d.ts +5 -0
- package/lib/text-field/src/text-field-textarea-autosize.directive.d.ts +20 -0
- package/lib/text-field/src/text-field.component.d.ts +23 -0
- package/lib/text-field/src/text-field.module.d.ts +17 -0
- package/lib/theme/public_api.d.ts +24 -0
- package/lib/theme/src/sapphire-overlay-container.service.d.ts +14 -0
- package/lib/theme/src/theme-base.directive.d.ts +14 -0
- package/lib/theme/src/theme-check.directive.d.ts +14 -0
- package/lib/theme/src/theme-root.directive.d.ts +13 -0
- package/lib/theme/src/theme.module.d.ts +14 -0
- package/lib/theme/src/themes.d.ts +16 -0
- package/lib/theme/src/top-level-theme-ref.service.d.ts +13 -0
- package/lib/tooltip/public_api.d.ts +4 -0
- package/lib/tooltip/src/tooltip.component.d.ts +10 -0
- package/lib/tooltip/src/tooltip.directive.d.ts +39 -0
- package/lib/tooltip/src/tooltip.module.d.ts +11 -0
- package/lib/tooltip/src/truncated-with-tooltip.directive.d.ts +26 -0
- package/lib/typography/public_api.d.ts +3 -0
- package/lib/typography/src/heading.component.d.ts +17 -0
- package/lib/typography/src/paragraph.component.d.ts +8 -0
- package/lib/typography/src/typography.module.d.ts +9 -0
- package/package.json +45 -0
- package/public-api.d.ts +26 -0
- package/src/lib/listbox/src/README.md +67 -0
- package/theme-assets/default-dark.css +1 -0
- package/theme-assets/default.css +1 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "../../common/sapphire-view-encapsulation";
|
|
3
|
+
type Color = 'positive' | 'negative' | 'warning' | 'informative' | 'passive' | 'aqua' | 'copper' | 'electro' | 'indigo' | 'lime' | 'pink' | 'violet' | 'gold' | 'beige' | 'orchid' | 'gray' | 'cobalt' | 'forestGreen' | 'teal' | 'orange';
|
|
4
|
+
type Variant = 'primary' | 'secondary';
|
|
5
|
+
type Size = 'small' | 'medium' | 'large';
|
|
6
|
+
export declare class BadgeComponent {
|
|
7
|
+
role: string;
|
|
8
|
+
/**
|
|
9
|
+
* A unique id for the host DOM element.
|
|
10
|
+
* If none is supplied, it will be auto-generated.
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* @default 'medium'
|
|
15
|
+
*/
|
|
16
|
+
size?: Size;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the badge has a saturated or faint background.
|
|
19
|
+
*
|
|
20
|
+
* @default 'primary'
|
|
21
|
+
*/
|
|
22
|
+
variant?: Variant;
|
|
23
|
+
/**
|
|
24
|
+
* The background color of the badge.
|
|
25
|
+
* Can either be semantic or one of the named decorative color.
|
|
26
|
+
*
|
|
27
|
+
* @default 'informative'
|
|
28
|
+
*/
|
|
29
|
+
color?: Color;
|
|
30
|
+
private get classNames();
|
|
31
|
+
constructor();
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "sp-badge", never, { "id": "id"; "size": "size"; "variant": "variant"; "color": "color"; }, {}, never, ["*"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./badge.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class SapphireBadgeModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SapphireBadgeModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireBadgeModule, [typeof i1.BadgeComponent], [typeof i2.CommonModule], [typeof i1.BadgeComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SapphireBadgeModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './src/button-group.component';
|
|
2
|
+
export * from './src/button.component';
|
|
3
|
+
export * from './src/icon-button.component';
|
|
4
|
+
export * from './src/toggle-button.component';
|
|
5
|
+
export * from './src/toggle-button-required-validator';
|
|
6
|
+
export * from './src/button-icon.directive';
|
|
7
|
+
export * from './src/button.module';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* ButtonGroup is a utility component which ensures consistent spacing between
|
|
4
|
+
* buttons All children must be of type Button. Icon buttons cannot be mixed
|
|
5
|
+
* with standard buttons.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ButtonGroupComponent {
|
|
8
|
+
/**
|
|
9
|
+
* Alignment of buttons within the group.
|
|
10
|
+
* @default "right"
|
|
11
|
+
*/
|
|
12
|
+
align: 'left' | 'center' | 'right';
|
|
13
|
+
get iconSpacing(): this['spacing'];
|
|
14
|
+
set iconSpacing(value: this['spacing']);
|
|
15
|
+
/**
|
|
16
|
+
* Spacing between the buttons
|
|
17
|
+
* @default normal
|
|
18
|
+
*/
|
|
19
|
+
spacing: 'normal' | 'dense' | 'large';
|
|
20
|
+
/**
|
|
21
|
+
* @default "horizontal"
|
|
22
|
+
*/
|
|
23
|
+
orientation?: 'vertical' | 'horizontal';
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "sp-button-group", never, { "align": "align"; "iconSpacing": "iconSpacing"; "spacing": "spacing"; "orientation": "orientation"; }, {}, never, ["*"], false, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ButtonIconDirective {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonIconDirective, never>;
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonIconDirective, "[spButtonIcon]", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AfterContentInit, ElementRef } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
+
import { IconComponent } from '../../icon/public_api';
|
|
4
|
+
import { ButtonIconDirective } from './button-icon.directive';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../theme/src/theme-check.directive";
|
|
7
|
+
import * as i2 from "../../common/sapphire-view-encapsulation";
|
|
8
|
+
export declare class ButtonComponent implements AfterContentInit {
|
|
9
|
+
elementRef: ElementRef<HTMLButtonElement>;
|
|
10
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'dangerSecondary' | 'dangerTertiary';
|
|
11
|
+
appearance?: 'fill' | 'ghost' | 'text';
|
|
12
|
+
/**
|
|
13
|
+
* Applies different styles for a better contrast with the secondary color background.
|
|
14
|
+
* @default 'primary'
|
|
15
|
+
*/
|
|
16
|
+
surface?: 'primary' | 'secondary';
|
|
17
|
+
size?: 'small' | 'medium' | 'large';
|
|
18
|
+
disabled: BooleanInput;
|
|
19
|
+
iconAlign: 'left' | 'right';
|
|
20
|
+
/**
|
|
21
|
+
* The behavior of the button when used in an HTML form.
|
|
22
|
+
*/
|
|
23
|
+
type: 'submit' | 'button' | 'reset';
|
|
24
|
+
private get derivedVariantAndStyleClass();
|
|
25
|
+
buttonIcon?: ButtonIconDirective;
|
|
26
|
+
icon?: IconComponent;
|
|
27
|
+
constructor(elementRef: ElementRef<HTMLButtonElement>);
|
|
28
|
+
ngAfterContentInit(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[sp-button], a[sp-button]", never, { "variant": "variant"; "appearance": "appearance"; "surface": "surface"; "size": "size"; "disabled": "disabled"; "iconAlign": "iconAlign"; "type": "type"; }, {}, ["buttonIcon", "icon"], ["*", "[spButtonIcon]"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./button.component";
|
|
3
|
+
import * as i2 from "./button-icon.directive";
|
|
4
|
+
import * as i3 from "./icon-button.component";
|
|
5
|
+
import * as i4 from "./toggle-button.component";
|
|
6
|
+
import * as i5 from "./button-group.component";
|
|
7
|
+
import * as i6 from "./toggle-button-required-validator";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "@angular/forms";
|
|
10
|
+
export declare class SapphireButtonModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SapphireButtonModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireButtonModule, [typeof i1.ButtonComponent, typeof i2.ButtonIconDirective, typeof i3.IconButtonComponent, typeof i4.ToggleButtonComponent, typeof i5.ButtonGroupComponent, typeof i6.SapphireToggleButtonRequiredValidator], [typeof i7.CommonModule, typeof i8.FormsModule], [typeof i1.ButtonComponent, typeof i2.ButtonIconDirective, typeof i3.IconButtonComponent, typeof i4.ToggleButtonComponent, typeof i5.ButtonGroupComponent, typeof i6.SapphireToggleButtonRequiredValidator]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SapphireButtonModule>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
+
import { IconSizeProvider } from '../../icon/src/icon-size-provider';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../common/sapphire-view-encapsulation";
|
|
6
|
+
export declare class IconButtonComponent implements IconSizeProvider, AfterViewInit {
|
|
7
|
+
private elementRef;
|
|
8
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'neutral';
|
|
9
|
+
appearance?: 'fill' | 'ghost';
|
|
10
|
+
/**
|
|
11
|
+
* Applies different styles for a better contrast with the secondary color background.
|
|
12
|
+
* @default 'primary'
|
|
13
|
+
*/
|
|
14
|
+
surface?: 'primary' | 'secondary';
|
|
15
|
+
size?: 'extraSmall' | 'small' | 'medium' | 'large';
|
|
16
|
+
disabled: BooleanInput;
|
|
17
|
+
private get derivedVariantAndStyleClass();
|
|
18
|
+
/**
|
|
19
|
+
* The behavior of the button when used in an HTML form.
|
|
20
|
+
*/
|
|
21
|
+
type: 'submit' | 'button' | 'reset';
|
|
22
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
23
|
+
ngAfterViewInit(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconButtonComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconButtonComponent, "button[sp-icon-button], a[sp-icon-button]", never, { "variant": "variant"; "appearance": "appearance"; "surface": "surface"; "size": "size"; "disabled": "disabled"; "type": "type"; }, {}, never, ["*"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CheckboxRequiredValidator } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Validator for Sapphire checkbox's isRequired attribute in template-driven checkbox.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SapphireToggleButtonRequiredValidator extends CheckboxRequiredValidator {
|
|
7
|
+
required: boolean;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SapphireToggleButtonRequiredValidator, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SapphireToggleButtonRequiredValidator, "button[sp-toggle-button][required][formControlName], button[sp-toggle-button][required][formControl], button[sp-toggle-button][required][ngModel]", never, { "required": "required"; }, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AfterContentInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { IconComponent } from '../../icon/public_api';
|
|
5
|
+
import { ButtonIconDirective } from './button-icon.directive';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../../common/sapphire-view-encapsulation";
|
|
8
|
+
/**
|
|
9
|
+
* A button with a toggleable `isSelected` state. By default, the selection is
|
|
10
|
+
* toggled when the button is pressed, allowing user to switch between two
|
|
11
|
+
* states or modes.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ToggleButtonComponent implements AfterContentInit, OnChanges, ControlValueAccessor {
|
|
14
|
+
size?: 'small' | 'medium' | 'large';
|
|
15
|
+
selected: BooleanInput;
|
|
16
|
+
/**
|
|
17
|
+
* Whether selected is controlled. If it's controlled via input binding,
|
|
18
|
+
* then we just output selectChanges, without updating this._selected.
|
|
19
|
+
*/
|
|
20
|
+
private isSelectedControlled;
|
|
21
|
+
selectedChange: EventEmitter<boolean>;
|
|
22
|
+
disabled: BooleanInput;
|
|
23
|
+
iconAlign: 'left' | 'right';
|
|
24
|
+
buttonIcon?: ButtonIconDirective;
|
|
25
|
+
icon?: IconComponent;
|
|
26
|
+
private onTouched;
|
|
27
|
+
private controlValueAccessorChangeFn;
|
|
28
|
+
constructor();
|
|
29
|
+
writeValue(value: any): void;
|
|
30
|
+
registerOnChange(fn: any): void;
|
|
31
|
+
registerOnTouched(fn: any): void;
|
|
32
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
33
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
34
|
+
ngAfterContentInit(): void;
|
|
35
|
+
_onBlur(): void;
|
|
36
|
+
private handleClick;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleButtonComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleButtonComponent, "button[sp-toggle-button]", never, { "size": "size"; "selected": "selected"; "disabled": "disabled"; "iconAlign": "iconAlign"; }, { "selectedChange": "selectedChange"; }, ["buttonIcon", "icon"], ["*", "[spButtonIcon]"], false, [{ directive: typeof i1.UseComponentStylesOnHost; inputs: {}; outputs: {}; }]>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CheckboxRequiredValidator } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Validator for Sapphire checkbox's "required" attribute in template-driven checkbox.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SapphireCheckboxRequiredValidator extends CheckboxRequiredValidator {
|
|
7
|
+
required: boolean;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SapphireCheckboxRequiredValidator, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SapphireCheckboxRequiredValidator, "sp-checkbox[required][formControlName], sp-checkbox[required][formControl], sp-checkbox[required][ngModel]", never, { "required": "required"; }, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { FocusableOption } from '@angular/cdk/a11y';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import { HasTabIndex } from '../../common/tabindex';
|
|
6
|
+
import { CanDisable } from '../../common/disabled';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "../../theme/src/theme-check.directive";
|
|
9
|
+
/** Change event object emitted by checkbox. */
|
|
10
|
+
export declare class CheckboxChange {
|
|
11
|
+
/** The new `selected` value of the checkbox. */
|
|
12
|
+
readonly selected: boolean;
|
|
13
|
+
/** The source checkbox of the event. */
|
|
14
|
+
readonly source: CheckboxComponent;
|
|
15
|
+
constructor(
|
|
16
|
+
/** The new `selected` value of the checkbox. */
|
|
17
|
+
selected: boolean,
|
|
18
|
+
/** The source checkbox of the event. */
|
|
19
|
+
source: CheckboxComponent);
|
|
20
|
+
}
|
|
21
|
+
declare const _CheckboxMixinBase: import("../../common/constructor").Constructor<HasTabIndex> & import("../../common/constructor").AbstractConstructor<HasTabIndex> & import("../../common/constructor").Constructor<CanDisable> & import("../../common/constructor").AbstractConstructor<CanDisable> & {
|
|
22
|
+
new (_elementRef: ElementRef): {
|
|
23
|
+
_elementRef: ElementRef;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare class CheckboxComponent extends _CheckboxMixinBase implements AfterViewInit, ControlValueAccessor, CanDisable, HasTabIndex, FocusableOption {
|
|
27
|
+
private changeDetectorRef;
|
|
28
|
+
/**
|
|
29
|
+
* Attached to the aria-label attribute of the host element. In most cases,
|
|
30
|
+
* aria-labelledby will take precedence so this may be omitted.
|
|
31
|
+
*/
|
|
32
|
+
ariaLabel: string;
|
|
33
|
+
/**
|
|
34
|
+
* Users can specify the `aria-labelledby` attribute which will be forwarded
|
|
35
|
+
* to the input element
|
|
36
|
+
*/
|
|
37
|
+
ariaLabelledby: string | null;
|
|
38
|
+
/** The 'aria-describedby' attribute is read after the element's label and field type. */
|
|
39
|
+
ariaDescribedby: string;
|
|
40
|
+
/** A unique id for the checkbox input. If none is supplied, it will be auto-generated. */
|
|
41
|
+
id: string;
|
|
42
|
+
/** Returns the unique id for the visual hidden input. */
|
|
43
|
+
get _inputId(): string;
|
|
44
|
+
/** Whether the checkbox is required. */
|
|
45
|
+
required: BooleanInput;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the checkbox is readonly.
|
|
48
|
+
*/
|
|
49
|
+
readonly: BooleanInput;
|
|
50
|
+
/** Name value will be applied to the input element if present */
|
|
51
|
+
name: string | null;
|
|
52
|
+
size?: 'large' | 'medium';
|
|
53
|
+
/** Event emitted when the checkbox's `selected` value changes. */
|
|
54
|
+
readonly change: EventEmitter<CheckboxChange>;
|
|
55
|
+
/** The value attribute of the native input element */
|
|
56
|
+
value: string | undefined;
|
|
57
|
+
/** The native `<input type="checkbox">` element */
|
|
58
|
+
_inputElement: ElementRef<HTMLInputElement>;
|
|
59
|
+
/**
|
|
60
|
+
* Called when the checkbox is blurred. Needed to properly implement
|
|
61
|
+
* ControlValueAccessor.
|
|
62
|
+
* @docs-private
|
|
63
|
+
*/
|
|
64
|
+
private onTouched;
|
|
65
|
+
private controlValueAccessorChangeFn;
|
|
66
|
+
constructor(elementRef: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef, tabIndex: string);
|
|
67
|
+
ngAfterViewInit(): void;
|
|
68
|
+
/** Whether the checkbox is selected. */
|
|
69
|
+
get selected(): boolean;
|
|
70
|
+
set selected(value: BooleanInput);
|
|
71
|
+
private _selected;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the checkbox is disabled. This fully overrides the implementation
|
|
74
|
+
* provided by mixinDisabled, but the mixin is still required because
|
|
75
|
+
* mixinTabIndex requires it.
|
|
76
|
+
*/
|
|
77
|
+
get disabled(): boolean;
|
|
78
|
+
set disabled(value: BooleanInput);
|
|
79
|
+
private _disabled;
|
|
80
|
+
/**
|
|
81
|
+
* Whether the checkbox is indeterminate. This is also known as "mixed" mode
|
|
82
|
+
* and can be used to represent a checkbox with three states, e.g. a checkbox
|
|
83
|
+
* that represents a nested list of checkable items.
|
|
84
|
+
*/
|
|
85
|
+
get indeterminate(): boolean;
|
|
86
|
+
set indeterminate(value: BooleanInput);
|
|
87
|
+
private _indeterminate;
|
|
88
|
+
writeValue(value: any): void;
|
|
89
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
90
|
+
registerOnTouched(fn: any): void;
|
|
91
|
+
setDisabledState(disabled: boolean): void;
|
|
92
|
+
/** Toggles the `selected` state of the checkbox. */
|
|
93
|
+
toggle(): void;
|
|
94
|
+
focus(): void;
|
|
95
|
+
_getAriaChecked(): 'true' | 'false' | 'mixed';
|
|
96
|
+
_onInputClick($event: Event): void;
|
|
97
|
+
_onInteractionEvent(event: Event): void;
|
|
98
|
+
_onBlur(): void;
|
|
99
|
+
private emitChangeEvent;
|
|
100
|
+
/**
|
|
101
|
+
* Syncs the indeterminate value with the checkbox DOM node.
|
|
102
|
+
*
|
|
103
|
+
* We sync `indeterminate` directly on the DOM node, because in Ivy the check
|
|
104
|
+
* for whether a property is supported on an element boils down to `if
|
|
105
|
+
* (propName in element)`. Domino's HTMLInputElement doesn't have an
|
|
106
|
+
* `indeterminate` property so Ivy will warn during server-side rendering.
|
|
107
|
+
*/
|
|
108
|
+
private syncIndeterminate;
|
|
109
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, [null, null, { attribute: "tabindex"; }]>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "sp-checkbox", ["spCheckbox"], { "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; "ariaDescribedby": "aria-describedby"; "id": "id"; "required": "required"; "readonly": "readonly"; "name": "name"; "size": "size"; "value": "value"; "selected": "selected"; "disabled": "disabled"; "indeterminate": "indeterminate"; }, { "change": "change"; }, never, ["*"], false, [{ directive: typeof i1.ThemeCheckDirective; inputs: {}; outputs: {}; }]>;
|
|
111
|
+
}
|
|
112
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./checkbox.component";
|
|
3
|
+
import * as i2 from "./checkbox-required-validator";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "@angular/cdk/a11y";
|
|
7
|
+
export declare class SapphireCheckboxModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SapphireCheckboxModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireCheckboxModule, [typeof i1.CheckboxComponent, typeof i2.SapphireCheckboxRequiredValidator], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.A11yModule], [typeof i1.CheckboxComponent, typeof i2.SapphireCheckboxRequiredValidator]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SapphireCheckboxModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* To be used on input props of type boolean, to allow value-less shorthand
|
|
3
|
+
* usage. A caveat is that the type will need to be BooleanInput, since TS
|
|
4
|
+
* doesn't support type mutations through decorators, at the moment:
|
|
5
|
+
* https://github.com/Microsoft/TypeScript/issues/4881
|
|
6
|
+
*/
|
|
7
|
+
export declare function CoerceBoolean(clazz: any, propName: string, descriptor?: any): any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbstractConstructor, Constructor } from './constructor';
|
|
2
|
+
export interface CanDisable {
|
|
3
|
+
/** Whether the component is disabled. */
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
}
|
|
6
|
+
type CanDisableConstructor = Constructor<CanDisable> & AbstractConstructor<CanDisable>;
|
|
7
|
+
/** Mixin to augment a directive with a `disabled` property. */
|
|
8
|
+
export declare function mixinDisabled<T extends AbstractConstructor<{}>>(base: T): CanDisableConstructor & T;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { InputModalityDetector } from '@angular/cdk/a11y';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* JS-based :focus-visible state. Based on the convention in Sapphire styles, it:
|
|
5
|
+
* - adds js-focus class to the host element
|
|
6
|
+
* - adds is-focus class when `spFocused` is true, and focus should be visible.
|
|
7
|
+
* is-focus class can be customized via `spFocusedClass` input
|
|
8
|
+
|
|
9
|
+
*/
|
|
10
|
+
export declare class FocusedDirective {
|
|
11
|
+
private inputModalityDetector;
|
|
12
|
+
/**
|
|
13
|
+
* CSS class to be applied when the element is focused, and focus should be visible.
|
|
14
|
+
*/
|
|
15
|
+
focusedClass: string;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the element is (virtually) focused. If not provided, the actual focus
|
|
18
|
+
* state of the host element will be used to determine the focus state.
|
|
19
|
+
*/
|
|
20
|
+
focusedInput?: boolean;
|
|
21
|
+
private hostFocused;
|
|
22
|
+
private get className();
|
|
23
|
+
private onFocusIn;
|
|
24
|
+
private onFocusOut;
|
|
25
|
+
isFocused(): boolean;
|
|
26
|
+
isFocusVisible(): boolean;
|
|
27
|
+
constructor(inputModalityDetector: InputModalityDetector);
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FocusedDirective, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FocusedDirective, "[spFocused]", ["spFocused"], { "focusedClass": "spFocusedClass"; "focusedInput": "spFocused"; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
2
|
+
export type HorizontalPlacement = 'start' | 'end';
|
|
3
|
+
export type VerticalPlacement = 'top' | 'bottom';
|
|
4
|
+
export type Placement = HorizontalPlacement | VerticalPlacement | `${HorizontalPlacement} ${VerticalPlacement}` | `${VerticalPlacement} ${HorizontalPlacement}`;
|
|
5
|
+
/**
|
|
6
|
+
* Converts our `Placement` input (which is aligned with react implementation), to Angular CDK
|
|
7
|
+
* `ConnectedPosition`
|
|
8
|
+
* @param placement
|
|
9
|
+
*/
|
|
10
|
+
export declare function toConnectedPosition(placement: Placement): ConnectedPosition;
|
|
11
|
+
export declare function flip(placement: Placement): Placement;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function isMac(): boolean;
|
|
2
|
+
export declare function isIPhone(): boolean;
|
|
3
|
+
export declare function isIPad(): boolean;
|
|
4
|
+
export declare function isIOS(): boolean;
|
|
5
|
+
export declare function isAppleDevice(): boolean;
|
|
6
|
+
export declare function isWebKit(): any;
|
|
7
|
+
export declare function isChrome(): any;
|
|
8
|
+
export declare function isAndroid(): any;
|
|
9
|
+
export declare function isMobile(): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* JS-based :active state for non-button clickable elements.
|
|
5
|
+
* TODO(UC-2728): we can evolve this to something like usePress (spPressable?), to bring
|
|
6
|
+
* the same improvements. e.g. disabling selection on press, or normalizing
|
|
7
|
+
* cross-browser inconsistencies, allowing for handling press start and end, optimizing for touch,
|
|
8
|
+
* etc.
|
|
9
|
+
*/
|
|
10
|
+
export declare class PressedDirective {
|
|
11
|
+
private document;
|
|
12
|
+
private elementRef;
|
|
13
|
+
/**
|
|
14
|
+
* CSS class to be applied when the element is being pressed.
|
|
15
|
+
*/
|
|
16
|
+
pressedClass?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the element is currently in being pressed (:active) state
|
|
19
|
+
*/
|
|
20
|
+
_pressed: boolean;
|
|
21
|
+
get pressed(): boolean;
|
|
22
|
+
set pressed(pressed: boolean);
|
|
23
|
+
_onPressStart(): void;
|
|
24
|
+
constructor(document: Document, elementRef: ElementRef<HTMLElement>);
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PressedDirective, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PressedDirective, "[spPressed], [spPressedClass]", ["spPressed"], { "pressedClass": "spPressedClass"; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Captures the view encapsulation of the current component, and makes it possible to apply that
|
|
5
|
+
* on elements in the component's subtree, using {@link UseComponentStyles} directive.
|
|
6
|
+
* Useful when a component has subcomponents, but they are a single component in css-level.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ViewEncapsulationProvider {
|
|
9
|
+
private elementRef;
|
|
10
|
+
private renderer;
|
|
11
|
+
constructor(elementRef: ElementRef<Element>, renderer: Renderer2);
|
|
12
|
+
enableStylesOn(element: Element): void;
|
|
13
|
+
private getContentAttribute;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ViewEncapsulationProvider, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ViewEncapsulationProvider>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Enables the use of component's css classes on the host element. Also provides
|
|
19
|
+
* `ViewEncapsulationProvider` which allows for using `UseComponentStyles` in child components.
|
|
20
|
+
* Meant to be used internally, and in components in @danske/sapphire-angular-lab.
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare class UseComponentStylesOnHost {
|
|
24
|
+
constructor(elementRef: ElementRef, viewEncapsulationProvider: ViewEncapsulationProvider);
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UseComponentStylesOnHost, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UseComponentStylesOnHost, "[_spUseComponentStylesOnHost]", never, {}, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Enables the use of css classes from parent component's styles. Meant to be used internally,
|
|
30
|
+
* and in components in @danske/sapphire-angular-lab.
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export declare class UseComponentStyles {
|
|
34
|
+
constructor(elementRef: ElementRef, viewEncapsulationProvider: ViewEncapsulationProvider);
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UseComponentStyles, [null, { optional: true; }]>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UseComponentStyles, "[_spUseComponentStyles]", never, {}, {}, never, never, true, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Monitors host element's **scrolled** and **scrollable** state.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ScrollMonitorDirective implements OnInit, OnDestroy {
|
|
7
|
+
private elementRef;
|
|
8
|
+
private ngZone;
|
|
9
|
+
scrolled: boolean;
|
|
10
|
+
scrollable: boolean;
|
|
11
|
+
change: EventEmitter<{
|
|
12
|
+
scrollable: boolean;
|
|
13
|
+
scrolled: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
private resizeObserver?;
|
|
16
|
+
private subscription?;
|
|
17
|
+
constructor(elementRef: ElementRef, ngZone: NgZone);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
private update;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollMonitorDirective, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollMonitorDirective, "[spScrollMonitor]", ["spScrollMonitor"], {}, { "change": "spScrollMonitor"; }, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Constructor, AbstractConstructor } from './constructor';
|
|
2
|
+
import { CanDisable } from './disabled';
|
|
3
|
+
export interface HasTabIndex {
|
|
4
|
+
/** Tabindex of the component. */
|
|
5
|
+
tabIndex: number;
|
|
6
|
+
/** Tabindex to which to fall back to if no value is set. */
|
|
7
|
+
defaultTabIndex: number;
|
|
8
|
+
}
|
|
9
|
+
type HasTabIndexConstructor = Constructor<HasTabIndex> & AbstractConstructor<HasTabIndex>;
|
|
10
|
+
/** Mixin to augment a directive with a `tabIndex` property. */
|
|
11
|
+
export declare function mixinTabIndex<T extends AbstractConstructor<CanDisable>>(base: T, defaultTabIndex?: number): HasTabIndexConstructor & T;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Hides an element visually, while keeping it visible to screen readers and
|
|
5
|
+
* other assistive technology
|
|
6
|
+
*/
|
|
7
|
+
export declare class VisuallyHiddenDirective {
|
|
8
|
+
enabled: BooleanInput;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisuallyHiddenDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<VisuallyHiddenDirective, "[spVisuallyHidden]", never, { "enabled": "spVisuallyHidden"; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { PopoverTriggerDirective } from '../../popover/src/popover-trigger.directive';
|
|
2
|
+
import { Placement } from '../../common/placement';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ContextualHelpHeaderDirective {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextualHelpHeaderDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextualHelpHeaderDirective, "sp-contextual-help-header", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
8
|
+
export declare class ContextualHelpContentDirective {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextualHelpContentDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextualHelpContentDirective, "sp-contextual-help-content", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
export declare class ContextualHelpFooterDirective {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextualHelpFooterDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextualHelpFooterDirective, "sp-contextual-help-footer", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
export declare class ContextualHelpComponent {
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* The type of contextual help which determines the icon shown.
|
|
20
|
+
*
|
|
21
|
+
* Use "info" for brief, contextual supplemental information. The content
|
|
22
|
+
* inside should have an instructive tone.
|
|
23
|
+
*
|
|
24
|
+
* Use "help" variant to signal more in-depth guidance about a task or UI,
|
|
25
|
+
* this may include links or images or other helpful media. The content
|
|
26
|
+
* inside should have a helpful tone.
|
|
27
|
+
*
|
|
28
|
+
* @default 'info'
|
|
29
|
+
*/
|
|
30
|
+
variant: 'info' | 'help';
|
|
31
|
+
/**
|
|
32
|
+
* Placement of contextual help popover relative to the icon that triggers it.
|
|
33
|
+
*/
|
|
34
|
+
placement: Placement;
|
|
35
|
+
/**
|
|
36
|
+
* The label for the trigger of the contextual help dialog.
|
|
37
|
+
* This will NOT be rendered on the screen, but it is required
|
|
38
|
+
* for accessibility reasons.
|
|
39
|
+
*/
|
|
40
|
+
ariaLabel: string;
|
|
41
|
+
_trigger?: PopoverTriggerDirective;
|
|
42
|
+
_footer?: ContextualHelpFooterDirective;
|
|
43
|
+
_header?: ContextualHelpHeaderDirective;
|
|
44
|
+
isOpen(): boolean | undefined;
|
|
45
|
+
toggle(): void | undefined;
|
|
46
|
+
open(): void | undefined;
|
|
47
|
+
close(): void | undefined;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextualHelpComponent, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContextualHelpComponent, "sp-contextual-help", never, { "variant": "variant"; "placement": "placement"; "ariaLabel": "aria-label"; }, {}, ["_footer", "_header"], ["sp-contextual-help-header", "sp-contextual-help-content", "sp-contextual-help-footer"], true, never>;
|
|
50
|
+
}
|