@mozaic-ds/angular 2.1.9 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/mozaic-ds-angular.mjs +1733 -293
- package/fesm2022/mozaic-ds-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/types/mozaic-ds-angular.d.ts +527 -9
package/package.json
CHANGED
|
@@ -2079,13 +2079,6 @@ declare class DrawerContainerComponent {
|
|
|
2079
2079
|
readonly portalOutlet: _angular_core.Signal<CdkPortalOutlet | undefined>;
|
|
2080
2080
|
footerTpl: TemplateRef<void> | null;
|
|
2081
2081
|
private componentRef;
|
|
2082
|
-
readonly classes: _angular_core.Signal<{
|
|
2083
|
-
[x: string]: boolean;
|
|
2084
|
-
'mc-drawer': boolean;
|
|
2085
|
-
'is-open': boolean;
|
|
2086
|
-
'mc-drawer--extend': boolean;
|
|
2087
|
-
}>;
|
|
2088
|
-
readonly dialogClasses: _angular_core.Signal<string>;
|
|
2089
2082
|
readonly ariaModal: _angular_core.Signal<"true" | "false">;
|
|
2090
2083
|
attachComponent<C>(component: Type<C>): ComponentRef<C>;
|
|
2091
2084
|
registerFooter(tpl: TemplateRef<void>): void;
|
|
@@ -2824,5 +2817,530 @@ declare class MozTreeNodeComponent<T = unknown> {
|
|
|
2824
2817
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MozTreeNodeComponent<any>, "moz-tree-node", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "depth": { "alias": "depth"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "indentSize": { "alias": "indentSize"; "required": false; "isSignal": true; }; "nodeTemplate": { "alias": "nodeTemplate"; "required": false; "isSignal": true; }; "nodeTemplates": { "alias": "nodeTemplates"; "required": false; "isSignal": true; }; "loadChildren": { "alias": "loadChildren"; "required": false; "isSignal": true; }; "ancestors": { "alias": "ancestors"; "required": false; "isSignal": true; }; "flat": { "alias": "flat"; "required": false; "isSignal": true; }; "noResultText": { "alias": "noResultText"; "required": false; "isSignal": true; }; }, { "expandChange": "expandChange"; "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
2825
2818
|
}
|
|
2826
2819
|
|
|
2827
|
-
|
|
2828
|
-
|
|
2820
|
+
/**
|
|
2821
|
+
* Models for the Mozaic DataTable component.
|
|
2822
|
+
* Angular port of `@mozaic-ds/datatable-vue`.
|
|
2823
|
+
*/
|
|
2824
|
+
type MozDataTableSortDirection = 'ASC' | 'DESC' | null;
|
|
2825
|
+
type MozDataTableSortMode = 'single' | 'multiple';
|
|
2826
|
+
type MozDataTableSize = 's' | 'm' | 'l';
|
|
2827
|
+
type MozDataTableCellType = 'button' | 'checkbox' | 'expand' | 'icon' | 'input' | 'number' | 'multiline' | 'options' | 'picture';
|
|
2828
|
+
interface MozDataTableSort {
|
|
2829
|
+
/** The `value` of the sorted column */
|
|
2830
|
+
column: string;
|
|
2831
|
+
direction?: MozDataTableSortDirection;
|
|
2832
|
+
/** Additional data merged into the sort payload (see `additionalProps` on columns) */
|
|
2833
|
+
[key: string]: unknown;
|
|
2834
|
+
}
|
|
2835
|
+
interface MozDataTableHeader {
|
|
2836
|
+
/** Header cell label */
|
|
2837
|
+
label: string;
|
|
2838
|
+
/** The key of the item whose content will be displayed in the cells of the column */
|
|
2839
|
+
value: string;
|
|
2840
|
+
/** Visually defines the column as sortable by displaying the sort button */
|
|
2841
|
+
sortable?: boolean;
|
|
2842
|
+
/** Defines sort order on component loading */
|
|
2843
|
+
sortDirectionDefault?: MozDataTableSortDirection;
|
|
2844
|
+
/** Adds an identical CSS class to all the cells of the column */
|
|
2845
|
+
class?: string;
|
|
2846
|
+
/** Allows you to define the type of content that will be inserted in the cells */
|
|
2847
|
+
type?: MozDataTableCellType;
|
|
2848
|
+
/** Additional data merged into the payload emitted when sorting this column */
|
|
2849
|
+
additionalProps?: Record<string, unknown>;
|
|
2850
|
+
/** Misc */
|
|
2851
|
+
e2eSelector?: string;
|
|
2852
|
+
}
|
|
2853
|
+
type MozDataTablePageSizeOption = {
|
|
2854
|
+
text: string;
|
|
2855
|
+
value: string;
|
|
2856
|
+
};
|
|
2857
|
+
interface MozDataTableUpdatePayload {
|
|
2858
|
+
sort?: MozDataTableSort | null;
|
|
2859
|
+
sortMultiple?: MozDataTableSort[];
|
|
2860
|
+
size: number;
|
|
2861
|
+
page: number;
|
|
2862
|
+
}
|
|
2863
|
+
interface MozDataTableRowEvent<T = Record<string, unknown>> {
|
|
2864
|
+
data: T;
|
|
2865
|
+
index: number;
|
|
2866
|
+
}
|
|
2867
|
+
interface MozDataTableRowsEvent<T = Record<string, unknown>> {
|
|
2868
|
+
data: T[];
|
|
2869
|
+
}
|
|
2870
|
+
interface MozDataTableAccessibilityLabels {
|
|
2871
|
+
paginationAriaLabel?: string;
|
|
2872
|
+
checkboxAriaLabel?: string;
|
|
2873
|
+
expandButtonLabel?: string;
|
|
2874
|
+
}
|
|
2875
|
+
/** Context of the templates provided through `mozDataTableCell` and `mozDataTableExpand` */
|
|
2876
|
+
interface MozDataTableCellContext<T = Record<string, unknown>> {
|
|
2877
|
+
$implicit: T;
|
|
2878
|
+
item: T;
|
|
2879
|
+
index: number;
|
|
2880
|
+
rowIndex: number;
|
|
2881
|
+
}
|
|
2882
|
+
/** Context of the templates provided through `mozDataTableHeader` */
|
|
2883
|
+
interface MozDataTableHeaderContext {
|
|
2884
|
+
$implicit: MozDataTableHeader;
|
|
2885
|
+
header: MozDataTableHeader;
|
|
2886
|
+
}
|
|
2887
|
+
declare const MOZ_DATATABLE_DEFAULT_PAGE_SIZES: number[];
|
|
2888
|
+
|
|
2889
|
+
/**
|
|
2890
|
+
* Declarative column configuration of the DataTable.
|
|
2891
|
+
* This component renders nothing by itself: it is read by `moz-datatable`
|
|
2892
|
+
* to build its headers configuration.
|
|
2893
|
+
*
|
|
2894
|
+
* Equivalent of the `MDataTableColumn` component of the Vue implementation.
|
|
2895
|
+
*/
|
|
2896
|
+
declare class MozDataTableColumnComponent {
|
|
2897
|
+
/** Header cell label */
|
|
2898
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
2899
|
+
/** Refers to a key, present in the items object, whose content will be displayed in the cells of the column */
|
|
2900
|
+
readonly value: _angular_core.InputSignal<string>;
|
|
2901
|
+
/** Allows you to define the type of content that will be inserted in the cell */
|
|
2902
|
+
readonly type: _angular_core.InputSignal<MozDataTableCellType | undefined>;
|
|
2903
|
+
/** Visually defines the column as sortable by displaying the sort button */
|
|
2904
|
+
readonly sortable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2905
|
+
/** Visually defines the default state of the sort button */
|
|
2906
|
+
readonly sortDirectionDefault: _angular_core.InputSignal<MozDataTableSortDirection>;
|
|
2907
|
+
/** Adds an identical CSS class to all the cells in the column */
|
|
2908
|
+
readonly cellClass: _angular_core.InputSignal<string>;
|
|
2909
|
+
/** Additional data merged into the payload emitted when sorting this column */
|
|
2910
|
+
readonly additionalProps: _angular_core.InputSignal<Record<string, unknown> | undefined>;
|
|
2911
|
+
/** Misc */
|
|
2912
|
+
readonly e2eSelector: _angular_core.InputSignal<string>;
|
|
2913
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableColumnComponent, never>;
|
|
2914
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MozDataTableColumnComponent, "moz-datatable-column", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "sortable": { "alias": "sortable"; "required": false; "isSignal": true; }; "sortDirectionDefault": { "alias": "sortDirectionDefault"; "required": false; "isSignal": true; }; "cellClass": { "alias": "cellClass"; "required": false; "isSignal": true; }; "additionalProps": { "alias": "additionalProps"; "required": false; "isSignal": true; }; "e2eSelector": { "alias": "e2eSelector"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
/**
|
|
2918
|
+
* Template used to replace/format the content of the cells of a column.
|
|
2919
|
+
* Equivalent of the `cell.<column>` slot of the Vue implementation.
|
|
2920
|
+
*
|
|
2921
|
+
* ```html
|
|
2922
|
+
* <ng-template mozDataTableCell="startDate" let-item>
|
|
2923
|
+
* {{ item.startDate | date }}
|
|
2924
|
+
* </ng-template>
|
|
2925
|
+
* ```
|
|
2926
|
+
*/
|
|
2927
|
+
declare class MozDataTableCellTemplateDirective<T = Record<string, unknown>> {
|
|
2928
|
+
readonly template: TemplateRef<MozDataTableCellContext<T>>;
|
|
2929
|
+
/** The `value` of the column whose cells the template applies to */
|
|
2930
|
+
readonly mozDataTableCell: _angular_core.InputSignal<string>;
|
|
2931
|
+
static ngTemplateContextGuard<T>(_dir: MozDataTableCellTemplateDirective<T>, _ctx: unknown): _ctx is MozDataTableCellContext<T>;
|
|
2932
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableCellTemplateDirective<any>, never>;
|
|
2933
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MozDataTableCellTemplateDirective<any>, "ng-template[mozDataTableCell]", never, { "mozDataTableCell": { "alias": "mozDataTableCell"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2934
|
+
}
|
|
2935
|
+
/**
|
|
2936
|
+
* Template used to replace/format the content of a header cell.
|
|
2937
|
+
* Equivalent of the `header.<column>` slot of the Vue implementation.
|
|
2938
|
+
*
|
|
2939
|
+
* ```html
|
|
2940
|
+
* <ng-template mozDataTableHeader="name" let-header>
|
|
2941
|
+
* {{ header.label }} <small>subtitle</small>
|
|
2942
|
+
* </ng-template>
|
|
2943
|
+
* ```
|
|
2944
|
+
*/
|
|
2945
|
+
declare class MozDataTableHeaderTemplateDirective {
|
|
2946
|
+
readonly template: TemplateRef<MozDataTableHeaderContext>;
|
|
2947
|
+
/** The `value` of the column whose header the template applies to */
|
|
2948
|
+
readonly mozDataTableHeader: _angular_core.InputSignal<string>;
|
|
2949
|
+
static ngTemplateContextGuard(_dir: MozDataTableHeaderTemplateDirective, _ctx: unknown): _ctx is MozDataTableHeaderContext;
|
|
2950
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableHeaderTemplateDirective, never>;
|
|
2951
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MozDataTableHeaderTemplateDirective, "ng-template[mozDataTableHeader]", never, { "mozDataTableHeader": { "alias": "mozDataTableHeader"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2952
|
+
}
|
|
2953
|
+
/**
|
|
2954
|
+
* Template inserted inside the expand row of an expandable DataTable.
|
|
2955
|
+
* Equivalent of the `expandContent` slot of the Vue implementation.
|
|
2956
|
+
*/
|
|
2957
|
+
declare class MozDataTableExpandTemplateDirective<T = Record<string, unknown>> {
|
|
2958
|
+
readonly template: TemplateRef<MozDataTableCellContext<T>>;
|
|
2959
|
+
static ngTemplateContextGuard<T>(_dir: MozDataTableExpandTemplateDirective<T>, _ctx: unknown): _ctx is MozDataTableCellContext<T>;
|
|
2960
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableExpandTemplateDirective<any>, never>;
|
|
2961
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MozDataTableExpandTemplateDirective<any>, "ng-template[mozDataTableExpand]", never, {}, {}, never, never, true, never>;
|
|
2962
|
+
}
|
|
2963
|
+
/**
|
|
2964
|
+
* Template displayed when the DataTable is empty (no data/results).
|
|
2965
|
+
* Equivalent of the `no-data` slot of the Vue implementation.
|
|
2966
|
+
*/
|
|
2967
|
+
declare class MozDataTableNoDataTemplateDirective {
|
|
2968
|
+
readonly template: TemplateRef<void>;
|
|
2969
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableNoDataTemplateDirective, never>;
|
|
2970
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MozDataTableNoDataTemplateDirective, "ng-template[mozDataTableNoData]", never, {}, {}, never, never, true, never>;
|
|
2971
|
+
}
|
|
2972
|
+
/**
|
|
2973
|
+
* Template replacing the whole content of the header row (`<tr>` of the `<thead>`).
|
|
2974
|
+
* We recommend using `th[moz-datatable-header]` cells inside this template.
|
|
2975
|
+
* Equivalent of the `headers` slot of the Vue implementation.
|
|
2976
|
+
*/
|
|
2977
|
+
declare class MozDataTableHeadersTemplateDirective {
|
|
2978
|
+
readonly template: TemplateRef<void>;
|
|
2979
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableHeadersTemplateDirective, never>;
|
|
2980
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MozDataTableHeadersTemplateDirective, "ng-template[mozDataTableHeaders]", never, {}, {}, never, never, true, never>;
|
|
2981
|
+
}
|
|
2982
|
+
/**
|
|
2983
|
+
* Template replacing the entire content of the `<tbody>` tag.
|
|
2984
|
+
* We recommend using `tr[moz-datatable-row]` / `td[moz-datatable-cell]` inside this template.
|
|
2985
|
+
* Equivalent of the `body` slot of the Vue implementation.
|
|
2986
|
+
*/
|
|
2987
|
+
declare class MozDataTableBodyTemplateDirective {
|
|
2988
|
+
readonly template: TemplateRef<void>;
|
|
2989
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableBodyTemplateDirective, never>;
|
|
2990
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MozDataTableBodyTemplateDirective, "ng-template[mozDataTableBody]", never, {}, {}, never, never, true, never>;
|
|
2991
|
+
}
|
|
2992
|
+
/**
|
|
2993
|
+
* Marks projected content replacing the built-in selection bar.
|
|
2994
|
+
* Equivalent of the `selectionbar` slot of the Vue implementation.
|
|
2995
|
+
*/
|
|
2996
|
+
declare class MozDataTableSelectionbarDirective {
|
|
2997
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableSelectionbarDirective, never>;
|
|
2998
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MozDataTableSelectionbarDirective, "[mozDataTableSelectionbar]", never, {}, {}, never, never, true, never>;
|
|
2999
|
+
}
|
|
3000
|
+
/** Marks the "edition" zone of the `moz-datatable-top` component */
|
|
3001
|
+
declare class MozDataTableTopEditionDirective {
|
|
3002
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableTopEditionDirective, never>;
|
|
3003
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MozDataTableTopEditionDirective, "[mozDataTableTopEdition]", never, {}, {}, never, never, true, never>;
|
|
3004
|
+
}
|
|
3005
|
+
/** Marks the "actions" zone of the `moz-datatable-top` component */
|
|
3006
|
+
declare class MozDataTableTopActionsDirective {
|
|
3007
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableTopActionsDirective, never>;
|
|
3008
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MozDataTableTopActionsDirective, "[mozDataTableTopActions]", never, {}, {}, never, never, true, never>;
|
|
3009
|
+
}
|
|
3010
|
+
/** Marks the "filters" zone of the `moz-datatable-top` component */
|
|
3011
|
+
declare class MozDataTableTopFiltersDirective {
|
|
3012
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableTopFiltersDirective, never>;
|
|
3013
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MozDataTableTopFiltersDirective, "[mozDataTableTopFilters]", never, {}, {}, never, never, true, never>;
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
/**
|
|
3017
|
+
* DataTable component of the ADEO Design System.
|
|
3018
|
+
* Angular port of `@mozaic-ds/datatable-vue` (`MDataTable`).
|
|
3019
|
+
*
|
|
3020
|
+
* Columns are declared either with `moz-datatable-column` elements or through
|
|
3021
|
+
* the `headers` input. Cell/header content can be customized with the
|
|
3022
|
+
* `mozDataTableCell` / `mozDataTableHeader` templates.
|
|
3023
|
+
*
|
|
3024
|
+
* ```html
|
|
3025
|
+
* <moz-datatable [items]="items">
|
|
3026
|
+
* <moz-datatable-column label="Name" value="name" sortable />
|
|
3027
|
+
* <moz-datatable-column label="Status" value="status" />
|
|
3028
|
+
* <ng-template mozDataTableCell="status" let-item>{{ item.status.code }}</ng-template>
|
|
3029
|
+
* </moz-datatable>
|
|
3030
|
+
* ```
|
|
3031
|
+
*/
|
|
3032
|
+
declare class MozDataTableComponent<T extends Record<string, unknown> = Record<string, unknown>> implements OnInit, AfterContentInit {
|
|
3033
|
+
/** An array of objects representing the data to be displayed */
|
|
3034
|
+
readonly items: _angular_core.InputSignal<T[]>;
|
|
3035
|
+
/**
|
|
3036
|
+
* An array of objects used to define the DataTable headers.
|
|
3037
|
+
* This property is mandatory if you are not using `moz-datatable-column`
|
|
3038
|
+
* elements to define your columns.
|
|
3039
|
+
*/
|
|
3040
|
+
readonly headers: _angular_core.InputSignal<MozDataTableHeader[] | undefined>;
|
|
3041
|
+
/** Displays the loading state to indicate data load is in progress */
|
|
3042
|
+
readonly loading: _angular_core.InputSignal<boolean | undefined>;
|
|
3043
|
+
/** The key used to identify each item (used for selection and row tracking) */
|
|
3044
|
+
readonly indexKey: _angular_core.InputSignal<string>;
|
|
3045
|
+
/**
|
|
3046
|
+
* Displays the pagination of the DataTable (and the component footer as a whole).
|
|
3047
|
+
* This prop must be defined with the `totalItems` prop.
|
|
3048
|
+
*/
|
|
3049
|
+
readonly pageable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3050
|
+
/**
|
|
3051
|
+
* Used to define the value of the Select "Rows per page" when the DataTable is
|
|
3052
|
+
* initialised. This value must be one of the values of `itemsPerPageOptions`.
|
|
3053
|
+
*/
|
|
3054
|
+
readonly itemsPerPage: _angular_core.InputSignal<number | undefined>;
|
|
3055
|
+
/** Used to set the desired values for the Select "Rows per page" */
|
|
3056
|
+
readonly itemsPerPageOptions: _angular_core.InputSignal<number[] | MozDataTablePageSizeOption[]>;
|
|
3057
|
+
/** Sets the default value for the Select "Pagination" */
|
|
3058
|
+
readonly currentPage: _angular_core.InputSignal<number | undefined>;
|
|
3059
|
+
/**
|
|
3060
|
+
* Used to indicate the total number of data items.
|
|
3061
|
+
* This property must be defined as soon as the `pageable` property is defined.
|
|
3062
|
+
*/
|
|
3063
|
+
readonly totalItems: _angular_core.InputSignal<number | undefined>;
|
|
3064
|
+
/** Used to define the value of the label associated with the Select "Rows per page" */
|
|
3065
|
+
readonly itemsPerPageLabel: _angular_core.InputSignal<string>;
|
|
3066
|
+
/** Replaces the preposition "of" in the footer sentence, e.g. "15-21 of 50 items" */
|
|
3067
|
+
readonly countLabel: _angular_core.InputSignal<string>;
|
|
3068
|
+
/** Replaces the text "items" in the footer sentence, e.g. "15-21 of 50 items" */
|
|
3069
|
+
readonly infoLabelItems: _angular_core.InputSignal<string>;
|
|
3070
|
+
/**
|
|
3071
|
+
* Allows to visually define the default state of a sorted column.
|
|
3072
|
+
* Works in conjunction with the `sortChange` output (`[(sort)]` two-way binding).
|
|
3073
|
+
*/
|
|
3074
|
+
readonly sort: _angular_core.InputSignal<MozDataTableSort | null | undefined>;
|
|
3075
|
+
/**
|
|
3076
|
+
* Allows to visually define the default state of one or several sorted columns.
|
|
3077
|
+
* Works in conjunction with the `sortMultipleChange` output
|
|
3078
|
+
* (`[(sortMultiple)]` two-way binding).
|
|
3079
|
+
*/
|
|
3080
|
+
readonly sortMultiple: _angular_core.InputSignal<MozDataTableSort[] | undefined>;
|
|
3081
|
+
/** Defines whether sorting is done on a single column or on multiple columns */
|
|
3082
|
+
readonly sortMode: _angular_core.InputSignal<MozDataTableSortMode>;
|
|
3083
|
+
/** Allows you to change the line size */
|
|
3084
|
+
readonly size: _angular_core.InputSignal<MozDataTableSize>;
|
|
3085
|
+
/** Hides the "XX - YY of ZZ items" indication in the footer */
|
|
3086
|
+
readonly hidePageCount: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3087
|
+
/** Used to define a maximum height for the DataTable */
|
|
3088
|
+
readonly maxHeight: _angular_core.InputSignal<string | undefined>;
|
|
3089
|
+
/** Allows you to make the header fixed. Works in conjunction with `maxHeight` */
|
|
3090
|
+
readonly fixedHeader: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3091
|
+
/** Allows you to pass the z-index for the static header */
|
|
3092
|
+
readonly zIndex: _angular_core.InputSignal<number | undefined>;
|
|
3093
|
+
/** Displays a column of checkboxes allowing rows to be selected */
|
|
3094
|
+
readonly selectable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3095
|
+
/** Displays or hides the selection bar */
|
|
3096
|
+
readonly selectionbar: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3097
|
+
/** The selected items (`[(selection)]` two-way binding) */
|
|
3098
|
+
readonly selection: _angular_core.InputSignal<T[]>;
|
|
3099
|
+
readonly labelButtonClearSelection: _angular_core.InputSignal<string>;
|
|
3100
|
+
readonly selectPage: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3101
|
+
readonly labelPageSelected: _angular_core.InputSignal<string | undefined>;
|
|
3102
|
+
readonly labelAllItemsSelected: _angular_core.InputSignal<string | undefined>;
|
|
3103
|
+
/** Defines the "all items selected" state (`[(selectAll)]` two-way binding) */
|
|
3104
|
+
readonly selectAll: _angular_core.InputSignal<boolean | undefined>;
|
|
3105
|
+
readonly labelButtonSelectAll: _angular_core.InputSignal<string | undefined>;
|
|
3106
|
+
/**
|
|
3107
|
+
* Makes rows clickable. **Caution! This prop is deprecated and will be removed soon!**
|
|
3108
|
+
* Use the `clickable` prop instead.
|
|
3109
|
+
* @deprecated
|
|
3110
|
+
*/
|
|
3111
|
+
readonly clickableRows: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3112
|
+
/** Makes rows clickable */
|
|
3113
|
+
readonly clickable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3114
|
+
/** Allows all the rows in the DataTable to be expandable */
|
|
3115
|
+
readonly expandable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3116
|
+
/** Sets the default text for the "fold/unfold" buttons. Useful for enhancing accessibility */
|
|
3117
|
+
readonly expanderAccessibleLabel: _angular_core.InputSignal<string | undefined>;
|
|
3118
|
+
/** Allows to choose the rows (indexes) on which to insert "expandable" content */
|
|
3119
|
+
readonly expandableList: _angular_core.InputSignal<(string | number)[]>;
|
|
3120
|
+
/** The key of the item used to identify expanded rows (defaults to the row index) */
|
|
3121
|
+
readonly dataKeyExpand: _angular_core.InputSignal<string | undefined>;
|
|
3122
|
+
/** Open expandable content by default */
|
|
3123
|
+
readonly showExpandableContent: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3124
|
+
/** Allows to pass identical custom CSS classes to all the rows in the table */
|
|
3125
|
+
readonly rowClass: _angular_core.InputSignal<string | string[] | Record<string, boolean> | undefined>;
|
|
3126
|
+
/** An object for passing labels to make component elements more accessible */
|
|
3127
|
+
readonly accessibilityLabels: _angular_core.InputSignal<MozDataTableAccessibilityLabels | undefined>;
|
|
3128
|
+
readonly e2eSelector: _angular_core.InputSignal<string>;
|
|
3129
|
+
/** Defines whether this is a DataTable nested within another DataTable */
|
|
3130
|
+
readonly nested: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3131
|
+
/** Emits on "Single Sort" mode, each time a click on the sort button of a column is made */
|
|
3132
|
+
readonly sortChange: _angular_core.OutputEmitterRef<MozDataTableSort>;
|
|
3133
|
+
/** Emits on "Multiple Sort" mode, each time a click on the sort button of a column is made */
|
|
3134
|
+
readonly sortMultipleChange: _angular_core.OutputEmitterRef<MozDataTableSort[]>;
|
|
3135
|
+
readonly currentPageChange: _angular_core.OutputEmitterRef<number>;
|
|
3136
|
+
readonly itemsPerPageChange: _angular_core.OutputEmitterRef<number>;
|
|
3137
|
+
/** Emits each time the sort, the page size or the current page changes */
|
|
3138
|
+
readonly changed: _angular_core.OutputEmitterRef<MozDataTableUpdatePayload>;
|
|
3139
|
+
readonly clickRow: _angular_core.OutputEmitterRef<MozDataTableRowEvent<T>>;
|
|
3140
|
+
readonly selectRow: _angular_core.OutputEmitterRef<MozDataTableRowEvent<T>>;
|
|
3141
|
+
readonly unselectRow: _angular_core.OutputEmitterRef<MozDataTableRowEvent<T>>;
|
|
3142
|
+
readonly selectAllRows: _angular_core.OutputEmitterRef<MozDataTableRowsEvent<T>>;
|
|
3143
|
+
readonly unselectAllRows: _angular_core.OutputEmitterRef<void>;
|
|
3144
|
+
readonly selectMultipleRows: _angular_core.OutputEmitterRef<MozDataTableRowsEvent<T>>;
|
|
3145
|
+
readonly unselectMultipleRows: _angular_core.OutputEmitterRef<MozDataTableRowsEvent<T>>;
|
|
3146
|
+
readonly selectPageChange: _angular_core.OutputEmitterRef<boolean>;
|
|
3147
|
+
readonly selectAllChange: _angular_core.OutputEmitterRef<boolean>;
|
|
3148
|
+
readonly selectionChange: _angular_core.OutputEmitterRef<T[]>;
|
|
3149
|
+
readonly expandRow: _angular_core.OutputEmitterRef<MozDataTableRowEvent<T>>;
|
|
3150
|
+
readonly retractRow: _angular_core.OutputEmitterRef<MozDataTableRowEvent<T>>;
|
|
3151
|
+
protected readonly columns: _angular_core.Signal<readonly MozDataTableColumnComponent[]>;
|
|
3152
|
+
protected readonly cellTemplates: _angular_core.Signal<readonly MozDataTableCellTemplateDirective<any>[]>;
|
|
3153
|
+
protected readonly headerTemplates: _angular_core.Signal<readonly MozDataTableHeaderTemplateDirective[]>;
|
|
3154
|
+
protected readonly expandTemplate: _angular_core.Signal<MozDataTableExpandTemplateDirective<any> | undefined>;
|
|
3155
|
+
protected readonly noDataTemplate: _angular_core.Signal<MozDataTableNoDataTemplateDirective | undefined>;
|
|
3156
|
+
protected readonly headersTemplate: _angular_core.Signal<MozDataTableHeadersTemplateDirective | undefined>;
|
|
3157
|
+
protected readonly bodyTemplate: _angular_core.Signal<MozDataTableBodyTemplateDirective | undefined>;
|
|
3158
|
+
protected readonly customSelectionbar: _angular_core.Signal<MozDataTableSelectionbarDirective | undefined>;
|
|
3159
|
+
private readonly _sortState;
|
|
3160
|
+
private readonly _sortMultipleState;
|
|
3161
|
+
private readonly _itemsPerPageState;
|
|
3162
|
+
private readonly _currentPageState;
|
|
3163
|
+
private readonly _selectAllState;
|
|
3164
|
+
protected readonly pageState: _angular_core.WritableSignal<boolean>;
|
|
3165
|
+
private readonly _selectedItems;
|
|
3166
|
+
private readonly _lastSelectedItem;
|
|
3167
|
+
private readonly _expandedRows;
|
|
3168
|
+
constructor();
|
|
3169
|
+
ngOnInit(): void;
|
|
3170
|
+
ngAfterContentInit(): void;
|
|
3171
|
+
protected readonly getHeaders: _angular_core.Signal<MozDataTableHeader[]>;
|
|
3172
|
+
protected readonly getSort: _angular_core.Signal<MozDataTableSort | null | undefined>;
|
|
3173
|
+
protected readonly getSortMultiple: _angular_core.Signal<MozDataTableSort[]>;
|
|
3174
|
+
protected readonly getItemsPerPage: _angular_core.Signal<number>;
|
|
3175
|
+
protected readonly getCurrentPage: _angular_core.Signal<number>;
|
|
3176
|
+
protected readonly getSelectedItems: _angular_core.Signal<T[]>;
|
|
3177
|
+
protected readonly getSelectAll: _angular_core.Signal<boolean>;
|
|
3178
|
+
protected readonly getClickable: _angular_core.Signal<boolean>;
|
|
3179
|
+
protected readonly getPaginationLength: _angular_core.Signal<number>;
|
|
3180
|
+
protected readonly getPageCountInfos: _angular_core.Signal<{
|
|
3181
|
+
start: number;
|
|
3182
|
+
end: number;
|
|
3183
|
+
total: number;
|
|
3184
|
+
}>;
|
|
3185
|
+
protected readonly getOptions: _angular_core.Signal<{
|
|
3186
|
+
text: string;
|
|
3187
|
+
value: number;
|
|
3188
|
+
}[]>;
|
|
3189
|
+
protected readonly getItemsPerPageOptions: _angular_core.Signal<MozDataTablePageSizeOption[]>;
|
|
3190
|
+
protected readonly isPageSelected: _angular_core.Signal<boolean>;
|
|
3191
|
+
protected readonly isPageIndeterminate: _angular_core.Signal<boolean>;
|
|
3192
|
+
protected readonly multiSelectionPage: _angular_core.Signal<boolean>;
|
|
3193
|
+
protected readonly getLabelButtonSelectAll: _angular_core.Signal<string>;
|
|
3194
|
+
protected readonly getLabelSelectedPage: _angular_core.Signal<string>;
|
|
3195
|
+
protected readonly getLabelAllItemsSelected: _angular_core.Signal<string>;
|
|
3196
|
+
protected readonly hostClasses: _angular_core.Signal<{
|
|
3197
|
+
[x: string]: boolean;
|
|
3198
|
+
'mc-datatable': boolean;
|
|
3199
|
+
'mc-datatable--sticky-header': boolean;
|
|
3200
|
+
}>;
|
|
3201
|
+
protected readonly skeletonRows: _angular_core.Signal<number[]>;
|
|
3202
|
+
protected cellTemplateFor(column: string): MozDataTableCellTemplateDirective | undefined;
|
|
3203
|
+
protected headerTemplateFor(column: string): MozDataTableHeaderTemplateDirective | undefined;
|
|
3204
|
+
protected getSortDirection(headerKey: string): MozDataTableSortDirection;
|
|
3205
|
+
updateSort(sort: MozDataTableSort, noChange?: boolean): void;
|
|
3206
|
+
private sortByHeaderOrder;
|
|
3207
|
+
protected updatePageSize(size: number): void;
|
|
3208
|
+
protected updateCurrentPage(page: number): void;
|
|
3209
|
+
private emitChange;
|
|
3210
|
+
protected trackRow(index: number, item: T): unknown;
|
|
3211
|
+
protected displayValue(item: T, key: string): string;
|
|
3212
|
+
protected onClickRow(rowData: T, rowIndex: number): void;
|
|
3213
|
+
protected isSelected(item: T): boolean;
|
|
3214
|
+
private onSelectRow;
|
|
3215
|
+
protected onSelectRowWithShift(event: MouseEvent, rowData: T, rowIndex: number): void;
|
|
3216
|
+
protected onClickMasterCheckbox(event: Event): void;
|
|
3217
|
+
private onPageSelected;
|
|
3218
|
+
private clearSelection;
|
|
3219
|
+
protected clearAll(): void;
|
|
3220
|
+
protected onSelectAllFromBar(): void;
|
|
3221
|
+
private setSelectedItems;
|
|
3222
|
+
protected displayExpandButton(rowIndex: number): boolean;
|
|
3223
|
+
protected onClickExpandButton(rowData: T, rowIndex: number): void;
|
|
3224
|
+
protected isRowExpanded(rowData: T, rowIndex: number): boolean;
|
|
3225
|
+
private expandRowKey;
|
|
3226
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableComponent<any>, never>;
|
|
3227
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MozDataTableComponent<any>, "moz-datatable", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "headers": { "alias": "headers"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "indexKey": { "alias": "indexKey"; "required": false; "isSignal": true; }; "pageable": { "alias": "pageable"; "required": false; "isSignal": true; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; "isSignal": true; }; "itemsPerPageOptions": { "alias": "itemsPerPageOptions"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "itemsPerPageLabel": { "alias": "itemsPerPageLabel"; "required": false; "isSignal": true; }; "countLabel": { "alias": "countLabel"; "required": false; "isSignal": true; }; "infoLabelItems": { "alias": "infoLabelItems"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "sortMultiple": { "alias": "sortMultiple"; "required": false; "isSignal": true; }; "sortMode": { "alias": "sortMode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "hidePageCount": { "alias": "hidePageCount"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "fixedHeader": { "alias": "fixedHeader"; "required": false; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "selectionbar": { "alias": "selectionbar"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "labelButtonClearSelection": { "alias": "labelButtonClearSelection"; "required": false; "isSignal": true; }; "selectPage": { "alias": "selectPage"; "required": false; "isSignal": true; }; "labelPageSelected": { "alias": "labelPageSelected"; "required": false; "isSignal": true; }; "labelAllItemsSelected": { "alias": "labelAllItemsSelected"; "required": false; "isSignal": true; }; "selectAll": { "alias": "selectAll"; "required": false; "isSignal": true; }; "labelButtonSelectAll": { "alias": "labelButtonSelectAll"; "required": false; "isSignal": true; }; "clickableRows": { "alias": "clickableRows"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "expanderAccessibleLabel": { "alias": "expanderAccessibleLabel"; "required": false; "isSignal": true; }; "expandableList": { "alias": "expandableList"; "required": false; "isSignal": true; }; "dataKeyExpand": { "alias": "dataKeyExpand"; "required": false; "isSignal": true; }; "showExpandableContent": { "alias": "showExpandableContent"; "required": false; "isSignal": true; }; "rowClass": { "alias": "rowClass"; "required": false; "isSignal": true; }; "accessibilityLabels": { "alias": "accessibilityLabels"; "required": false; "isSignal": true; }; "e2eSelector": { "alias": "e2eSelector"; "required": false; "isSignal": true; }; "nested": { "alias": "nested"; "required": false; "isSignal": true; }; }, { "sortChange": "sortChange"; "sortMultipleChange": "sortMultipleChange"; "currentPageChange": "currentPageChange"; "itemsPerPageChange": "itemsPerPageChange"; "changed": "changed"; "clickRow": "clickRow"; "selectRow": "selectRow"; "unselectRow": "unselectRow"; "selectAllRows": "selectAllRows"; "unselectAllRows": "unselectAllRows"; "selectMultipleRows": "selectMultipleRows"; "unselectMultipleRows": "unselectMultipleRows"; "selectPageChange": "selectPageChange"; "selectAllChange": "selectAllChange"; "selectionChange": "selectionChange"; "expandRow": "expandRow"; "retractRow": "retractRow"; }, ["columns", "cellTemplates", "headerTemplates", "expandTemplate", "noDataTemplate", "headersTemplate", "bodyTemplate", "customSelectionbar"], ["moz-datatable-top, [mozDataTableTopbar]", "[mozDataTableSelectionbar]"], true, never>;
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
/**
|
|
3231
|
+
* Header cell (`<th>`) of the DataTable.
|
|
3232
|
+
* Displays the sort button when the column is `sortable`.
|
|
3233
|
+
*
|
|
3234
|
+
* Equivalent of the `MDataTableHeader` component of the Vue implementation.
|
|
3235
|
+
*/
|
|
3236
|
+
declare class MozDataTableHeaderComponent {
|
|
3237
|
+
/** Header cell label */
|
|
3238
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
3239
|
+
/** Refers to a key, present in the items object, whose content will be displayed in the cells of the column */
|
|
3240
|
+
readonly value: _angular_core.InputSignal<string>;
|
|
3241
|
+
/** Defines whether the column is sortable or not */
|
|
3242
|
+
readonly sortable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3243
|
+
/** Defines sort order (Ascending or Descending) */
|
|
3244
|
+
readonly sortDirection: _angular_core.InputSignal<MozDataTableSortDirection>;
|
|
3245
|
+
/** Defines sort order on component loading */
|
|
3246
|
+
readonly sortDirectionDefault: _angular_core.InputSignal<MozDataTableSortDirection>;
|
|
3247
|
+
/** Additional data merged into the payload emitted when sorting this column */
|
|
3248
|
+
readonly additionalProps: _angular_core.InputSignal<Record<string, unknown> | undefined>;
|
|
3249
|
+
/** Defines header cell as associated with `selectable` cells */
|
|
3250
|
+
readonly selectable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3251
|
+
/** Defines header cell as associated with `expandable` cells */
|
|
3252
|
+
readonly expandable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3253
|
+
/** Misc */
|
|
3254
|
+
readonly e2eSelector: _angular_core.InputSignal<string>;
|
|
3255
|
+
/** Template used to replace/format the content of the header cell (`mozDataTableHeader` template) */
|
|
3256
|
+
readonly labelTemplate: _angular_core.InputSignal<TemplateRef<MozDataTableHeaderContext> | null>;
|
|
3257
|
+
/** The header configuration passed as context to `labelTemplate` */
|
|
3258
|
+
readonly headerConfig: _angular_core.InputSignal<MozDataTableHeader | undefined>;
|
|
3259
|
+
/** Emits each time a click on the sort button is made */
|
|
3260
|
+
readonly updateSortDirection: _angular_core.OutputEmitterRef<MozDataTableSort>;
|
|
3261
|
+
readonly classes: _angular_core.Signal<{
|
|
3262
|
+
'mc-datatable__head': boolean;
|
|
3263
|
+
'mc-datatable__cell-button': boolean;
|
|
3264
|
+
'mc-datatable__cell-checkbox': boolean;
|
|
3265
|
+
}>;
|
|
3266
|
+
readonly templateContext: _angular_core.Signal<MozDataTableHeaderContext>;
|
|
3267
|
+
toggleSort(): void;
|
|
3268
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableHeaderComponent, never>;
|
|
3269
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MozDataTableHeaderComponent, "th[moz-datatable-header]", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "sortable": { "alias": "sortable"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; "sortDirectionDefault": { "alias": "sortDirectionDefault"; "required": false; "isSignal": true; }; "additionalProps": { "alias": "additionalProps"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "e2eSelector": { "alias": "e2eSelector"; "required": false; "isSignal": true; }; "labelTemplate": { "alias": "labelTemplate"; "required": false; "isSignal": true; }; "headerConfig": { "alias": "headerConfig"; "required": false; "isSignal": true; }; }, { "updateSortDirection": "updateSortDirection"; }, never, ["*"], true, never>;
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3272
|
+
/**
|
|
3273
|
+
* Row (`<tr>`) of the DataTable body.
|
|
3274
|
+
*
|
|
3275
|
+
* Equivalent of the `MDataTableRow` component of the Vue implementation.
|
|
3276
|
+
*/
|
|
3277
|
+
declare class MozDataTableRowComponent {
|
|
3278
|
+
/** Defines whether the row is clickable or not */
|
|
3279
|
+
readonly clickable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3280
|
+
/** Defines whether this is an "expandable" row */
|
|
3281
|
+
readonly expandable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3282
|
+
/** Defines the "expanded" state of the row */
|
|
3283
|
+
readonly expanded: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3284
|
+
/** Defines the "selected" state of the row */
|
|
3285
|
+
readonly selected: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3286
|
+
readonly classes: _angular_core.Signal<{
|
|
3287
|
+
'mc-datatable__row': boolean;
|
|
3288
|
+
'mc-datatable__row--clickable': boolean;
|
|
3289
|
+
'mc-datatable__row-parent': boolean;
|
|
3290
|
+
'mc-datatable__row-parent--expanded': boolean;
|
|
3291
|
+
selected: boolean;
|
|
3292
|
+
}>;
|
|
3293
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableRowComponent, never>;
|
|
3294
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MozDataTableRowComponent, "tr[moz-datatable-row]", never, { "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
3295
|
+
}
|
|
3296
|
+
|
|
3297
|
+
/**
|
|
3298
|
+
* Cell (`<td>` or `<th>`) of the DataTable body.
|
|
3299
|
+
*
|
|
3300
|
+
* Equivalent of the `MDataTableCell` component of the Vue implementation.
|
|
3301
|
+
*/
|
|
3302
|
+
declare class MozDataTableCellComponent {
|
|
3303
|
+
/** Allows you to define the type of content that will be inserted in the cell */
|
|
3304
|
+
readonly type: _angular_core.InputSignal<MozDataTableCellType | undefined>;
|
|
3305
|
+
/** Refers to a key, present in the items object, whose content is displayed in the cell */
|
|
3306
|
+
readonly value: _angular_core.InputSignal<string>;
|
|
3307
|
+
readonly classes: _angular_core.Signal<{
|
|
3308
|
+
[x: string]: boolean;
|
|
3309
|
+
'mc-datatable__cell': boolean;
|
|
3310
|
+
'mc-datatable__cell-button': boolean;
|
|
3311
|
+
'mc-datatable__cell-checkbox': boolean;
|
|
3312
|
+
'mc-datatable__cell-field': boolean;
|
|
3313
|
+
'mc-datatable__cell-number': boolean;
|
|
3314
|
+
}>;
|
|
3315
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableCellComponent, never>;
|
|
3316
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MozDataTableCellComponent, "td[moz-datatable-cell], th[moz-datatable-cell]", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
/**
|
|
3320
|
+
* Topbar of the DataTable. Use the `mozDataTableTopEdition`,
|
|
3321
|
+
* `mozDataTableTopActions` and `mozDataTableTopFilters` attributes to mark
|
|
3322
|
+
* the content of each zone:
|
|
3323
|
+
*
|
|
3324
|
+
* ```html
|
|
3325
|
+
* <moz-datatable [items]="items">
|
|
3326
|
+
* <moz-datatable-top>
|
|
3327
|
+
* <div mozDataTableTopActions>
|
|
3328
|
+
* <button moz-button size="s">Primary action</button>
|
|
3329
|
+
* </div>
|
|
3330
|
+
* </moz-datatable-top>
|
|
3331
|
+
* </moz-datatable>
|
|
3332
|
+
* ```
|
|
3333
|
+
*
|
|
3334
|
+
* Equivalent of the `MDataTableTop` component of the Vue implementation.
|
|
3335
|
+
*/
|
|
3336
|
+
declare class MozDataTableTopComponent {
|
|
3337
|
+
readonly edition: _angular_core.Signal<MozDataTableTopEditionDirective | undefined>;
|
|
3338
|
+
readonly actions: _angular_core.Signal<MozDataTableTopActionsDirective | undefined>;
|
|
3339
|
+
readonly filters: _angular_core.Signal<MozDataTableTopFiltersDirective | undefined>;
|
|
3340
|
+
readonly hasContent: _angular_core.Signal<boolean>;
|
|
3341
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MozDataTableTopComponent, never>;
|
|
3342
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MozDataTableTopComponent, "moz-datatable-top", never, {}, {}, ["edition", "actions", "filters"], ["[mozDataTableTopEdition]", "[mozDataTableTopActions]", "[mozDataTableTopFilters]"], true, never>;
|
|
3343
|
+
}
|
|
3344
|
+
|
|
3345
|
+
export { ACTION_LISTBOX_CONFIG, ActionListboxContainerComponent, ActionListboxRef, BuiltInMenuComponent, DEFAULT_ACTION_LISTBOX_CONFIG, DEFAULT_MODAL_CONFIG, DEFAULT_TOASTER_CONFIG, DRAWER_CONFIG, DRAWER_DATA, DrawerContainerComponent, MODAL_CONFIG, MODAL_DATA, MOZ_DATATABLE_DEFAULT_PAGE_SIZES, MozAccordionComponent, MozAccordionContentComponent, MozAccordionHeaderComponent, MozAccordionPanelComponent, MozActionBottomBarComponent, MozActionListboxComponent, MozActionListboxTriggerDirective, MozAvatarComponent, MozBreadcrumbComponent, MozButtonComponent, MozCalloutComponent, MozCarouselComponent, MozCheckListMenuComponent, MozCheckboxComponent, MozCheckboxGroupComponent, MozCircularProgressBarComponent, MozComboboxComponent, MozComboboxHarness, MozComboboxOptionHarness, MozDataTableBodyTemplateDirective, MozDataTableCellComponent, MozDataTableCellTemplateDirective, MozDataTableColumnComponent, MozDataTableComponent, MozDataTableExpandTemplateDirective, MozDataTableHeaderComponent, MozDataTableHeaderTemplateDirective, MozDataTableHeadersTemplateDirective, MozDataTableNoDataTemplateDirective, MozDataTableRowComponent, MozDataTableSelectionbarDirective, MozDataTableTopActionsDirective, MozDataTableTopComponent, MozDataTableTopEditionDirective, MozDataTableTopFiltersDirective, MozDatepickerComponent, MozDividerComponent, MozDrawerComponent, MozDrawerFooterDirective, MozDrawerRef, MozDrawerService, MozFieldComponent, MozFieldGroupComponent, MozFileUploaderComponent, MozFileUploaderItemComponent, MozFlagComponent, MozIconButtonComponent, MozKpiComponent, MozLinearProgressBarBufferComponent, MozLinearProgressBarPercentageComponent, MozLinkComponent, MozLoaderComponent, MozLoadingOverlayComponent, MozModalComponent, MozModalFooterDirective, MozModalRef, MozModalService, MozNavigationIndicatorComponent, MozNumberBadgeComponent, MozOverlayComponent, MozPageHeaderComponent, MozPaginationComponent, MozPasswordInputDirective, MozPhoneNumberComponent, MozPincodeInputComponent, MozPopoverComponent, MozPopoverFooterDirective, MozPopoverTriggerDirective, MozQuantitySelectorComponent, MozRadioComponent, MozRadioGroupComponent, MozSegmentedControlComponent, MozSelectComponent, MozSidebarComponent, MozStarRatingComponent, MozStatusBadgeComponent, MozStatusDotComponent, MozStatusMessageComponent, MozStatusNotificationComponent, MozStepperBottomBarComponent, MozStepperCompactComponent, MozStepperInlineComponent, MozStepperStackedComponent, MozTabComponent, MozTabsComponent, MozTagComponent, MozTextInput, MozTextarea, MozTileComponent, MozTileExpandableComponent, MozTileSelectableComponent, MozToasterComponent, MozToasterRef, MozToasterService, MozToggleComponent, MozTooltipComponent, MozTooltipDirective, MozTreeComponent, MozTreeNodeComponent, MozTreeNodeTemplateDirective, POPOVER_CONFIG, POPOVER_DATA, PopoverContainerComponent, PopoverRef, PopoverService, TOASTER_CONFIG, TreeKeyboardService, TreeSelectionService, TreeStateService, isSection };
|
|
3346
|
+
export type { ActionListboxConfig, ActionListboxPosition, FlatNode, LoadChildrenFn, MozActionListItem, MozActionListItemAppearance, MozAvatarSize, MozBreadcrumbAppearance, MozBreadcrumbLink, MozBuiltInMenuItem, MozBuiltInMenuItemTarget, MozButtonAppearance, MozButtonIconPosition, MozButtonSize, MozButtonType, MozCalloutVariant, MozCheckListMenuItem, MozCircularProgessBarSize, MozComboboxItem, MozComboboxOption, MozComboboxSection, MozComboboxSize, MozDataTableAccessibilityLabels, MozDataTableCellContext, MozDataTableCellType, MozDataTableHeader, MozDataTableHeaderContext, MozDataTablePageSizeOption, MozDataTableRowEvent, MozDataTableRowsEvent, MozDataTableSize, MozDataTableSort, MozDataTableSortDirection, MozDataTableSortMode, MozDataTableUpdatePayload, MozDatepickerSize, MozDividerAppearance, MozDividerOrientation, MozDividerSize, MozDrawerConfig, MozDrawerPosition, MozFileUploaderFormat, MozFileUploaderItemFormat, MozFlagType, MozIconButtonAppearance, MozIconButtonSize, MozIconButtonType, MozKpiSize, MozKpiStatus, MozKpiTrend, MozLinearProgressBarBufferSize, MozLinkAppearance, MozLinkIconPosition, MozLinkSize, MozLoaderAppearance, MozLoaderSize, MozNavigationIndicatorAction, MozNumberBadgeAppearance, MozNumberBadgeSize, MozPageHeaderScope, MozPhoneNumberCountry, MozPhoneNumberSize, MozPhoneNumberValue, MozPincodeLength, MozPopoverAppearance, MozPopoverPosition, MozPopoverSize, MozQuantitySelectorSize, MozSegmentedControlSize, MozSegmentedItem, MozSelectOption, MozSelectSize, MozSelectValue, MozSidebarItem, MozSidebarSubItem, MozStarRatingAppearance, MozStarRatingSize, MozStatusBadgeStatus, MozStatusDotSize, MozStatusDotStatus, MozStatusMessageStatus, MozStatusNotificationStatus, MozStepperBottomBarStep, MozStepperInlineStep, MozStepperStackedStep, MozTabItem, MozTagSize, MozTagType, MozTextInputSize, MozTileAppearance, MozTileExpandableTrigger, MozTileInputPosition, MozTileInputVerticalPosition, MozTileSelectableAppearance, MozTileSelectableType, MozToasterPosition, MozToasterRole, MozToasterStatus, MozToggleSize, MozTooltipPosition, PopoverConfig, PopoverTriggerMode, TreeNode, TreeNodeContext, TreeSelectionMode };
|