@bfwk/property-editor
Advanced tools
Comparing version 0.6.40 to 0.6.42
@@ -6,10 +6,18 @@ # Change Log | ||
## [0.6.40](https://github.com/salesforce/builder-framework/compare/v0.6.39...v0.6.40) (2021-07-07) | ||
## [0.6.42](https://github.com/salesforce/builder-framework/compare/v0.6.40...v0.6.42) (2021-07-09) | ||
**Note:** Version bump only for package @bfwk/property-editor | ||
### Bug Fixes | ||
* dependent properties bug @W-9516731 ([#158](https://github.com/salesforce/builder-framework/issues/158)) ([3f22a03](https://github.com/salesforce/builder-framework/commit/3f22a033f844b110bb2501610533994803063538)) | ||
### Features | ||
* allow whitelisted custom keywords @W-9534658 ([#142](https://github.com/salesforce/builder-framework/issues/142)) ([ea9731c](https://github.com/salesforce/builder-framework/commit/ea9731c33a189cc0808d7d6ea95a822208ec2ec4)) | ||
## [0.6.7](https://git.soma.salesforce.com/BuilderFramework/builder-framework/compare/v0.6.6...v0.6.7) (2021-04-05) | ||
@@ -16,0 +24,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { Json } from '@lcem/declarative-type'; | ||
import { Json } from '@lcem/meta-schemas'; | ||
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
@@ -34,2 +34,4 @@ import { MayHaveDependentValue, ParameterizedComponent } from './may-have-dependent-value'; | ||
protected builderSpecificValueInfo?: BuilderSpecificValueInfo; | ||
private propertyEditorComponentRenderedCallback?; | ||
private propertyEditorComponentRendered; | ||
constructor(instrumentationService: InstrumentationService, property: PropertySchema, valueMayHaveChangedCallback: ValueMayHaveChangedCallback<T>, editorInstanceData: PropertyEditorInstanceData, value: T | null, validity?: Validity, dependentValue?: any); | ||
@@ -51,2 +53,5 @@ getPropertyName(): string; | ||
editorModuleLoaded(component: PropertyEditorComponent<T>): void; | ||
setPropertyEditorComponentRenderedCallback(callback: () => void): void; | ||
hasPropertyEditorComponentRenderedCallback(): boolean; | ||
isPropertyEditorComponentRendered(): boolean; | ||
} |
@@ -35,13 +35,18 @@ import { ErrorHandler } from '@bfwk/error-handler'; | ||
publishPropertiesEvent(name: string, validity: Validity, value: any | null, changed: boolean, builderSpecificValueInfo?: BuilderSpecificValueInfo): Promise<PropertiesEventPayload>; | ||
publishPropertySheetRenderedEvent(): void; | ||
} | ||
export declare class BasePropertySheet implements PropertySheet, BasePropertySheetItemVisitor { | ||
private readonly validationService; | ||
private readonly instrumentationService; | ||
private readonly publisher; | ||
private readonly propertySheetDescriptionProvider; | ||
private readonly initialState; | ||
private readonly instrumentationService; | ||
private readonly instrumentation; | ||
private readonly validationService; | ||
private readonly builderSpecificData?; | ||
private readonly propertyEditorMap; | ||
private readonly errorMessages; | ||
private readonly whitelistedCustomKeywords; | ||
private readonly auraPropertyEditorWrapper; | ||
private readonly depth; | ||
private readonly propertyValueValidityGetter?; | ||
private readonly builderSpecificData; | ||
private readonly instrumentation; | ||
private dependencyMap; | ||
@@ -51,6 +56,4 @@ private propertyEditors; | ||
private propertySheetComponent?; | ||
private readonly auraPropertyEditorWrapper; | ||
private readonly validatorFormatExtensions; | ||
private readonly propertyValueValidityGetter?; | ||
constructor(validationService: PropertyValidationService, errorHandler: ErrorHandler, instrumentationService: InstrumentationService, publisher: PublishEvent, propertySheetDescriptionProvider: PropertySheetDescriptionProvider, initialState: PropertyState, propertyEditorMap: PropertyEditorMap, errorMessages: ErrorMessageMap, featureSet: FeatureSet, auraPropertyEditorWrapper: FullyQualifiedName, getPropertyValueValidity?: PropertyValueValidityGetter, builderSpecificData?: any); | ||
constructor(validationService: PropertyValidationService, errorHandler: ErrorHandler, instrumentationService: InstrumentationService, publisher: PublishEvent, propertySheetDescriptionProvider: PropertySheetDescriptionProvider, initialState: PropertyState, propertyEditorMap: PropertyEditorMap, errorMessages: ErrorMessageMap, featureSet: FeatureSet, whitelistedCustomKeywords: string[], auraPropertyEditorWrapper: FullyQualifiedName, depth?: number, propertyValueValidityGetter?: PropertyValueValidityGetter | undefined, builderSpecificData?: any); | ||
validate(force?: boolean): Promise<boolean>; | ||
@@ -57,0 +60,0 @@ protected getState(): PropertyState; |
import { DesignTimeComponentPropertyInfoService } from '@bfwk/data-service'; | ||
import { Json } from '@lcem/declarative-type'; | ||
import { Json } from '@lcem/meta-schemas'; | ||
import { PropertyValidationService, Validity } from './property-editor'; | ||
@@ -4,0 +4,0 @@ export declare class ComponentPropertyEditorService implements PropertyValidationService { |
@@ -1,4 +0,3 @@ | ||
import { Json } from '@lcem/declarative-type'; | ||
import { View } from '@lcem/unified-experience-model'; | ||
import { DeclarativeTypeMap } from '@lcem/meta-schemas'; | ||
import { DeclarativeTypeMap, Json } from '@lcem/meta-schemas'; | ||
export declare function generateDefaultViewBySchema(schema: Json, referenceMap?: DeclarativeTypeMap): View; |
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
import { Validator, Json } from '@lcem/declarative-type'; | ||
import { Validator } from '@lcem/declarative-type'; | ||
import { Json } from '@lcem/meta-schemas'; | ||
import { PropertyEditor, PropertySchema, Validity } from './property-editor'; | ||
@@ -4,0 +5,0 @@ import { BasePropertySheetItemVisitor } from './base-property-sheet-item-visitor'; |
@@ -9,2 +9,5 @@ import { InstrumentationService } from '@bfwk/instrumentation'; | ||
export declare const PROPERTY_SHEET_SYSTEM = "PropertySheet"; | ||
export declare const COMPONENT_RESOLUTION = "ComponentResolution"; | ||
export declare const UNIFIED_VIEW_MODEL_ADOPTION = "UnifiedViewModelAdoption"; | ||
export declare const PROPERTY_SHEET_RENDER = "PropertySheetRender"; | ||
export declare class PropertyEditingInstrumentation implements ValidationInstrumentation { | ||
@@ -20,2 +23,6 @@ private instrumentationService; | ||
propertySheetInitEnd(attributes?: any): void; | ||
componentResolutionStart(attributes?: any): void; | ||
componentResolutionEnd(attributes?: any): void; | ||
propertySheetRenderStart(attributes?: any): void; | ||
propertySheetRenderEnd(attributes?: any): void; | ||
propertyEditorValidationStart(attributes?: any): void; | ||
@@ -22,0 +29,0 @@ beforeValidationStep(step: number, context?: object): void; |
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
import { Json, Validator } from '@lcem/declarative-type'; | ||
import { Validator } from '@lcem/declarative-type'; | ||
import { Json } from '@lcem/meta-schemas'; | ||
import { PropertyEditorConfig, PropertyEditorInstanceData } from './property-editor-config'; | ||
@@ -4,0 +5,0 @@ import { ValueValidationCallback } from './metadata-driven-property-editor'; |
@@ -22,2 +22,4 @@ import { ErrorHandler } from '@bfwk/error-handler'; | ||
private propertyValueValidityGetter?; | ||
private whitelistedCustomKeywords; | ||
private depth; | ||
setAuraPropertyEditorWrapper(auraPropertyEditorWrapper: FullyQualifiedName | null): this; | ||
@@ -33,3 +35,5 @@ setFeatureSet(featureSet: FeatureSet): this; | ||
setPropertyValueValidityGetter(getPropertyValueValidity: PropertyValueValidityGetter): this; | ||
setWhitelistedCustomKeywords(whitelistedCustomKeywords?: string[]): this; | ||
setDepth(depth: number): this; | ||
build(): PropertySheetFactory; | ||
} |
@@ -21,6 +21,8 @@ import { ErrorHandler } from '@bfwk/error-handler'; | ||
private readonly featureSet; | ||
private readonly whitelistedCustomKeywords; | ||
private readonly depth; | ||
private readonly propertyValueValidityGetter?; | ||
constructor(errorHandler: ErrorHandler, instrumentationService: InstrumentationService, publishEvent: PublishEvent, propertyValidationService: PropertyValidationService, customEditorsByPropertyType: PropertyEditorMap, data: any, errorMessages: ErrorMessageMap, auraPropertyEditorWrapper: FullyQualifiedName, featureSet: FeatureSet, propertyValueValidityGetter?: PropertyValueValidityGetter); | ||
constructor(errorHandler: ErrorHandler, instrumentationService: InstrumentationService, publishEvent: PublishEvent, propertyValidationService: PropertyValidationService, customEditorsByPropertyType: PropertyEditorMap, data: any, errorMessages: ErrorMessageMap, auraPropertyEditorWrapper: FullyQualifiedName, featureSet: FeatureSet, whitelistedCustomKeywords: string[], depth: number, propertyValueValidityGetter?: PropertyValueValidityGetter | undefined); | ||
createMetadataDrivenPropertySheet(propertySheetDescriptionProvider: PropertySheetDescriptionProvider, initialState: PropertyState, data?: any): PropertySheet; | ||
createCustomPropertySheet(propertySheetClass: ClassConstructor, propertySheetDescriptionProvider: PropertySheetDescriptionProvider, initialState: PropertyState, data?: any): PropertySheet; | ||
} |
import { ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator'; | ||
import { Json } from '@lcem/declarative-type'; | ||
import { Json } from '@lcem/meta-schemas'; | ||
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
@@ -4,0 +4,0 @@ import { PropertySchema } from '../../property-editor'; |
import { ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator'; | ||
import { DeclarativeTypeMap, Renderers, Component } from '@lcem/meta-schemas'; | ||
import { Json, ValidatorFormatExtension } from '@lcem/declarative-type'; | ||
import { DeclarativeTypeMap, Renderers, Component, Json } from '@lcem/meta-schemas'; | ||
import { ValidatorFormatExtension } from '@lcem/declarative-type'; | ||
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
@@ -23,3 +23,4 @@ import { Properties, PropertyState } from '../property-sheet'; | ||
private readonly infoComponents; | ||
constructor(schema: Json, properties: Properties | undefined, propertyEditorMap: PropertyEditorMap, instrumentationService: InstrumentationService, dependencyMapBuilder: DependencyMapBuilder, initialState: PropertyState, basePropertySheetItemVisitor: BasePropertySheetItemVisitor, validationCallback: ValueValidationCallback<any>, valueChangeCallback: ValueMayHaveChangedCallback<any>, errorMessages: ErrorMessageMap, renderers: Renderers, validatorFormatExtensions: ValidatorFormatExtension[], getPropertyValueValidity?: PropertyValueValidityGetter, referenceMap?: DeclarativeTypeMap); | ||
private readonly instrumentationService; | ||
constructor(schema: Json, properties: Properties | undefined, propertyEditorMap: PropertyEditorMap, instrumentationService: InstrumentationService, dependencyMapBuilder: DependencyMapBuilder, initialState: PropertyState, basePropertySheetItemVisitor: BasePropertySheetItemVisitor, validationCallback: ValueValidationCallback<any>, valueChangeCallback: ValueMayHaveChangedCallback<any>, errorMessages: ErrorMessageMap, renderers: Renderers, validatorFormatExtensions: ValidatorFormatExtension[], whitelistedCustomKeywords: string[], depth: number, propertyEditorComponentRenderedCallback?: () => void, getPropertyValueValidity?: PropertyValueValidityGetter, referenceMap?: DeclarativeTypeMap); | ||
resolve(component: Component): Promise<ComponentDefinition<LWCComponentInstance> | null>; | ||
@@ -26,0 +27,0 @@ getPropertyEditors(): PropertyEditor<any>[]; |
import { ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator'; | ||
import { DeclarativeType, DeclarativeTypeMap, Component } from '@lcem/meta-schemas'; | ||
import { Json, Validator, ValidatorFormatExtension } from '@lcem/declarative-type'; | ||
import { DeclarativeType, DeclarativeTypeMap, Component, Json } from '@lcem/meta-schemas'; | ||
import { Validator, ValidatorFormatExtension } from '@lcem/declarative-type'; | ||
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
@@ -14,3 +14,3 @@ import { PropertyEditor, PropertySchema } from '../property-editor'; | ||
export declare class PropertyTypeBasedResolver implements ComponentResolver<LWCComponentInstance> { | ||
private readonly usePicklistForEnum; | ||
private readonly createPropertyEditor; | ||
private readonly schema; | ||
@@ -21,9 +21,10 @@ private readonly properties; | ||
private readonly dependencyMapBuilder; | ||
private readonly createPropertyEditor; | ||
private readonly providesPropertyEditorConfigInstance; | ||
private readonly validationFormatExtensions; | ||
private readonly referenceMap; | ||
private readonly whitelistedCustomKeywords; | ||
private readonly initialState; | ||
private readonly createPropertySheetEditor; | ||
constructor(createPropertyEditor: CreatePropertyEditor, schema: Json, properties: Properties | undefined, instrumentationService: InstrumentationService, visitor: BasePropertySheetItemVisitor, dependencyMapBuilder: DependencyMapBuilder, providesPropertyEditorConfigInstance: PropertyEditorConfigInstanceProvider, validationFormatExtensions: ValidatorFormatExtension[], initialState: PropertyState, createPropertySheetEditor: CreatePropertySheetEditor, referenceMap?: DeclarativeTypeMap, usePicklistForEnum?: boolean); | ||
private readonly referenceMap; | ||
private readonly usePicklistForEnum; | ||
constructor(createPropertyEditor: CreatePropertyEditor, schema: Json, properties: Properties | undefined, instrumentationService: InstrumentationService, visitor: BasePropertySheetItemVisitor, dependencyMapBuilder: DependencyMapBuilder, providesPropertyEditorConfigInstance: PropertyEditorConfigInstanceProvider, validationFormatExtensions: ValidatorFormatExtension[], whitelistedCustomKeywords: string[], initialState: PropertyState, createPropertySheetEditor: CreatePropertySheetEditor, referenceMap?: DeclarativeTypeMap, usePicklistForEnum?: boolean); | ||
resolve(viewMetadata: Component): Promise<ComponentDefinition<LWCComponentInstance> | null>; | ||
@@ -30,0 +31,0 @@ private getPropertyEditorConfigByType; |
@@ -1,2 +0,2 @@ | ||
import { Json } from '@lcem/declarative-type'; | ||
import { Json } from '@lcem/meta-schemas'; | ||
import { DataProviderInstance, JsonValue } from '@lcem/unified-experience-model'; | ||
@@ -3,0 +3,0 @@ export declare class SchemaDataProvider implements DataProviderInstance { |
@@ -20,5 +20,5 @@ import { BasePropertySheet } from './base-property-sheet'; | ||
private readonly stateKeeper; | ||
constructor(validationService: PropertyValidationService, errorHandler: ErrorHandler, instrumentationService: InstrumentationService, publishEvent: PublishEvent, propertySheetDescriptionProvider: PropertySheetDescriptionProvider, initialState: PropertyState, propertyEditorMap: PropertyEditorMap, errorMessages: ErrorMessageMap, featureSet: FeatureSet, auraPropertyEditorWrapper: FullyQualifiedName, getPropertyValueValidity?: PropertyValueValidityGetter, builderSpecificData?: any); | ||
constructor(validationService: PropertyValidationService, errorHandler: ErrorHandler, instrumentationService: InstrumentationService, publishEvent: PublishEvent, propertySheetDescriptionProvider: PropertySheetDescriptionProvider, initialState: PropertyState, propertyEditorMap: PropertyEditorMap, errorMessages: ErrorMessageMap, featureSet: FeatureSet, whitelistedCustomKeywords: string[], auraPropertyEditorWrapper: FullyQualifiedName, depth?: number, getPropertyValueValidity?: PropertyValueValidityGetter, builderSpecificData?: any); | ||
protected getState(): import("./property-sheet-state").PropertySheetState; | ||
} | ||
export declare function createStatefulPropertySheetFactory(callback: (newValue: any) => void): PropertySheetFactory; |
@@ -1,2 +0,3 @@ | ||
import { Json, ValidationResult, Validator } from '@lcem/declarative-type'; | ||
import { ValidationResult, Validator } from '@lcem/declarative-type'; | ||
import { Json } from '@lcem/meta-schemas'; | ||
import { Validity } from '../property-editor'; | ||
@@ -3,0 +4,0 @@ import { ValidationInstrumentation } from './validation-steps'; |
{ | ||
"name": "@bfwk/property-editor", | ||
"version": "0.6.40", | ||
"version": "0.6.42", | ||
"description": "LBF Property Editor", | ||
@@ -33,13 +33,13 @@ "type": "module", | ||
"dependencies": { | ||
"@bfwk/data-service": "0.6.40", | ||
"@bfwk/error-handler": "0.6.40", | ||
"@bfwk/expression-completion": "0.6.40", | ||
"@bfwk/instrumentation": "0.6.40", | ||
"@bfwk/pub-sub": "0.6.40", | ||
"@bfwk/store": "0.6.40", | ||
"@bfwk/utils": "0.6.40", | ||
"@lcem/declarative-type": "0.6.17", | ||
"@lcem/declarative-ui-generator": "0.6.17", | ||
"@lcem/meta-schemas": "0.6.17", | ||
"@lcem/unified-experience-model": "0.6.17", | ||
"@bfwk/data-service": "0.6.42", | ||
"@bfwk/error-handler": "0.6.42", | ||
"@bfwk/expression-completion": "0.6.42", | ||
"@bfwk/instrumentation": "0.6.42", | ||
"@bfwk/pub-sub": "0.6.42", | ||
"@bfwk/store": "0.6.42", | ||
"@bfwk/utils": "0.6.42", | ||
"@lcem/declarative-type": "0.6.19", | ||
"@lcem/declarative-ui-generator": "0.6.19", | ||
"@lcem/meta-schemas": "0.6.19", | ||
"@lcem/unified-experience-model": "0.6.19", | ||
"@lwc/wire-service": "1.17.6" | ||
@@ -46,0 +46,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
615793
14153
+ Added@bfwk/command@0.6.42(transitive)
+ Added@bfwk/data-service@0.6.42(transitive)
+ Added@bfwk/error-handler@0.6.42(transitive)
+ Added@bfwk/expression-completion@0.6.42(transitive)
+ Added@bfwk/instrumentation@0.6.42(transitive)
+ Added@bfwk/pub-sub@0.6.42(transitive)
+ Added@bfwk/store@0.6.42(transitive)
+ Added@bfwk/utils@0.6.42(transitive)
+ Added@lcem/declarative-type@0.6.19(transitive)
+ Added@lcem/declarative-ui-generator@0.6.19(transitive)
+ Added@lcem/meta-schemas@0.6.19(transitive)
+ Added@lcem/unified-experience-model@0.6.19(transitive)
- Removed@bfwk/command@0.6.40(transitive)
- Removed@bfwk/data-service@0.6.40(transitive)
- Removed@bfwk/error-handler@0.6.40(transitive)
- Removed@bfwk/expression-completion@0.6.40(transitive)
- Removed@bfwk/instrumentation@0.6.40(transitive)
- Removed@bfwk/pub-sub@0.6.40(transitive)
- Removed@bfwk/store@0.6.40(transitive)
- Removed@bfwk/utils@0.6.40(transitive)
- Removed@lcem/declarative-type@0.6.17(transitive)
- Removed@lcem/declarative-ui-generator@0.6.17(transitive)
- Removed@lcem/meta-schemas@0.6.17(transitive)
- Removed@lcem/unified-experience-model@0.6.17(transitive)
Updated@bfwk/data-service@0.6.42
Updated@bfwk/error-handler@0.6.42
Updated@bfwk/instrumentation@0.6.42
Updated@bfwk/pub-sub@0.6.42
Updated@bfwk/store@0.6.42
Updated@bfwk/utils@0.6.42
Updated@lcem/meta-schemas@0.6.19