Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MscrmTools committed Apr 4, 2024
2 parents 0414e1f + f266a17 commit 709b3c7
Show file tree
Hide file tree
Showing 18 changed files with 9,521 additions and 38 deletions.
3 changes: 2 additions & 1 deletion CustomSwitch/CustomSwitch/ControlManifest.Input.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest>
<control namespace="MscrmTools" constructor="CustomSwitch" version="1.0.2" display-name-key="CustomSwitch_Display_Key" description-key="CustomSwitch_Desc_Key" control-type="standard" preview-image="imgs/preview.png">
<control namespace="MscrmTools" constructor="CustomSwitch" version="1.0.3" display-name-key="CustomSwitch_Display_Key" description-key="CustomSwitch_Desc_Key" control-type="standard" preview-image="imgs/preview.png">
<property name="booleanAttribute" display-name-key="booleanAttribute_Display_Key" description-key="booleanAttribute_Desc_Key" of-type="TwoOptions" usage="bound" required="true" />
<property name="offColor" display-name-key="offColor_Display_Key" description-key="offColor_Desc_Key" of-type="SingleLine.Text" default-value="#008000" usage="input" required="false" />
<property name="onColor" display-name-key="onColor_Display_Key" description-key="onColor_Desc_Key" of-type="SingleLine.Text" default-value="#E70000" usage="input" required="false" />
Expand All @@ -16,6 +16,7 @@
<resources>
<code path="index.ts" order="1" />
<css path="css/CustomSwitch.css" order="1" />
<resx path="strings/CustomSwitch.1031.resx" version="1.0.0" />
<resx path="strings/CustomSwitch.1033.resx" version="1.0.0" />
<resx path="strings/CustomSwitch.1036.resx" version="1.0.0" />
</resources>
Expand Down
8 changes: 7 additions & 1 deletion CustomSwitch/CustomSwitch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ export class CustomSwitch implements ComponentFramework.StandardControl<IInputs,

this.ensureLabel((<HTMLInputElement>document.getElementById(this._checkboxid)).checked);
}

if (context.mode.isControlDisabled) {
(<HTMLInputElement>document.getElementById(this._checkboxid)).setAttribute("disabled", "disabled");
}else{
(<HTMLInputElement>document.getElementById(this._checkboxid)).removeAttribute("disabled")
}
}

/**
Expand All @@ -160,4 +166,4 @@ export class CustomSwitch implements ComponentFramework.StandardControl<IInputs,
{
// Add code to cleanup control if necessary
}
}
}
129 changes: 129 additions & 0 deletions CustomSwitch/CustomSwitch/strings/CustomSwitch.1031.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="CustomSwitch_Display_Key" xml:space="preserve">
<value>Benutzerdefinierter Schalter</value>
</data>
<data name="CustomSwitch_Desc_Key" xml:space="preserve">
<value>Layout und Farben des Schalters anpassen</value>
</data>
<data name="booleanAttribute_Display_Key" xml:space="preserve">
<value>Attribut</value>
</data>
<data name="booleanAttribute_Desc_Key" xml:space="preserve">
<value>Das anzuzeigende ZweiOptionen-Attribut</value>
</data>
<data name="onColor_Display_Key" xml:space="preserve">
<value>Farbe bei Ein</value>
</data>
<data name="onColor_Desc_Key" xml:space="preserve">
<value>Hintergrundfarbe des Schalters, wenn der Wert Ein ist</value>
</data>
<data name="offColor_Display_Key" xml:space="preserve">
<value>Farbe bei Aus</value>
</data>
<data name="offColor_Desc_Key" xml:space="preserve">
<value>Hintergrundfarbe des Schalters, wenn der Wert Aus ist</value>
</data>
<data name="switchColor_Display_Key" xml:space="preserve">
<value>Schalterfarbe</value>
</data>
<data name="switchColor_Desc_Key" xml:space="preserve">
<value>Farbe des Schalters</value>
</data>
<data name="layout_Display_Key" xml:space="preserve">
<value>Layout</value>
</data>
<data name="layout_Desc_Key" xml:space="preserve">
<value>Wählen Sie das Layout für den Schalter</value>
</data>
<data name="layoutRound_Display_Key" xml:space="preserve">
<value>Rund</value>
</data>
<data name="layoutRound_Desc_Key" xml:space="preserve">
<value>Schalter als rund anzeigen</value>
</data>
<data name="layoutSquare_Display_Key" xml:space="preserve">
<value>Quadratisch</value>
</data>
<data name="layoutSquare_Desc_Key" xml:space="preserve">
<value>Schalter als quadratisch anzeigen</value>
</data>
<data name="displayLabel_Display_Key" xml:space="preserve">
<value>Beschriftung anzeigen</value>
</data>
<data name="displayLabel_Desc_Key" xml:space="preserve">
<value>Wählen Sie, ob das Label der ausgewählten Option neben dem Schalter angezeigt werden soll</value>
</data>
<data name="true_Display_Key" xml:space="preserve">
<value>Ja</value>
</data>
<data name="true_Desc_Key" xml:space="preserve">
<value>Ja</value>
</data>
<data name="false_Display_Key" xml:space="preserve">
<value>Nein</value>
</data>
<data name="false_Desc_Key" xml:space="preserve">
<value>Nein</value>
</data>

<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</root>
3 changes: 2 additions & 1 deletion DateAsCheckbox/DateAsCheckbox/ControlManifest.Input.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest>
<control namespace="MscrmTools" constructor="DateAsCheckbox" version="0.0.3" display-name-key="DateAsCheckbox" description-key="DateAsCheckbox_description" control-type="standard">
<control namespace="MscrmTools" constructor="DateAsCheckbox" version="0.0.4" display-name-key="DateAsCheckbox" description-key="DateAsCheckbox_description" control-type="standard">
<!-- property node identifies a specific, configurable piece of data that the control expects from CDS -->
<property name="DateAttribute" display-name-key="DateAttribute_Display_Key" description-key="DateAttribute_Desc_Key" of-type-group="dates" usage="bound" required="true" />
<property name="offColor" display-name-key="offColor_Display_Key" description-key="offColor_Desc_Key" of-type="SingleLine.Text" default-value="" usage="input" required="false" />
Expand All @@ -17,6 +17,7 @@
<resources>
<code path="index.ts" order="1" />
<css path="css/DateAsCheckbox.css" order="1" />
<resx path="strings/DateAsCheckbox.1031.resx" version="1.0.0" />
<resx path="strings/DateAsCheckbox.1033.resx" version="1.0.0" />
<resx path="strings/DateAsCheckbox.1036.resx" version="1.0.0" />
</resources>
Expand Down
116 changes: 116 additions & 0 deletions DateAsCheckbox/DateAsCheckbox/strings/DateAsCheckbox.1031.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="DateAsCheckbox" xml:space="preserve">
<value>Datum als Kontrollkästchen</value>
</data>
<data name="DateAsCheckbox_description" xml:space="preserve">
<value>Zeigt ein Datumsattribut als Kontrollkästchen an. Wenn es angekreuzt ist, wird das aktuelle Datum gesetzt. Wenn es nicht angekreuzt ist, wird das Datum gelöscht</value>
</data>
<data name="DateAttribute_Display_Key" xml:space="preserve">
<value>Attribut</value>
</data>
<data name="DateAttribute_Desc_Key" xml:space="preserve">
<value>Das Datums- und Uhrzeitattribut, das als Kontrollkästchen angezeigt wird</value>
</data>
<data name="onColor_Display_Key" xml:space="preserve">
<value>Farbe bei Ein</value>
</data>
<data name="onColor_Desc_Key" xml:space="preserve">
<value>Hintergrundfarbe des Schalters, wenn der Wert Ein ist</value>
</data>
<data name="offColor_Display_Key" xml:space="preserve">
<value>Farbe bei Aus</value>
</data>
<data name="offColor_Desc_Key" xml:space="preserve">
<value>Hintergrundfarbe des Schalters, wenn der Wert Aus ist</value>
</data>
<data name="switchColor_Display_Key" xml:space="preserve">
<value>Schalterfarbe</value>
</data>
<data name="switchColor_Desc_Key" xml:space="preserve">
<value>Farbe des Schalters</value>
</data>
<data name="layout_Display_Key" xml:space="preserve">
<value>Layout</value>
</data>
<data name="layout_Desc_Key" xml:space="preserve">
<value>Wählen Sie das Layout für den Schalter</value>
</data>
<data name="layoutRound_Display_Key" xml:space="preserve">
<value>Rund</value>
</data>
<data name="layoutRound_Desc_Key" xml:space="preserve">
<value>Schalter als rund anzeigen</value>
</data>
<data name="layoutSquare_Display_Key" xml:space="preserve">
<value>Quadratisch</value>
</data>
<data name="layoutSquare_Desc_Key" xml:space="preserve">
<value>Schalter als quadratisch anzeigen</value>
</data>
<data name="displayLabel_Display_Key" xml:space="preserve">
<value>Beschriftung anzeigen</value>
</data>
<data name="displayLabel_Desc_Key" xml:space="preserve">
<value>Wählen Sie, ob das Label der ausgewählten Option neben dem Schalter angezeigt werden soll</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</root>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest>
<control namespace="MscrmTools" constructor="LinearSliderWithSteps" version="0.0.16" display-name-key="LinearSliderWithSteps" description-key="LinearSliderWithSteps_description" control-type="standard" preview-image="imgs/screenshot.png">
<control namespace="MscrmTools" constructor="LinearSliderWithSteps" version="0.0.17" display-name-key="LinearSliderWithSteps" description-key="LinearSliderWithSteps_description" control-type="standard" preview-image="imgs/screenshot.png">
<type-group name="numbers">
<type>Whole.None</type>
<type>Currency</type>
Expand All @@ -22,6 +22,7 @@
<resources>
<code path="index.ts" order="1" />
<css path="css/LinearSliderWithSteps.css" order="2" />
<resx path="strings/LinearSliderWithSteps.1031.resx" version="1.0.0" />
<resx path="strings/LinearSliderWithSteps.1033.resx" version="1.0.0" />
<resx path="strings/LinearSliderWithSteps.1036.resx" version="1.0.0" />
</resources>
Expand Down
Loading

0 comments on commit 709b3c7

Please sign in to comment.