sccoreui 6.3.70 → 6.3.71

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/App.scss CHANGED
@@ -1725,6 +1725,13 @@ code {
1725
1725
  }
1726
1726
  }
1727
1727
 
1728
+ .text-truncate {
1729
+ white-space: nowrap;
1730
+ overflow: hidden;
1731
+ text-overflow: ellipsis;
1732
+ line-height: 20px;
1733
+ }
1734
+
1728
1735
  .no_icon {
1729
1736
  .p-multiselect-label {
1730
1737
  padding-left: 16px !important;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const svg_1 = require("../../../assets/svg/svg");
5
5
  const FieldLabel = (props) => {
6
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [(props === null || props === void 0 ? void 0 : props.isRequired) && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (!(props === null || props === void 0 ? void 0 : props.error) && (props === null || props === void 0 ? void 0 : props.touched)) ||
6
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center gap-1" }, { children: [(props === null || props === void 0 ? void 0 : props.isRequired) && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (!(props === null || props === void 0 ? void 0 : props.error) && (props === null || props === void 0 ? void 0 : props.touched)) ||
7
7
  ((props === null || props === void 0 ? void 0 : props.value) && !(props === null || props === void 0 ? void 0 : props.touched)) ? ((0, jsx_runtime_1.jsx)(svg_1.LightningGreen, {})) : (props === null || props === void 0 ? void 0 : props.error) && (props === null || props === void 0 ? void 0 : props.touched) ? ((0, jsx_runtime_1.jsx)(svg_1.LightningRed, {})) : ((0, jsx_runtime_1.jsx)(svg_1.Lightning, {})) })), (0, jsx_runtime_1.jsx)("label", Object.assign({ htmlFor: props === null || props === void 0 ? void 0 : props.label, className: "mb-1" }, { children: props === null || props === void 0 ? void 0 : props.label }))] })) }));
8
8
  };
9
9
  exports.default = FieldLabel;
@@ -118,12 +118,16 @@ showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, re
118
118
  // link={link ? true : false}
119
119
  icon: labelIcon ? labelIcon : "", size: labelIconSize ? labelIconSize : "", iconPos: labelIconPos ? labelIconPos : "", label: label, onClick: (event) => optionsMenuRef.current.toggle(event), "aria-controls": "popup_menu_right", "aria-haspopup": true, ref: buttonRef, className: `list_box_btn ${type === "sectionHeader" ? "section_btn" : ""}` }), (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: `list_box_chips ${chipsParentClassName}` }, { children: selectedItems &&
120
120
  (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.map((item, index) => {
121
- var _a, _b;
122
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isDraggable !== undefined ? ((0, jsx_runtime_1.jsx)("li", Object.assign({ draggable: isDraggable, onDragStart: (e) => handleDragStart(e, index), onDragOver: (e) => handleDragOver(e), onDrop: (e) => handleDrop(e, index), className: `select-none ${chipClassName ? chipClassName : "list_box_chip"} ${showRemoveIcon ? "relative text-gray-700" : ""}` }, { children: chipTemplate ? (chipTemplate(item)) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [typeof item === "object"
123
- ? item[`${optionLabel}`]
124
- : (_a = listItems.find((x) => x.value === item)) === null || _a === void 0 ? void 0 : _a[`${optionLabel}`], showRemoveIcon && ((0, jsx_runtime_1.jsxs)("span", Object.assign({ onClick: () => onRemoveItem(item), className: `absolute right-0 p-1` }, { children: [" ", (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: showRemoveIcon, size: removeIconSize ? removeIconSize : 15 })] })))] })) }), index)) : ((0, jsx_runtime_1.jsx)("li", Object.assign({ className: `select-none ${chipClassName ? chipClassName : "list_box_chip"} ${showRemoveIcon ? "relative" : ""}` }, { children: chipTemplate ? (chipTemplate(item)) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [typeof item === "object"
125
- ? item[`${optionLabel}`]
126
- : (_b = listItems.find((x) => x.value === item)) === null || _b === void 0 ? void 0 : _b[`${optionLabel}`], showRemoveIcon && ((0, jsx_runtime_1.jsxs)("span", Object.assign({ onClick: () => onRemoveItem(item), className: `${removeIconClassName}` }, { children: [" ", (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: showRemoveIcon, size: removeIconSize ? removeIconSize : 15 })] })))] })) }), index)) }));
121
+ var _a, _b, _c, _d;
122
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isDraggable !== undefined ? ((0, jsx_runtime_1.jsx)("li", Object.assign({ draggable: isDraggable, onDragStart: (e) => handleDragStart(e, index), onDragOver: (e) => handleDragOver(e), onDrop: (e) => handleDrop(e, index), className: `select-none ${chipClassName ? chipClassName : "list_box_chip"} ${showRemoveIcon ? "relative text-gray-700" : ""}` }, { children: chipTemplate ? (chipTemplate(item)) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-truncate max-w-10rem inline-block", title: typeof item === "object"
123
+ ? item[`${optionLabel}`]
124
+ : (_a = listItems === null || listItems === void 0 ? void 0 : listItems.find((x) => x.value === item)) === null || _a === void 0 ? void 0 : _a[`${optionLabel}`] }, { children: typeof item === "object"
125
+ ? item[`${optionLabel}`]
126
+ : (_b = listItems === null || listItems === void 0 ? void 0 : listItems.find((x) => x.value === item)) === null || _b === void 0 ? void 0 : _b[`${optionLabel}`] })), showRemoveIcon && ((0, jsx_runtime_1.jsxs)("span", Object.assign({ onClick: () => onRemoveItem(item), className: `absolute right-0 p-1` }, { children: [" ", (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: showRemoveIcon, size: removeIconSize ? removeIconSize : 15 })] })))] })) }), index)) : ((0, jsx_runtime_1.jsx)("li", Object.assign({ className: `select-none ${chipClassName ? chipClassName : "list_box_chip"} ${showRemoveIcon ? "relative" : ""}` }, { children: chipTemplate ? (chipTemplate(item)) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-truncate max-w-10rem inline-block", title: typeof item === "object"
127
+ ? item[`${optionLabel}`]
128
+ : (_c = listItems === null || listItems === void 0 ? void 0 : listItems.find((x) => x.value === item)) === null || _c === void 0 ? void 0 : _c[`${optionLabel}`] }, { children: typeof item === "object"
129
+ ? item[`${optionLabel}`]
130
+ : (_d = listItems === null || listItems === void 0 ? void 0 : listItems.find((x) => x.value === item)) === null || _d === void 0 ? void 0 : _d[`${optionLabel}`] })), showRemoveIcon && ((0, jsx_runtime_1.jsxs)("span", Object.assign({ onClick: () => onRemoveItem(item), className: `${removeIconClassName}` }, { children: [" ", (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: showRemoveIcon, size: removeIconSize ? removeIconSize : 15 })] })))] })) }), index)) }));
127
131
  })) }))] })))] })) }));
128
132
  };
129
133
  exports.default = ListBoxDropdown;
@@ -9612,6 +9612,19 @@ exports.iconList = [
9612
9612
  </clipPath>
9613
9613
  </defs>
9614
9614
  </svg>
9615
+ `,
9616
+ },
9617
+ {
9618
+ name: "accounts-02",
9619
+ svg: `<svg width="19" height="20" viewBox="0 0 19 20" fill="none" xmlns="http://www.w3.org/2000/svg">
9620
+ <path d="M6.57031 2.96875H18.2891" stroke="#8190E8" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
9621
+ <path d="M6.57031 10H18.2891" stroke="#8190E8" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
9622
+ <path d="M6.57031 17.0312H18.2891" stroke="#8190E8" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
9623
+ <path d="M1.29688 1.21094H3.64062C3.64062 1.21094 4.22656 1.21094 4.22656 1.79688V4.14062C4.22656 4.14062 4.22656 4.72656 3.64062 4.72656H1.29688C1.29688 4.72656 0.710938 4.72656 0.710938 4.14062V1.79688C0.710938 1.79688 0.710938 1.21094 1.29688 1.21094Z" stroke="#8190E8" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
9624
+ <path d="M1.29688 8.24219H3.64062C3.64062 8.24219 4.22656 8.24219 4.22656 8.82812V11.1719C4.22656 11.1719 4.22656 11.7578 3.64062 11.7578H1.29688C1.29688 11.7578 0.710938 11.7578 0.710938 11.1719V8.82812C0.710938 8.82812 0.710938 8.24219 1.29688 8.24219Z" stroke="#8190E8" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
9625
+ <path d="M1.29688 15.2734H3.64062C3.64062 15.2734 4.22656 15.2734 4.22656 15.8594V18.2031C4.22656 18.2031 4.22656 18.7891 3.64062 18.7891H1.29688C1.29688 18.7891 0.710938 18.7891 0.710938 18.2031V15.8594C0.710938 15.8594 0.710938 15.2734 1.29688 15.2734Z" stroke="#8190E8" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
9626
+ </svg>
9627
+
9615
9628
  `,
9616
9629
  },
9617
9630
  {
@@ -11064,6 +11077,34 @@ exports.iconList = [
11064
11077
  </clipPath>
11065
11078
  </defs>
11066
11079
  </svg>
11080
+ `,
11081
+ },
11082
+ {
11083
+ name: "lightning-02-mandatory",
11084
+ svg: `<svg width="11" height="12" viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg">
11085
+ <path d="M7.31222 0.166656H3.95481C3.85011 0.166656 3.79776 0.166656 3.75155 0.182597C3.71068 0.196694 3.67345 0.219701 3.64257 0.249951C3.60764 0.284159 3.58423 0.330981 3.53741 0.424623L1.08741 5.32462C0.975593 5.54825 0.919687 5.66006 0.933115 5.75095C0.944841 5.83032 0.988741 5.90135 1.05448 5.94733C1.12977 5.99999 1.25478 5.99999 1.50481 5.99999H5.12472L3.37472 11.8333L10.4874 4.45725C10.7273 4.2084 10.8473 4.08397 10.8543 3.9775C10.8604 3.88509 10.8223 3.79527 10.7515 3.73551C10.67 3.66666 10.4971 3.66666 10.1514 3.66666H5.99972L7.31222 0.166656Z" fill="#EAAA08"/>
11086
+ </svg>
11087
+ `,
11088
+ },
11089
+ {
11090
+ name: "lightning-02-invalid",
11091
+ svg: `<svg width="11" height="12" viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg">
11092
+ <path d="M7.31222 0.166656H3.95481C3.85011 0.166656 3.79776 0.166656 3.75155 0.182597C3.71068 0.196694 3.67345 0.219701 3.64257 0.249951C3.60764 0.284159 3.58423 0.330981 3.53741 0.424623L1.08741 5.32462C0.975593 5.54825 0.919687 5.66006 0.933115 5.75095C0.944841 5.83032 0.988741 5.90135 1.05448 5.94733C1.12977 5.99999 1.25478 5.99999 1.50481 5.99999H5.12472L3.37472 11.8333L10.4874 4.45725C10.7273 4.2084 10.8473 4.08397 10.8543 3.9775C10.8604 3.88509 10.8223 3.79527 10.7515 3.73551C10.67 3.66666 10.4971 3.66666 10.1514 3.66666H5.99972L7.31222 0.166656Z" fill="#F04438"/>
11093
+ </svg>
11094
+ `,
11095
+ },
11096
+ {
11097
+ name: "lightning-02-valid",
11098
+ svg: `<svg width="11" height="12" viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg">
11099
+ <path d="M7.31222 0.166656H3.95481C3.85011 0.166656 3.79776 0.166656 3.75155 0.182597C3.71068 0.196694 3.67345 0.219701 3.64257 0.249951C3.60764 0.284159 3.58423 0.330981 3.53741 0.424623L1.08741 5.32462C0.975593 5.54825 0.919687 5.66006 0.933115 5.75095C0.944841 5.83032 0.988741 5.90135 1.05448 5.94733C1.12977 5.99999 1.25478 5.99999 1.50481 5.99999H5.12472L3.37472 11.8333L10.4874 4.45725C10.7273 4.2084 10.8473 4.08397 10.8543 3.9775C10.8604 3.88509 10.8223 3.79527 10.7515 3.73551C10.67 3.66666 10.4971 3.66666 10.1514 3.66666H5.99972L7.31222 0.166656Z" fill="#12B76A"/>
11100
+ </svg>
11101
+ `,
11102
+ },
11103
+ {
11104
+ name: "org-04",
11105
+ svg: `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
11106
+ <path d="M1.5 16.5H16.5M4 14V7.33333M7.33333 14V7.33333M10.6667 14V7.33333M14 14V7.33333M15.6667 4.83333L9.35333 0.887495C9.22515 0.807381 9.16106 0.767325 9.09233 0.751706C9.03155 0.737896 8.96845 0.737896 8.90767 0.751706C8.83894 0.767325 8.77485 0.807381 8.64667 0.887494L2.33333 4.83333H15.6667Z" stroke="#8190E8" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
11107
+ </svg>
11067
11108
  `,
11068
11109
  },
11069
11110
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.3.70",
3
+ "version": "6.3.71",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",