sequential-workflow-editor
Advanced tools
Comparing version 0.14.6 to 0.14.7
@@ -177,3 +177,3 @@ (function (global, factory) { | ||
items.forEach((item, index) => { | ||
const component = itemComponentFactory(item, context.i18n); | ||
const component = itemComponentFactory(item, context.i18n, index); | ||
component.onItemChanged.subscribe(item => onItemChanged(item, index)); | ||
@@ -180,0 +180,0 @@ component.onDeleteClicked.subscribe(() => onItemDeleted(index)); |
@@ -174,3 +174,3 @@ import { SimpleEvent, DefaultValueContext, GeneratedStringContext, stringDictionaryValueModelId, sequenceValueModelId, branchesValueModelId, ValueContext, PropertyValidatorContext, defaultI18n, ModelActivator, DefinitionValidator, DefinitionContext, StepValidatorContext } from 'sequential-workflow-editor-model'; | ||
items.forEach((item, index) => { | ||
const component = itemComponentFactory(item, context.i18n); | ||
const component = itemComponentFactory(item, context.i18n, index); | ||
component.onItemChanged.subscribe(item => onItemChanged(item, index)); | ||
@@ -177,0 +177,0 @@ component.onDeleteClicked.subscribe(() => onItemDeleted(index)); |
@@ -34,3 +34,3 @@ import { SimpleEvent, I18n, ValueContext, ValidationResult, ValueType, SimpleEventListener, ValueModel, ModelActivator, StringValueModel, UidGenerator, DefinitionModel } from 'sequential-workflow-editor-model'; | ||
} | ||
declare function dynamicListComponent<TItem, TItemComponent extends DynamicListItemComponent<TItem> = DynamicListItemComponent<TItem>>(initialItems: TItem[], itemComponentFactory: (item: TItem, i18n: I18n) => TItemComponent, context: ValueContext, configuration?: DynamicListComponentConfiguration<TItem>): DynamicListComponent<TItem, TItemComponent>; | ||
declare function dynamicListComponent<TItem, TItemComponent extends DynamicListItemComponent<TItem> = DynamicListItemComponent<TItem>>(initialItems: TItem[], itemComponentFactory: (item: TItem, i18n: I18n, index: number) => TItemComponent, context: ValueContext, configuration?: DynamicListComponentConfiguration<TItem>): DynamicListComponent<TItem, TItemComponent>; | ||
@@ -37,0 +37,0 @@ interface InputComponent extends Component { |
{ | ||
"name": "sequential-workflow-editor", | ||
"version": "0.14.6", | ||
"version": "0.14.7", | ||
"type": "module", | ||
@@ -49,7 +49,7 @@ "main": "./lib/esm/index.js", | ||
"dependencies": { | ||
"sequential-workflow-editor-model": "^0.14.6", | ||
"sequential-workflow-editor-model": "^0.14.7", | ||
"sequential-workflow-model": "^0.2.0" | ||
}, | ||
"peerDependencies": { | ||
"sequential-workflow-editor-model": "^0.14.6", | ||
"sequential-workflow-editor-model": "^0.14.7", | ||
"sequential-workflow-model": "^0.2.0" | ||
@@ -56,0 +56,0 @@ }, |
Sorry, the diff of this file is not supported yet
187898