@masterteam/components 0.0.58 → 0.0.60

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.
Files changed (133) hide show
  1. package/assets/common.css +1 -1
  2. package/fesm2022/masterteam-components-avatar-text.mjs +16 -16
  3. package/fesm2022/masterteam-components-avatar-text.mjs.map +1 -1
  4. package/fesm2022/masterteam-components-avatar.mjs +14 -14
  5. package/fesm2022/masterteam-components-avatar.mjs.map +1 -1
  6. package/fesm2022/masterteam-components-breadcrumb.mjs +7 -7
  7. package/fesm2022/masterteam-components-breadcrumb.mjs.map +1 -1
  8. package/fesm2022/masterteam-components-button-group.mjs +3 -3
  9. package/fesm2022/masterteam-components-button.mjs +27 -47
  10. package/fesm2022/masterteam-components-button.mjs.map +1 -1
  11. package/fesm2022/masterteam-components-card.mjs +8 -10
  12. package/fesm2022/masterteam-components-card.mjs.map +1 -1
  13. package/fesm2022/masterteam-components-checkbox-field.mjs +13 -13
  14. package/fesm2022/masterteam-components-checkbox-field.mjs.map +1 -1
  15. package/fesm2022/masterteam-components-chip.mjs +10 -12
  16. package/fesm2022/masterteam-components-chip.mjs.map +1 -1
  17. package/fesm2022/masterteam-components-color-picker-field.mjs +13 -13
  18. package/fesm2022/masterteam-components-color-picker-field.mjs.map +1 -1
  19. package/fesm2022/masterteam-components-confirmation.mjs +7 -7
  20. package/fesm2022/masterteam-components-confirmation.mjs.map +1 -1
  21. package/fesm2022/masterteam-components-date-field.mjs +17 -17
  22. package/fesm2022/masterteam-components-date-field.mjs.map +1 -1
  23. package/fesm2022/masterteam-components-dialog.mjs +3 -3
  24. package/fesm2022/masterteam-components-drawer.mjs +15 -15
  25. package/fesm2022/masterteam-components-drawer.mjs.map +1 -1
  26. package/fesm2022/masterteam-components-dynamic-drawer.mjs +12 -12
  27. package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -1
  28. package/fesm2022/masterteam-components-editor-field.mjs +14 -14
  29. package/fesm2022/masterteam-components-editor-field.mjs.map +1 -1
  30. package/fesm2022/masterteam-components-field-validation.mjs +10 -12
  31. package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
  32. package/fesm2022/masterteam-components-formula-builder.mjs +12 -12
  33. package/fesm2022/masterteam-components-formula-builder.mjs.map +1 -1
  34. package/fesm2022/masterteam-components-icon-field.mjs +7 -7
  35. package/fesm2022/masterteam-components-icon-field.mjs.map +1 -1
  36. package/fesm2022/masterteam-components-list.mjs +9 -9
  37. package/fesm2022/masterteam-components-list.mjs.map +1 -1
  38. package/fesm2022/masterteam-components-menu.mjs +25 -29
  39. package/fesm2022/masterteam-components-menu.mjs.map +1 -1
  40. package/fesm2022/masterteam-components-modal.mjs +3 -3
  41. package/fesm2022/masterteam-components-module-summary-card.mjs +11 -15
  42. package/fesm2022/masterteam-components-module-summary-card.mjs.map +1 -1
  43. package/fesm2022/masterteam-components-multi-select-field.mjs +21 -21
  44. package/fesm2022/masterteam-components-multi-select-field.mjs.map +1 -1
  45. package/fesm2022/masterteam-components-number-field.mjs +17 -17
  46. package/fesm2022/masterteam-components-number-field.mjs.map +1 -1
  47. package/fesm2022/masterteam-components-page-header.mjs +17 -17
  48. package/fesm2022/masterteam-components-page-header.mjs.map +1 -1
  49. package/fesm2022/masterteam-components-page.mjs +17 -17
  50. package/fesm2022/masterteam-components-page.mjs.map +1 -1
  51. package/fesm2022/masterteam-components-paginator.mjs +14 -22
  52. package/fesm2022/masterteam-components-paginator.mjs.map +1 -1
  53. package/fesm2022/masterteam-components-pick-list-field.mjs +29 -29
  54. package/fesm2022/masterteam-components-pick-list-field.mjs.map +1 -1
  55. package/fesm2022/masterteam-components-radio-button-field.mjs +15 -15
  56. package/fesm2022/masterteam-components-radio-button-field.mjs.map +1 -1
  57. package/fesm2022/masterteam-components-radio-cards-field.mjs +13 -15
  58. package/fesm2022/masterteam-components-radio-cards-field.mjs.map +1 -1
  59. package/fesm2022/masterteam-components-radio-cards.mjs +15 -15
  60. package/fesm2022/masterteam-components-radio-cards.mjs.map +1 -1
  61. package/fesm2022/masterteam-components-select-field.mjs +22 -22
  62. package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
  63. package/fesm2022/masterteam-components-sidebar.mjs +9 -9
  64. package/fesm2022/masterteam-components-sidebar.mjs.map +1 -1
  65. package/fesm2022/masterteam-components-slider-field.mjs +18 -22
  66. package/fesm2022/masterteam-components-slider-field.mjs.map +1 -1
  67. package/fesm2022/masterteam-components-table.mjs +39 -53
  68. package/fesm2022/masterteam-components-table.mjs.map +1 -1
  69. package/fesm2022/masterteam-components-tabs.mjs +11 -15
  70. package/fesm2022/masterteam-components-tabs.mjs.map +1 -1
  71. package/fesm2022/masterteam-components-text-field.mjs +18 -18
  72. package/fesm2022/masterteam-components-text-field.mjs.map +1 -1
  73. package/fesm2022/masterteam-components-textarea-field.mjs +15 -15
  74. package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -1
  75. package/fesm2022/masterteam-components-toast.mjs +6 -6
  76. package/fesm2022/masterteam-components-toast.mjs.map +1 -1
  77. package/fesm2022/masterteam-components-toggle-field.mjs +13 -13
  78. package/fesm2022/masterteam-components-toggle-field.mjs.map +1 -1
  79. package/fesm2022/masterteam-components-tooltip.mjs +3 -3
  80. package/fesm2022/masterteam-components-topbar.mjs +12 -12
  81. package/fesm2022/masterteam-components-topbar.mjs.map +1 -1
  82. package/fesm2022/masterteam-components-upload-field.mjs +53 -53
  83. package/fesm2022/masterteam-components-upload-field.mjs.map +1 -1
  84. package/fesm2022/masterteam-components-user-search-field.mjs +21 -21
  85. package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -1
  86. package/fesm2022/masterteam-components.mjs +254 -7
  87. package/fesm2022/masterteam-components.mjs.map +1 -1
  88. package/package.json +89 -89
  89. package/{dialog/index.d.ts → types/masterteam-components-dialog.d.ts} +1 -1
  90. package/{index.d.ts → types/masterteam-components.d.ts} +181 -26
  91. /package/{avatar-text/index.d.ts → types/masterteam-components-avatar-text.d.ts} +0 -0
  92. /package/{avatar/index.d.ts → types/masterteam-components-avatar.d.ts} +0 -0
  93. /package/{breadcrumb/index.d.ts → types/masterteam-components-breadcrumb.d.ts} +0 -0
  94. /package/{button-group/index.d.ts → types/masterteam-components-button-group.d.ts} +0 -0
  95. /package/{button/index.d.ts → types/masterteam-components-button.d.ts} +0 -0
  96. /package/{card/index.d.ts → types/masterteam-components-card.d.ts} +0 -0
  97. /package/{checkbox-field/index.d.ts → types/masterteam-components-checkbox-field.d.ts} +0 -0
  98. /package/{chip/index.d.ts → types/masterteam-components-chip.d.ts} +0 -0
  99. /package/{color-picker-field/index.d.ts → types/masterteam-components-color-picker-field.d.ts} +0 -0
  100. /package/{confirmation/index.d.ts → types/masterteam-components-confirmation.d.ts} +0 -0
  101. /package/{date-field/index.d.ts → types/masterteam-components-date-field.d.ts} +0 -0
  102. /package/{drawer/index.d.ts → types/masterteam-components-drawer.d.ts} +0 -0
  103. /package/{dynamic-drawer/index.d.ts → types/masterteam-components-dynamic-drawer.d.ts} +0 -0
  104. /package/{editor-field/index.d.ts → types/masterteam-components-editor-field.d.ts} +0 -0
  105. /package/{field-validation/index.d.ts → types/masterteam-components-field-validation.d.ts} +0 -0
  106. /package/{formula-builder/index.d.ts → types/masterteam-components-formula-builder.d.ts} +0 -0
  107. /package/{icon-field/index.d.ts → types/masterteam-components-icon-field.d.ts} +0 -0
  108. /package/{list/index.d.ts → types/masterteam-components-list.d.ts} +0 -0
  109. /package/{menu/index.d.ts → types/masterteam-components-menu.d.ts} +0 -0
  110. /package/{modal/index.d.ts → types/masterteam-components-modal.d.ts} +0 -0
  111. /package/{module-summary-card/index.d.ts → types/masterteam-components-module-summary-card.d.ts} +0 -0
  112. /package/{multi-select-field/index.d.ts → types/masterteam-components-multi-select-field.d.ts} +0 -0
  113. /package/{number-field/index.d.ts → types/masterteam-components-number-field.d.ts} +0 -0
  114. /package/{page-header/index.d.ts → types/masterteam-components-page-header.d.ts} +0 -0
  115. /package/{page/index.d.ts → types/masterteam-components-page.d.ts} +0 -0
  116. /package/{paginator/index.d.ts → types/masterteam-components-paginator.d.ts} +0 -0
  117. /package/{pick-list-field/index.d.ts → types/masterteam-components-pick-list-field.d.ts} +0 -0
  118. /package/{radio-button-field/index.d.ts → types/masterteam-components-radio-button-field.d.ts} +0 -0
  119. /package/{radio-cards-field/index.d.ts → types/masterteam-components-radio-cards-field.d.ts} +0 -0
  120. /package/{radio-cards/index.d.ts → types/masterteam-components-radio-cards.d.ts} +0 -0
  121. /package/{select-field/index.d.ts → types/masterteam-components-select-field.d.ts} +0 -0
  122. /package/{sidebar/index.d.ts → types/masterteam-components-sidebar.d.ts} +0 -0
  123. /package/{slider-field/index.d.ts → types/masterteam-components-slider-field.d.ts} +0 -0
  124. /package/{table/index.d.ts → types/masterteam-components-table.d.ts} +0 -0
  125. /package/{tabs/index.d.ts → types/masterteam-components-tabs.d.ts} +0 -0
  126. /package/{text-field/index.d.ts → types/masterteam-components-text-field.d.ts} +0 -0
  127. /package/{textarea-field/index.d.ts → types/masterteam-components-textarea-field.d.ts} +0 -0
  128. /package/{toast/index.d.ts → types/masterteam-components-toast.d.ts} +0 -0
  129. /package/{toggle-field/index.d.ts → types/masterteam-components-toggle-field.d.ts} +0 -0
  130. /package/{tooltip/index.d.ts → types/masterteam-components-tooltip.d.ts} +0 -0
  131. /package/{topbar/index.d.ts → types/masterteam-components-topbar.d.ts} +0 -0
  132. /package/{upload-field/index.d.ts → types/masterteam-components-upload-field.d.ts} +0 -0
  133. /package/{user-search-field/index.d.ts → types/masterteam-components-user-search-field.d.ts} +0 -0
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@masterteam/components",
3
- "version": "0.0.58",
3
+ "version": "0.0.60",
4
4
  "publishConfig": {
5
5
  "directory": ".",
6
6
  "linkDirectory": false,
7
7
  "access": "public"
8
8
  },
9
9
  "peerDependencies": {
10
- "@angular/common": "^20.1.3",
11
- "@angular/core": "^20.1.3",
12
- "@angular/forms": "^20.1.3",
13
- "@primeuix/themes": "^1.2.2",
14
- "@tailwindcss/postcss": "^4.1.11",
10
+ "@angular/common": "^21.0.1",
11
+ "@angular/core": "^21.0.1",
12
+ "@angular/forms": "^21.0.1",
13
+ "@primeuix/themes": "^2.0.1",
14
+ "@tailwindcss/postcss": "^4.1.17",
15
15
  "postcss": "^8.5.6",
16
- "primeng": "^20.0.1",
17
- "tailwindcss": "^4.1.11",
16
+ "primeng": "21.0.0-beta.1",
17
+ "tailwindcss": "^4.1.17",
18
18
  "tailwindcss-primeui": "^0.6.1",
19
- "ngx-quill": "^28.0.0",
20
- "quill": "^2.0.0"
19
+ "ngx-quill": "^29.2.0",
20
+ "quill": "^2.0.3"
21
21
  },
22
22
  "dependencies": {
23
23
  "tslib": "^2.3.0",
@@ -36,186 +36,186 @@
36
36
  "default": "./package.json"
37
37
  },
38
38
  ".": {
39
- "types": "./index.d.ts",
39
+ "types": "./types/masterteam-components.d.ts",
40
40
  "default": "./fesm2022/masterteam-components.mjs"
41
41
  },
42
42
  "./avatar": {
43
- "types": "./avatar/index.d.ts",
43
+ "types": "./types/masterteam-components-avatar.d.ts",
44
44
  "default": "./fesm2022/masterteam-components-avatar.mjs"
45
45
  },
46
- "./breadcrumb": {
47
- "types": "./breadcrumb/index.d.ts",
48
- "default": "./fesm2022/masterteam-components-breadcrumb.mjs"
49
- },
50
46
  "./avatar-text": {
51
- "types": "./avatar-text/index.d.ts",
47
+ "types": "./types/masterteam-components-avatar-text.d.ts",
52
48
  "default": "./fesm2022/masterteam-components-avatar-text.mjs"
53
49
  },
54
- "./button-group": {
55
- "types": "./button-group/index.d.ts",
56
- "default": "./fesm2022/masterteam-components-button-group.mjs"
50
+ "./breadcrumb": {
51
+ "types": "./types/masterteam-components-breadcrumb.d.ts",
52
+ "default": "./fesm2022/masterteam-components-breadcrumb.mjs"
57
53
  },
58
54
  "./button": {
59
- "types": "./button/index.d.ts",
55
+ "types": "./types/masterteam-components-button.d.ts",
60
56
  "default": "./fesm2022/masterteam-components-button.mjs"
61
57
  },
58
+ "./button-group": {
59
+ "types": "./types/masterteam-components-button-group.d.ts",
60
+ "default": "./fesm2022/masterteam-components-button-group.mjs"
61
+ },
62
62
  "./card": {
63
- "types": "./card/index.d.ts",
63
+ "types": "./types/masterteam-components-card.d.ts",
64
64
  "default": "./fesm2022/masterteam-components-card.mjs"
65
65
  },
66
66
  "./checkbox-field": {
67
- "types": "./checkbox-field/index.d.ts",
67
+ "types": "./types/masterteam-components-checkbox-field.d.ts",
68
68
  "default": "./fesm2022/masterteam-components-checkbox-field.mjs"
69
69
  },
70
70
  "./chip": {
71
- "types": "./chip/index.d.ts",
71
+ "types": "./types/masterteam-components-chip.d.ts",
72
72
  "default": "./fesm2022/masterteam-components-chip.mjs"
73
73
  },
74
74
  "./color-picker-field": {
75
- "types": "./color-picker-field/index.d.ts",
75
+ "types": "./types/masterteam-components-color-picker-field.d.ts",
76
76
  "default": "./fesm2022/masterteam-components-color-picker-field.mjs"
77
77
  },
78
78
  "./confirmation": {
79
- "types": "./confirmation/index.d.ts",
79
+ "types": "./types/masterteam-components-confirmation.d.ts",
80
80
  "default": "./fesm2022/masterteam-components-confirmation.mjs"
81
81
  },
82
82
  "./date-field": {
83
- "types": "./date-field/index.d.ts",
83
+ "types": "./types/masterteam-components-date-field.d.ts",
84
84
  "default": "./fesm2022/masterteam-components-date-field.mjs"
85
85
  },
86
86
  "./dialog": {
87
- "types": "./dialog/index.d.ts",
87
+ "types": "./types/masterteam-components-dialog.d.ts",
88
88
  "default": "./fesm2022/masterteam-components-dialog.mjs"
89
89
  },
90
90
  "./drawer": {
91
- "types": "./drawer/index.d.ts",
91
+ "types": "./types/masterteam-components-drawer.d.ts",
92
92
  "default": "./fesm2022/masterteam-components-drawer.mjs"
93
93
  },
94
94
  "./dynamic-drawer": {
95
- "types": "./dynamic-drawer/index.d.ts",
95
+ "types": "./types/masterteam-components-dynamic-drawer.d.ts",
96
96
  "default": "./fesm2022/masterteam-components-dynamic-drawer.mjs"
97
97
  },
98
98
  "./editor-field": {
99
- "types": "./editor-field/index.d.ts",
99
+ "types": "./types/masterteam-components-editor-field.d.ts",
100
100
  "default": "./fesm2022/masterteam-components-editor-field.mjs"
101
101
  },
102
102
  "./field-validation": {
103
- "types": "./field-validation/index.d.ts",
103
+ "types": "./types/masterteam-components-field-validation.d.ts",
104
104
  "default": "./fesm2022/masterteam-components-field-validation.mjs"
105
105
  },
106
- "./icon-field": {
107
- "types": "./icon-field/index.d.ts",
108
- "default": "./fesm2022/masterteam-components-icon-field.mjs"
109
- },
110
106
  "./formula-builder": {
111
- "types": "./formula-builder/index.d.ts",
107
+ "types": "./types/masterteam-components-formula-builder.d.ts",
112
108
  "default": "./fesm2022/masterteam-components-formula-builder.mjs"
113
109
  },
110
+ "./icon-field": {
111
+ "types": "./types/masterteam-components-icon-field.d.ts",
112
+ "default": "./fesm2022/masterteam-components-icon-field.mjs"
113
+ },
114
114
  "./list": {
115
- "types": "./list/index.d.ts",
115
+ "types": "./types/masterteam-components-list.d.ts",
116
116
  "default": "./fesm2022/masterteam-components-list.mjs"
117
117
  },
118
- "./module-summary-card": {
119
- "types": "./module-summary-card/index.d.ts",
120
- "default": "./fesm2022/masterteam-components-module-summary-card.mjs"
118
+ "./menu": {
119
+ "types": "./types/masterteam-components-menu.d.ts",
120
+ "default": "./fesm2022/masterteam-components-menu.mjs"
121
121
  },
122
122
  "./modal": {
123
- "types": "./modal/index.d.ts",
123
+ "types": "./types/masterteam-components-modal.d.ts",
124
124
  "default": "./fesm2022/masterteam-components-modal.mjs"
125
125
  },
126
- "./menu": {
127
- "types": "./menu/index.d.ts",
128
- "default": "./fesm2022/masterteam-components-menu.mjs"
126
+ "./module-summary-card": {
127
+ "types": "./types/masterteam-components-module-summary-card.d.ts",
128
+ "default": "./fesm2022/masterteam-components-module-summary-card.mjs"
129
129
  },
130
130
  "./multi-select-field": {
131
- "types": "./multi-select-field/index.d.ts",
131
+ "types": "./types/masterteam-components-multi-select-field.d.ts",
132
132
  "default": "./fesm2022/masterteam-components-multi-select-field.mjs"
133
133
  },
134
- "./page-header": {
135
- "types": "./page-header/index.d.ts",
136
- "default": "./fesm2022/masterteam-components-page-header.mjs"
134
+ "./number-field": {
135
+ "types": "./types/masterteam-components-number-field.d.ts",
136
+ "default": "./fesm2022/masterteam-components-number-field.mjs"
137
137
  },
138
138
  "./page": {
139
- "types": "./page/index.d.ts",
139
+ "types": "./types/masterteam-components-page.d.ts",
140
140
  "default": "./fesm2022/masterteam-components-page.mjs"
141
141
  },
142
- "./number-field": {
143
- "types": "./number-field/index.d.ts",
144
- "default": "./fesm2022/masterteam-components-number-field.mjs"
142
+ "./page-header": {
143
+ "types": "./types/masterteam-components-page-header.d.ts",
144
+ "default": "./fesm2022/masterteam-components-page-header.mjs"
145
145
  },
146
146
  "./paginator": {
147
- "types": "./paginator/index.d.ts",
147
+ "types": "./types/masterteam-components-paginator.d.ts",
148
148
  "default": "./fesm2022/masterteam-components-paginator.mjs"
149
149
  },
150
- "./radio-cards": {
151
- "types": "./radio-cards/index.d.ts",
152
- "default": "./fesm2022/masterteam-components-radio-cards.mjs"
150
+ "./pick-list-field": {
151
+ "types": "./types/masterteam-components-pick-list-field.d.ts",
152
+ "default": "./fesm2022/masterteam-components-pick-list-field.mjs"
153
153
  },
154
154
  "./radio-button-field": {
155
- "types": "./radio-button-field/index.d.ts",
155
+ "types": "./types/masterteam-components-radio-button-field.d.ts",
156
156
  "default": "./fesm2022/masterteam-components-radio-button-field.mjs"
157
157
  },
158
+ "./radio-cards": {
159
+ "types": "./types/masterteam-components-radio-cards.d.ts",
160
+ "default": "./fesm2022/masterteam-components-radio-cards.mjs"
161
+ },
158
162
  "./radio-cards-field": {
159
- "types": "./radio-cards-field/index.d.ts",
163
+ "types": "./types/masterteam-components-radio-cards-field.d.ts",
160
164
  "default": "./fesm2022/masterteam-components-radio-cards-field.mjs"
161
165
  },
162
- "./pick-list-field": {
163
- "types": "./pick-list-field/index.d.ts",
164
- "default": "./fesm2022/masterteam-components-pick-list-field.mjs"
166
+ "./select-field": {
167
+ "types": "./types/masterteam-components-select-field.d.ts",
168
+ "default": "./fesm2022/masterteam-components-select-field.mjs"
165
169
  },
166
170
  "./sidebar": {
167
- "types": "./sidebar/index.d.ts",
171
+ "types": "./types/masterteam-components-sidebar.d.ts",
168
172
  "default": "./fesm2022/masterteam-components-sidebar.mjs"
169
173
  },
170
- "./select-field": {
171
- "types": "./select-field/index.d.ts",
172
- "default": "./fesm2022/masterteam-components-select-field.mjs"
173
- },
174
174
  "./slider-field": {
175
- "types": "./slider-field/index.d.ts",
175
+ "types": "./types/masterteam-components-slider-field.d.ts",
176
176
  "default": "./fesm2022/masterteam-components-slider-field.mjs"
177
177
  },
178
178
  "./table": {
179
- "types": "./table/index.d.ts",
179
+ "types": "./types/masterteam-components-table.d.ts",
180
180
  "default": "./fesm2022/masterteam-components-table.mjs"
181
181
  },
182
- "./text-field": {
183
- "types": "./text-field/index.d.ts",
184
- "default": "./fesm2022/masterteam-components-text-field.mjs"
185
- },
186
182
  "./tabs": {
187
- "types": "./tabs/index.d.ts",
183
+ "types": "./types/masterteam-components-tabs.d.ts",
188
184
  "default": "./fesm2022/masterteam-components-tabs.mjs"
189
185
  },
190
- "./tooltip": {
191
- "types": "./tooltip/index.d.ts",
192
- "default": "./fesm2022/masterteam-components-tooltip.mjs"
186
+ "./text-field": {
187
+ "types": "./types/masterteam-components-text-field.d.ts",
188
+ "default": "./fesm2022/masterteam-components-text-field.mjs"
189
+ },
190
+ "./textarea-field": {
191
+ "types": "./types/masterteam-components-textarea-field.d.ts",
192
+ "default": "./fesm2022/masterteam-components-textarea-field.mjs"
193
193
  },
194
194
  "./toast": {
195
- "types": "./toast/index.d.ts",
195
+ "types": "./types/masterteam-components-toast.d.ts",
196
196
  "default": "./fesm2022/masterteam-components-toast.mjs"
197
197
  },
198
198
  "./toggle-field": {
199
- "types": "./toggle-field/index.d.ts",
199
+ "types": "./types/masterteam-components-toggle-field.d.ts",
200
200
  "default": "./fesm2022/masterteam-components-toggle-field.mjs"
201
201
  },
202
- "./textarea-field": {
203
- "types": "./textarea-field/index.d.ts",
204
- "default": "./fesm2022/masterteam-components-textarea-field.mjs"
202
+ "./tooltip": {
203
+ "types": "./types/masterteam-components-tooltip.d.ts",
204
+ "default": "./fesm2022/masterteam-components-tooltip.mjs"
205
205
  },
206
206
  "./topbar": {
207
- "types": "./topbar/index.d.ts",
207
+ "types": "./types/masterteam-components-topbar.d.ts",
208
208
  "default": "./fesm2022/masterteam-components-topbar.mjs"
209
209
  },
210
- "./user-search-field": {
211
- "types": "./user-search-field/index.d.ts",
212
- "default": "./fesm2022/masterteam-components-user-search-field.mjs"
213
- },
214
210
  "./upload-field": {
215
- "types": "./upload-field/index.d.ts",
211
+ "types": "./types/masterteam-components-upload-field.d.ts",
216
212
  "default": "./fesm2022/masterteam-components-upload-field.mjs"
213
+ },
214
+ "./user-search-field": {
215
+ "types": "./types/masterteam-components-user-search-field.d.ts",
216
+ "default": "./fesm2022/masterteam-components-user-search-field.mjs"
217
217
  }
218
218
  },
219
219
  "module": "fesm2022/masterteam-components.mjs",
220
- "typings": "index.d.ts"
220
+ "typings": "types/masterteam-components.d.ts"
221
221
  }
@@ -4,7 +4,7 @@ import * as i0 from '@angular/core';
4
4
 
5
5
  declare class DialogService extends DialogService$1 {
6
6
  ref: DynamicDialogRef | undefined | null;
7
- open(component: any, config?: DynamicDialogConfig): DynamicDialogRef<any>;
7
+ open(component: any, config?: DynamicDialogConfig): DynamicDialogRef<any> | null;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
9
9
  static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
10
10
  }
@@ -1,7 +1,10 @@
1
- import { EnvironmentProviders } from '@angular/core';
1
+ import { EnvironmentProviders, Signal } from '@angular/core';
2
2
  import { MessageService, ConfirmationService } from 'primeng/api';
3
- import { AbstractControl, ValidatorFn } from '@angular/forms';
4
3
  import { HttpContext } from '@angular/common/http';
4
+ import { ValidatorFn, AbstractControl } from '@angular/forms';
5
+ import * as _masterteam_components from '@masterteam/components';
6
+ import { StateContext } from '@ngxs/store';
7
+ import { Observable } from 'rxjs';
5
8
 
6
9
  interface MTThemeOptions {
7
10
  primaryColor?: string;
@@ -17,28 +20,6 @@ declare function provideMTMessages(): typeof MessageService;
17
20
 
18
21
  declare function provideMTConfirmation(): typeof ConfirmationService;
19
22
 
20
- type TailwindColorPalette = {
21
- [key: string]: string;
22
- };
23
- /**
24
- * Generates a Tailwind-like color palette (50-950) from a primary color (assumed to be 500).
25
- *
26
- * @param primaryColor500 - The hex string of the primary color (e.g., "#0284c7").
27
- * @returns An object representing the color palette, where keys are color numbers (e.g., "50", "100")
28
- * and values are hex color strings.
29
- */
30
- type PaletteShade = '0' | '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
31
- /**
32
- * Generates a Tailwind-like color palette (50-950) from any given base color.
33
- *
34
- * @param baseColorHex - The hex string of the base color (e.g., "#0284c7").
35
- * @param baseColorShade - The shade of the base color (e.g., "500", "700").
36
- * @returns An object representing the full color palette.
37
- */
38
- declare function generateTailwindPalette(baseColorHex: string, baseColorShade?: PaletteShade): TailwindColorPalette;
39
-
40
- declare function isInvalid(control: AbstractControl | null): boolean;
41
-
42
23
  type FieldType = 'text' | 'textarea' | 'select' | 'date' | 'number' | 'slider' | 'multi-select' | 'pick-list' | 'checkbox' | 'icon-field' | 'color-picker' | 'spacer' | string;
43
24
  type ValidatorType = 'required' | 'email' | 'minLength' | 'maxLength' | 'min' | 'max' | 'pattern' | 'custom';
44
25
  type FieldRelationAction = 'enable' | 'disable' | 'show' | 'hide';
@@ -423,5 +404,179 @@ interface FieldState {
423
404
  declare function createCustomValidator(customValidator: (value: any) => boolean | Promise<boolean>, message?: string): ValidatorFn;
424
405
  declare function wrapValidatorWithMessage(validator: ValidatorFn, errorKey: string, message: string): ValidatorFn;
425
406
 
426
- export { BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, DateFieldConfig, EditorFieldConfig, IconFieldConfig, MultiSelectFieldConfig, NumberFieldConfig, PickListFieldConfig, RadioButtonFieldConfig, RadioCardsFieldConfig, SelectFieldConfig, SliderFieldConfig, SpacerFieldConfig, TextFieldConfig, TextareaFieldConfig, ToggleFieldConfig, UploadFileFieldConfig, UserSearchFieldConfig, ValidatorConfig, changeBackgroundColor, changePrimaryColor, changeTextColor, createCustomValidator, generateTailwindPalette, isInvalid, provideMTComponents, provideMTConfirmation, provideMTMessages, wrapValidatorWithMessage };
427
- export type { BaseFieldConstructorConfig, DynamicFieldConfig, DynamicFormConfig, FieldRelationAction, FieldRelationConfig, FieldState, FieldType, LayoutConfig, MTThemeOptions, PaletteShade, ResponsiveColSpan, SectionConfig, ValidatorType };
407
+ /**
408
+ * Query result with separate signals for each property
409
+ */
410
+ interface QueryResult<T> {
411
+ data: Signal<T | null>;
412
+ isPending: Signal<boolean>;
413
+ isSuccess: Signal<boolean>;
414
+ isError: Signal<boolean>;
415
+ error: Signal<string | null>;
416
+ }
417
+ /**
418
+ * Base facade with smart query selector factory
419
+ */
420
+ declare abstract class BaseFacade<TState, TLoadingName extends string> {
421
+ /**
422
+ * Override in child facade to provide the state selector
423
+ */
424
+ protected abstract state(): Signal<TState>;
425
+ /**
426
+ * Creates a query object with separate signals for data, loading, and error states
427
+ * Each property is its own signal for granular reactivity
428
+ *
429
+ * @example
430
+ * readonly modulesQuery = this.query(
431
+ * 'getModulesLoading',
432
+ * (state) => state.allModules
433
+ * );
434
+ *
435
+ * // In template - each is a separate signal:
436
+ * @if (modulesQuery.isPending()) { Loading... }
437
+ * @if (modulesQuery.error(); as error) { Error: {{ error }} }
438
+ * @if (modulesQuery.data(); as modules) {
439
+ * <div *ngFor="let m of modules">{{ m.title }}</div>
440
+ * }
441
+ */
442
+ protected query<T>(loadingKey: TLoadingName, dataSelector: (state: TState) => T): QueryResult<T>;
443
+ /**
444
+ * Creates a loading signal for a specific operation
445
+ */
446
+ protected loading(loadingKey: TLoadingName): Signal<boolean>;
447
+ /**
448
+ * Creates an error signal for a specific operation
449
+ */
450
+ protected errorSignal(loadingKey: TLoadingName): Signal<string | null>;
451
+ }
452
+
453
+ interface LoadingStateShape<L extends string = string> {
454
+ loadingActive: L[];
455
+ errors: Partial<Record<L, string>>;
456
+ }
457
+ type LoadingName<T extends LoadingStateShape<string>> = T['loadingActive'][number];
458
+ declare function startLoading<T extends LoadingStateShape<string>>(ctx: StateContext<T>, loadingName: LoadingName<T>): void;
459
+ declare function endLoading<T extends LoadingStateShape<string>>(ctx: StateContext<T>, loadingName: LoadingName<T>): void;
460
+ declare function setLoadingError<T extends LoadingStateShape<string>>(ctx: StateContext<T>, loadingName: LoadingName<T>, message: string): void;
461
+
462
+ interface Response<T> {
463
+ endpoint: string;
464
+ status: number;
465
+ code: number;
466
+ locale: string;
467
+ message?: string | null;
468
+ errors?: any | null;
469
+ data: T;
470
+ cacheSession?: string;
471
+ }
472
+ interface CrudLoadConfig<T, TState, TData = T[]> {
473
+ key: string;
474
+ request$: Observable<Response<TData>>;
475
+ stateProperty?: (state: TState) => T[];
476
+ updateState?: (state: TState, data: TData) => Partial<TState>;
477
+ transform?: (data: TData) => TData;
478
+ onError?: (error: any, state: TState) => Partial<TState> | void;
479
+ errorMessage?: string;
480
+ }
481
+ interface CrudCreateConfig<T, TState> {
482
+ key: string;
483
+ request$: Observable<Response<T>>;
484
+ stateProperty: (state: TState) => T[];
485
+ updateState?: (state: TState, items: T[]) => Partial<TState>;
486
+ transform?: (data: T) => T;
487
+ onError?: (error: any, state: TState) => Partial<TState> | void;
488
+ errorMessage?: string;
489
+ }
490
+ interface CrudUpdateConfig<T, TState> {
491
+ key: string;
492
+ request$: Observable<Response<T>>;
493
+ uniqueKey: keyof T;
494
+ id: string | number;
495
+ stateProperty: (state: TState) => T[];
496
+ updateState?: (state: TState, items: T[]) => Partial<TState>;
497
+ transform?: (data: T) => T;
498
+ onError?: (error: any, state: TState) => Partial<TState> | void;
499
+ errorMessage?: string;
500
+ }
501
+ interface CrudDeleteConfig<T, TState> {
502
+ key: string;
503
+ request$: Observable<Response<void>>;
504
+ uniqueKey: keyof T;
505
+ id: string | number;
506
+ stateProperty: (state: TState) => T[];
507
+ updateState?: (state: TState, items: T[]) => Partial<TState>;
508
+ onError?: (error: any, state: TState) => Partial<TState> | void;
509
+ errorMessage?: string;
510
+ }
511
+ /**
512
+ * T = entity type (Module, User, ...)
513
+ * TState = full state model (must include LoadingStateShape)
514
+ * TLoad = union type of loading keys for this feature
515
+ */
516
+ declare abstract class CrudStateBase<T, TState extends LoadingStateShape<TLoad>, TLoad extends string> {
517
+ protected adapter: _masterteam_components.EntityAdapter<T>;
518
+ /**
519
+ * Helper to create default updateState function
520
+ */
521
+ private getDefaultUpdateState;
522
+ /**
523
+ * Load data (single item or array) with config object
524
+ */
525
+ protected load<TData = T[]>(ctx: StateContext<TState>, config: CrudLoadConfig<T, TState, TData>): Observable<any>;
526
+ /**
527
+ * Create one entity with config object
528
+ */
529
+ protected create(ctx: StateContext<TState>, config: CrudCreateConfig<T, TState>): Observable<any>;
530
+ /**
531
+ * Update one entity with config object
532
+ */
533
+ protected update(ctx: StateContext<TState>, config: CrudUpdateConfig<T, TState>): Observable<any>;
534
+ /**
535
+ * Delete one entity with config object
536
+ */
537
+ protected delete(ctx: StateContext<TState>, config: CrudDeleteConfig<T, TState>): Observable<any>;
538
+ }
539
+
540
+ type TailwindColorPalette = {
541
+ [key: string]: string;
542
+ };
543
+ /**
544
+ * Generates a Tailwind-like color palette (50-950) from a primary color (assumed to be 500).
545
+ *
546
+ * @param primaryColor500 - The hex string of the primary color (e.g., "#0284c7").
547
+ * @returns An object representing the color palette, where keys are color numbers (e.g., "50", "100")
548
+ * and values are hex color strings.
549
+ */
550
+ type PaletteShade = '0' | '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
551
+ /**
552
+ * Generates a Tailwind-like color palette (50-950) from any given base color.
553
+ *
554
+ * @param baseColorHex - The hex string of the base color (e.g., "#0284c7").
555
+ * @param baseColorShade - The shade of the base color (e.g., "500", "700").
556
+ * @returns An object representing the full color palette.
557
+ */
558
+ declare function generateTailwindPalette(baseColorHex: string, baseColorShade?: PaletteShade): TailwindColorPalette;
559
+
560
+ declare function isInvalid(control: AbstractControl | null): boolean;
561
+
562
+ interface ApiRequestConfig<TState, TResponse> {
563
+ ctx: StateContext<TState>;
564
+ key: string;
565
+ request$: Observable<TResponse>;
566
+ onSuccess: (response: TResponse, state: TState) => Partial<TState> | void;
567
+ onError?: (error: any, state: TState) => Partial<TState> | void;
568
+ errorMessage?: string;
569
+ }
570
+ declare function handleApiRequest<TState extends LoadingStateShape<string>, TResponse>(config: ApiRequestConfig<TState, TResponse>): Observable<any>;
571
+
572
+ interface EntityAdapter<T> {
573
+ addOne(state: T[], entity: T): T[];
574
+ upsertOne(state: T[], entity: T, uniqueKey?: keyof T): T[];
575
+ updateOne(state: T[], id: string | number, changes: Partial<T>, uniqueKey?: keyof T): T[];
576
+ removeOne(state: T[], id: string | number, uniqueKey?: keyof T): T[];
577
+ setAll(state: T[], entities: T[]): T[];
578
+ }
579
+ declare function createEntityAdapter<T>(): EntityAdapter<T>;
580
+
581
+ export { BaseFacade, BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, CrudStateBase, DateFieldConfig, EditorFieldConfig, IconFieldConfig, MultiSelectFieldConfig, NumberFieldConfig, PickListFieldConfig, RadioButtonFieldConfig, RadioCardsFieldConfig, SelectFieldConfig, SliderFieldConfig, SpacerFieldConfig, TextFieldConfig, TextareaFieldConfig, ToggleFieldConfig, UploadFileFieldConfig, UserSearchFieldConfig, ValidatorConfig, changeBackgroundColor, changePrimaryColor, changeTextColor, createCustomValidator, createEntityAdapter, endLoading, generateTailwindPalette, handleApiRequest, isInvalid, provideMTComponents, provideMTConfirmation, provideMTMessages, setLoadingError, startLoading, wrapValidatorWithMessage };
582
+ export type { ApiRequestConfig, BaseFieldConstructorConfig, CrudCreateConfig, CrudDeleteConfig, CrudLoadConfig, CrudUpdateConfig, DynamicFieldConfig, DynamicFormConfig, EntityAdapter, FieldRelationAction, FieldRelationConfig, FieldState, FieldType, LayoutConfig, LoadingStateShape, MTThemeOptions, PaletteShade, QueryResult, ResponsiveColSpan, SectionConfig, ValidatorType };