@talxis/base-controls 1.2505.4 → 1.2505.6
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/components/DatasetControl/DatasetControl.js +5 -4
- package/dist/components/DatasetControl/DatasetControl.js.map +1 -1
- package/dist/components/DatasetControl/styles.d.ts +3 -3
- package/dist/components/DatasetControl/styles.js +7 -21
- package/dist/components/DatasetControl/styles.js.map +1 -1
- package/dist/components/Grid/core/components/AgGrid/AgGrid.js +4 -2
- package/dist/components/Grid/core/components/AgGrid/AgGrid.js.map +1 -1
- package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js +3 -1
- package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js.map +1 -1
- package/dist/components/Grid/core/components/Cell/Cell.js +23 -15
- package/dist/components/Grid/core/components/Cell/Cell.js.map +1 -1
- package/dist/components/Grid/core/components/Cell/CellContent/CellContent.d.ts +6 -1
- package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js +2 -1
- package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js.map +1 -1
- package/dist/components/Grid/core/model/Grid.d.ts +3 -2
- package/dist/components/Grid/core/model/Grid.js +20 -6
- package/dist/components/Grid/core/model/Grid.js.map +1 -1
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.js +3 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.js.map +1 -1
- package/dist/components/Grid/paging/components/Paging/Paging.js +1 -1
- package/dist/components/Grid/paging/components/Paging/Paging.js.map +1 -1
- package/dist/components/Grid/translations.d.ts +4 -0
- package/dist/components/Grid/translations.js +2 -1
- package/dist/components/Grid/translations.js.map +1 -1
- package/dist/components/GridCellRenderer/GridCellRenderer.js +6 -2
- package/dist/components/GridCellRenderer/GridCellRenderer.js.map +1 -1
- package/dist/components/GridCellRenderer/RecordCommands/Icon.js +32 -0
- package/dist/components/GridCellRenderer/RecordCommands/Icon.js.map +1 -0
- package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.d.ts +13 -0
- package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.js +103 -0
- package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.js.map +1 -0
- package/dist/components/GridCellRenderer/RecordCommands/styles.d.ts +13 -0
- package/dist/components/GridCellRenderer/RecordCommands/styles.js +32 -0
- package/dist/components/GridCellRenderer/RecordCommands/styles.js.map +1 -0
- package/dist/components/GridCellRenderer/index.d.ts +1 -0
- package/dist/components/GridCellRenderer/interfaces.d.ts +10 -1
- package/dist/components/NestedControlRenderer/NestedControl.js +3 -3
- package/dist/components/NestedControlRenderer/NestedControl.js.map +1 -1
- package/dist/index.d.ts +16 -4
- package/package.json +2 -2
- package/dist/components/Grid/core/components/Cell/Commands/Commands.d.ts +0 -7
- package/dist/components/Grid/core/components/Cell/Commands/Commands.js +0 -29
- package/dist/components/Grid/core/components/Cell/Commands/Commands.js.map +0 -1
- package/dist/components/Grid/core/components/Cell/Commands/Icon.js +0 -14
- package/dist/components/Grid/core/components/Cell/Commands/Icon.js.map +0 -1
- package/dist/components/Grid/core/components/Cell/Commands/styles.d.ts +0 -40
- package/dist/components/Grid/core/components/Cell/Commands/styles.js +0 -54
- package/dist/components/Grid/core/components/Cell/Commands/styles.js.map +0 -1
- package/dist/components/Grid/core/components/Cell/Commands/useCommands.d.ts +0 -5
- package/dist/components/Grid/core/components/Cell/Commands/useCommands.js +0 -54
- package/dist/components/Grid/core/components/Cell/Commands/useCommands.js.map +0 -1
- package/dist/components/Grid/core/model/Metadata.d.ts +0 -7
- /package/dist/components/{Grid/core/components/Cell/Commands → GridCellRenderer/RecordCommands}/Icon.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestedControl.js","sources":["../../../src/components/NestedControlRenderer/NestedControl.ts"],"sourcesContent":["import { DataType, DataTypes, PromiseCache } from \"@talxis/client-libraries\";\nimport { Property } from \"./properties/Property\";\nimport { TextProperty } from \"./properties/TextProperty\";\nimport { OptionSetProperty } from \"./properties/OptionSetProperty\";\nimport { NumberProperty } from \"./properties/NumberProperty\";\nimport { DateProperty } from \"./properties/DateProperty\";\nimport { LookupProperty } from \"./properties/LookupProperty\";\nimport { IControl, IParameters, IProperty } from \"../../interfaces\";\nimport { ControlTheme, IFluentDesignState } from \"../../utils\";\nimport { Manifest } from \"./manifest\";\nimport { FileProperty } from \"./properties/FileProperty\";\nimport { NestedControlError } from \"./NestedControlError\";\nimport { IBinding, IControlStates } from \"./interfaces\";\n\n\nconst manifestCache = new PromiseCache();\nconst LOADED_CONTROLS = new Set<string>();\n\n\nexport interface IOptions {\n onGetBindings: () => {\n [key: string]: IBinding;\n }\n /**\n * PCF Context of parent control using this class. It will be used as base for nested control PCF context.\n */\n parentPcfContext: ComponentFramework.Context<any, any>;\n\n /**\n * Custom PCF to be rendered, if not provided you will get Base Control props.\n */\n /**\n* Container element into which the control will be rendered in.\n*/\n onGetContainerElement?: () => HTMLDivElement;\n onGetControlName?: () => string;\n callbacks?: {\n onInit?: (instance: NestedControl) => void;\n onGetControlStates?: () => IControlStates | undefined\n onNotifyOutputChanged?: (ouputs: any) => void;\n\n /**\n * Triggers when the control changes a state that should be visible in control renderer UI (for example loading)\n */\n onControlStateChanged?: () => void;\n },\n overrides?: {\n onGetProps?: (props: IControl<any, any, any, any>) => IControl<any, any, any, any>;\n onRender?: (control: NestedControl, defaultRender: () => Promise<void>) => void;\n onUnmount?: (control: NestedControl, defaultUnmount: () => void) => void;\n }\n}\n\nexport class NestedControl {\n private _options: IOptions;\n private _pendingInitialRender: boolean = false;\n private _errorMessage: string = '';\n private _properties: Map<string, Property> = new Map();\n private _lastRenderedControlName: string = '';\n private _hasCustomPcfBeenMounted: boolean = false;\n private _customControlInstance: ComponentFramework.StandardControl<any, any> | null = null;\n private _customControlId: string = '';\n private _manifest: Manifest | null = null;\n private _loading: boolean = false;\n private _props: IControl<IParameters, any, any, any> | undefined;\n private _mutationObserver: MutationObserver | null = new MutationObserver((mutations) => this._checkIfControlLoadedToDom(mutations));\n private _destroyed: boolean = false;\n private _initialized: boolean = false;\n private _container: HTMLDivElement | null = null;\n private _hasControlBeenPatched: boolean = false;\n\n constructor(options: IOptions) {\n this._options = options;\n this._getPropertiesFromBindings()\n }\n\n public getProps(): IControl<IParameters, any, any, any> {\n if (!this._props) {\n return this.refreshProps()\n }\n return this._props;\n }\n\n public refreshProps() {\n const parameters: { [name: string]: IProperty } = this.getParameters();\n const props: IControl<any, any, any, any> = {\n context: {\n ...this.getOptions().parentPcfContext,\n parameters: parameters,\n mode: Object.create(this.getOptions().parentPcfContext.mode, {\n isControlDisabled: {\n value: this.getOptions().callbacks?.onGetControlStates?.()?.isControlDisabled ?? false\n }\n }),\n factory: {\n ...this.getOptions().parentPcfContext.factory,\n requestRender: () => this.render()\n },\n fluentDesignLanguage: this._getFluentDesignLanguage(this.getOptions().parentPcfContext.fluentDesignLanguage)\n },\n parameters: parameters,\n onNotifyOutputChanged: (outputs: any) => {\n Object.entries(outputs).map(([name, output]) => {\n this.getOptions().onGetBindings()[name]?.onNotifyOutputChanged?.(output)\n })\n this.getOptions().callbacks?.onNotifyOutputChanged?.(outputs);\n }\n }\n const result = this._overrideDecorator(() => props, this.getOptions().overrides?.onGetProps, () => [props] as any);\n this._props = result;\n return result;\n }\n\n public getParameters() {\n const parameters: { [name: string]: IProperty } = {};\n [...this._properties.entries()].map(([name, prop]) => {\n const binding = this.getOptions().onGetBindings()[name];\n //binding might not exist if we have switched controls\n if (binding) {\n parameters[name] = {\n ...prop.getParameter(),\n error: binding.error ?? false,\n errorMessage: binding.errorMessage ?? null,\n type: prop.dataType\n };\n }\n })\n return parameters;\n }\n\n public isLoading() {\n return this._loading;\n }\n\n public setLoading(loading: boolean) {\n this._loading = loading;\n }\n\n public getOptions() {\n return this._options;\n }\n\n public async render() {\n if (this._pendingInitialRender || this._destroyed) {\n return;\n }\n await this._getPropertiesFromBindings();\n if (this._destroyed) {\n return;\n }\n this.refreshProps();\n //if we detect a change in name, unmount the component before render\n if (this._lastRenderedControlName && this._lastRenderedControlName !== this.getControlName()) {\n this.unmount(true)\n }\n if (!this._customControlId) {\n this._customControlId = crypto.randomUUID();\n }\n await this._overrideDecorator(async () => this._render(), this.getOptions().overrides?.onRender, () => [this, async () => this._render()] as any);\n if (this._destroyed) {\n return;\n }\n this._lastRenderedControlName = this.getControlName();\n }\n public unmount(softUnmount?: boolean) {\n this._overrideDecorator(() => this._unmount(), this.getOptions().overrides?.onUnmount, () => [this, () => this._unmount()] as any)\n this._lastRenderedControlName = '';\n this._hasCustomPcfBeenMounted = false;\n this._hasControlBeenPatched = false;\n this._customControlId = '';\n this._mutationObserver?.disconnect();\n if (!softUnmount) {\n this._mutationObserver = null;\n this._customControlInstance = null;\n this._props = undefined;\n this._container = null;\n this._properties.clear();\n this._destroyed = true;\n }\n }\n public getErrorMessage(): string {\n return this._errorMessage;\n }\n public setError(message?: string) {\n this._errorMessage = message ?? '';\n }\n public isMountedPcfComponent() {\n return this._hasCustomPcfBeenMounted;\n }\n\n public getContainer() {\n let container = this.getOptions().onGetContainerElement?.();\n if (container) {\n this._container = container;\n return container;\n }\n if (this._container) {\n return this._container;\n }\n if (!container && this._container) {\n return this._container;\n }\n throw new Error('Cannot render control if no container is specified!');\n }\n\n public getControlName() {\n const controlName = this.getOptions().onGetControlName?.();\n if (!controlName) {\n throw new Error(\"Cannot render control if it's name is not specified!\");\n }\n return controlName;\n }\n\n public getBindings() {\n return this.getOptions().onGetBindings();\n }\n\n public getCustomControlId() {\n return this._customControlId;\n }\n\n private _overrideDecorator<T extends any[], K>(defaultMethod: () => K | Promise<K>, override?: (...args: T) => any, getOverrideArgs?: () => T) {\n if (override && getOverrideArgs) {\n return override(...getOverrideArgs());\n }\n else {\n return defaultMethod();\n }\n }\n\n private _unmount() {\n (this.getOptions().parentPcfContext as any).factory.unbindDOMComponent(this._customControlId)\n\n }\n private async _render(): Promise<void> {\n try {\n if (!this._lastRenderedControlName) {\n this._errorMessage = '';\n this._pendingInitialRender = true;\n const controlName = this.getControlName();\n if (!LOADED_CONTROLS.has(controlName)) {\n this._loading = true;\n this.getOptions().callbacks?.onControlStateChanged?.();\n }\n this._mutationObserver?.observe(this.getContainer(), { childList: true, subtree: true });\n try {\n this._manifest = await this._getManifest(controlName);\n }\n catch (err) {\n throw new NestedControlError({\n message: `Could not find control named ${controlName} on this environment.`\n }, this);\n }\n if (this._destroyed) {\n return;\n }\n try {\n const properties: any = {\n controlstates: this.getOptions().callbacks?.onGetControlStates?.() ?? {},\n parameters: this._getCustomControlParameters(this._manifest!),\n childeventlisteners: [{\n eventname: \"onInit\",\n eventhandler: (control: ComponentFramework.StandardControl<any, any>) => {\n this._customControlInstance = control;\n this._patchUpdateView(this._customControlInstance!, this._manifest!);\n }\n }]\n };\n const component = (this.getOptions().parentPcfContext as any).factory.createComponent(controlName, this._customControlId, properties);\n (this.getOptions().parentPcfContext as any).factory.bindDOMElement(component, this.getContainer());\n this._hasCustomPcfBeenMounted = true;\n }\n catch (err) {\n throw new NestedControlError(err as any, this);\n }\n this._pendingInitialRender = false;\n }\n //the PCF did not change, just call updateView\n else {\n this._customControlInstance?.updateView?.(this.getProps().context)\n }\n }\n catch (err) {\n this._pendingInitialRender = false;\n this._pendingInitialRender = false;\n console.error(err);\n }\n }\n\n private _getCustomControlNameWithoutPrefix() {\n const parts = this._lastRenderedControlName.split('_');\n return parts[1] ?? parts[0];\n }\n\n private _checkIfControlLoadedToDom(mutations: MutationRecord[]) {\n try {\n mutations.map(mutation => {\n const target = mutation.target as HTMLElement;\n if (target.classList.contains(this._getCustomControlNameWithoutPrefix())) {\n this._loading = false;\n LOADED_CONTROLS.add(this._lastRenderedControlName);\n this._mutationObserver?.disconnect();\n if (!this._customControlInstance) {\n this._unmount();\n throw new NestedControlError({\n message: `Custom control ${this._lastRenderedControlName} does not expose it's instance through fireEvent. Please add fireEvent to init() to avoid unintentional behavior.`\n }, this)\n }\n else {\n this.getOptions().callbacks?.onControlStateChanged?.();\n }\n }\n });\n }\n catch(err) {\n console.error(err);\n }\n }\n\n private async _getPropertiesFromBindings() {\n const promises: Promise<boolean>[] = [];\n Object.entries(this.getOptions().onGetBindings()).map(([name, binding]) => {\n if (!this._properties.get(name)) {\n const getBinding = () => this.getOptions().onGetBindings()[name];\n const propertyInstance = this._getPropertyInstance(getBinding);\n const metadata = getBinding()?.metadata;\n //push to promise only if we need to fetch the metadata asynchronously\n if (metadata?.attributeName && metadata.entityName) {\n promises.push(propertyInstance.init());\n }\n else {\n propertyInstance.init();\n }\n this._properties.set(name, propertyInstance);\n }\n })\n if (promises.length > 0) {\n await Promise.all(promises);\n }\n if (!this._initialized) {\n this._initialized = true;\n this.getOptions().callbacks?.onInit?.(this)\n }\n }\n\n private _getPropertyInstance(onGetBinding: () => IBinding) {\n switch (onGetBinding().type) {\n case DataTypes.TwoOptions:\n case DataTypes.OptionSet:\n case DataTypes.MultiSelectOptionSet: {\n return new OptionSetProperty(this.getOptions(), onGetBinding);\n }\n case DataTypes.DateAndTimeDateAndTime:\n case DataTypes.DateAndTimeDateOnly: {\n return new DateProperty(this.getOptions(), onGetBinding);\n }\n case DataTypes.WholeNone:\n case DataTypes.Decimal:\n case DataTypes.Currency:\n case DataTypes.WholeDuration: {\n return new NumberProperty(this.getOptions(), onGetBinding);\n }\n case DataTypes.LookupSimple:\n case DataTypes.LookupOwner:\n case DataTypes.LookupCustomer:\n case DataTypes.LookupRegarding: {\n return new LookupProperty(this.getOptions(), onGetBinding);\n }\n case DataTypes.File:\n case DataTypes.Image: {\n return new FileProperty(this.getOptions(), onGetBinding)\n }\n default: {\n return new TextProperty(this.getOptions(), onGetBinding);\n }\n }\n }\n private _getPrimaryBindingName(): string {\n const primaryBinding = Object.entries(this.getOptions().onGetBindings()).find(([key, binding]) => !binding.isStatic)?.[0];\n if (!primaryBinding) {\n throw new Error('Control needs to have atleast one non-static binding!');\n }\n return primaryBinding;\n }\n private _getManifestPrimaryBinding(manifest: Manifest) {\n return [...manifest.control.properties.values()].find(prop => prop.isBindingProperty)!;\n }\n private async _getManifest(controlName: string) {\n return manifestCache.get(controlName, async () => {\n const result = await this.getOptions().parentPcfContext.webAPI.retrieveMultipleRecords('customcontrol', `?$select=name,manifest&$filter=name eq '${controlName}'`);\n const manifestXmlString = result.entities[0].manifest;\n return new Manifest(manifestXmlString);\n })\n }\n private _getCustomControlParameters(manifest: Manifest) {\n const result: { [name: string]: any } = {};\n const bindingParameters = this.getProps().parameters;\n const manifestProperties = [...manifest.control.properties.values()];\n manifestProperties.map(property => {\n result[property.name] = {\n Static: property.usage === 'input',\n Primary: property.isBindingProperty,\n //if no ofType is present, there is a type group and we need to get the type from the passed parameters above\n Type: property.ofType ?? bindingParameters[property.name]?.type ?? 'SingleLine.Text',\n //if static, we take the value that came from the parameter above\n Value: (() => {\n const binding = bindingParameters[property.name];\n if (binding) {\n return binding.raw;\n }\n if (property.usage === 'input') {\n return property.defaultValue;\n }\n if (property.isBindingProperty) {\n return bindingParameters[this._getPrimaryBindingName()].raw;\n }\n })(),\n Usage: (() => {\n switch (property.usage) {\n case 'bound': {\n return 3;\n }\n case 'input':\n case 'output': {\n return 0;\n }\n }\n })(),\n Attributes: (() => {\n const getBindingMetadata = (bindingName: string) => {\n const binding = this.getOptions().onGetBindings()[bindingName];\n return binding?.metadata ? {\n EntityLogicalName: binding.metadata.entityName,\n LogicalName: binding.metadata.attributeName\n } : undefined;\n };\n const propertyBindingMetadata = getBindingMetadata(property.name);\n\n if (propertyBindingMetadata) {\n return propertyBindingMetadata;\n }\n\n if (property.isBindingProperty) {\n return getBindingMetadata(this._getPrimaryBindingName());\n }\n\n return undefined;\n })(),\n Callback: (value: any) => {\n let binding = this.getOptions().onGetBindings()[property.name];\n let bindingName = property.name;\n if (!binding && !property.isBindingProperty) {\n return;\n }\n if (!binding) {\n bindingName = this._getPrimaryBindingName();\n binding = this.getOptions().onGetBindings()[bindingName]\n }\n binding.onNotifyOutputChanged?.(value);\n const boundBindings = Object.entries(this.getOptions().onGetBindings()).filter(([key, binding]) => !binding.isStatic);\n const outputs: any = {};\n boundBindings.map(([key, binding]) => {\n outputs[key] = key === bindingName ? value : this.getProps().parameters[bindingName].raw\n })\n this.getOptions().callbacks?.onNotifyOutputChanged?.(outputs)\n }\n }\n })\n const nonManifestParameters = Object.entries(bindingParameters).filter(([key, value]) => !manifest.control.properties.get(key));\n nonManifestParameters.map(([key, parameter]) => {\n result[key] = {\n Static: true,\n Primary: false,\n Type: parameter.type ?? 'SingleLine.Text',\n Value: parameter.raw,\n Usage: 0\n }\n })\n return result;\n }\n private _patchUpdateView(control: ComponentFramework.StandardControl<any, any>, manifest: Manifest) {\n if (this._hasControlBeenPatched) {\n return;\n }\n let originalContext: ComponentFramework.Context<any, any> | null = null;\n const originalUpdateView = control.updateView.bind(control);\n control.updateView = (context) => {\n if (!originalContext) {\n originalContext = context;\n }\n originalUpdateView(this._patchContext(manifest, originalContext));\n }\n this._hasControlBeenPatched = true;\n }\n private _patchContext(manifest: Manifest, originalContext: ComponentFramework.Context<any, any>) {\n const context = this.getProps().context;\n const contextParameters = originalContext.parameters;\n const parameters = this.getProps().parameters;\n const manifestBindingProperty = this._getManifestPrimaryBinding(manifest);\n const primaryBindingName = this._getPrimaryBindingName();\n context.resources = originalContext.resources;\n context.events = originalContext.events;\n context.parameters = {\n ...contextParameters,\n ...parameters,\n [manifestBindingProperty.name]: parameters[primaryBindingName]\n }\n\n return context;\n }\n private _getFluentDesignLanguage(fluentDesignLanguage?: IFluentDesignState): IFluentDesignState {\n const v8Theme = ControlTheme.GetV8ThemeFromFluentDesignLanguage(fluentDesignLanguage);\n return ControlTheme.GenerateFluentDesignLanguage(v8Theme.palette.themePrimary, v8Theme.semanticColors.bodyBackground, v8Theme.semanticColors.bodyText, {\n v8FluentOverrides: fluentDesignLanguage?.v8FluentOverrides,\n applicationTheme: fluentDesignLanguage?.applicationTheme ?? v8Theme\n })\n }\n}"],"names":[],"mappings":";;;;;;;;;;;AAeA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C,CAAC;QACtF,OAAO,YAAY,CAAC,4BAA4B,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,cAAc,CAAC,cAAc,EAAE,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE;YACnJ,iBAAiB,EAAE,oBAAoB,EAAE,iBAAiB;AAC1D,YAAA,gBAAgB,EAAE,oBAAoB,EAAE,gBAAgB,IAAI,OAAO;AACtE,SAAA,CAAC,CAAA;KACL;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"NestedControl.js","sources":["../../../src/components/NestedControlRenderer/NestedControl.ts"],"sourcesContent":["import { DataType, DataTypes, PromiseCache } from \"@talxis/client-libraries\";\nimport { Property } from \"./properties/Property\";\nimport { TextProperty } from \"./properties/TextProperty\";\nimport { OptionSetProperty } from \"./properties/OptionSetProperty\";\nimport { NumberProperty } from \"./properties/NumberProperty\";\nimport { DateProperty } from \"./properties/DateProperty\";\nimport { LookupProperty } from \"./properties/LookupProperty\";\nimport { IControl, IParameters, IProperty } from \"../../interfaces\";\nimport { ControlTheme, IFluentDesignState } from \"../../utils\";\nimport { Manifest } from \"./manifest\";\nimport { FileProperty } from \"./properties/FileProperty\";\nimport { NestedControlError } from \"./NestedControlError\";\nimport { IBinding, IControlStates } from \"./interfaces\";\n\n\nconst manifestCache = new PromiseCache();\nconst LOADED_CONTROLS = new Set<string>();\n\n\nexport interface IOptions {\n onGetBindings: () => {\n [key: string]: IBinding;\n }\n /**\n * PCF Context of parent control using this class. It will be used as base for nested control PCF context.\n */\n parentPcfContext: ComponentFramework.Context<any, any>;\n\n /**\n * Custom PCF to be rendered, if not provided you will get Base Control props.\n */\n /**\n* Container element into which the control will be rendered in.\n*/\n onGetContainerElement?: () => HTMLDivElement;\n onGetControlName?: () => string;\n callbacks?: {\n onInit?: (instance: NestedControl) => void;\n onGetControlStates?: () => IControlStates | undefined\n onNotifyOutputChanged?: (ouputs: any) => void;\n\n /**\n * Triggers when the control changes a state that should be visible in control renderer UI (for example loading)\n */\n onControlStateChanged?: () => void;\n },\n overrides?: {\n onGetProps?: (props: IControl<any, any, any, any>) => IControl<any, any, any, any>;\n onRender?: (control: NestedControl, defaultRender: () => Promise<void>) => void;\n onUnmount?: (control: NestedControl, defaultUnmount: () => void) => void;\n }\n}\n\nexport class NestedControl {\n private _options: IOptions;\n private _pendingInitialRender: boolean = false;\n private _errorMessage: string = '';\n private _properties: Map<string, Property> = new Map();\n private _lastRenderedControlName: string = '';\n private _hasCustomPcfBeenMounted: boolean = false;\n private _customControlInstance: ComponentFramework.StandardControl<any, any> | null = null;\n private _customControlId: string = '';\n private _manifest: Manifest | null = null;\n private _loading: boolean = false;\n private _props: IControl<IParameters, any, any, any> | undefined;\n private _mutationObserver: MutationObserver | null = new MutationObserver((mutations) => this._checkIfControlLoadedToDom(mutations));\n private _destroyed: boolean = false;\n private _initialized: boolean = false;\n private _container: HTMLDivElement | null = null;\n private _hasControlBeenPatched: boolean = false;\n\n constructor(options: IOptions) {\n this._options = options;\n this._getPropertiesFromBindings()\n }\n\n public getProps(): IControl<IParameters, any, any, any> {\n if (!this._props) {\n return this.refreshProps()\n }\n return this._props;\n }\n\n public refreshProps() {\n const parameters: { [name: string]: IProperty } = this.getParameters();\n const props: IControl<any, any, any, any> = {\n context: {\n ...this.getOptions().parentPcfContext,\n parameters: parameters,\n mode: Object.create(this.getOptions().parentPcfContext.mode, {\n isControlDisabled: {\n value: this.getOptions().callbacks?.onGetControlStates?.()?.isControlDisabled ?? false\n }\n }),\n factory: {\n ...this.getOptions().parentPcfContext.factory,\n requestRender: () => this.render()\n },\n fluentDesignLanguage: this._getFluentDesignLanguage(this.getOptions().parentPcfContext.fluentDesignLanguage)\n },\n parameters: parameters,\n onNotifyOutputChanged: (outputs: any) => {\n Object.entries(outputs).map(([name, output]) => {\n this.getOptions().onGetBindings()[name]?.onNotifyOutputChanged?.(output)\n })\n this.getOptions().callbacks?.onNotifyOutputChanged?.(outputs);\n }\n }\n const result = this._overrideDecorator(() => props, this.getOptions().overrides?.onGetProps, () => [props] as any);\n this._props = result;\n return result;\n }\n\n public getParameters() {\n const parameters: { [name: string]: IProperty } = {};\n [...this._properties.entries()].map(([name, prop]) => {\n const binding = this.getOptions().onGetBindings()[name];\n //binding might not exist if we have switched controls\n if (binding) {\n parameters[name] = {\n ...prop.getParameter(),\n error: binding.error ?? false,\n errorMessage: binding.errorMessage ?? null,\n type: prop.dataType\n };\n }\n })\n return parameters;\n }\n\n public isLoading() {\n return this._loading;\n }\n\n public setLoading(loading: boolean) {\n this._loading = loading;\n }\n\n public getOptions() {\n return this._options;\n }\n\n public async render() {\n if (this._pendingInitialRender || this._destroyed) {\n return;\n }\n await this._getPropertiesFromBindings();\n if (this._destroyed) {\n return;\n }\n this.refreshProps();\n //if we detect a change in name, unmount the component before render\n if (this._lastRenderedControlName && this._lastRenderedControlName !== this.getControlName()) {\n this.unmount(true)\n }\n if (!this._customControlId) {\n this._customControlId = crypto.randomUUID();\n }\n await this._overrideDecorator(async () => this._render(), this.getOptions().overrides?.onRender, () => [this, async () => this._render()] as any);\n if (this._destroyed) {\n return;\n }\n this._lastRenderedControlName = this.getControlName();\n }\n public unmount(softUnmount?: boolean) {\n this._overrideDecorator(() => this._unmount(), this.getOptions().overrides?.onUnmount, () => [this, () => this._unmount()] as any)\n this._lastRenderedControlName = '';\n this._hasCustomPcfBeenMounted = false;\n this._hasControlBeenPatched = false;\n this._customControlId = '';\n this._mutationObserver?.disconnect();\n if (!softUnmount) {\n this._mutationObserver = null;\n this._customControlInstance = null;\n this._props = undefined;\n this._container = null;\n this._properties.clear();\n this._destroyed = true;\n }\n }\n public getErrorMessage(): string {\n return this._errorMessage;\n }\n public setError(message?: string) {\n this._errorMessage = message ?? '';\n }\n public isMountedPcfComponent() {\n return this._hasCustomPcfBeenMounted;\n }\n\n public getContainer() {\n let container = this.getOptions().onGetContainerElement?.();\n if (container) {\n this._container = container;\n return container;\n }\n if (this._container) {\n return this._container;\n }\n if (!container && this._container) {\n return this._container;\n }\n throw new Error('Cannot render control if no container is specified!');\n }\n\n public getControlName() {\n const controlName = this.getOptions().onGetControlName?.();\n if (!controlName) {\n throw new Error(\"Cannot render control if it's name is not specified!\");\n }\n return controlName;\n }\n\n public getBindings() {\n return this.getOptions().onGetBindings();\n }\n\n public getCustomControlId() {\n return this._customControlId;\n }\n\n private _overrideDecorator<T extends any[], K>(defaultMethod: () => K | Promise<K>, override?: (...args: T) => any, getOverrideArgs?: () => T) {\n if (override && getOverrideArgs) {\n return override(...getOverrideArgs());\n }\n else {\n return defaultMethod();\n }\n }\n\n private _unmount() {\n (this.getOptions().parentPcfContext as any).factory.unbindDOMComponent(this._customControlId)\n\n }\n private async _render(): Promise<void> {\n try {\n if (!this._lastRenderedControlName) {\n this._errorMessage = '';\n this._pendingInitialRender = true;\n const controlName = this.getControlName();\n if (!LOADED_CONTROLS.has(controlName)) {\n this._loading = true;\n this.getOptions().callbacks?.onControlStateChanged?.();\n }\n this._mutationObserver?.observe(this.getContainer(), { childList: true, subtree: true });\n try {\n this._manifest = await this._getManifest(controlName);\n }\n catch (err) {\n throw new NestedControlError({\n message: `Could not find control named ${controlName} on this environment.`\n }, this);\n }\n if (this._destroyed) {\n return;\n }\n try {\n const properties: any = {\n controlstates: this.getOptions().callbacks?.onGetControlStates?.() ?? {},\n parameters: this._getCustomControlParameters(this._manifest!),\n childeventlisteners: [{\n eventname: \"onInit\",\n eventhandler: (control: ComponentFramework.StandardControl<any, any>) => {\n LOADED_CONTROLS.add(this._lastRenderedControlName);\n this._customControlInstance = control;\n this._patchUpdateView(this._customControlInstance!, this._manifest!);\n this._loading = false;\n this.getOptions().callbacks?.onControlStateChanged?.();\n }\n }]\n };\n const component = (this.getOptions().parentPcfContext as any).factory.createComponent(controlName, this._customControlId, properties);\n (this.getOptions().parentPcfContext as any).factory.bindDOMElement(component, this.getContainer());\n this._hasCustomPcfBeenMounted = true;\n }\n catch (err) {\n throw new NestedControlError(err as any, this);\n }\n this._pendingInitialRender = false;\n }\n //the PCF did not change, just call updateView\n else {\n this._customControlInstance?.updateView?.(this.getProps().context)\n }\n }\n catch (err) {\n this._pendingInitialRender = false;\n this._pendingInitialRender = false;\n console.error(err);\n }\n }\n\n private _getCustomControlNameWithoutPrefix() {\n const parts = this._lastRenderedControlName.split('_');\n return parts[1] ?? parts[0];\n }\n\n private _checkIfControlLoadedToDom(mutations: MutationRecord[]) {\n try {\n mutations.map(mutation => {\n const target = mutation.target as HTMLElement;\n if (target.classList.contains(this._getCustomControlNameWithoutPrefix())) {\n this._loading = false;\n LOADED_CONTROLS.add(this._lastRenderedControlName);\n this._mutationObserver?.disconnect();\n if (!this._customControlInstance) {\n this._unmount();\n throw new NestedControlError({\n message: `Custom control ${this._lastRenderedControlName} does not expose it's instance through fireEvent. Please add fireEvent to init() to avoid unintentional behavior.`\n }, this)\n }\n }\n });\n }\n catch(err) {\n console.error(err);\n }\n }\n\n private async _getPropertiesFromBindings() {\n const promises: Promise<boolean>[] = [];\n Object.entries(this.getOptions().onGetBindings()).map(([name, binding]) => {\n if (!this._properties.get(name)) {\n const getBinding = () => this.getOptions().onGetBindings()[name];\n const propertyInstance = this._getPropertyInstance(getBinding);\n const metadata = getBinding()?.metadata;\n //push to promise only if we need to fetch the metadata asynchronously\n if (metadata?.attributeName && metadata.entityName) {\n promises.push(propertyInstance.init());\n }\n else {\n propertyInstance.init();\n }\n this._properties.set(name, propertyInstance);\n }\n })\n if (promises.length > 0) {\n await Promise.all(promises);\n }\n if (!this._initialized) {\n this._initialized = true;\n this.getOptions().callbacks?.onInit?.(this)\n }\n }\n\n private _getPropertyInstance(onGetBinding: () => IBinding) {\n switch (onGetBinding().type) {\n case DataTypes.TwoOptions:\n case DataTypes.OptionSet:\n case DataTypes.MultiSelectOptionSet: {\n return new OptionSetProperty(this.getOptions(), onGetBinding);\n }\n case DataTypes.DateAndTimeDateAndTime:\n case DataTypes.DateAndTimeDateOnly: {\n return new DateProperty(this.getOptions(), onGetBinding);\n }\n case DataTypes.WholeNone:\n case DataTypes.Decimal:\n case DataTypes.Currency:\n case DataTypes.WholeDuration: {\n return new NumberProperty(this.getOptions(), onGetBinding);\n }\n case DataTypes.LookupSimple:\n case DataTypes.LookupOwner:\n case DataTypes.LookupCustomer:\n case DataTypes.LookupRegarding: {\n return new LookupProperty(this.getOptions(), onGetBinding);\n }\n case DataTypes.File:\n case DataTypes.Image: {\n return new FileProperty(this.getOptions(), onGetBinding)\n }\n default: {\n return new TextProperty(this.getOptions(), onGetBinding);\n }\n }\n }\n private _getPrimaryBindingName(): string {\n const primaryBinding = Object.entries(this.getOptions().onGetBindings()).find(([key, binding]) => !binding.isStatic)?.[0];\n if (!primaryBinding) {\n throw new Error('Control needs to have atleast one non-static binding!');\n }\n return primaryBinding;\n }\n private _getManifestPrimaryBinding(manifest: Manifest) {\n return [...manifest.control.properties.values()].find(prop => prop.isBindingProperty)!;\n }\n private async _getManifest(controlName: string) {\n return manifestCache.get(controlName, async () => {\n const result = await this.getOptions().parentPcfContext.webAPI.retrieveMultipleRecords('customcontrol', `?$select=name,manifest&$filter=name eq '${controlName}'`);\n const manifestXmlString = result.entities[0].manifest;\n return new Manifest(manifestXmlString);\n })\n }\n private _getCustomControlParameters(manifest: Manifest) {\n const result: { [name: string]: any } = {};\n const bindingParameters = this.getProps().parameters;\n const manifestProperties = [...manifest.control.properties.values()];\n manifestProperties.map(property => {\n result[property.name] = {\n Static: property.usage === 'input',\n Primary: property.isBindingProperty,\n //if no ofType is present, there is a type group and we need to get the type from the passed parameters above\n Type: property.ofType ?? bindingParameters[property.name]?.type ?? 'SingleLine.Text',\n //if static, we take the value that came from the parameter above\n Value: (() => {\n const binding = bindingParameters[property.name];\n if (binding) {\n return binding.raw;\n }\n if (property.usage === 'input') {\n return property.defaultValue;\n }\n if (property.isBindingProperty) {\n return bindingParameters[this._getPrimaryBindingName()].raw;\n }\n })(),\n Usage: (() => {\n switch (property.usage) {\n case 'bound': {\n return 3;\n }\n case 'input':\n case 'output': {\n return 0;\n }\n }\n })(),\n Attributes: (() => {\n const getBindingMetadata = (bindingName: string) => {\n const binding = this.getOptions().onGetBindings()[bindingName];\n return binding?.metadata ? {\n EntityLogicalName: binding.metadata.entityName,\n LogicalName: binding.metadata.attributeName\n } : undefined;\n };\n const propertyBindingMetadata = getBindingMetadata(property.name);\n\n if (propertyBindingMetadata) {\n return propertyBindingMetadata;\n }\n\n if (property.isBindingProperty) {\n return getBindingMetadata(this._getPrimaryBindingName());\n }\n\n return undefined;\n })(),\n Callback: (value: any) => {\n let binding = this.getOptions().onGetBindings()[property.name];\n let bindingName = property.name;\n if (!binding && !property.isBindingProperty) {\n return;\n }\n if (!binding) {\n bindingName = this._getPrimaryBindingName();\n binding = this.getOptions().onGetBindings()[bindingName]\n }\n binding.onNotifyOutputChanged?.(value);\n const boundBindings = Object.entries(this.getOptions().onGetBindings()).filter(([key, binding]) => !binding.isStatic);\n const outputs: any = {};\n boundBindings.map(([key, binding]) => {\n outputs[key] = key === bindingName ? value : this.getProps().parameters[bindingName].raw\n })\n this.getOptions().callbacks?.onNotifyOutputChanged?.(outputs)\n }\n }\n })\n const nonManifestParameters = Object.entries(bindingParameters).filter(([key, value]) => !manifest.control.properties.get(key));\n nonManifestParameters.map(([key, parameter]) => {\n result[key] = {\n Static: true,\n Primary: false,\n Type: parameter.type ?? 'SingleLine.Text',\n Value: parameter.raw,\n Usage: 0\n }\n })\n return result;\n }\n private _patchUpdateView(control: ComponentFramework.StandardControl<any, any>, manifest: Manifest) {\n if (this._hasControlBeenPatched) {\n return;\n }\n let originalContext: ComponentFramework.Context<any, any> | null = null;\n const originalUpdateView = control.updateView.bind(control);\n control.updateView = (context) => {\n if (!originalContext) {\n originalContext = context;\n }\n originalUpdateView(this._patchContext(manifest, originalContext));\n }\n this._hasControlBeenPatched = true;\n }\n private _patchContext(manifest: Manifest, originalContext: ComponentFramework.Context<any, any>) {\n const context = this.getProps().context;\n const contextParameters = originalContext.parameters;\n const parameters = this.getProps().parameters;\n const manifestBindingProperty = this._getManifestPrimaryBinding(manifest);\n const primaryBindingName = this._getPrimaryBindingName();\n context.resources = originalContext.resources;\n context.events = originalContext.events;\n context.parameters = {\n ...contextParameters,\n ...parameters,\n [manifestBindingProperty.name]: parameters[primaryBindingName]\n }\n\n return context;\n }\n private _getFluentDesignLanguage(fluentDesignLanguage?: IFluentDesignState): IFluentDesignState {\n const v8Theme = ControlTheme.GetV8ThemeFromFluentDesignLanguage(fluentDesignLanguage);\n return ControlTheme.GenerateFluentDesignLanguage(v8Theme.palette.themePrimary, v8Theme.semanticColors.bodyBackground, v8Theme.semanticColors.bodyText, {\n v8FluentOverrides: fluentDesignLanguage?.v8FluentOverrides,\n applicationTheme: fluentDesignLanguage?.applicationTheme ?? v8Theme\n })\n }\n}"],"names":[],"mappings":";;;;;;;;;;;AAeA,MAAM,aAAa,GAAG,IAAI,YAAY,EAAE,CAAC;AACzC,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;MAqC7B,aAAa,CAAA;AAkBtB,IAAA,WAAA,CAAY,OAAiB,EAAA;QAhBrB,IAAqB,CAAA,qBAAA,GAAY,KAAK,CAAC;QACvC,IAAa,CAAA,aAAA,GAAW,EAAE,CAAC;AAC3B,QAAA,IAAA,CAAA,WAAW,GAA0B,IAAI,GAAG,EAAE,CAAC;QAC/C,IAAwB,CAAA,wBAAA,GAAW,EAAE,CAAC;QACtC,IAAwB,CAAA,wBAAA,GAAY,KAAK,CAAC;QAC1C,IAAsB,CAAA,sBAAA,GAAwD,IAAI,CAAC;QACnF,IAAgB,CAAA,gBAAA,GAAW,EAAE,CAAC;QAC9B,IAAS,CAAA,SAAA,GAAoB,IAAI,CAAC;QAClC,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;AAE1B,QAAA,IAAA,CAAA,iBAAiB,GAA4B,IAAI,gBAAgB,CAAC,CAAC,SAAS,KAAK,IAAI,CAAC,0BAA0B,CAAC,SAAS,CAAC,CAAC,CAAC;QAC7H,IAAU,CAAA,UAAA,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G,IAAI,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC;QAC9C,MAAM,uBAAuB,GAAG,IAAI,CAAC,0BAA0B,CAAC,QAAQ,CAAC,CAAC;AAC1E,QAAA,MAAM,kBAAkB,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;AACzD,QAAA,OAAO,CAAC,SAAS,GAAG,eAAe,CAAC,SAAS,CAAC;AAC9C,QAAA,OAAO,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;QACxC,OAAO,CAAC,UAAU,GAAG;AACjB,YAAA,GAAG,iBAAiB;AACpB,YAAA,GAAG,UAAU;YACb,CAAC,uBAAuB,CAAC,IAAI,GAAG,UAAU,CAAC,kBAAkB,CAAC;SACjE,CAAA;AAED,QAAA,OAAO,OAAO,CAAC;KAClB;AACO,IAAA,wBAAwB,CAAC,oBAAyC,EAAA;QACtE,MAAM,OAAO,GAAG,YAAY,CAAC,kCAAkC,CAAC,oBAAoB,CAAC,CAAC;QACtF,OAAO,YAAY,CAAC,4BAA4B,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,cAAc,CAAC,cAAc,EAAE,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE;YACnJ,iBAAiB,EAAE,oBAAoB,EAAE,iBAAiB;AAC1D,YAAA,gBAAgB,EAAE,oBAAoB,EAAE,gBAAgB,IAAI,OAAO;AACtE,SAAA,CAAC,CAAA;KACL;AACJ;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="@types/powerapps-component-framework" />
|
|
2
2
|
/// <reference types="react" />
|
|
3
|
-
import { ITheme, ITextFieldProps, IDatePickerProps, ITagPickerProps, IComboBoxProps } from '@talxis/react-components';
|
|
4
|
-
import { DeepPartial, DataType, IDataset, IColumn, IRecord } from '@talxis/client-libraries';
|
|
5
|
-
import { ITheme as ITheme$1, ThemeProviderProps,
|
|
3
|
+
import { ITheme, ITextFieldProps, IDatePickerProps, ICommandBarProps, ITagPickerProps, IComboBoxProps } from '@talxis/react-components';
|
|
4
|
+
import { DeepPartial, DataType, IDataset, IColumn, IRecord, ICommand } from '@talxis/client-libraries';
|
|
5
|
+
import { ITheme as ITheme$1, ThemeProviderProps, ITextProps, ILinkProps, IIconProps, IImageProps, ISpinnerProps, IShimmerProps, IMessageBar, IButtonProps, IToggleProps } from '@fluentui/react';
|
|
6
6
|
import React$1 from 'react';
|
|
7
7
|
import { AgGridReactProps } from '@ag-grid-community/react';
|
|
8
8
|
|
|
@@ -608,6 +608,10 @@ declare const gridTranslations: {
|
|
|
608
608
|
1029: string;
|
|
609
609
|
1033: string;
|
|
610
610
|
};
|
|
611
|
+
"page-record-count": {
|
|
612
|
+
1029: string;
|
|
613
|
+
1033: string;
|
|
614
|
+
};
|
|
611
615
|
};
|
|
612
616
|
|
|
613
617
|
interface IGridComponentProps {
|
|
@@ -787,6 +791,9 @@ interface IGridCellRendererParameters extends IParameters$1 {
|
|
|
787
791
|
Record: {
|
|
788
792
|
raw: IRecord;
|
|
789
793
|
};
|
|
794
|
+
RecordCommands?: {
|
|
795
|
+
raw: ICommand[];
|
|
796
|
+
};
|
|
790
797
|
}
|
|
791
798
|
interface IOptionSetProps {
|
|
792
799
|
containerProps: React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -797,9 +804,14 @@ interface IOptionProps {
|
|
|
797
804
|
option: ComponentFramework.PropertyHelper.OptionMetadata;
|
|
798
805
|
textProps: ITextProps;
|
|
799
806
|
}
|
|
807
|
+
interface IRecordCommandsProps {
|
|
808
|
+
containerProps: ThemeProviderProps;
|
|
809
|
+
commandBarProps: ICommandBarProps;
|
|
810
|
+
}
|
|
800
811
|
interface IGridCellRendererComponentProps {
|
|
801
812
|
onGetOptionSetProps: (props: IOptionSetProps) => IOptionSetProps;
|
|
802
813
|
onGetLinkProps: (props: ILinkProps) => ILinkProps;
|
|
814
|
+
onGetRecordCommandsProps: (props: IRecordCommandsProps) => IRecordCommandsProps;
|
|
803
815
|
onRenderContent: (defaultRenderer: () => JSX.Element) => JSX.Element;
|
|
804
816
|
rootContainerProps: ThemeProviderProps;
|
|
805
817
|
contentWrapperProps: React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -1264,4 +1276,4 @@ interface IDurationOutputs extends IOutputs$1 {
|
|
|
1264
1276
|
|
|
1265
1277
|
declare const Duration: (props: IDuration) => JSX.Element;
|
|
1266
1278
|
|
|
1267
|
-
export { BaseControl, BaseControls, ControlTheme, DatasetControl, DateTime, Decimal, Duration, Grid, GridCellRenderer, IContext, IControl, IControlController, IDatasetControl, IDatasetControlComponentProps, IDateTime, IDateTimeOutputs, IDateTimeParameters, IDateTimeProperty, IDecimal, IDecimalNumberProperty, IDecimalOutputs, IDecimalParameters, IDefaultTranslations, IDuration, IDurationOutputs, IDurationParameters, IEntity, IFileProperty, IFluentDesignState, IGrid, IGridComponentProps, IGridOutputs, IGridParameters, ILayout, ILookup, ILookupOutputs, ILookupParameters, ILookupProperty, IMetadata, IMultiSelectOptionSet, IMultiSelectOptionSetOutputs, IMultiSelectOptionSetParameters, IMultiSelectOptionSetProperty, IOptionSet, IOptionSetOutputs, IOptionSetParameters, IOptionSetProperty, IOutputs, IParameters$1 as IParameters, IProperty, IQuickFindProps, IStringProperty, ITextField, ITextFieldOutputs, ITextFieldParameters, ITranslation, ITranslations, ITwoOptions, ITwoOptionsOutputs, ITwoOptionsParameters, ITwoOptionsProperty, IWholeNumberProperty, Lookup, MultiSelectOptionSet, NestedControlRenderer, OptionSet, TextField, ThemeWrapper, TwoOptions, useControl, useControlLabels, useControlSizing, useControlTheme, useControlThemeGenerator, useDateTime, useFocusIn, useInputBasedControl, useLookup, useMouseOver };
|
|
1279
|
+
export { BaseControl, BaseControls, ControlTheme, DatasetControl, DateTime, Decimal, Duration, Grid, GridCellRenderer, IContext, IControl, IControlController, IDatasetControl, IDatasetControlComponentProps, IDateTime, IDateTimeOutputs, IDateTimeParameters, IDateTimeProperty, IDecimal, IDecimalNumberProperty, IDecimalOutputs, IDecimalParameters, IDefaultTranslations, IDuration, IDurationOutputs, IDurationParameters, IEntity, IFileProperty, IFluentDesignState, IGrid, IGridCellRenderer, IGridCellRendererComponentProps, IGridCellRendererParameters, IGridComponentProps, IGridOutputs, IGridParameters, ILayout, ILookup, ILookupOutputs, ILookupParameters, ILookupProperty, IMetadata, IMultiSelectOptionSet, IMultiSelectOptionSetOutputs, IMultiSelectOptionSetParameters, IMultiSelectOptionSetProperty, IOptionProps, IOptionSet, IOptionSetOutputs, IOptionSetParameters, IOptionSetProperty, IOptionSetProps, IOutputs, IParameters$1 as IParameters, IProperty, IQuickFindProps, IRecordCommandsProps, IStringProperty, ITextField, ITextFieldOutputs, ITextFieldParameters, ITranslation, ITranslations, ITwoOptions, ITwoOptionsOutputs, ITwoOptionsParameters, ITwoOptionsProperty, IWholeNumberProperty, Lookup, MultiSelectOptionSet, NestedControlRenderer, OptionSet, TextField, ThemeWrapper, TwoOptions, useControl, useControlLabels, useControlSizing, useControlTheme, useControlThemeGenerator, useDateTime, useFocusIn, useInputBasedControl, useLookup, useMouseOver };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talxis/base-controls",
|
|
3
|
-
"version": "1.2505.
|
|
3
|
+
"version": "1.2505.6",
|
|
4
4
|
"description": "Set of React components that natively work with Power Apps Component Framework API's",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"react": "^16.8.6 || ^17.0.2",
|
|
89
89
|
"react-dom": "^16.8.6 || ^17.0.2",
|
|
90
90
|
"@talxis/react-components": "^1.2503.4",
|
|
91
|
-
"@talxis/client-libraries": "^1.
|
|
91
|
+
"@talxis/client-libraries": "^1.2505.1",
|
|
92
92
|
"@fluentui/react": "<=8.121.5"
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { useCommands } from './useCommands.js';
|
|
3
|
-
import { CommandBar } from '@talxis/react-components';
|
|
4
|
-
import { getCommandsLoadingStyles, commandStyles } from './styles.js';
|
|
5
|
-
import { useTheme } from '@fluentui/react';
|
|
6
|
-
|
|
7
|
-
const Commands = ({ record }) => {
|
|
8
|
-
const [items] = useCommands(record);
|
|
9
|
-
const loadingStyles = getCommandsLoadingStyles(useTheme());
|
|
10
|
-
if (!items) {
|
|
11
|
-
return jsx("div", { className: loadingStyles.loading, children: Array.from(Array(3).keys()).map((x) => jsx("div", { className: loadingStyles.loadingLine }, x)) });
|
|
12
|
-
}
|
|
13
|
-
if (items?.length > 0) {
|
|
14
|
-
return jsx(CommandBar, { className: commandStyles.talxisRoot, overflowButtonProps: {
|
|
15
|
-
styles: {
|
|
16
|
-
root: commandStyles.button,
|
|
17
|
-
rootHovered: commandStyles.button,
|
|
18
|
-
rootPressed: commandStyles.button,
|
|
19
|
-
rootExpanded: commandStyles.button
|
|
20
|
-
}
|
|
21
|
-
}, styles: {
|
|
22
|
-
root: commandStyles.root,
|
|
23
|
-
}, items: [], farItems: items });
|
|
24
|
-
}
|
|
25
|
-
return jsx(Fragment, {});
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export { Commands };
|
|
29
|
-
//# sourceMappingURL=Commands.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Commands.js","sources":["../../../../../../../src/components/Grid/core/components/Cell/Commands/Commands.tsx"],"sourcesContent":["import { useCommands } from './useCommands';\nimport { CommandBar } from \"@talxis/react-components\";\nimport { commandStyles, getCommandsLoadingStyles } from './styles';\nimport { useTheme } from '@fluentui/react';\nimport { IRecord } from '@talxis/client-libraries';\n\ninterface ICommands {\n record: IRecord\n}\n\nexport const Commands = ({ record }: ICommands) => {\n const [items] = useCommands(record);\n const loadingStyles = getCommandsLoadingStyles(useTheme());\n if (!items) {\n return <div className={loadingStyles.loading}>\n {Array.from(Array(3).keys()).map((x) =>\n <div key={x} className={loadingStyles.loadingLine} />\n )}\n </div>\n }\n if (items?.length > 0) {\n return <CommandBar className={commandStyles.talxisRoot} overflowButtonProps={{\n styles: {\n root: commandStyles.button,\n rootHovered: commandStyles.button,\n rootPressed: commandStyles.button,\n rootExpanded: commandStyles.button\n }\n }} styles={{\n root: commandStyles.root,\n\n }} items={[]}\n farItems={items}\n />;\n }\n return <></>;\n};"],"names":["_jsx"],"mappings":";;;;;;MAUa,QAAQ,GAAG,CAAC,EAAE,MAAM,EAAa,KAAI;IAC9C,MAAM,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AACpC,IAAA,MAAM,aAAa,GAAG,wBAAwB,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC3D,IAAI,CAAC,KAAK,EAAE;AACR,QAAA,OAAOA,aAAK,SAAS,EAAE,aAAa,CAAC,OAAO,EACvC,QAAA,EAAA,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAC/BA,GAAa,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,aAAa,CAAC,WAAW,EAAA,EAAvC,CAAC,CAA0C,CACxD,GACC,CAAA;AACT,KAAA;AACD,IAAA,IAAI,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE;QACnB,OAAOA,GAAA,CAAC,UAAU,EAAA,EAAC,SAAS,EAAE,aAAa,CAAC,UAAU,EAAE,mBAAmB,EAAE;AACzE,gBAAA,MAAM,EAAE;oBACJ,IAAI,EAAE,aAAa,CAAC,MAAM;oBAC1B,WAAW,EAAE,aAAa,CAAC,MAAM;oBACjC,WAAW,EAAE,aAAa,CAAC,MAAM;oBACjC,YAAY,EAAE,aAAa,CAAC,MAAM;AACrC,iBAAA;AACJ,aAAA,EAAE,MAAM,EAAE;gBACP,IAAI,EAAE,aAAa,CAAC,IAAI;aAE3B,EAAE,KAAK,EAAE,EAAE,EACR,QAAQ,EAAE,KAAK,GACjB,CAAC;AACN,KAAA;AACD,IAAA,OAAOA,iBAAK,CAAC;AACjB;;;;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import 'external-svg-loader';
|
|
4
|
-
import { commandStyles } from './styles.js';
|
|
5
|
-
|
|
6
|
-
const IconComponent = ({ name }) => {
|
|
7
|
-
//@ts-ignore - types
|
|
8
|
-
const src = !window.TALXIS?.Portal ? `https://${window.location.host}${window.Xrm.Utility.getGlobalContext().getWebResourceUrl(name)}` : name;
|
|
9
|
-
return (jsx("svg", { "data-src": src, className: commandStyles.icon }));
|
|
10
|
-
};
|
|
11
|
-
const Icon = memo(IconComponent);
|
|
12
|
-
|
|
13
|
-
export { Icon };
|
|
14
|
-
//# sourceMappingURL=Icon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sources":["../../../../../../../src/components/Grid/core/components/Cell/Commands/Icon.tsx"],"sourcesContent":["import { memo } from 'react';\nimport 'external-svg-loader';\nimport { commandStyles } from './styles';\n\ninterface IIcon {\n name: string\n}\n\nconst IconComponent = ({ name }: IIcon) => {\n //@ts-ignore - types\n const src = !window.TALXIS?.Portal ? `https://${window.location.host}${window.Xrm.Utility.getGlobalContext().getWebResourceUrl(name)}` : name;\n return (\n <svg data-src={src} className={commandStyles.icon} />\n );\n};\n\nexport const Icon = memo(IconComponent);\n"],"names":["_jsx"],"mappings":";;;;;AAQA,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,EAAS,KAAI;;AAEtC,IAAA,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,CAAW,QAAA,EAAA,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAA,EAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAE,CAAA,GAAG,IAAI,CAAC;IAC9I,QACIA,GAAe,CAAA,KAAA,EAAA,EAAA,UAAA,EAAA,GAAG,EAAE,SAAS,EAAE,aAAa,CAAC,IAAI,EAAI,CAAA,EACvD;AACN,CAAC,CAAC;MAEW,IAAI,GAAG,IAAI,CAAC,aAAa;;;;"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ITheme } from "@fluentui/react";
|
|
2
|
-
export declare const commandStyles: import("@fluentui/react").IProcessedStyleSet<{
|
|
3
|
-
root: {
|
|
4
|
-
backgroundColor: string;
|
|
5
|
-
};
|
|
6
|
-
talxisRoot: {
|
|
7
|
-
minWidth: number;
|
|
8
|
-
flexShrink: number;
|
|
9
|
-
flexGrow: number;
|
|
10
|
-
};
|
|
11
|
-
button: {
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
};
|
|
14
|
-
icon: {
|
|
15
|
-
width: number;
|
|
16
|
-
height: number;
|
|
17
|
-
marginLeft: number;
|
|
18
|
-
marginRight: number;
|
|
19
|
-
};
|
|
20
|
-
}>;
|
|
21
|
-
export declare const getCommandsLoadingStyles: (theme: ITheme) => import("@fluentui/react").IProcessedStyleSet<{
|
|
22
|
-
loading: {
|
|
23
|
-
overflow: string;
|
|
24
|
-
padding: number;
|
|
25
|
-
flex: number;
|
|
26
|
-
display: string;
|
|
27
|
-
alignItems: string;
|
|
28
|
-
gridTemplateColumns: string;
|
|
29
|
-
gap: number;
|
|
30
|
-
justifyContent: string;
|
|
31
|
-
};
|
|
32
|
-
loadingLine: {
|
|
33
|
-
height: number;
|
|
34
|
-
borderRadius: number;
|
|
35
|
-
width: string;
|
|
36
|
-
animation: string;
|
|
37
|
-
backgroundSize: string;
|
|
38
|
-
background: string;
|
|
39
|
-
};
|
|
40
|
-
}>;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { mergeStyleSets, keyframes } from '@fluentui/react';
|
|
2
|
-
|
|
3
|
-
const commandStyles = mergeStyleSets({
|
|
4
|
-
root: {
|
|
5
|
-
backgroundColor: 'transparent'
|
|
6
|
-
},
|
|
7
|
-
talxisRoot: {
|
|
8
|
-
minWidth: 0,
|
|
9
|
-
flexShrink: 1,
|
|
10
|
-
flexGrow: 1
|
|
11
|
-
},
|
|
12
|
-
button: {
|
|
13
|
-
backgroundColor: 'transparent',
|
|
14
|
-
},
|
|
15
|
-
icon: {
|
|
16
|
-
width: 16,
|
|
17
|
-
height: 16,
|
|
18
|
-
marginLeft: 4,
|
|
19
|
-
marginRight: 4,
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const loadingLineAnimation = keyframes({
|
|
23
|
-
'0%': {
|
|
24
|
-
backgroundPosition: '-100px 0',
|
|
25
|
-
},
|
|
26
|
-
'100%': {
|
|
27
|
-
backgroundPosition: '100px 0'
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
const getCommandsLoadingStyles = (theme) => {
|
|
31
|
-
return mergeStyleSets({
|
|
32
|
-
loading: {
|
|
33
|
-
overflow: 'hidden',
|
|
34
|
-
padding: 15,
|
|
35
|
-
flex: 1,
|
|
36
|
-
display: 'grid',
|
|
37
|
-
alignItems: 'center',
|
|
38
|
-
gridTemplateColumns: 'repeat(3, minmax(0px, 100px))',
|
|
39
|
-
gap: 15,
|
|
40
|
-
justifyContent: 'flex-start',
|
|
41
|
-
},
|
|
42
|
-
loadingLine: {
|
|
43
|
-
height: 10,
|
|
44
|
-
borderRadius: 5,
|
|
45
|
-
width: '100%',
|
|
46
|
-
animation: `${loadingLineAnimation} 2s infinite`,
|
|
47
|
-
backgroundSize: '1000px 100%',
|
|
48
|
-
background: `linear-gradient(to right, color-mix(in oklab, ${theme.palette.white}, ${theme.palette.black} 8%) 4%, color-mix(in oklab, ${theme.palette.white}, ${theme.palette.black} 5%) 25%, color-mix(in oklab, ${theme.palette.white}, ${theme.palette.black} 8%) 36%)`
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export { commandStyles, getCommandsLoadingStyles };
|
|
54
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../../../../src/components/Grid/core/components/Cell/Commands/styles.ts"],"sourcesContent":["import { ITheme, keyframes, mergeStyleSets } from \"@fluentui/react\";\n\nexport const commandStyles = mergeStyleSets({\n root: {\n backgroundColor: 'transparent'\n },\n talxisRoot: {\n minWidth: 0,\n flexShrink: 1,\n flexGrow: 1\n },\n button: {\n backgroundColor: 'transparent',\n },\n icon: {\n width: 16,\n height: 16,\n marginLeft: 4,\n marginRight: 4,\n }\n});\n\nconst loadingLineAnimation = keyframes({\n '0%': {\n backgroundPosition: '-100px 0',\n },\n '100%': {\n backgroundPosition: '100px 0'\n }\n})\n\nexport const getCommandsLoadingStyles = (theme: ITheme) => {\n return mergeStyleSets({\n loading: {\n overflow: 'hidden',\n padding: 15,\n flex: 1,\n display: 'grid',\n alignItems: 'center',\n gridTemplateColumns: 'repeat(3, minmax(0px, 100px))',\n gap: 15,\n justifyContent: 'flex-start',\n },\n loadingLine: {\n height: 10,\n borderRadius: 5,\n width: '100%',\n animation: `${loadingLineAnimation} 2s infinite`,\n backgroundSize: '1000px 100%',\n background: `linear-gradient(to right, color-mix(in oklab, ${theme.palette.white}, ${theme.palette.black} 8%) 4%, color-mix(in oklab, ${theme.palette.white}, ${theme.palette.black} 5%) 25%, color-mix(in oklab, ${theme.palette.white}, ${theme.palette.black} 8%) 36%)`\n },\n })\n}"],"names":[],"mappings":";;AAEO,MAAM,aAAa,GAAG,cAAc,CAAC;AACxC,IAAA,IAAI,EAAE;AACF,QAAA,eAAe,EAAE,aAAa;AACjC,KAAA;AACD,IAAA,UAAU,EAAE;AACR,QAAA,QAAQ,EAAE,CAAC;AACX,QAAA,UAAU,EAAE,CAAC;AACb,QAAA,QAAQ,EAAE,CAAC;AACd,KAAA;AACD,IAAA,MA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K,EAAA,EAAA,KAAK,CAAC,OAAO,CAAC,KAAK,CAAW,SAAA,CAAA;AAC3Q,SAAA;AACN,KAAA,CAAC,CAAA;AACN;;;;"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { useState, useEffect } from 'react';
|
|
3
|
-
import { Icon } from './Icon.js';
|
|
4
|
-
import { commandStyles } from './styles.js';
|
|
5
|
-
import { useGridInstance } from '../../../hooks/useGridInstance.js';
|
|
6
|
-
|
|
7
|
-
const useCommands = (record) => {
|
|
8
|
-
const grid = useGridInstance();
|
|
9
|
-
const dataset = grid.dataset;
|
|
10
|
-
const [commandBarItems, setCommandBarItems] = useState(null);
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
(async () => {
|
|
13
|
-
setCommandBarItems(await getCommandBarItems());
|
|
14
|
-
})();
|
|
15
|
-
}, []);
|
|
16
|
-
const getCommandBarItems = async () => {
|
|
17
|
-
const items = [];
|
|
18
|
-
//@ts-ignore
|
|
19
|
-
if (!dataset.retrieveRecordCommand) {
|
|
20
|
-
return [];
|
|
21
|
-
}
|
|
22
|
-
//@ts-ignore
|
|
23
|
-
const commands = await dataset.retrieveRecordCommand([record.getRecordId()], grid.inlineRibbonButtonIds);
|
|
24
|
-
for (const command of commands) {
|
|
25
|
-
if (!command.shouldBeVisible || (command.__isInline !== undefined && command.__isInline === false)) {
|
|
26
|
-
continue;
|
|
27
|
-
}
|
|
28
|
-
items.push({
|
|
29
|
-
key: command.commandButtonId,
|
|
30
|
-
text: command.label,
|
|
31
|
-
["data-id"]: command.commandButtonId,
|
|
32
|
-
["data-command"]: command.commandId,
|
|
33
|
-
buttonStyles: {
|
|
34
|
-
root: commandStyles.button,
|
|
35
|
-
rootHovered: commandStyles.button,
|
|
36
|
-
rootPressed: commandStyles.button,
|
|
37
|
-
},
|
|
38
|
-
onClick: (e) => {
|
|
39
|
-
e?.stopPropagation();
|
|
40
|
-
command.execute();
|
|
41
|
-
},
|
|
42
|
-
onRenderIcon: command.icon?.includes('.svg') ? () => jsx(Icon, { name: command.icon }) : undefined,
|
|
43
|
-
iconProps: command.icon ? {
|
|
44
|
-
iconName: command.icon
|
|
45
|
-
} : undefined
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
return items;
|
|
49
|
-
};
|
|
50
|
-
return [commandBarItems];
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export { useCommands };
|
|
54
|
-
//# sourceMappingURL=useCommands.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCommands.js","sources":["../../../../../../../src/components/Grid/core/components/Cell/Commands/useCommands.tsx"],"sourcesContent":["import { useState, useEffect } from \"react\";\nimport { ICommandBarItemProps } from \"@fluentui/react\";\nimport { Icon } from './Icon';\nimport React from \"react\";\nimport { commandStyles } from \"./styles\";\nimport { useGridInstance } from \"../../../hooks/useGridInstance\";\nimport { IRecord } from \"@talxis/client-libraries\";\n\nexport const useCommands = (record: IRecord): [\n ICommandBarItemProps[] | null\n] => {\n const grid = useGridInstance();\n const dataset = grid.dataset;\n const [commandBarItems, setCommandBarItems] = useState<ICommandBarItemProps[] | null>(null);\n useEffect(() => {\n (async () => {\n setCommandBarItems(await getCommandBarItems());\n })();\n }, []);\n\n const getCommandBarItems = async () => {\n const items: ICommandBarItemProps[] = [];\n //@ts-ignore\n if(!dataset.retrieveRecordCommand) {\n return []\n }\n //@ts-ignore\n const commands = await dataset.retrieveRecordCommand([record.getRecordId()], grid.inlineRibbonButtonIds);\n for (const command of commands) {\n if (!command.shouldBeVisible || (command.__isInline !== undefined && command.__isInline === false)) {\n continue;\n }\n items.push({\n key: command.commandButtonId,\n text: command.label,\n [\"data-id\"]: command.commandButtonId,\n [\"data-command\"]: command.commandId,\n buttonStyles: {\n root: commandStyles.button,\n rootHovered: commandStyles.button,\n rootPressed: commandStyles.button,\n },\n onClick: (e) => {\n e?.stopPropagation();\n command.execute();\n },\n onRenderIcon: command.icon?.includes('.svg') ? () => <Icon name={command.icon} /> : undefined,\n iconProps: command.icon ? {\n iconName: command.icon\n } : undefined\n });\n }\n return items;\n };\n return [commandBarItems];\n};"],"names":["_jsx"],"mappings":";;;;;;AAQa,MAAA,WAAW,GAAG,CAAC,MAAe,KAEvC;AACA,IAAA,MAAM,IAAI,GAAG,eAAe,EAAE,CAAC;AAC/B,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAC7B,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAgC,IAAI,CAAC,CAAC;IAC5F,SAAS,CAAC,MAAK;QACX,CAAC,YAAW;AACR,YAAA,kBAAkB,CAAC,MAAM,kBAAkB,EAAE,CAAC,CAAC;SAClD,GAAG,CAAC;KACR,EAAE,EAAE,CAAC,CAAC;AAEP,IAAA,MAAM,kBAAkB,GAAG,YAAW;QAClC,MAAM,KAAK,GAA2B,EAAE,CAAC;;AAEzC,QAAA,IAAG,CAAC,OAAO,CAAC,qBAAqB,EAAE;AAC/B,YAAA,OAAO,EAAE,CAAA;AACZ,SAAA;;AAED,QAAA,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,qBAAqB,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;AACzG,QAAA,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;AAC5B,YAAA,IAAI,CAAC,OAAO,CAAC,eAAe,KAAK,OAAO,CAAC,UAAU,KAAK,SAAS,IAAI,OAAO,CAAC,UAAU,KAAK,KAAK,CAAC,EAAE;gBAChG,SAAS;AACZ,aAAA;YACD,KAAK,CAAC,IAAI,CAAC;gBACP,GAAG,EAAE,OAAO,CAAC,eAAe;gBAC5B,IAAI,EAAE,OAAO,CAAC,KAAK;AACnB,gBAAA,CAAC,SAAS,GAAG,OAAO,CAAC,eAAe;AACpC,gBAAA,CAAC,cAAc,GAAG,OAAO,CAAC,SAAS;AACnC,gBAAA,YAAY,EAAE;oBACV,IAAI,EAAE,aAAa,CAAC,MAAM;oBAC1B,WAAW,EAAE,aAAa,CAAC,MAAM;oBACjC,WAAW,EAAE,aAAa,CAAC,MAAM;AACpC,iBAAA;AACD,gBAAA,OAAO,EAAE,CAAC,CAAC,KAAI;oBACX,CAAC,EAAE,eAAe,EAAE,CAAC;oBACrB,OAAO,CAAC,OAAO,EAAE,CAAC;iBACrB;gBACD,YAAY,EAAE,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAMA,GAAC,CAAA,IAAI,EAAC,EAAA,IAAI,EAAE,OAAO,CAAC,IAAI,EAAI,CAAA,GAAG,SAAS;AAC7F,gBAAA,SAAS,EAAE,OAAO,CAAC,IAAI,GAAG;oBACtB,QAAQ,EAAE,OAAO,CAAC,IAAI;iBACzB,GAAG,SAAS;AAChB,aAAA,CAAC,CAAC;AACN,SAAA;AACD,QAAA,OAAO,KAAK,CAAC;AACjB,KAAC,CAAC;IACF,OAAO,CAAC,eAAe,CAAC,CAAC;AAC7B;;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
import { IAttributeMetadata } from "@talxis/client-libraries";
|
|
3
|
-
import { GridDependency } from "./GridDependency";
|
|
4
|
-
export declare class Metadata extends GridDependency {
|
|
5
|
-
get(columnName: string): Partial<IAttributeMetadata>;
|
|
6
|
-
getOptions(columnName: string): Promise<[number | boolean, ComponentFramework.PropertyHelper.OptionMetadata[]]>;
|
|
7
|
-
}
|
|
File without changes
|