iguazio.dashboard-react-controls 1.3.7 → 1.3.8

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.
@@ -1158,7 +1158,6 @@
1158
1158
  font-size: 1em;
1159
1159
  padding: 0 0 0 0.45em;
1160
1160
  height: inherit;
1161
- text-transform: capitalize;
1162
1161
  user-select: none;
1163
1162
  white-space: nowrap;
1164
1163
  }
@@ -224,6 +224,13 @@ var generateRule = {
224
224
  pattern: new RegExp('^[' + convertToPattern(chars) + ']+$')
225
225
  };
226
226
  },
227
+ validCharactersWithPrefix: function validCharactersWithPrefix(chars) {
228
+ return {
229
+ name: 'validCharactersWithPrefix',
230
+ label: _constants.validation.VALID_CHARACTERS + ': ' + convertToLabel(chars),
231
+ pattern: new RegExp('^([' + convertToPattern(chars) + ']+\/)?[' + convertToPattern(chars) + ']+$')
232
+ };
233
+ },
227
234
  noConsecutiveCharacters: function noConsecutiveCharacters(chars) {
228
235
  var convertedPattern = chars.split(' ').map(function (charPair) {
229
236
  var charsPairArray = charPair.split('');
@@ -336,6 +343,11 @@ var validationRules = {
336
343
  secretKey: [generateRule.validCharacters('a-z A-Z 0-9 - _ .'), generateRule.beginNotWith('.'), generateRule.length({
337
344
  max: 253
338
345
  })]
346
+ },
347
+ job: {
348
+ label: [generateRule.validCharactersWithPrefix('a-z A-Z 0-9 - _ .'), generateRule.beginEndWith('a-z A-Z 0-9'), generateRule.length({
349
+ max: 56
350
+ })]
339
351
  }
340
352
  };
341
353
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-react-controls",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
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",