@impartner/design-components 1.1.3 → 2.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 +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/esm2022/lib/pagination/pagination.module.mjs +41 -0
- 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/esm2022/lib/table/components/bulk-actions/bulk-actions.component.mjs +11 -0
- package/esm2022/lib/table/components/column-heading/column-heading.component.mjs +38 -0
- package/esm2022/lib/table/components/index.mjs +4 -0
- package/esm2022/lib/table/components/row-actions/row-actions.component.mjs +61 -0
- package/esm2022/lib/table/constants/index.mjs +3 -0
- package/esm2022/lib/table/constants/public-table.constants.mjs +2 -0
- package/esm2022/lib/table/constants/table.constants.mjs +24 -0
- package/esm2022/lib/table/containers/index.mjs +2 -0
- package/esm2022/lib/table/containers/table.component.mjs +403 -0
- package/esm2022/lib/table/directives/index.mjs +3 -0
- package/esm2022/lib/table/directives/table-inject-component.directive.mjs +46 -0
- package/esm2022/lib/table/directives/table.directive.mjs +35 -0
- package/esm2022/lib/table/enumerations/index.mjs +2 -0
- package/esm2022/lib/table/enumerations/table-column-type.mjs +21 -0
- package/esm2022/lib/table/helpers/index.mjs +2 -0
- package/esm2022/lib/table/helpers/table-theme.helper.mjs +31 -0
- package/esm2022/lib/table/index.mjs +8 -0
- package/esm2022/lib/table/interfaces/cell-renderer.interface.mjs +2 -0
- package/esm2022/lib/table/interfaces/custom-cell-renderer-components.type.mjs +2 -0
- package/esm2022/lib/table/interfaces/index.mjs +11 -0
- package/esm2022/lib/table/interfaces/sort-by-payload.interface.mjs +2 -0
- package/esm2022/lib/table/interfaces/table-cell-option.interface.mjs +2 -0
- package/esm2022/lib/table/interfaces/table-column-defs.type.mjs +2 -0
- package/esm2022/lib/table/interfaces/table-event-payload.interface.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/interfaces/table-row-item.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 +3768 -2988
- 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 +18 -3
- package/lib/pagination/pagination.module.d.ts +2 -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 +5 -0
- package/lib/table/components/column-heading/column-heading.component.d.ts +14 -0
- package/lib/table/components/index.d.ts +3 -0
- package/lib/table/components/row-actions/row-actions.component.d.ts +21 -0
- package/lib/table/constants/index.d.ts +2 -0
- package/lib/table/constants/public-table.constants.d.ts +1 -0
- package/lib/table/constants/table.constants.d.ts +10 -0
- package/lib/table/containers/index.d.ts +1 -0
- package/lib/table/containers/table.component.d.ts +133 -0
- package/lib/table/directives/index.d.ts +2 -0
- package/lib/table/directives/table-inject-component.directive.d.ts +16 -0
- package/lib/table/directives/table.directive.d.ts +15 -0
- package/lib/table/enumerations/index.d.ts +1 -0
- package/lib/table/enumerations/table-column-type.d.ts +19 -0
- package/lib/table/helpers/index.d.ts +1 -0
- package/lib/table/helpers/table-theme.helper.d.ts +7 -0
- package/lib/table/index.d.ts +7 -2
- package/lib/table/interfaces/cell-renderer.interface.d.ts +6 -0
- package/lib/table/interfaces/custom-cell-renderer-components.type.d.ts +3 -0
- package/lib/table/interfaces/index.d.ts +10 -0
- package/lib/table/interfaces/sort-by-payload.interface.d.ts +5 -0
- package/lib/table/interfaces/table-cell-option.interface.d.ts +4 -0
- package/lib/table/interfaces/table-column-defs.type.d.ts +29 -0
- package/lib/table/interfaces/table-event-payload.interface.d.ts +6 -0
- 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 +9 -0
- package/lib/table/table.module.d.ts +17 -3
- package/lib/text-highlight/text-highlight.component.d.ts +1 -1
- package/package.json +15 -20
- 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 -145
- package/esm2020/lib/pagination/pagination.module.mjs +0 -37
- package/esm2020/lib/scrollable/scrollable.component.mjs +0 -186
- package/esm2020/lib/select-icon/select-icon.component.mjs +0 -308
- package/esm2020/lib/table/index.mjs +0 -3
- package/esm2020/lib/table/table.component.mjs +0 -33
- package/esm2020/lib/table/table.module.mjs +0 -19
- package/esm2020/services/interaction.service.mjs +0 -81
- package/fesm2015/impartner-design-components.mjs +0 -8595
- package/fesm2015/impartner-design-components.mjs.map +0 -1
- package/fesm2020/impartner-design-components.mjs.map +0 -1
- package/lib/table/table.component.d.ts +0 -15
- /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/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
|
@@ -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.0",
|
|
4
4
|
"author": "Impartner",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"private": false,
|
|
@@ -12,15 +12,16 @@
|
|
|
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
|
-
"
|
|
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",
|
|
24
25
|
"sanitize-html": "^2.10.0"
|
|
25
26
|
},
|
|
26
27
|
"peerDependenciesMeta": {
|
|
@@ -28,11 +29,7 @@
|
|
|
28
29
|
"optional": true
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
|
-
"module": "
|
|
32
|
-
"es2020": "fesm2020/impartner-design-components.mjs",
|
|
33
|
-
"esm2020": "esm2020/impartner-design-components.mjs",
|
|
34
|
-
"fesm2020": "fesm2020/impartner-design-components.mjs",
|
|
35
|
-
"fesm2015": "fesm2015/impartner-design-components.mjs",
|
|
32
|
+
"module": "fesm2022/impartner-design-components.mjs",
|
|
36
33
|
"typings": "index.d.ts",
|
|
37
34
|
"exports": {
|
|
38
35
|
"./package.json": {
|
|
@@ -40,11 +37,9 @@
|
|
|
40
37
|
},
|
|
41
38
|
".": {
|
|
42
39
|
"types": "./index.d.ts",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"node": "./fesm2015/impartner-design-components.mjs",
|
|
47
|
-
"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"
|
|
48
43
|
}
|
|
49
44
|
},
|
|
50
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
|
*/
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "../../services";
|
|
4
|
-
import * as i2 from "@angular/common";
|
|
5
|
-
/**
|
|
6
|
-
* The `BackdropComponent` (`<impdc-backdrop`) is a component to mask the background when an interaction is taking place.
|
|
7
|
-
* This component needs to be added to the body of the host application if a backdrop is desired.
|
|
8
|
-
* To use, import `BackdropModule` or another module that imports and exports that module from `@impartner/design-components`.
|
|
9
|
-
*/
|
|
10
|
-
export class BackdropComponent {
|
|
11
|
-
constructor(interactionService) {
|
|
12
|
-
this.interactionService = interactionService;
|
|
13
|
-
this._valid = true;
|
|
14
|
-
}
|
|
15
|
-
get valid() {
|
|
16
|
-
return this._valid;
|
|
17
|
-
}
|
|
18
|
-
get show() {
|
|
19
|
-
return this.valid && this.interactionService.showBackdrop;
|
|
20
|
-
}
|
|
21
|
-
ngOnInit() {
|
|
22
|
-
this.interactionService.registerBackdrop(this);
|
|
23
|
-
}
|
|
24
|
-
ngOnDestroy() {
|
|
25
|
-
this.interactionService.unregisterBackdrop(this);
|
|
26
|
-
}
|
|
27
|
-
invalidate() {
|
|
28
|
-
this._valid = false;
|
|
29
|
-
}
|
|
30
|
-
validate() {
|
|
31
|
-
this._valid = true;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
BackdropComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: BackdropComponent, deps: [{ token: i1.InteractionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
-
BackdropComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: BackdropComponent, selector: "impdc-backdrop", ngImport: i0, template: "<div *ngIf=\"valid\" class=\"impdc modal-backdrop fade\" [class.show]=\"show\"></div>\n", styles: [".impdc.modal-backdrop{position:fixed;left:0;top:0;width:100vw;height:100vh;-webkit-user-select:none;user-select:none}.impdc.modal-backdrop.fade{transition:opacity .3s linear}.impdc.modal-backdrop:not(.show){height:0;opacity:0;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: BackdropComponent, decorators: [{
|
|
37
|
-
type: Component,
|
|
38
|
-
args: [{ selector: 'impdc-backdrop', template: "<div *ngIf=\"valid\" class=\"impdc modal-backdrop fade\" [class.show]=\"show\"></div>\n", styles: [".impdc.modal-backdrop{position:fixed;left:0;top:0;width:100vw;height:100vh;-webkit-user-select:none;user-select:none}.impdc.modal-backdrop.fade{transition:opacity .3s linear}.impdc.modal-backdrop:not(.show){height:0;opacity:0;pointer-events:none}\n"] }]
|
|
39
|
-
}], ctorParameters: function () { return [{ type: i1.InteractionService }]; } });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFja2Ryb3AuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGVzaWduLWNvbXBvbmVudHMvc3JjL2xpYi9iYWNrZHJvcC9iYWNrZHJvcC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kZXNpZ24tY29tcG9uZW50cy9zcmMvbGliL2JhY2tkcm9wL2JhY2tkcm9wLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQXFCLE1BQU0sZUFBZSxDQUFDOzs7O0FBRzdEOzs7O0dBSUc7QUFNSCxNQUFNLE9BQU8saUJBQWlCO0lBRzVCLFlBQW9CLGtCQUFzQztRQUF0Qyx1QkFBa0IsR0FBbEIsa0JBQWtCLENBQW9CO1FBRmxELFdBQU0sR0FBRyxJQUFJLENBQUM7SUFFdUMsQ0FBQztJQUU5RCxJQUFJLEtBQUs7UUFDUCxPQUFPLElBQUksQ0FBQyxNQUFNLENBQUM7SUFDckIsQ0FBQztJQUVELElBQUksSUFBSTtRQUNOLE9BQU8sSUFBSSxDQUFDLEtBQUssSUFBSSxJQUFJLENBQUMsa0JBQWtCLENBQUMsWUFBWSxDQUFDO0lBQzVELENBQUM7SUFFRCxRQUFRO1FBQ04sSUFBSSxDQUFDLGtCQUFrQixDQUFDLGdCQUFnQixDQUFDLElBQUksQ0FBQyxDQUFDO0lBQ2pELENBQUM7SUFFRCxXQUFXO1FBQ1QsSUFBSSxDQUFDLGtCQUFrQixDQUFDLGtCQUFrQixDQUFDLElBQUksQ0FBQyx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Theme } from '../../types';
|
|
3
|
-
import { BadgeSize } from './types';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "../icon/icon.component";
|
|
7
|
-
/**
|
|
8
|
-
* The `BadgeComponent` (`<impdc-badge` or `any impdc-badge`) displays [preferably short] text with a rounded background and themed colors.
|
|
9
|
-
* To use, import `BadgeModule` or another module that imports and exports that module from `@impartner/design-components`.
|
|
10
|
-
*/
|
|
11
|
-
export class BadgeComponent {
|
|
12
|
-
constructor() {
|
|
13
|
-
/**
|
|
14
|
-
* The text displayed in the center of the Badge.
|
|
15
|
-
*/
|
|
16
|
-
this.text = '';
|
|
17
|
-
/**
|
|
18
|
-
* An icon displayed left of the Badge text.
|
|
19
|
-
*/
|
|
20
|
-
this.icon = '';
|
|
21
|
-
/**
|
|
22
|
-
* The color theme of the Badge. This will affect both text and background colors based on allowed designs.
|
|
23
|
-
*/
|
|
24
|
-
this.theme = ComponentTheme.Primary;
|
|
25
|
-
/**
|
|
26
|
-
* The size of the Badge.
|
|
27
|
-
*/
|
|
28
|
-
this.size = BadgeSize.Default;
|
|
29
|
-
/**
|
|
30
|
-
* Allows the background of the Badge to be removed.
|
|
31
|
-
*/
|
|
32
|
-
this.hideBg = false;
|
|
33
|
-
/**
|
|
34
|
-
* This controls adding the `rounded-pill` class to the Badge.
|
|
35
|
-
*/
|
|
36
|
-
this.rounded = true;
|
|
37
|
-
/**
|
|
38
|
-
* Adds a dismiss icon to the right of the Badge text.
|
|
39
|
-
*/
|
|
40
|
-
this.dismissable = false;
|
|
41
|
-
/**
|
|
42
|
-
* An event emitted when the component is dismissed.
|
|
43
|
-
*/
|
|
44
|
-
this.dismiss = new EventEmitter();
|
|
45
|
-
this._dismissed = false;
|
|
46
|
-
}
|
|
47
|
-
get classBadge() {
|
|
48
|
-
let classes = 'badge';
|
|
49
|
-
if (this.theme) {
|
|
50
|
-
classes += ` text-${this.hideBg ? '' : 'bg-'}${this.theme}`;
|
|
51
|
-
}
|
|
52
|
-
if (this.size !== 'default') {
|
|
53
|
-
classes += ` badge-${this.size}`;
|
|
54
|
-
}
|
|
55
|
-
return classes;
|
|
56
|
-
}
|
|
57
|
-
get classBadgeRounded() {
|
|
58
|
-
return this.rounded;
|
|
59
|
-
}
|
|
60
|
-
handleDismiss(event) {
|
|
61
|
-
if (!this.dismissable) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
this._dismissed = true;
|
|
65
|
-
this.dismiss.emit(event);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
BadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
69
|
-
BadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: BadgeComponent, selector: "impdc-badge, [impdc-badge]", inputs: { text: "text", icon: "icon", theme: "theme", size: "size", hideBg: "hideBg", rounded: "rounded", dismissable: "dismissable" }, outputs: { dismiss: "dismiss" }, host: { properties: { "class": "this.classBadge", "class.rounded-pill": "this.classBadgeRounded", "hidden": "this._dismissed" } }, ngImport: i0, template: "<span *ngIf=\"icon\" impdc-icon [name]=\"icon === 'dot' ? 'circle' : icon\"></span>\n{{ text }}\n<a *ngIf=\"dismissable\" (click)=\"handleDismiss($event)\">\n <span impdc-icon name=\"times\"></span>\n</a>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "impdc-icon, [impdc-icon]", inputs: ["name", "theme", "size"] }] });
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: BadgeComponent, decorators: [{
|
|
71
|
-
type: Component,
|
|
72
|
-
args: [{ selector: 'impdc-badge, [impdc-badge]', template: "<span *ngIf=\"icon\" impdc-icon [name]=\"icon === 'dot' ? 'circle' : icon\"></span>\n{{ text }}\n<a *ngIf=\"dismissable\" (click)=\"handleDismiss($event)\">\n <span impdc-icon name=\"times\"></span>\n</a>\n" }]
|
|
73
|
-
}], propDecorators: { text: [{
|
|
74
|
-
type: Input
|
|
75
|
-
}], icon: [{
|
|
76
|
-
type: Input
|
|
77
|
-
}], theme: [{
|
|
78
|
-
type: Input
|
|
79
|
-
}], size: [{
|
|
80
|
-
type: Input
|
|
81
|
-
}], hideBg: [{
|
|
82
|
-
type: Input
|
|
83
|
-
}], rounded: [{
|
|
84
|
-
type: Input
|
|
85
|
-
}], dismissable: [{
|
|
86
|
-
type: Input
|
|
87
|
-
}], dismiss: [{
|
|
88
|
-
type: Output
|
|
89
|
-
}], classBadge: [{
|
|
90
|
-
type: HostBinding,
|
|
91
|
-
args: ['class']
|
|
92
|
-
}], classBadgeRounded: [{
|
|
93
|
-
type: HostBinding,
|
|
94
|
-
args: ['class.rounded-pill']
|
|
95
|
-
}], _dismissed: [{
|
|
96
|
-
type: HostBinding,
|
|
97
|
-
args: ['hidden']
|
|
98
|
-
}] } });
|
|
99
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFkZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGVzaWduLWNvbXBvbmVudHMvc3JjL2xpYi9iYWRnZS9iYWRnZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kZXNpZ24tY29tcG9uZW50cy9zcmMvbGliL2JhZGdlL2JhZGdlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsS0FBSyxFQUNMLE1BQU0sRUFDTixZQUFZLEVBQ1osV0FBVy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ZiAodGhpcy5zaXplICE9PSAnZGVmYXVsdCcpIHtcbiAgICAgIGNsYXNzZXMgKz0gYCBiYWRnZS0ke3RoaXMuc2l6ZX1gO1xuICAgIH1cbiAgICByZXR1cm4gY2xhc3NlcztcbiAgfVxuXG4gIEBIb3N0QmluZGluZygnY2xhc3Mucm91bmRlZC1waWxsJylcbiAgcHJpdmF0ZSBnZXQgY2xhc3NCYWRnZVJvdW5kZWQoKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRoaXMucm91bmRlZDtcbiAgfVxuXG4gIEBIb3N0QmluZGluZygnaGlkZGVuJylcbiAgcHJpdmF0ZSBfZGlzbWlzc2VkID0gZmFsc2U7XG5cbiAgaGFuZGxlRGlzbWlzcyhldmVudDogTW91c2VFdmVudCB8IEV2ZW50KTogdm9pZCB7XG4gICAgaWYgKCF0aGlzLmRpc21pc3NhYmxlKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIHRoaXMuX2Rpc21pc3NlZCA9IHRydWU7XG4gICAgdGhpcy5kaXNtaXNzLmVtaXQoZXZlbnQpO1xuICB9XG59XG4iLCI8c3BhbiAqbmdJZj1cImljb25cIiBpbXBkYy1pY29uIFtuYW1lXT1cImljb24gPT09ICdkb3QnID8gJ2NpcmNsZScgOiBpY29uXCI+PC9zcGFuPlxue3sgdGV4dCB9fVxuPGEgKm5nSWY9XCJkaXNtaXNzYWJsZVwiIChjbGljayk9XCJoYW5kbGVEaXNtaXNzKCRldmVudClcIj5cbiAgPHNwYW4gaW1wZGMtaWNvbiBuYW1lPVwidGltZXNcIj48L3NwYW4+XG48L2E+XG4iXX0=
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter, ViewEncapsulation, HostBinding } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "../icon/icon.component";
|
|
5
|
-
/**
|
|
6
|
-
* The `CardHeadingComponent` (`<impdc-data-card` or `<any impdc-data-card`) is to display data snapshots with support for
|
|
7
|
-
* previous values and differences.
|
|
8
|
-
* To use, import `DataCardModule` or another module that imports and exports that module from `@impartner/design-components`.
|
|
9
|
-
*/
|
|
10
|
-
export class DataCardComponent {
|
|
11
|
-
constructor() {
|
|
12
|
-
/**
|
|
13
|
-
* The subject text for the Data Card.
|
|
14
|
-
*/
|
|
15
|
-
this.title = '';
|
|
16
|
-
/**
|
|
17
|
-
* The current data value. Any number/currency format is supported.
|
|
18
|
-
*/
|
|
19
|
-
this.current = '0';
|
|
20
|
-
/**
|
|
21
|
-
* The previous data value. Any number/currency format is supported.
|
|
22
|
-
*/
|
|
23
|
-
this.previous = '';
|
|
24
|
-
/**
|
|
25
|
-
* The difference between the current and previous values. A numerical or percentage value is preferred,
|
|
26
|
-
* but any number/currency format is supported.
|
|
27
|
-
*/
|
|
28
|
-
this.difference = '';
|
|
29
|
-
/**
|
|
30
|
-
* Text for the link at the bottom of the Data Card. If provided, enables the `linkClicked` event to be emitted.
|
|
31
|
-
*/
|
|
32
|
-
this.linkText = '';
|
|
33
|
-
/**
|
|
34
|
-
* When stacking multiple Data Card elements together, it's common to combine their borders.
|
|
35
|
-
*/
|
|
36
|
-
this.sharedBorders = true;
|
|
37
|
-
/**
|
|
38
|
-
* Makes the title stand out more than it does by default.
|
|
39
|
-
*/
|
|
40
|
-
// @Input()
|
|
41
|
-
this.titleAttention = false;
|
|
42
|
-
/**
|
|
43
|
-
* Determines if the difference value will be wrapped in a `rounded-pill`.
|
|
44
|
-
*/
|
|
45
|
-
this.differencePill = false;
|
|
46
|
-
/**
|
|
47
|
-
* Changes the text color for the current value.
|
|
48
|
-
*/
|
|
49
|
-
this.currentColor = '';
|
|
50
|
-
/**
|
|
51
|
-
* Changes the color of the icon.
|
|
52
|
-
*/
|
|
53
|
-
this.iconColor = '';
|
|
54
|
-
/**
|
|
55
|
-
* Changes the color of the icon's background.
|
|
56
|
-
*/
|
|
57
|
-
this.iconBgColor = '';
|
|
58
|
-
/**
|
|
59
|
-
* Emitted when the link text is clicked.
|
|
60
|
-
*/
|
|
61
|
-
this.linkClicked = new EventEmitter();
|
|
62
|
-
/**
|
|
63
|
-
* Emitted when the corner content is clicked.
|
|
64
|
-
*/
|
|
65
|
-
this.cornerClicked = new EventEmitter();
|
|
66
|
-
}
|
|
67
|
-
get classDataCard() {
|
|
68
|
-
return 'card impdc-data-card';
|
|
69
|
-
}
|
|
70
|
-
get classDataCardSharedBorders() {
|
|
71
|
-
return this.sharedBorders;
|
|
72
|
-
}
|
|
73
|
-
get differenceNumber() {
|
|
74
|
-
return Number(this.difference.replace(/[^0-9\.-]+/g, ''));
|
|
75
|
-
}
|
|
76
|
-
get differenceNegative() {
|
|
77
|
-
return this.differenceNumber < 0;
|
|
78
|
-
}
|
|
79
|
-
get differencePositive() {
|
|
80
|
-
return this.differenceNumber > 0;
|
|
81
|
-
}
|
|
82
|
-
get differenceDisplay() {
|
|
83
|
-
return this.difference.replace('-', '');
|
|
84
|
-
}
|
|
85
|
-
handleLinkClick(event) {
|
|
86
|
-
this.linkClicked.emit(event);
|
|
87
|
-
}
|
|
88
|
-
handleCornerClick(event) {
|
|
89
|
-
this.cornerClicked.emit(event);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
DataCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DataCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
93
|
-
DataCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DataCardComponent, selector: "impdc-data-card, [impdc-data-card]", inputs: { title: "title", current: "current", previous: "previous", difference: "difference", linkText: "linkText", sharedBorders: "sharedBorders", differencePill: "differencePill", currentColor: "currentColor", iconColor: "iconColor", iconBgColor: "iconBgColor" }, outputs: { linkClicked: "linkClicked", cornerClicked: "cornerClicked" }, host: { properties: { "class": "this.classDataCard", "class.impdc-data-card-shared-borders": "this.classDataCardSharedBorders" } }, ngImport: i0, template: "<div class=\"card-body impdc-data-card-body\">\n <div\n #iconContentEl\n class=\"impdc-data-card-icon\"\n [style.color]=\"iconColor ? iconColor : undefined\"\n [style.background-color]=\"iconBgColor ? iconBgColor : undefined\"\n [class.hide]=\"!iconContentEl.children.length\">\n <ng-content select=\"[icon]\"></ng-content>\n </div>\n <div class=\"impdc-data-card-container\">\n <div class=\"impdc-data-card-title\" [class.title-attention]=\"titleAttention\">\n {{ title }}\n </div>\n <div class=\"impdc-data-card-data\">\n <ng-content></ng-content>\n <span\n *ngIf=\"current\"\n class=\"data-current\"\n [class.data-current-enlarged]=\"\n !iconContentEl.children.length && !previous && !difference\n \"\n [style.color]=\"currentColor ? currentColor : undefined\"\n [innerText]=\"current\"></span>\n <span class=\"data-other\">\n <span\n *ngIf=\"previous\"\n class=\"data-previous\"\n [innerText]=\"previous\"></span>\n <span\n *ngIf=\"difference\"\n class=\"data-difference\"\n [class.difference-negative]=\"differenceNegative\"\n [class.difference-positive]=\"differencePositive\"\n [class.badge]=\"differencePill\"\n [class.rounded-pill]=\"differencePill\">\n <span *ngIf=\"differenceNegative\" impdc-icon name=\"arrow-down\"></span>\n <span *ngIf=\"differencePositive\" impdc-icon name=\"arrow-up\"></span>\n <span class=\"difference-display\">{{ differenceDisplay }}</span>\n </span>\n </span>\n </div>\n </div>\n <div\n #cornerContentEl\n class=\"impdc-data-card-corner\"\n [class.hide]=\"!cornerContentEl.children.length\"\n (click)=\"handleCornerClick($event); $event.stopPropagation()\">\n <ng-content select=\"[corner]\"></ng-content>\n </div>\n</div>\n<div\n class=\"card-footer impdc-data-card-footer\"\n [class.hide]=\"!linkText && !footerContentEl.children.length\">\n <div #footerContentEl [class.hide]=\"!footerContentEl.children.length\">\n <ng-content select=\"[footer]\"></ng-content>\n </div>\n <a\n *ngIf=\"linkText\"\n class=\"footer-link\"\n (click)=\"handleLinkClick($event); $event.stopPropagation()\"\n >{{ linkText }}</a\n >\n</div>\n", styles: [".hide{display:none}.impdc-data-card{overflow-x:hidden;border:0;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f;border-radius:8px}.impdc-data-card.impdc-data-card-shared-borders:first-child:not(:last-child){border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.impdc-data-card.impdc-data-card-shared-borders:last-child:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.impdc-data-card.impdc-data-card-shared-borders:not(:first-child):not(:last-child){border-right:0;border-radius:0}.impdc-data-card-body{position:relative;display:flex;align-items:center;gap:20px;padding:24px}.impdc-data-card-icon{display:flex;align-items:center;justify-content:center;padding:12px;background-color:#01606d;color:#fff;border-radius:6px}.impdc-data-card-icon .fa,.impdc-data-card-icon .fa-brands,.impdc-data-card-icon .fa-duotone,.impdc-data-card-icon .fa-light,.impdc-data-card-icon .fa-regular,.impdc-data-card-icon .fa-solid,.impdc-data-card-icon .fa-thin,.impdc-data-card-icon .fab,.impdc-data-card-icon .fad,.impdc-data-card-icon .fal,.impdc-data-card-icon .far,.impdc-data-card-icon .fas,.impdc-data-card-icon .fat,.impdc-data-card-icon svg{display:flex;align-items:center;justify-content:center;height:24px;width:24px;font-size:18px;line-height:24px}.impdc-data-card-icon.hide{display:none}.impdc-data-card-container{display:flex;flex-direction:column;min-width:50px}.impdc-data-card-title{color:#6b7280;font-size:14px;line-height:20px;font-weight:500;min-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.impdc-data-card-title.title-attention{color:#161e2e;font-size:16px;line-height:24px;font-weight:400}.impdc-data-card-data{display:flex;flex-wrap:wrap;align-items:end;min-width:0}.impdc-data-card-data .data-current{color:#161e2e;font-size:24px;line-height:32px;font-weight:600;min-width:75px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:8px}.impdc-data-card-data .data-current.data-current-enlarged{font-size:30px;line-height:36px}.impdc-data-card-data .data-other{display:inline-flex;justify-content:space-between;align-items:end;min-width:50px}.impdc-data-card-data .data-previous{min-width:0;color:#6b7280;font-size:14px;line-height:20px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:13px}.impdc-data-card-data .data-difference{display:inline-flex;align-items:center;gap:5px;color:#6b7280;font-size:14px;line-height:20px;font-weight:500}.impdc-data-card-data .data-difference.difference-negative{color:#e02424}.impdc-data-card-data .data-difference.difference-negative.badge{background-color:#fde8e8}.impdc-data-card-data .data-difference.difference-positive{color:#057a55}.impdc-data-card-data .data-difference.difference-positive.badge{background-color:#def7ec}.impdc-data-card-data .data-difference.rounded-pill{padding:4px 10px;border-radius:12px!important}.impdc-data-card-corner{position:absolute;top:0;right:0;margin:1rem;line-height:14px;color:#374151}.impdc-data-card-corner .fa,.impdc-data-card-corner .fa-brands,.impdc-data-card-corner .fa-duotone,.impdc-data-card-corner .fa-light,.impdc-data-card-corner .fa-regular,.impdc-data-card-corner .fa-solid,.impdc-data-card-corner .fa-thin,.impdc-data-card-corner .fab,.impdc-data-card-corner .fad,.impdc-data-card-corner .fal,.impdc-data-card-corner .far,.impdc-data-card-corner .fas,.impdc-data-card-corner .fat,.impdc-data-card-corner svg{height:14px;line-height:14px}.impdc-data-card-corner.hide{display:none}.impdc-data-card-footer{display:flex;align-items:center;padding:16px;background-color:#f9fafb}.impdc-data-card-footer.card-footer{border-top:0}.impdc-data-card-footer.hide{display:none}.impdc-data-card-footer .footer-link{color:#01606d;font-weight:500;font-size:14px;line-height:20px}.impdc-data-card-footer .footer-link:hover{color:#19a8c1}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "impdc-icon, [impdc-icon]", inputs: ["name", "theme", "size"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
94
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DataCardComponent, decorators: [{
|
|
95
|
-
type: Component,
|
|
96
|
-
args: [{ selector: 'impdc-data-card, [impdc-data-card]', encapsulation: ViewEncapsulation.None, template: "<div class=\"card-body impdc-data-card-body\">\n <div\n #iconContentEl\n class=\"impdc-data-card-icon\"\n [style.color]=\"iconColor ? iconColor : undefined\"\n [style.background-color]=\"iconBgColor ? iconBgColor : undefined\"\n [class.hide]=\"!iconContentEl.children.length\">\n <ng-content select=\"[icon]\"></ng-content>\n </div>\n <div class=\"impdc-data-card-container\">\n <div class=\"impdc-data-card-title\" [class.title-attention]=\"titleAttention\">\n {{ title }}\n </div>\n <div class=\"impdc-data-card-data\">\n <ng-content></ng-content>\n <span\n *ngIf=\"current\"\n class=\"data-current\"\n [class.data-current-enlarged]=\"\n !iconContentEl.children.length && !previous && !difference\n \"\n [style.color]=\"currentColor ? currentColor : undefined\"\n [innerText]=\"current\"></span>\n <span class=\"data-other\">\n <span\n *ngIf=\"previous\"\n class=\"data-previous\"\n [innerText]=\"previous\"></span>\n <span\n *ngIf=\"difference\"\n class=\"data-difference\"\n [class.difference-negative]=\"differenceNegative\"\n [class.difference-positive]=\"differencePositive\"\n [class.badge]=\"differencePill\"\n [class.rounded-pill]=\"differencePill\">\n <span *ngIf=\"differenceNegative\" impdc-icon name=\"arrow-down\"></span>\n <span *ngIf=\"differencePositive\" impdc-icon name=\"arrow-up\"></span>\n <span class=\"difference-display\">{{ differenceDisplay }}</span>\n </span>\n </span>\n </div>\n </div>\n <div\n #cornerContentEl\n class=\"impdc-data-card-corner\"\n [class.hide]=\"!cornerContentEl.children.length\"\n (click)=\"handleCornerClick($event); $event.stopPropagation()\">\n <ng-content select=\"[corner]\"></ng-content>\n </div>\n</div>\n<div\n class=\"card-footer impdc-data-card-footer\"\n [class.hide]=\"!linkText && !footerContentEl.children.length\">\n <div #footerContentEl [class.hide]=\"!footerContentEl.children.length\">\n <ng-content select=\"[footer]\"></ng-content>\n </div>\n <a\n *ngIf=\"linkText\"\n class=\"footer-link\"\n (click)=\"handleLinkClick($event); $event.stopPropagation()\"\n >{{ linkText }}</a\n >\n</div>\n", styles: [".hide{display:none}.impdc-data-card{overflow-x:hidden;border:0;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f;border-radius:8px}.impdc-data-card.impdc-data-card-shared-borders:first-child:not(:last-child){border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.impdc-data-card.impdc-data-card-shared-borders:last-child:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.impdc-data-card.impdc-data-card-shared-borders:not(:first-child):not(:last-child){border-right:0;border-radius:0}.impdc-data-card-body{position:relative;display:flex;align-items:center;gap:20px;padding:24px}.impdc-data-card-icon{display:flex;align-items:center;justify-content:center;padding:12px;background-color:#01606d;color:#fff;border-radius:6px}.impdc-data-card-icon .fa,.impdc-data-card-icon .fa-brands,.impdc-data-card-icon .fa-duotone,.impdc-data-card-icon .fa-light,.impdc-data-card-icon .fa-regular,.impdc-data-card-icon .fa-solid,.impdc-data-card-icon .fa-thin,.impdc-data-card-icon .fab,.impdc-data-card-icon .fad,.impdc-data-card-icon .fal,.impdc-data-card-icon .far,.impdc-data-card-icon .fas,.impdc-data-card-icon .fat,.impdc-data-card-icon svg{display:flex;align-items:center;justify-content:center;height:24px;width:24px;font-size:18px;line-height:24px}.impdc-data-card-icon.hide{display:none}.impdc-data-card-container{display:flex;flex-direction:column;min-width:50px}.impdc-data-card-title{color:#6b7280;font-size:14px;line-height:20px;font-weight:500;min-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.impdc-data-card-title.title-attention{color:#161e2e;font-size:16px;line-height:24px;font-weight:400}.impdc-data-card-data{display:flex;flex-wrap:wrap;align-items:end;min-width:0}.impdc-data-card-data .data-current{color:#161e2e;font-size:24px;line-height:32px;font-weight:600;min-width:75px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:8px}.impdc-data-card-data .data-current.data-current-enlarged{font-size:30px;line-height:36px}.impdc-data-card-data .data-other{display:inline-flex;justify-content:space-between;align-items:end;min-width:50px}.impdc-data-card-data .data-previous{min-width:0;color:#6b7280;font-size:14px;line-height:20px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:13px}.impdc-data-card-data .data-difference{display:inline-flex;align-items:center;gap:5px;color:#6b7280;font-size:14px;line-height:20px;font-weight:500}.impdc-data-card-data .data-difference.difference-negative{color:#e02424}.impdc-data-card-data .data-difference.difference-negative.badge{background-color:#fde8e8}.impdc-data-card-data .data-difference.difference-positive{color:#057a55}.impdc-data-card-data .data-difference.difference-positive.badge{background-color:#def7ec}.impdc-data-card-data .data-difference.rounded-pill{padding:4px 10px;border-radius:12px!important}.impdc-data-card-corner{position:absolute;top:0;right:0;margin:1rem;line-height:14px;color:#374151}.impdc-data-card-corner .fa,.impdc-data-card-corner .fa-brands,.impdc-data-card-corner .fa-duotone,.impdc-data-card-corner .fa-light,.impdc-data-card-corner .fa-regular,.impdc-data-card-corner .fa-solid,.impdc-data-card-corner .fa-thin,.impdc-data-card-corner .fab,.impdc-data-card-corner .fad,.impdc-data-card-corner .fal,.impdc-data-card-corner .far,.impdc-data-card-corner .fas,.impdc-data-card-corner .fat,.impdc-data-card-corner svg{height:14px;line-height:14px}.impdc-data-card-corner.hide{display:none}.impdc-data-card-footer{display:flex;align-items:center;padding:16px;background-color:#f9fafb}.impdc-data-card-footer.card-footer{border-top:0}.impdc-data-card-footer.hide{display:none}.impdc-data-card-footer .footer-link{color:#01606d;font-weight:500;font-size:14px;line-height:20px}.impdc-data-card-footer .footer-link:hover{color:#19a8c1}\n"] }]
|
|
97
|
-
}], propDecorators: { title: [{
|
|
98
|
-
type: Input
|
|
99
|
-
}], current: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}], previous: [{
|
|
102
|
-
type: Input
|
|
103
|
-
}], difference: [{
|
|
104
|
-
type: Input
|
|
105
|
-
}], linkText: [{
|
|
106
|
-
type: Input
|
|
107
|
-
}], sharedBorders: [{
|
|
108
|
-
type: Input
|
|
109
|
-
}], differencePill: [{
|
|
110
|
-
type: Input
|
|
111
|
-
}], currentColor: [{
|
|
112
|
-
type: Input
|
|
113
|
-
}], iconColor: [{
|
|
114
|
-
type: Input
|
|
115
|
-
}], iconBgColor: [{
|
|
116
|
-
type: Input
|
|
117
|
-
}], linkClicked: [{
|
|
118
|
-
type: Output
|
|
119
|
-
}], cornerClicked: [{
|
|
120
|
-
type: Output
|
|
121
|
-
}], classDataCard: [{
|
|
122
|
-
type: HostBinding,
|
|
123
|
-
args: ['class']
|
|
124
|
-
}], classDataCardSharedBorders: [{
|
|
125
|
-
type: HostBinding,
|
|
126
|
-
args: ['class.impdc-data-card-shared-borders']
|
|
127
|
-
}] } });
|
|
128
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1jYXJkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Rlc2lnbi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1jYXJkL2RhdGEtY2FyZC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kZXNpZ24tY29tcG9uZW50cy9zcmMvbGliL2RhdGEtY2FyZC9kYXRhLWNhcmQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBQ0wsTUFBTSxFQUNOLFlBQVksRUFDWixpQkFBaUIsRUFDakIsV0FBVyxFQUNaLE1BQU0sZUFBZSxDQUFDOzs7O0FBRXZCOzs7O0dBSUc7QUFPSCxNQUFNLE9BQU8saUJBQWlCO0lBTjlCO1FBT0U7O1dBRUc7UUFFSCxVQUFLLEdBQUcsRUFBRSxDQUFDO1FBRVg7O1dBRUc7UUFFSCxZQUFPLEdBQUcsR0FBRyxDQUFDO1FBRWQ7O1dBRUc7UUFFSCxhQUFRLEdBQUcsRUFBRSxDQUFDO1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Q29ybmVyQ2xpY2soJGV2ZW50KTsgJGV2ZW50LnN0b3BQcm9wYWdhdGlvbigpXCI+XG4gICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiW2Nvcm5lcl1cIj48L25nLWNvbnRlbnQ+XG4gIDwvZGl2PlxuPC9kaXY+XG48ZGl2XG4gIGNsYXNzPVwiY2FyZC1mb290ZXIgaW1wZGMtZGF0YS1jYXJkLWZvb3RlclwiXG4gIFtjbGFzcy5oaWRlXT1cIiFsaW5rVGV4dCAmJiAhZm9vdGVyQ29udGVudEVsLmNoaWxkcmVuLmxlbmd0aFwiPlxuICA8ZGl2ICNmb290ZXJDb250ZW50RWwgW2NsYXNzLmhpZGVdPVwiIWZvb3RlckNvbnRlbnRFbC5jaGlsZHJlbi5sZW5ndGhcIj5cbiAgICA8bmctY29udGVudCBzZWxlY3Q9XCJbZm9vdGVyXVwiPjwvbmctY29udGVudD5cbiAgPC9kaXY+XG4gIDxhXG4gICAgKm5nSWY9XCJsaW5rVGV4dFwiXG4gICAgY2xhc3M9XCJmb290ZXItbGlua1wiXG4gICAgKGNsaWNrKT1cImhhbmRsZUxpbmtDbGljaygkZXZlbnQpOyAkZXZlbnQuc3RvcFByb3BhZ2F0aW9uKClcIlxuICAgID57eyBsaW5rVGV4dCB9fTwvYVxuICA+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { DataCardComponent } from './data-card.component';
|
|
4
|
-
import { IconModule } from '../icon';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class DataCardModule {
|
|
7
|
-
constructor() { }
|
|
8
|
-
}
|
|
9
|
-
DataCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DataCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
-
DataCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DataCardModule, declarations: [DataCardComponent], imports: [CommonModule, IconModule], exports: [IconModule, DataCardComponent] });
|
|
11
|
-
DataCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DataCardModule, imports: [CommonModule, IconModule, IconModule] });
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DataCardModule, decorators: [{
|
|
13
|
-
type: NgModule,
|
|
14
|
-
args: [{
|
|
15
|
-
imports: [CommonModule, IconModule],
|
|
16
|
-
declarations: [DataCardComponent],
|
|
17
|
-
exports: [IconModule, DataCardComponent]
|
|
18
|
-
}]
|
|
19
|
-
}], ctorParameters: function () { return []; } });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1jYXJkLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Rlc2lnbi1jb21wb25lbnRzL3NyYy9saWIvZGF0YS1jYXJkL2RhdGEtY2FyZC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDMUQsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLFNBQVMsQ0FBQzs7QUFPckMsTUFBTSxPQUFPLGNBQWM7SUFDekIsZ0JBQWUsQ0FBQzs7NEdBREwsY0FBYzs2R0FBZCxjQUFjLGlCQUhWLGlCQUFpQixhQUR0QixZQ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