{"version":3,"file":"index.js","sources":["../../../Framework/FieldTypes/addressField.partial.ts","../../../Framework/FieldTypes/backgroundCheckField.partial.ts","../../../Framework/FieldTypes/booleanField.partial.ts","../../../Framework/FieldTypes/campusField.partial.ts","../../../Framework/FieldTypes/campusesField.partial.ts","../../../Framework/FieldTypes/categoriesField.partial.ts","../../../Framework/FieldTypes/categoryField.partial.ts","../../../Framework/FieldTypes/categorizedDefinedValueField.partial.ts","../../../Framework/FieldTypes/colorField.partial.ts","../../../Framework/FieldTypes/colorSelectorField.types.partial.ts","../../../Framework/FieldTypes/colorSelectorField.utils.partial.ts","../../../Framework/FieldTypes/colorSelectorField.partial.ts","../../../Framework/FieldTypes/connectionTypeField.partial.ts","../../../Framework/FieldTypes/connectionTypesField.partial.ts","../../../Framework/FieldTypes/communicationPreferenceField.partial.ts","../../../Framework/FieldTypes/currencyField.partial.ts","../../../Framework/FieldTypes/dateField.partial.ts","../../../Framework/FieldTypes/dateRangeField.partial.ts","../../../Framework/FieldTypes/dateTimeField.partial.ts","../../../Framework/FieldTypes/dayOfWeekField.partial.ts","../../../Framework/FieldTypes/daysOfWeekField.partial.ts","../../../Framework/FieldTypes/decimalField.partial.ts","../../../Framework/FieldTypes/decimalRangeField.partial.ts","../../../Framework/FieldTypes/definedValueField.partial.ts","../../../Framework/FieldTypes/definedValueRangeField.partial.ts","../../../Framework/FieldTypes/emailField.partial.ts","../../../Framework/FieldTypes/financialAccountField.partial.ts","../../../Framework/FieldTypes/financialAccountsField.partial.ts","../../../Framework/FieldTypes/fileField.partial.ts","../../../Framework/FieldTypes/genderField.partial.ts","../../../Framework/FieldTypes/groupAndRoleField.partial.ts","../../../Framework/FieldTypes/groupField.partial.ts","../../../Framework/FieldTypes/groupLocationTypeField.partial.ts","../../../Framework/FieldTypes/groupRoleField.partial.ts","../../../Framework/FieldTypes/groupMemberField.partial.ts","../../../Framework/FieldTypes/groupTypeField.partial.ts","../../../Framework/FieldTypes/groupTypesField.partial.ts","../../../Framework/FieldTypes/imageField.partial.ts","../../../Framework/FieldTypes/integerField.partial.ts","../../../Framework/FieldTypes/integerRangeField.partial.ts","../../../Framework/FieldTypes/keyValueListField.partial.ts","../../../Framework/FieldTypes/locationListField.partial.ts","../../../Framework/FieldTypes/memoField.partial.ts","../../../Framework/FieldTypes/monthDayField.partial.ts","../../../Framework/FieldTypes/mediaSelectorField.partial.ts","../../../Framework/FieldTypes/multiSelectField.partial.ts","../../../Framework/FieldTypes/noteTypeField.partial.ts","../../../Framework/FieldTypes/noteTypesField.partial.ts","../../../Framework/FieldTypes/phoneNumberField.partial.ts","../../../Framework/FieldTypes/personField.partial.ts","../../../Framework/FieldTypes/rangeSliderField.partial.ts","../../../Framework/FieldTypes/ratingField.partial.ts","../../../Framework/FieldTypes/registryEntryField.partial.ts","../../../Framework/FieldTypes/reminderTypeField.partial.ts","../../../Framework/FieldTypes/reminderTypesField.partial.ts","../../../Framework/FieldTypes/scheduleField.partial.ts","../../../Framework/FieldTypes/schedulesField.partial.ts","../../../Framework/FieldTypes/singleSelectField.partial.ts","../../../Framework/FieldTypes/slidingDateRangeField.partial.ts","../../../Framework/FieldTypes/socialMediaAccountField.partial.ts","../../../Framework/FieldTypes/ssnField.partial.ts","../../../Framework/FieldTypes/textField.partial.ts","../../../Framework/FieldTypes/timeField.partial.ts","../../../Framework/FieldTypes/timeZoneField.partial.ts","../../../Framework/FieldTypes/urlLinkField.partial.ts","../../../Framework/FieldTypes/valueListField.partial.ts","../../../Framework/FieldTypes/index.ts"],"sourcesContent":["// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport type AddressFieldValue = {\r\n street1?: string;\r\n street2?: string;\r\n city?: string;\r\n state?: string;\r\n postalCode?: string;\r\n country?: string;\r\n};\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./addressFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./addressFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Address field.\r\n */\r\nexport class AddressFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n try {\r\n const addressValue = JSON.parse(value || \"{}\") as AddressFieldValue;\r\n let textValue = `${addressValue.street1 ?? \"\"} ${addressValue.street2 ?? \"\"} ${addressValue.city ?? \"\"}, ${addressValue.state ?? \"\"} ${addressValue.postalCode ?? \"\"}`;\r\n\r\n textValue = textValue.replace(/ +/, \" \");\r\n textValue = textValue.replace(/^ +/, \"\");\r\n textValue = textValue.replace(/ +$/, \"\");\r\n\r\n return textValue === \",\" ? \"\" : textValue;\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n BinaryFileType = \"binaryFileType\",\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./backgroundCheckFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./backgroundCheckFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the TimeZone field.\r\n */\r\nexport class BackgroundCheckFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { asBooleanOrNull } from \"@Obsidian/Utility/booleanUtils\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { getStandardFilterComponent } from \"./utils\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n BooleanControlType = \"BooleanControlType\",\r\n FalseText = \"falsetext\",\r\n TrueText = \"truetext\"\r\n}\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./booleanFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./booleanFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n// Only load the filter component as needed.\r\nconst filterComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./booleanFieldComponents\")).FilterComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Boolean field.\r\n */\r\nexport class BooleanFieldType extends FieldTypeBase {\r\n public override getCondensedTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n const boolValue = asBooleanOrNull(value);\r\n\r\n if (boolValue === null) {\r\n return \"\";\r\n }\r\n else if (boolValue === true) {\r\n return \"Y\";\r\n }\r\n else {\r\n return \"N\";\r\n }\r\n }\r\n\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n const boolValue = asBooleanOrNull(value);\r\n\r\n if (boolValue === null) {\r\n return \"\";\r\n }\r\n else if (boolValue === true) {\r\n return configurationValues[ConfigurationValueKey.TrueText] || \"Yes\";\r\n }\r\n else {\r\n return configurationValues[ConfigurationValueKey.FalseText] || \"No\";\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return ComparisonType.EqualTo | ComparisonType.NotEqualTo;\r\n }\r\n\r\n public override getFilterComponent(): Component {\r\n return getStandardFilterComponent(this.getSupportedComparisonTypes(), filterComponent);\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { ComparisonValue } from \"@Obsidian/Types/Reporting/comparisonValue\";\r\nimport { areEqual } from \"@Obsidian/Utility/guid\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { getStandardFilterComponent } from \"./utils\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Values = \"values\",\r\n IncludeInactive = \"includeInactive\",\r\n FilterCampusTypes = \"filterCampusTypes\",\r\n FilterCampusStatus = \"filterCampusStatus\",\r\n ForceVisible = \"forceVisible\",\r\n SelectableCampuses = \"selectableCampuses\"\r\n}\r\n\r\nexport const enum ConfigurationPropertyKey {\r\n Campuses = \"campuses\",\r\n CampusTypes = \"campusTypes\",\r\n CampusStatuses = \"campusStatuses\"\r\n}\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./campusFieldComponents\")).EditComponent;\r\n});\r\n\r\n// Load the filter component only as needed.\r\nconst filterComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./campusFieldComponents\")).FilterComponent;\r\n});\r\n\r\n// Load the configuration component only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./campusFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Campus field.\r\n */\r\nexport class CampusFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (value === undefined || value === null || value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const values = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const selectedValues = values.filter(o => o.value === value);\r\n\r\n return selectedValues.map(o => o.text).join(\", \");\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return ComparisonType.None;\r\n }\r\n\r\n public override getFilterValueText(value: ComparisonValue, configurationValues: Record<string, string>): string {\r\n if (!value.value) {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const rawValues = value.value.split(\",\");\r\n const values = JSON.parse(configurationValues?.[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const selectedValues = values.filter(o => rawValues.filter(v => areEqual(v, o.value)).length > 0);\r\n\r\n return `'${selectedValues.map(o => o.text).join(\"' OR '\")}'`;\r\n }\r\n catch {\r\n return `'${value.value}'`;\r\n }\r\n }\r\n\r\n public override getFilterComponent(): Component {\r\n return getStandardFilterComponent(\"Is\", filterComponent);\r\n }\r\n\r\n public override doesValueMatchFilter(value: string, filterValue: ComparisonValue, _configurationValues: Record<string, string>): boolean {\r\n const selectedValues = (filterValue.value ?? \"\").split(\",\").filter(v => v !== \"\").map(v => v.toLowerCase());\r\n let comparisonType = filterValue.comparisonType;\r\n\r\n if (comparisonType === ComparisonType.EqualTo) {\r\n // Treat EqualTo as if it were Contains.\r\n comparisonType = ComparisonType.Contains;\r\n }\r\n else if (comparisonType === ComparisonType.NotEqualTo) {\r\n // Treat NotEqualTo as if it were DoesNotContain.\r\n comparisonType = ComparisonType.DoesNotContain;\r\n }\r\n\r\n if (comparisonType === ComparisonType.IsBlank) {\r\n return value === \"\";\r\n }\r\n else if (comparisonType === ComparisonType.IsNotBlank) {\r\n return value !== \"\";\r\n }\r\n\r\n if (selectedValues.length > 0) {\r\n let matched = selectedValues.includes((value ?? \"\").toLowerCase());\r\n\r\n if (comparisonType === ComparisonType.DoesNotContain) {\r\n matched = !matched;\r\n }\r\n\r\n return matched;\r\n }\r\n\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { ComparisonValue } from \"@Obsidian/Types/Reporting/comparisonValue\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Values = \"values\",\r\n EnhancedSelection = \"enhancedselection\",\r\n RepeatColumns = \"repeatColumns\",\r\n IncludeInactive = \"includeInactive\",\r\n FilterCampusTypes = \"filterCampusTypes\",\r\n FilterCampusStatus = \"filterCampusStatus\",\r\n SelectableCampuses = \"selectableCampuses\"\r\n}\r\n\r\nexport const enum ConfigurationPropertyKey {\r\n Campuses = \"campuses\",\r\n CampusTypes = \"campusTypes\",\r\n CampusStatuses = \"campusStatuses\"\r\n}\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./campusesFieldComponents\")).EditComponent;\r\n});\r\n\r\n// Load the configuration component only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./campusesFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Campuses field.\r\n */\r\nexport class CampusesFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (value === undefined || value === null || value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const values = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const userValues = value.split(\",\");\r\n const selectedValues = values.filter(o => userValues.includes(o.value ?? \"\"));\r\n\r\n return selectedValues.map(o => o.text).join(\", \");\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override doesValueMatchFilter(value: string, filterValue: ComparisonValue, _configurationValues: Record<string, string>): boolean {\r\n const selectedValues = (filterValue.value ?? \"\").split(\",\").filter(v => v !== \"\").map(v => v.toLowerCase());\r\n let comparisonType = filterValue.comparisonType;\r\n\r\n if (comparisonType === ComparisonType.EqualTo) {\r\n // Treat EqualTo as if it were Contains.\r\n comparisonType = ComparisonType.Contains;\r\n }\r\n else if (comparisonType === ComparisonType.NotEqualTo) {\r\n // Treat NotEqualTo as if it were DoesNotContain.\r\n comparisonType = ComparisonType.DoesNotContain;\r\n }\r\n\r\n if (comparisonType === ComparisonType.IsBlank) {\r\n return value === \"\";\r\n }\r\n else if (comparisonType === ComparisonType.IsNotBlank) {\r\n return value !== \"\";\r\n }\r\n\r\n if (selectedValues.length > 0) {\r\n let matched = selectedValues.includes(value.toLowerCase());\r\n\r\n if (comparisonType === ComparisonType.DoesNotContain) {\r\n matched = !matched;\r\n }\r\n\r\n return matched;\r\n }\r\n\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n EntityTypeName = \"entityTypeName\",\r\n QualifierColumn = \"qualifierColumn\",\r\n QualifierValue = \"qualifierValue\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./categoriesFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./categoriesFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Address field.\r\n */\r\nexport class CategoriesFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n EntityTypeName = \"entityTypeName\",\r\n QualifierColumn = \"qualifierColumn\",\r\n QualifierValue = \"qualifierValue\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./categoryFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./categoryFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Address field.\r\n */\r\nexport class CategoryFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n DefinedType = \"DefinedType\",\r\n DefinedTypes = \"DefinedTypes\",\r\n DefinedTypeValues = \"DefinedTypeValues\",\r\n SelectableDefinedValues = \"SelectableDefinedValues\",\r\n ConfigurationMode = \"ConfigurationMode\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./categorizedDefinedValueFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./categorizedDefinedValueFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Address field.\r\n */\r\nexport class CategorizedDefinedValueField extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./colorFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./colorFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Color field.\r\n */\r\nexport class ColorFieldType extends FieldTypeBase {\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nexport enum ConfigurationValueKey {\r\n Colors = \"colors\",\r\n AllowMultiple = \"allowMultiple\"\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nimport { RockColor } from \"@Obsidian/Core/Utilities/rockColor\";\r\n\r\nconst valueDelimiter = \"|\";\r\nconst isValidColorRegex = /^#(([0-9a-fA-F]{3})|([0-9a-fA-F]{4})|([0-9a-fA-F]{6})|([0-9a-fA-F]{8}))$/;\r\n\r\n/**\r\n * Tests if the provided string is a valid hexadecimal color.\r\n * Validate formats are:\r\n * 1. #RGB\r\n * 2. #RGBA\r\n * 3. #RRGGBB\r\n * 4. #RRGGBBAA\r\n * @param value The value to test.\r\n */\r\nexport function isValidHexColor(value: string): boolean {\r\n return isValidColorRegex.test(value);\r\n}\r\n\r\nexport function deserializeColors(value: string): string[] {\r\n return value.split(valueDelimiter);\r\n}\r\n\r\nexport function serializeColors(values: string[]): string {\r\n return values.join(valueDelimiter);\r\n}\r\n\r\nexport function deserializeValue(value: string): string[] {\r\n return value.split(valueDelimiter);\r\n}\r\n\r\nexport function serializeValue(values: string[]): string {\r\n return values.join(valueDelimiter);\r\n}\r\n\r\nexport function deserializeAllowMultiple(value: string): boolean {\r\n return value?.toLowerCase() === \"true\";\r\n}\r\n\r\nexport function serializeAllowMultiple(allowMultiple: boolean): string {\r\n return allowMultiple.toString();\r\n}\r\n\r\nexport function getSelectedColors(colors: string[], values: string[]): string[] {\r\n return colors.filter(color => values.some(value => value.toLowerCase() === color.toLowerCase()));\r\n}\r\n\r\n/**\r\n * Sets the camouflaged class if the element color is similar to the target element (or parent if not set).\r\n * @param {Element} element The element to compare.\r\n * @param {Element} ancestorElement (Optional) The target element with which to compare colors. Defaults to the parent element.\r\n */\r\nexport function setCamouflagedClass(element: Element, ancestorElement?: Element | null): void {\r\n if (!ancestorElement) {\r\n ancestorElement = element.parentElement;\r\n\r\n if (!ancestorElement) {\r\n return;\r\n }\r\n }\r\n\r\n const elementColor = getBackgroundColor(element);\r\n const ancestorElementColor = getBackgroundColor(ancestorElement);\r\n\r\n if (elementColor.isSimilarTo(ancestorElementColor)) {\r\n element.classList.add(elementColor.luma > 0.5 ? \"camouflaged-light\" : \"camouflaged-dark\");\r\n }\r\n else {\r\n element.classList.remove(\"camouflaged-light\");\r\n element.classList.remove(\"camouflaged-dark\");\r\n }\r\n}\r\n\r\nfunction getBackgroundColor(element: Element): RockColor {\r\n function getComputedBackgroundColor(element: Element): string {\r\n return window.getComputedStyle(element).getPropertyValue(\"background-color\");\r\n }\r\n\r\n // typically \"rgba(0, 0, 0, 0)\"\r\n const defaultColor = new RockColor(getComputedBackgroundColor(document.body));\r\n\r\n // Start with the supplied element.\r\n const elementsToProcess: Element[] = [\r\n element\r\n ];\r\n\r\n while (elementsToProcess.length) {\r\n // Process the first element in the array.\r\n const elementToProcess = elementsToProcess.shift();\r\n\r\n if (!elementToProcess) {\r\n // Skip to the next element if the current one is null or undefined.\r\n continue;\r\n }\r\n\r\n const backgroundColor = new RockColor(getComputedBackgroundColor(elementToProcess));\r\n\r\n // If we got a different value than the default, return it.\r\n if (backgroundColor.alpha !== 0 && backgroundColor.compareTo(defaultColor) !== 0) {\r\n return backgroundColor;\r\n }\r\n // Otherwise, add the parent element to the elements in process.\r\n else if (elementToProcess.parentElement) {\r\n elementsToProcess.push(elementToProcess.parentElement);\r\n }\r\n }\r\n\r\n // If we reached the top parent element and no unique color was found,\r\n // then return the default color.\r\n return defaultColor;\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component, nextTick } from \"vue\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { ConfigurationValueKey } from \"./colorSelectorField.types.partial\";\r\nimport { deserializeColors, deserializeValue, getSelectedColors, setCamouflagedClass } from \"./colorSelectorField.utils.partial\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport guid from \"@Obsidian/Utility/guid\";\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./colorSelectorComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./colorSelectorComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Color field.\r\n */\r\nexport class ColorSelectorFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n // value is a comma-separated list of guids/keys.\r\n // configurationValues[\"Colors\"] is an array of Key-Value pairs, where the key is a guid/key and the value is the hex color.\r\n try {\r\n const values = deserializeValue(value).map(clientKey => clientKey?.toLowerCase());\r\n const colors: string[] = deserializeColors(configurationValues[ConfigurationValueKey.Colors]);\r\n\r\n return getSelectedColors(colors, values).join(\",\");\r\n }\r\n catch {\r\n return \"\";\r\n }\r\n }\r\n\r\n public override getHtmlValue(value: string, configurationValues: Record<string, string>): string {\r\n const htmlStringBuilder: string[] = [];\r\n const selectorsToProcess: string[] = [];\r\n const colors = deserializeColors(configurationValues[ConfigurationValueKey.Colors]);\r\n const values = deserializeValue(value);\r\n\r\n htmlStringBuilder.push(\"<div class='color-selector-items'>\");\r\n\r\n const selectedColors = getSelectedColors(colors, values);\r\n\r\n for (const color of selectedColors) {\r\n const itemGuid = guid.newGuid();\r\n const containerId = `color-selector-item-container-${itemGuid}`;\r\n const itemId = `color-selector-item-${itemGuid}`;\r\n\r\n htmlStringBuilder.push(`<div id=\"${containerId}\" class=\"color-selector-item-container\">`);\r\n htmlStringBuilder.push(`<div id=\"${itemId}\" class=\"color-selector-item readonly\" style=\"background-color: ${color};\">`);\r\n htmlStringBuilder.push(\"</div>\");\r\n htmlStringBuilder.push(\"</div>\");\r\n\r\n // Keep track of the color elements that may have to be outlined\r\n // if they are too hard to see.\r\n selectorsToProcess.push(`#${itemId}`);\r\n }\r\n\r\n htmlStringBuilder.push(\"</div>\");\r\n\r\n this.processSelectors(selectorsToProcess);\r\n\r\n return htmlStringBuilder.join(\"\\n\");\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n private processSelectors(selectorsToProcess: string[]): void {\r\n const maxAttempts = 5;\r\n let attemptCount = 0;\r\n\r\n function internalProcessSelectors(): void {\r\n if (!selectorsToProcess.length || attemptCount >= maxAttempts) {\r\n return;\r\n }\r\n\r\n nextTick(() => {\r\n attemptCount++;\r\n const failedSelectors: string[] = [];\r\n\r\n while (selectorsToProcess.length) {\r\n // Process the element at the front of the array.\r\n const selector = selectorsToProcess.shift();\r\n\r\n if (!selector) {\r\n // Skip to the next selector if this one is empty.\r\n continue;\r\n }\r\n\r\n const element = document.querySelector(selector);\r\n\r\n if (!element) {\r\n // Add the selector to the end array and skip to the next selector.\r\n failedSelectors.push(selector);\r\n }\r\n else {\r\n setCamouflagedClass(element);\r\n }\r\n }\r\n\r\n // Add the failed selectors back to the array.\r\n selectorsToProcess.push(...failedSelectors);\r\n\r\n if (selectorsToProcess.length) {\r\n internalProcessSelectors();\r\n }\r\n });\r\n }\r\n\r\n // Start processing selectors.\r\n internalProcessSelectors();\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Values = \"values\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./connectionTypeFieldComponents\")).EditComponent;\r\n});\r\n\r\n// Load the configuration component only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./connectionTypeFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the MultiSelect field.\r\n */\r\nexport class ConnectionTypeField extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const values = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const userValues = value.split(\",\");\r\n const selectedValues = values.filter(v => userValues.includes(v.value ?? \"\"));\r\n return selectedValues.map(v => v.text)\r\n .map(v => v?.split(\":\").pop()) // just get the name of the note type\r\n .join(\", \");\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Values = \"values\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./connectionTypesFieldComponents\")).EditComponent;\r\n});\r\n\r\n// Load the configuration component only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./connectionTypesFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Connection Types field.\r\n */\r\nexport class ConnectionTypesField extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const values = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const userValues = value.split(\",\");\r\n const selectedValues = values.filter(v => userValues.includes(v.value ?? \"\"));\r\n return selectedValues.map(v => v.text)\r\n .map(v => v?.split(\":\").pop()) // just get the name of the note type\r\n .join(\", \");\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n RepeatColumns = \"repeatColumns\",\r\n Options = \"options\",\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./communicationPreferenceFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./communicationPreferenceFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Address field.\r\n */\r\nexport class CommunicationPreferenceField extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n const options = JSON.parse(configurationValues[ConfigurationValueKey.Options] ?? \"[]\") as ListItemBag[];\r\n const publicValue = options.find(x => x.value === value);\r\n return publicValue?.text ?? value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { numericComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { toCurrencyOrNull } from \"@Obsidian/Utility/numberUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n// The components can be quite large, so load only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./currencyFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./currencyFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Currency field.\r\n */\r\nexport class CurrencyFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return toCurrencyOrNull(value) ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n override getSupportedComparisonTypes(): ComparisonType {\r\n return numericComparisonTypes;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { dateComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { ComparisonValue } from \"@Obsidian/Types/Reporting/comparisonValue\";\r\nimport { asBoolean } from \"@Obsidian/Utility/booleanUtils\";\r\nimport { toNumber } from \"@Obsidian/Utility/numberUtils\";\r\nimport { calculateSlidingDateRange, getRangeTypeText, getTimeUnitText, parseSlidingDateRangeString, RangeType, TimeUnit } from \"@Obsidian/Utility/slidingDateRange\";\r\nimport { RockDateTime } from \"@Obsidian/Utility/rockDateTime\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { getStandardFilterComponent } from \"./utils\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Format = \"format\",\r\n DisplayDiff = \"displayDiff\",\r\n DisplayCurrentOption = \"displayCurrentOption\",\r\n DatePickerControlType = \"datePickerControlType\",\r\n FutureYearCount = \"futureYearCount\"\r\n}\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./dateFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./dateFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n// Load the filter component as needed.\r\nconst filterComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./dateFieldComponents\")).FilterComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Date field.\r\n */\r\nexport class DateFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (this.isCurrentDateValue(value)) {\r\n return this.getCurrentDateText(value);\r\n }\r\n else if (value) {\r\n const dateValue = RockDateTime.parseISO(value);\r\n const dateFormatTemplate = configurationValues[ConfigurationValueKey.Format] || \"MM/dd/yyy\";\r\n\r\n if (dateValue !== null) {\r\n let textValue = dateValue.toASPString(dateFormatTemplate);\r\n\r\n const displayDiff = asBoolean(configurationValues[ConfigurationValueKey.DisplayDiff]);\r\n\r\n if (displayDiff === true) {\r\n textValue = `${textValue} ${dateValue.toElapsedString()}`;\r\n }\r\n\r\n return textValue;\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return dateComparisonTypes;\r\n }\r\n\r\n public override getFilterComponent(): Component {\r\n return getStandardFilterComponent(this.getSupportedComparisonTypes(), filterComponent, {\r\n updateComparisonTypeNames: (options) => {\r\n options.filter(o => o.value === ComparisonType.Between.toString())\r\n .forEach(o => o.text = \"Range\");\r\n }\r\n });\r\n }\r\n\r\n public override getFilterValueDescription(value: ComparisonValue, configurationValues: Record<string, string>): string {\r\n if (value.comparisonType === ComparisonType.Between) {\r\n return `During '${this.getFilterValueText(value, configurationValues)}'`;\r\n }\r\n\r\n return super.getFilterValueDescription(value, configurationValues);\r\n }\r\n\r\n public override getFilterValueText(value: ComparisonValue, _configurationValues: Record<string, string>): string {\r\n const filterValues = value.value.split(\"\\t\");\r\n\r\n // If the comparison type is Between, then we need to use the second\r\n // value that was specified.\r\n if (value.comparisonType === ComparisonType.Between && filterValues.length > 1) {\r\n const range = parseSlidingDateRangeString(filterValues[1]);\r\n\r\n // If we couldn't parse the range information then just return\r\n // the raw value, which should be an empty string, but would give\r\n // some indication that something is wrong if it isn't.\r\n if (range === null) {\r\n return filterValues[1];\r\n }\r\n\r\n // Get the calculated values from the SlidingDateRange.\r\n const rangeTypeText = getRangeTypeText(range.rangeType);\r\n const timeUnitValue = range.timeValue ?? 1;\r\n const timeUnitText = getTimeUnitText(range.timeUnit ?? TimeUnit.Hour) + (timeUnitValue !== 1 ? \"s\" : \"\");\r\n\r\n // Format the text depending on the range type.\r\n if (range.rangeType === RangeType.Current) {\r\n return `${rangeTypeText} ${timeUnitText}`;\r\n }\r\n else if (([RangeType.Last, RangeType.Previous, RangeType.Next, RangeType.Upcoming] as number[]).includes(range.rangeType)) {\r\n return `${rangeTypeText} ${timeUnitValue} ${timeUnitText}`;\r\n }\r\n else {\r\n if (range.lowerDate && range.upperDate) {\r\n return `${range.lowerDate} to ${range.upperDate}`;\r\n }\r\n else if (range.lowerDate) {\r\n return `from ${range.lowerDate}`;\r\n }\r\n else if (range.upperDate) {\r\n return `through ${range.upperDate}`;\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n }\r\n else {\r\n // If it's not a between, check if it's a \"Current Date\" value.\r\n if (this.isCurrentDateValue(filterValues[0])) {\r\n return `'${this.getCurrentDateText(filterValues[0])}'`;\r\n }\r\n\r\n // Nope, just use the date value specified.\r\n return filterValues[0] ? `'${filterValues[0]}'` : \"\";\r\n }\r\n }\r\n\r\n public override doesValueMatchFilter(value: string, filterValue: ComparisonValue, configurationValues: Record<string, string>): boolean {\r\n if (!filterValue.comparisonType) {\r\n return false;\r\n }\r\n\r\n const filterValueValues = filterValue.value.split(\"\\t\");\r\n\r\n // Try to parse the value as a date. If it can't be parsed then check\r\n // it against the Is Blank and Is Not Blank comparison types.\r\n const valueDate = RockDateTime.parseISO(value ?? \"\");\r\n\r\n if (filterValue.comparisonType === ComparisonType.IsBlank) {\r\n return valueDate === null;\r\n }\r\n else if (filterValue.comparisonType === ComparisonType.IsNotBlank) {\r\n return valueDate !== null;\r\n }\r\n else if (valueDate === null) {\r\n return false;\r\n }\r\n\r\n if (filterValue.comparisonType === ComparisonType.Between && filterValueValues.length > 1) {\r\n const slidingRange = parseSlidingDateRangeString(filterValueValues[1]);\r\n\r\n if (!slidingRange) {\r\n return false;\r\n }\r\n\r\n const dateRange = calculateSlidingDateRange(slidingRange);\r\n\r\n // check if the date range was not valid or the value is before the\r\n // start date and time.\r\n if (!dateRange.start || valueDate.toMilliseconds() < dateRange.start.toMilliseconds()) {\r\n return false;\r\n }\r\n\r\n if (dateRange.end && valueDate.toMilliseconds() >= dateRange.end.toMilliseconds()) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n // Try to parse the filter date. If it can't be parsed then no match.\r\n const filterDate = this.getRelativeOrAbsoluteDate(filterValueValues[0]);\r\n\r\n if (filterDate === null) {\r\n return false;\r\n }\r\n\r\n // Convert the two dates into a format that we can do numeric comparison on.\r\n const newFilterValue: ComparisonValue = {\r\n comparisonType: filterValue.comparisonType,\r\n value: filterDate.toASPString(\"yyyyMMdd\")\r\n };\r\n\r\n return super.doesValueMatchFilter(valueDate.toASPString(\"yyyyMMdd\"), newFilterValue, configurationValues);\r\n }\r\n\r\n /**\r\n * Determines if the value is a \"current date\" value, which would then\r\n * specify the number of days +/- to adjust.\r\n *\r\n * @param value The value to be checked.\r\n *\r\n * @returns true if the value represents a \"current date\" value; otherwise false.\r\n */\r\n private isCurrentDateValue(value: string): boolean {\r\n return value.indexOf(\"CURRENT\") === 0;\r\n }\r\n\r\n /**\r\n * Get the text that describes the \"current date\" value specified.\r\n *\r\n * @param value The value that contains the \"current date\" value.\r\n *\r\n * @returns A human friendly description of the \"current date\" value.\r\n */\r\n private getCurrentDateText(value: string): string {\r\n const parts = (value ?? \"\").split(\":\");\r\n const diff = parts.length === 2 ? toNumber(parts[1]) : 0;\r\n\r\n if (diff === 1) {\r\n return \"Current Date plus 1 day\";\r\n }\r\n else if (diff > 0) {\r\n return `Current Date plus ${diff} days`;\r\n }\r\n else if (diff === -1) {\r\n return \"Current Date minus 1 day\";\r\n }\r\n else if (diff < 0) {\r\n return `Current Date minus ${Math.abs(diff)} days`;\r\n }\r\n else {\r\n return \"Current Date\";\r\n }\r\n }\r\n\r\n /**\r\n * Gets the relatative date if available otherwise the absolute date.\r\n *\r\n * @param value The string value to be parsed as relative or absolute.\r\n *\r\n * @returns A new RockDateTime instance that represents the value or null if it couldn't be determined.\r\n */\r\n private getRelativeOrAbsoluteDate(value: string): RockDateTime | null {\r\n if (!this.isCurrentDateValue(value)) {\r\n return RockDateTime.parseISO(value);\r\n }\r\n\r\n const today = RockDateTime.now().date;\r\n const valueParts = value.split(\":\");\r\n\r\n if (valueParts.length > 1) {\r\n return today.addDays(toNumber(valueParts[1]));\r\n }\r\n\r\n return today;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { toNumber } from \"@Obsidian/Utility/numberUtils\";\r\nimport { DateTimeFormat, RockDateTime } from \"@Obsidian/Utility/rockDateTime\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./dateRangeFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./dateRangeFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Date Range field.\r\n */\r\nexport class DateRangeFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n const dateParts = (value ?? \"\").split(\",\");\r\n\r\n if (dateParts.length !== 2) {\r\n return \"\";\r\n }\r\n\r\n const lowerDateParts = /^(\\d+)-(\\d+)-(\\d+)/.exec(dateParts[0]);\r\n const upperDateParts = /^(\\d+)-(\\d+)-(\\d+)/.exec(dateParts[1]);\r\n\r\n const lowerDate = lowerDateParts !== null ? RockDateTime.fromParts(toNumber(lowerDateParts[1]), toNumber(lowerDateParts[2]), toNumber(lowerDateParts[3])) : null;\r\n const upperDate = upperDateParts !== null ? RockDateTime.fromParts(toNumber(upperDateParts[1]), toNumber(upperDateParts[2]), toNumber(upperDateParts[3])) : null;\r\n\r\n if (lowerDate !== null && upperDate !== null) {\r\n return `${lowerDate.toLocaleString(DateTimeFormat.DateShort)} to ${upperDate.toLocaleString(DateTimeFormat.DateShort)}`;\r\n }\r\n else if (lowerDate !== null) {\r\n return `from ${lowerDate.toLocaleString(DateTimeFormat.DateShort)}`;\r\n }\r\n else if (upperDate !== null) {\r\n return `through ${upperDate.toLocaleString(DateTimeFormat.DateShort)}`;\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { dateComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { ComparisonValue } from \"@Obsidian/Types/Reporting/comparisonValue\";\r\nimport { asBoolean } from \"@Obsidian/Utility/booleanUtils\";\r\nimport { toNumber } from \"@Obsidian/Utility/numberUtils\";\r\nimport { getRangeTypeText, getTimeUnitText, parseSlidingDateRangeString, RangeType, TimeUnit } from \"@Obsidian/Utility/slidingDateRange\";\r\nimport { RockDateTime } from \"@Obsidian/Utility/rockDateTime\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { getStandardFilterComponent } from \"./utils\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Format = \"format\",\r\n DisplayAsElapsedTime = \"displayDiff\",\r\n DisplayCurrentOption = \"displayCurrentOption\"\r\n}\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./dateTimeFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./dateTimeFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n// Load the filter component as needed.\r\nconst filterComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./dateTimeFieldComponents\")).FilterComponent;\r\n});\r\n\r\n\r\n/**\r\n * The field type handler for the Date Time field.\r\n */\r\nexport class DateTimeFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (this.isCurrentDateValue(value)) {\r\n return this.getCurrentDateText(value);\r\n }\r\n else if (value) {\r\n const dateValue = RockDateTime.parseISO(value);\r\n const dateFormatTemplate = configurationValues[ConfigurationValueKey.Format] || \"MM/dd/yyy\";\r\n\r\n if (dateValue !== null) {\r\n let textValue = dateValue.toASPString(dateFormatTemplate);\r\n\r\n const displayDiff = asBoolean(configurationValues[ConfigurationValueKey.DisplayAsElapsedTime]);\r\n\r\n if (displayDiff === true) {\r\n textValue = `${textValue} ${dateValue.toElapsedString()}`;\r\n }\r\n\r\n return textValue;\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return dateComparisonTypes;\r\n }\r\n\r\n public override getFilterComponent(): Component {\r\n return getStandardFilterComponent(this.getSupportedComparisonTypes(), filterComponent, {\r\n updateComparisonTypeNames: (options) => {\r\n options.filter(o => o.value === ComparisonType.Between.toString())\r\n .forEach(o => o.text = \"Range\");\r\n }\r\n });\r\n }\r\n\r\n public override getFilterValueDescription(value: ComparisonValue, configurationValues: Record<string, string>): string {\r\n if (value.comparisonType === ComparisonType.Between) {\r\n return `During '${this.getFilterValueText(value, configurationValues)}'`;\r\n }\r\n\r\n return super.getFilterValueDescription(value, configurationValues);\r\n }\r\n\r\n public override getFilterValueText(value: ComparisonValue, _configurationValues: Record<string, string>): string {\r\n const filterValues = value.value.split(\"\\t\");\r\n\r\n // If the comparison type is Between, then we need to use the second\r\n // value that was specified.\r\n if (value.comparisonType === ComparisonType.Between && filterValues.length > 1) {\r\n const range = parseSlidingDateRangeString(filterValues[1]);\r\n\r\n // If we couldn't parse the range information then just return\r\n // the raw value, which should be an empty string, but would give\r\n // some indication that something is wrong if it isn't.\r\n if (range === null) {\r\n return filterValues[1];\r\n }\r\n\r\n // Get the calculated values from the SlidingDateRange.\r\n const rangeTypeText = getRangeTypeText(range.rangeType);\r\n const timeUnitValue = range.timeValue ?? 1;\r\n const timeUnitText = getTimeUnitText(range.timeUnit ?? TimeUnit.Hour) + (timeUnitValue !== 1 ? \"s\" : \"\");\r\n\r\n // Format the text depending on the range type.\r\n if (range.rangeType === RangeType.Current) {\r\n return `${rangeTypeText} ${timeUnitText}`;\r\n }\r\n else if (([RangeType.Last, RangeType.Previous, RangeType.Next, RangeType.Upcoming] as number[]).includes(range.rangeType)) {\r\n return `${rangeTypeText} ${timeUnitValue} ${timeUnitText}`;\r\n }\r\n else {\r\n if (range.lowerDate && range.upperDate) {\r\n return `${range.lowerDate} to ${range.upperDate}`;\r\n }\r\n else if (range.lowerDate) {\r\n return `from ${range.lowerDate}`;\r\n }\r\n else if (range.upperDate) {\r\n return `through ${range.upperDate}`;\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n }\r\n else {\r\n // If it's not a between, check if it's a \"Current Date\" value.\r\n if (this.isCurrentDateValue(filterValues[0])) {\r\n return `'${this.getCurrentDateText(filterValues[0])}'`;\r\n }\r\n\r\n // Nope, just use the date value specified.\r\n return filterValues[0] ? `'${filterValues[0]}'` : \"\";\r\n }\r\n }\r\n\r\n /**\r\n * Determines if the value is a \"current date\" value, which would then\r\n * specify the number of minutes +/- to adjust.\r\n *\r\n * @param value The value to be checked.\r\n *\r\n * @returns true if the value represents a \"current date\" value; otherwise false.\r\n */\r\n private isCurrentDateValue(value: string): boolean {\r\n return value.indexOf(\"CURRENT\") === 0;\r\n }\r\n\r\n /**\r\n * Get the text that describes the \"current date\" value specified.\r\n *\r\n * @param value The value that contains the \"current date\" value.\r\n *\r\n * @returns A human friendly description of the \"current date\" value.\r\n */\r\n private getCurrentDateText(value: string): string {\r\n const parts = value.split(\":\");\r\n const diff = parts.length === 2 ? toNumber(parts[1]) : 0;\r\n\r\n if (diff === 1) {\r\n return \"Current Time plus 1 minute\";\r\n }\r\n else if (diff > 0) {\r\n return `Current Time plus ${diff} minutes`;\r\n }\r\n else if (diff === -1) {\r\n return \"Current Time minus 1 minute\";\r\n }\r\n else if (diff < 0) {\r\n return `Current Time minus ${Math.abs(diff)} minutes`;\r\n }\r\n else {\r\n return \"Current Time\";\r\n }\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { toNumberOrNull } from \"@Obsidian/Utility/numberUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { getStandardFilterComponent } from \"./utils\";\r\nimport { DayOfWeek } from \"@Obsidian/Enums/Controls/dayOfWeek\";\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./dayOfWeekFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The filter component can be quite large, so load it only as needed.\r\nconst filterComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./dayOfWeekFieldComponents\")).FilterComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./dayOfWeekFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the DayOfWeek field.\r\n */\r\nexport class DayOfWeekFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n const dayValue = toNumberOrNull(value);\r\n\r\n if (dayValue === null) {\r\n return \"\";\r\n }\r\n else {\r\n switch (dayValue) {\r\n case DayOfWeek.Sunday:\r\n return \"Sunday\";\r\n\r\n case DayOfWeek.Monday:\r\n return \"Monday\";\r\n\r\n case DayOfWeek.Tuesday:\r\n return \"Tuesday\";\r\n\r\n case DayOfWeek.Wednesday:\r\n return \"Wednesday\";\r\n\r\n case DayOfWeek.Thursday:\r\n return \"Thursday\";\r\n\r\n case DayOfWeek.Friday:\r\n return \"Friday\";\r\n\r\n case DayOfWeek.Saturday:\r\n return \"Saturday\";\r\n\r\n default:\r\n return \"\";\r\n }\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getFilterComponent(): Component {\r\n return getStandardFilterComponent(\"Is\", filterComponent);\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { containsComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { toNumberOrNull } from \"@Obsidian/Utility/numberUtils\";\r\nimport { DayOfWeek } from \"@Obsidian/Enums/Controls/dayOfWeek\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./daysOfWeekFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./daysOfWeekFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the DaysOfWeek field.\r\n */\r\nexport class DaysOfWeekFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n if (value === null || value === undefined || value === \"\") {\r\n return \"\";\r\n }\r\n\r\n return value.split(\",\")\r\n .map(v => {\r\n const dayValue = toNumberOrNull(v);\r\n\r\n if (dayValue === null) {\r\n return \"\";\r\n }\r\n else {\r\n switch (dayValue) {\r\n case DayOfWeek.Sunday:\r\n return \"Sunday\";\r\n\r\n case DayOfWeek.Monday:\r\n return \"Monday\";\r\n\r\n case DayOfWeek.Tuesday:\r\n return \"Tuesday\";\r\n\r\n case DayOfWeek.Wednesday:\r\n return \"Wednesday\";\r\n\r\n case DayOfWeek.Thursday:\r\n return \"Thursday\";\r\n\r\n case DayOfWeek.Friday:\r\n return \"Friday\";\r\n\r\n case DayOfWeek.Saturday:\r\n return \"Saturday\";\r\n\r\n default:\r\n return \"\";\r\n }\r\n }\r\n })\r\n .filter(v => v != \"\")\r\n .join(\", \");\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return containsComparisonTypes;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { numericComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { toNumberOrNull } from \"@Obsidian/Utility/numberUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./decimalFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./decimalFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Decimal field.\r\n */\r\nexport class DecimalFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return toNumberOrNull(value)?.toString() ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return numericComparisonTypes;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { toNumberOrNull } from \"@Obsidian/Utility/numberUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./decimalRangeFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./decimalRangeFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Decimal Range field.\r\n */\r\nexport class DecimalRangeFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n if (value === null || value === undefined || value === \"\" || value === \",\") {\r\n return \"\";\r\n }\r\n\r\n const numbers = value.split(\",\").map(v => toNumberOrNull(v));\r\n\r\n // If there are not two components then it's not valid, or if both\r\n // components are not numbers then it's not valid.\r\n if (numbers.length !== 2 || (numbers[0] === null && numbers[1] === null)) {\r\n return \"\";\r\n }\r\n\r\n if (numbers[0] === null) {\r\n return `through ${numbers[1]}`;\r\n }\r\n else if (numbers[1] === null) {\r\n return `from ${numbers[0]}`;\r\n }\r\n else {\r\n return `${numbers[0]} to ${numbers[1]}`;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { containsComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { ComparisonValue } from \"@Obsidian/Types/Reporting/comparisonValue\";\r\nimport { asBoolean } from \"@Obsidian/Utility/booleanUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { getStandardFilterComponent } from \"./utils\";\r\n\r\n/**\r\n * The key names for the configuration properties available when editing the\r\n * configuration of a DefinedValue field type.\r\n */\r\nexport const enum ConfigurationPropertyKey {\r\n /** The defined types available to be picked. */\r\n DefinedTypes = \"definedTypes\",\r\n\r\n /** The defined values available to be picked. */\r\n DefinedValues = \"definedValues\"\r\n}\r\n\r\n/**\r\n * The configuration value keys used by the configuraiton and edit controls.\r\n */\r\nexport const enum ConfigurationValueKey {\r\n /** The unique identifier of the defined type currently selected. */\r\n DefinedType = \"definedtype\",\r\n\r\n /**\r\n * The unique identifiers of the defined values that can be selected\r\n * during editing.\r\n */\r\n Values = \"values\",\r\n\r\n /**\r\n * Contains \"True\" if the edit control should be rendered to allow\r\n * selecting multiple values.\r\n */\r\n AllowMultiple = \"allowmultiple\",\r\n\r\n /**\r\n * Contains \"True\" if the edit control should display descriptions instead\r\n * of values.\r\n */\r\n DisplayDescription = \"displaydescription\",\r\n\r\n /**\r\n * Contains \"True\" if the edit control should use enhanced selection.\r\n */\r\n EnhancedSelection = \"enhancedselection\",\r\n\r\n /** Contains \"True\" if in-active values should be included. */\r\n IncludeInactive = \"includeInactive\",\r\n\r\n /** A comma separated list of selectable value identifiers. */\r\n SelectableValues = \"selectableValues\",\r\n\r\n /** Contains \"True\" if adding new values is permitted. */\r\n AllowAddingNewValues = \"AllowAddingNewValues\",\r\n\r\n /** The number of columns to use when multiple selection is allowed. */\r\n RepeatColumns = \"RepeatColumns\"\r\n}\r\n\r\nexport type ValueItem = {\r\n value: string,\r\n text: string,\r\n description: string\r\n};\r\n\r\nexport type ClientValue = {\r\n value: string,\r\n text: string,\r\n description: string\r\n};\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./definedValueFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./definedValueFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n// Load the filter component only as needed.\r\nconst filterComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./definedValueFieldComponents\")).FilterComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Defined Value field.\r\n */\r\nexport class DefinedValueFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n try {\r\n const clientValue = JSON.parse(value ?? \"\") as ClientValue;\r\n\r\n try {\r\n const values = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ValueItem[];\r\n const displayDescription = asBoolean(configurationValues[ConfigurationValueKey.DisplayDescription]);\r\n const rawValues = clientValue.value.split(\",\");\r\n\r\n return values.filter(v => rawValues.includes(v.value))\r\n .map(v => displayDescription && v.description ? v.description : v.text)\r\n .join(\", \");\r\n }\r\n catch {\r\n return clientValue.value;\r\n }\r\n }\r\n catch {\r\n return \"\";\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return containsComparisonTypes;\r\n }\r\n\r\n public override getFilterValueText(value: ComparisonValue, configurationValues: Record<string, string>): string {\r\n try {\r\n const clientValue = JSON.parse(value.value ?? \"\") as ClientValue;\r\n\r\n const values = JSON.parse(configurationValues?.[ConfigurationValueKey.Values] ?? \"[]\") as ValueItem[];\r\n const useDescription = asBoolean(configurationValues?.[ConfigurationValueKey.DisplayDescription]);\r\n const rawValues = clientValue.value.split(\",\");\r\n\r\n const text = values.filter(v => rawValues.includes(v.value))\r\n .map(v => useDescription ? v.description : v.text)\r\n .join(\"' OR '\");\r\n\r\n return text ? `'${text}'` : \"\";\r\n }\r\n catch {\r\n return \"\";\r\n }\r\n }\r\n\r\n public override getFilterComponent(): Component {\r\n return getStandardFilterComponent(this.getSupportedComparisonTypes(), filterComponent);\r\n }\r\n\r\n public override doesValueMatchFilter(value: string, filterValue: ComparisonValue, _configurationValues: Record<string, string>): boolean {\r\n const clientValue = JSON.parse(value || \"{}\") as ClientValue;\r\n const selectedValues = (filterValue.value ?? \"\").split(\",\").filter(v => v !== \"\").map(v => v.toLowerCase());\r\n let comparisonType = filterValue.comparisonType;\r\n\r\n if (comparisonType === ComparisonType.EqualTo) {\r\n // Treat EqualTo as if it were Contains.\r\n comparisonType = ComparisonType.Contains;\r\n }\r\n else if (comparisonType === ComparisonType.NotEqualTo) {\r\n // Treat NotEqualTo as if it were DoesNotContain.\r\n comparisonType = ComparisonType.DoesNotContain;\r\n }\r\n\r\n if (comparisonType === ComparisonType.IsBlank) {\r\n return (clientValue.value ?? \"\") === \"\";\r\n }\r\n else if (comparisonType === ComparisonType.IsNotBlank) {\r\n return (clientValue.value ?? \"\") !== \"\";\r\n }\r\n\r\n if (selectedValues.length > 0) {\r\n const userValues = (clientValue.value ?? \"\").toLowerCase().split(\",\").filter(v => v !== \"\");\r\n\r\n if (comparisonType === ComparisonType.Contains) {\r\n let matchedCount = 0;\r\n\r\n for (const userValue of userValues) {\r\n if (selectedValues.includes(userValue)) {\r\n matchedCount += 1;\r\n }\r\n }\r\n\r\n return matchedCount > 0;\r\n }\r\n else {\r\n let matchedCount = 0;\r\n\r\n for (const userValue of userValues) {\r\n if (selectedValues.includes(userValue)) {\r\n matchedCount += 1;\r\n }\r\n }\r\n\r\n return matchedCount !== selectedValues.length;\r\n }\r\n }\r\n\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { asBoolean } from \"@Obsidian/Utility/booleanUtils\";\r\nimport { List } from \"@Obsidian/Utility/linq\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Values = \"values\",\r\n DisplayDescription = \"displaydescription\"\r\n}\r\n\r\nexport type ValueItem = {\r\n value: string,\r\n text: string,\r\n description: string\r\n};\r\n\r\nexport type ClientValue = {\r\n value?: string;\r\n text?: string;\r\n description?: string;\r\n};\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./definedValueRangeFieldComponents\")).EditComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Defined Value Range field.\r\n */\r\nexport class DefinedValueRangeFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n try {\r\n const clientValue = JSON.parse(value) as ClientValue;\r\n\r\n try {\r\n const values = new List(JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ValueItem[]);\r\n const displayDescription = asBoolean(configurationValues[ConfigurationValueKey.DisplayDescription]);\r\n const rawValues = (clientValue.value ?? \"\").split(\",\");\r\n\r\n if (rawValues.length !== 2) {\r\n return value;\r\n }\r\n\r\n const lowerValue = values.firstOrUndefined(v => v?.value === rawValues[0]);\r\n const upperValue = values.firstOrUndefined(v => v?.value === rawValues[1]);\r\n\r\n if (lowerValue === undefined && upperValue === undefined) {\r\n return \"\";\r\n }\r\n\r\n if (displayDescription) {\r\n return `${lowerValue?.description ?? \"\"} to ${upperValue?.description ?? \"\"}`;\r\n }\r\n else {\r\n return `${lowerValue?.text ?? \"\"} to ${upperValue?.text ?? \"\"}`;\r\n }\r\n }\r\n catch {\r\n return clientValue.value ?? \"\";\r\n }\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getCondensedTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n try {\r\n const clientValue = JSON.parse(value ?? \"\") as ClientValue;\r\n\r\n return clientValue.text ?? \"\";\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { stringComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { getStandardFilterComponent } from \"./utils\";\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./emailFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The filter component can be quite large, so load it only as needed.\r\nconst filterComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./emailFieldComponents\")).FilterComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./emailFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Email field.\r\n */\r\nexport class EmailFieldType extends FieldTypeBase {\r\n public override getHtmlValue(value: string, configurationValues: Record<string, string>): string {\r\n const textValue = this.getTextValue(value, configurationValues);\r\n\r\n return textValue ? `<a href=\"mailto:${textValue}\">${textValue}</a>` : \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getFilterComponent(): Component {\r\n return getStandardFilterComponent(this.getSupportedComparisonTypes(), filterComponent);\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return stringComparisonTypes;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\n// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n DisplayPublicName = \"displaypublicname\",\r\n DisplayChildItemCounts = \"displaychilditemcounts\",\r\n DisplayActiveItemsOnly = \"displayactiveitemsonly\",\r\n EnhancedForLongLists = \"enhancedforlonglists\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./financialAccountFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./financialAccountFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Financial Account field.\r\n */\r\nexport class FinancialAccountFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\n// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n DisplayPublicName = \"displaypublicname\",\r\n DisplayChildItemCounts = \"displaychilditemcounts\",\r\n DisplayActiveItemsOnly = \"displayactiveitemsonly\",\r\n EnhancedForLongLists = \"enhancedforlonglists\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./financialAccountsFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./financialAccountsFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Financial Account field.\r\n */\r\nexport class FinancialAccountsFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { escapeHtml } from \"@Obsidian/Utility/stringUtils\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n/**\r\n * The key names for the configuration properties available when editing the\r\n * configuration of a File field type.\r\n */\r\nexport const enum ConfigurationPropertyKey {\r\n /** The binary file types available to pick from. */\r\n BinaryFileTypes = \"binaryFileTypes\"\r\n}\r\n\r\n/**\r\n * The configuration value keys used by the configuraiton and edit controls.\r\n */\r\nexport const enum ConfigurationValueKey {\r\n /** The unique identifier of the BinaryFileType to use for uploads. */\r\n BinaryFileType = \"binaryFileType\",\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./fileFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./fileFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the File field.\r\n */\r\nexport class FileFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n try {\r\n const realValue = JSON.parse(value) as ListItemBag;\r\n\r\n return realValue.text ?? \"\";\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getHtmlValue(value: string, _configurationValues: Record<string, string>): string {\r\n try {\r\n const realValue = JSON.parse(value ?? \"\") as ListItemBag;\r\n\r\n return `<a href=\"/GetFile.ashx?guid=${realValue.value}\" title=\"${escapeHtml(realValue.text ?? \"\")}\" class=\"btn btn-xs btn-default\">View</a>`;\r\n }\r\n catch {\r\n return value ?? \"\";\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return ComparisonType.IsBlank | ComparisonType.IsNotBlank;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { toNumberOrNull } from \"@Obsidian/Utility/numberUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./genderFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./genderFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Gender field.\r\n */\r\nexport class GenderFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n const numberValue = toNumberOrNull(value);\r\n\r\n if (numberValue === 0) {\r\n return \"Unknown\";\r\n }\r\n else if (numberValue === 1) {\r\n return \"Male\";\r\n }\r\n else if (numberValue === 2) {\r\n return \"Female\";\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n GroupRolePickerLabel = \"groupAndRolePickerLabel\"\r\n}\r\n\r\nexport type GroupAndRoleValue = {\r\n groupType: ListItemBag;\r\n group: ListItemBag;\r\n groupRole: ListItemBag;\r\n groupTypeRoles: ListItemBag[];\r\n};\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupAndRoleFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupAndRoleFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Social Media Account field.\r\n */\r\nexport class GroupAndRoleFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Address field.\r\n */\r\nexport class GroupFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n GroupType = \"groupTypeGuid\",\r\n GroupTypeLocations = \"groupTypeLocations\",\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupLocationTypeFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupLocationTypeFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Group Location Type field.\r\n */\r\nexport class GroupLocationTypeFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n GroupType = \"grouptype\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupRoleFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupRoleFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Address field.\r\n */\r\nexport class GroupRoleFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n AllowMultipleValues = \"allowmultiple\",\r\n EnhanceForLongLists = \"enhancedselection\",\r\n Group = \"group\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupMemberFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupMemberFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Address field.\r\n */\r\nexport class GroupMemberFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n GroupTypePurposeValueGuid = \"groupTypePurposeValueGuid\",\r\n GroupTypePurposes = \"groupTypePurposes\",\r\n Values = \"values\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupTypeFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupTypeFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Group Type field.\r\n */\r\nexport class GroupTypeField extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (value === undefined || value === null || value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const values = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const selectedValues = values.filter(o => o.value === value);\r\n return selectedValues.map(o => o.text).join(\", \");\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n EnhancedSelection = \"enhancedselection\",\r\n RepeatColumns = \"repeatColumns\",\r\n Values = \"values\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupTypesFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./groupTypesFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Group Type field.\r\n */\r\nexport class GroupTypesFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (value === undefined || value === null || value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const values = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const userValues = value.split(\",\");\r\n const selectedValues = values.filter(o => userValues.includes(o.value ?? \"\"));\r\n\r\n return selectedValues.map(o => o.text).join(\", \");\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n/**\r\n * The key names for the configuration properties available when editing the\r\n * configuration of an Image field type.\r\n */\r\nexport const enum ConfigurationPropertyKey {\r\n /** The binary file types available to pick from. */\r\n BinaryFileTypes = \"binaryFileTypes\"\r\n}\r\n\r\n/**\r\n * The configuration value keys used by the configuraiton and edit controls.\r\n */\r\nexport const enum ConfigurationValueKey {\r\n /** The unique identifier of the BinaryFileType to use for uploads. */\r\n BinaryFileType = \"binaryFileType\",\r\n\r\n /** Determines if the rendered HTML should be clickable. */\r\n FormatAsLink = \"formatAsLink\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./imageFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./imageFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Image field.\r\n */\r\nexport class ImageFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n try {\r\n const realValue = JSON.parse(value ?? \"\") as ListItemBag;\r\n\r\n if (!realValue.value) {\r\n return \"\";\r\n }\r\n\r\n return realValue.text ?? \"\";\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getHtmlValue(value: string, _configurationValues: Record<string, string>): string {\r\n try {\r\n const realValue = JSON.parse(value ?? \"\") as ListItemBag;\r\n\r\n if (!realValue.value) {\r\n return \"\";\r\n }\r\n\r\n return `<img src=\"/GetImage.ashx?guid=${realValue.value}\" class=\"img-responsive\" />`;\r\n }\r\n catch {\r\n return value ?? \"\";\r\n }\r\n }\r\n\r\n public override getCondensedHtmlValue(value: string, _configurationValues: Record<string, string>): string {\r\n try {\r\n const realValue = JSON.parse(value ?? \"\") as ListItemBag;\r\n\r\n if (!realValue.value) {\r\n return \"\";\r\n }\r\n\r\n return `<img src=\"/GetImage.ashx?guid=${realValue.value}&width=120\" class=\"img-responsive\" />`;\r\n }\r\n catch {\r\n return value ?? \"\";\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return ComparisonType.IsBlank | ComparisonType.IsNotBlank;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { numericComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { toNumberOrNull } from \"@Obsidian/Utility/numberUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./integerFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./integerFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Integer field.\r\n */\r\nexport class IntegerFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return toNumberOrNull(value)?.toString() ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return numericComparisonTypes;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { toNumberOrNull } from \"@Obsidian/Utility/numberUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./integerRangeFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./integerRangeFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Integer Range field.\r\n */\r\nexport class IntegerRangeFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n if (value === \"\" || value === \",\") {\r\n return \"\";\r\n }\r\n\r\n const numbers = value.split(\",\").map(v => toNumberOrNull(v));\r\n\r\n // If there are not two components then it's not valid, or if both\r\n // components are not numbers then it's not valid.\r\n if (numbers.length !== 2 || (numbers[0] === null && numbers[1] === null)) {\r\n return \"\";\r\n }\r\n\r\n if (numbers[0] === null) {\r\n return `through ${numbers[1]}`;\r\n }\r\n else if (numbers[1] === null) {\r\n return `from ${numbers[0]}`;\r\n }\r\n else {\r\n return `${numbers[0]} to ${numbers[1]}`;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { List } from \"@Obsidian/Utility/linq\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Values = \"values\",\r\n KeyPrompt = \"keyprompt\",\r\n ValuePrompt = \"valueprompt\",\r\n DisplayValueFirst = \"displayvaluefirst\",\r\n AllowHtml = \"allowhtml\",\r\n\r\n // Only used during editing of the field type configuration.\r\n CustomValues = \"customvalues\",\r\n DefinedType = \"definedtype\"\r\n}\r\n\r\nexport const enum ConfigurationPropertyKey {\r\n DefinedTypes = \"definedTypes\"\r\n}\r\n\r\nexport type ValueItem = {\r\n value: string,\r\n text: string\r\n};\r\n\r\nexport type ClientValue = {\r\n key: string,\r\n value: string\r\n};\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./keyValueListFieldComponents\")).EditComponent;\r\n});\r\n\r\n// Load the configuration component as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./keyValueListFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Key Value List field.\r\n */\r\nexport class KeyValueListFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n try {\r\n const clientValues = JSON.parse(value ?? \"[]\") as ClientValue[];\r\n const configuredValues = new List(JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ValueItem[]);\r\n const values: string[] = [];\r\n\r\n for (const clientValue of clientValues) {\r\n const configuredValue = configuredValues.firstOrUndefined(v => v.value === clientValue.value);\r\n\r\n if (configuredValue !== undefined) {\r\n values.push(`${clientValue.key}: ${configuredValue.text}`);\r\n }\r\n else {\r\n values.push(`${clientValue.key}: ${clientValue.value}`);\r\n }\r\n }\r\n\r\n return values.join(\", \");\r\n }\r\n catch {\r\n return \"\";\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n/**\r\n * The configuration value keys used by the configuraiton and edit controls.\r\n */\r\nexport const enum ConfigurationValueKey {\r\n /** The location type */\r\n LocationType = \"LocationType\",\r\n\r\n /** The parent location */\r\n ParentLocation = \"ParentLocation\",\r\n\r\n /** The allow adding new locations */\r\n AllowAddingNewLocations = \"AllowAddingNewLocations\",\r\n\r\n /** The show city state */\r\n ShowCityState = \"ShowCityState\",\r\n\r\n /** The address required */\r\n AddressRequired = \"AddressRequired\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./locationListFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./locationListFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the LocationList field.\r\n */\r\nexport class LocationListFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n try {\r\n const locationItemBag = JSON.parse(value);\r\n return locationItemBag.text ?? \"\";\r\n }\r\n catch {\r\n return value ?? \"\";\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { stringComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { getStandardFilterComponent } from \"./utils\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n NumberOfRows = \"numberofrows\",\r\n AllowHtml = \"allowhtml\",\r\n MaxCharacters = \"maxcharacters\",\r\n ShowCountDown = \"showcountdown\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./memoFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The filter component can be quite large, so load it only as needed.\r\nconst filterComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./memoFieldComponents\")).FilterComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./memoFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Memo field.\r\n */\r\nexport class MemoFieldType extends FieldTypeBase {\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return stringComparisonTypes;\r\n }\r\n\r\n public override getFilterComponent(): Component {\r\n return getStandardFilterComponent(this.getSupportedComparisonTypes(), filterComponent);\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { toNumber } from \"@Obsidian/Utility/numberUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./monthDayFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./monthDayFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the MonthDay field.\r\n */\r\nexport class MonthDayFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n const components = (value).split(\"/\");\r\n\r\n if (components.length !== 2) {\r\n return \"\";\r\n }\r\n\r\n const month = toNumber(components[0]);\r\n const day = toNumber(components[1]);\r\n\r\n if (month >= 1 && day >= 1 && month <= 12 && day <= 31) {\r\n const months = [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"];\r\n\r\n return `${months[month-1]} ${day}`;\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { Component } from \"vue\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n MediaItems = \"mediaitems\",\r\n Mode = \"modetype\",\r\n ItemWidth = \"itemwidth\"\r\n}\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./mediaSelectorFieldComponents\")).EditComponent;\r\n});\r\n\r\n// Load the configuration component only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./mediaSelectorFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the MediaSelector field.\r\n */\r\nexport class MediaSelectorFieldType extends FieldTypeBase {\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { containsComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { ComparisonValue } from \"@Obsidian/Types/Reporting/comparisonValue\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { getStandardFilterComponent } from \"./utils\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Values = \"values\",\r\n RepeatColumns = \"repeatColumns\",\r\n RepeatDirection = \"repeatDirection\",\r\n EnhancedSelection = \"enhancedselection\",\r\n\r\n /** Only used during editing of the field type configuration. */\r\n CustomValues = \"customValues\"\r\n}\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./multiSelectFieldComponents\")).EditComponent;\r\n});\r\n\r\n// Load the filter component only as needed.\r\nconst filterComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./multiSelectFieldComponents\")).FilterComponent;\r\n});\r\n\r\n// Load the configuration component only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./multiSelectFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the MultiSelect field.\r\n */\r\nexport class MultiSelectFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const values = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const userValues = value.split(\",\");\r\n const selectedValues = values.filter(v => userValues.includes(v.value ?? \"\"));\r\n\r\n return selectedValues.map(v => v.text).join(\", \");\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return containsComparisonTypes;\r\n }\r\n\r\n public override getFilterComponent(): Component {\r\n return getStandardFilterComponent(this.getSupportedComparisonTypes(), filterComponent);\r\n }\r\n\r\n public override getFilterValueText(value: ComparisonValue, configurationValues: Record<string, string>): string {\r\n if (value.value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const rawValues = value.value.split(\",\");\r\n const values = JSON.parse(configurationValues?.[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const selectedValues = values.filter(v => rawValues.includes(v.value ?? \"\"));\r\n\r\n if (selectedValues.length >= 1) {\r\n return `'${selectedValues.map(v => v.value).join(\"' OR '\")}'`;\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n catch {\r\n return value.value;\r\n }\r\n }\r\n\r\n public override doesValueMatchFilter(value: string, filterValue: ComparisonValue, _configurationValues: Record<string, string>): boolean {\r\n const selectedValues = (filterValue.value ?? \"\").split(\",\").filter(v => v !== \"\").map(v => v.toLowerCase());\r\n let comparisonType = filterValue.comparisonType;\r\n\r\n if (comparisonType === ComparisonType.EqualTo) {\r\n // Treat EqualTo as if it were Contains.\r\n comparisonType = ComparisonType.Contains;\r\n }\r\n else if (comparisonType === ComparisonType.NotEqualTo) {\r\n // Treat NotEqualTo as if it were DoesNotContain.\r\n comparisonType = ComparisonType.DoesNotContain;\r\n }\r\n\r\n if (comparisonType === ComparisonType.IsBlank) {\r\n return value === \"\";\r\n }\r\n else if (comparisonType === ComparisonType.IsNotBlank) {\r\n return value !== \"\";\r\n }\r\n\r\n if (selectedValues.length > 0) {\r\n const userValues = value?.split(\",\").filter(v => v !== \"\").map(v => v.toLowerCase()) ?? [];\r\n\r\n if (comparisonType === ComparisonType.Contains) {\r\n let matchedCount = 0;\r\n\r\n for (const userValue of userValues) {\r\n if (selectedValues.includes(userValue)) {\r\n matchedCount += 1;\r\n }\r\n }\r\n\r\n return matchedCount > 0;\r\n }\r\n else {\r\n let matchedCount = 0;\r\n\r\n for (const userValue of userValues) {\r\n if (selectedValues.includes(userValue)) {\r\n matchedCount += 1;\r\n }\r\n }\r\n\r\n return matchedCount !== selectedValues.length;\r\n }\r\n }\r\n\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\n\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Values = \"values\",\r\n EntityTypeName = \"entityTypeName\",\r\n QualifierColumn = \"qualifierColumn\",\r\n QualifierValue = \"qualifierValue\",\r\n EntityTypes = \"entityTypes\"\r\n}\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./noteTypeFieldComponents\")).EditComponent;\r\n});\r\n\r\n// Load the configuration component only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./noteTypeFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the MultiSelect field.\r\n */\r\nexport class NoteTypeField extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const values = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const userValues = value.split(\",\");\r\n const selectedValues = values.filter(v => userValues.includes(v.value ?? \"\"));\r\n return selectedValues.map(v => v.text)\r\n .map(v => v?.split(\":\").pop()) // just get the name of the note type\r\n .join(\", \");\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\n\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Values = \"values\",\r\n RepeatColumns = \"repeatColumns\",\r\n EntityTypeName = \"entityTypeName\",\r\n QualifierColumn = \"qualifierColumn\",\r\n QualifierValue = \"qualifierValue\",\r\n EntityTypes = \"entityTypes\"\r\n}\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./noteTypesFieldComponents\")).EditComponent;\r\n});\r\n\r\n// Load the configuration component only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./noteTypesFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the MultiSelect field.\r\n */\r\nexport class NoteTypesField extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const values = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const userValues = value.split(\",\");\r\n const selectedValues = values.filter(v => userValues.includes(v.value ?? \"\"));\r\n return selectedValues.map(v => v.text)\r\n .map(v => v?.split(\":\").pop()) // just get the name of the note type\r\n .join(\", \");\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { formatPhoneNumber } from \"@Obsidian/Utility/phone\";\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./phoneNumberFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./phoneNumberFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Phone Number field.\r\n */\r\nexport class PhoneNumberFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return formatPhoneNumber(value || \"\");\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n EnableSelfSelection = \"EnableSelfSelection\",\r\n IncludeBusinesses = \"includeBusinesses\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./personFieldComponents\")).EditComponent;\r\n});\r\n\r\n// Load the configuration component only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./personFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Person field.\r\n */\r\nexport class PersonFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n const personValue = JSON.parse(value || \"{}\") as ListItemBag;\r\n return personValue.text ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { numericComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { toNumberOrNull } from \"@Obsidian/Utility/numberUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n MinValue = \"minValue\",\r\n MaxValue = \"maxValue\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./rangeSliderFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./rangeSliderFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Integer field.\r\n */\r\nexport class RangeSliderFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return toNumberOrNull(value)?.toString() ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return numericComparisonTypes;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component, } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { numericComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { toNumberOrNull } from \"@Obsidian/Utility/numberUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { ComparisonValue } from \"@Obsidian/Types/Reporting/comparisonValue\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n MaxRating = \"max\"\r\n}\r\n\r\nexport type RatingValue = {\r\n value?: number;\r\n\r\n maxValue?: number;\r\n};\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./ratingFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./ratingFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Rating field.\r\n */\r\nexport class RatingFieldType extends FieldTypeBase {\r\n public override getHtmlValue(value: string, configurationValues: Record<string, string>): string {\r\n let ratingValue: RatingValue | null;\r\n\r\n try {\r\n ratingValue = JSON.parse(value ?? \"\") as RatingValue;\r\n }\r\n catch {\r\n ratingValue = null;\r\n }\r\n\r\n const rating = ratingValue?.value ?? 0;\r\n const maxRating = toNumberOrNull(configurationValues[ConfigurationValueKey.MaxRating]) ?? 5;\r\n let html = \"\";\r\n\r\n for (let i = 0; i < rating && i < maxRating; i++) {\r\n html += `<i class=\"fa fa-rating-selected\"></i>`;\r\n }\r\n\r\n for (let i = rating; i < maxRating; i++) {\r\n html += `<i class=\"fa fa-rating-unselected\"></i>`;\r\n }\r\n\r\n return html;\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return numericComparisonTypes;\r\n }\r\n\r\n public override doesValueMatchFilter(value: string, filterValue: ComparisonValue, configurationValues: Record<string, string>): boolean {\r\n let ratingValue: RatingValue | null;\r\n\r\n try {\r\n ratingValue = JSON.parse(value) as RatingValue;\r\n }\r\n catch {\r\n ratingValue = null;\r\n }\r\n\r\n const rating = ratingValue?.value ?? 0;\r\n\r\n if (filterValue.comparisonType === ComparisonType.IsBlank) {\r\n return rating === 0;\r\n }\r\n else if (filterValue.comparisonType === ComparisonType.IsNotBlank) {\r\n return rating !== 0;\r\n }\r\n else {\r\n return super.doesValueMatchFilter(rating.toString(), filterValue, configurationValues);\r\n }\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./registryEntryFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./registryEntryFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\nexport class RegistryEntryFieldType extends FieldTypeBase {\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { Guid } from \"@Obsidian/Types\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Values = \"values\"\r\n}\r\n\r\nexport type ReminderTypeFieldItem = {\r\n guid: Guid\r\n name: string,\r\n entityTypeName: string\r\n};\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./reminderTypeFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./reminderTypeFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Reminder Type field.\r\n */\r\nexport class ReminderTypeFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (value === undefined || value === null || value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const values = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ReminderTypeFieldItem[];\r\n const selectedValues = values.filter(o => o.guid.toLowerCase() === value.toLowerCase());\r\n\r\n return selectedValues[0].name;\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { binaryComparisonTypes, containsComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { toNumberOrNull } from \"@Obsidian/Utility/numberUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Values = \"values\",\r\n EnhancedSelection = \"enhancedselection\",\r\n RepeatColumns = \"repeatColumns\",\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./reminderTypesFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./reminderTypesFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Reminder Types field.\r\n */\r\nexport class ReminderTypesFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (value === undefined || value === null || value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const values = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const userValues = value.split(\",\");\r\n const selectedValues = values.filter(o => userValues.includes(o.value ?? \"\"));\r\n\r\n return selectedValues.map(o => o.text).join(\", \");\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return binaryComparisonTypes | containsComparisonTypes;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./scheduleFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./scheduleFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Address field.\r\n */\r\nexport class ScheduleFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./schedulesFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./schedulesFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Address field.\r\n */\r\nexport class SchedulesFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonValue } from \"@Obsidian/Types/Reporting/comparisonValue\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { getStandardFilterComponent } from \"./utils\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Values = \"values\",\r\n FieldType = \"fieldtype\",\r\n RepeatColumns = \"repeatColumns\",\r\n\r\n /** Only used during editing of the field type configuration. */\r\n CustomValues = \"customValues\"\r\n}\r\n\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./singleSelectFieldComponents\")).EditComponent;\r\n});\r\n\r\n// Load the filter component only as needed.\r\nconst filterComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./singleSelectFieldComponents\")).FilterComponent;\r\n});\r\n\r\n// Load the configuration component only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./singleSelectFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the SingleSelect field.\r\n */\r\nexport class SingleSelectFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n if (value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const values = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const selectedValues = values.filter(v => v.value === value);\r\n\r\n if (selectedValues.length >= 1) {\r\n return selectedValues[0].text ?? \"\";\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n catch {\r\n return value;\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getFilterComponent(): Component {\r\n return getStandardFilterComponent(\"Is\", filterComponent);\r\n }\r\n\r\n public override getFilterValueText(value: ComparisonValue, configurationValues: Record<string, string>): string {\r\n if (value.value === \"\") {\r\n return \"\";\r\n }\r\n\r\n try {\r\n const rawValues = value.value.split(\",\");\r\n const values = JSON.parse(configurationValues?.[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const selectedValues = values.filter(v => rawValues.includes(v.value ?? \"\"));\r\n\r\n if (selectedValues.length >= 1) {\r\n return `'${selectedValues.map(v => v.value).join(\"' OR '\")}'`;\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n catch {\r\n return value.value;\r\n }\r\n }\r\n\r\n public override doesValueMatchFilter(value: string, filterValue: ComparisonValue, _configurationValues: Record<string, string>): boolean {\r\n const selectedValues = (filterValue.value ?? \"\").split(\",\").filter(v => v !== \"\").map(v => v.toLowerCase());\r\n let comparisonType = filterValue.comparisonType;\r\n\r\n if (comparisonType === ComparisonType.EqualTo) {\r\n // Treat EqualTo as if it were Contains.\r\n comparisonType = ComparisonType.Contains;\r\n }\r\n else if (comparisonType === ComparisonType.NotEqualTo) {\r\n // Treat NotEqualTo as if it were DoesNotContain.\r\n comparisonType = ComparisonType.DoesNotContain;\r\n }\r\n\r\n if (comparisonType === ComparisonType.IsBlank) {\r\n return value === \"\";\r\n }\r\n else if (comparisonType === ComparisonType.IsNotBlank) {\r\n return value !== \"\";\r\n }\r\n\r\n if (selectedValues.length > 0) {\r\n let matched = selectedValues.includes(value.toLowerCase());\r\n\r\n if (comparisonType === ComparisonType.DoesNotContain) {\r\n matched = !matched;\r\n }\r\n\r\n return matched;\r\n }\r\n\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { toNumberOrNull } from \"@Obsidian/Utility/numberUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n EnabledSlidingDateRangeTypes = \"enabledSlidingDateRangeTypes\",\r\n EnabledSlidingDateRangeUnits = \"enabledSlidingDateRangeUnits\",\r\n TimeUnitTypes = \"timeUnitTypes\",\r\n SlidingDateRangeTypes = \"slidingDateRangeTypes\"\r\n\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./slidingDateRangeFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./slidingDateRangeFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Integer field.\r\n */\r\nexport class SlidingDateRangeFieldType extends FieldTypeBase {\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Name = \"name\",\r\n IconCssClass = \"iconcssclass\",\r\n Color = \"color\",\r\n TextTemplate = \"texttemplate\",\r\n BaseUrl = \"baseurl\",\r\n BaseUrlAliases = \"baseurlaliases\",\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./socialMediaAccountFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./socialMediaAccountFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Social Media Account field.\r\n */\r\nexport class SocialMediaAccountFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./ssnFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./ssnFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\nexport class SSNFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n const strippedValue = value.replace(/[^0-9]/g, \"\");\r\n\r\n if (strippedValue.length !== 9) {\r\n return \"\";\r\n }\r\n\r\n return `xxx-xx-${value.substr(5, 4)}`;\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { stringComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n /** Contains \"True\" if the text field is designed for password entry. */\r\n IsPassword = \"ispassword\",\r\n\r\n /** The maximum number of characters allowed in the text entry field. */\r\n MaxCharacters = \"maxcharacters\",\r\n\r\n /** Contains \"True\" if the text field should show the character countdown. */\r\n ShowCountdown = \"showcountdown\"\r\n}\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./textFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\nexport class TextFieldType extends FieldTypeBase {\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return stringComparisonTypes;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { dateComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { toNumber } from \"@Obsidian/Utility/numberUtils\";\r\nimport { padLeft } from \"@Obsidian/Utility/stringUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./timeFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./timeFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Time field.\r\n */\r\nexport class TimeFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n const values = /^(\\d+):(\\d+)/.exec(value ?? \"\");\r\n\r\n if (values === null || values.length < 3) {\r\n return \"\";\r\n }\r\n\r\n let hour = toNumber(values[1]);\r\n const minute = toNumber(values[2]);\r\n const meridiem = hour >= 12 ? \"PM\" : \"AM\";\r\n\r\n if (hour > 12) {\r\n hour -= 12;\r\n }\r\n\r\n return `${hour}:${padLeft(minute.toString(), 2, \"0\")} ${meridiem}`;\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return dateComparisonTypes;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\n\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n TimeZones = \"timezones\",\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./timeZoneFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./timeZoneFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the TimeZone field.\r\n */\r\nexport class TimeZoneFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, _configurationValues: Record<string, string>): string {\r\n return value ?? \"\";\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { ComparisonType } from \"@Obsidian/Enums/Reporting/comparisonType\";\r\nimport { stringComparisonTypes } from \"@Obsidian/Core/Reporting/comparisonType\";\r\nimport { asBoolean } from \"@Obsidian/Utility/booleanUtils\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n ShouldRequireTrailingForwardSlash = \"ShouldRequireTrailingForwardSlash\",\r\n ShouldAlwaysShowCondensed = \"ShouldAlwaysShowCondensed\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./urlLinkFieldComponents\")).EditComponent;\r\n});\r\n\r\n// The configuration component can be quite large, so load it only as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./urlLinkFieldComponents\")).ConfigurationComponent;\r\n});\r\n/**\r\n * The field type handler for the Email field.\r\n */\r\nexport class UrlLinkFieldType extends FieldTypeBase {\r\n public override getHtmlValue(value: string, configurationValues: Record<string, string>): string {\r\n const shouldAlwaysShowCondensed = asBoolean(configurationValues[ConfigurationValueKey.ShouldAlwaysShowCondensed]);\r\n const textValue = this.getTextValue(value, configurationValues);\r\n\r\n let htmlValue = \"\";\r\n if (textValue) {\r\n if (!shouldAlwaysShowCondensed) {\r\n htmlValue = `<a href=\"${textValue}\">${textValue}</a>`;\r\n } else {\r\n htmlValue = textValue;\r\n }\r\n }\r\n\r\n return htmlValue;\r\n }\r\n\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n const shouldAlwaysShowCondensed = asBoolean(configurationValues[ConfigurationValueKey.ShouldAlwaysShowCondensed]);\r\n if (shouldAlwaysShowCondensed) {\r\n return `<a href=\"${value}\">${value}</a>`;\r\n }\r\n\r\n return value;\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override getSupportedComparisonTypes(): ComparisonType {\r\n return stringComparisonTypes;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { Component } from \"vue\";\r\nimport { defineAsyncComponent } from \"@Obsidian/Utility/component\";\r\nimport { FieldTypeBase } from \"./fieldType\";\r\nimport { ListItemBag } from \"@Obsidian/ViewModels/Utility/listItemBag\";\r\n\r\nexport const enum ConfigurationValueKey {\r\n Values = \"values\",\r\n ValuePrompt = \"valueprompt\",\r\n AllowHtml = \"allowhtml\",\r\n\r\n // Only used during editing of the field type configuration.\r\n CustomValues = \"customvalues\",\r\n DefinedType = \"definedtype\"\r\n}\r\n\r\nexport const enum ConfigurationPropertyKey {\r\n DefinedTypes = \"definedTypes\"\r\n}\r\n\r\n// The edit component can be quite large, so load it only as needed.\r\nconst editComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./valueListFieldComponents\")).EditComponent;\r\n});\r\n\r\n// Load the configuration component as needed.\r\nconst configurationComponent = defineAsyncComponent(async () => {\r\n return (await import(\"./valueListFieldComponents\")).ConfigurationComponent;\r\n});\r\n\r\n/**\r\n * The field type handler for the Value List field.\r\n */\r\nexport class ValueListFieldType extends FieldTypeBase {\r\n public override getTextValue(value: string, configurationValues: Record<string, string>): string {\r\n try {\r\n const clientValues = JSON.parse(value ?? \"[]\") as string[];\r\n const configuredValues = JSON.parse(configurationValues[ConfigurationValueKey.Values] ?? \"[]\") as ListItemBag[];\r\n const values: string[] = [];\r\n\r\n for (const clientValue of clientValues) {\r\n if (configuredValues.length > 0) {\r\n const configuredValue = configuredValues.find(v => v.value === clientValue);\r\n\r\n if (configuredValue) {\r\n values.push(configuredValue.text ?? \"\");\r\n }\r\n }\r\n else {\r\n values.push(clientValue);\r\n }\r\n }\r\n\r\n return values.join(\", \");\r\n }\r\n catch {\r\n return \"\";\r\n }\r\n }\r\n\r\n public override getEditComponent(): Component {\r\n return editComponent;\r\n }\r\n\r\n public override getConfigurationComponent(): Component {\r\n return configurationComponent;\r\n }\r\n\r\n public override isFilterable(): boolean {\r\n return false;\r\n }\r\n}\r\n","// <copyright>\r\n// Copyright by the Spark Development Network\r\n//\r\n// Licensed under the Rock Community License (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//\r\n// http://www.rockrms.com/license\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// </copyright>\r\n//\r\nimport { FieldType as FieldTypeGuids } from \"@Obsidian/SystemGuids/fieldType\";\r\nimport { registerFieldType } from \"@Obsidian/Utility/fieldTypes\";\r\n\r\nexport { ConfigurationValues, getFieldEditorProps } from \"./utils\";\r\n\r\n/*\r\n * Define the standard field types in Rock.\r\n */\r\n\r\nimport { AddressFieldType } from \"./addressField.partial\";\r\nregisterFieldType(FieldTypeGuids.Address, new AddressFieldType());\r\n\r\nimport { BackgroundCheckFieldType } from \"./backgroundCheckField.partial\";\r\nregisterFieldType(FieldTypeGuids.Backgroundcheck, new BackgroundCheckFieldType());\r\n\r\nimport { BooleanFieldType } from \"./booleanField.partial\";\r\nregisterFieldType(FieldTypeGuids.Boolean, new BooleanFieldType());\r\n\r\nimport { CampusFieldType } from \"./campusField.partial\";\r\nregisterFieldType(FieldTypeGuids.Campus, new CampusFieldType());\r\n\r\nimport { CampusesFieldType } from \"./campusesField.partial\";\r\nregisterFieldType(FieldTypeGuids.Campuses, new CampusesFieldType());\r\n\r\nimport { CategoriesFieldType } from \"./categoriesField.partial\";\r\nregisterFieldType(FieldTypeGuids.Categories, new CategoriesFieldType());\r\n\r\nimport { CategoryFieldType } from \"./categoryField.partial\";\r\nregisterFieldType(FieldTypeGuids.Category, new CategoryFieldType());\r\n\r\nimport { CategorizedDefinedValueField } from \"./categorizedDefinedValueField.partial\";\r\nregisterFieldType(FieldTypeGuids.DefinedValueCategorized, new CategorizedDefinedValueField());\r\n\r\nimport { ColorFieldType } from \"./colorField.partial\";\r\nregisterFieldType(FieldTypeGuids.Color, new ColorFieldType());\r\n\r\nimport { ColorSelectorFieldType } from \"./colorSelectorField.partial\";\r\nregisterFieldType(FieldTypeGuids.ColorSelector, new ColorSelectorFieldType());\r\n\r\nimport { ConnectionTypeField } from \"./connectionTypeField.partial\";\r\nregisterFieldType(FieldTypeGuids.ConnectionType, new ConnectionTypeField());\r\n\r\nimport { ConnectionTypesField } from \"./connectionTypesField.partial\";\r\nregisterFieldType(FieldTypeGuids.ConnectionTypes, new ConnectionTypesField());\r\n\r\nimport { CommunicationPreferenceField } from \"./communicationPreferenceField.partial\";\r\nregisterFieldType(FieldTypeGuids.CommunicationPreferenceType, new CommunicationPreferenceField());\r\n\r\nimport { CurrencyFieldType } from \"./currencyField.partial\";\r\nregisterFieldType(FieldTypeGuids.Currency, new CurrencyFieldType());\r\n\r\nimport { DateFieldType } from \"./dateField.partial\";\r\nregisterFieldType(FieldTypeGuids.Date, new DateFieldType());\r\n\r\nimport { DateRangeFieldType } from \"./dateRangeField.partial\";\r\nregisterFieldType(FieldTypeGuids.DateRange, new DateRangeFieldType());\r\n\r\nimport { DateTimeFieldType } from \"./dateTimeField.partial\";\r\nregisterFieldType(FieldTypeGuids.DateTime, new DateTimeFieldType());\r\n\r\nimport { DayOfWeekFieldType } from \"./dayOfWeekField.partial\";\r\nregisterFieldType(FieldTypeGuids.DayOfWeek, new DayOfWeekFieldType());\r\n\r\nimport { DaysOfWeekFieldType } from \"./daysOfWeekField.partial\";\r\nregisterFieldType(FieldTypeGuids.DaysOfWeek, new DaysOfWeekFieldType());\r\n\r\nimport { DecimalFieldType } from \"./decimalField.partial\";\r\nregisterFieldType(FieldTypeGuids.Decimal, new DecimalFieldType());\r\n\r\nimport { DecimalRangeFieldType } from \"./decimalRangeField.partial\";\r\nregisterFieldType(FieldTypeGuids.DecimalRange, new DecimalRangeFieldType());\r\n\r\nimport { DefinedValueFieldType } from \"./definedValueField.partial\";\r\nregisterFieldType(FieldTypeGuids.DefinedValue, new DefinedValueFieldType());\r\n\r\nimport { DefinedValueRangeFieldType } from \"./definedValueRangeField.partial\";\r\nregisterFieldType(FieldTypeGuids.DefinedValueRange, new DefinedValueRangeFieldType());\r\n\r\nimport { EmailFieldType } from \"./emailField.partial\";\r\nregisterFieldType(FieldTypeGuids.Email, new EmailFieldType());\r\n\r\nimport { FinancialAccountFieldType } from \"./financialAccountField.partial\";\r\nregisterFieldType(FieldTypeGuids.FinancialAccount, new FinancialAccountFieldType());\r\n\r\nimport { FinancialAccountsFieldType } from \"./financialAccountsField.partial\";\r\nregisterFieldType(FieldTypeGuids.FinancialAccounts, new FinancialAccountsFieldType());\r\n\r\nimport { FileFieldType } from \"./fileField.partial\";\r\nregisterFieldType(FieldTypeGuids.File, new FileFieldType());\r\n\r\nimport { GenderFieldType } from \"./genderField.partial\";\r\nregisterFieldType(FieldTypeGuids.Gender, new GenderFieldType());\r\n\r\nimport { GroupAndRoleFieldType } from \"./groupAndRoleField.partial\";\r\nregisterFieldType(FieldTypeGuids.GroupAndRole, new GroupAndRoleFieldType());\r\n\r\nimport { GroupFieldType } from \"./groupField.partial\";\r\nregisterFieldType(FieldTypeGuids.Group, new GroupFieldType());\r\n\r\nimport { GroupLocationTypeFieldType } from \"./groupLocationTypeField.partial\";\r\nregisterFieldType(FieldTypeGuids.GroupLocationType, new GroupLocationTypeFieldType());\r\n\r\nimport { GroupRoleFieldType } from \"./groupRoleField.partial\";\r\nregisterFieldType(FieldTypeGuids.GroupRole, new GroupRoleFieldType());\r\n\r\nimport { GroupMemberFieldType } from \"./groupMemberField.partial\";\r\nregisterFieldType(FieldTypeGuids.GroupMember, new GroupMemberFieldType());\r\n\r\nimport { GroupTypeField } from \"./groupTypeField.partial\";\r\nregisterFieldType(FieldTypeGuids.GroupType, new GroupTypeField());\r\n\r\nimport { GroupTypesFieldType } from \"./groupTypesField.partial\";\r\nregisterFieldType(FieldTypeGuids.GroupTypes, new GroupTypesFieldType());\r\n\r\nimport { ImageFieldType } from \"./imageField.partial\";\r\nregisterFieldType(FieldTypeGuids.Image, new ImageFieldType());\r\n\r\nimport { IntegerFieldType } from \"./integerField.partial\";\r\nregisterFieldType(FieldTypeGuids.Integer, new IntegerFieldType());\r\n\r\nimport { IntegerRangeFieldType } from \"./integerRangeField.partial\";\r\nregisterFieldType(FieldTypeGuids.IntegerRange, new IntegerRangeFieldType());\r\n\r\nimport { KeyValueListFieldType } from \"./keyValueListField.partial\";\r\nregisterFieldType(FieldTypeGuids.KeyValueList, new KeyValueListFieldType());\r\n\r\nimport { LocationListFieldType } from \"./locationListField.partial\";\r\nregisterFieldType(FieldTypeGuids.LocationList, new LocationListFieldType());\r\n\r\nimport { MemoFieldType } from \"./memoField.partial\";\r\nregisterFieldType(FieldTypeGuids.Memo, new MemoFieldType());\r\n\r\nimport { MonthDayFieldType } from \"./monthDayField.partial\";\r\nregisterFieldType(FieldTypeGuids.MonthDay, new MonthDayFieldType());\r\n\r\nimport { MediaSelectorFieldType } from \"./mediaSelectorField.partial\";\r\nregisterFieldType(FieldTypeGuids.MediaSelector, new MediaSelectorFieldType());\r\n\r\nimport { MultiSelectFieldType } from \"./multiSelectField.partial\";\r\nregisterFieldType(FieldTypeGuids.MultiSelect, new MultiSelectFieldType());\r\n\r\nimport { NoteTypeField } from \"./noteTypeField.partial\";\r\nregisterFieldType(FieldTypeGuids.NoteType, new NoteTypeField());\r\n\r\nimport { NoteTypesField } from \"./noteTypesField.partial\";\r\nregisterFieldType(FieldTypeGuids.NoteTypes, new NoteTypesField());\r\n\r\nimport { PhoneNumberFieldType } from \"./phoneNumberField.partial\";\r\nregisterFieldType(FieldTypeGuids.PhoneNumber, new PhoneNumberFieldType());\r\n\r\nimport { PersonFieldType } from \"./personField.partial\";\r\nregisterFieldType(FieldTypeGuids.Person, new PersonFieldType());\r\n\r\nimport { RangeSliderFieldType } from \"./rangeSliderField.partial\";\r\nregisterFieldType(FieldTypeGuids.RangeSlider, new RangeSliderFieldType());\r\n\r\nimport { RatingFieldType } from \"./ratingField.partial\";\r\nregisterFieldType(FieldTypeGuids.Rating, new RatingFieldType());\r\n\r\nimport { RegistryEntryFieldType } from \"./registryEntryField.partial\";\r\nregisterFieldType(FieldTypeGuids.RegistryEntry, new RegistryEntryFieldType());\r\n\r\nimport { ReminderTypeFieldType } from \"./reminderTypeField.partial\";\r\nregisterFieldType(FieldTypeGuids.ReminderType, new ReminderTypeFieldType());\r\n\r\nimport { ReminderTypesFieldType } from \"./reminderTypesField.partial\";\r\nregisterFieldType(FieldTypeGuids.ReminderTypes, new ReminderTypesFieldType());\r\n\r\nimport { ScheduleFieldType } from \"./scheduleField.partial\";\r\nregisterFieldType(FieldTypeGuids.Schedule, new ScheduleFieldType());\r\n\r\nimport { SchedulesFieldType } from \"./schedulesField.partial\";\r\nregisterFieldType(FieldTypeGuids.Schedules, new SchedulesFieldType());\r\n\r\nimport { SingleSelectFieldType } from \"./singleSelectField.partial\";\r\nregisterFieldType(FieldTypeGuids.SingleSelect, new SingleSelectFieldType());\r\n\r\nimport { SlidingDateRangeFieldType } from \"./slidingDateRangeField.partial\";\r\nregisterFieldType(FieldTypeGuids.SlidingDateRange, new SlidingDateRangeFieldType());\r\n\r\nimport { SocialMediaAccountFieldType } from \"./socialMediaAccountField.partial\";\r\nregisterFieldType(FieldTypeGuids.SocialMediaAccount, new SocialMediaAccountFieldType());\r\n\r\nimport { SSNFieldType } from \"./ssnField.partial\";\r\nregisterFieldType(FieldTypeGuids.Ssn, new SSNFieldType());\r\n\r\nimport { TextFieldType } from \"./textField.partial\";\r\nregisterFieldType(FieldTypeGuids.Text, new TextFieldType());\r\n\r\nimport { TimeFieldType } from \"./timeField.partial\";\r\nregisterFieldType(FieldTypeGuids.Time, new TimeFieldType());\r\n\r\nimport { TimeZoneFieldType } from \"./timeZoneField.partial\";\r\nregisterFieldType(FieldTypeGuids.TimeZone, new TimeZoneFieldType());\r\n\r\nimport { UrlLinkFieldType } from \"./urlLinkField.partial\";\r\nregisterFieldType(FieldTypeGuids.UrlLink, new UrlLinkFieldType());\r\n\r\nimport { ValueListFieldType } from \"./valueListField.partial\";\r\nregisterFieldType(FieldTypeGuids.ValueList, new ValueListFieldType());\r\n"],"names":["editComponent","defineAsyncComponent","_asyncToGenerator","EditComponent","configurationComponent","ConfigurationComponent","AddressFieldType","FieldTypeBase","getTextValue","value","_configurationValues","_addressValue$street","_addressValue$street2","_addressValue$city","_addressValue$state","_addressValue$postalC","addressValue","JSON","parse","textValue","concat","street1","street2","city","state","postalCode","replace","_unused","getEditComponent","getConfigurationComponent","isFilterable","ConfigurationValueKey","BackgroundCheckFieldType","filterComponent","FilterComponent","BooleanFieldType","getCondensedTextValue","boolValue","asBooleanOrNull","configurationValues","TrueText","FalseText","getSupportedComparisonTypes","ComparisonType","EqualTo","NotEqualTo","getFilterComponent","getStandardFilterComponent","ConfigurationPropertyKey","CampusFieldType","undefined","_configurationValues$","values","Values","selectedValues","filter","o","map","text","join","None","getFilterValueText","_configurationValues$2","rawValues","split","v","areEqual","length","_unused2","doesValueMatchFilter","filterValue","_filterValue$value","toLowerCase","comparisonType","Contains","DoesNotContain","IsBlank","IsNotBlank","matched","includes","CampusesFieldType","userValues","_o$value","CategoriesFieldType","CategoryFieldType","CategorizedDefinedValueField","ColorFieldType","valueDelimiter","deserializeColors","deserializeValue","getSelectedColors","colors","color","some","setCamouflagedClass","element","ancestorElement","parentElement","elementColor","getBackgroundColor","ancestorElementColor","isSimilarTo","classList","add","luma","remove","getComputedBackgroundColor","window","getComputedStyle","getPropertyValue","defaultColor","RockColor","document","body","elementsToProcess","elementToProcess","shift","backgroundColor","alpha","compareTo","push","ColorSelectorFieldType","clientKey","Colors","getHtmlValue","htmlStringBuilder","selectorsToProcess","selectedColors","_iterator","_createForOfIteratorHelper","_step","s","n","done","itemGuid","guid","newGuid","containerId","itemId","err","e","f","processSelectors","maxAttempts","attemptCount","internalProcessSelectors","nextTick","failedSelectors","selector","querySelector","ConnectionTypeField","_v$value","pop","ConnectionTypesField","CommunicationPreferenceField","_ref3","_publicValue$text","options","Options","publicValue","find","x","CurrencyFieldType","_toCurrencyOrNull","toCurrencyOrNull","numericComparisonTypes","DateFieldType","isCurrentDateValue","getCurrentDateText","dateValue","RockDateTime","parseISO","dateFormatTemplate","Format","toASPString","displayDiff","asBoolean","DisplayDiff","toElapsedString","dateComparisonTypes","updateComparisonTypeNames","Between","toString","forEach","getFilterValueDescription","filterValues","_range$timeValue","_range$timeUnit","range","parseSlidingDateRangeString","rangeTypeText","getRangeTypeText","rangeType","timeUnitValue","timeValue","timeUnitText","getTimeUnitText","timeUnit","TimeUnit","Hour","RangeType","Current","Last","Previous","Next","Upcoming","lowerDate","upperDate","filterValueValues","valueDate","slidingRange","dateRange","calculateSlidingDateRange","start","toMilliseconds","end","filterDate","getRelativeOrAbsoluteDate","newFilterValue","indexOf","parts","diff","toNumber","Math","abs","today","now","date","valueParts","addDays","DateRangeFieldType","dateParts","lowerDateParts","exec","upperDateParts","fromParts","toLocaleString","DateTimeFormat","DateShort","DateTimeFieldType","DisplayAsElapsedTime","DayOfWeekFieldType","dayValue","toNumberOrNull","DayOfWeek","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","DaysOfWeekFieldType","containsComparisonTypes","DecimalFieldType","_toNumberOrNull$toStr","_toNumberOrNull","DecimalRangeFieldType","numbers","DefinedValueFieldType","clientValue","displayDescription","DisplayDescription","description","_value$value","useDescription","_unused3","_clientValue$value","_clientValue$value2","_clientValue$value3","matchedCount","userValue","_iterator2","_step2","DefinedValueRangeFieldType","List","lowerValue","firstOrUndefined","upperValue","_lowerValue$descripti","_upperValue$descripti","_lowerValue$text","_upperValue$text","_clientValue$text","EmailFieldType","stringComparisonTypes","FinancialAccountFieldType","FinancialAccountsFieldType","FileFieldType","_realValue$text","realValue","_realValue$text2","escapeHtml","GenderFieldType","numberValue","GroupAndRoleFieldType","GroupFieldType","GroupLocationTypeFieldType","GroupRoleFieldType","GroupMemberFieldType","GroupTypeField","GroupTypesFieldType","ImageFieldType","getCondensedHtmlValue","IntegerFieldType","IntegerRangeFieldType","KeyValueListFieldType","clientValues","configuredValues","_loop","configuredValue","key","LocationListFieldType","_locationItemBag$text","locationItemBag","MemoFieldType","MonthDayFieldType","components","month","day","months","MediaSelectorFieldType","MultiSelectFieldType","_v$value2","_value$split$filter$m","NoteTypeField","NoteTypesField","PhoneNumberFieldType","formatPhoneNumber","PersonFieldType","_personValue$text","personValue","RangeSliderFieldType","RatingFieldType","_ratingValue$value","_ratingValue","ratingValue","rating","maxRating","MaxRating","html","i","_ratingValue$value2","_ratingValue2","RegistryEntryFieldType","ReminderTypeFieldType","name","ReminderTypesFieldType","binaryComparisonTypes","ScheduleFieldType","SchedulesFieldType","SingleSelectFieldType","_selectedValues$0$tex","SlidingDateRangeFieldType","SocialMediaAccountFieldType","SSNFieldType","strippedValue","substr","TextFieldType","TimeFieldType","hour","minute","meridiem","padLeft","TimeZoneFieldType","UrlLinkFieldType","shouldAlwaysShowCondensed","ShouldAlwaysShowCondensed","htmlValue","ValueListFieldType","_configuredValue$text","registerFieldType","FieldTypeGuids","Address","Backgroundcheck","Boolean","Campus","Campuses","Categories","Category","DefinedValueCategorized","Color","ColorSelector","ConnectionType","ConnectionTypes","CommunicationPreferenceType","Currency","Date","DateRange","DateTime","DaysOfWeek","Decimal","DecimalRange","DefinedValue","DefinedValueRange","Email","FinancialAccount","FinancialAccounts","File","Gender","GroupAndRole","Group","GroupLocationType","GroupRole","GroupMember","GroupType","GroupTypes","Image","Integer","IntegerRange","KeyValueList","LocationList","Memo","MonthDay","MediaSelector","MultiSelect","NoteType","NoteTypes","PhoneNumber","Person","RangeSlider","Rating","RegistryEntry","ReminderType","ReminderTypes","Schedule","Schedules","SingleSelect","SlidingDateRange","SocialMediaAccount","Ssn","Text","Time","TimeZone","UrlLink","ValueList"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8BA,IAAMA,eAAa,GAAGC,oBAAoB,CAAAC,iBAAA,CAAC,aAAY;MACnD,EAAA,OAAO,OAAO,cAAO,0BAA0B,CAAC,EAAEC,aAAa,CAAA;MACnE,CAAC,CAAC,CAAA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