@masterteam/components 0.0.33 → 0.0.35
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/assets/common.css +1 -1
- package/fesm2022/masterteam-components-button.mjs +3 -3
- package/fesm2022/masterteam-components-button.mjs.map +1 -1
- package/fesm2022/masterteam-components-color-picker-field.mjs +1 -1
- package/fesm2022/masterteam-components-color-picker-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula-builder.mjs +1 -1
- package/fesm2022/masterteam-components-formula-builder.mjs.map +1 -1
- package/fesm2022/masterteam-components-pick-list-field.mjs +190 -0
- package/fesm2022/masterteam-components-pick-list-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-table.mjs +56 -9
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-text-field.mjs +45 -12
- package/fesm2022/masterteam-components-text-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-tooltip.mjs +5 -5
- package/fesm2022/masterteam-components-tooltip.mjs.map +1 -1
- package/fesm2022/masterteam-components-user-search-field.mjs +6 -7
- package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +41 -1
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/index.d.ts +34 -3
- package/package.json +49 -45
- package/pick-list-field/index.d.ts +59 -0
- package/table/index.d.ts +23 -6
- package/text-field/index.d.ts +6 -3
- package/tooltip/index.d.ts +1 -1
package/table/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { TemplateRef } from '@angular/core';
|
|
3
3
|
import { MTIcon } from '@masterteam/icons';
|
|
4
|
+
import { TablePageEvent } from 'primeng/table';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Defines the options for a select filter.
|
|
@@ -25,10 +26,11 @@ interface ColumnDef {
|
|
|
25
26
|
filterConfig?: FilterConfig;
|
|
26
27
|
}
|
|
27
28
|
interface TableAction {
|
|
28
|
-
icon
|
|
29
|
+
icon?: MTIcon | undefined;
|
|
29
30
|
color?: 'info' | 'success' | 'warn' | 'danger' | 'secondary' | 'contrast' | 'help' | 'primary';
|
|
30
31
|
variant?: 'text' | 'outlined' | undefined;
|
|
31
|
-
label
|
|
32
|
+
label?: string;
|
|
33
|
+
tooltip?: string;
|
|
32
34
|
action: (row: any) => void;
|
|
33
35
|
}
|
|
34
36
|
|
|
@@ -36,10 +38,23 @@ declare class Table {
|
|
|
36
38
|
selectionChange: _angular_core.OutputEmitterRef<any[]>;
|
|
37
39
|
data: _angular_core.InputSignal<any[]>;
|
|
38
40
|
columns: _angular_core.InputSignal<ColumnDef[]>;
|
|
41
|
+
rowActions: _angular_core.InputSignal<TableAction[]>;
|
|
42
|
+
size: _angular_core.InputSignal<"small" | "large" | undefined>;
|
|
43
|
+
showGridlines: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
44
|
+
stripedRows: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
45
|
+
selectableRows: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
46
|
+
generalSearch: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
47
|
+
showFilters: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
48
|
+
loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
49
|
+
tabs: _angular_core.InputSignal<any[] | undefined>;
|
|
50
|
+
tabsOptionLabel: _angular_core.InputSignal<string | undefined>;
|
|
51
|
+
tabsOptionValue: _angular_core.InputSignal<string | undefined>;
|
|
52
|
+
activeTab: _angular_core.ModelSignal<any>;
|
|
53
|
+
onTabChange: _angular_core.OutputEmitterRef<any>;
|
|
39
54
|
actions: _angular_core.InputSignal<TableAction[]>;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
55
|
+
captionStartContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
56
|
+
captionEndContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
57
|
+
emptyContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
43
58
|
paginatorPosition: _angular_core.InputSignal<"end" | "start" | "center">;
|
|
44
59
|
pageSize: _angular_core.ModelSignal<number>;
|
|
45
60
|
currentPage: _angular_core.ModelSignal<number>;
|
|
@@ -62,9 +77,11 @@ declare class Table {
|
|
|
62
77
|
toggleRow(row: any): void;
|
|
63
78
|
toggleAllRowsOnPage(): void;
|
|
64
79
|
getProperty(obj: any, key: string): any;
|
|
80
|
+
tabChanged(tab: any): void;
|
|
81
|
+
onTablePage(event: TablePageEvent): void;
|
|
65
82
|
onSearchChange(searchTerm: Event): void;
|
|
66
83
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, never>;
|
|
67
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "mt-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "
|
|
84
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "mt-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showGridlines": { "alias": "showGridlines"; "required": false; "isSignal": true; }; "stripedRows": { "alias": "stripedRows"; "required": false; "isSignal": true; }; "selectableRows": { "alias": "selectableRows"; "required": false; "isSignal": true; }; "generalSearch": { "alias": "generalSearch"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; "tabsOptionLabel": { "alias": "tabsOptionLabel"; "required": false; "isSignal": true; }; "tabsOptionValue": { "alias": "tabsOptionValue"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "paginatorPosition": { "alias": "paginatorPosition"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "filterTerm": { "alias": "filterTerm"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "activeTab": "activeTabChange"; "onTabChange": "onTabChange"; "pageSize": "pageSizeChange"; "currentPage": "currentPageChange"; "first": "firstChange"; "filterTerm": "filterTermChange"; }, ["captionStartContent", "captionEndContent", "emptyContent"], never, true, never>;
|
|
68
85
|
}
|
|
69
86
|
|
|
70
87
|
export { Table };
|
package/text-field/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, Validators, NgControl } from '@angular/forms';
|
|
4
|
-
import { KeyFilterPattern } from 'primeng/keyfilter';
|
|
5
4
|
import { isInvalid } from '@masterteam/components';
|
|
5
|
+
import { MTIcon } from '@masterteam/icons';
|
|
6
6
|
|
|
7
7
|
declare class TextField implements ControlValueAccessor, OnInit, OnChanges {
|
|
8
|
+
private dir;
|
|
8
9
|
inputText: HTMLInputElement;
|
|
9
10
|
readonly field: _angular_core.InputSignal<boolean>;
|
|
10
11
|
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
@@ -14,12 +15,14 @@ declare class TextField implements ControlValueAccessor, OnInit, OnChanges {
|
|
|
14
15
|
readonly type: _angular_core.InputSignal<string>;
|
|
15
16
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
16
17
|
readonly pInputs: _angular_core.InputSignal<Partial<HTMLInputElement> | undefined>;
|
|
17
|
-
readonly pKeyFilter: _angular_core.InputSignal<RegExp | KeyFilterPattern | undefined>;
|
|
18
18
|
readonly required: _angular_core.InputSignal<boolean>;
|
|
19
|
+
readonly icon: _angular_core.InputSignal<MTIcon | undefined>;
|
|
20
|
+
readonly iconPosition: _angular_core.InputSignal<"start" | "end">;
|
|
19
21
|
styleClass: string;
|
|
20
22
|
requiredValidator: typeof Validators.required;
|
|
21
23
|
value: _angular_core.WritableSignal<string | null>;
|
|
22
24
|
disabled: _angular_core.WritableSignal<boolean>;
|
|
25
|
+
iconPos: _angular_core.Signal<"right" | "left">;
|
|
23
26
|
alphaNum: RegExp;
|
|
24
27
|
onTouched: () => void;
|
|
25
28
|
onModelChange: (value: any) => void;
|
|
@@ -35,7 +38,7 @@ declare class TextField implements ControlValueAccessor, OnInit, OnChanges {
|
|
|
35
38
|
registerOnTouched(fn: any): void;
|
|
36
39
|
setDisabledState(disabled: boolean): void;
|
|
37
40
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextField, never>;
|
|
38
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextField, "mt-text-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "
|
|
41
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextField, "mt-text-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
export { TextField };
|
package/tooltip/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as i1 from 'primeng/tooltip';
|
|
|
3
3
|
|
|
4
4
|
declare class Tooltip {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tooltip, never>;
|
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Tooltip, "[mtTooltip]", never, {}, {}, never, never, true, [{ directive: typeof i1.Tooltip; inputs: { "pTooltip": "mtTooltip"; "tooltipPosition": "
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Tooltip, "[mtTooltip]", never, {}, {}, never, never, true, [{ directive: typeof i1.Tooltip; inputs: { "pTooltip": "mtTooltip"; "tooltipPosition": "tooltipPosition"; "tooltipEvent": "tooltipEvent"; "appendTo": "appendTo"; "tooltipStyleClass": "tooltipStyleClass"; "escape": "escape"; "showDelay": "showDelay"; "hideDelay": "hideDelay"; "life": "life"; "positionTop": "positionTop"; "positionLeft": "positionLeft"; "autoHide": "autoHide"; "fitContent": "fitContent"; "hideOnEscape": "hideOnEscape"; "tooltipDisabled": "tooltipDisabled"; }; outputs: {}; }]>;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export { Tooltip };
|