@masterteam/components 0.0.10 → 0.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/components",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "publishConfig": {
5
5
  "directory": ".",
6
6
  "linkDirectory": false,
@@ -10,10 +10,10 @@
10
10
  "@angular/common": "^20.1.3",
11
11
  "@angular/core": "^20.1.3",
12
12
  "@angular/forms": "^20.1.3",
13
- "@primeuix/themes": "^1.2.1",
13
+ "@primeuix/themes": "^1.2.2",
14
14
  "@tailwindcss/postcss": "^4.1.11",
15
15
  "postcss": "^8.5.6",
16
- "primeng": "^20.0.0",
16
+ "primeng": "^20.0.1",
17
17
  "tailwindcss": "^4.1.11",
18
18
  "tailwindcss-primeui": "^0.6.1",
19
19
  "ngx-quill": "^28.0.0",
@@ -38,54 +38,58 @@
38
38
  "types": "./index.d.ts",
39
39
  "default": "./fesm2022/masterteam-components.mjs"
40
40
  },
41
+ "./avatar-text": {
42
+ "types": "./avatar-text/index.d.ts",
43
+ "default": "./fesm2022/masterteam-components-avatar-text.mjs"
44
+ },
41
45
  "./avatar": {
42
46
  "types": "./avatar/index.d.ts",
43
47
  "default": "./fesm2022/masterteam-components-avatar.mjs"
44
48
  },
45
- "./button": {
46
- "types": "./button/index.d.ts",
47
- "default": "./fesm2022/masterteam-components-button.mjs"
48
- },
49
49
  "./button-group": {
50
50
  "types": "./button-group/index.d.ts",
51
51
  "default": "./fesm2022/masterteam-components-button-group.mjs"
52
52
  },
53
+ "./button": {
54
+ "types": "./button/index.d.ts",
55
+ "default": "./fesm2022/masterteam-components-button.mjs"
56
+ },
53
57
  "./card": {
54
58
  "types": "./card/index.d.ts",
55
59
  "default": "./fesm2022/masterteam-components-card.mjs"
56
60
  },
57
- "./avatar-text": {
58
- "types": "./avatar-text/index.d.ts",
59
- "default": "./fesm2022/masterteam-components-avatar-text.mjs"
61
+ "./chip": {
62
+ "types": "./chip/index.d.ts",
63
+ "default": "./fesm2022/masterteam-components-chip.mjs"
60
64
  },
61
65
  "./checkbox-field": {
62
66
  "types": "./checkbox-field/index.d.ts",
63
67
  "default": "./fesm2022/masterteam-components-checkbox-field.mjs"
64
68
  },
65
- "./chip": {
66
- "types": "./chip/index.d.ts",
67
- "default": "./fesm2022/masterteam-components-chip.mjs"
69
+ "./date-field": {
70
+ "types": "./date-field/index.d.ts",
71
+ "default": "./fesm2022/masterteam-components-date-field.mjs"
68
72
  },
69
73
  "./color-picker-field": {
70
74
  "types": "./color-picker-field/index.d.ts",
71
75
  "default": "./fesm2022/masterteam-components-color-picker-field.mjs"
72
76
  },
73
- "./date-field": {
74
- "types": "./date-field/index.d.ts",
75
- "default": "./fesm2022/masterteam-components-date-field.mjs"
77
+ "./editor-field": {
78
+ "types": "./editor-field/index.d.ts",
79
+ "default": "./fesm2022/masterteam-components-editor-field.mjs"
76
80
  },
77
81
  "./field-validation": {
78
82
  "types": "./field-validation/index.d.ts",
79
83
  "default": "./fesm2022/masterteam-components-field-validation.mjs"
80
84
  },
81
- "./editor-field": {
82
- "types": "./editor-field/index.d.ts",
83
- "default": "./fesm2022/masterteam-components-editor-field.mjs"
84
- },
85
85
  "./icon-field": {
86
86
  "types": "./icon-field/index.d.ts",
87
87
  "default": "./fesm2022/masterteam-components-icon-field.mjs"
88
88
  },
89
+ "./multi-select-field": {
90
+ "types": "./multi-select-field/index.d.ts",
91
+ "default": "./fesm2022/masterteam-components-multi-select-field.mjs"
92
+ },
89
93
  "./list": {
90
94
  "types": "./list/index.d.ts",
91
95
  "default": "./fesm2022/masterteam-components-list.mjs"
@@ -94,10 +98,6 @@
94
98
  "types": "./number-field/index.d.ts",
95
99
  "default": "./fesm2022/masterteam-components-number-field.mjs"
96
100
  },
97
- "./multi-select-field": {
98
- "types": "./multi-select-field/index.d.ts",
99
- "default": "./fesm2022/masterteam-components-multi-select-field.mjs"
100
- },
101
101
  "./select-field": {
102
102
  "types": "./select-field/index.d.ts",
103
103
  "default": "./fesm2022/masterteam-components-select-field.mjs"
@@ -113,6 +113,14 @@
113
113
  "./textarea-field": {
114
114
  "types": "./textarea-field/index.d.ts",
115
115
  "default": "./fesm2022/masterteam-components-textarea-field.mjs"
116
+ },
117
+ "./toast": {
118
+ "types": "./toast/index.d.ts",
119
+ "default": "./fesm2022/masterteam-components-toast.mjs"
120
+ },
121
+ "./toggle-field": {
122
+ "types": "./toggle-field/index.d.ts",
123
+ "default": "./fesm2022/masterteam-components-toggle-field.mjs"
116
124
  }
117
125
  }
118
126
  }
@@ -0,0 +1,26 @@
1
+ import * as i0 from '@angular/core';
2
+ import { MessageService, ToastMessageOptions } from 'primeng/api';
3
+
4
+ declare class Toast {
5
+ protected readonly toastPosition = "bottom-right";
6
+ protected readonly toastTransX = "translateX(100%)";
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<Toast, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<Toast, "mt-toast", never, {}, {}, never, never, true, never>;
9
+ }
10
+
11
+ declare class ToastService {
12
+ messageService: MessageService;
13
+ add(message: ToastMessageOptions): void;
14
+ addAll(messages: ToastMessageOptions[]): void;
15
+ clear(key?: string): void;
16
+ success(detail?: string, summary?: string): void;
17
+ warn(detail?: string, summary?: string): void;
18
+ error(detail?: string, summary?: string): void;
19
+ info(detail?: string, summary?: string): void;
20
+ secondary(detail?: string, summary?: string): void;
21
+ contrast(detail?: string, summary?: string): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
24
+ }
25
+
26
+ export { Toast, ToastService };
@@ -0,0 +1,33 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { ControlValueAccessor, NgControl, Validators } from '@angular/forms';
3
+ import { ToggleSwitch, ToggleSwitchChangeEvent } from 'primeng/toggleswitch';
4
+ import { isInvalid } from '@masterteam/components';
5
+
6
+ declare class ToggleField implements ControlValueAccessor {
7
+ toggle: ToggleSwitch;
8
+ label: _angular_core.InputSignal<string | undefined>;
9
+ labelPosition: _angular_core.InputSignal<"top" | "start" | "end" | "bottom">;
10
+ placeholder: _angular_core.InputSignal<string | undefined>;
11
+ readonly: _angular_core.InputSignal<boolean>;
12
+ pInputs: _angular_core.InputSignal<Partial<ToggleSwitch> | undefined>;
13
+ onChange: _angular_core.OutputEmitterRef<ToggleSwitchChangeEvent>;
14
+ ngControl: NgControl;
15
+ isInvalid: typeof isInvalid;
16
+ isVertical: _angular_core.Signal<boolean>;
17
+ requiredValidator: typeof Validators.required;
18
+ value: _angular_core.WritableSignal<boolean | null>;
19
+ disabled: _angular_core.WritableSignal<boolean>;
20
+ onTouched: () => void;
21
+ onModelChange: (value: boolean | null) => void;
22
+ constructor();
23
+ applyInputsToCheckbox(): void;
24
+ onValueChange(value: boolean | null): void;
25
+ writeValue(value: boolean | null): void;
26
+ registerOnChange(fn: any): void;
27
+ registerOnTouched(fn: any): void;
28
+ setDisabledState(disabled: boolean): void;
29
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToggleField, never>;
30
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToggleField, "mt-toggle-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; }, { "onChange": "onChange"; }, never, never, true, never>;
31
+ }
32
+
33
+ export { ToggleField };