@masterteam/work-center 0.0.3 → 0.0.4
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/work-center",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/work-center",
|
|
6
6
|
"linkDirectory": false,
|
|
@@ -20,11 +20,12 @@
|
|
|
20
20
|
"rxjs": "^7.8.2",
|
|
21
21
|
"tailwindcss": "^4.1.17",
|
|
22
22
|
"tailwindcss-primeui": "^0.6.1",
|
|
23
|
-
"@masterteam/
|
|
23
|
+
"@masterteam/forms": "^0.0.46",
|
|
24
|
+
"@masterteam/components": "^0.0.99",
|
|
24
25
|
"@masterteam/client-components": "^0.0.7",
|
|
25
|
-
"@masterteam/
|
|
26
|
-
"@masterteam/
|
|
27
|
-
"@masterteam/
|
|
26
|
+
"@masterteam/discussion": "^0.0.1",
|
|
27
|
+
"@masterteam/structure-builder": "^0.0.34",
|
|
28
|
+
"@masterteam/icons": "^0.0.13"
|
|
28
29
|
},
|
|
29
30
|
"sideEffects": false,
|
|
30
31
|
"exports": {
|
|
@@ -8,6 +8,7 @@ import { Type } from '@angular/core';
|
|
|
8
8
|
import { ClientPageMenuItem } from '@masterteam/components/client-page-menu';
|
|
9
9
|
import { PropertyFilterBuilderSchema, PropertyFilterBuilderRule } from '@masterteam/components/property-filter-builder';
|
|
10
10
|
import { LoadingStateShape } from '@masterteam/components';
|
|
11
|
+
import { ModalService } from '@masterteam/components/modal';
|
|
11
12
|
import * as rxjs from 'rxjs';
|
|
12
13
|
import * as _masterteam_components_types_masterteam_components_statistic_card from '@masterteam/components/types/masterteam-components-statistic-card';
|
|
13
14
|
import * as _masterteam_components_types_masterteam_components_table from '@masterteam/components/types/masterteam-components-table';
|
|
@@ -129,6 +130,27 @@ interface WorkCenterItemBasicInfoData {
|
|
|
129
130
|
item: Record<string, unknown> | null;
|
|
130
131
|
warnings: WorkCenterRuntimeWarningDto[];
|
|
131
132
|
}
|
|
133
|
+
interface WorkCenterRuntimeItemAction {
|
|
134
|
+
actionKey: string;
|
|
135
|
+
actionName?: TranslatableDto | null;
|
|
136
|
+
httpMethod?: string | null;
|
|
137
|
+
url?: string | null;
|
|
138
|
+
isAvailable?: boolean;
|
|
139
|
+
stepIds?: Array<number | string>;
|
|
140
|
+
needConfirmation?: boolean;
|
|
141
|
+
payloadKeys?: string[];
|
|
142
|
+
requiredPayloadKeys?: string[];
|
|
143
|
+
payloadTemplate?: Record<string, unknown> | null;
|
|
144
|
+
formId?: string | number | null;
|
|
145
|
+
}
|
|
146
|
+
interface WorkCenterItemActionsData {
|
|
147
|
+
cardKey: string | null;
|
|
148
|
+
sourceType: string | null;
|
|
149
|
+
type: string | null;
|
|
150
|
+
context: Record<string, unknown> | null;
|
|
151
|
+
actions: WorkCenterRuntimeItemAction[];
|
|
152
|
+
warnings: WorkCenterRuntimeWarningDto[];
|
|
153
|
+
}
|
|
132
154
|
interface WorkCenterContext {
|
|
133
155
|
area: WorkCenterArea;
|
|
134
156
|
templateId: number | null;
|
|
@@ -170,10 +192,10 @@ interface WorkCenterBootstrapInputs {
|
|
|
170
192
|
sort?: unknown;
|
|
171
193
|
filters?: unknown;
|
|
172
194
|
}
|
|
173
|
-
interface
|
|
195
|
+
interface WorkCenterItemModalComponentInput {
|
|
174
196
|
contextKey: WorkCenterItemContextKey;
|
|
175
197
|
}
|
|
176
|
-
interface
|
|
198
|
+
interface WorkCenterItemModalOptions {
|
|
177
199
|
component?: Type<unknown> | null;
|
|
178
200
|
header?: string;
|
|
179
201
|
styleClass?: string;
|
|
@@ -188,8 +210,8 @@ declare class WorkCenterPage {
|
|
|
188
210
|
readonly area: _angular_core.InputSignal<WorkCenterArea>;
|
|
189
211
|
readonly pageTitle: _angular_core.InputSignal<string>;
|
|
190
212
|
readonly menuIcon: _angular_core.InputSignal<string>;
|
|
191
|
-
readonly
|
|
192
|
-
readonly
|
|
213
|
+
readonly openItemsInModal: _angular_core.InputSignal<boolean>;
|
|
214
|
+
readonly itemModal: _angular_core.InputSignal<WorkCenterItemModalOptions | null>;
|
|
193
215
|
readonly runtimeFiltersChanged: _angular_core.OutputEmitterRef<WorkCenterFilterRule[]>;
|
|
194
216
|
readonly itemClicked: _angular_core.OutputEmitterRef<string>;
|
|
195
217
|
protected readonly context: _angular_core.Signal<_masterteam_work_center.WorkCenterContext>;
|
|
@@ -203,7 +225,7 @@ declare class WorkCenterPage {
|
|
|
203
225
|
protected readonly tableCurrentPage: _angular_core.Signal<number>;
|
|
204
226
|
protected readonly tableFirst: _angular_core.Signal<number>;
|
|
205
227
|
protected readonly propertyFilterSchema: _angular_core.Signal<PropertyFilterBuilderSchema | null>;
|
|
206
|
-
private readonly
|
|
228
|
+
private readonly defaultModalStyleClass;
|
|
207
229
|
onMenuItemClick(item: ClientPageMenuItem): void;
|
|
208
230
|
onLazyLoad(event: any): void;
|
|
209
231
|
onRuntimeFiltersApplied(filters: PropertyFilterBuilderRule[]): void;
|
|
@@ -212,35 +234,40 @@ declare class WorkCenterPage {
|
|
|
212
234
|
protected readonly rowsClickable: _angular_core.Signal<boolean>;
|
|
213
235
|
private resolveRowContextKey;
|
|
214
236
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WorkCenterPage, never>;
|
|
215
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WorkCenterPage, "mt-work-center-page", never, { "area": { "alias": "area"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "menuIcon": { "alias": "menuIcon"; "required": false; "isSignal": true; }; "
|
|
237
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WorkCenterPage, "mt-work-center-page", never, { "area": { "alias": "area"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "menuIcon": { "alias": "menuIcon"; "required": false; "isSignal": true; }; "openItemsInModal": { "alias": "openItemsInModal"; "required": false; "isSignal": true; }; "itemModal": { "alias": "itemModal"; "required": false; "isSignal": true; }; }, { "runtimeFiltersChanged": "runtimeFiltersChanged"; "itemClicked": "itemClicked"; }, never, never, true, never>;
|
|
216
238
|
}
|
|
217
239
|
|
|
218
|
-
declare class
|
|
240
|
+
declare class WorkCenterItemModal {
|
|
219
241
|
readonly details: _angular_core.InputSignal<WorkCenterItemBasicInfoData>;
|
|
220
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
221
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
242
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WorkCenterItemModal, never>;
|
|
243
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WorkCenterItemModal, "mt-work-center-item-modal", never, { "details": { "alias": "details"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
222
244
|
}
|
|
223
245
|
|
|
224
|
-
declare class
|
|
246
|
+
declare class WorkCenterItemModalRoute {
|
|
225
247
|
private readonly http;
|
|
226
248
|
private readonly router;
|
|
227
249
|
private readonly route;
|
|
250
|
+
readonly modal: ModalService;
|
|
228
251
|
readonly contextKey: _angular_core.InputSignal<string | null>;
|
|
229
252
|
protected readonly drawerVisible: _angular_core.WritableSignal<boolean>;
|
|
230
253
|
protected readonly loading: _angular_core.WritableSignal<boolean>;
|
|
231
254
|
protected readonly error: _angular_core.WritableSignal<string | null>;
|
|
232
255
|
protected readonly details: _angular_core.WritableSignal<WorkCenterItemBasicInfoData | null>;
|
|
256
|
+
protected readonly detailsReloadTick: _angular_core.WritableSignal<number>;
|
|
257
|
+
protected readonly footerActionsMounted: _angular_core.WritableSignal<boolean>;
|
|
233
258
|
protected readonly resolvedContextKey: _angular_core.Signal<string | null>;
|
|
234
259
|
protected readonly drawerTitle: _angular_core.Signal<string>;
|
|
235
260
|
protected readonly drawerSubtitle: _angular_core.Signal<string>;
|
|
236
261
|
constructor();
|
|
262
|
+
protected onActionExecuted(): void;
|
|
263
|
+
protected onFooterVisibilityChange(visible: boolean): void;
|
|
237
264
|
onVisibleChange(visible: boolean): Promise<void>;
|
|
238
|
-
private
|
|
265
|
+
private closeRouteOutlet;
|
|
239
266
|
private decodeContextKey;
|
|
240
267
|
private resolveErrorMessage;
|
|
241
268
|
private readDisplayField;
|
|
242
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
243
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
269
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WorkCenterItemModalRoute, never>;
|
|
270
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WorkCenterItemModalRoute, "mt-work-center-item-modal-route", never, { "contextKey": { "alias": "contextKey"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
244
271
|
}
|
|
245
272
|
|
|
246
273
|
declare class EnterArea {
|
|
@@ -322,5 +349,5 @@ declare class WorkCenterState {
|
|
|
322
349
|
|
|
323
350
|
declare const APP_STATES: (typeof WorkCenterState)[];
|
|
324
351
|
|
|
325
|
-
export { APP_STATES, EnterArea, HydrateFromContext, LoadRuntime, SetParams, WORK_CENTER_MAX_FILTERS, WORK_CENTER_MAX_PAGE_SIZE, WORK_CENTER_MAX_SORT, WORK_CENTER_QUERY_VERSION, WorkCenterActionKey, WorkCenterFacade,
|
|
326
|
-
export type { ApiEnvelope, TranslatableDto, WorkCenterArea, WorkCenterAreaState, WorkCenterBootstrapInputs, WorkCenterColumnsConfig, WorkCenterContext, WorkCenterFilterOperator, WorkCenterFilterRule, WorkCenterHydratePatch, WorkCenterItemBasicInfoData, WorkCenterItemContextKey,
|
|
352
|
+
export { APP_STATES, EnterArea, HydrateFromContext, LoadRuntime, SetParams, WORK_CENTER_MAX_FILTERS, WORK_CENTER_MAX_PAGE_SIZE, WORK_CENTER_MAX_SORT, WORK_CENTER_QUERY_VERSION, WorkCenterActionKey, WorkCenterFacade, WorkCenterItemModal, WorkCenterItemModalRoute, WorkCenterPage, WorkCenterState };
|
|
353
|
+
export type { ApiEnvelope, TranslatableDto, WorkCenterArea, WorkCenterAreaState, WorkCenterBootstrapInputs, WorkCenterColumnsConfig, WorkCenterContext, WorkCenterFilterOperator, WorkCenterFilterRule, WorkCenterHydratePatch, WorkCenterItemActionsData, WorkCenterItemBasicInfoData, WorkCenterItemContextKey, WorkCenterItemModalComponentInput, WorkCenterItemModalOptions, WorkCenterLoadReason, WorkCenterRuntimeCard, WorkCenterRuntimeFilterSchema, WorkCenterRuntimeItemAction, WorkCenterRuntimeOperatorOption, WorkCenterRuntimePagination, WorkCenterRuntimeProperty, WorkCenterRuntimeRequest, WorkCenterRuntimeResponseData, WorkCenterRuntimeSelectedCard, WorkCenterRuntimeStatsItem, WorkCenterRuntimeWarningDto, WorkCenterSortRule, WorkCenterStateModel };
|