sccoreui 5.9.24 → 5.9.26

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
@@ -768,11 +768,18 @@ button[aria-expanded="true"] {
768
768
  /// Custon treeDropdownSelect style end /////////////////
769
769
 
770
770
  /////// Custom list_box_dropdown ///////////
771
+
772
+ .icon-30x30 {
773
+ height: 30px !important;
774
+ width: 30px !important;
775
+ }
776
+
771
777
  .list_box_dropdown {
772
778
  .p-listbox-header {
773
779
  padding: 12px !important;
774
780
  border-top: 1px solid var(--gray-200);
775
781
  }
782
+
776
783
 
777
784
  ul.p-listbox-list {
778
785
  padding: 6px;
@@ -2026,3 +2033,91 @@ button[aria-expanded="true"] {
2026
2033
 
2027
2034
  }
2028
2035
  }
2036
+
2037
+
2038
+ .icon-24x24 {
2039
+ width: 24px;
2040
+ height: 24px;
2041
+ }
2042
+
2043
+
2044
+ // loader styles
2045
+ .loader-wrapper {
2046
+ width: 60px;
2047
+ height: 60px;
2048
+ top: 45%;
2049
+ left: 45%;
2050
+ transform: translate(-45%, -50%);
2051
+ border-radius: 50%;
2052
+ background-color: #fff;
2053
+ position: relative;
2054
+ transform: rotate(45deg);
2055
+ box-sizing: border-box;
2056
+ display: flex;
2057
+ justify-content: center;
2058
+ align-items: center;
2059
+
2060
+
2061
+ /* HTML: <div class="loader"></div> */
2062
+ .loader-jobs {
2063
+ width: 35px;
2064
+ aspect-ratio: 1;
2065
+ border-radius: 50%;
2066
+ background: radial-gradient(farthest-side, var(--primary-500) 94%, #0000)
2067
+ top/5px 5px no-repeat,
2068
+ conic-gradient(#0000 5%, var(--primary-500));
2069
+ -webkit-mask: radial-gradient(
2070
+ farthest-side,
2071
+ #0000 calc(100% - 5px),
2072
+ #000 0
2073
+ );
2074
+ animation: l13 1s infinite linear;
2075
+ }
2076
+ @keyframes l13 {
2077
+ 100% {
2078
+ transform: rotate(1turn);
2079
+ }
2080
+ }
2081
+
2082
+ @keyframes gradient {
2083
+ 0% {
2084
+ background-position: 100% 50%;
2085
+ }
2086
+ 50% {
2087
+ background-position: 50% 70%;
2088
+ }
2089
+ 100% {
2090
+ background-position: 70% 100%;
2091
+ }
2092
+ }
2093
+
2094
+ }
2095
+
2096
+ .loader-main {
2097
+ width: 48px;
2098
+ height: 48px;
2099
+ border-radius: 50%;
2100
+ position: relative;
2101
+ animation: rotate 1s linear infinite;
2102
+ }
2103
+ .loader-main::before {
2104
+ content: "";
2105
+ box-sizing: border-box;
2106
+ position: absolute;
2107
+ inset: 0px;
2108
+ border-radius: 50%;
2109
+ border: 3px solid var(--primary-500);
2110
+ animation: prixClipFix 2s linear infinite ;
2111
+ }
2112
+
2113
+ @keyframes rotate {
2114
+ 100% {transform: rotate(360deg)}
2115
+ }
2116
+
2117
+ @keyframes prixClipFix {
2118
+ 0% {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
2119
+ 25% {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
2120
+ 50% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
2121
+ 75% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}
2122
+ 100% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}
2123
+ }
@@ -84,9 +84,9 @@ function Sort() {
84
84
  setIsApplyDisable(true);
85
85
  }
86
86
  }, [sortValue, sortBy]);
87
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `cursor-pointer p-1 sc_icon_hover flex align-items-center border-round-lg ${isOverlayOpened || featureDetails.sort.isSortable
87
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `cursor-pointer sc_icon_hover flex align-items-center border-round icon-24x24 mr-2 ${isOverlayOpened || featureDetails.sort.isSortable
88
88
  ? "bg-primary-50"
89
- : ""}` }, { children: [featureDetails.sort.isSortable && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: "flex align-items-center text-primary-400 px-1" }, { children: `Selected` }))), (0, jsx_runtime_1.jsx)(button_1.Button, { text: true, onClick: (event) => onClickSort(event), icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "switch-vertical-02", size: 20, color: isOverlayOpened || featureDetails.sort.isSortable
89
+ : ""}` }, { children: [featureDetails.sort.isSortable && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: "flex align-items-center text-primary-400 px-1" }, { children: `Selected` }))), (0, jsx_runtime_1.jsx)(button_1.Button, { className: "icon-24x24 hover:bg-primary-50", text: true, onClick: (event) => onClickSort(event), icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "switch-vertical-02", size: 16, color: isOverlayOpened || featureDetails.sort.isSortable
90
90
  ? "text-gray-700"
91
91
  : "text-gray-700" }) })] })), (0, jsx_runtime_1.jsxs)(overlaypanel_1.OverlayPanel, Object.assign({ ref: showShort, onShow: () => setIsOverlayOpened(true), onHide: () => setIsOverlayOpened(false), className: "w-18rem mt-2" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "p-4 text-lg font-semibold line-height-3 text-gray-900" }, { children: "Column Sorting" })), (0, jsx_runtime_1.jsx)(divider_1.Divider, { className: "m-0" }), (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: "pl-0 m-1 h-10rem overflow-auto" }, { children: columnData === null || columnData === void 0 ? void 0 : columnData.map((eachColumn, index) => {
92
92
  if (eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.isSortable) {
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  function LoadingComponent() {
5
- return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "text-red" }, { children: "...Loading" })) }));
5
+ return (
6
+ // <p className="text-red">...Loading</p>
7
+ (0, jsx_runtime_1.jsx)("div", { className: "loader-main" }));
6
8
  }
7
9
  exports.default = LoadingComponent;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from "react";
1
+ import { ReactElement, ReactNode } from "react";
2
2
  export interface City {
3
3
  name: string;
4
4
  code: string;
@@ -112,7 +112,7 @@ export interface NumberFieldProps {
112
112
  disabled?: boolean;
113
113
  isLoading?: boolean;
114
114
  inputClassName?: string;
115
- icon?: string;
115
+ icon?: string | ReactNode;
116
116
  iconPos?: string;
117
117
  minFractionDigits?: number;
118
118
  maxFractionDigits?: number;
@@ -153,6 +153,8 @@ export interface DropDownFieldProps {
153
153
  panelStyle?: any;
154
154
  isLoading?: boolean;
155
155
  showClear?: boolean;
156
+ emptyMessage?: string;
157
+ panelClassName?: string;
156
158
  }
157
159
  export interface MultiSelectProps {
158
160
  errors: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "5.9.24",
3
+ "version": "5.9.26",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",