sccoreui 6.3.88 → 6.3.90

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
@@ -1161,14 +1161,7 @@ button[aria-expanded="true"] {
1161
1161
  padding-inline: 6px 10px !important;
1162
1162
  color: var(--primary-400);
1163
1163
  background: transparent;
1164
- &.assign_value {
1165
- .p-button-label {
1166
- max-width: 120px;
1167
- white-space: nowrap;
1168
- text-overflow: ellipsis;
1169
- overflow: hidden;
1170
- }
1171
- }
1164
+
1172
1165
  &:not(.section_btn) {
1173
1166
  height: 28px;
1174
1167
  }
@@ -1196,6 +1189,28 @@ button[aria-expanded="true"] {
1196
1189
  }
1197
1190
  }
1198
1191
 
1192
+ .p-button.data_label {
1193
+ color: var(--gray-600);
1194
+ background-color: transparent;
1195
+ display: flex;
1196
+ gap: 4px;
1197
+ svg {
1198
+ path {
1199
+ stroke: var(--gray-700);
1200
+ }
1201
+ }
1202
+
1203
+ &:hover {
1204
+ background-color: var(--gray-200);
1205
+ color: var(--gray-700);
1206
+ }
1207
+ .p-button-label {
1208
+ white-space: nowrap;
1209
+ text-overflow: ellipsis;
1210
+ overflow: hidden;
1211
+ }
1212
+ }
1213
+
1199
1214
  .list_box_chips {
1200
1215
  display: flex;
1201
1216
  flex-wrap: wrap;
@@ -136,10 +136,7 @@ const ListBoxDropdown = (props) => {
136
136
  ? emptyFilterMessage
137
137
  : "No Results Found", emptyMessage: emptyMessage ? emptyMessage : "No Data Found" }), footeTemplate && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: footeTemplate() })] }))),
138
138
  },
139
- ] }), !showChips ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !dataLabel ? ((0, jsx_runtime_1.jsx)(button_1.Button, { type: "button", className: `list_box_btn ${type === "sectionHeader" ? "section_btn" : ""}`, link: link ? true : false, icon: labelIcon ? labelIcon : "", size: labelIconSize ? labelIconSize : "", iconPos: labelIconPos ? labelIconPos : "", label: label, onClick: (event) => optionsMenuRef.current.toggle(event), title: label })) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ onClick: (event) => optionsMenuRef.current.toggle(event), title: label, className: "listbox_label" }, { children: dataLabel }))) })) : ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-wrap gap-2" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { type: "button",
140
- // className={`list_box_button focus:shadow-none p-0 h-max h-auto mx-2`}
141
- // link={link ? true : false}
142
- 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" : ""}`, title: label }), (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: `list_box_chips ${chipsParentClassName}` }, { children: selectedItems &&
139
+ ] }), !showChips ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !dataLabel ? ((0, jsx_runtime_1.jsx)(button_1.Button, { type: "button", className: `list_box_btn ${type === "sectionHeader" ? "section_btn" : ""}`, link: link ? true : false, icon: labelIcon ? labelIcon : "", size: labelIconSize ? labelIconSize : "", iconPos: labelIconPos ? labelIconPos : "", label: label, onClick: (event) => optionsMenuRef.current.toggle(event), title: label })) : ((0, jsx_runtime_1.jsx)(button_1.Button, { type: "button", 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: "data_label", title: dataLabel })) })) : ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-wrap gap-2" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { type: "button", className: `list_box_button focus:shadow-none p-0 h-max h-auto mx-2`, link: link ? true : false, 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, title: label }), (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: `list_box_chips ${chipsParentClassName}` }, { children: selectedItems &&
143
140
  (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.map((item, index) => {
144
141
  var _a, _b, _c, _d;
145
142
  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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.3.88",
3
+ "version": "6.3.90",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,101 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const FormulaCoponent_1 = tslib_1.__importDefault(require("../../components/formula-template/FormulaCoponent"));
7
- const FormulaTemplatePage = () => {
8
- const inputValue = `[[{"id": "660ab8748140c009b0af99a2","value": "Test1","code": "34sdf","price": 46}]] + 8 + [[{"id": "660abaee8140c009b0afa3ef","value": "Test2","code": "t34sdf","price": 4}]] + 86 + 7647`;
9
- const [formulaValue, setFormulaValue] = (0, react_1.useState)(inputValue);
10
- const [conditionValue, setConditionValue] = (0, react_1.useState)(1);
11
- const options = [
12
- {
13
- label: "Increase by value",
14
- value: 1,
15
- optionType: "INCREASE_BY_VALUE",
16
- },
17
- {
18
- label: "Decrease by value",
19
- value: 2,
20
- optionType: "DECREASE_BY_VALUE",
21
- },
22
- {
23
- label: "Increase by percentage",
24
- value: 3,
25
- optionType: "INCREASE_BY_PERCENTAGE",
26
- },
27
- {
28
- label: "Decrease by percentage",
29
- value: 4,
30
- optionType: "DECREASE_BY_PERCENTAGE",
31
- },
32
- {
33
- label: "Manual",
34
- value: 5,
35
- optionType: "MANUAL",
36
- },
37
- {
38
- label: "Calculation",
39
- value: 6,
40
- optionType: "CALCULATION",
41
- },
42
- ];
43
- const attributes = [
44
- {
45
- id: "660ab8748140c009b0af99a2",
46
- value: "Test1",
47
- code: "34sdf",
48
- price: 46,
49
- },
50
- {
51
- id: "660abaee8140c009b0afa3ef",
52
- value: "Test2",
53
- code: "t34sdf",
54
- price: 4,
55
- },
56
- {
57
- id: "660ab8b68140c009b0af99e5",
58
- value: "Test3",
59
- code: "dshbf",
60
- price: 6,
61
- },
62
- {
63
- id: "660abace8140c009b0afa38a",
64
- value: "Test4",
65
- code: "323sdf",
66
- price: 56,
67
- },
68
- {
69
- id: "660abb0e8140c009b0afa445",
70
- value: "Test5",
71
- code: "30edf",
72
- price: 44,
73
- },
74
- {
75
- id: "660ac2ad8140c009b0afb62a",
76
- value: "Test6",
77
- code: "343sdf",
78
- price: 36,
79
- },
80
- {
81
- id: "660b9bf61419c4260d0dece0",
82
- value: "Test11",
83
- code: "34sdf",
84
- price: 465,
85
- },
86
- ];
87
- return ((0, jsx_runtime_1.jsx)(FormulaCoponent_1.default, { onConditionChange: (payload) => {
88
- setConditionValue(payload.value);
89
- }, conditionValue: conditionValue, inputValue: null, onChange: (e) => {
90
- console.log(e);
91
- }, formulaValue: formulaValue, formulaElemectPlaceholder: "Configure Value", onSaveFormula: (value) => setFormulaValue(value), formulaOperators: [
92
- "addition",
93
- "subtraction",
94
- "multiplication",
95
- "division",
96
- "percentile",
97
- "openBracket",
98
- "closeBracket",
99
- ], fieldFilterEmptyMessage: "No Results Found!", fieldFilterOption: "name", fieldOptions: attributes, fieldOptionTemplateTitle: "Price Fields", fieldOptionFilterPlaceholder: "Search by name or code", fieldFilter: true, options: options }));
100
- };
101
- exports.default = FormulaTemplatePage;
@@ -1,2 +0,0 @@
1
- declare const FormulaTemplatePage: () => import("react/jsx-runtime").JSX.Element;
2
- export default FormulaTemplatePage;