@bpmn-io/form-js-editor 1.15.3 → 1.16.1-alpha.0

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.
@@ -124,21 +124,26 @@ export class FormEditor {
124
124
  * @internal
125
125
  */
126
126
  _getModules(): ({
127
- __depends__: import("didi").ModuleDeclaration[];
127
+ __depends__: {
128
+ editorActions: (string | typeof import("diagram-js/lib/features/editor-actions/EditorActions").default)[];
129
+ }[];
128
130
  editorActions: (string | typeof import("./features/editor-actions/FormEditorActions").FormEditorActions)[];
129
131
  } | {
130
132
  __init__: string[];
131
133
  expressionLanguage: (string | typeof import("@bpmn-io/form-js-viewer").FeelExpressionLanguage)[];
132
134
  templating: (string | typeof import("./features/expression-language/EditorTemplating").EditorTemplating)[];
133
135
  } | {
134
- __depends__: import("didi").ModuleDeclaration[];
136
+ __depends__: {
137
+ keyboard: (string | typeof import("diagram-js/lib/features/keyboard/Keyboard").default)[];
138
+ keyboardBindings: (string | typeof import("diagram-js/lib/features/keyboard/KeyboardBindings").default)[];
139
+ }[];
135
140
  __init__: string[];
136
141
  keyboardBindings: (string | typeof import("./features/keyboard/FormEditorKeyboardBindings").FormEditorKeyboardBindings)[];
137
142
  } | {
138
143
  __init__: string[];
139
144
  dragging: (string | typeof import("./features/dragging/Dragging").Dragging)[];
140
145
  } | {
141
- __depends__: (import("didi").ModuleDeclaration | {
146
+ __depends__: ({
142
147
  __init__: string[];
143
148
  idBehavior: (string | typeof import("./features/modeling/behavior/IdBehavior").IdBehavior)[];
144
149
  keyBehavior: (string | typeof import("./features/modeling/behavior/KeyBehavior").KeyBehavior)[];
@@ -147,6 +152,8 @@ export class FormEditor {
147
152
  optionsSourceBehavior: (string | typeof import("./features/modeling/behavior/OptionsSourceBehavior").OptionsSourceBehavior)[];
148
153
  columnsSourceBehavior: (string | typeof import("./features/modeling/behavior/ColumnsSourceBehavior").ColumnsSourceBehavior)[];
149
154
  tableDataSourceBehavior: (string | typeof import("./features/modeling/behavior/TableDataSourceBehavior").TableDataSourceBehavior)[];
155
+ } | {
156
+ commandStack: (string | typeof import("diagram-js/lib/command/CommandStack").default)[];
150
157
  })[];
151
158
  __init__: string[];
152
159
  formLayoutUpdater: (string | typeof import("./features/modeling/FormLayoutUpdater").FormLayoutUpdater)[];
@@ -1,5 +1,7 @@
1
1
  export namespace EditorActionsModule {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: {
3
+ editorActions: (string | typeof import("diagram-js/lib/features/editor-actions/EditorActions").default)[];
4
+ }[];
3
5
  let editorActions: (string | typeof FormEditorActions)[];
4
6
  }
5
7
  import { FormEditorActions } from './FormEditorActions';
@@ -1,5 +1,8 @@
1
1
  export namespace FormEditorKeyboardModule {
2
- let __depends__: import("didi").ModuleDeclaration[];
2
+ let __depends__: {
3
+ keyboard: (string | typeof import("diagram-js/lib/features/keyboard/Keyboard").default)[];
4
+ keyboardBindings: (string | typeof import("diagram-js/lib/features/keyboard/KeyboardBindings").default)[];
5
+ }[];
3
6
  let __init__: string[];
4
7
  let keyboardBindings: (string | typeof FormEditorKeyboardBindings)[];
5
8
  }
@@ -1,5 +1,5 @@
1
1
  export namespace ModelingModule {
2
- let __depends__: (import("didi").ModuleDeclaration | {
2
+ let __depends__: ({
3
3
  __init__: string[];
4
4
  idBehavior: (string | typeof import("./behavior/IdBehavior").IdBehavior)[];
5
5
  keyBehavior: (string | typeof import("./behavior/KeyBehavior").KeyBehavior)[];
@@ -8,6 +8,8 @@ export namespace ModelingModule {
8
8
  optionsSourceBehavior: (string | typeof import("./behavior/OptionsSourceBehavior").OptionsSourceBehavior)[];
9
9
  columnsSourceBehavior: (string | typeof import("./behavior/ColumnsSourceBehavior").ColumnsSourceBehavior)[];
10
10
  tableDataSourceBehavior: (string | typeof import("./behavior/TableDataSourceBehavior").TableDataSourceBehavior)[];
11
+ } | {
12
+ commandStack: (string | typeof import("diagram-js/lib/command/CommandStack").default)[];
11
13
  })[];
12
14
  let __init__: string[];
13
15
  let formLayoutUpdater: (string | typeof FormLayoutUpdater)[];
@@ -23,6 +23,15 @@ export function hasOptionsGroupsConfigured(formFieldDefinition: any): any;
23
23
  * @param {string} path
24
24
  */
25
25
  export function hasIntegerPathSegment(path: string): boolean;
26
+ /**
27
+ * Factory for isEdited functions that check against a default.
28
+ *
29
+ * @param {string} defaultValue The default value to check against.
30
+ * @param {boolean} [includeEmptyAsDefault=true] If true, an empty value (e.g., '') is also considered a default state.
31
+ * @return {(node: HTMLElement) => boolean} A function that returns true if the node's value is edited.
32
+ */
33
+ export function isEditedFromDefaultFactory(defaultValue: string, includeEmptyAsDefault?: boolean): (node: HTMLElement) => boolean;
34
+ export function isTrueDefaultToggleSwitchEntryEdited(node: any): boolean;
26
35
  export const LABELED_NON_INPUTS: string[];
27
36
  export const INPUTS: string[];
28
37
  export const OPTIONS_INPUTS: string[];
@@ -1,10 +1,10 @@
1
1
  export function DateTimeConstraintsEntry(props: any): {
2
2
  id: string;
3
- component: typeof TimeIntervalSelect;
3
+ component: typeof DisallowPassedDates;
4
4
  isEdited: any;
5
5
  editField: any;
6
6
  field: any;
7
7
  isDefaultVisible: (field: any) => any;
8
8
  }[];
9
- declare function TimeIntervalSelect(props: any): any;
9
+ declare function DisallowPassedDates(props: any): any;
10
10
  export {};
@@ -1,7 +1,7 @@
1
1
  export function DateTimeFormatEntry(props: any): {
2
2
  id: string;
3
3
  component: typeof TimeFormatSelect;
4
- isEdited: any;
4
+ isEdited: (node: HTMLElement) => boolean;
5
5
  editField: any;
6
6
  field: any;
7
7
  isDefaultVisible: {};
@@ -1,7 +1,7 @@
1
1
  export function HeadersSourceSelectEntry(props: any): {
2
2
  id: string;
3
3
  component: typeof HeadersSourceSelect;
4
- isEdited: any;
4
+ isEdited: (node: HTMLElement) => boolean;
5
5
  editField: any;
6
6
  field: any;
7
7
  }[];
@@ -1,7 +1,7 @@
1
1
  export function OptionsSourceSelectEntry(props: any): {
2
2
  id: string;
3
3
  component: typeof ValuesSourceSelect;
4
- isEdited: any;
4
+ isEdited: (node: HTMLElement) => boolean;
5
5
  editField: any;
6
6
  field: any;
7
7
  }[];
@@ -3,7 +3,7 @@ export function TextEntry(props: any): {
3
3
  component: typeof Text;
4
4
  editField: any;
5
5
  field: any;
6
- isEdited: any;
6
+ isEdited: (node: HTMLElement) => boolean;
7
7
  isDefaultVisible: (field: any) => boolean;
8
8
  }[];
9
9
  declare function Text(props: any): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-editor",
3
- "version": "1.15.3",
3
+ "version": "1.16.1-alpha.0",
4
4
  "description": "Edit forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -48,8 +48,8 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@bpmn-io/draggle": "^4.1.1",
51
- "@bpmn-io/form-js-viewer": "^1.15.3",
52
- "@bpmn-io/properties-panel": "^3.26.3",
51
+ "@bpmn-io/form-js-viewer": "^1.16.1-alpha.0",
52
+ "@bpmn-io/properties-panel": "^3.30.2",
53
53
  "array-move": "^4.0.0",
54
54
  "big.js": "^6.2.2",
55
55
  "ids": "^1.0.5",
@@ -63,5 +63,5 @@
63
63
  "files": [
64
64
  "dist"
65
65
  ],
66
- "gitHead": "fc508fe3094ca05d50d29721b9304f16061a2478"
66
+ "gitHead": "649946402dde671f2b49b0ccc9d38367cafba7fc"
67
67
  }