drill-widgets 2.7.16 → 2.7.18
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/dist/drill-widgets.es.js +452 -283
- package/dist/drill-widgets.umd.js +177 -77
- package/dist/lib.d.ts +47 -1
- package/package.json +1 -1
package/dist/lib.d.ts
CHANGED
|
@@ -19,10 +19,30 @@ export declare interface BuilderConfig {
|
|
|
19
19
|
onWorkflowCreated?: (workflow: Workflow) => void;
|
|
20
20
|
onWorkflowDeleted?: (workflowId: string) => void;
|
|
21
21
|
onWorkflowUpdated?: (workflow: Workflow) => void;
|
|
22
|
+
labelForDrill?: string;
|
|
23
|
+
labelForGroup?: string;
|
|
24
|
+
subjectTypes?: {
|
|
25
|
+
name: string;
|
|
26
|
+
isAssignable: boolean;
|
|
27
|
+
}[];
|
|
28
|
+
groups?: {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
}[];
|
|
22
32
|
}
|
|
23
33
|
|
|
24
34
|
export declare class BuilderWidget extends LitElement {
|
|
25
35
|
static styles: CSSResult;
|
|
36
|
+
labelForDrill: string;
|
|
37
|
+
labelForGroup: string;
|
|
38
|
+
subjectTypes: {
|
|
39
|
+
name: string;
|
|
40
|
+
isAssignable: boolean;
|
|
41
|
+
}[];
|
|
42
|
+
groups: {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
}[];
|
|
26
46
|
private _templateData;
|
|
27
47
|
private _showStepModal;
|
|
28
48
|
private _stepFormData;
|
|
@@ -67,6 +87,7 @@ export declare class BuilderWidget extends LitElement {
|
|
|
67
87
|
private _handleDragOver;
|
|
68
88
|
private _handleDragLeave;
|
|
69
89
|
private _handleDrop;
|
|
90
|
+
private _handleSubjectTypeChange;
|
|
70
91
|
private _addQuestion;
|
|
71
92
|
private _addContentElement;
|
|
72
93
|
private _updateQuestion;
|
|
@@ -202,7 +223,10 @@ export declare interface RunnerConfig {
|
|
|
202
223
|
title: string;
|
|
203
224
|
} | null;
|
|
204
225
|
mode?: string;
|
|
205
|
-
}) =>
|
|
226
|
+
}) => Promise<{
|
|
227
|
+
success: boolean;
|
|
228
|
+
error?: string;
|
|
229
|
+
}>;
|
|
206
230
|
onSignatureCaptured?: (detail: {
|
|
207
231
|
instanceId?: string;
|
|
208
232
|
stepId?: string;
|
|
@@ -247,6 +271,25 @@ export declare class RunnerWidget extends LitElement {
|
|
|
247
271
|
fileSize: number;
|
|
248
272
|
fileType: string;
|
|
249
273
|
}) => void;
|
|
274
|
+
onInstanceUpdated?: (detail: {
|
|
275
|
+
instanceId?: string;
|
|
276
|
+
workflowId?: string;
|
|
277
|
+
completedStepId?: string;
|
|
278
|
+
completedStepData?: {
|
|
279
|
+
id: string;
|
|
280
|
+
title: string;
|
|
281
|
+
responses: any[];
|
|
282
|
+
} | null;
|
|
283
|
+
completedSteps: string[];
|
|
284
|
+
currentStep?: {
|
|
285
|
+
id: string;
|
|
286
|
+
title: string;
|
|
287
|
+
} | null;
|
|
288
|
+
mode?: string;
|
|
289
|
+
}) => Promise<{
|
|
290
|
+
success: boolean;
|
|
291
|
+
error?: string;
|
|
292
|
+
}>;
|
|
250
293
|
private _currentStepIndex;
|
|
251
294
|
private _formData;
|
|
252
295
|
private _validationErrors;
|
|
@@ -258,6 +301,7 @@ export declare class RunnerWidget extends LitElement {
|
|
|
258
301
|
private _isSubmitted;
|
|
259
302
|
private _userStepsSubmitted;
|
|
260
303
|
private _justSaved;
|
|
304
|
+
private _submissionError;
|
|
261
305
|
private validationService;
|
|
262
306
|
private persistenceManager;
|
|
263
307
|
private signatureManager;
|
|
@@ -373,6 +417,7 @@ export declare class RunnerWidget extends LitElement {
|
|
|
373
417
|
* This replaces the old internal state-based completion logic
|
|
374
418
|
*/
|
|
375
419
|
private _shouldShowCompletionView;
|
|
420
|
+
private _renderSubmissionErrorView;
|
|
376
421
|
/**
|
|
377
422
|
* Handles mode-based content routing and basic validation
|
|
378
423
|
* Returns content for special modes or null to continue with normal rendering
|
|
@@ -457,6 +502,7 @@ export declare interface VisibilityRule {
|
|
|
457
502
|
export declare interface Workflow {
|
|
458
503
|
id: string;
|
|
459
504
|
name: string;
|
|
505
|
+
subjectType?: string;
|
|
460
506
|
description?: string;
|
|
461
507
|
steps: Step[];
|
|
462
508
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drill-widgets",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.18",
|
|
4
4
|
"description": "Easily embed powerful workflow building and running capabilities into your web applications with Lit-based web components. Includes HTML export for server-side PDF generation.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|