iguazio.dashboard-react-controls 2.2.19 → 2.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Backdrop/Backdrop.js +1 -1
- package/dist/components/Button/Button.js +4 -6
- package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
- package/dist/components/FormCheckBox/FormCheckBox.js +4 -5
- package/dist/components/FormChipCell/FormChip/FormChip.js +1 -1
- package/dist/components/FormChipCell/FormChip/formChip.scss +6 -0
- package/dist/components/FormChipCell/FormChipCell.js +4 -5
- package/dist/components/FormChipCell/FormChipCellView.js +16 -11
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.js +5 -6
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.js +11 -18
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.js +1 -1
- package/dist/components/FormChipCell/formChipCell.util.js +1 -2
- package/dist/components/FormCombobox/FormCombobox.js +12 -13
- package/dist/components/FormInput/FormInput.js +18 -21
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.js +1 -1
- package/dist/components/FormKeyValueTable/FormKeyValueTable.js +5 -6
- package/dist/components/FormOnChange/FormOnChange.js +1 -1
- package/dist/components/FormRadio/FormRadio.js +3 -3
- package/dist/components/FormSelect/FormSelect.js +11 -12
- package/dist/components/FormSelect/FormSelect.test.js +6 -6
- package/dist/components/FormTextarea/FormTextarea.js +4 -5
- package/dist/components/FormToggle/FormToggle.js +4 -4
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/PopUpDialog/PopUpDialog.js +8 -10
- package/dist/components/RoundedIcon/RoundedIcon.js +1 -1
- package/dist/components/Tip/Tip.js +6 -6
- package/dist/components/Tip/Tip.test.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +9 -11
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.js +1 -1
- package/dist/components/TooltipTemplate/TextTooltipTemplate.js +1 -1
- package/dist/components/Wizard/Wizard.js +5 -5
- package/dist/components/Wizard/WizardSteps/WizardSteps.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/elements/FormActionButton/FormActionButton.js +2 -2
- package/dist/elements/FormRowActions/FormRowActions.js +5 -6
- package/dist/elements/OptionsMenu/OptionsMenu.js +2 -2
- package/dist/elements/SelectOption/SelectOption.js +4 -5
- package/dist/elements/SelectOption/SelectOption.test.js +5 -5
- package/dist/elements/ValidationTemplate/ValidationTemplate.js +1 -1
- package/dist/elements/index.js +1 -1
- package/dist/hooks/useChipCell.hook.js +6 -10
- package/dist/hooks/useFormTable.hook.js +25 -40
- package/dist/hooks/useHiddenChipsBlock.hook.js +9 -9
- package/dist/types.js +1 -1
- package/dist/utils/generateChipsList.util.js +1 -1
- package/dist/utils/validation.util.js +6 -6
- package/package.json +1 -1
|
@@ -179,7 +179,7 @@ const generateRule = {
|
|
|
179
179
|
noConsecutiveCharacters: chars => {
|
|
180
180
|
const convertedPattern = chars.split(' ').map(charPair => {
|
|
181
181
|
const charsPairArray = charPair.split('');
|
|
182
|
-
return
|
|
182
|
+
return `(?!.*\\${charsPairArray[0]}\\${charsPairArray[1]})`;
|
|
183
183
|
}).join('');
|
|
184
184
|
return {
|
|
185
185
|
name: _constants.validation.NO_CONSECUTIVE_CHARACTER.NAME,
|
|
@@ -197,7 +197,7 @@ const generateRule = {
|
|
|
197
197
|
maxLengthBetweenDelimiters: (delimiter, maxLength, delimiterDescription) => {
|
|
198
198
|
return {
|
|
199
199
|
name: 'labelsLength',
|
|
200
|
-
label:
|
|
200
|
+
label: `Max length between two ${_lodash.default.defaultTo(delimiterDescription, delimiter)}: ${maxLength}`,
|
|
201
201
|
pattern: value => {
|
|
202
202
|
return value.split(delimiter).every(item => {
|
|
203
203
|
return item.length >= 1 && item.length <= maxLength;
|
|
@@ -239,11 +239,11 @@ const generateRule = {
|
|
|
239
239
|
const commonRules = {
|
|
240
240
|
prefixedQualifiedName: [{
|
|
241
241
|
name: 'nameValidCharacters',
|
|
242
|
-
label:
|
|
242
|
+
label: `[Name] ${_constants.validation.VALID_CHARACTERS.LABEL} : a–z, A–Z, 0–9, –, _, .`,
|
|
243
243
|
pattern: /^([^/]+\/)?[\w.-]+$/
|
|
244
244
|
}, {
|
|
245
245
|
name: 'nameBeginEnd',
|
|
246
|
-
label:
|
|
246
|
+
label: `[Name] ${_constants.validation.BEGIN_END_WITH.LABEL}: a–z, A–Z, 0–9`,
|
|
247
247
|
pattern: /^([^/]+\/)?([A-Za-z0-9][^/]*)?[A-Za-z0-9]$/
|
|
248
248
|
}, {
|
|
249
249
|
name: 'nameMaxLength',
|
|
@@ -251,11 +251,11 @@ const commonRules = {
|
|
|
251
251
|
pattern: /^([^/]+\/)?[^/]{1,63}$/
|
|
252
252
|
}, {
|
|
253
253
|
name: 'prefixValidCharacters',
|
|
254
|
-
label:
|
|
254
|
+
label: `[Prefix] ${_constants.validation.VALID_CHARACTERS.LABEL}: a–z, 0–9, –, .`,
|
|
255
255
|
pattern: /^([a-z0-9.-]+\/)?[^/]+$/
|
|
256
256
|
}, {
|
|
257
257
|
name: 'prefixBeginEnd',
|
|
258
|
-
label:
|
|
258
|
+
label: `[Prefix] ${_constants.validation.BEGIN_END_WITH.LABEL}: a–z, 0–9`,
|
|
259
259
|
pattern: /^([a-z0-9]([^/]*[a-z0-9])?\/)?[^/]+$/
|
|
260
260
|
}, {
|
|
261
261
|
name: 'prefixMaxLength',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iguazio.dashboard-react-controls",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.21",
|
|
4
4
|
"description": "Collection of resources (such as CSS styles, fonts and images) and ReactJS 17.x components to share among different Iguazio React repos.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|