iguazio.dashboard-react-controls 3.2.20 → 3.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/scss/common.scss
CHANGED
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
--javaColor: #{colors.$java};
|
|
19
19
|
--mulledWineColor: #{colors.$mulledWine};
|
|
20
20
|
--mischkaColor: #{colors.$mischka};
|
|
21
|
+
--alabasterColor: #{colors.$alabaster};
|
|
22
|
+
--spunPearlColor: #{colors.$spunPearl};
|
|
23
|
+
--whiteSolidColor: #{colors.$whiteSolid};
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
/* =========== GENERAL ============= */
|
package/dist/scss/details.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chips.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/chips.util.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chips.util.d.ts","sourceRoot":"","sources":["../../src/lib/utils/chips.util.js"],"names":[],"mappings":"AAqFO;;;;;;;;EAAiF;AAEjF;;;;;;;;;;;;;;;EAkBN;AAEM;;;EAQN"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { roundFloats as
|
|
2
|
-
const
|
|
1
|
+
import { roundFloats as d } from "./common.util.mjs";
|
|
2
|
+
const l = [
|
|
3
3
|
{
|
|
4
4
|
type: "labels",
|
|
5
5
|
boldValue: !1,
|
|
@@ -44,13 +44,31 @@ const d = [
|
|
|
44
44
|
borderRadius: "primary",
|
|
45
45
|
density: "dense",
|
|
46
46
|
font: "orange"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
type: "requirements",
|
|
50
|
+
boldValue: !1,
|
|
51
|
+
background: "grey",
|
|
52
|
+
borderColor: "transparent",
|
|
53
|
+
borderRadius: "primary",
|
|
54
|
+
density: "dense",
|
|
55
|
+
font: "primary"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: "code_type",
|
|
59
|
+
boldValue: !1,
|
|
60
|
+
background: "purple",
|
|
61
|
+
borderColor: "transparent",
|
|
62
|
+
density: "dense",
|
|
63
|
+
font: "purple",
|
|
64
|
+
borderRadius: "primary"
|
|
47
65
|
}
|
|
48
|
-
],
|
|
66
|
+
], i = (e) => l.find((r) => r.type === e), u = (e = [], r, a) => {
|
|
49
67
|
if (e.length > r) {
|
|
50
|
-
let
|
|
51
|
-
const t = e.slice(r).map((
|
|
68
|
+
let o = `+ ${e.length - r}`;
|
|
69
|
+
const t = e.slice(r).map((n) => ({ value: n, delimiter: a })), s = e.slice(0, r).map((n) => ({ value: n, delimiter: a }));
|
|
52
70
|
return s.push({
|
|
53
|
-
value:
|
|
71
|
+
value: o,
|
|
54
72
|
delimiter: a
|
|
55
73
|
}), {
|
|
56
74
|
visibleChips: s,
|
|
@@ -58,18 +76,18 @@ const d = [
|
|
|
58
76
|
};
|
|
59
77
|
}
|
|
60
78
|
return {
|
|
61
|
-
visibleChips: e.map((
|
|
79
|
+
visibleChips: e.map((o) => ({ value: o, delimiter: a }))
|
|
62
80
|
};
|
|
63
81
|
}, b = (e) => {
|
|
64
82
|
const r = e.value.indexOf(":"), a = e.value.slice(r + 1);
|
|
65
83
|
return {
|
|
66
84
|
chipLabel: r > 0 ? e.value.slice(0, r) : e.value,
|
|
67
|
-
chipValue: r > 0 ? Number.isInteger(a) ?
|
|
85
|
+
chipValue: r > 0 ? Number.isInteger(a) ? d(a) : a : ""
|
|
68
86
|
};
|
|
69
87
|
};
|
|
70
88
|
export {
|
|
71
89
|
u as cutChips,
|
|
72
90
|
b as getChipLabelAndValue,
|
|
73
|
-
|
|
91
|
+
i as getChipOptions
|
|
74
92
|
};
|
|
75
93
|
//# sourceMappingURL=chips.util.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chips.util.mjs","sources":["../../src/lib/utils/chips.util.js"],"sourcesContent":["/*\nCopyright 2022 Iguazio Systems Ltd.\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\n\nimport { roundFloats } from './common.util'\n\nconst chipOptions = [\n {\n type: 'labels',\n boldValue: false,\n background: 'purple',\n borderColor: 'transparent',\n density: 'dense',\n font: 'purple',\n borderRadius: 'primary'\n },\n {\n type: 'metrics',\n boldValue: false,\n background: 'grey',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'primary'\n },\n {\n type: 'parameters',\n boldValue: false,\n background: 'orange',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'orange'\n },\n {\n type: 'results',\n boldValue: false,\n background: 'grey',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'primary'\n },\n {\n type: 'relations',\n boldValue: false,\n background: 'orange',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'orange'\n }\n]\n\nexport const getChipOptions = variant => chipOptions.find(item => item.type === variant)\n\nexport const cutChips = (chips = [], maxLength, delimiter) => {\n if (chips.length > maxLength) {\n let hiddenChipsNumber = `+ ${chips.length - maxLength}`\n const hiddenChips = chips.slice(maxLength).map(value => ({ value, delimiter }))\n const visibleChips = chips.slice(0, maxLength).map(value => ({ value, delimiter }))\n visibleChips.push({\n value: hiddenChipsNumber,\n delimiter\n })\n\n return {\n visibleChips,\n hiddenChips\n }\n }\n return {\n visibleChips: chips.map(value => ({ value, delimiter }))\n }\n}\n\nexport const getChipLabelAndValue = chip => {\n const indexOfDelimiter = chip.value.indexOf(':')\n const value = chip.value.slice(indexOfDelimiter + 1)\n\n return {\n chipLabel: indexOfDelimiter > 0 ? chip.value.slice(0, indexOfDelimiter) : chip.value,\n chipValue: indexOfDelimiter > 0 ? (Number.isInteger(value) ? roundFloats(value) : value) : ''\n }\n}\n"],"names":["chipOptions","getChipOptions","variant","item","cutChips","chips","maxLength","delimiter","hiddenChipsNumber","hiddenChips","value","visibleChips","getChipLabelAndValue","chip","indexOfDelimiter","roundFloats"],"mappings":";AAmBA,MAAMA,IAAc;AAAA,EAClB;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,IACT,MAAM;AAAA,IACN,cAAc;AAAA,EAClB;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AACA,GAEaC,IAAiB,CAAAC,MAAWF,EAAY,KAAK,CAAAG,MAAQA,EAAK,SAASD,CAAO,GAE1EE,IAAW,CAACC,IAAQ,IAAIC,GAAWC,MAAc;AAC5D,MAAIF,EAAM,SAASC,GAAW;AAC5B,QAAIE,IAAoB,KAAKH,EAAM,SAASC,CAAS;AACrD,UAAMG,IAAcJ,EAAM,MAAMC,CAAS,EAAE,IAAI,CAAAI,OAAU,EAAE,OAAAA,GAAO,WAAAH,IAAY,GACxEI,IAAeN,EAAM,MAAM,GAAGC,CAAS,EAAE,IAAI,CAAAI,OAAU,EAAE,OAAAA,GAAO,WAAAH,EAAS,EAAG;AAClF,WAAAI,EAAa,KAAK;AAAA,MAChB,OAAOH;AAAA,MACP,WAAAD;AAAA,IACN,CAAK,GAEM;AAAA,MACL,cAAAI;AAAA,MACA,aAAAF;AAAA,IACN;AAAA,EACE;AACA,SAAO;AAAA,IACL,cAAcJ,EAAM,IAAI,CAAAK,OAAU,EAAE,OAAAA,GAAO,WAAAH,IAAY;AAAA,EAC3D;AACA,GAEaK,IAAuB,CAAAC,MAAQ;AAC1C,QAAMC,IAAmBD,EAAK,MAAM,QAAQ,GAAG,GACzCH,IAAQG,EAAK,MAAM,MAAMC,IAAmB,CAAC;AAEnD,SAAO;AAAA,IACL,WAAWA,IAAmB,IAAID,EAAK,MAAM,MAAM,GAAGC,CAAgB,IAAID,EAAK;AAAA,IAC/E,WAAWC,IAAmB,IAAK,OAAO,UAAUJ,CAAK,IAAIK,EAAYL,CAAK,IAAIA,IAAS;AAAA,EAC/F;AACA;"}
|
|
1
|
+
{"version":3,"file":"chips.util.mjs","sources":["../../src/lib/utils/chips.util.js"],"sourcesContent":["/*\nCopyright 2022 Iguazio Systems Ltd.\nLicensed under the Apache License, Version 2.0 (the \"License\") with\nan addition restriction as set forth herein. You may not use this\nfile except in compliance with the License. You may obtain a copy of\nthe License at http://www.apache.org/licenses/LICENSE-2.0.\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\nimplied. See the License for the specific language governing\npermissions and limitations under the License.\nIn addition, you may not use the software for any purposes that are\nillegal under applicable law, and the grant of the foregoing license\nunder the Apache 2.0 license is conditioned upon your compliance with\nsuch restriction.\n*/\n\nimport { roundFloats } from './common.util'\n\nconst chipOptions = [\n {\n type: 'labels',\n boldValue: false,\n background: 'purple',\n borderColor: 'transparent',\n density: 'dense',\n font: 'purple',\n borderRadius: 'primary'\n },\n {\n type: 'metrics',\n boldValue: false,\n background: 'grey',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'primary'\n },\n {\n type: 'parameters',\n boldValue: false,\n background: 'orange',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'orange'\n },\n {\n type: 'results',\n boldValue: false,\n background: 'grey',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'primary'\n },\n {\n type: 'relations',\n boldValue: false,\n background: 'orange',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'orange'\n },\n {\n type: 'requirements',\n boldValue: false,\n background: 'grey',\n borderColor: 'transparent',\n borderRadius: 'primary',\n density: 'dense',\n font: 'primary'\n },\n {\n type: 'code_type',\n boldValue: false,\n background: 'purple',\n borderColor: 'transparent',\n density: 'dense',\n font: 'purple',\n borderRadius: 'primary'\n }\n]\n\nexport const getChipOptions = variant => chipOptions.find(item => item.type === variant)\n\nexport const cutChips = (chips = [], maxLength, delimiter) => {\n if (chips.length > maxLength) {\n let hiddenChipsNumber = `+ ${chips.length - maxLength}`\n const hiddenChips = chips.slice(maxLength).map(value => ({ value, delimiter }))\n const visibleChips = chips.slice(0, maxLength).map(value => ({ value, delimiter }))\n visibleChips.push({\n value: hiddenChipsNumber,\n delimiter\n })\n\n return {\n visibleChips,\n hiddenChips\n }\n }\n return {\n visibleChips: chips.map(value => ({ value, delimiter }))\n }\n}\n\nexport const getChipLabelAndValue = chip => {\n const indexOfDelimiter = chip.value.indexOf(':')\n const value = chip.value.slice(indexOfDelimiter + 1)\n\n return {\n chipLabel: indexOfDelimiter > 0 ? chip.value.slice(0, indexOfDelimiter) : chip.value,\n chipValue: indexOfDelimiter > 0 ? (Number.isInteger(value) ? roundFloats(value) : value) : ''\n }\n}\n"],"names":["chipOptions","getChipOptions","variant","item","cutChips","chips","maxLength","delimiter","hiddenChipsNumber","hiddenChips","value","visibleChips","getChipLabelAndValue","chip","indexOfDelimiter","roundFloats"],"mappings":";AAmBA,MAAMA,IAAc;AAAA,EAClB;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,IACT,MAAM;AAAA,IACN,cAAc;AAAA,EAClB;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AAAA,EACE;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,IACT,MAAM;AAAA,IACN,cAAc;AAAA,EAClB;AACA,GAEaC,IAAiB,CAAAC,MAAWF,EAAY,KAAK,CAAAG,MAAQA,EAAK,SAASD,CAAO,GAE1EE,IAAW,CAACC,IAAQ,IAAIC,GAAWC,MAAc;AAC5D,MAAIF,EAAM,SAASC,GAAW;AAC5B,QAAIE,IAAoB,KAAKH,EAAM,SAASC,CAAS;AACrD,UAAMG,IAAcJ,EAAM,MAAMC,CAAS,EAAE,IAAI,CAAAI,OAAU,EAAE,OAAAA,GAAO,WAAAH,IAAY,GACxEI,IAAeN,EAAM,MAAM,GAAGC,CAAS,EAAE,IAAI,CAAAI,OAAU,EAAE,OAAAA,GAAO,WAAAH,EAAS,EAAG;AAClF,WAAAI,EAAa,KAAK;AAAA,MAChB,OAAOH;AAAA,MACP,WAAAD;AAAA,IACN,CAAK,GAEM;AAAA,MACL,cAAAI;AAAA,MACA,aAAAF;AAAA,IACN;AAAA,EACE;AACA,SAAO;AAAA,IACL,cAAcJ,EAAM,IAAI,CAAAK,OAAU,EAAE,OAAAA,GAAO,WAAAH,IAAY;AAAA,EAC3D;AACA,GAEaK,IAAuB,CAAAC,MAAQ;AAC1C,QAAMC,IAAmBD,EAAK,MAAM,QAAQ,GAAG,GACzCH,IAAQG,EAAK,MAAM,MAAMC,IAAmB,CAAC;AAEnD,SAAO;AAAA,IACL,WAAWA,IAAmB,IAAID,EAAK,MAAM,MAAM,GAAGC,CAAgB,IAAID,EAAK;AAAA,IAC/E,WAAWC,IAAmB,IAAK,OAAO,UAAUJ,CAAK,IAAIK,EAAYL,CAAK,IAAIA,IAAS;AAAA,EAC/F;AACA;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iguazio.dashboard-react-controls",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.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
|
"module": "./dist/index.mjs",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"final-form": "^4.20.10",
|
|
82
82
|
"final-form-arrays": "^3.1.0",
|
|
83
83
|
"globals": "^15.14.0",
|
|
84
|
-
"lodash": "^4.
|
|
84
|
+
"lodash": "^4.18.0",
|
|
85
85
|
"moment": "^2.30.1",
|
|
86
86
|
"node": "21.6.2",
|
|
87
87
|
"prettier": "3.3.3",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"tsup": "^8.3.6",
|
|
99
99
|
"typescript": "^5.7.3",
|
|
100
100
|
"typescript-eslint": "^8.23.0",
|
|
101
|
-
"vite": "^6.2
|
|
101
|
+
"vite": "^6.4.2",
|
|
102
102
|
"vite-plugin-commonjs": "^0.10.4",
|
|
103
103
|
"vite-plugin-eslint": "^1.8.1",
|
|
104
104
|
"vite-plugin-static-copy": "^2.2.0",
|
|
@@ -110,7 +110,11 @@
|
|
|
110
110
|
"braces": ">=3.0.3",
|
|
111
111
|
"bn.js": "5.2.3",
|
|
112
112
|
"webpack-dev-middleware": ">=5.3.4",
|
|
113
|
-
"handlebars": "^4.7.9"
|
|
113
|
+
"handlebars": "^4.7.9",
|
|
114
|
+
"lodash": "^4.18.0",
|
|
115
|
+
"picomatch@2": "2.3.2",
|
|
116
|
+
"picomatch@3": "3.0.2",
|
|
117
|
+
"picomatch@4": "4.0.4"
|
|
114
118
|
},
|
|
115
119
|
"scripts": {
|
|
116
120
|
"lint": "eslint \"src/**/*.{js,jsx}\" --quiet",
|