-
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 8412-blazorui-missing-colors
- Loading branch information
Showing
273 changed files
with
7,340 additions
and
4,303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"devDependencies": { | ||
"esbuild": "0.23.1", | ||
"sass": "1.77.8", | ||
"sass": "1.78.0", | ||
"typescript": "5.5.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,8 @@ public void BitTextFieldShouldTakeCorrectTypeAndVisual(bool isEnabled, bool isMu | |
parameters.Add(p => p.Required, required); | ||
}); | ||
|
||
var bitTextField = component.Find(".bit-txt"); | ||
var textField = component.Find(".bit-txt-inp"); | ||
var bitTextField = component.Find(".bit-tfl"); | ||
var textField = component.Find(".bit-tfl-inp"); | ||
|
||
if (isEnabled) | ||
{ | ||
|
@@ -37,7 +37,7 @@ public void BitTextFieldShouldTakeCorrectTypeAndVisual(bool isEnabled, bool isMu | |
Assert.AreEqual(isMultiline ? "TEXTAREA" : "INPUT", textField.TagName); | ||
|
||
Assert.AreEqual(required, textField.HasAttribute("required")); | ||
Assert.AreEqual(required, bitTextField.ClassList.Contains("bit-txt-req")); | ||
Assert.AreEqual(required, bitTextField.ClassList.Contains("bit-tfl-req")); | ||
} | ||
|
||
[DataTestMethod, | ||
|
@@ -52,7 +52,7 @@ public void BitTextFieldShouldTakeValue(bool isMultiline, string value) | |
parameters.Add(p => p.IsMultiline, isMultiline); | ||
}); | ||
|
||
var bitTextField = component.Find(".bit-txt-inp"); | ||
var bitTextField = component.Find(".bit-tfl-inp"); | ||
|
||
Assert.AreEqual(bitTextField.GetAttribute("value"), value); | ||
} | ||
|
@@ -65,7 +65,7 @@ public void BitTextFieldLabel(string label) | |
parameters.Add(p => p.Label, label); | ||
}); | ||
|
||
var bitTextFieldLabel = com.Find(".bit-txt-lbl").TextContent; | ||
var bitTextFieldLabel = com.Find(".bit-tfl-lbl").TextContent; | ||
|
||
Assert.AreEqual(label, bitTextFieldLabel); | ||
} | ||
|
@@ -86,7 +86,7 @@ public void BitTextFieldShouldTakeBaseParameters(int maxLength, bool isMultiline | |
parameters.Add(p => p.ReadOnly, readOnly); | ||
}); | ||
|
||
var bitTextField = component.Find(".bit-txt-inp"); | ||
var bitTextField = component.Find(".bit-tfl-inp"); | ||
|
||
Assert.IsTrue(bitTextField.HasAttribute("maxlength")); | ||
Assert.AreEqual(bitTextField.GetAttribute("maxlength"), maxLength.ToString()); | ||
|
@@ -105,7 +105,7 @@ public void BitTextFieldShouldAcceptIcon(string iconName) | |
parameters.Add(p => p.IconName, iconName); | ||
}); | ||
|
||
var bitTextFieldIcon = component.Find(".bit-txt-inp + .bit-icon"); | ||
var bitTextFieldIcon = component.Find(".bit-tfl-inp + .bit-icon"); | ||
|
||
Assert.IsTrue(bitTextFieldIcon.ClassList.Contains($"bit-icon--{iconName}")); | ||
} | ||
|
@@ -119,13 +119,13 @@ public void BitTextFieldCanRevealPassword(bool isEnabled) | |
var component = RenderComponent<BitTextField>(parameters => | ||
{ | ||
parameters.Add(p => p.IsEnabled, isEnabled); | ||
parameters.Add(p => p.Type, BitTextFieldType.Password); | ||
parameters.Add(p => p.Type, BitInputType.Password); | ||
parameters.Add(p => p.CanRevealPassword, true); | ||
}); | ||
|
||
var textField = component.Find(".bit-txt-inp"); | ||
var revealPasswordBtn = component.Find(".bit-txt-prb"); | ||
var revealPasswordIcon = component.Find(".bit-txt-prb > span > i"); | ||
var textField = component.Find(".bit-tfl-inp"); | ||
var revealPasswordBtn = component.Find(".bit-tfl-prb"); | ||
var revealPasswordIcon = component.Find(".bit-tfl-prb > span > i"); | ||
|
||
Assert.AreEqual("password", textField.GetAttribute("type")); | ||
Assert.IsTrue(revealPasswordIcon.ClassList.Contains($"bit-icon--View")); | ||
|
@@ -137,18 +137,18 @@ public void BitTextFieldCanRevealPassword(bool isEnabled) | |
} | ||
|
||
[DataTestMethod, | ||
DataRow(BitTextFieldType.Password), | ||
DataRow(BitTextFieldType.Number), | ||
DataRow(BitTextFieldType.Tel) | ||
DataRow(BitInputType.Password), | ||
DataRow(BitInputType.Number), | ||
DataRow(BitInputType.Tel) | ||
] | ||
public void BitTextFieldTypeTest(BitTextFieldType type) | ||
public void BitInputTypeTest(BitInputType type) | ||
{ | ||
var component = RenderComponent<BitTextField>(parameters => | ||
{ | ||
parameters.Add(p => p.Type, type); | ||
}); | ||
|
||
var textField = component.Find(".bit-txt-inp"); | ||
var textField = component.Find(".bit-tfl-inp"); | ||
|
||
Assert.AreEqual(type.GetDisplayName(toLowerDisplayName: true), textField.GetAttribute("type")); | ||
} | ||
|
@@ -169,7 +169,7 @@ public void BitTextFieldMustRespondToTheClickEvent(bool isEnabled, bool isMultil | |
parameters.Add(p => p.OnClick, () => currentCount++); | ||
}); | ||
|
||
var bitTextField = component.Find(".bit-txt-inp"); | ||
var bitTextField = component.Find(".bit-tfl-inp"); | ||
|
||
bitTextField.Click(); | ||
|
||
|
@@ -196,7 +196,7 @@ public void BitTextFieldMustRespondToTheFocusEvent(bool isEnabled, bool isMultil | |
parameters.Add(p => p.OnFocusOut, () => focusedOutValue++); | ||
}); | ||
|
||
var bitTextField = component.Find(".bit-txt-inp"); | ||
var bitTextField = component.Find(".bit-tfl-inp"); | ||
|
||
bitTextField.Focus(); | ||
Assert.AreEqual(isEnabled ? 1 : 0, focusedValue); | ||
|
@@ -226,7 +226,7 @@ public void BitTextFieldMustRespondToTheKeyEvent(bool isEnabled, bool isMultilin | |
parameters.Add(p => p.OnKeyDown, (KeyboardEventArgs e) => keyDownedValue = e.Key); | ||
}); | ||
|
||
var bitTextField = component.Find(".bit-txt-inp"); | ||
var bitTextField = component.Find(".bit-tfl-inp"); | ||
|
||
bitTextField.KeyUp(keyUpValue); | ||
Assert.AreEqual(isEnabled ? keyUpValue : null, keyUppedValue); | ||
|
@@ -251,7 +251,7 @@ public void BitTextFieldMustRespondToTheChangeEvent(bool isEnabled, bool isMulti | |
parameters.Add(p => p.OnChange, () => currentCount++); | ||
}); | ||
|
||
var bitTextField = component.Find(".bit-txt-inp"); | ||
var bitTextField = component.Find(".bit-tfl-inp"); | ||
|
||
bitTextField.Change("a"); | ||
|
||
|
@@ -266,7 +266,7 @@ public void BitTextFieldShowPrefix(string prefix) | |
parameters.Add(p => p.Prefix, prefix); | ||
}); | ||
|
||
var bitTextFieldPrefix = component.Find(".bit-txt-pre > span"); | ||
var bitTextFieldPrefix = component.Find(".bit-tfl-pre > span"); | ||
Assert.AreEqual(prefix, bitTextFieldPrefix.TextContent); | ||
} | ||
|
||
|
@@ -278,7 +278,7 @@ public void BitTextFieldShowSuffix(string suffix) | |
parameters.Add(p => p.Suffix, suffix); | ||
}); | ||
|
||
var bitTextFieldSuffix = component.Find(".bit-txt-suf > span"); | ||
var bitTextFieldSuffix = component.Find(".bit-tfl-suf > span"); | ||
Assert.AreEqual(suffix, bitTextFieldSuffix.TextContent); | ||
} | ||
|
||
|
@@ -294,7 +294,7 @@ public void BitTextFieldShouldTakeDefaultValue(bool isMultiline, string defaultV | |
parameters.Add(p => p.IsMultiline, isMultiline); | ||
}); | ||
|
||
var bitTextField = component.Find(".bit-txt-inp"); | ||
var bitTextField = component.Find(".bit-tfl-inp"); | ||
|
||
Assert.AreEqual(defaultValue, bitTextField.GetAttribute("value")); | ||
} | ||
|
@@ -307,7 +307,7 @@ public void BitTextFieldShouldTakeDescription(string description) | |
parameters.Add(p => p.Description, description); | ||
}); | ||
|
||
var bitTextFieldDescription = component.Find(".bit-txt-des > span"); | ||
var bitTextFieldDescription = component.Find(".bit-tfl-des > span"); | ||
Assert.AreEqual(description, bitTextFieldDescription.TextContent); | ||
} | ||
|
||
|
@@ -322,8 +322,8 @@ public void BitTextFieldShouldRespectUnderLineStyle(bool isUnderlined) | |
parameters.Add(p => p.IsUnderlined, isUnderlined); | ||
}); | ||
|
||
var bitTextField = component.Find(".bit-txt"); | ||
Assert.AreEqual(isUnderlined, bitTextField.ClassList.Contains("bit-txt-und")); | ||
var bitTextField = component.Find(".bit-tfl"); | ||
Assert.AreEqual(isUnderlined, bitTextField.ClassList.Contains("bit-tfl-und")); | ||
} | ||
|
||
[DataTestMethod, | ||
|
@@ -337,8 +337,8 @@ public void BitTextFieldShouldRespectHasBorderStyle(bool hasBorder) | |
parameters.Add(p => p.HasBorder, hasBorder); | ||
}); | ||
|
||
var bitTextField = component.Find(".bit-txt"); | ||
Assert.AreEqual(hasBorder is false, bitTextField.ClassList.Contains("bit-txt-nbd")); | ||
var bitTextField = component.Find(".bit-tfl"); | ||
Assert.AreEqual(hasBorder is false, bitTextField.ClassList.Contains("bit-tfl-nbd")); | ||
} | ||
|
||
[DataTestMethod, DataRow(5)] | ||
|
@@ -350,7 +350,7 @@ public void BitTextFieldShouldRespectRowsNumberWhenItIsMultiline(int rows) | |
parameters.Add(p => p.Rows, rows); | ||
}); | ||
|
||
var input = component.Find(".bit-txt textarea"); | ||
var input = component.Find(".bit-tfl textarea"); | ||
Assert.AreEqual(rows.ToString(), input.GetAttribute("rows")); | ||
} | ||
|
||
|
@@ -366,8 +366,8 @@ public void BitTextFieldShouldRespectIsResizableWhenItIsMultiline(bool isResizab | |
parameters.Add(p => p.IsResizable, isResizable); | ||
}); | ||
|
||
var bitTextField = component.Find(".bit-txt"); | ||
Assert.AreEqual(!isResizable, bitTextField.ClassList.Contains("bit-txt-mlf")); | ||
var bitTextField = component.Find(".bit-tfl"); | ||
Assert.AreEqual(!isResizable, bitTextField.ClassList.Contains("bit-tfl-mlf")); | ||
} | ||
|
||
[DataTestMethod, | ||
|
@@ -383,7 +383,7 @@ public void BitTextFieldAriaLabelTest(string ariaLabel, bool isMultiline) | |
}); | ||
|
||
|
||
var input = component.Find(".bit-txt-inp"); | ||
var input = component.Find(".bit-tfl-inp"); | ||
|
||
Assert.IsTrue(input.HasAttribute("aria-label")); | ||
Assert.AreEqual(input.GetAttribute("aria-label"), ariaLabel); | ||
|
@@ -403,7 +403,7 @@ public void BitTextFieldAriaLabelledbyTest(bool isMultiline, string label) | |
parameters.Add(p => p.IsMultiline, isMultiline); | ||
}); | ||
|
||
var input = component.Find(".bit-txt-inp"); | ||
var input = component.Find(".bit-tfl-inp"); | ||
Assert.AreEqual(label.HasValue(), input.HasAttribute("aria-labelledby")); | ||
} | ||
|
||
|
@@ -420,7 +420,7 @@ public void BitTextFieldAutoCompleteTest(string autoComplete) | |
parameters.Add(p => p.AutoComplete, autoComplete); | ||
}); | ||
|
||
var input = component.Find(".bit-txt-inp"); | ||
var input = component.Find(".bit-tfl-inp"); | ||
|
||
if (autoComplete.HasValue()) | ||
{ | ||
|
@@ -607,7 +607,7 @@ public void BitTextFieldValidationInvalidCssClassTest(string value) | |
|
||
var isInvalid = value != "[email protected]"; | ||
|
||
var bitTextField = component.Find(".bit-txt"); | ||
var bitTextField = component.Find(".bit-tfl"); | ||
|
||
Assert.IsFalse(bitTextField.ClassList.Contains("bit-inv")); | ||
|
||
|
@@ -644,7 +644,7 @@ public void BitTextFieldTrimmedDefaultValueTest(string value) | |
parameters.Add(p => p.DefaultValue, value); | ||
}); | ||
|
||
var bitTextField = component.Find(".bit-txt-inp"); | ||
var bitTextField = component.Find(".bit-tfl-inp"); | ||
var trimmedValue = bitTextField.GetAttribute("value"); | ||
|
||
Assert.AreEqual(value.Trim(), trimmedValue); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.