Skip to content

Commit cd9ac7b

Browse files
authored
Merge pull request #10 from sabrish/feature/upgrade-to-react
Feature/upgrade to react
2 parents 72bc20f + c759a61 commit cd9ac7b

19 files changed

Lines changed: 1012 additions & 267 deletions

File tree

Deployment/SAB.XrmPowerControls.XrmMetadataAutoComplete/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

Deployment/SAB.XrmPowerControls.XrmMetadataAutoComplete/Other/Solution.xml

Lines changed: 0 additions & 94 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# XrmPowerControls.XrmMetadataAutoComplete
2-
PCF control for metadata autocomplete in D365, CDS Environments
2+
PCF control for metadata autocomplete in D365, Dataverse(CDS) Environments
33

44
This control can be used to provide autocomplete functionality for CRM metadata and store them in text fields.
55

@@ -13,10 +13,12 @@ Parameters used in the control are:
1313
* _Attributes_
1414
* _Lookup_
1515
* _SystemViews_ - Will have [ViewName]-{CRMID}-[View GUID] format to cope with views with same name
16+
* _BusinessProcessFlows_
1617
* **Filter Entity Field By Entities Associated To**: Only applies if the AutoCompleteMetaDataType is set to Entity. It will filter entity field auto complete list By entities associated to entity entered in this property.
1718
* **Related Entity**: Only applies if the AutoCompleteMetaDataType is set to anything other than Entity. It will filter the autocomplete list to contain only metatadata values related to this entity.
1819

1920

2021

21-
__Note and Thanks to the PCF Autocompelte project by Sriram Balaji - https://github.com/srirambalajigit as I used his project
22-
https://github.com/srirambalajigit/PCFControls/tree/master/Autocomplete/Autocomplete as a reference when building my first PCF control.__
22+
__Note and Thanks__
23+
* to the PCF Autocompelte project by Sriram Balaji - https://github.com/srirambalajigit as I used his project https://github.com/srirambalajigit/PCFControls/tree/master/Autocomplete/Autocomplete as a reference when building my first PCF control.
24+
* to my colleague Durgaprasad Katarti - https://github.com/durgaprasadkatari for updating it to use FluentUI
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# msbuild output directories
4+
/bin
5+
/obj

Deployment/SAB.XrmPowerControls.XrmMetadataAutoComplete/SAB.XrmPowerControls.XrmMetadataAutoComplete.cdsproj renamed to Solution/SAB.XrmPowerControls.XrmMetadataAutoComplete/SAB.XrmPowerControls.XrmMetadataAutoComplete.cdsproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
<Import Project="$(PowerAppsTargetsPath)\Microsoft.PowerApps.VisualStudio.Solution.props" Condition="Exists('$(PowerAppsTargetsPath)\Microsoft.PowerApps.VisualStudio.Solution.props')" />
99

1010
<PropertyGroup>
11-
<ProjectGuid>845d4e89-c130-45c2-8bc8-8f7f86fec826</ProjectGuid>
11+
<ProjectGuid>74c619f0-9ce7-412c-8b8d-c81c5e1ad7c8</ProjectGuid>
1212
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
1313
<!--Remove TargetFramework when this is available in 16.1-->
1414
<TargetFramework>net462</TargetFramework>
1515
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
16+
<SolutionRootPath>src</SolutionRootPath>
1617
</PropertyGroup>
1718

1819
<!-- Solution Packager overrides, un-comment to use: SolutionPackagerType (Managed, Unmanaged, Both)
@@ -36,6 +37,9 @@
3637

3738
<ItemGroup>
3839
<None Include="$(MSBuildThisFileDirectory)\**" Exclude="@(ExcludeDirectories)" />
40+
<Content Include="$(SolutionPackageZipFilePath)">
41+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
42+
</Content>
3943
</ItemGroup>
4044

4145
<ItemGroup>

Deployment/SAB.XrmPowerControls.XrmMetadataAutoComplete/Other/Customizations.xml renamed to Solution/SAB.XrmPowerControls.XrmMetadataAutoComplete/src/Other/Customizations.xml

File renamed without changes.

Deployment/SAB.XrmPowerControls.XrmMetadataAutoComplete/Other/Relationships.xml renamed to Solution/SAB.XrmPowerControls.XrmMetadataAutoComplete/src/Other/Relationships.xml

File renamed without changes.
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ImportExportXml version="9.1.0.643" SolutionPackageVersion="9.1" languagecode="1033" generatedBy="CrmLive" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<SolutionManifest>
4+
<!-- Unique Name of Cds Solution-->
5+
<UniqueName>SAB_XrmPowerControls_XrmMetadataAutoComplete</UniqueName>
6+
<LocalizedNames>
7+
<!-- Localized Solution Name in language code -->
8+
<LocalizedName description="SAB.XrmPowerControls.XrmMetadataAutoComplete" languagecode="1033" />
9+
</LocalizedNames>
10+
<Descriptions />
11+
<Version>2.0.8</Version>
12+
<!-- Solution Package Type: Unmanaged(0)/Managed(1)/Both(2)-->
13+
<Managed>2</Managed>
14+
<Publisher>
15+
<!-- Unique Publisher Name of Cds Solution -->
16+
<UniqueName>SAB</UniqueName>
17+
<LocalizedNames>
18+
<!-- Localized Cds Publisher Name in language code-->
19+
<LocalizedName description="SAB" languagecode="1033" />
20+
</LocalizedNames>
21+
<Descriptions>
22+
<!-- Description of Cds Publisher in language code -->
23+
<Description description="sab" languagecode="1033" />
24+
</Descriptions>
25+
<EMailAddress xsi:nil="true">
26+
</EMailAddress>
27+
<SupportingWebsiteUrl xsi:nil="true">
28+
</SupportingWebsiteUrl>
29+
<!-- Customization Prefix for the Cds Publisher-->
30+
<CustomizationPrefix>sabdyn</CustomizationPrefix>
31+
<!-- Derived Option Value Prefix for the Customization Prefix of Cds Publisher -->
32+
<CustomizationOptionValuePrefix>26973</CustomizationOptionValuePrefix>
33+
<Addresses>
34+
<!-- Address of the Publisher-->
35+
<Address>
36+
<AddressNumber>1</AddressNumber>
37+
<AddressTypeCode>1</AddressTypeCode>
38+
<City xsi:nil="true">
39+
</City>
40+
<County xsi:nil="true">
41+
</County>
42+
<Country xsi:nil="true">
43+
</Country>
44+
<Fax xsi:nil="true">
45+
</Fax>
46+
<FreightTermsCode xsi:nil="true">
47+
</FreightTermsCode>
48+
<ImportSequenceNumber xsi:nil="true">
49+
</ImportSequenceNumber>
50+
<Latitude xsi:nil="true">
51+
</Latitude>
52+
<Line1 xsi:nil="true">
53+
</Line1>
54+
<Line2 xsi:nil="true">
55+
</Line2>
56+
<Line3 xsi:nil="true">
57+
</Line3>
58+
<Longitude xsi:nil="true">
59+
</Longitude>
60+
<Name xsi:nil="true">
61+
</Name>
62+
<PostalCode xsi:nil="true">
63+
</PostalCode>
64+
<PostOfficeBox xsi:nil="true">
65+
</PostOfficeBox>
66+
<PrimaryContactName xsi:nil="true">
67+
</PrimaryContactName>
68+
<ShippingMethodCode>1</ShippingMethodCode>
69+
<StateOrProvince xsi:nil="true">
70+
</StateOrProvince>
71+
<Telephone1 xsi:nil="true">
72+
</Telephone1>
73+
<Telephone2 xsi:nil="true">
74+
</Telephone2>
75+
<Telephone3 xsi:nil="true">
76+
</Telephone3>
77+
<TimeZoneRuleVersionNumber xsi:nil="true">
78+
</TimeZoneRuleVersionNumber>
79+
<UPSZone xsi:nil="true">
80+
</UPSZone>
81+
<UTCOffset xsi:nil="true">
82+
</UTCOffset>
83+
<UTCConversionTimeZoneCode xsi:nil="true">
84+
</UTCConversionTimeZoneCode>
85+
</Address>
86+
<Address>
87+
<AddressNumber>2</AddressNumber>
88+
<AddressTypeCode>1</AddressTypeCode>
89+
<City xsi:nil="true">
90+
</City>
91+
<County xsi:nil="true">
92+
</County>
93+
<Country xsi:nil="true">
94+
</Country>
95+
<Fax xsi:nil="true">
96+
</Fax>
97+
<FreightTermsCode xsi:nil="true">
98+
</FreightTermsCode>
99+
<ImportSequenceNumber xsi:nil="true">
100+
</ImportSequenceNumber>
101+
<Latitude xsi:nil="true">
102+
</Latitude>
103+
<Line1 xsi:nil="true">
104+
</Line1>
105+
<Line2 xsi:nil="true">
106+
</Line2>
107+
<Line3 xsi:nil="true">
108+
</Line3>
109+
<Longitude xsi:nil="true">
110+
</Longitude>
111+
<Name xsi:nil="true">
112+
</Name>
113+
<PostalCode xsi:nil="true">
114+
</PostalCode>
115+
<PostOfficeBox xsi:nil="true">
116+
</PostOfficeBox>
117+
<PrimaryContactName xsi:nil="true">
118+
</PrimaryContactName>
119+
<ShippingMethodCode>1</ShippingMethodCode>
120+
<StateOrProvince xsi:nil="true">
121+
</StateOrProvince>
122+
<Telephone1 xsi:nil="true">
123+
</Telephone1>
124+
<Telephone2 xsi:nil="true">
125+
</Telephone2>
126+
<Telephone3 xsi:nil="true">
127+
</Telephone3>
128+
<TimeZoneRuleVersionNumber xsi:nil="true">
129+
</TimeZoneRuleVersionNumber>
130+
<UPSZone xsi:nil="true">
131+
</UPSZone>
132+
<UTCOffset xsi:nil="true">
133+
</UTCOffset>
134+
<UTCConversionTimeZoneCode xsi:nil="true">
135+
</UTCConversionTimeZoneCode>
136+
</Address>
137+
</Addresses>
138+
</Publisher>
139+
<RootComponents />
140+
<MissingDependencies />
141+
</SolutionManifest>
142+
</ImportExportXml>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { DefaultColors } from './styles/colors';
2+
import { mergeStyleSets } from '@uifabric/styling';
3+
export const CalloutStyle = () => {
4+
return { width: '100%' };
5+
};
6+
export const AutocompleteStyles = () => {
7+
return ({
8+
marginTop: '10px', marginBottom: '20px', width:'100%', display: 'inline-block'
9+
});
10+
};
11+
export const SuggestionListStyle = () => {
12+
return ({ padding: '4px 16px', fontSize: '14px', cursor: 'default' });
13+
};
14+
export const SuggestionListItemStyle = mergeStyleSets({
15+
root: {
16+
selectors: {
17+
18+
'&:focus': {
19+
//backgroundColor: DefaultColors.Item.ListItemHoverBackgroundColor
20+
backgroundColor: "#f3f2f1",
21+
color: "black",
22+
outline: "none"
23+
}
24+
}
25+
}
26+
});

0 commit comments

Comments
 (0)