import type { IActivityHandler } from "../../IActivityHandler"; import type { Item } from "../../forms/FormDefinition"; export interface GetFormElementItemsFromFeaturesInputs { features: __esri.Graphic[]; labelFieldName?: string; valueFieldName?: string; /** The features' fields. If present, the activity can attempt to match inputs to field aliases. */ fields?: __esri.Field[]; } export interface GetFormElementItemsFromFeaturesOutputs { /** @description The result items collection. */ items: Record; } export declare class GetFormElementItemsFromFeatures implements IActivityHandler { static readonly action = "gcx:wf:forms::GetFormElementItemsFromFeatures"; static readonly suite = "gcx:wf:builtin"; execute(inputs: GetFormElementItemsFromFeaturesInputs): GetFormElementItemsFromFeaturesOutputs; /** * Gets the value of the specified attribute. * This also accepts aliases and performs a case-insensitive lookup. * If no match is found, `undefined` is returned. * @param fieldName The name of the field to get the value of. * @param fieldNames All field names and aliases. * @param attributes The attributes we're interested in looking up. * @param hideEmptyValues True if an `undefined` or `false` value should be converted to an empty string, for use in a label. False if the actual value should be returned. */ private _getAttributeValue; /** * Returns the actual field name to use based on the supplied value. * This also accepts aliases and performs a case-insensitive lookup. * If no match is found, `undefined` is returned. * @param fieldName The name of the field to look up. * @param fieldNames All field names and aliases. * @returns The name of the matching field, or `undefined` if no match was found. */ private _getFieldName; private _getTokenValues; /** * Checks if there is a field name that matches the supplied label. * This also accepts aliases and performs a case-insensitive lookup. * @param label The label input to be checked. * @param fieldNames All field names and aliases. * @returns True if the label matches a field name or alias, false otherwise. */ private _isLabelFieldName; }