@i-cell/ids-angular 0.1.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 +24 -0
- package/accordion/accordion-animations.d.ts +1 -0
- package/accordion/accordion-defaults.d.ts +18 -0
- package/accordion/accordion-item/accordion-item.component.d.ts +27 -0
- package/accordion/accordion.component.d.ts +29 -0
- package/accordion/index.d.ts +5 -0
- package/accordion/public-api.d.ts +5 -0
- package/accordion/types/accordion-appearance.type.d.ts +5 -0
- package/avatar/avatar-defaults.d.ts +12 -0
- package/avatar/avatar-image.directive.d.ts +5 -0
- package/avatar/avatar.component.d.ts +28 -0
- package/avatar/index.d.ts +5 -0
- package/avatar/public-api.d.ts +6 -0
- package/avatar/tokens/avatar-parent.d.ts +6 -0
- package/avatar/types/avatar-type.type.d.ts +6 -0
- package/avatar/types/avatar-variant.type.d.ts +8 -0
- package/button/button-defaults.d.ts +11 -0
- package/button/button-group-defaults.d.ts +7 -0
- package/button/button-group.component.d.ts +11 -0
- package/button/button.component.d.ts +23 -0
- package/button/index.d.ts +5 -0
- package/button/public-api.d.ts +7 -0
- package/button/tokens/button-parent.d.ts +6 -0
- package/button/types/button-appearance.type.d.ts +6 -0
- package/button/types/button-variant.type.d.ts +14 -0
- package/card/card-body.directive.d.ts +6 -0
- package/card/card-defaults.d.ts +12 -0
- package/card/card-footer.directive.d.ts +6 -0
- package/card/card-header.component.d.ts +6 -0
- package/card/card-media.directive.d.ts +7 -0
- package/card/card-section-base.directive.d.ts +9 -0
- package/card/card-subtitle.directive.d.ts +5 -0
- package/card/card-title.directive.d.ts +5 -0
- package/card/card.component.d.ts +21 -0
- package/card/index.d.ts +5 -0
- package/card/public-api.d.ts +10 -0
- package/card/types/card-appearances.type.d.ts +6 -0
- package/card/types/card-variant.type.d.ts +13 -0
- package/checkbox/checkbox-defaults.d.ts +9 -0
- package/checkbox/checkbox-group-defaults.d.ts +9 -0
- package/checkbox/checkbox-group.component.d.ts +28 -0
- package/checkbox/checkbox.component.d.ts +68 -0
- package/checkbox/index.d.ts +5 -0
- package/checkbox/public-api.d.ts +7 -0
- package/checkbox/types/checkbox-events.class.d.ts +6 -0
- package/checkbox/types/checkbox-group-child.d.ts +7 -0
- package/checkbox/types/checkbox-parent.d.ts +8 -0
- package/checkbox/types/checkbox-state.type.d.ts +6 -0
- package/checkbox/types/checkbox-variant.type.d.ts +6 -0
- package/chip/chip-defaults.d.ts +12 -0
- package/chip/chip-group-defaults.d.ts +9 -0
- package/chip/chip-group.component.d.ts +14 -0
- package/chip/chip.component.d.ts +35 -0
- package/chip/index.d.ts +5 -0
- package/chip/public-api.d.ts +7 -0
- package/chip/types/chip-appearance.type.d.ts +5 -0
- package/chip/types/chip-events.type.d.ts +4 -0
- package/chip/types/chip-variant.type.d.ts +8 -0
- package/core/base-classes/component-base.d.ts +13 -0
- package/core/base-classes/directive-base.d.ts +16 -0
- package/core/directives/detect-scrollable.directive.d.ts +11 -0
- package/core/index.d.ts +5 -0
- package/core/pipes/sentence-case.pipe.d.ts +7 -0
- package/core/public-api.d.ts +17 -0
- package/core/services/resize-observer.service.d.ts +13 -0
- package/core/types/orientation.type.d.ts +5 -0
- package/core/types/position.type.d.ts +39 -0
- package/core/types/size-collection.type.d.ts +5 -0
- package/core/types/size.type.d.ts +7 -0
- package/core/utils/class-prefix.d.ts +2 -0
- package/core/utils/class.d.ts +2 -0
- package/core/utils/coercion.d.ts +6 -0
- package/core/utils/compare.d.ts +1 -0
- package/core/utils/date.d.ts +1 -0
- package/core/utils/even-odd.d.ts +2 -0
- package/core/utils/fallback-value.d.ts +1 -0
- package/core/utils/string.d.ts +1 -0
- package/dialog/custom-dialog-base.d.ts +15 -0
- package/dialog/dialog-defaults.d.ts +9 -0
- package/dialog/dialog-header.directive.d.ts +7 -0
- package/dialog/dialog.component.d.ts +22 -0
- package/dialog/dialog.service.d.ts +17 -0
- package/dialog/index.d.ts +5 -0
- package/dialog/public-api.d.ts +5 -0
- package/divider/divider-defaults.d.ts +12 -0
- package/divider/divider.component.d.ts +18 -0
- package/divider/index.d.ts +5 -0
- package/divider/public-api.d.ts +3 -0
- package/divider/types/divider-variant.type.d.ts +13 -0
- package/fesm2022/i-cell-ids-angular-accordion.mjs +223 -0
- package/fesm2022/i-cell-ids-angular-accordion.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-avatar.mjs +125 -0
- package/fesm2022/i-cell-ids-angular-avatar.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-button.mjs +117 -0
- package/fesm2022/i-cell-ids-angular-button.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-card.mjs +222 -0
- package/fesm2022/i-cell-ids-angular-card.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-checkbox.mjs +346 -0
- package/fesm2022/i-cell-ids-angular-checkbox.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-chip.mjs +166 -0
- package/fesm2022/i-cell-ids-angular-chip.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-core.mjs +266 -0
- package/fesm2022/i-cell-ids-angular-core.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-dialog.mjs +157 -0
- package/fesm2022/i-cell-ids-angular-dialog.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-divider.mjs +76 -0
- package/fesm2022/i-cell-ids-angular-divider.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-forms.mjs +871 -0
- package/fesm2022/i-cell-ids-angular-forms.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-icon-button.mjs +81 -0
- package/fesm2022/i-cell-ids-angular-icon-button.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-icon.mjs +149 -0
- package/fesm2022/i-cell-ids-angular-icon.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-menu.mjs +108 -0
- package/fesm2022/i-cell-ids-angular-menu.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-notification.mjs +167 -0
- package/fesm2022/i-cell-ids-angular-notification.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-overlay-panel.mjs +72 -0
- package/fesm2022/i-cell-ids-angular-overlay-panel.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-paginator.mjs +319 -0
- package/fesm2022/i-cell-ids-angular-paginator.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-radio.mjs +312 -0
- package/fesm2022/i-cell-ids-angular-radio.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-segmented-control-toggle.mjs +264 -0
- package/fesm2022/i-cell-ids-angular-segmented-control-toggle.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-segmented-control.mjs +283 -0
- package/fesm2022/i-cell-ids-angular-segmented-control.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-select.mjs +550 -0
- package/fesm2022/i-cell-ids-angular-select.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-snackbar.mjs +440 -0
- package/fesm2022/i-cell-ids-angular-snackbar.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-switch.mjs +181 -0
- package/fesm2022/i-cell-ids-angular-switch.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-tab.mjs +141 -0
- package/fesm2022/i-cell-ids-angular-tab.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-table.mjs +663 -0
- package/fesm2022/i-cell-ids-angular-table.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-tag.mjs +116 -0
- package/fesm2022/i-cell-ids-angular-tag.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-tooltip.mjs +587 -0
- package/fesm2022/i-cell-ids-angular-tooltip.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular.mjs +9 -0
- package/fesm2022/i-cell-ids-angular.mjs.map +1 -0
- package/forms/common/error/error-state.d.ts +23 -0
- package/forms/common/success/success-state.d.ts +23 -0
- package/forms/components/fieldset/fieldset-defaults.d.ts +9 -0
- package/forms/components/fieldset/fieldset-message.directive.d.ts +5 -0
- package/forms/components/fieldset/fieldset-row/fieldset-row.component.d.ts +8 -0
- package/forms/components/fieldset/fieldset.component.d.ts +16 -0
- package/forms/components/form-field/form-field-control.d.ts +21 -0
- package/forms/components/form-field/form-field-defaults.d.ts +9 -0
- package/forms/components/form-field/form-field.component.d.ts +41 -0
- package/forms/components/form-field/tokens/form-field-control.d.ts +3 -0
- package/forms/components/form-field/types/form-field-variant.type.d.ts +5 -0
- package/forms/components/input/input-defaults.d.ts +9 -0
- package/forms/components/input/input.directive.d.ts +55 -0
- package/forms/components/input/types/input.type.d.ts +1 -0
- package/forms/components/message/error-message/error-message.component.d.ts +15 -0
- package/forms/components/message/hint-message/hint-message.component.d.ts +10 -0
- package/forms/components/message/message-defaults.d.ts +9 -0
- package/forms/components/message/success-message/success-message.component.d.ts +11 -0
- package/forms/components/message/types/message-parent-form-field.d.ts +9 -0
- package/forms/components/message/types/message-variant.type.d.ts +6 -0
- package/forms/components/message/types/message.type.d.ts +6 -0
- package/forms/components/option/option-group.component.d.ts +13 -0
- package/forms/components/option/option.component.d.ts +47 -0
- package/forms/components/option/tokens/option-group.d.ts +3 -0
- package/forms/components/option/tokens/option-parent.d.ts +11 -0
- package/forms/components/option/types/option-events.class.d.ts +7 -0
- package/forms/components/pseudo-checkbox/pseudo-checkbox.component.d.ts +14 -0
- package/forms/components/pseudo-checkbox/tokens/pseudo-checkbox-parent.d.ts +7 -0
- package/forms/components/pseudo-checkbox/types/pseudo-checkbox-state.type.d.ts +6 -0
- package/forms/directives/form-field-action.directive.d.ts +5 -0
- package/forms/directives/label.directive.d.ts +5 -0
- package/forms/directives/message-prefix.directive.d.ts +5 -0
- package/forms/directives/message-suffix.directive.d.ts +5 -0
- package/forms/directives/message.directive.d.ts +17 -0
- package/forms/directives/prefix.directive.d.ts +7 -0
- package/forms/directives/suffix.directive.d.ts +7 -0
- package/forms/index.d.ts +5 -0
- package/forms/public-api.d.ts +35 -0
- package/forms/validators.d.ts +9 -0
- package/icon/icon-defaults.d.ts +11 -0
- package/icon/icon.component.d.ts +32 -0
- package/icon/index.d.ts +5 -0
- package/icon/public-api.d.ts +5 -0
- package/icon/tokens/icon-parent.d.ts +6 -0
- package/icon/types/icon-source.type.d.ts +5 -0
- package/icon/types/icon-variant.type.d.ts +12 -0
- package/icon-button/icon-button-defaults.d.ts +11 -0
- package/icon-button/icon-button.component.d.ts +22 -0
- package/icon-button/index.d.ts +5 -0
- package/icon-button/public-api.d.ts +5 -0
- package/icon-button/tokens/icon-button-parent.d.ts +9 -0
- package/icon-button/types/icon-button-appearance.type.d.ts +6 -0
- package/icon-button/types/icon-button-variant.type.d.ts +13 -0
- package/index.d.ts +5 -0
- package/menu/action-menu/action-menu-trigger.directive.d.ts +12 -0
- package/menu/index.d.ts +5 -0
- package/menu/menu-item/menu-item-defaults.d.ts +11 -0
- package/menu/menu-item/menu-item.component.d.ts +23 -0
- package/menu/menu-item/types/menu-item-appearance.type.d.ts +5 -0
- package/menu/menu-item/types/menu-item-variant.type.d.ts +4 -0
- package/menu/public-api.d.ts +5 -0
- package/notification/index.d.ts +5 -0
- package/notification/notification-action-button.directive.d.ts +5 -0
- package/notification/notification-defaults.d.ts +15 -0
- package/notification/notification.component.d.ts +34 -0
- package/notification/public-api.d.ts +5 -0
- package/notification/types/notification-appearance.type.d.ts +5 -0
- package/notification/types/notification-variant.type.d.ts +10 -0
- package/overlay-panel/index.d.ts +5 -0
- package/overlay-panel/overlay-panel-defaults.d.ts +11 -0
- package/overlay-panel/overlay-panel.component.d.ts +18 -0
- package/overlay-panel/public-api.d.ts +4 -0
- package/overlay-panel/types/overlay-panel-appearance.type.d.ts +6 -0
- package/overlay-panel/types/overlay-panel-variant.type.d.ts +5 -0
- package/package.json +153 -0
- package/paginator/index.d.ts +5 -0
- package/paginator/paginator-defaults.d.ts +22 -0
- package/paginator/paginator-intl.d.ts +24 -0
- package/paginator/paginator.component.d.ts +67 -0
- package/paginator/public-api.d.ts +5 -0
- package/paginator/types/paginator-appearance.type.d.ts +4 -0
- package/paginator/types/paginator-events.class.d.ts +6 -0
- package/paginator/types/paginator-variant.type.d.ts +7 -0
- package/public-api.d.ts +2 -0
- package/radio/index.d.ts +5 -0
- package/radio/public-api.d.ts +5 -0
- package/radio/radio-defaults.d.ts +11 -0
- package/radio/radio-group.directive.d.ts +46 -0
- package/radio/radio.component.d.ts +30 -0
- package/radio/types/radio-events.class.d.ts +6 -0
- package/radio/types/radio-variant.type.d.ts +6 -0
- package/segmented-control/index.d.ts +5 -0
- package/segmented-control/public-api.d.ts +6 -0
- package/segmented-control/segmented-control-defaults.d.ts +11 -0
- package/segmented-control/segmented-control-item.component.d.ts +33 -0
- package/segmented-control/segmented-control.directive.d.ts +42 -0
- package/segmented-control/types/segmented-control-appearance.type.d.ts +4 -0
- package/segmented-control/types/segmented-control-item-change.class.d.ts +7 -0
- package/segmented-control/types/segmented-control-variant.type.d.ts +6 -0
- package/segmented-control-toggle/index.d.ts +5 -0
- package/segmented-control-toggle/public-api.d.ts +6 -0
- package/segmented-control-toggle/segmented-control-toggle-defaults.d.ts +12 -0
- package/segmented-control-toggle/segmented-control-toggle-item.component.d.ts +32 -0
- package/segmented-control-toggle/segmented-control-toggle.directive.d.ts +43 -0
- package/segmented-control-toggle/types/segmented-control-toggle-appearance.type.d.ts +5 -0
- package/segmented-control-toggle/types/segmented-control-toggle-item-change.class.d.ts +6 -0
- package/segmented-control-toggle/types/segmented-control-toggle-variant.type.d.ts +11 -0
- package/select/index.d.ts +5 -0
- package/select/public-api.d.ts +3 -0
- package/select/select-defaults.d.ts +9 -0
- package/select/select-positions.d.ts +2 -0
- package/select/select-trigger.directive.d.ts +5 -0
- package/select/select.component.d.ts +102 -0
- package/snackbar/animations.d.ts +2 -0
- package/snackbar/index.d.ts +5 -0
- package/snackbar/public-api.d.ts +7 -0
- package/snackbar/services/snackbar.service.d.ts +28 -0
- package/snackbar/snackbar-defaults.d.ts +16 -0
- package/snackbar/snackbar-group.component.d.ts +25 -0
- package/snackbar/snackbar-position-strategies.d.ts +4 -0
- package/snackbar/snackbar.component.d.ts +51 -0
- package/snackbar/types/snackbar-data.type.d.ts +15 -0
- package/snackbar/types/snackbar-inner-data.type.d.ts +4 -0
- package/snackbar/types/snackbar-position.type.d.ts +9 -0
- package/snackbar/types/snackbar-variant.type.d.ts +8 -0
- package/switch/index.d.ts +5 -0
- package/switch/public-api.d.ts +5 -0
- package/switch/switch-animations.d.ts +2 -0
- package/switch/switch-defaults.d.ts +13 -0
- package/switch/switch-group.component.d.ts +14 -0
- package/switch/switch.component.d.ts +45 -0
- package/switch/types/switch-positions.type.d.ts +10 -0
- package/switch/types/switch-variant.type.d.ts +6 -0
- package/tab/index.d.ts +5 -0
- package/tab/public-api.d.ts +6 -0
- package/tab/tab-group-defaults.d.ts +15 -0
- package/tab/tab-group.component.d.ts +29 -0
- package/tab/tab.component.d.ts +18 -0
- package/tab/types/tab-group-position.type.d.ts +6 -0
- package/tab/types/tab-group-variant.type.d.ts +6 -0
- package/tab/types/tab-indicator-position.type.d.ts +7 -0
- package/table/components/cell-content/cell-content.component.d.ts +25 -0
- package/table/datasource/server-side-datasource.d.ts +37 -0
- package/table/directives/cell-renderer.d.ts +13 -0
- package/table/directives/cell-template.d.ts +8 -0
- package/table/directives/row-info-holder.d.ts +9 -0
- package/table/index.d.ts +5 -0
- package/table/public-api.d.ts +18 -0
- package/table/table-defaults.d.ts +22 -0
- package/table/table-intl.d.ts +25 -0
- package/table/table.component.d.ts +142 -0
- package/table/types/pagination-params.d.ts +9 -0
- package/table/types/request-factory.d.ts +5 -0
- package/table/types/request-pagination-data.d.ts +6 -0
- package/table/types/response-data.d.ts +5 -0
- package/table/types/table-appearance.type.d.ts +6 -0
- package/table/types/table-cell-click-event.d.ts +6 -0
- package/table/types/table-column-def.d.ts +97 -0
- package/table/types/table-row-click-event.d.ts +4 -0
- package/table/types/table-row-keydown-event.d.ts +4 -0
- package/table/types/table-sort-direction.d.ts +6 -0
- package/table/types/table-sort-info.d.ts +6 -0
- package/table/types/table-variant.type.d.ts +6 -0
- package/tag/index.d.ts +5 -0
- package/tag/public-api.d.ts +6 -0
- package/tag/tag-defaults.d.ts +11 -0
- package/tag/tag-group-defaults.d.ts +9 -0
- package/tag/tag-group.component.d.ts +13 -0
- package/tag/tag.component.d.ts +23 -0
- package/tag/types/tag-appearance.type.d.ts +5 -0
- package/tag/types/tag-variant.type.d.ts +13 -0
- package/tooltip/index.d.ts +5 -0
- package/tooltip/public-api.d.ts +5 -0
- package/tooltip/tooltip-defaults.d.ts +18 -0
- package/tooltip/tooltip-position-strategies.d.ts +3 -0
- package/tooltip/tooltip.component.d.ts +31 -0
- package/tooltip/tooltip.directive.d.ts +60 -0
- package/tooltip/types/tooltip-position.type.d.ts +11 -0
- package/tooltip/types/tooltip-variant.type.d.ts +5 -0
- package/tooltip/types/tooltip.type.d.ts +2 -0
- package/tooltip/utils/tooltip-converters.d.ts +3 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const IdsTabIndicatorPosition: {
|
|
2
|
+
readonly TOP: "top";
|
|
3
|
+
readonly BOTTOM: "bottom";
|
|
4
|
+
readonly LEFT: "left";
|
|
5
|
+
readonly RIGHT: "right";
|
|
6
|
+
};
|
|
7
|
+
export type IdsTabIndicatorPositionType = (typeof IdsTabIndicatorPosition)[keyof typeof IdsTabIndicatorPosition];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IdsTableCellRenderer } from '../../directives/cell-renderer';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* This component handles the rendering of a table cell based on the column definition and row data using internal or external cell renderer
|
|
6
|
+
* templates or components.
|
|
7
|
+
*/
|
|
8
|
+
export declare class IdsCellContentComponent<D> extends IdsTableCellRenderer<D> {
|
|
9
|
+
private _elementRef;
|
|
10
|
+
private _intl;
|
|
11
|
+
private _isHeader;
|
|
12
|
+
private _numberFormat;
|
|
13
|
+
externalCellTemplates: import("@angular/core").InputSignal<Map<string, TemplateRef<unknown>> | undefined>;
|
|
14
|
+
private _cellRendererDef;
|
|
15
|
+
private _updateCellContent;
|
|
16
|
+
protected _cellValue: import("@angular/core").Signal<unknown>;
|
|
17
|
+
protected _stringCellValue: import("@angular/core").Signal<string>;
|
|
18
|
+
protected _numericCellValue: import("@angular/core").Signal<string>;
|
|
19
|
+
protected _cellRendererComp: import("@angular/core").Signal<import("@angular/core").Type<IdsTableCellRenderer<D>> | null>;
|
|
20
|
+
protected _cellTemplateName: import("@angular/core").Signal<string | undefined>;
|
|
21
|
+
protected _cellTemplate: import("@angular/core").Signal<TemplateRef<unknown> | null>;
|
|
22
|
+
updateValue(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdsCellContentComponent<any>, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IdsCellContentComponent<any>, "th[idsCellContent],td[idsCellContent],th[idsHeaderCellContent],td[idsHeaderCellContent]", never, { "externalCellTemplates": { "alias": "externalCellTemplates"; "required": false; "isSignal": true; }; }, {}, never, ["[colStart]", "[colEnd]"], true, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IdsTablePaginationParams } from '../types/pagination-params';
|
|
2
|
+
import { IdsTableRequestFactory } from '../types/request-factory';
|
|
3
|
+
import { IdsTableSortInfo } from '../types/table-sort-info';
|
|
4
|
+
import { DataSource } from '@angular/cdk/collections';
|
|
5
|
+
import { IdsPaginatorPageChangeEvent } from '@i-cell/ids-angular/paginator';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
export declare const DEFAULT_DATA_LOAD_DEBOUNCE_TIME = 100;
|
|
8
|
+
export declare class ServerSideDataSource<D> implements DataSource<D> {
|
|
9
|
+
private _requestFactory;
|
|
10
|
+
private _resetDataAndPagingOnError;
|
|
11
|
+
private _dataSubject;
|
|
12
|
+
private _sortSubject;
|
|
13
|
+
private _pageSubject;
|
|
14
|
+
private _pageInfoSubject;
|
|
15
|
+
private _loadDataTriggerSubject;
|
|
16
|
+
private _loadingSubject;
|
|
17
|
+
private _loadDataSubscription?;
|
|
18
|
+
data$: Observable<D[]>;
|
|
19
|
+
isLoading$: Observable<boolean>;
|
|
20
|
+
pageInfo$: Observable<IdsTablePaginationParams | null>;
|
|
21
|
+
pageIndex$: Observable<number>;
|
|
22
|
+
get data(): D[];
|
|
23
|
+
set data(value: D[]);
|
|
24
|
+
get pageInfo(): IdsTablePaginationParams | null;
|
|
25
|
+
set pageInfo(value: IdsTablePaginationParams | null);
|
|
26
|
+
get length(): number;
|
|
27
|
+
constructor(_requestFactory: IdsTableRequestFactory<D>, _resetDataAndPagingOnError?: boolean);
|
|
28
|
+
connect(): Observable<readonly D[]>;
|
|
29
|
+
disconnect(): void;
|
|
30
|
+
sort(sortInfo?: IdsTableSortInfo | null): void;
|
|
31
|
+
page(pageEvent: IdsPaginatorPageChangeEvent): void;
|
|
32
|
+
/**
|
|
33
|
+
* Loads data from specified endpoint.
|
|
34
|
+
*/
|
|
35
|
+
refreshData(): void;
|
|
36
|
+
private _initDataLoading;
|
|
37
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IdsTableColumnDef } from '../types/table-column-def';
|
|
2
|
+
import { Type } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare abstract class IdsTableCellRenderer<D> {
|
|
5
|
+
private readonly _entities;
|
|
6
|
+
cellValue: import("@angular/core").InputSignalWithTransform<string, unknown>;
|
|
7
|
+
colDef: import("@angular/core").InputSignal<IdsTableColumnDef<D>>;
|
|
8
|
+
rowData: import("@angular/core").InputSignal<D | undefined>;
|
|
9
|
+
protected _isComponentCellRenderer<C>(cellRendererDef: string | Type<C> | undefined): cellRendererDef is Type<C>;
|
|
10
|
+
protected _preSanitize(input: string): string;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdsTableCellRenderer<any>, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IdsTableCellRenderer<any>, never, never, { "cellValue": { "alias": "cellValue"; "required": false; "isSignal": true; }; "colDef": { "alias": "colDef"; "required": true; "isSignal": true; }; "rowData": { "alias": "rowData"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class IdsTableCellTemplateDirective {
|
|
4
|
+
templateName: import("@angular/core").InputSignal<string>;
|
|
5
|
+
templateRef: TemplateRef<any>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdsTableCellTemplateDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IdsTableCellTemplateDirective, "[idsCellTemplate]", never, { "templateName": { "alias": "idsCellTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class RowInfoHolderDirective<D> {
|
|
3
|
+
rowInfo: import("@angular/core").InputSignal<{
|
|
4
|
+
rowData: D;
|
|
5
|
+
index: number;
|
|
6
|
+
}>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowInfoHolderDirective<any>, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RowInfoHolderDirective<any>, "[rowInfo]", never, { "rowInfo": { "alias": "rowInfo"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
package/table/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './datasource/server-side-datasource';
|
|
2
|
+
export * from './directives/cell-renderer';
|
|
3
|
+
export * from './directives/cell-template';
|
|
4
|
+
export * from './types/pagination-params';
|
|
5
|
+
export * from './types/request-factory';
|
|
6
|
+
export * from './types/request-pagination-data';
|
|
7
|
+
export * from './types/response-data';
|
|
8
|
+
export * from './types/table-appearance.type';
|
|
9
|
+
export * from './types/table-cell-click-event';
|
|
10
|
+
export * from './types/table-column-def';
|
|
11
|
+
export * from './types/table-row-click-event';
|
|
12
|
+
export * from './types/table-row-keydown-event';
|
|
13
|
+
export * from './types/table-sort-direction';
|
|
14
|
+
export * from './types/table-sort-info';
|
|
15
|
+
export * from './types/table-variant.type';
|
|
16
|
+
export * from './table-defaults';
|
|
17
|
+
export * from './table-intl';
|
|
18
|
+
export * from './table.component';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IdsTableAppearanceType } from './types/table-appearance.type';
|
|
2
|
+
import { IdsTableVariantType } from './types/table-variant.type';
|
|
3
|
+
import { InjectionToken } from '@angular/core';
|
|
4
|
+
import { IdsSizeType } from '@i-cell/ids-angular/core';
|
|
5
|
+
export declare const DEFAULT_MASTER_DETAIL_TEMPLATE_NAME = "detail";
|
|
6
|
+
export interface IdsTableDefaultConfig {
|
|
7
|
+
appearance?: IdsTableAppearanceType;
|
|
8
|
+
size?: IdsSizeType;
|
|
9
|
+
variant?: IdsTableVariantType;
|
|
10
|
+
fixedHeader?: boolean;
|
|
11
|
+
enableSorting?: boolean;
|
|
12
|
+
masterDetail?: boolean;
|
|
13
|
+
detailTemplateName?: string;
|
|
14
|
+
detailStickyColumns?: boolean;
|
|
15
|
+
showDetailHeader?: boolean;
|
|
16
|
+
enableRowSelection?: boolean;
|
|
17
|
+
clearSelectionOnChange?: boolean;
|
|
18
|
+
noRowsToShowOverlayBelow?: boolean;
|
|
19
|
+
withBorder?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const IDS_TABLE_DEFAULT_CONFIG: InjectionToken<IdsTableDefaultConfig>;
|
|
22
|
+
export declare function IDS_TABLE_DEFAULT_CONFIG_FACTORY(): Required<IdsTableDefaultConfig>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IdsTableColumnDef } from './types/table-column-def';
|
|
2
|
+
import { IdsTableSortDirectionType } from './types/table-sort-direction';
|
|
3
|
+
import { Optional } from '@angular/core';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class IdsTableIntl<D> {
|
|
7
|
+
readonly changes: Subject<void>;
|
|
8
|
+
numberFormat: Intl.NumberFormat;
|
|
9
|
+
headerSelectorAriaLabel: string;
|
|
10
|
+
rowSelectorAriaLabel: string;
|
|
11
|
+
detailHeaderLabel: string;
|
|
12
|
+
getDetailExpandButtonAriaLabel(rowData: D): string;
|
|
13
|
+
getSortButtonAriaLabel(colDef: IdsTableColumnDef<D>, nextSortDirection: IdsTableSortDirectionType): string;
|
|
14
|
+
getColLabel(colDef: IdsTableColumnDef<D>): string;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdsTableIntl<any>, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IdsTableIntl<any>>;
|
|
17
|
+
}
|
|
18
|
+
/** @docs-private */
|
|
19
|
+
export declare function IDS_TABLE_INTL_PROVIDER_FACTORY<D>(parentIntl?: IdsTableIntl<D>): IdsTableIntl<D>;
|
|
20
|
+
/** @docs-private */
|
|
21
|
+
export declare const IDS_TABLE_INTL_PROVIDER: {
|
|
22
|
+
provide: typeof IdsTableIntl;
|
|
23
|
+
deps: Optional[][];
|
|
24
|
+
useFactory: typeof IDS_TABLE_INTL_PROVIDER_FACTORY;
|
|
25
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { IdsTableDefaultConfig } from './table-defaults';
|
|
2
|
+
import { IdsTableIntl } from './table-intl';
|
|
3
|
+
import { IdsTableAppearanceType } from './types/table-appearance.type';
|
|
4
|
+
import { IdsTableCellClickEvent } from './types/table-cell-click-event';
|
|
5
|
+
import { IdsTableColumnDef } from './types/table-column-def';
|
|
6
|
+
import { IdsTableRowClickEvent } from './types/table-row-click-event';
|
|
7
|
+
import { IdsTableRowKeydownEvent } from './types/table-row-keydown-event';
|
|
8
|
+
import { IdsTableSortDirectionType } from './types/table-sort-direction';
|
|
9
|
+
import { IdsTableSortInfo } from './types/table-sort-info';
|
|
10
|
+
import { IdsTableVariantType } from './types/table-variant.type';
|
|
11
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
12
|
+
import { CdkTableDataSourceInput } from '@angular/cdk/table';
|
|
13
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
14
|
+
import { ComponentBaseWithDefaults, IdsSizeType } from '@i-cell/ids-angular/core';
|
|
15
|
+
import { IdsIconButtonAppearanceType, IdsIconButtonParent, IdsIconButtonVariantType } from '@i-cell/ids-angular/icon-button';
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export declare class IdsTableComponent<D> extends ComponentBaseWithDefaults<IdsTableDefaultConfig> implements IdsIconButtonParent, OnInit {
|
|
18
|
+
private readonly _sortDirections;
|
|
19
|
+
protected readonly _appearanceZebra: "zebra";
|
|
20
|
+
protected readonly _defaultMasterDetailTemplateName = "detail";
|
|
21
|
+
protected readonly _defaultConfig: Required<IdsTableDefaultConfig>;
|
|
22
|
+
private _cdRef;
|
|
23
|
+
protected _intl: IdsTableIntl<any>;
|
|
24
|
+
private _viewCellTemplates;
|
|
25
|
+
private _rowDataHolders;
|
|
26
|
+
private _selectorCheckboxes;
|
|
27
|
+
private _cellContentRenderers;
|
|
28
|
+
private _contentCellTemplates;
|
|
29
|
+
columnDefs: import("@angular/core").InputSignal<IdsTableColumnDef<D>[]>;
|
|
30
|
+
dataSource: import("@angular/core").InputSignal<CdkTableDataSourceInput<D>>;
|
|
31
|
+
/** Flag to have sticky header. */
|
|
32
|
+
fixedHeader: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
33
|
+
/** Enable sorting feature */
|
|
34
|
+
enableSorting: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
35
|
+
/** Enable master-detail rows */
|
|
36
|
+
masterDetail: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
37
|
+
/** Name of the detail row renderer template */
|
|
38
|
+
detailTemplateName: import("@angular/core").InputSignal<string>;
|
|
39
|
+
/** If true the detail cell will not span sticky and stickyEnd columns. If false the detail cell will span the table's full width */
|
|
40
|
+
detailStickyColumns: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
41
|
+
/** Whether to show the master-detail column label or not. */
|
|
42
|
+
showDetailHeader: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
43
|
+
/** Predicate function to decide whether a data row has details or not */
|
|
44
|
+
hasDetailRow: import("@angular/core").InputSignal<(index: number, data: D) => boolean>;
|
|
45
|
+
/** Enable row selection feature */
|
|
46
|
+
enableRowSelection: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
47
|
+
/** Clear row selection if the table's content changes */
|
|
48
|
+
clearSelectionOnChange: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
49
|
+
/** Predicate function to decide whether a row can be selected or not */
|
|
50
|
+
isRowSelectable: import("@angular/core").InputSignal<(index: number, data: D) => boolean>;
|
|
51
|
+
/** Render "no rows to show" overlay below the table instead of as a row */
|
|
52
|
+
noRowsToShowOverlayBelow: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
53
|
+
/** Whether to show a border around the table or not. */
|
|
54
|
+
withBorder: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
55
|
+
/**
|
|
56
|
+
* The table's appearance type. Availabla options:
|
|
57
|
+
* - "line-division": row backgrounds are uniformly colored and divided by thin border lines
|
|
58
|
+
* - "zebra": the backgrounds of even and odd rows are different colors
|
|
59
|
+
* - "plain": row backgrounds are uniformly colored without border lines
|
|
60
|
+
*/
|
|
61
|
+
appearance: import("@angular/core").InputSignal<IdsTableAppearanceType>;
|
|
62
|
+
/** The size type of the table. Affects paddings, margins, gaps, typography, etc. */
|
|
63
|
+
size: import("@angular/core").InputSignal<IdsSizeType>;
|
|
64
|
+
/** The color variant of the table. Availabla options: "primary", "secondary", "surface" */
|
|
65
|
+
variant: import("@angular/core").InputSignal<IdsTableVariantType>;
|
|
66
|
+
/** Emits if the column sorting has changed */
|
|
67
|
+
sortChange: import("@angular/core").OutputEmitterRef<IdsTableSortInfo | null>;
|
|
68
|
+
/** Emits if the user clicked a cell */
|
|
69
|
+
cellClick: import("@angular/core").OutputEmitterRef<IdsTableCellClickEvent<D>>;
|
|
70
|
+
/** Emits if the user clicked a row */
|
|
71
|
+
rowClick: import("@angular/core").OutputEmitterRef<IdsTableRowClickEvent<D>>;
|
|
72
|
+
/** Emits if the user hits a key while a row is in focus */
|
|
73
|
+
rowKeydown: import("@angular/core").OutputEmitterRef<IdsTableRowKeydownEvent<D>>;
|
|
74
|
+
/** Emits if the table's contents have changed */
|
|
75
|
+
contentChanged: import("@angular/core").OutputEmitterRef<void>;
|
|
76
|
+
embeddedIconButtonVariant: import("@angular/core").Signal<IdsIconButtonVariantType>;
|
|
77
|
+
embeddedIconButtonAppearance: import("@angular/core").WritableSignal<IdsIconButtonAppearanceType>;
|
|
78
|
+
disabled: import("@angular/core").WritableSignal<boolean>;
|
|
79
|
+
/** Signal that holds the current table contents as an array of objects */
|
|
80
|
+
rowData: import("@angular/core").Signal<D[]>;
|
|
81
|
+
/** The row selection model for the table */
|
|
82
|
+
rowSelection: SelectionModel<D>;
|
|
83
|
+
protected _expandedRows: Set<D>;
|
|
84
|
+
protected _allRowsExpanded: import("@angular/core").WritableSignal<boolean>;
|
|
85
|
+
protected _sortState: import("@angular/core").WritableSignal<IdsTableSortInfo | null>;
|
|
86
|
+
protected get _hostName(): string;
|
|
87
|
+
protected _hostClasses: import("@angular/core").Signal<string>;
|
|
88
|
+
protected _actualColumns: import("@angular/core").Signal<string[]>;
|
|
89
|
+
protected _hiddenColumns: import("@angular/core").Signal<{
|
|
90
|
+
visible: boolean;
|
|
91
|
+
id: string;
|
|
92
|
+
label?: string;
|
|
93
|
+
field?: string;
|
|
94
|
+
value?: ((rowData: D) => unknown) | undefined;
|
|
95
|
+
headerCellRenderer?: string | import("@angular/core").Type<import("@i-cell/ids-angular/table").IdsTableCellRenderer<D>> | undefined;
|
|
96
|
+
cellRenderer?: string | import("@angular/core").Type<import("@i-cell/ids-angular/table").IdsTableCellRenderer<D>> | undefined;
|
|
97
|
+
hideable?: boolean;
|
|
98
|
+
sortable?: boolean;
|
|
99
|
+
orderName?: string;
|
|
100
|
+
sticky?: boolean;
|
|
101
|
+
stickyEnd?: boolean;
|
|
102
|
+
identifier?: boolean;
|
|
103
|
+
columnClasses?: string;
|
|
104
|
+
cellClasses?: string;
|
|
105
|
+
}[]>;
|
|
106
|
+
protected _detailRowTemplates: import("@angular/core").Signal<string[]>;
|
|
107
|
+
protected _detailColSpan: import("@angular/core").Signal<number>;
|
|
108
|
+
protected _cellTemplatesByName: import("@angular/core").Signal<Map<string, TemplateRef<unknown>>>;
|
|
109
|
+
protected _defaulDetailTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
110
|
+
protected _detailTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
111
|
+
protected _hasNoRows: import("@angular/core").Signal<boolean>;
|
|
112
|
+
protected _masterDetailEnabled: import("@angular/core").Signal<boolean>;
|
|
113
|
+
protected _unselectableRows: import("@angular/core").Signal<Set<D>>;
|
|
114
|
+
private _rowSelectorCheckboxes;
|
|
115
|
+
private _selectableRowData;
|
|
116
|
+
private _rowSelectionChange;
|
|
117
|
+
protected _isAllSelected: import("@angular/core").Signal<boolean>;
|
|
118
|
+
protected _isSelectAllDisabled: import("@angular/core").Signal<boolean>;
|
|
119
|
+
ngOnInit(): void;
|
|
120
|
+
/**
|
|
121
|
+
* Open up all row details.
|
|
122
|
+
*/
|
|
123
|
+
expandAll(): void;
|
|
124
|
+
/**
|
|
125
|
+
* Closes all opened row details.
|
|
126
|
+
*/
|
|
127
|
+
collapseAll(): void;
|
|
128
|
+
/**
|
|
129
|
+
* Refresh rendered cell values. Useful if for eg. the `value` getter function is not pure and the values need to be refreshed manually.
|
|
130
|
+
*/
|
|
131
|
+
updateCellContents(): void;
|
|
132
|
+
protected _tableContentChanged(): void;
|
|
133
|
+
protected _getNextSortDirectionFor(colId: string): IdsTableSortDirectionType;
|
|
134
|
+
protected _handleSortClick(colId: string): void;
|
|
135
|
+
protected _handleCellClick(event: MouseEvent, rowData: D, colDef: IdsTableColumnDef<D>): void;
|
|
136
|
+
protected _handleRowClick(event: MouseEvent, rowData: D): void;
|
|
137
|
+
protected _handleRowKeyDown(event: KeyboardEvent, rowData: D): void;
|
|
138
|
+
protected _handleMasterDetailClick(rowData: D): void;
|
|
139
|
+
protected _masterToggle(): void;
|
|
140
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdsTableComponent<any>, never>;
|
|
141
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IdsTableComponent<any>, "ids-table", ["idsTable"], { "columnDefs": { "alias": "columnDefs"; "required": true; "isSignal": true; }; "dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "fixedHeader": { "alias": "fixedHeader"; "required": false; "isSignal": true; }; "enableSorting": { "alias": "enableSorting"; "required": false; "isSignal": true; }; "masterDetail": { "alias": "masterDetail"; "required": false; "isSignal": true; }; "detailTemplateName": { "alias": "detailTemplateName"; "required": false; "isSignal": true; }; "detailStickyColumns": { "alias": "detailStickyColumns"; "required": false; "isSignal": true; }; "showDetailHeader": { "alias": "showDetailHeader"; "required": false; "isSignal": true; }; "hasDetailRow": { "alias": "hasDetailRow"; "required": false; "isSignal": true; }; "enableRowSelection": { "alias": "enableRowSelection"; "required": false; "isSignal": true; }; "clearSelectionOnChange": { "alias": "clearSelectionOnChange"; "required": false; "isSignal": true; }; "isRowSelectable": { "alias": "isRowSelectable"; "required": false; "isSignal": true; }; "noRowsToShowOverlayBelow": { "alias": "noRowsToShowOverlayBelow"; "required": false; "isSignal": true; }; "withBorder": { "alias": "withBorder"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "sortChange": "sortChange"; "cellClick": "cellClick"; "rowClick": "rowClick"; "rowKeydown": "rowKeydown"; "contentChanged": "contentChanged"; }, ["_contentCellTemplates"], ["[idsNoRowsToShow]", "[idsTableCaption]"], true, never>;
|
|
142
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface IdsTablePaginationParams {
|
|
2
|
+
/** The total number of items in the result list */
|
|
3
|
+
totalRows: number;
|
|
4
|
+
/** The highest page index number */
|
|
5
|
+
/** The number of items per page */
|
|
6
|
+
rows: number;
|
|
7
|
+
/** The index number of the current page */
|
|
8
|
+
page: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IdsTableRequestPaginationData } from './request-pagination-data';
|
|
2
|
+
import { IdsTableResponseData } from './response-data';
|
|
3
|
+
import { IdsTableSortInfo } from './table-sort-info';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
export type IdsTableRequestFactory<D> = (paginationData: IdsTableRequestPaginationData | null, sortInfo: IdsTableSortInfo | null) => Observable<IdsTableResponseData<D>>;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { IdsTableCellRenderer } from '../directives/cell-renderer';
|
|
2
|
+
import { Type } from '@angular/core';
|
|
3
|
+
/**
|
|
4
|
+
* Column definition type for the i-DS table component.
|
|
5
|
+
*/
|
|
6
|
+
export type IdsTableColumnDef<D> = {
|
|
7
|
+
/**
|
|
8
|
+
* Unique column identifier literal (mandatory).
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* Column label displayed in the header cell. If no label is provided a custom cell renderer is needed to display a proper column header.
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the data model object property to display in the column's cell.
|
|
17
|
+
*/
|
|
18
|
+
field?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Value getter function called by a cell renderer, provides the value to be displayed in the cell.
|
|
21
|
+
*/
|
|
22
|
+
value?: ((rowData: D) => unknown);
|
|
23
|
+
/**
|
|
24
|
+
* The header cell's renderer either built-in or external template or component.
|
|
25
|
+
* Currently the following built-in renderers are available:
|
|
26
|
+
* - 'strong': the label is displayed in a <strong> tag,
|
|
27
|
+
* - 'numeric': the label is displayed in a localized number format,
|
|
28
|
+
* - 'icon': IDS Font ligature displayes as an icon
|
|
29
|
+
* If no renderer is provided or the given literal does not match any of the built-in or external cell renderer names, the cell's value is displayed as a plain string.
|
|
30
|
+
*
|
|
31
|
+
* Both renderer types get references to the row data, the column definition and a calculated cell value.
|
|
32
|
+
* A component renderer gets these through its inputs (see {@link IdsTableCellRenderer}), while a template renderer through its context:
|
|
33
|
+
* row data is implicit, `colData` provides the column metadata, `cellValue` provides the cell's value, eg.:
|
|
34
|
+
* ```html
|
|
35
|
+
* <span *idsCellTemplate="'myTemplate'; let row">{{ row.myProp }}</span>
|
|
36
|
+
*
|
|
37
|
+
* <!-- or -->
|
|
38
|
+
*
|
|
39
|
+
* <ng-template let-colData="colData" let-value="cellValue" idsCellTemplate="myTemplate2">
|
|
40
|
+
* <span>Value of {{ colData.field }} is: {{ value }}</span>
|
|
41
|
+
* </ng-template>
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
headerCellRenderer?: string | Type<IdsTableCellRenderer<D>>;
|
|
45
|
+
/**
|
|
46
|
+
* The data cells' renderer, either built-in or external template or component.
|
|
47
|
+
* Currently the following built-in renderers are available:
|
|
48
|
+
* - 'strong': the label is displayed in a <strong> tag,
|
|
49
|
+
* - 'numeric': the label is displayed in a localized number format,
|
|
50
|
+
* - 'icon': IDS Font ligature displayes as an icon
|
|
51
|
+
* If no renderer is provided or the given literal does not match any of the built-in or external cell renderer names, the cell's value is displayed as a plain string.
|
|
52
|
+
*
|
|
53
|
+
* Both renderer types get references to the row data, the column definition and a calculated cell value.
|
|
54
|
+
* A component renderer gets these through its inputs (see {@link IdsTableCellRenderer}), while a template renderer through its context:
|
|
55
|
+
* row data is implicit, `colData` provides the column metadata, `cellValue` provides the cell's value, eg.:
|
|
56
|
+
* ```html
|
|
57
|
+
* <span *idsCellTemplate="'myTemplate'; let row">{{ row.myProp }}</span>
|
|
58
|
+
*
|
|
59
|
+
* <!-- or -->
|
|
60
|
+
*
|
|
61
|
+
* <ng-template let-colData="colData" let-value="cellValue" idsCellTemplate="myTemplate2">
|
|
62
|
+
* <span>Value of {{ colData.field }} is: {{ value }}</span>
|
|
63
|
+
* </ng-template>
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
cellRenderer?: string | Type<IdsTableCellRenderer<D>>;
|
|
67
|
+
/**
|
|
68
|
+
* Defines if the column is hideable (column visibility feature coming soon...).
|
|
69
|
+
*/
|
|
70
|
+
hideable?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Defines if the column is visible. If used with hideable, the column will be in the column menu unchecked.
|
|
73
|
+
*/
|
|
74
|
+
visible?: boolean;
|
|
75
|
+
sortable?: boolean;
|
|
76
|
+
orderName?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Defines if the column should be sticky at the begining of the table.
|
|
79
|
+
*/
|
|
80
|
+
sticky?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Defines if the column should be sticky at the end of the table.
|
|
83
|
+
*/
|
|
84
|
+
stickyEnd?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Defines if the cell should render as header for a11y reasons.
|
|
87
|
+
*/
|
|
88
|
+
identifier?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Defines custom `CSS` class for the column it self.
|
|
91
|
+
*/
|
|
92
|
+
columnClasses?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Defines custom `CSS` class for the column cells.
|
|
95
|
+
*/
|
|
96
|
+
cellClasses?: string;
|
|
97
|
+
};
|
package/tag/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IdsTagAppearanceType } from './types/tag-appearance.type';
|
|
2
|
+
import { IdsTagVariantType } from './types/tag-variant.type';
|
|
3
|
+
import { InjectionToken } from '@angular/core';
|
|
4
|
+
import { IdsSizeType } from '@i-cell/ids-angular/core';
|
|
5
|
+
export interface IdsTagDefaultConfig {
|
|
6
|
+
appearance?: IdsTagAppearanceType;
|
|
7
|
+
size?: IdsSizeType;
|
|
8
|
+
variant?: IdsTagVariantType;
|
|
9
|
+
}
|
|
10
|
+
export declare const IDS_TAG_DEFAULT_CONFIG: InjectionToken<IdsTagDefaultConfig>;
|
|
11
|
+
export declare function IDS_TAG_DEFAULT_CONFIG_FACTORY(): Required<IdsTagDefaultConfig>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IdsTagAppearanceType } from './types/tag-appearance.type';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import { IdsSizeType } from '@i-cell/ids-angular/core';
|
|
4
|
+
export interface IdsTagGroupDefaultConfig {
|
|
5
|
+
appearance?: IdsTagAppearanceType;
|
|
6
|
+
size?: IdsSizeType;
|
|
7
|
+
}
|
|
8
|
+
export declare const IDS_TAG_GROUP_DEFAULT_CONFIG: InjectionToken<IdsTagGroupDefaultConfig>;
|
|
9
|
+
export declare function IDS_TAG_GROUP_DEFAULT_CONFIG_FACTORY(): Required<IdsTagGroupDefaultConfig>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IdsTagGroupDefaultConfig } from './tag-group-defaults';
|
|
2
|
+
import { IdsTagAppearanceType } from './types/tag-appearance.type';
|
|
3
|
+
import { ComponentBaseWithDefaults, IdsSizeType } from '@i-cell/ids-angular/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class IdsTagGroupComponent extends ComponentBaseWithDefaults<IdsTagGroupDefaultConfig> {
|
|
6
|
+
protected get _hostName(): string;
|
|
7
|
+
protected readonly _defaultConfig: Required<IdsTagGroupDefaultConfig>;
|
|
8
|
+
appearance: import("@angular/core").InputSignal<IdsTagAppearanceType>;
|
|
9
|
+
size: import("@angular/core").InputSignal<IdsSizeType>;
|
|
10
|
+
protected _hostClasses: import("@angular/core").Signal<string>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdsTagGroupComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IdsTagGroupComponent, "ids-tag-group", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["ids-tag, a[idsTag]"], true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IdsTagDefaultConfig } from './tag-defaults';
|
|
2
|
+
import { IdsTagAppearanceType } from './types/tag-appearance.type';
|
|
3
|
+
import { IdsTagVariantType } from './types/tag-variant.type';
|
|
4
|
+
import { ComponentBaseWithDefaults, IdsSizeType } from '@i-cell/ids-angular/core';
|
|
5
|
+
import { IdsIconComponent } from '@i-cell/ids-angular/icon';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class IdsTagComponent extends ComponentBaseWithDefaults<IdsTagDefaultConfig> {
|
|
8
|
+
protected get _hostName(): string;
|
|
9
|
+
private readonly _tagGroup;
|
|
10
|
+
protected readonly _defaultConfig: Required<IdsTagDefaultConfig>;
|
|
11
|
+
private _hostElement;
|
|
12
|
+
iconLeading: import("@angular/core").Signal<readonly IdsIconComponent[]>;
|
|
13
|
+
iconTrailing: import("@angular/core").Signal<readonly IdsIconComponent[]>;
|
|
14
|
+
appearance: import("@angular/core").InputSignal<IdsTagAppearanceType>;
|
|
15
|
+
size: import("@angular/core").InputSignal<IdsSizeType>;
|
|
16
|
+
variant: import("@angular/core").InputSignal<IdsTagVariantType>;
|
|
17
|
+
private _parentOrSelfAppearance;
|
|
18
|
+
private _parentOrSelfSize;
|
|
19
|
+
protected _hostClasses: import("@angular/core").Signal<string>;
|
|
20
|
+
private get _hostType();
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdsTagComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IdsTagComponent, "ids-tag,a[idsTag]", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, ["iconLeading", "iconTrailing"], ["ids-icon[icon-leading]", "*", "ids-icon[icon-trailing]"], true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const IdsTagVariant: {
|
|
2
|
+
readonly PRIMARY: "primary";
|
|
3
|
+
readonly SECONDARY: "secondary";
|
|
4
|
+
readonly SURFACE: "surface";
|
|
5
|
+
readonly BRAND: "brand";
|
|
6
|
+
readonly LIGHT: "light";
|
|
7
|
+
readonly DARK: "dark";
|
|
8
|
+
readonly INFO: "info";
|
|
9
|
+
readonly SUCCESS: "success";
|
|
10
|
+
readonly WARNING: "warning";
|
|
11
|
+
readonly ERROR: "error";
|
|
12
|
+
};
|
|
13
|
+
export type IdsTagVariantType = (typeof IdsTagVariant)[keyof typeof IdsTagVariant];
|