@impartner/design-components 1.2.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/constants/fontawesome-icons.d.ts +2 -2
- package/{esm2020 → esm2022}/constants/fontawesome-icons.mjs +1 -1
- package/{esm2020 → esm2022}/lib/alert/alert.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/alert/alert.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/avatar/avatar.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/avatar/avatar.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/avatar-group/avatar-group.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/avatar-group/avatar-group.module.mjs +5 -5
- package/esm2022/lib/backdrop/backdrop.component.mjs +52 -0
- package/{esm2020 → esm2022}/lib/backdrop/backdrop.module.mjs +6 -6
- package/esm2022/lib/badge/badge.component.mjs +105 -0
- package/{esm2020 → esm2022}/lib/badge/badge.module.mjs +6 -6
- package/{esm2020 → esm2022}/lib/badge/types/badge-size.mjs +1 -1
- package/{esm2020 → esm2022}/lib/branding/branded.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/branding/branding.module.mjs +6 -6
- package/{esm2020 → esm2022}/lib/breadcrumb/breadcrumb-item.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/breadcrumb/breadcrumb.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/breadcrumb/breadcrumb.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/button/button.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/button/button.module.mjs +6 -6
- package/{esm2020 → esm2022}/lib/button-group/button-group.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/button-group/button-group.module.mjs +6 -6
- package/{esm2020 → esm2022}/lib/card-heading/card-heading.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/card-heading/card-heading.module.mjs +6 -6
- package/esm2022/lib/data-card/data-card.component.mjs +123 -0
- package/esm2022/lib/data-card/data-card.module.mjs +21 -0
- package/{esm2020 → esm2022}/lib/design-components.module.mjs +61 -61
- package/{esm2020 → esm2022}/lib/dropdown/components/dropdown-item/dropdown-item.component.mjs +4 -4
- package/esm2022/lib/dropdown/dropdown.component.mjs +143 -0
- package/{esm2020 → esm2022}/lib/dropdown/dropdown.module.mjs +6 -6
- package/{esm2020 → esm2022}/lib/file-upload/directives/file-drop.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/file-upload/file-upload.component.mjs +30 -30
- package/{esm2020 → esm2022}/lib/file-upload/file-upload.module.mjs +8 -8
- package/{esm2020 → esm2022}/lib/file-upload/pipes/human-readable-byte-size.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/form-field/controls/checkbox/checkbox.component.mjs +49 -49
- package/{esm2020 → esm2022}/lib/form-field/controls/checkbox/checkbox.module.mjs +5 -5
- package/esm2022/lib/form-field/controls/input/input.directive.mjs +233 -0
- package/esm2022/lib/form-field/controls/radio/radio-button/radio-button.component.mjs +260 -0
- package/esm2022/lib/form-field/controls/radio/radio-group/radio-group.directive.mjs +289 -0
- package/{esm2020 → esm2022}/lib/form-field/controls/radio/radio.module.mjs +5 -5
- package/esm2022/lib/form-field/controls/select/option/select-option.component.mjs +139 -0
- package/esm2022/lib/form-field/controls/select/select-model.mjs +150 -0
- package/esm2022/lib/form-field/controls/select/select.component.mjs +522 -0
- package/{esm2020 → esm2022}/lib/form-field/controls/select/select.module.mjs +9 -9
- package/{esm2020 → esm2022}/lib/form-field/controls/shared/toggle/components/toggle-input/toggle-input.component.mjs +4 -4
- package/esm2022/lib/form-field/controls/shared/toggle/toggle.component.mjs +96 -0
- package/{esm2020 → esm2022}/lib/form-field/controls/shared/toggle/toggle.module.mjs +6 -6
- package/{esm2020 → esm2022}/lib/form-field/directives/corner-hint.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/form-field/directives/error.directive.mjs +4 -4
- package/esm2022/lib/form-field/directives/form-root.directive.mjs +91 -0
- package/{esm2020 → esm2022}/lib/form-field/directives/hint.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/form-field/directives/label.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/form-field/directives/prefix.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/form-field/directives/suffix.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/form-field/form-field.component.mjs +11 -11
- package/{esm2020 → esm2022}/lib/form-field/impdc-forms.module.mjs +28 -28
- package/{esm2020 → esm2022}/lib/form-field/services/error-state-matcher.service.mjs +7 -7
- package/{esm2020 → esm2022}/lib/form-field/services/unique-selection-dispatcher.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/form-field/shared/disabled.mixin.mjs +5 -5
- package/esm2022/lib/form-field/shared/error-state.mixin.mjs +24 -0
- package/{esm2020 → esm2022}/lib/form-field/shared/form-field-control.mjs +4 -4
- package/{esm2020 → esm2022}/lib/form-field/shared/tab-index.mixin.mjs +6 -6
- package/{esm2020 → esm2022}/lib/icon/icon.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/icon/icon.module.mjs +6 -6
- package/esm2022/lib/modal/modal.component.mjs +260 -0
- package/{esm2020 → esm2022}/lib/modal/modal.module.mjs +14 -14
- package/{esm2020 → esm2022}/lib/modal/types/modal-component-sizes.mjs +1 -1
- package/{esm2020 → esm2022}/lib/modal/types/modal-theme.mjs +1 -1
- package/esm2022/lib/pagination/pagination.component.mjs +176 -0
- package/{esm2020 → esm2022}/lib/pagination/pagination.module.mjs +16 -16
- package/{esm2020 → esm2022}/lib/progress-bar/progress-bar.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/progress-bar/progress-bar.module.mjs +5 -5
- package/esm2022/lib/scrollable/scrollable.component.mjs +186 -0
- package/{esm2020 → esm2022}/lib/scrollable/scrollable.module.mjs +6 -6
- package/esm2022/lib/select-icon/select-icon.component.mjs +308 -0
- package/{esm2020 → esm2022}/lib/select-icon/select-icon.module.mjs +13 -13
- package/{esm2020 → esm2022}/lib/size-detection/directive/size-detector.directive.mjs +5 -5
- package/{esm2020 → esm2022}/lib/size-detection/size-detection.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/spinner/spinner.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/spinner/spinner.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/table/components/bulk-actions/bulk-actions.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/table/components/column-heading/column-heading.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/table/components/index.mjs +2 -1
- package/esm2022/lib/table/components/row-actions/row-actions.component.mjs +61 -0
- package/esm2022/lib/table/containers/table.component.mjs +403 -0
- package/esm2022/lib/table/directives/table-inject-component.directive.mjs +46 -0
- package/{esm2020 → esm2022}/lib/table/directives/table.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/table/enumerations/table-column-type.mjs +2 -1
- package/{esm2020 → esm2022}/lib/table/helpers/table-theme.helper.mjs +3 -3
- package/esm2022/lib/table/interfaces/index.mjs +11 -0
- package/esm2022/lib/table/interfaces/table-column-defs.type.mjs +2 -0
- package/esm2022/lib/table/interfaces/table-row-action-payload.interface.mjs +2 -0
- package/esm2022/lib/table/interfaces/table-row-action.interface.mjs +2 -0
- package/esm2022/lib/table/table.module.mjs +96 -0
- package/{esm2020 → esm2022}/lib/text-highlight/text-highlight.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/text-highlight/text-highlight.module.mjs +6 -6
- package/{esm2020 → esm2022}/services/index.mjs +1 -1
- package/esm2022/services/interaction.service.mjs +88 -0
- package/{esm2020 → esm2022}/types/component-theme.mjs +1 -1
- package/{fesm2020 → fesm2022}/impartner-design-components.mjs +1197 -1032
- package/fesm2022/impartner-design-components.mjs.map +1 -0
- package/lib/alert/alert.component.d.ts +1 -1
- package/lib/alert/theme/alert-theme.d.ts +1 -1
- package/lib/avatar/avatar.component.d.ts +1 -1
- package/lib/avatar-group/avatar-group.component.d.ts +1 -1
- package/lib/backdrop/backdrop.component.d.ts +9 -6
- package/lib/badge/badge.component.d.ts +3 -2
- package/lib/badge/types/badge-icon.d.ts +1 -1
- package/lib/badge/types/badge-size.d.ts +1 -1
- package/lib/branding/branded.directive.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb-item.component.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/lib/button/button.component.d.ts +1 -1
- package/lib/button/themes/button-theme.d.ts +1 -1
- package/lib/button-group/button-group.component.d.ts +1 -1
- package/lib/card-heading/card-heading.component.d.ts +1 -1
- package/lib/data-card/data-card.component.d.ts +14 -18
- package/lib/data-card/data-card.module.d.ts +2 -1
- package/lib/dropdown/components/dropdown-item/dropdown-item.component.d.ts +1 -1
- package/lib/dropdown/dropdown.component.d.ts +6 -5
- package/lib/dropdown/types/dropdown-position.d.ts +1 -1
- package/lib/file-upload/directives/file-drop.directive.d.ts +1 -1
- package/lib/file-upload/file-upload.component.d.ts +1 -1
- package/lib/form-field/controls/checkbox/checkbox.component.d.ts +1 -1
- package/lib/form-field/controls/input/input.directive.d.ts +1 -1
- package/lib/form-field/controls/radio/radio-button/radio-button.component.d.ts +1 -1
- package/lib/form-field/controls/radio/radio-group/radio-group.directive.d.ts +1 -1
- package/lib/form-field/controls/select/option/select-option.component.d.ts +4 -4
- package/lib/form-field/controls/select/select.component.d.ts +1 -1
- package/lib/form-field/controls/shared/toggle/components/toggle-input/toggle-input.component.d.ts +1 -1
- package/lib/form-field/controls/shared/toggle/toggle.component.d.ts +1 -1
- package/lib/form-field/directives/corner-hint.directive.d.ts +1 -1
- package/lib/form-field/directives/error.directive.d.ts +1 -1
- package/lib/form-field/directives/form-root.directive.d.ts +2 -2
- package/lib/form-field/directives/hint.directive.d.ts +1 -1
- package/lib/form-field/directives/label.directive.d.ts +1 -1
- package/lib/form-field/directives/prefix.directive.d.ts +1 -1
- package/lib/form-field/directives/suffix.directive.d.ts +1 -1
- package/lib/form-field/form-field.component.d.ts +1 -1
- package/lib/form-field/services/unique-selection-dispatcher.service.d.ts +1 -1
- package/lib/form-field/shared/constructors.type.d.ts +2 -2
- package/lib/form-field/shared/disabled.mixin.d.ts +1 -1
- package/lib/form-field/shared/error-state.mixin.d.ts +1 -1
- package/lib/form-field/shared/form-field-control.d.ts +1 -1
- package/lib/form-field/shared/tab-index.mixin.d.ts +1 -1
- package/lib/icon/icon.component.d.ts +1 -1
- package/lib/modal/modal.component.d.ts +17 -10
- package/lib/modal/types/modal-component-sizes.d.ts +1 -1
- package/lib/modal/types/modal-theme.d.ts +1 -1
- package/lib/pagination/pagination.component.d.ts +1 -1
- package/lib/progress-bar/progress-bar.component.d.ts +1 -1
- package/lib/scrollable/scrollable.component.d.ts +1 -1
- package/lib/select-icon/select-icon.component.d.ts +1 -1
- package/lib/size-detection/directive/size-detector.directive.d.ts +1 -1
- package/lib/spinner/spinner.component.d.ts +1 -1
- package/lib/table/components/bulk-actions/bulk-actions.component.d.ts +1 -1
- package/lib/table/components/column-heading/column-heading.component.d.ts +1 -1
- package/lib/table/components/index.d.ts +1 -0
- package/lib/table/components/row-actions/row-actions.component.d.ts +21 -0
- package/lib/table/containers/table.component.d.ts +12 -6
- package/lib/table/directives/table-inject-component.directive.d.ts +3 -3
- package/lib/table/directives/table.directive.d.ts +1 -1
- package/lib/table/enumerations/table-column-type.d.ts +2 -1
- package/lib/table/helpers/table-theme.helper.d.ts +4 -4
- package/lib/table/interfaces/custom-cell-renderer-components.type.d.ts +1 -1
- package/lib/table/interfaces/index.d.ts +3 -1
- package/lib/table/interfaces/{table-column-def.interface.d.ts → table-column-defs.type.d.ts} +8 -1
- package/lib/table/interfaces/table-row-action-payload.interface.d.ts +6 -0
- package/lib/table/interfaces/table-row-action.interface.d.ts +9 -0
- package/lib/table/interfaces/table-row-item.interface.d.ts +3 -3
- package/lib/table/table.module.d.ts +12 -10
- package/lib/text-highlight/text-highlight.component.d.ts +1 -1
- package/package.json +16 -22
- package/services/index.d.ts +1 -1
- package/services/interaction.service.d.ts +20 -10
- package/types/component-size.d.ts +2 -2
- package/types/component-theme.d.ts +1 -1
- package/utilities/boolean-props.d.ts +1 -1
- package/utilities/number-props.d.ts +1 -1
- package/esm2020/lib/backdrop/backdrop.component.mjs +0 -40
- package/esm2020/lib/badge/badge.component.mjs +0 -99
- package/esm2020/lib/data-card/data-card.component.mjs +0 -128
- package/esm2020/lib/data-card/data-card.module.mjs +0 -20
- package/esm2020/lib/dropdown/dropdown.component.mjs +0 -142
- package/esm2020/lib/form-field/controls/input/input.directive.mjs +0 -233
- package/esm2020/lib/form-field/controls/radio/radio-button/radio-button.component.mjs +0 -260
- package/esm2020/lib/form-field/controls/radio/radio-group/radio-group.directive.mjs +0 -289
- package/esm2020/lib/form-field/controls/select/option/select-option.component.mjs +0 -139
- package/esm2020/lib/form-field/controls/select/select-model.mjs +0 -150
- package/esm2020/lib/form-field/controls/select/select.component.mjs +0 -522
- package/esm2020/lib/form-field/controls/shared/toggle/toggle.component.mjs +0 -96
- package/esm2020/lib/form-field/directives/form-root.directive.mjs +0 -91
- package/esm2020/lib/form-field/shared/error-state.mixin.mjs +0 -24
- package/esm2020/lib/modal/modal.component.mjs +0 -187
- package/esm2020/lib/pagination/pagination.component.mjs +0 -176
- package/esm2020/lib/scrollable/scrollable.component.mjs +0 -186
- package/esm2020/lib/select-icon/select-icon.component.mjs +0 -308
- package/esm2020/lib/table/containers/table.component.mjs +0 -386
- package/esm2020/lib/table/directives/table-inject-component.directive.mjs +0 -46
- package/esm2020/lib/table/interfaces/index.mjs +0 -9
- package/esm2020/lib/table/interfaces/table-column-def.interface.mjs +0 -2
- package/esm2020/lib/table/table.module.mjs +0 -88
- package/esm2020/services/interaction.service.mjs +0 -81
- package/fesm2015/impartner-design-components.mjs +0 -9214
- package/fesm2015/impartner-design-components.mjs.map +0 -1
- package/fesm2020/impartner-design-components.mjs.map +0 -1
- /package/{esm2020 → esm2022}/constants/index.mjs +0 -0
- /package/{esm2020 → esm2022}/impartner-design-components.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/alert/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/alert/theme/alert-theme.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/alert/theme/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/avatar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/avatar-group/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/backdrop/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/badge/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/badge/types/badge-icon.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/badge/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/branding/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/breadcrumb/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/button/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/button/themes/button-theme.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/button/themes/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/button-group/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/card-heading/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data-card/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/dropdown/components/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/dropdown/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/dropdown/types/dropdown-position.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/dropdown/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/file-upload/directives/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/file-upload/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/file-upload/pipes/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/checkbox/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/input/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/radio/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/radio/injection-tokens.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/radio/interfaces/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/radio/interfaces/radio-button.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/radio/interfaces/radio-change-event.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/radio/interfaces/radio-group.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/select/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/select/option/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/select/option-parent.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/shared/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/shared/toggle/components/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/controls/shared/toggle/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/directives/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/form-field-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/impdc-forms.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/shared/constructors.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/form-field/shared/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/icon/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modal/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modal/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/pagination/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/progress-bar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/scrollable/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/select-icon/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/size-detection/directive/element-size.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/size-detection/directive/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/size-detection/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/spinner/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/constants/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/constants/public-table.constants.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/constants/table.constants.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/containers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/directives/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/enumerations/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/helpers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/interfaces/cell-renderer.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/interfaces/custom-cell-renderer-components.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/interfaces/sort-by-payload.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/interfaces/table-cell-option.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/interfaces/table-event-payload.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/table/interfaces/table-row-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/text-highlight/index.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/types/component-size.mjs +0 -0
- /package/{esm2020 → esm2022}/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/utilities/boolean-props.mjs +0 -0
- /package/{esm2020 → esm2022}/utilities/dc.mjs +0 -0
- /package/{esm2020 → esm2022}/utilities/index.mjs +0 -0
- /package/{esm2020 → esm2022}/utilities/lc.mjs +0 -0
- /package/{esm2020 → esm2022}/utilities/number-props.mjs +0 -0
- /package/{esm2020 → esm2022}/utilities/sanitize.mjs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FontAwesomeIcon, FontAwesomeIconTheme } from '../../constants';
|
|
3
|
-
import { InteractionService } from '../../services';
|
|
3
|
+
import { IInteractableComponent, InteractionService } from '../../services';
|
|
4
4
|
import { ButtonTheme } from '../button';
|
|
5
5
|
import { ModalComponentSizes, ModalThemes } from './types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -10,14 +10,19 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* `ModalModule` imports and exports BackdropModule, [ButtonModule](./?path=/docs/design-components-button),
|
|
11
11
|
* and [IconModule](./?path=/docs/design-components-icon).
|
|
12
12
|
*/
|
|
13
|
-
export declare class ModalComponent implements OnInit, OnDestroy {
|
|
14
|
-
private _interactionService;
|
|
15
|
-
private
|
|
13
|
+
export declare class ModalComponent implements OnInit, OnDestroy, IInteractableComponent {
|
|
14
|
+
private readonly _interactionService;
|
|
15
|
+
private readonly _elementRef;
|
|
16
|
+
private readonly _interactableId;
|
|
17
|
+
private readonly _closed$;
|
|
18
|
+
private _initialized;
|
|
16
19
|
private _show;
|
|
20
|
+
private _dialogElementRef?;
|
|
17
21
|
/**
|
|
18
22
|
* Determines if the Modal should be shown immediately.
|
|
19
23
|
*/
|
|
20
24
|
set show(show: boolean);
|
|
25
|
+
get show(): boolean;
|
|
21
26
|
/**
|
|
22
27
|
* The theme of the Modal. Affects the layout of the Modal as well as some colors.
|
|
23
28
|
*/
|
|
@@ -70,17 +75,17 @@ export declare class ModalComponent implements OnInit, OnDestroy {
|
|
|
70
75
|
/**
|
|
71
76
|
* Event emitted when the Modal content is dismissed.
|
|
72
77
|
*/
|
|
73
|
-
dismiss: EventEmitter<
|
|
78
|
+
dismiss: EventEmitter<Event | MouseEvent>;
|
|
74
79
|
/**
|
|
75
80
|
* Event emitted when the Modal content is denied.
|
|
76
81
|
*/
|
|
77
|
-
deny: EventEmitter<
|
|
82
|
+
deny: EventEmitter<Event | MouseEvent>;
|
|
78
83
|
/**
|
|
79
84
|
* Event emitted when the Modal content is accepted.
|
|
80
85
|
*/
|
|
81
|
-
accept: EventEmitter<
|
|
82
|
-
constructor(_interactionService: InteractionService);
|
|
83
|
-
get interactableId():
|
|
86
|
+
accept: EventEmitter<Event | MouseEvent>;
|
|
87
|
+
constructor(_interactionService: InteractionService, _elementRef: ElementRef<HTMLElement>);
|
|
88
|
+
get interactableId(): string;
|
|
84
89
|
get valid(): boolean;
|
|
85
90
|
get shown(): boolean;
|
|
86
91
|
get showWorkingIcon(): boolean;
|
|
@@ -100,6 +105,8 @@ export declare class ModalComponent implements OnInit, OnDestroy {
|
|
|
100
105
|
* Closes/hides the modal. Can be used programmatically.
|
|
101
106
|
*/
|
|
102
107
|
close(): void;
|
|
108
|
+
private _setupEventHandling;
|
|
109
|
+
private _disableEventHandling;
|
|
103
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
104
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "impdc-modal", never, { "show": "show"; "theme": "theme"; "size": "size"; "iconName": "iconName"; "iconTheme": "iconTheme"; "titleText": "titleText"; "acceptText": "acceptText"; "dismissable": "dismissable"; "fade": "fade"; "backdrop": "backdrop"; }, { "dismiss": "dismiss"; "deny": "deny"; "accept": "accept"; }, never, ["*", "[dismiss]", "[deny]", "[accept]"], false>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "impdc-modal", never, { "show": { "alias": "show"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "size": { "alias": "size"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "iconTheme": { "alias": "iconTheme"; "required": false; }; "titleText": { "alias": "titleText"; "required": false; }; "acceptText": { "alias": "acceptText"; "required": false; }; "dismissable": { "alias": "dismissable"; "required": false; }; "fade": { "alias": "fade"; "required": false; }; "backdrop": { "alias": "backdrop"; "required": false; }; }, { "dismiss": "dismiss"; "deny": "deny"; "accept": "accept"; }, never, ["*", "[dismiss]", "[deny]", "[accept]"], false, never>;
|
|
105
112
|
}
|
|
@@ -54,5 +54,5 @@ export declare class PaginationComponent {
|
|
|
54
54
|
preventDefaultAndBlur(event: Event): void;
|
|
55
55
|
private _getPageClamped;
|
|
56
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "impdc-pagination, div[impdc-pagination]", never, { "page": "page"; "perPage": "perPage"; "total": "total"; "summary": "summary"; "perPageLabel": "perPageLabel"; }, { "goToPage": "goToPage"; "perPageChange": "perPageChange"; }, never, never, false>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "impdc-pagination, div[impdc-pagination]", never, { "page": { "alias": "page"; "required": false; }; "perPage": { "alias": "perPage"; "required": false; }; "total": { "alias": "total"; "required": false; }; "summary": { "alias": "summary"; "required": false; }; "perPageLabel": { "alias": "perPageLabel"; "required": false; }; }, { "goToPage": "goToPage"; "perPageChange": "perPageChange"; }, never, never, false, never>;
|
|
58
58
|
}
|
|
@@ -18,5 +18,5 @@ export declare class ProgressBarComponent {
|
|
|
18
18
|
progressPercentage: number;
|
|
19
19
|
constructor();
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "impdc-progress-bar", never, { "labelText": "labelText"; "statusText": "statusText"; "progressPercentage": "progressPercentage"; }, {}, never, never, false>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "impdc-progress-bar", never, { "labelText": { "alias": "labelText"; "required": false; }; "statusText": { "alias": "statusText"; "required": false; }; "progressPercentage": { "alias": "progressPercentage"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
22
|
}
|
|
@@ -37,5 +37,5 @@ export declare class ScrollableComponent implements OnChanges, AfterViewInit {
|
|
|
37
37
|
private _getAncestorBackgroundColor;
|
|
38
38
|
private _getBackGroundColor;
|
|
39
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollableComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollableComponent, "impdc-scrollable, div[impdc-scrollable]", never, { "scrollUnit": "scrollUnit"; "clickScrollMultiplier": "clickScrollMultiplier"; }, {}, never, ["*"], false>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollableComponent, "impdc-scrollable, div[impdc-scrollable]", never, { "scrollUnit": { "alias": "scrollUnit"; "required": false; }; "clickScrollMultiplier": { "alias": "clickScrollMultiplier"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
41
41
|
}
|
|
@@ -118,6 +118,6 @@ export declare class SelectIconComponent extends _SelectIconComponentBase implem
|
|
|
118
118
|
protected _onBlur(): void;
|
|
119
119
|
private _buildChangeEvent;
|
|
120
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectIconComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
|
|
121
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectIconComponent, "impdc-select-icon", never, { "disabled": "disabled"; "tabIndex": "tabIndex"; "allowSearch": "allowSearch"; "iconOptions": "iconOptions"; "showText": "showText"; "showSelectedText": "showSelectedText"; "placeholder": "placeholder"; "errorStateMatcher": "errorStateMatcher"; "value": "value"; "id": "id"; "required": "required"; }, { "selectionChange": "selectionChange"; "valueChange": "valueChange"; }, never, never, false>;
|
|
121
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectIconComponent, "impdc-select-icon", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "allowSearch": { "alias": "allowSearch"; "required": false; }; "iconOptions": { "alias": "iconOptions"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; "showSelectedText": { "alias": "showSelectedText"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "selectionChange": "selectionChange"; "valueChange": "valueChange"; }, never, never, false, never>;
|
|
122
122
|
}
|
|
123
123
|
export {};
|
|
@@ -10,5 +10,5 @@ export declare class SizeDetectorDirective implements OnDestroy {
|
|
|
10
10
|
private _observe;
|
|
11
11
|
private _unobserve;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<SizeDetectorDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SizeDetectorDirective, "[impdcSizeDetector]", never, {}, { "resized": "resized"; }, never, never, false>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SizeDetectorDirective, "[impdcSizeDetector]", never, {}, { "resized": "resized"; }, never, never, false, never>;
|
|
14
14
|
}
|
|
@@ -9,5 +9,5 @@ export declare class SpinnerComponent {
|
|
|
9
9
|
*/
|
|
10
10
|
accessibilityText: string;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "impdc-spinner, div[impdc-spinner]", never, { "accessibilityText": "accessibilityText"; }, {}, never, never, false>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "impdc-spinner, div[impdc-spinner]", never, { "accessibilityText": { "alias": "accessibilityText"; "required": false; }; }, {}, never, never, false, never>;
|
|
13
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class TableBulkActionsComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableBulkActionsComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableBulkActionsComponent, "impdc-table-bulk-actions", never, {}, {}, never, ["[selectedTotal]", "[bulkAction]"], false>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableBulkActionsComponent, "impdc-table-bulk-actions", never, {}, {}, never, ["[selectedTotal]", "[bulkAction]"], false, never>;
|
|
5
5
|
}
|
|
@@ -10,5 +10,5 @@ export declare class ColumnHeadingComponent {
|
|
|
10
10
|
sort: EventEmitter<number>;
|
|
11
11
|
onSort(): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnHeadingComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnHeadingComponent, "impdc-column-heading", never, { "isSortable": "isSortable"; "columnIndex": "columnIndex"; "sortColumnIndex": "sortColumnIndex"; "direction": "direction"; "text": "text"; }, { "sort": "sort"; }, never, never, false>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnHeadingComponent, "impdc-column-heading", never, { "isSortable": { "alias": "isSortable"; "required": false; }; "columnIndex": { "alias": "columnIndex"; "required": false; }; "sortColumnIndex": { "alias": "sortColumnIndex"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "sort": "sort"; }, never, never, false, never>;
|
|
14
14
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ITableActionsColumnDef, ITableRowAction, ITableRowItem } from '../../interfaces';
|
|
3
|
+
import { BrandedDirective } from '../../../branding';
|
|
4
|
+
import { ButtonTheme } from '../../../button';
|
|
5
|
+
import { ComponentTheme } from '../../../../types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class RowActionsComponent {
|
|
8
|
+
columnDef: ITableActionsColumnDef<any>;
|
|
9
|
+
rowItem: ITableRowItem;
|
|
10
|
+
lastColumn: boolean;
|
|
11
|
+
actionClick: EventEmitter<string>;
|
|
12
|
+
/** @ignore */
|
|
13
|
+
branded: boolean;
|
|
14
|
+
constructor(_branded: BrandedDirective);
|
|
15
|
+
isVisible(action: ITableRowAction): boolean;
|
|
16
|
+
handleActionClick(apiName: string): void;
|
|
17
|
+
getColor(action: ITableRowAction): string;
|
|
18
|
+
protected getButtonThemeFromComponentTheme(componentTheme?: ComponentTheme): ButtonTheme;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowActionsComponent, [{ optional: true; }]>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RowActionsComponent, "impdc-row-actions", never, { "columnDef": { "alias": "columnDef"; "required": true; }; "rowItem": { "alias": "rowItem"; "required": true; }; "lastColumn": { "alias": "lastColumn"; "required": false; }; }, { "actionClick": "actionClick"; }, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DatePipe, DecimalPipe, PercentPipe } from '@angular/common';
|
|
2
2
|
import { ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { TableColumnType } from '../enumerations/index';
|
|
4
|
-
import { ICustomCellRendererComponents, ISortByPayload,
|
|
4
|
+
import { ICustomCellRendererComponents, ISortByPayload, ITableActionsColumnDef, ITableEventPayload, ITableRowActionPayload, ITableRowItem, ITableRowItemValue, ITableRowItemValueTypes, TableColumnDef } from '../interfaces/index';
|
|
5
5
|
import { CheckboxChangeEvent } from '../../form-field';
|
|
6
6
|
import { ComponentTheme } from '../../../types';
|
|
7
7
|
import { BrandedDirective } from '../../branding';
|
|
@@ -29,7 +29,7 @@ export declare class TableComponent implements OnChanges {
|
|
|
29
29
|
* 2) `colorGetter`- allows an `ITableColumnDef` to delegate the responsibility of cell color to a function of the `ITableRowItem` determined by the developer.
|
|
30
30
|
* 3) `color` - a property of an `ITableColumnDef`.
|
|
31
31
|
*/
|
|
32
|
-
columnDefs:
|
|
32
|
+
columnDefs: TableColumnDef[];
|
|
33
33
|
/**
|
|
34
34
|
* Whether the table is striped.
|
|
35
35
|
*/
|
|
@@ -82,6 +82,10 @@ export declare class TableComponent implements OnChanges {
|
|
|
82
82
|
* Event emitted when a row link is clicked. Emits `ITableEventPayload` payload.
|
|
83
83
|
*/
|
|
84
84
|
readonly linkClick: EventEmitter<ITableEventPayload<ITableRowItem>>;
|
|
85
|
+
/**
|
|
86
|
+
* Event emitted when a row action is clicked. Emits an `ITableRowActionPayload` payload.
|
|
87
|
+
*/
|
|
88
|
+
readonly rowActionClick: EventEmitter<ITableRowActionPayload<ITableRowItem>>;
|
|
85
89
|
/** @ignore */
|
|
86
90
|
paginationComponent?: PaginationComponent;
|
|
87
91
|
/** @ignore */
|
|
@@ -92,7 +96,7 @@ export declare class TableComponent implements OnChanges {
|
|
|
92
96
|
*/
|
|
93
97
|
readonly inputChange: EventEmitter<ITableEventPayload<ITableRowItem>>;
|
|
94
98
|
/** @ignore */
|
|
95
|
-
cellType: typeof TableColumnType;
|
|
99
|
+
readonly cellType: typeof TableColumnType;
|
|
96
100
|
/** @ignore */
|
|
97
101
|
allSelected: boolean;
|
|
98
102
|
/** @ignore */
|
|
@@ -111,8 +115,8 @@ export declare class TableComponent implements OnChanges {
|
|
|
111
115
|
getStringValue(columnIndex: number, currentRow: ITableRowItem): string;
|
|
112
116
|
getValue(columnIndex: number, currentRow: ITableRowItem): string | string[];
|
|
113
117
|
getRawValue(columnIndex: number, currentRow: ITableRowItem): ITableRowItemValueTypes<ITableRowItemValue>;
|
|
114
|
-
getCellColor(columnDefinition:
|
|
115
|
-
getTheme(columnDefinition:
|
|
118
|
+
getCellColor(columnDefinition: TableColumnDef, item: ITableRowItem): string;
|
|
119
|
+
getTheme(columnDefinition: TableColumnDef, item: ITableRowItem): ComponentTheme;
|
|
116
120
|
isSortedColumn(columnIndex: number): boolean;
|
|
117
121
|
isRowSelected(id: string | number): boolean;
|
|
118
122
|
handleSelectAll(event: CheckboxChangeEvent): void;
|
|
@@ -120,8 +124,10 @@ export declare class TableComponent implements OnChanges {
|
|
|
120
124
|
handleRowSelect(event: CheckboxChangeEvent, rowId: number | string): void;
|
|
121
125
|
handleCellValueChange(columnIndex: number, rowIndex: number, value: string | number | boolean | string[]): void;
|
|
122
126
|
handleLinkClick(columnIndex: number, item: ITableRowItem): void;
|
|
127
|
+
handleActionClick(columnIndex: number, item: ITableRowItem, actionApiName: string): void;
|
|
128
|
+
protected columnDefIsActions(columnDef: TableColumnDef<any>): columnDef is ITableActionsColumnDef<any>;
|
|
123
129
|
private _getColumnDefByIndex;
|
|
124
130
|
private _getValue;
|
|
125
131
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, [null, null, null, null, { optional: true; host: true; }]>;
|
|
126
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "impdc-table", never, { "loading": "loading"; "columnDefs": "columnDefs"; "striped": "striped"; "canSelectRows": "canSelectRows"; "canSelectAllRows": "canSelectAllRows"; "selectPlaceholder": "selectPlaceholder"; "sortColumnIndex": "sortColumnIndex"; "sortDirection": "sortDirection"; "tableData": "tableData"; "selectedRowIds": "selectedRowIds"; "customCellComponents": "customCellComponents"; }, { "rowSelect": "rowSelect"; "sortBy": "sortBy"; "linkClick": "linkClick"; "inputChange": "inputChange"; }, ["paginationComponent", "bulkActions"], ["impdc-table-bulk-actions", "[impdcTableBulkActions]", "[noData]", "impdc-pagination, div[impdc-pagination]"], false>;
|
|
132
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "impdc-table", never, { "loading": { "alias": "loading"; "required": false; }; "columnDefs": { "alias": "columnDefs"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "canSelectRows": { "alias": "canSelectRows"; "required": false; }; "canSelectAllRows": { "alias": "canSelectAllRows"; "required": false; }; "selectPlaceholder": { "alias": "selectPlaceholder"; "required": false; }; "sortColumnIndex": { "alias": "sortColumnIndex"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "selectedRowIds": { "alias": "selectedRowIds"; "required": false; }; "customCellComponents": { "alias": "customCellComponents"; "required": false; }; }, { "rowSelect": "rowSelect"; "sortBy": "sortBy"; "linkClick": "linkClick"; "rowActionClick": "rowActionClick"; "inputChange": "inputChange"; }, ["paginationComponent", "bulkActions"], ["impdc-table-bulk-actions", "[impdcTableBulkActions]", "[noData]", "impdc-pagination, div[impdc-pagination]"], false, never>;
|
|
127
133
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComponentFactoryResolver, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { ICustomCellRendererComponents,
|
|
2
|
+
import { ICustomCellRendererComponents, ITableRowItem, ITableRowItemValue, ITableRowItemValueTypes, TableColumnDef } from '../interfaces/index';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TableInjectComponentDirective implements OnInit {
|
|
5
5
|
private readonly _viewContainerRef;
|
|
6
6
|
private readonly _componentFactoryResolver;
|
|
7
|
-
columnDef:
|
|
7
|
+
columnDef: TableColumnDef;
|
|
8
8
|
value: ITableRowItemValueTypes<ITableRowItemValue>;
|
|
9
9
|
rowItem: ITableRowItem;
|
|
10
10
|
customCellComponents: ICustomCellRendererComponents;
|
|
@@ -12,5 +12,5 @@ export declare class TableInjectComponentDirective implements OnInit {
|
|
|
12
12
|
ngOnInit(): void;
|
|
13
13
|
private _renderCustomCell;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableInjectComponentDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableInjectComponentDirective, "[impdcTableInjectComponent]", never, { "columnDef": "columnDef"; "value": "value"; "rowItem": "rowItem"; "customCellComponents": "customCellComponents"; }, {}, never, never, false>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableInjectComponentDirective, "[impdcTableInjectComponent]", never, { "columnDef": { "alias": "columnDef"; "required": true; }; "value": { "alias": "value"; "required": false; }; "rowItem": { "alias": "rowItem"; "required": false; }; "customCellComponents": { "alias": "customCellComponents"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
16
|
}
|
|
@@ -11,5 +11,5 @@ export declare class TableDirective {
|
|
|
11
11
|
private classTable;
|
|
12
12
|
private get classTableStriped();
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableDirective, "table[impdcTable]", never, { "striped": "striped"; }, {}, never, never, false>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableDirective, "table[impdcTable]", never, { "striped": { "alias": "striped"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
15
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ITableRowItem, TableColumnDef } from '../interfaces';
|
|
2
2
|
import { ComponentTheme } from '../../../types';
|
|
3
3
|
export declare class TableThemeHelper {
|
|
4
|
-
static getTheme({ fieldColor, color, colorGetter }:
|
|
5
|
-
static getCellColor(columnDefinition:
|
|
6
|
-
|
|
4
|
+
static getTheme({ fieldColor, color, colorGetter }: TableColumnDef, currentRow: ITableRowItem): ComponentTheme | undefined;
|
|
5
|
+
static getCellColor(columnDefinition: TableColumnDef, currentRow: ITableRowItem): string;
|
|
6
|
+
static getColor(color?: ComponentTheme): string;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './table-column-
|
|
1
|
+
export * from './table-column-defs.type';
|
|
2
2
|
export * from './table-event-payload.interface';
|
|
3
3
|
export * from './sort-by-payload.interface';
|
|
4
4
|
export * from './table-row-item.interface';
|
|
@@ -6,3 +6,5 @@ export * from './cell-renderer.interface';
|
|
|
6
6
|
export * from './cell-renderer.interface';
|
|
7
7
|
export * from './custom-cell-renderer-components.type';
|
|
8
8
|
export * from './table-cell-option.interface';
|
|
9
|
+
export * from './table-row-action.interface';
|
|
10
|
+
export * from './table-row-action-payload.interface';
|
package/lib/table/interfaces/{table-column-def.interface.d.ts → table-column-defs.type.d.ts}
RENAMED
|
@@ -2,14 +2,15 @@ import { TableColumnType } from '../enumerations/index';
|
|
|
2
2
|
import { ComponentTheme } from '../../../types';
|
|
3
3
|
import { ITableRowItem } from './table-row-item.interface';
|
|
4
4
|
import { ITableCellOption } from './table-cell-option.interface';
|
|
5
|
+
import { ITableRowAction } from './table-row-action.interface';
|
|
5
6
|
export interface ITableColumnDef<T = ITableRowItem> {
|
|
7
|
+
readonly columnType: TableColumnType;
|
|
6
8
|
title: string;
|
|
7
9
|
field?: string;
|
|
8
10
|
valueGetter?: (record: T) => string;
|
|
9
11
|
color?: ComponentTheme;
|
|
10
12
|
colorGetter?: (record: T) => ComponentTheme;
|
|
11
13
|
fieldColor?: string;
|
|
12
|
-
columnType?: TableColumnType | string;
|
|
13
14
|
sorted?: boolean;
|
|
14
15
|
boldedText?: boolean;
|
|
15
16
|
truncated?: number;
|
|
@@ -20,3 +21,9 @@ export interface ITableColumnDef<T = ITableRowItem> {
|
|
|
20
21
|
iconName?: string;
|
|
21
22
|
disabled?: boolean;
|
|
22
23
|
}
|
|
24
|
+
export interface ITableActionsColumnDef<T = ITableRowItem> extends ITableColumnDef<T> {
|
|
25
|
+
readonly columnType: TableColumnType.Actions;
|
|
26
|
+
actions: ITableRowAction[];
|
|
27
|
+
actionType: 'icon' | 'button' | 'link';
|
|
28
|
+
}
|
|
29
|
+
export type TableColumnDef<T = ITableRowItem> = ITableActionsColumnDef<T> | ITableColumnDef<T>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentTheme } from '../../../types';
|
|
2
|
+
import { ITableRowItem } from './table-row-item.interface';
|
|
3
|
+
export interface ITableRowAction {
|
|
4
|
+
apiName: string;
|
|
5
|
+
text: string;
|
|
6
|
+
iconName: string;
|
|
7
|
+
theme?: ComponentTheme;
|
|
8
|
+
isVisible?: (rowItem: ITableRowItem) => boolean;
|
|
9
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface IIdentifiable {
|
|
2
2
|
id: string | number;
|
|
3
3
|
}
|
|
4
|
-
export
|
|
4
|
+
export type ITableRowItemValueTypes<T = never> = string | number | boolean | Array<string | number> | T | Array<T>;
|
|
5
5
|
export interface ITableRowItemBase<T = never> {
|
|
6
6
|
[field: string]: ITableRowItemValueTypes<T>;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
9
|
-
export
|
|
8
|
+
export type ITableRowItemValue = ITableRowItemBase<ITableRowItemBase<ITableRowItemBase>>;
|
|
9
|
+
export type ITableRowItem = IIdentifiable & ITableRowItemValue;
|
|
@@ -4,18 +4,20 @@ import * as i2 from "./containers/table.component";
|
|
|
4
4
|
import * as i3 from "./components/column-heading/column-heading.component";
|
|
5
5
|
import * as i4 from "./directives/table-inject-component.directive";
|
|
6
6
|
import * as i5 from "./components/bulk-actions/bulk-actions.component";
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "../
|
|
10
|
-
import * as i9 from "../
|
|
11
|
-
import * as i10 from "../
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "../
|
|
15
|
-
import * as i14 from "../
|
|
7
|
+
import * as i6 from "./components/row-actions/row-actions.component";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "../button/button.module";
|
|
10
|
+
import * as i9 from "../pagination/pagination.module";
|
|
11
|
+
import * as i10 from "../icon/icon.module";
|
|
12
|
+
import * as i11 from "../form-field/impdc-forms.module";
|
|
13
|
+
import * as i12 from "@angular/forms";
|
|
14
|
+
import * as i13 from "../spinner/spinner.module";
|
|
15
|
+
import * as i14 from "../badge/badge.module";
|
|
16
|
+
import * as i15 from "../branding/branding.module";
|
|
17
|
+
import * as i16 from "@ng-bootstrap/ng-bootstrap";
|
|
16
18
|
export declare class TableModule {
|
|
17
19
|
constructor();
|
|
18
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.TableDirective, typeof i2.TableComponent, typeof i3.ColumnHeadingComponent, typeof i4.TableInjectComponentDirective, typeof i5.TableBulkActionsComponent], [typeof
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.TableDirective, typeof i2.TableComponent, typeof i3.ColumnHeadingComponent, typeof i4.TableInjectComponentDirective, typeof i5.TableBulkActionsComponent, typeof i6.RowActionsComponent], [typeof i7.CommonModule, typeof i8.ButtonModule, typeof i9.PaginationModule, typeof i10.IconModule, typeof i11.ImpdcFormsModule, typeof i12.FormsModule, typeof i13.SpinnerModule, typeof i14.BadgeModule, typeof i15.BrandingModule, typeof i16.NgbDropdownModule], [typeof i8.ButtonModule, typeof i1.TableDirective, typeof i3.ColumnHeadingComponent, typeof i5.TableBulkActionsComponent, typeof i9.PaginationModule, typeof i2.TableComponent, typeof i10.IconModule, typeof i4.TableInjectComponentDirective, typeof i15.BrandingModule, typeof i6.RowActionsComponent]>;
|
|
20
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<TableModule>;
|
|
21
23
|
}
|
|
@@ -27,5 +27,5 @@ export declare class TextHighlightComponent implements OnChanges {
|
|
|
27
27
|
checkMatch(match: any): boolean;
|
|
28
28
|
ngOnChanges(): void;
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextHighlightComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextHighlightComponent, "impdc-text-highlight, [impdc-text-highlight]", never, { "text": "text"; "search": "search"; "method": "method"; "exact": "exact"; }, {}, never, never, false>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextHighlightComponent, "impdc-text-highlight, [impdc-text-highlight]", never, { "text": { "alias": "text"; "required": false; }; "search": { "alias": "search"; "required": false; }; "method": { "alias": "method"; "required": false; }; "exact": { "alias": "exact"; "required": false; }; }, {}, never, never, false, never>;
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impartner/design-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"author": "Impartner",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"private": false,
|
|
@@ -12,28 +12,24 @@
|
|
|
12
12
|
"tslib": "^2.3.0"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@angular/common": ">=
|
|
16
|
-
"@angular/core": ">=
|
|
17
|
-
"@angular/forms": ">=
|
|
18
|
-
"@angular/localize": ">=
|
|
19
|
-
"@impartner/design": "^
|
|
20
|
-
"@ng-bootstrap/ng-bootstrap": "^
|
|
21
|
-
"@popperjs/core": "^2.
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
15
|
+
"@angular/common": ">=17.0.1",
|
|
16
|
+
"@angular/core": ">=17.0.1",
|
|
17
|
+
"@angular/forms": ">=17.0.1",
|
|
18
|
+
"@angular/localize": ">=17.0.1",
|
|
19
|
+
"@impartner/design": "^2.0.0",
|
|
20
|
+
"@ng-bootstrap/ng-bootstrap": "^16.0.0",
|
|
21
|
+
"@popperjs/core": "^2.11.8",
|
|
22
|
+
"lodash": "^4.17.21",
|
|
23
|
+
"nanoid": "^5.0.4",
|
|
24
|
+
"rxjs": "^7.5.0",
|
|
25
|
+
"sanitize-html": "^2.10.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependenciesMeta": {
|
|
28
28
|
"@impartner/design": {
|
|
29
29
|
"optional": true
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
-
"module": "
|
|
33
|
-
"es2020": "fesm2020/impartner-design-components.mjs",
|
|
34
|
-
"esm2020": "esm2020/impartner-design-components.mjs",
|
|
35
|
-
"fesm2020": "fesm2020/impartner-design-components.mjs",
|
|
36
|
-
"fesm2015": "fesm2015/impartner-design-components.mjs",
|
|
32
|
+
"module": "fesm2022/impartner-design-components.mjs",
|
|
37
33
|
"typings": "index.d.ts",
|
|
38
34
|
"exports": {
|
|
39
35
|
"./package.json": {
|
|
@@ -41,11 +37,9 @@
|
|
|
41
37
|
},
|
|
42
38
|
".": {
|
|
43
39
|
"types": "./index.d.ts",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"node": "./fesm2015/impartner-design-components.mjs",
|
|
48
|
-
"default": "./fesm2020/impartner-design-components.mjs"
|
|
40
|
+
"esm2022": "./esm2022/impartner-design-components.mjs",
|
|
41
|
+
"esm": "./esm2022/impartner-design-components.mjs",
|
|
42
|
+
"default": "./fesm2022/impartner-design-components.mjs"
|
|
49
43
|
}
|
|
50
44
|
},
|
|
51
45
|
"sideEffects": false
|
package/services/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { IInteractableComponent, IBackdropComponent, InteractionService } from './interaction.service';
|
|
@@ -1,18 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export
|
|
3
|
+
export interface IInteractableComponent {
|
|
4
|
+
readonly interactableId: string;
|
|
5
|
+
show: boolean;
|
|
6
|
+
hide?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface IBackdropComponent {
|
|
9
|
+
validate(): void;
|
|
10
|
+
invalidate(): void;
|
|
11
|
+
get valid(): boolean;
|
|
12
|
+
}
|
|
4
13
|
export declare class InteractionService {
|
|
5
14
|
private _backdrop?;
|
|
6
15
|
private _interactables;
|
|
7
|
-
private
|
|
16
|
+
private readonly _backdropQueueSubject;
|
|
17
|
+
readonly showBackdrop$: Observable<boolean>;
|
|
8
18
|
get showBackdrop(): boolean;
|
|
9
|
-
registerBackdrop(modalBackdrop:
|
|
10
|
-
unregisterBackdrop(modalBackdrop:
|
|
11
|
-
add(interactable:
|
|
12
|
-
remove(interactableId:
|
|
13
|
-
toggle(interactable:
|
|
14
|
-
queueBackdrop(interactableId:
|
|
15
|
-
dequeueBackdrop(interactableId:
|
|
19
|
+
registerBackdrop(modalBackdrop: IBackdropComponent): void;
|
|
20
|
+
unregisterBackdrop(modalBackdrop: IBackdropComponent): void;
|
|
21
|
+
add(interactable: IInteractableComponent): string;
|
|
22
|
+
remove(interactableId: string): void;
|
|
23
|
+
toggle(interactable: IInteractableComponent): boolean;
|
|
24
|
+
queueBackdrop(interactableId: string): void;
|
|
25
|
+
dequeueBackdrop(interactableId: string): void;
|
|
16
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<InteractionService, never>;
|
|
17
27
|
static ɵprov: i0.ɵɵInjectableDeclaration<InteractionService>;
|
|
18
28
|
}
|
|
@@ -8,5 +8,5 @@ export declare enum ComponentSize {
|
|
|
8
8
|
XXLarge = "xxl",
|
|
9
9
|
Fullscreen = "fs"
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type PrimaryComponentSizes = ComponentSize.XSmall | ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large | ComponentSize.XLarge | ComponentSize.XXLarge;
|
|
12
|
+
export type SecondaryComponentSizes = ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type representing allowable values for a boolean input.
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type BooleanInput = string | boolean | null | undefined;
|
|
5
5
|
/**
|
|
6
6
|
* Coerces a value provided via data-binding (usually a string) to a boolean.
|
|
7
7
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Type describing the allowed values for a number input
|
|
3
3
|
* @ignore
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type NumberInput = string | number | null | undefined;
|
|
6
6
|
/**
|
|
7
7
|
* Coerces a value provided via data-binding (usually a string) to a number.
|
|
8
8
|
*/
|