@impartner/design-components 3.0.2 → 4.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/README.md +9 -8
- package/fesm2022/impartner-design-components.mjs +1667 -972
- package/fesm2022/impartner-design-components.mjs.map +1 -1
- package/index.d.ts +3634 -3
- package/package.json +9 -12
- package/constants/fontawesome-icons.d.ts +0 -6
- package/constants/index.d.ts +0 -1
- package/esm2022/constants/fontawesome-icons.mjs +0 -3012
- package/esm2022/constants/index.mjs +0 -2
- package/esm2022/impartner-design-components.mjs +0 -5
- package/esm2022/lib/alert/alert.component.mjs +0 -106
- package/esm2022/lib/alert/alert.module.mjs +0 -19
- package/esm2022/lib/alert/index.mjs +0 -4
- package/esm2022/lib/alert/theme/alert-theme.mjs +0 -2
- package/esm2022/lib/alert/theme/index.mjs +0 -2
- package/esm2022/lib/avatar/avatar.component.mjs +0 -48
- package/esm2022/lib/avatar/avatar.module.mjs +0 -19
- package/esm2022/lib/avatar/index.mjs +0 -3
- package/esm2022/lib/avatar-group/avatar-group.component.mjs +0 -16
- package/esm2022/lib/avatar-group/avatar-group.module.mjs +0 -19
- package/esm2022/lib/avatar-group/index.mjs +0 -3
- package/esm2022/lib/backdrop/backdrop.component.mjs +0 -52
- package/esm2022/lib/backdrop/backdrop.module.mjs +0 -19
- package/esm2022/lib/backdrop/index.mjs +0 -3
- package/esm2022/lib/badge/badge.component.mjs +0 -121
- package/esm2022/lib/badge/badge.module.mjs +0 -20
- package/esm2022/lib/badge/index.mjs +0 -4
- package/esm2022/lib/badge/types/badge-icon.mjs +0 -2
- package/esm2022/lib/badge/types/badge-size.mjs +0 -7
- package/esm2022/lib/badge/types/index.mjs +0 -2
- package/esm2022/lib/branding/branded.directive.mjs +0 -19
- package/esm2022/lib/branding/branding.module.mjs +0 -19
- package/esm2022/lib/branding/index.mjs +0 -3
- package/esm2022/lib/breadcrumb/breadcrumb-item.component.mjs +0 -25
- package/esm2022/lib/breadcrumb/breadcrumb.component.mjs +0 -37
- package/esm2022/lib/breadcrumb/breadcrumb.module.mjs +0 -19
- package/esm2022/lib/breadcrumb/index.mjs +0 -4
- package/esm2022/lib/button/button.component.mjs +0 -116
- package/esm2022/lib/button/button.module.mjs +0 -21
- package/esm2022/lib/button/index.mjs +0 -4
- package/esm2022/lib/button/themes/button-theme.mjs +0 -2
- package/esm2022/lib/button/themes/index.mjs +0 -2
- package/esm2022/lib/button-group/button-group.component.mjs +0 -52
- package/esm2022/lib/button-group/button-group.module.mjs +0 -20
- package/esm2022/lib/button-group/index.mjs +0 -3
- package/esm2022/lib/card-heading/card-heading.component.mjs +0 -30
- package/esm2022/lib/card-heading/card-heading.module.mjs +0 -19
- package/esm2022/lib/card-heading/index.mjs +0 -3
- package/esm2022/lib/data-card/data-card.component.mjs +0 -123
- package/esm2022/lib/data-card/data-card.module.mjs +0 -21
- package/esm2022/lib/data-card/index.mjs +0 -3
- package/esm2022/lib/datetime-picker/components/datepicker-nav/datepicker-nav.component.mjs +0 -105
- package/esm2022/lib/datetime-picker/components/datepicker-nav/index.mjs +0 -2
- package/esm2022/lib/datetime-picker/components/datepicker-template-host/datepicker-template-host.component.mjs +0 -33
- package/esm2022/lib/datetime-picker/components/datepicker-template-host/index.mjs +0 -2
- package/esm2022/lib/datetime-picker/components/datetime-picker/datetime-picker.component.mjs +0 -369
- package/esm2022/lib/datetime-picker/components/datetime-picker/index.mjs +0 -2
- package/esm2022/lib/datetime-picker/components/datetime-picker-input/datetime-picker-input.component.mjs +0 -367
- package/esm2022/lib/datetime-picker/components/datetime-picker-input/index.mjs +0 -2
- package/esm2022/lib/datetime-picker/components/datetime-picker-input-footer/datetime-picker-input-footer.component.mjs +0 -68
- package/esm2022/lib/datetime-picker/components/datetime-picker-input-footer/index.mjs +0 -2
- package/esm2022/lib/datetime-picker/components/index.mjs +0 -6
- package/esm2022/lib/datetime-picker/constants/datetime-picker-defaults.mjs +0 -12
- package/esm2022/lib/datetime-picker/constants/index.mjs +0 -2
- package/esm2022/lib/datetime-picker/datetime-picker.module.mjs +0 -22
- package/esm2022/lib/datetime-picker/index.mjs +0 -4
- package/esm2022/lib/datetime-picker/services/datetime-formatter/datetime-formatter.service.mjs +0 -40
- package/esm2022/lib/datetime-picker/services/datetime-formatter/index.mjs +0 -2
- package/esm2022/lib/datetime-picker/services/index.mjs +0 -2
- package/esm2022/lib/datetime-picker/types/datetime-picker-value.interface.mjs +0 -2
- package/esm2022/lib/datetime-picker/types/index.mjs +0 -2
- package/esm2022/lib/design-components.module.mjs +0 -132
- package/esm2022/lib/dropdown/components/dropdown-item/dropdown-item.component.mjs +0 -22
- package/esm2022/lib/dropdown/components/index.mjs +0 -2
- package/esm2022/lib/dropdown/dropdown.component.mjs +0 -143
- package/esm2022/lib/dropdown/dropdown.module.mjs +0 -21
- package/esm2022/lib/dropdown/index.mjs +0 -5
- package/esm2022/lib/dropdown/types/dropdown-position.mjs +0 -2
- package/esm2022/lib/dropdown/types/index.mjs +0 -2
- package/esm2022/lib/file-upload/directives/file-drop.directive.mjs +0 -50
- package/esm2022/lib/file-upload/directives/index.mjs +0 -2
- package/esm2022/lib/file-upload/file-upload.component.mjs +0 -335
- package/esm2022/lib/file-upload/file-upload.module.mjs +0 -38
- package/esm2022/lib/file-upload/index.mjs +0 -5
- package/esm2022/lib/file-upload/pipes/human-readable-byte-size.pipe.mjs +0 -23
- package/esm2022/lib/file-upload/pipes/index.mjs +0 -2
- package/esm2022/lib/form-field/component/directives/corner-hint.directive.mjs +0 -15
- package/esm2022/lib/form-field/component/directives/error.directive.mjs +0 -27
- package/esm2022/lib/form-field/component/directives/form-root.directive.mjs +0 -93
- package/esm2022/lib/form-field/component/directives/hint.directive.mjs +0 -25
- package/esm2022/lib/form-field/component/directives/index.mjs +0 -25
- package/esm2022/lib/form-field/component/directives/label.directive.mjs +0 -15
- package/esm2022/lib/form-field/component/directives/prefix.directive.mjs +0 -25
- package/esm2022/lib/form-field/component/directives/suffix.directive.mjs +0 -25
- package/esm2022/lib/form-field/component/form-field.component.mjs +0 -131
- package/esm2022/lib/form-field/component/form-field.module.mjs +0 -24
- package/esm2022/lib/form-field/component/index.mjs +0 -4
- package/esm2022/lib/form-field/controls/checkbox/checkbox.component.mjs +0 -345
- package/esm2022/lib/form-field/controls/checkbox/checkbox.module.mjs +0 -16
- package/esm2022/lib/form-field/controls/checkbox/index.mjs +0 -3
- package/esm2022/lib/form-field/controls/index.mjs +0 -6
- package/esm2022/lib/form-field/controls/input/index.mjs +0 -2
- package/esm2022/lib/form-field/controls/input/input.directive.mjs +0 -234
- package/esm2022/lib/form-field/controls/radio/index.mjs +0 -6
- package/esm2022/lib/form-field/controls/radio/injection-tokens.mjs +0 -4
- package/esm2022/lib/form-field/controls/radio/interfaces/index.mjs +0 -4
- package/esm2022/lib/form-field/controls/radio/interfaces/radio-button.interface.mjs +0 -2
- package/esm2022/lib/form-field/controls/radio/interfaces/radio-change-event.interface.mjs +0 -11
- package/esm2022/lib/form-field/controls/radio/interfaces/radio-group.interface.mjs +0 -2
- package/esm2022/lib/form-field/controls/radio/radio-button/radio-button.component.mjs +0 -262
- package/esm2022/lib/form-field/controls/radio/radio-group/radio-group.directive.mjs +0 -290
- package/esm2022/lib/form-field/controls/radio/radio.module.mjs +0 -17
- package/esm2022/lib/form-field/controls/select/index.mjs +0 -9
- package/esm2022/lib/form-field/controls/select/interfaces/index.mjs +0 -2
- package/esm2022/lib/form-field/controls/select/interfaces/select-option.interface.mjs +0 -2
- package/esm2022/lib/form-field/controls/select/option/index.mjs +0 -2
- package/esm2022/lib/form-field/controls/select/option/select-option.component.mjs +0 -44
- package/esm2022/lib/form-field/controls/select/option-display/index.mjs +0 -2
- package/esm2022/lib/form-field/controls/select/option-display/select-option-display.component.mjs +0 -162
- package/esm2022/lib/form-field/controls/select/option-group/index.mjs +0 -2
- package/esm2022/lib/form-field/controls/select/option-group/select-option-group.component.mjs +0 -35
- package/esm2022/lib/form-field/controls/select/option-parent.mjs +0 -4
- package/esm2022/lib/form-field/controls/select/select-model.mjs +0 -150
- package/esm2022/lib/form-field/controls/select/select.component.mjs +0 -725
- package/esm2022/lib/form-field/controls/select/select.module.mjs +0 -37
- package/esm2022/lib/form-field/controls/select/value-tags-display/index.mjs +0 -2
- package/esm2022/lib/form-field/controls/select/value-tags-display/select-value-tags-display.component.mjs +0 -91
- package/esm2022/lib/form-field/controls/shared/index.mjs +0 -2
- package/esm2022/lib/form-field/controls/shared/toggle/components/index.mjs +0 -2
- package/esm2022/lib/form-field/controls/shared/toggle/components/toggle-input/toggle-input.component.mjs +0 -17
- package/esm2022/lib/form-field/controls/shared/toggle/index.mjs +0 -4
- package/esm2022/lib/form-field/controls/shared/toggle/toggle.component.mjs +0 -112
- package/esm2022/lib/form-field/controls/shared/toggle/toggle.module.mjs +0 -18
- package/esm2022/lib/form-field/controls/tag-select/index.mjs +0 -2
- package/esm2022/lib/form-field/controls/tag-select/tag-select.component.mjs +0 -146
- package/esm2022/lib/form-field/form-field-errors.mjs +0 -5
- package/esm2022/lib/form-field/impdc-forms.mjs +0 -7
- package/esm2022/lib/form-field/impdc-forms.module.mjs +0 -53
- package/esm2022/lib/form-field/index.mjs +0 -2
- package/esm2022/lib/form-field/services/error-state-matcher.service.mjs +0 -28
- package/esm2022/lib/form-field/services/index.mjs +0 -3
- package/esm2022/lib/form-field/services/unique-selection-dispatcher.service.mjs +0 -48
- package/esm2022/lib/form-field/shared/constructors.type.mjs +0 -2
- package/esm2022/lib/form-field/shared/disabled.mixin.mjs +0 -15
- package/esm2022/lib/form-field/shared/error-state.mixin.mjs +0 -24
- package/esm2022/lib/form-field/shared/form-field-control.mjs +0 -10
- package/esm2022/lib/form-field/shared/index.mjs +0 -5
- package/esm2022/lib/form-field/shared/tab-index.mixin.mjs +0 -19
- package/esm2022/lib/icon/icon.component.mjs +0 -83
- package/esm2022/lib/icon/icon.module.mjs +0 -19
- package/esm2022/lib/icon/index.mjs +0 -3
- package/esm2022/lib/index.mjs +0 -29
- package/esm2022/lib/modal/index.mjs +0 -4
- package/esm2022/lib/modal/modal.component.mjs +0 -266
- package/esm2022/lib/modal/modal.module.mjs +0 -37
- package/esm2022/lib/modal/types/index.mjs +0 -3
- package/esm2022/lib/modal/types/modal-component-sizes.mjs +0 -9
- package/esm2022/lib/modal/types/modal-theme.mjs +0 -12
- package/esm2022/lib/pagination/index.mjs +0 -3
- package/esm2022/lib/pagination/pagination.component.mjs +0 -176
- package/esm2022/lib/pagination/pagination.module.mjs +0 -41
- package/esm2022/lib/progress-bar/index.mjs +0 -3
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +0 -51
- package/esm2022/lib/progress-bar/progress-bar.module.mjs +0 -18
- package/esm2022/lib/scrollable/index.mjs +0 -3
- package/esm2022/lib/scrollable/scrollable.component.mjs +0 -187
- package/esm2022/lib/scrollable/scrollable.module.mjs +0 -22
- package/esm2022/lib/select-icon/index.mjs +0 -3
- package/esm2022/lib/select-icon/select-icon.component.mjs +0 -308
- package/esm2022/lib/select-icon/select-icon.module.mjs +0 -39
- package/esm2022/lib/size-detection/directive/element-size.interface.mjs +0 -2
- package/esm2022/lib/size-detection/directive/index.mjs +0 -3
- package/esm2022/lib/size-detection/directive/size-detector.directive.mjs +0 -43
- package/esm2022/lib/size-detection/index.mjs +0 -3
- package/esm2022/lib/size-detection/size-detection.module.mjs +0 -18
- package/esm2022/lib/spinner/index.mjs +0 -3
- package/esm2022/lib/spinner/spinner.component.mjs +0 -24
- package/esm2022/lib/spinner/spinner.module.mjs +0 -18
- package/esm2022/lib/table/components/bulk-actions/bulk-actions.component.mjs +0 -16
- package/esm2022/lib/table/components/column-heading/column-heading.component.mjs +0 -38
- package/esm2022/lib/table/components/index.mjs +0 -4
- package/esm2022/lib/table/components/row-actions/row-actions.component.mjs +0 -61
- package/esm2022/lib/table/constants/index.mjs +0 -3
- package/esm2022/lib/table/constants/public-table.constants.mjs +0 -2
- package/esm2022/lib/table/constants/table.constants.mjs +0 -23
- package/esm2022/lib/table/containers/index.mjs +0 -2
- package/esm2022/lib/table/containers/table.component.mjs +0 -474
- package/esm2022/lib/table/directives/collapse-monitor.directive.mjs +0 -42
- package/esm2022/lib/table/directives/index.mjs +0 -4
- package/esm2022/lib/table/directives/table-inject-component.directive.mjs +0 -46
- package/esm2022/lib/table/directives/table.directive.mjs +0 -55
- package/esm2022/lib/table/enumerations/index.mjs +0 -2
- package/esm2022/lib/table/enumerations/table-column-type.mjs +0 -21
- package/esm2022/lib/table/helpers/index.mjs +0 -2
- package/esm2022/lib/table/helpers/table-theme.helper.mjs +0 -31
- package/esm2022/lib/table/index.mjs +0 -8
- package/esm2022/lib/table/interfaces/cell-renderer.interface.mjs +0 -2
- package/esm2022/lib/table/interfaces/collapsible-row-content-context.interface.mjs +0 -2
- package/esm2022/lib/table/interfaces/custom-cell-renderer-components.type.mjs +0 -2
- package/esm2022/lib/table/interfaces/index.mjs +0 -13
- package/esm2022/lib/table/interfaces/sort-by-payload.interface.mjs +0 -2
- package/esm2022/lib/table/interfaces/table-cell-option.interface.mjs +0 -2
- package/esm2022/lib/table/interfaces/table-column-defs.type.mjs +0 -2
- package/esm2022/lib/table/interfaces/table-event-payload.interface.mjs +0 -2
- package/esm2022/lib/table/interfaces/table-row-action-payload.interface.mjs +0 -2
- package/esm2022/lib/table/interfaces/table-row-action.interface.mjs +0 -2
- package/esm2022/lib/table/interfaces/table-row-collapse-change.interface.mjs +0 -2
- package/esm2022/lib/table/interfaces/table-row-item.interface.mjs +0 -2
- package/esm2022/lib/table/table.module.mjs +0 -101
- package/esm2022/lib/tag/index.mjs +0 -2
- package/esm2022/lib/tag/tag.component.mjs +0 -104
- package/esm2022/lib/text-highlight/index.mjs +0 -3
- package/esm2022/lib/text-highlight/text-highlight.component.mjs +0 -101
- package/esm2022/lib/text-highlight/text-highlight.module.mjs +0 -17
- package/esm2022/public-api.mjs +0 -9
- package/esm2022/services/index.mjs +0 -2
- package/esm2022/services/interaction.service.mjs +0 -88
- package/esm2022/types/component-size.mjs +0 -12
- package/esm2022/types/component-theme.mjs +0 -22
- package/esm2022/types/index.mjs +0 -3
- package/esm2022/utilities/boolean-props.mjs +0 -7
- package/esm2022/utilities/dc.mjs +0 -9
- package/esm2022/utilities/index.mjs +0 -6
- package/esm2022/utilities/lc.mjs +0 -9
- package/esm2022/utilities/number-props.mjs +0 -18
- package/esm2022/utilities/sanitize.mjs +0 -7
- package/lib/alert/alert.component.d.ts +0 -50
- package/lib/alert/alert.module.d.ts +0 -9
- package/lib/alert/index.d.ts +0 -3
- package/lib/alert/theme/alert-theme.d.ts +0 -1
- package/lib/alert/theme/index.d.ts +0 -1
- package/lib/avatar/avatar.component.d.ts +0 -28
- package/lib/avatar/avatar.module.d.ts +0 -9
- package/lib/avatar/index.d.ts +0 -2
- package/lib/avatar-group/avatar-group.component.d.ts +0 -10
- package/lib/avatar-group/avatar-group.module.d.ts +0 -9
- package/lib/avatar-group/index.d.ts +0 -2
- package/lib/backdrop/backdrop.component.d.ts +0 -24
- package/lib/backdrop/backdrop.module.d.ts +0 -9
- package/lib/backdrop/index.d.ts +0 -2
- package/lib/badge/badge.component.d.ts +0 -63
- package/lib/badge/badge.module.d.ts +0 -10
- package/lib/badge/index.d.ts +0 -3
- package/lib/badge/types/badge-icon.d.ts +0 -1
- package/lib/badge/types/badge-size.d.ts +0 -6
- package/lib/badge/types/index.d.ts +0 -2
- package/lib/branding/branded.directive.d.ts +0 -6
- package/lib/branding/branding.module.d.ts +0 -9
- package/lib/branding/index.d.ts +0 -2
- package/lib/breadcrumb/breadcrumb-item.component.d.ts +0 -7
- package/lib/breadcrumb/breadcrumb.component.d.ts +0 -21
- package/lib/breadcrumb/breadcrumb.module.d.ts +0 -9
- package/lib/breadcrumb/index.d.ts +0 -3
- package/lib/button/button.component.d.ts +0 -47
- package/lib/button/button.module.d.ts +0 -11
- package/lib/button/index.d.ts +0 -3
- package/lib/button/themes/button-theme.d.ts +0 -1
- package/lib/button/themes/index.d.ts +0 -1
- package/lib/button-group/button-group.component.d.ts +0 -22
- package/lib/button-group/button-group.module.d.ts +0 -10
- package/lib/button-group/index.d.ts +0 -2
- package/lib/card-heading/card-heading.component.d.ts +0 -18
- package/lib/card-heading/card-heading.module.d.ts +0 -9
- package/lib/card-heading/index.d.ts +0 -2
- package/lib/data-card/data-card.component.d.ts +0 -68
- package/lib/data-card/data-card.module.d.ts +0 -11
- package/lib/data-card/index.d.ts +0 -2
- package/lib/datetime-picker/components/datepicker-nav/datepicker-nav.component.d.ts +0 -31
- package/lib/datetime-picker/components/datepicker-nav/index.d.ts +0 -1
- package/lib/datetime-picker/components/datepicker-template-host/datepicker-template-host.component.d.ts +0 -15
- package/lib/datetime-picker/components/datepicker-template-host/index.d.ts +0 -1
- package/lib/datetime-picker/components/datetime-picker/datetime-picker.component.d.ts +0 -155
- package/lib/datetime-picker/components/datetime-picker/index.d.ts +0 -1
- package/lib/datetime-picker/components/datetime-picker-input/datetime-picker-input.component.d.ts +0 -160
- package/lib/datetime-picker/components/datetime-picker-input/index.d.ts +0 -1
- package/lib/datetime-picker/components/datetime-picker-input-footer/datetime-picker-input-footer.component.d.ts +0 -24
- package/lib/datetime-picker/components/datetime-picker-input-footer/index.d.ts +0 -1
- package/lib/datetime-picker/components/index.d.ts +0 -5
- package/lib/datetime-picker/constants/datetime-picker-defaults.d.ts +0 -4
- package/lib/datetime-picker/constants/index.d.ts +0 -1
- package/lib/datetime-picker/datetime-picker.module.d.ts +0 -8
- package/lib/datetime-picker/index.d.ts +0 -4
- package/lib/datetime-picker/services/datetime-formatter/datetime-formatter.service.d.ts +0 -20
- package/lib/datetime-picker/services/datetime-formatter/index.d.ts +0 -1
- package/lib/datetime-picker/services/index.d.ts +0 -1
- package/lib/datetime-picker/types/datetime-picker-value.interface.d.ts +0 -5
- package/lib/datetime-picker/types/index.d.ts +0 -1
- package/lib/design-components.module.d.ts +0 -24
- package/lib/dropdown/components/dropdown-item/dropdown-item.component.d.ts +0 -11
- package/lib/dropdown/components/index.d.ts +0 -1
- package/lib/dropdown/dropdown.component.d.ts +0 -67
- package/lib/dropdown/dropdown.module.d.ts +0 -11
- package/lib/dropdown/index.d.ts +0 -4
- package/lib/dropdown/types/dropdown-position.d.ts +0 -1
- package/lib/dropdown/types/index.d.ts +0 -1
- package/lib/file-upload/directives/file-drop.directive.d.ts +0 -11
- package/lib/file-upload/directives/index.d.ts +0 -1
- package/lib/file-upload/file-upload.component.d.ts +0 -105
- package/lib/file-upload/file-upload.module.d.ts +0 -14
- package/lib/file-upload/index.d.ts +0 -4
- package/lib/file-upload/pipes/human-readable-byte-size.pipe.d.ts +0 -7
- package/lib/file-upload/pipes/index.d.ts +0 -1
- package/lib/form-field/component/directives/corner-hint.directive.d.ts +0 -5
- package/lib/form-field/component/directives/error.directive.d.ts +0 -8
- package/lib/form-field/component/directives/form-root.directive.d.ts +0 -26
- package/lib/form-field/component/directives/hint.directive.d.ts +0 -6
- package/lib/form-field/component/directives/index.d.ts +0 -15
- package/lib/form-field/component/directives/label.directive.d.ts +0 -5
- package/lib/form-field/component/directives/prefix.directive.d.ts +0 -9
- package/lib/form-field/component/directives/suffix.directive.d.ts +0 -9
- package/lib/form-field/component/form-field.component.d.ts +0 -37
- package/lib/form-field/component/form-field.module.d.ts +0 -14
- package/lib/form-field/component/index.d.ts +0 -3
- package/lib/form-field/controls/checkbox/checkbox.component.d.ts +0 -137
- package/lib/form-field/controls/checkbox/checkbox.module.d.ts +0 -7
- package/lib/form-field/controls/checkbox/index.d.ts +0 -2
- package/lib/form-field/controls/index.d.ts +0 -5
- package/lib/form-field/controls/input/index.d.ts +0 -1
- package/lib/form-field/controls/input/input.directive.d.ts +0 -84
- package/lib/form-field/controls/radio/index.d.ts +0 -5
- package/lib/form-field/controls/radio/injection-tokens.d.ts +0 -4
- package/lib/form-field/controls/radio/interfaces/index.d.ts +0 -3
- package/lib/form-field/controls/radio/interfaces/radio-button.interface.d.ts +0 -6
- package/lib/form-field/controls/radio/interfaces/radio-change-event.interface.d.ts +0 -12
- package/lib/form-field/controls/radio/interfaces/radio-group.interface.d.ts +0 -13
- package/lib/form-field/controls/radio/radio-button/radio-button.component.d.ts +0 -98
- package/lib/form-field/controls/radio/radio-group/radio-group.directive.d.ts +0 -104
- package/lib/form-field/controls/radio/radio.module.d.ts +0 -8
- package/lib/form-field/controls/select/index.d.ts +0 -9
- package/lib/form-field/controls/select/interfaces/index.d.ts +0 -1
- package/lib/form-field/controls/select/interfaces/select-option.interface.d.ts +0 -6
- package/lib/form-field/controls/select/option/index.d.ts +0 -1
- package/lib/form-field/controls/select/option/select-option.component.d.ts +0 -21
- package/lib/form-field/controls/select/option-display/index.d.ts +0 -1
- package/lib/form-field/controls/select/option-display/select-option-display.component.d.ts +0 -64
- package/lib/form-field/controls/select/option-group/index.d.ts +0 -1
- package/lib/form-field/controls/select/option-group/select-option-group.component.d.ts +0 -11
- package/lib/form-field/controls/select/option-parent.d.ts +0 -16
- package/lib/form-field/controls/select/select-model.d.ts +0 -36
- package/lib/form-field/controls/select/select.component.d.ts +0 -232
- package/lib/form-field/controls/select/select.module.d.ts +0 -10
- package/lib/form-field/controls/select/value-tags-display/index.d.ts +0 -1
- package/lib/form-field/controls/select/value-tags-display/select-value-tags-display.component.d.ts +0 -46
- package/lib/form-field/controls/shared/index.d.ts +0 -1
- package/lib/form-field/controls/shared/toggle/components/index.d.ts +0 -1
- package/lib/form-field/controls/shared/toggle/components/toggle-input/toggle-input.component.d.ts +0 -6
- package/lib/form-field/controls/shared/toggle/index.d.ts +0 -3
- package/lib/form-field/controls/shared/toggle/toggle.component.d.ts +0 -29
- package/lib/form-field/controls/shared/toggle/toggle.module.d.ts +0 -9
- package/lib/form-field/controls/tag-select/index.d.ts +0 -1
- package/lib/form-field/controls/tag-select/tag-select.component.d.ts +0 -43
- package/lib/form-field/form-field-errors.d.ts +0 -2
- package/lib/form-field/impdc-forms.d.ts +0 -6
- package/lib/form-field/impdc-forms.module.d.ts +0 -13
- package/lib/form-field/index.d.ts +0 -1
- package/lib/form-field/services/error-state-matcher.service.d.ts +0 -12
- package/lib/form-field/services/index.d.ts +0 -2
- package/lib/form-field/services/unique-selection-dispatcher.service.d.ts +0 -29
- package/lib/form-field/shared/constructors.type.d.ts +0 -7
- package/lib/form-field/shared/disabled.mixin.d.ts +0 -10
- package/lib/form-field/shared/error-state.mixin.d.ts +0 -31
- package/lib/form-field/shared/form-field-control.d.ts +0 -24
- package/lib/form-field/shared/index.d.ts +0 -5
- package/lib/form-field/shared/tab-index.mixin.d.ts +0 -13
- package/lib/icon/icon.component.d.ts +0 -36
- package/lib/icon/icon.module.d.ts +0 -9
- package/lib/icon/index.d.ts +0 -2
- package/lib/index.d.ts +0 -28
- package/lib/modal/index.d.ts +0 -3
- package/lib/modal/modal.component.d.ts +0 -116
- package/lib/modal/modal.module.d.ts +0 -13
- package/lib/modal/types/index.d.ts +0 -2
- package/lib/modal/types/modal-component-sizes.d.ts +0 -3
- package/lib/modal/types/modal-theme.d.ts +0 -7
- package/lib/pagination/index.d.ts +0 -2
- package/lib/pagination/pagination.component.d.ts +0 -58
- package/lib/pagination/pagination.module.d.ts +0 -14
- package/lib/progress-bar/index.d.ts +0 -2
- package/lib/progress-bar/progress-bar.component.d.ts +0 -31
- package/lib/progress-bar/progress-bar.module.d.ts +0 -8
- package/lib/scrollable/index.d.ts +0 -2
- package/lib/scrollable/scrollable.component.d.ts +0 -41
- package/lib/scrollable/scrollable.module.d.ts +0 -12
- package/lib/select-icon/index.d.ts +0 -2
- package/lib/select-icon/select-icon.component.d.ts +0 -123
- package/lib/select-icon/select-icon.module.d.ts +0 -12
- package/lib/size-detection/directive/element-size.interface.d.ts +0 -4
- package/lib/size-detection/directive/index.d.ts +0 -2
- package/lib/size-detection/directive/size-detector.directive.d.ts +0 -14
- package/lib/size-detection/index.d.ts +0 -3
- package/lib/size-detection/size-detection.module.d.ts +0 -8
- package/lib/spinner/index.d.ts +0 -2
- package/lib/spinner/spinner.component.d.ts +0 -13
- package/lib/spinner/spinner.module.d.ts +0 -8
- package/lib/table/components/bulk-actions/bulk-actions.component.d.ts +0 -10
- package/lib/table/components/column-heading/column-heading.component.d.ts +0 -14
- package/lib/table/components/index.d.ts +0 -3
- package/lib/table/components/row-actions/row-actions.component.d.ts +0 -21
- package/lib/table/constants/index.d.ts +0 -2
- package/lib/table/constants/public-table.constants.d.ts +0 -1
- package/lib/table/constants/table.constants.d.ts +0 -9
- package/lib/table/containers/index.d.ts +0 -1
- package/lib/table/containers/table.component.d.ts +0 -178
- package/lib/table/directives/collapse-monitor.directive.d.ts +0 -12
- package/lib/table/directives/index.d.ts +0 -3
- package/lib/table/directives/table-inject-component.directive.d.ts +0 -16
- package/lib/table/directives/table.directive.d.ts +0 -23
- package/lib/table/enumerations/index.d.ts +0 -1
- package/lib/table/enumerations/table-column-type.d.ts +0 -19
- package/lib/table/helpers/index.d.ts +0 -1
- package/lib/table/helpers/table-theme.helper.d.ts +0 -7
- package/lib/table/index.d.ts +0 -7
- package/lib/table/interfaces/cell-renderer.interface.d.ts +0 -13
- package/lib/table/interfaces/collapsible-row-content-context.interface.d.ts +0 -39
- package/lib/table/interfaces/custom-cell-renderer-components.type.d.ts +0 -3
- package/lib/table/interfaces/index.d.ts +0 -12
- package/lib/table/interfaces/sort-by-payload.interface.d.ts +0 -11
- package/lib/table/interfaces/table-cell-option.interface.d.ts +0 -4
- package/lib/table/interfaces/table-column-defs.type.d.ts +0 -53
- package/lib/table/interfaces/table-event-payload.interface.d.ts +0 -13
- package/lib/table/interfaces/table-row-action-payload.interface.d.ts +0 -13
- package/lib/table/interfaces/table-row-action.interface.d.ts +0 -17
- package/lib/table/interfaces/table-row-collapse-change.interface.d.ts +0 -11
- package/lib/table/interfaces/table-row-item.interface.d.ts +0 -8
- package/lib/table/table.module.d.ts +0 -24
- package/lib/tag/index.d.ts +0 -1
- package/lib/tag/tag.component.d.ts +0 -54
- package/lib/text-highlight/index.d.ts +0 -2
- package/lib/text-highlight/text-highlight.component.d.ts +0 -37
- package/lib/text-highlight/text-highlight.module.d.ts +0 -8
- package/public-api.d.ts +0 -4
- package/services/index.d.ts +0 -1
- package/services/interaction.service.d.ts +0 -28
- package/types/component-size.d.ts +0 -12
- package/types/component-theme.d.ts +0 -12
- package/types/index.d.ts +0 -2
- package/utilities/boolean-props.d.ts +0 -8
- package/utilities/dc.d.ts +0 -6
- package/utilities/index.d.ts +0 -5
- package/utilities/lc.d.ts +0 -6
- package/utilities/number-props.d.ts +0 -15
- package/utilities/sanitize.d.ts +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SelectOptionSelectionChangeEvent, SelectOptionDisplayComponent } from './select-option-display.component';
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
-
import { NgbDropdownItem } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import { BooleanInput } from '../../../../../utilities';
|
|
5
|
-
import { ISelectOption } from '../interfaces';
|
|
6
|
-
import { ISelectOptionParentComponent } from '../option-parent';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class SelectOptionSelectionChangeEvent<T = any> {
|
|
9
|
-
source: SelectOptionDisplayComponent;
|
|
10
|
-
isUserInput: boolean;
|
|
11
|
-
constructor(source: SelectOptionDisplayComponent, isUserInput?: boolean);
|
|
12
|
-
}
|
|
13
|
-
export declare class SelectOptionDisplayComponent extends NgbDropdownItem implements ISelectOption, OnDestroy {
|
|
14
|
-
protected readonly parent: ISelectOptionParentComponent | undefined;
|
|
15
|
-
private readonly _changeDetector;
|
|
16
|
-
/** @ignore */
|
|
17
|
-
readonly stateChanges: Subject<void>;
|
|
18
|
-
private _selected;
|
|
19
|
-
private __disabled;
|
|
20
|
-
/** @ignore */
|
|
21
|
-
get multiple(): boolean;
|
|
22
|
-
/** @ignore */
|
|
23
|
-
get selected(): boolean;
|
|
24
|
-
set selected(value: boolean | undefined);
|
|
25
|
-
/**
|
|
26
|
-
* The specific value represented by the select option.
|
|
27
|
-
*/
|
|
28
|
-
value: any;
|
|
29
|
-
/**
|
|
30
|
-
* Label text describing the select option.
|
|
31
|
-
*/
|
|
32
|
-
get label(): string;
|
|
33
|
-
set label(label: string);
|
|
34
|
-
private _label;
|
|
35
|
-
groupLabel?: string;
|
|
36
|
-
highlightText: string | null;
|
|
37
|
-
/** @ignore */
|
|
38
|
-
id: string;
|
|
39
|
-
/**
|
|
40
|
-
* Used to enable or disable the specific select option.
|
|
41
|
-
*/
|
|
42
|
-
get disabled(): boolean;
|
|
43
|
-
set disabled(value: BooleanInput);
|
|
44
|
-
/** @ignore */
|
|
45
|
-
readonly onSelectionChange: EventEmitter<SelectOptionSelectionChangeEvent<any>>;
|
|
46
|
-
constructor(parent: ISelectOptionParentComponent | undefined, _changeDetector: ChangeDetectorRef);
|
|
47
|
-
/** @ignore */
|
|
48
|
-
select(): void;
|
|
49
|
-
/** @ignore */
|
|
50
|
-
deselect(): void;
|
|
51
|
-
/** @ignore */
|
|
52
|
-
ngOnDestroy(): void;
|
|
53
|
-
/** Ensures the option is selected when activated from the keyboard. */
|
|
54
|
-
protected handleKeydown(event: KeyboardEvent): void;
|
|
55
|
-
/**
|
|
56
|
-
* `Selects the option while indicating the selection came from the user. Used to
|
|
57
|
-
* determine if the select's view -> model callback should be invoked.`
|
|
58
|
-
*/
|
|
59
|
-
protected selectViaInteraction(): void;
|
|
60
|
-
private _emitSelectionChangeEvent;
|
|
61
|
-
private _isInteractionKeyEvent;
|
|
62
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionDisplayComponent, [{ optional: true; }, null]>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectOptionDisplayComponent, "impdc-select-option-display", never, { "selected": { "alias": "selected"; "required": false; }; "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "groupLabel": { "alias": "groupLabel"; "required": false; }; "highlightText": { "alias": "highlightText"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onSelectionChange": "onSelectionChange"; }, never, never, true, never>;
|
|
64
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './select-option-group.component';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export interface ISelectOptionGroup {
|
|
4
|
-
readonly label: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const IMPDC_SELECT_OPTION_GROUP_COMPONENT: InjectionToken<ISelectOptionGroup>;
|
|
7
|
-
export declare class SelectOptionGroupComponent implements ISelectOptionGroup {
|
|
8
|
-
label: string;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionGroupComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectOptionGroupComponent, "impdc-select-option-group", never, { "label": { "alias": "label"; "required": true; }; }, {}, never, ["impdc-select-option"], true, never>;
|
|
11
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ISelectOption } from './interfaces';
|
|
3
|
-
import { SelectChangeEvent } from './select.component';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
export interface ISelectOptionParentComponent {
|
|
6
|
-
readonly multiple?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const IMPDC_SELECT_OPTION_PARENT_COMPONENT: InjectionToken<ISelectOptionParentComponent>;
|
|
9
|
-
export interface ISelectValueBadgesParentComponent {
|
|
10
|
-
readonly selected: ISelectOption | ISelectOption[];
|
|
11
|
-
readonly selectionChange: Observable<SelectChangeEvent<ISelectValueBadgesParentComponent>>;
|
|
12
|
-
readonly stateChanges: Observable<void>;
|
|
13
|
-
readonly disabled: boolean;
|
|
14
|
-
deselectOption(option: ISelectOption): void;
|
|
15
|
-
}
|
|
16
|
-
export declare const IMPDC_SELECT_VALUE_BADGES_PARENT_COMPONENT: InjectionToken<ISelectValueBadgesParentComponent>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
|
-
export interface SelectChange<T> {
|
|
3
|
-
source: SelectModel<T>;
|
|
4
|
-
added: T[];
|
|
5
|
-
removed: T[];
|
|
6
|
-
}
|
|
7
|
-
export declare function getMultipleValuesInSingleSelectError(): Error;
|
|
8
|
-
export declare class SelectModel<T> {
|
|
9
|
-
private readonly _multiple;
|
|
10
|
-
private readonly _emitChanges;
|
|
11
|
-
compareFunc?: ((a: T, b: T) => boolean) | undefined;
|
|
12
|
-
private _selection;
|
|
13
|
-
private _pendingDeselectionsToEmit;
|
|
14
|
-
private _pendingSelectionsToEmit;
|
|
15
|
-
private _selected;
|
|
16
|
-
get selected(): T[];
|
|
17
|
-
readonly changed$: Subject<SelectChange<T>>;
|
|
18
|
-
constructor(_multiple?: boolean, initialSelectedValues?: T[], _emitChanges?: boolean, compareFunc?: ((a: T, b: T) => boolean) | undefined);
|
|
19
|
-
select(...values: T[]): boolean | void;
|
|
20
|
-
deselect(...values: T[]): boolean | void;
|
|
21
|
-
setSelection(...values: T[]): boolean | void;
|
|
22
|
-
toggle(value: T): boolean | void;
|
|
23
|
-
clear(flushEvent?: boolean): boolean | void;
|
|
24
|
-
isSelected(value: T): boolean;
|
|
25
|
-
isEmpty(): boolean;
|
|
26
|
-
hasValue(): boolean;
|
|
27
|
-
sort(predicateFunc?: (a: T, b: T) => number): void;
|
|
28
|
-
isMultipleSelection(): boolean;
|
|
29
|
-
private _emitChangeEvent;
|
|
30
|
-
private _markSelected;
|
|
31
|
-
private _unmarkSelected;
|
|
32
|
-
private _unmarkAll;
|
|
33
|
-
private _verifyValueAssignment;
|
|
34
|
-
private _hasQueuedChanges;
|
|
35
|
-
private _getConcreteValue;
|
|
36
|
-
}
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormControl, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
3
|
-
import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap';
|
|
4
|
-
import { Observable, Subject } from 'rxjs';
|
|
5
|
-
import { ComponentTheme } from '../../../../types';
|
|
6
|
-
import { ErrorStateMatcher } from '../../services';
|
|
7
|
-
import { ImpdcFormRoot } from '../../component';
|
|
8
|
-
import { CanDisable, HasTabIndex, ICanUpdateErrorState, IHasErrorState, ImpdcFormFieldControl } from '../../shared';
|
|
9
|
-
import { ISelectOptionParentComponent, ISelectValueBadgesParentComponent } from './option-parent';
|
|
10
|
-
import { SelectOptionSelectionChangeEvent, SelectOptionDisplayComponent } from './option-display';
|
|
11
|
-
import { SelectModel } from './select-model';
|
|
12
|
-
import { SelectOptionComponent } from './option';
|
|
13
|
-
import { ISelectOption } from './interfaces';
|
|
14
|
-
import * as i0 from "@angular/core";
|
|
15
|
-
export declare const ON_OPEN_AUTO_SCROLL_TIMEOUT_MS = 50;
|
|
16
|
-
export declare class SelectChangeEvent<TComponent> {
|
|
17
|
-
/** The specific SelectComponent that changed. */
|
|
18
|
-
readonly source: TComponent;
|
|
19
|
-
/** The selected value(s) */
|
|
20
|
-
readonly value: any;
|
|
21
|
-
constructor(
|
|
22
|
-
/** The specific SelectComponent that changed. */
|
|
23
|
-
source: TComponent,
|
|
24
|
-
/** The selected value(s) */
|
|
25
|
-
value: any);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Returns an exception to be thrown when attempting to assign a non-array value to a select
|
|
29
|
-
* in `multiple` mode. Note that `undefined` and `null` are still valid values to allow for
|
|
30
|
-
* resetting the value.
|
|
31
|
-
* @ignore
|
|
32
|
-
*/
|
|
33
|
-
export declare function getImpdcSelectNonArrayValueError(): Error;
|
|
34
|
-
/**
|
|
35
|
-
* Returns an exception to be thrown when assigning a non-function value to the comparator
|
|
36
|
-
* used to determine if a value corresponds to an option. Note that whether the function
|
|
37
|
-
* actually takes two values and returns a boolean is not checked.
|
|
38
|
-
*/
|
|
39
|
-
export declare function getImpdcSelectNonFunctionValueError(): Error;
|
|
40
|
-
/**
|
|
41
|
-
* Returns an exception to be thrown when attempting to change a select's `multiple` option
|
|
42
|
-
* after initialization.
|
|
43
|
-
* @ignore
|
|
44
|
-
*/
|
|
45
|
-
export declare function getImpdcSelectDynamicMultipleError(): Error;
|
|
46
|
-
interface IRenderedSelectOption extends ISelectOption {
|
|
47
|
-
readonly selected?: boolean;
|
|
48
|
-
readonly showGroupLabel?: boolean;
|
|
49
|
-
}
|
|
50
|
-
declare const __SelectComponentBase: import("../../shared").Constructor<HasTabIndex> & import("../../shared").AbstractConstructor<HasTabIndex> & import("../../shared").Constructor<CanDisable> & import("../../shared").AbstractConstructor<CanDisable> & import("../../shared").Constructor<ICanUpdateErrorState> & import("../../shared").AbstractConstructor<ICanUpdateErrorState> & {
|
|
51
|
-
new (_defaultErrorStateMatcher: ErrorStateMatcher, _formRoot: ImpdcFormRoot | null, _parentForm: NgForm | null, _parentFormGroup: FormGroupDirective | null, ngControl: NgControl | null): {
|
|
52
|
-
readonly stateChanges: Subject<void>;
|
|
53
|
-
_defaultErrorStateMatcher: ErrorStateMatcher;
|
|
54
|
-
_formRoot: ImpdcFormRoot | null;
|
|
55
|
-
_parentForm: NgForm | null;
|
|
56
|
-
_parentFormGroup: FormGroupDirective | null;
|
|
57
|
-
ngControl: NgControl | null;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
export declare abstract class _SelectComponentBase extends __SelectComponentBase implements ISelectOptionParentComponent, OnInit, AfterViewInit, OnChanges, DoCheck, OnDestroy, ControlValueAccessor, HasTabIndex, ImpdcFormFieldControl<any>, CanDisable, ICanUpdateErrorState, IHasErrorState {
|
|
61
|
-
protected staticOptions: QueryList<SelectOptionComponent>;
|
|
62
|
-
protected options: QueryList<SelectOptionDisplayComponent>;
|
|
63
|
-
protected ngbDropdown: NgbDropdown;
|
|
64
|
-
protected toggleButtonRef?: ElementRef<HTMLElement>;
|
|
65
|
-
protected searchInputRef?: ElementRef<HTMLInputElement>;
|
|
66
|
-
private readonly _ngDestroy;
|
|
67
|
-
private readonly _searchSubject;
|
|
68
|
-
private _previousControl?;
|
|
69
|
-
private _compareWith;
|
|
70
|
-
private _cvaOnChange;
|
|
71
|
-
private _cvaOnTouched;
|
|
72
|
-
protected readonly uid: string;
|
|
73
|
-
protected readonly changeDetector: ChangeDetectorRef;
|
|
74
|
-
protected readonly ngZone: NgZone;
|
|
75
|
-
protected readonly searchControl: FormControl<string | null>;
|
|
76
|
-
protected readonly BadgeTheme: typeof ComponentTheme;
|
|
77
|
-
protected readonly filteredOptions$: Observable<IRenderedSelectOption[]>;
|
|
78
|
-
protected selectionModel: SelectModel<ISelectOption>;
|
|
79
|
-
protected activeIndex: number;
|
|
80
|
-
/** @ignore */
|
|
81
|
-
readonly optionSelectionChanges: Observable<SelectOptionSelectionChangeEvent>;
|
|
82
|
-
/**
|
|
83
|
-
* Set whether or not an input field will appear for searching and
|
|
84
|
-
* filtering visible options.
|
|
85
|
-
*
|
|
86
|
-
* - `'none'`: No search control will be displayed, and all select options are provided via projected `<impdc-select-option>` elements.
|
|
87
|
-
* - `'static'`: A search control will be displayed, select options are provided via projected `<impdc-select-option>` elements, and
|
|
88
|
-
* filtering is performed against the `[label]` attribute value.
|
|
89
|
-
* @default 'none'
|
|
90
|
-
*/
|
|
91
|
-
get search(): 'none' | 'static';
|
|
92
|
-
set search(value: 'none' | 'static');
|
|
93
|
-
/**
|
|
94
|
-
* The placeholder text that will be displayed when no selection has been made.
|
|
95
|
-
*
|
|
96
|
-
* @default \- Select -
|
|
97
|
-
*/
|
|
98
|
-
get placeholder(): string;
|
|
99
|
-
set placeholder(value: string);
|
|
100
|
-
protected _placeholder: string;
|
|
101
|
-
/**
|
|
102
|
-
* Used to set requiredness of control in a template-based manner;
|
|
103
|
-
* not necessary when using the Angular reactive forms API and `required` validator.
|
|
104
|
-
*/
|
|
105
|
-
get required(): boolean;
|
|
106
|
-
set required(value: boolean);
|
|
107
|
-
private _required;
|
|
108
|
-
/**
|
|
109
|
-
* Whether the control is a single-select or multiple-select. Cannot be changed after component initialization.
|
|
110
|
-
*/
|
|
111
|
-
get multiple(): boolean;
|
|
112
|
-
protected _multiple: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Function used to compare option values with selected values. The first arg is a
|
|
115
|
-
* `value` from an option, and the second arg is a `value` from the selection or another option.
|
|
116
|
-
*
|
|
117
|
-
* @returns Boolean indicating if the values are equivalent.
|
|
118
|
-
*/
|
|
119
|
-
get compareWith(): (a: any, b: any) => boolean;
|
|
120
|
-
set compareWith(fn: (a: any, b: any) => boolean);
|
|
121
|
-
/**
|
|
122
|
-
* Document element that the select dropdown will be attached to in the DOM - either the
|
|
123
|
-
* document's `<body>` tag, or as a child of the component tag.
|
|
124
|
-
*
|
|
125
|
-
* The default value (`'body'`) is generally the correct choice, and should only be
|
|
126
|
-
* overridden when absolutely certain that the result behavior is what's desired.
|
|
127
|
-
*/
|
|
128
|
-
dropdownContainer: 'body' | null;
|
|
129
|
-
errorStateMatcher: ErrorStateMatcher;
|
|
130
|
-
/** Events fire when selection has been changed by the user. */
|
|
131
|
-
readonly selectionChange: EventEmitter<SelectChangeEvent<this>>;
|
|
132
|
-
/**
|
|
133
|
-
* Events fire when raw value of select changes. Mainly exists to handle
|
|
134
|
-
* two-way binding of `value` input property.
|
|
135
|
-
* @ignore
|
|
136
|
-
*/
|
|
137
|
-
readonly valueChange: EventEmitter<any>;
|
|
138
|
-
/**
|
|
139
|
-
* Events fire when the text value of the option search input control has changed.
|
|
140
|
-
*/
|
|
141
|
-
readonly searchTextChanges: Observable<string | null>;
|
|
142
|
-
constructor(uid: string, tabIndex?: string);
|
|
143
|
-
get dropdownOpen(): boolean;
|
|
144
|
-
get empty(): boolean;
|
|
145
|
-
get selected(): ISelectOption | ISelectOption[];
|
|
146
|
-
/** @ignore */
|
|
147
|
-
focus(options?: FocusOptions): void;
|
|
148
|
-
protected handleOpenChange(isOpen: boolean): void;
|
|
149
|
-
/** @ignore */
|
|
150
|
-
ngOnInit(): void;
|
|
151
|
-
/** @ignore */
|
|
152
|
-
ngAfterViewInit(): void;
|
|
153
|
-
/** @ignore */
|
|
154
|
-
ngDoCheck(): void;
|
|
155
|
-
/** @ignore */
|
|
156
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
157
|
-
/** @ignore */
|
|
158
|
-
ngOnDestroy(): void;
|
|
159
|
-
abstract readonly controlType: string;
|
|
160
|
-
abstract readonly supportsAffixes: boolean;
|
|
161
|
-
get value(): any;
|
|
162
|
-
set value(value: any);
|
|
163
|
-
protected _value: any;
|
|
164
|
-
get id(): string;
|
|
165
|
-
set id(value: string);
|
|
166
|
-
protected _id: string;
|
|
167
|
-
get focused(): boolean;
|
|
168
|
-
protected _focused: boolean;
|
|
169
|
-
/** @ignore */
|
|
170
|
-
writeValue(value: any): void;
|
|
171
|
-
/** @ignore */
|
|
172
|
-
registerOnChange(fn: (value: any) => void): void;
|
|
173
|
-
/** @ignore */
|
|
174
|
-
registerOnTouched(fn: () => {}): void;
|
|
175
|
-
/** @ignore */
|
|
176
|
-
setDisabledState(isDisabled: boolean): void;
|
|
177
|
-
protected onFocus(): void;
|
|
178
|
-
/**
|
|
179
|
-
* Calls the CVA touched callback only if the dropdown is closed.
|
|
180
|
-
*/
|
|
181
|
-
protected onBlur(): void;
|
|
182
|
-
protected clearSelection(): void;
|
|
183
|
-
protected handleSearchSubmit(evt: Event): void;
|
|
184
|
-
protected handleSearchUpDown(evt: Event, direction: 'up' | 'down'): void;
|
|
185
|
-
protected markActive(index: number): void;
|
|
186
|
-
protected selectedIsSingle(selected: ISelectOption | ISelectOption[]): selected is ISelectOption;
|
|
187
|
-
private _initializeSelection;
|
|
188
|
-
private _setSelectionByValue;
|
|
189
|
-
private _selectOptionByValue;
|
|
190
|
-
/** Assigns a value to the select control. Returns a boolean indicating whether or not
|
|
191
|
-
* the value has changed.
|
|
192
|
-
*/
|
|
193
|
-
private _assignValue;
|
|
194
|
-
private _resetOptions;
|
|
195
|
-
private _onSelect;
|
|
196
|
-
private _sortValues;
|
|
197
|
-
protected _propagateChanges(fallbackValue?: any): void;
|
|
198
|
-
protected _buildChangeEvent(value: any): SelectChangeEvent<this>;
|
|
199
|
-
/** @ignore */
|
|
200
|
-
protected _deselectOption(option: ISelectOption, markTouched?: boolean): void;
|
|
201
|
-
private _scrollToSelectedOption;
|
|
202
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<_SelectComponentBase, never>;
|
|
203
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_SelectComponentBase, never, never, { "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "searchTextChanges": "searchTextChanges"; }, ["staticOptions"], never, false, never>;
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* The `SelectComponent` (`<impdc-select`) is a select-style dropdown input where an item (or multiple items) can be picked
|
|
207
|
-
* from a list of *unique* available options. This component can be used within a `FormFieldComponent` (`<impdc-form-field`).
|
|
208
|
-
* To use, add `SelectModule` to the `imports` array of the relevant `NgModule` or standalone component.
|
|
209
|
-
*/
|
|
210
|
-
export declare class SelectComponent extends _SelectComponentBase implements ISelectValueBadgesParentComponent {
|
|
211
|
-
readonly controlType: string;
|
|
212
|
-
readonly supportsAffixes: boolean;
|
|
213
|
-
constructor(tabIndex?: string);
|
|
214
|
-
/**
|
|
215
|
-
* Allow the user to click a button inside of the select control and clear their selection(s);
|
|
216
|
-
*
|
|
217
|
-
* @default true
|
|
218
|
-
*/
|
|
219
|
-
allowClear: boolean;
|
|
220
|
-
get multiple(): boolean;
|
|
221
|
-
set multiple(value: boolean);
|
|
222
|
-
multipleDisplay: 'inside' | 'outside';
|
|
223
|
-
/** @ignore */
|
|
224
|
-
deselectOption(option: ISelectOption): void;
|
|
225
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, [{ attribute: "tabindex"; }]>;
|
|
226
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "impdc-select", ["impdcSelect"], { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "search": { "alias": "search"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "dropdownContainer": { "alias": "dropdownContainer"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "allowClear": { "alias": "allowClear"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "multipleDisplay": { "alias": "multipleDisplay"; "required": false; }; }, { "selectionChange": "selectionChange"; "valueChange": "valueChange"; "searchTextChanges": "searchTextChanges"; }, never, never, true, never>;
|
|
227
|
-
static ngAcceptInputType_tabIndex: unknown;
|
|
228
|
-
static ngAcceptInputType_required: unknown;
|
|
229
|
-
static ngAcceptInputType_allowClear: unknown;
|
|
230
|
-
static ngAcceptInputType_multiple: unknown;
|
|
231
|
-
}
|
|
232
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./option-group/select-option-group.component";
|
|
3
|
-
import * as i2 from "./option/select-option.component";
|
|
4
|
-
import * as i3 from "./value-tags-display/select-value-tags-display.component";
|
|
5
|
-
import * as i4 from "./select.component";
|
|
6
|
-
export declare class SelectModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SelectModule, never, [typeof i1.SelectOptionGroupComponent, typeof i2.SelectOptionComponent, typeof i3.SelectValueTagsDisplayComponent, typeof i4.SelectComponent], [typeof i1.SelectOptionGroupComponent, typeof i2.SelectOptionComponent, typeof i3.SelectValueTagsDisplayComponent, typeof i4.SelectComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SelectModule>;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './select-value-tags-display.component';
|
package/lib/form-field/controls/select/value-tags-display/select-value-tags-display.component.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { OnChanges, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { ISelectValueBadgesParentComponent } from '../option-parent';
|
|
3
|
-
import { ComponentTheme } from '../../../../../types';
|
|
4
|
-
import { ISelectOption } from '../interfaces';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class SelectValueTagsDisplayComponent implements OnInit, OnChanges, OnDestroy {
|
|
7
|
-
private readonly _changeDetector;
|
|
8
|
-
private readonly _parentSelect;
|
|
9
|
-
private readonly _destroy$;
|
|
10
|
-
protected readonly BadgeTheme: typeof ComponentTheme;
|
|
11
|
-
protected truncate: boolean;
|
|
12
|
-
rounded: boolean;
|
|
13
|
-
get select(): ISelectValueBadgesParentComponent | null;
|
|
14
|
-
set select(value: ISelectValueBadgesParentComponent | null);
|
|
15
|
-
private _select;
|
|
16
|
-
protected get resolvedSelect(): ISelectValueBadgesParentComponent | null;
|
|
17
|
-
/**
|
|
18
|
-
* Render the control is a readonly state.
|
|
19
|
-
*
|
|
20
|
-
* Semantically distinct from `disabled`, `readonly` controls will still have their values bound in
|
|
21
|
-
* Angular forms and `FormGroup`s, whereas a disabled control's value would be omitted.
|
|
22
|
-
*/
|
|
23
|
-
readonly: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* The maximum number of values that will be displayed inline before truncation occurs.
|
|
26
|
-
*/
|
|
27
|
-
truncateThreshold: number | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Text to be shown when displayed values are truncated, allowing the user to view all selected values.
|
|
30
|
-
*/
|
|
31
|
-
showMoreLabel: string;
|
|
32
|
-
/**
|
|
33
|
-
* Text to be shown when displayed values have been expanded beyond the truncation threshold, allowing
|
|
34
|
-
* the user collapse the view again.
|
|
35
|
-
*/
|
|
36
|
-
showLessLabel: string;
|
|
37
|
-
ngOnInit(): void;
|
|
38
|
-
ngOnChanges(): void;
|
|
39
|
-
ngOnDestroy(): void;
|
|
40
|
-
protected toggleTruncate(): void;
|
|
41
|
-
protected observeStateChanges(select: ISelectValueBadgesParentComponent): void;
|
|
42
|
-
protected selectedIsMultiple(selected: ISelectOption | ISelectOption[]): selected is ISelectOption[];
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectValueTagsDisplayComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectValueTagsDisplayComponent, "impdc-select-value-tags-display", never, { "rounded": { "alias": "rounded"; "required": false; }; "select": { "alias": "select"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "truncateThreshold": { "alias": "truncateThreshold"; "required": false; }; "showMoreLabel": { "alias": "showMoreLabel"; "required": false; }; "showLessLabel": { "alias": "showLessLabel"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
45
|
-
static ngAcceptInputType_rounded: unknown;
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './toggle';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './toggle-input/toggle-input.component';
|
package/lib/form-field/controls/shared/toggle/components/toggle-input/toggle-input.component.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ToggleInputComponent {
|
|
3
|
-
classFormCheck: boolean;
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleInputComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleInputComponent, "input[impdc-toggle-input]", never, {}, {}, never, never, true, never>;
|
|
6
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ElementRef, ChangeDetectorRef, AfterViewChecked } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ToggleComponent implements AfterViewChecked {
|
|
4
|
-
private changeDetectorRef;
|
|
5
|
-
private _id;
|
|
6
|
-
isSwitch: boolean;
|
|
7
|
-
label: string;
|
|
8
|
-
description: string;
|
|
9
|
-
inline: boolean;
|
|
10
|
-
switchIcons: boolean;
|
|
11
|
-
layout: 'check-start' | 'check-end';
|
|
12
|
-
branded: boolean;
|
|
13
|
-
private classDefaults;
|
|
14
|
-
private get classHasDescription();
|
|
15
|
-
private get classFormSwitch();
|
|
16
|
-
private get classFormCheckInline();
|
|
17
|
-
private get classFormSwitchIcons();
|
|
18
|
-
private get classBranded();
|
|
19
|
-
private get classFlexRowReverse();
|
|
20
|
-
private get classJustifyContentEnd();
|
|
21
|
-
inputRef?: ElementRef<HTMLInputElement>;
|
|
22
|
-
get id(): string;
|
|
23
|
-
get isCheckbox(): boolean;
|
|
24
|
-
get showDescription(): boolean;
|
|
25
|
-
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
26
|
-
ngAfterViewChecked(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "impdc-toggle", never, { "isSwitch": { "alias": "isSwitch"; "required": false; }; "label": { "alias": "label"; "required": false; }; "description": { "alias": "description"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "switchIcons": { "alias": "switchIcons"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; }, {}, ["inputRef"], ["[impdc-toggle-input]"], true, never>;
|
|
29
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./toggle.component";
|
|
3
|
-
import * as i2 from "./components/toggle-input/toggle-input.component";
|
|
4
|
-
export declare class ToggleModule {
|
|
5
|
-
constructor();
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ToggleModule, never, [typeof i1.ToggleComponent, typeof i2.ToggleInputComponent], [typeof i1.ToggleComponent, typeof i2.ToggleInputComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ToggleModule>;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './tag-select.component';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { _SelectComponentBase } from '../select/select.component';
|
|
2
|
-
import { ISelectOption, ISelectValueBadgesParentComponent } from '../select';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* The `TagSelectComponent` (`<impdc-tag-select>`) is a form control where multiple "tag"-like values can
|
|
6
|
-
* be picked from a list of *unique* available options. This component can be used within a `FormFieldComponent`
|
|
7
|
-
* (`<impdc-form-field>`) component or on its own. To use, add `TagSelectComponent` to the `imports` array of
|
|
8
|
-
* the relevant `NgModule` or standalone component.
|
|
9
|
-
*/
|
|
10
|
-
export declare class TagSelectComponent extends _SelectComponentBase implements ISelectValueBadgesParentComponent {
|
|
11
|
-
readonly controlType: string;
|
|
12
|
-
readonly supportsAffixes: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Render the control is a readonly state.
|
|
15
|
-
*
|
|
16
|
-
* Semantically distinct from `disabled`, `readonly` controls will still have their values bound in
|
|
17
|
-
* Angular forms and `FormGroup`s, whereas a disabled control's value would be omitted.
|
|
18
|
-
*/
|
|
19
|
-
readonly: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* The maximum number of values that will be displayed inline before truncation occurs.
|
|
22
|
-
*/
|
|
23
|
-
truncateThreshold: number;
|
|
24
|
-
/**
|
|
25
|
-
* Text to be shown when displayed values are truncated, allowing the user to view all selected values.
|
|
26
|
-
*/
|
|
27
|
-
showMoreLabel: string;
|
|
28
|
-
/**
|
|
29
|
-
* Text to be shown when displayed values have been expanded beyond the truncation threshold, allowing
|
|
30
|
-
* the user collapse the view again.
|
|
31
|
-
*/
|
|
32
|
-
showLessLabel: string;
|
|
33
|
-
constructor(tabIndex?: string);
|
|
34
|
-
/** @ignore */
|
|
35
|
-
deselectOption(option: ISelectOption): void;
|
|
36
|
-
protected toggleDropdown(evt: Event): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TagSelectComponent, [{ attribute: "tabindex"; }]>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TagSelectComponent, "impdc-tag-select", ["impdcTagSelect"], { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "search": { "alias": "search"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "dropdownContainer": { "alias": "dropdownContainer"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "truncateThreshold": { "alias": "truncateThreshold"; "required": false; }; "showMoreLabel": { "alias": "showMoreLabel"; "required": false; }; "showLessLabel": { "alias": "showLessLabel"; "required": false; }; }, { "selectionChange": "selectionChange"; "valueChange": "valueChange"; "searchTextChanges": "searchTextChanges"; }, never, never, true, never>;
|
|
39
|
-
static ngAcceptInputType_tabIndex: unknown;
|
|
40
|
-
static ngAcceptInputType_required: unknown;
|
|
41
|
-
static ngAcceptInputType_readonly: unknown;
|
|
42
|
-
static ngAcceptInputType_truncateThreshold: unknown;
|
|
43
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
import * as i2 from "./component/form-field.module";
|
|
4
|
-
import * as i3 from "./controls/checkbox/checkbox.module";
|
|
5
|
-
import * as i4 from "./controls/radio/radio.module";
|
|
6
|
-
import * as i5 from "./controls/select/select.module";
|
|
7
|
-
import * as i6 from "./controls/tag-select/tag-select.component";
|
|
8
|
-
import * as i7 from "./controls/input/input.directive";
|
|
9
|
-
export declare class ImpdcFormsModule {
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImpdcFormsModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ImpdcFormsModule, never, [typeof i1.CommonModule, typeof i2.FormFieldModule, typeof i3.CheckboxModule, typeof i4.RadioModule, typeof i5.SelectModule, typeof i6.TagSelectComponent, typeof i7.InputDirective], [typeof i2.FormFieldModule, typeof i3.CheckboxModule, typeof i4.RadioModule, typeof i5.SelectModule, typeof i6.TagSelectComponent, typeof i7.InputDirective]>;
|
|
12
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ImpdcFormsModule>;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './impdc-forms';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, FormGroupDirective, NgForm } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ShowOnDirtyErrorStateMatcher implements ErrorStateMatcher {
|
|
4
|
-
isErrorState(control: AbstractControl<any, any> | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShowOnDirtyErrorStateMatcher, never>;
|
|
6
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShowOnDirtyErrorStateMatcher>;
|
|
7
|
-
}
|
|
8
|
-
export declare class ErrorStateMatcher {
|
|
9
|
-
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorStateMatcher, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorStateMatcher>;
|
|
12
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export type UniqueSelectionDispatcherListener = (id: string, name: string) => void;
|
|
4
|
-
/**
|
|
5
|
-
* Class to coordinate unique selection based on name.
|
|
6
|
-
* Intended to be consumed as an Angular service.
|
|
7
|
-
* This service is needed because native radio change events are only fired on the item currently
|
|
8
|
-
* being selected, and we still need to uncheck the previous selection.
|
|
9
|
-
*
|
|
10
|
-
* This service does not *store* any IDs and names because they may change at any time, so it is
|
|
11
|
-
* less error-prone if they are simply passed through when the events occur.
|
|
12
|
-
*/
|
|
13
|
-
export declare class UniqueSelectionDispatcher implements OnDestroy {
|
|
14
|
-
private _listeners;
|
|
15
|
-
/**
|
|
16
|
-
* Notify other items that selection for the given name has been set.
|
|
17
|
-
* @param id ID of the item.
|
|
18
|
-
* @param name Name of the item.
|
|
19
|
-
*/
|
|
20
|
-
notify(id: string, name: string): void;
|
|
21
|
-
/**
|
|
22
|
-
* Listen for future changes to item selection.
|
|
23
|
-
* @return Function used to deregister listener
|
|
24
|
-
*/
|
|
25
|
-
listen(listener: UniqueSelectionDispatcherListener): () => void;
|
|
26
|
-
ngOnDestroy(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UniqueSelectionDispatcher, never>;
|
|
28
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UniqueSelectionDispatcher>;
|
|
29
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AbstractConstructor, Constructor } from './constructors.type';
|
|
2
|
-
/** @docs-private */
|
|
3
|
-
export interface CanDisable {
|
|
4
|
-
/** Whether the component is disabled. */
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
}
|
|
7
|
-
type CanDisableCtor = Constructor<CanDisable> & AbstractConstructor<CanDisable>;
|
|
8
|
-
/** Mixin to augment a directive with a `disabled` property. */
|
|
9
|
-
export declare function mixinDisabled<T extends AbstractConstructor<{}>>(base: T): CanDisableCtor & T;
|
|
10
|
-
export {};
|