drill-widgets 2.7.6 → 2.7.10

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/lib.d.ts CHANGED
@@ -15,6 +15,7 @@ declare interface BaseElement {
15
15
  }
16
16
 
17
17
  export declare interface BuilderConfig {
18
+ workflow?: Workflow;
18
19
  onWorkflowCreated?: (workflow: Workflow) => void;
19
20
  onWorkflowDeleted?: (workflowId: string) => void;
20
21
  onWorkflowUpdated?: (workflow: Workflow) => void;
@@ -30,11 +31,12 @@ export declare class BuilderWidget extends LitElement {
30
31
  private _selectedStepId;
31
32
  private _questions;
32
33
  onCancel?: () => void;
33
- onSave?: (workflowJson: Workflow) => void;
34
34
  onWorkflowCreated?: (workflow: Workflow) => void;
35
35
  onWorkflowDeleted?: (workflowId: string) => void;
36
36
  onWorkflowUpdated?: (workflow: Workflow) => void;
37
+ workflow?: Workflow;
37
38
  connectedCallback(): void;
39
+ updated(changedProperties: Map<string | number | symbol, unknown>): void;
38
40
  private _getDefaultWorkflowData;
39
41
  private _handleTitleChange;
40
42
  private _handleDescriptionChange;
@@ -62,6 +64,8 @@ export declare class BuilderWidget extends LitElement {
62
64
  private _getContentTypeDisplayName;
63
65
  private _getCheckboxTypeDisplayName;
64
66
  private _hasSteps;
67
+ private _showStepMenu;
68
+ private _deleteStep;
65
69
  private _getAssignmentDisplayText;
66
70
  render(): TemplateResult<1>;
67
71
  }
@@ -116,8 +120,6 @@ export declare interface Instance {
116
120
  name: string;
117
121
  dueDate?: Date | null;
118
122
  status: "draft" | "active" | "completed" | "canceled";
119
- createdAt: Date;
120
- updatedAt: Date;
121
123
  steps: Step[];
122
124
  currentStepId?: string;
123
125
  completedSteps: string[];
@@ -440,7 +442,6 @@ export declare interface Workflow {
440
442
  name: string;
441
443
  description?: string;
442
444
  steps: Step[];
443
- assignment?: StepAssignment;
444
445
  }
445
446
 
446
447
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drill-widgets",
3
- "version": "2.7.6",
3
+ "version": "2.7.10",
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",