labsense-ui-kit 1.1.65 → 1.1.67

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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SVGProps } from '..';
3
+ declare const Web: React.FC<SVGProps>;
4
+ export default Web;
@@ -121,5 +121,6 @@ export { default as UnPinned } from './UnPinned';
121
121
  export { default as UpArrow } from './UpArrow';
122
122
  export { default as Video } from './Video';
123
123
  export { default as Wallet } from './Wallet';
124
+ export { default as Web } from './Web';
124
125
  export { default as WiFiCam } from './WiFiCam';
125
126
  export { default as Zapper } from './Zapper';
@@ -9,7 +9,7 @@ export interface SVGProps {
9
9
  color: string;
10
10
  weight: string;
11
11
  }
12
- export declare type IconNames = 'Add_1' | 'Add_2' | 'AddProfile' | 'AI_Web' | 'App' | 'Back' | 'Bin' | 'Bulb' | 'Business' | 'Calendar' | 'CCTV_1' | 'CCTV_2' | 'Circle' | 'CircularEdit' | 'CircularFilledWarning' | 'CircularPause' | 'CircularPlay' | 'CircularWarning' | 'Client' | 'Close' | 'CloseCircle' | 'CloseEye' | 'Copy' | 'CPU' | 'Cube3D' | 'Cyber' | 'DiagonalArrow' | 'Directory' | 'Disk' | 'DocumentBadge' | 'DownArrow' | 'Download' | 'Email' | 'ExitFullScreen' | 'FaceRecognition' | 'OpenEye' | 'FilesBox' | 'FilledCircle' | 'FilledCircleTick' | 'FilledPin' | 'Filter_1' | 'Filter_2' | 'Forward_10_Sec' | 'Forward' | 'FPS' | 'Free' | 'FullScreen' | 'Grid_2x2_Hollow' | 'Grid_2x2' | 'Grid_3x3' | 'Grid_4x4' | 'Grid_5x5' | 'Hazard' | 'History' | 'Hexagon' | 'Information' | 'IP' | 'Key' | 'KeyDown' | 'KnobController' | 'LedBulb' | 'LeftArrow' | 'Letter' | 'Live' | 'Lock' | 'Logout' | 'Maps' | 'Media' | 'Monitor' | 'MediumVolume' | 'Mute' | 'MuteVolume' | 'Menu' | 'NetworkStorage' | 'NFS_Directory' | 'NoCam' | 'Node' | 'NoStorage' | 'Notifications' | 'OpenBin' | 'OpenEye' | 'PasswordLock' | 'Pause' | 'Phone' | 'Pin_2' | 'Pin' | 'Play_1' | 'Play_2' | 'Playback' | 'Power' | 'PremiumBadge' | 'ProcessingBulb' | 'Profile_1' | 'Profile_2' | 'Profile_3' | 'Recording_1' | 'Recording_2' | 'Rectangle' | 'Retry' | 'Return' | 'Rewind_10_Sec' | 'RightArrow' | 'ROI' | 'RunAway' | 'SandTimer' | 'Search' | 'Settings' | 'Shield' | 'SlantLine' | 'SquareEdit' | 'SquareTick' | 'StorageDisks' | 'Tag' | 'Team' | 'ThreeDots' | 'ThumbsUp' | 'Tick' | 'Tools' | 'TriangularFilledWarning' | 'UnPinned' | 'UpArrow' | 'Video' | 'FullVolume' | 'Wallet' | 'WiFiCam' | 'Zapper';
12
+ export declare type IconNames = 'Add_1' | 'Add_2' | 'AddProfile' | 'AI_Web' | 'App' | 'Back' | 'Bin' | 'Bulb' | 'Business' | 'Calendar' | 'CCTV_1' | 'CCTV_2' | 'Circle' | 'CircularEdit' | 'CircularFilledWarning' | 'CircularPause' | 'CircularPlay' | 'CircularWarning' | 'Client' | 'Close' | 'CloseCircle' | 'CloseEye' | 'Copy' | 'CPU' | 'Cube3D' | 'Cyber' | 'DiagonalArrow' | 'Directory' | 'Disk' | 'DocumentBadge' | 'DownArrow' | 'Download' | 'Email' | 'ExitFullScreen' | 'FaceRecognition' | 'OpenEye' | 'FilesBox' | 'FilledCircle' | 'FilledCircleTick' | 'FilledPin' | 'Filter_1' | 'Filter_2' | 'Forward_10_Sec' | 'Forward' | 'FPS' | 'Free' | 'FullScreen' | 'Grid_2x2_Hollow' | 'Grid_2x2' | 'Grid_3x3' | 'Grid_4x4' | 'Grid_5x5' | 'Hazard' | 'History' | 'Hexagon' | 'Information' | 'IP' | 'Key' | 'KeyDown' | 'KnobController' | 'LedBulb' | 'LeftArrow' | 'Letter' | 'Live' | 'Lock' | 'Logout' | 'Maps' | 'Media' | 'Monitor' | 'MediumVolume' | 'Mute' | 'MuteVolume' | 'Menu' | 'NetworkStorage' | 'NFS_Directory' | 'NoCam' | 'Node' | 'NoStorage' | 'Notifications' | 'OpenBin' | 'OpenEye' | 'PasswordLock' | 'Pause' | 'Phone' | 'Pin_2' | 'Pin' | 'Play_1' | 'Play_2' | 'Playback' | 'Power' | 'PremiumBadge' | 'ProcessingBulb' | 'Profile_1' | 'Profile_2' | 'Profile_3' | 'Recording_1' | 'Recording_2' | 'Rectangle' | 'Retry' | 'Return' | 'Rewind_10_Sec' | 'RightArrow' | 'ROI' | 'RunAway' | 'SandTimer' | 'Search' | 'Settings' | 'Shield' | 'SlantLine' | 'SquareEdit' | 'SquareTick' | 'StorageDisks' | 'Tag' | 'Team' | 'ThreeDots' | 'ThumbsUp' | 'Tick' | 'Tools' | 'TriangularFilledWarning' | 'UnPinned' | 'UpArrow' | 'Video' | 'FullVolume' | 'Wallet' | 'Web' | 'WiFiCam' | 'Zapper';
13
13
  export interface IconProps {
14
14
  icon: IconNames;
15
15
  size?: number;
@@ -13,8 +13,6 @@ interface HeaderConfig {
13
13
  headercolor?: string;
14
14
  textcolor?: string;
15
15
  isAllSelectable?: boolean;
16
- selectrowCallback?: (checked: boolean, id?: string | number) => void;
17
- toggleAllCallback?: (checked: boolean) => void;
18
16
  headerdata: HeaderCellConfig[];
19
17
  }
20
18
  interface TableCellProps {
package/dist/index.js CHANGED
@@ -3161,6 +3161,35 @@ var Wallet = function Wallet(_ref) {
3161
3161
  }));
3162
3162
  };
3163
3163
 
3164
+ var Web = function Web(_ref) {
3165
+ var size = _ref.size,
3166
+ color = _ref.color,
3167
+ weight = _ref.weight;
3168
+ return React__default.createElement("svg", {
3169
+ width: size,
3170
+ height: size,
3171
+ strokeWidth: weight,
3172
+ viewBox: "0 0 29 30",
3173
+ fill: "none",
3174
+ xmlns: "http://www.w3.org/2000/svg"
3175
+ }, React__default.createElement("path", {
3176
+ d: "M14.4992 7.16221C11.7642 7.16221 9.03024 6.84721 6.37624 6.22521C6.10724 6.16221 5.94024 5.89421 6.00324 5.62421C6.06624 5.35621 6.32824 5.18921 6.60524 5.25121C12.3982 6.60921 18.5552 6.43821 24.2832 4.75321C24.5532 4.67721 24.8272 4.82621 24.9042 5.09121C24.9822 5.35721 24.8312 5.63421 24.5662 5.71221C21.2952 6.67421 17.9082 7.16221 14.4992 7.16221ZM24.4242 24.3622C24.3772 24.3622 24.3302 24.3552 24.2822 24.3412C17.9232 22.4702 11.0752 22.4702 4.71624 24.3412C4.44724 24.4162 4.17224 24.2682 4.09524 24.0032C4.01724 23.7372 4.16824 23.4602 4.43324 23.3822C10.9782 21.4562 18.0212 21.4562 24.5662 23.3822C24.8312 23.4602 24.9822 23.7372 24.9042 24.0032C24.8402 24.2222 24.6402 24.3622 24.4242 24.3622Z",
3177
+ fill: color
3178
+ }), React__default.createElement("path", {
3179
+ d: "M13.8878 28.6392C13.7898 28.6392 13.6928 28.6112 13.6058 28.5522C8.93883 25.3672 6.15283 20.1302 6.15283 14.5432C6.15283 10.0162 7.93383 5.75515 11.1698 2.54515C11.3668 2.34815 11.6838 2.35215 11.8768 2.54715C12.0718 2.74315 12.0698 3.06015 11.8748 3.25415C8.82983 6.27516 7.15283 10.2842 7.15283 14.5432C7.15283 19.7992 9.77583 24.7282 14.1708 27.7262C14.3988 27.8812 14.4568 28.1932 14.3018 28.4212C14.2038 28.5632 14.0468 28.6392 13.8878 28.6392ZM15.1528 28.6392C14.9938 28.6392 14.8368 28.5632 14.7398 28.4212C14.5848 28.1922 14.6428 27.8812 14.8708 27.7262C19.2658 24.7282 21.8888 19.7992 21.8888 14.5432C21.8888 9.28715 19.2658 4.35815 14.8708 1.36015C14.6428 1.20515 14.5848 0.893155 14.7398 0.665155C14.8958 0.437155 15.2078 0.381155 15.4348 0.534155C20.1018 3.71915 22.8878 8.95615 22.8878 14.5432C22.8878 20.1302 20.1018 25.3672 15.4348 28.5522C15.3488 28.6102 15.2508 28.6392 15.1528 28.6392Z",
3180
+ fill: color
3181
+ }), React__default.createElement("path", {
3182
+ d: "M14.499 28.4897C14.223 28.4897 13.999 28.2657 13.999 27.9897V1.0957C13.999 0.819703 14.223 0.595703 14.499 0.595703C14.775 0.595703 14.999 0.819703 14.999 1.0957V27.9897C14.999 28.2667 14.775 28.4897 14.499 28.4897Z",
3183
+ fill: color
3184
+ }), React__default.createElement("path", {
3185
+ d: "M28.4458 15.043H2.55176C2.27576 15.043 2.05176 14.819 2.05176 14.543C2.05176 14.267 2.27576 14.043 2.55176 14.043H28.4468C28.7228 14.043 28.9468 14.267 28.9468 14.543C28.9468 14.819 28.7228 15.043 28.4458 15.043Z",
3186
+ fill: color
3187
+ }), React__default.createElement("path", {
3188
+ d: "M14.499 29.043C6.50402 29.043 -0.000976562 22.538 -0.000976562 14.543C-0.000976562 11.022 1.27702 7.62397 3.59902 4.97797C3.78102 4.76997 4.09602 4.74997 4.30502 4.93197C4.51202 5.11397 4.53202 5.42997 4.35102 5.63797C2.19002 8.10097 0.999024 11.264 0.999024 14.543C0.999024 21.987 7.05502 28.043 14.499 28.043C21.943 28.043 27.999 21.987 27.999 14.543C27.999 7.09897 21.943 1.04297 14.499 1.04297C11.421 1.04297 8.52302 2.05097 6.12002 3.95797C5.90402 4.12997 5.59002 4.09497 5.41802 3.87697C5.24602 3.66097 5.28202 3.34697 5.49902 3.17497C8.08002 1.12597 11.192 0.0429688 14.499 0.0429688C22.494 0.0429688 28.999 6.54797 28.999 14.543C28.999 22.538 22.494 29.043 14.499 29.043Z",
3189
+ fill: color
3190
+ }));
3191
+ };
3192
+
3164
3193
  var WiFiCam = function WiFiCam(_ref) {
3165
3194
  var size = _ref.size,
3166
3195
  color = _ref.color,
@@ -3333,6 +3362,7 @@ var IconSVGs = {
3333
3362
  UpArrow: UpArrow,
3334
3363
  Video: Video,
3335
3364
  Wallet: Wallet,
3365
+ Web: Web,
3336
3366
  WiFiCam: WiFiCam,
3337
3367
  Zapper: Zapper
3338
3368
  };
@@ -6847,14 +6877,17 @@ var Table = function Table(_ref2) {
6847
6877
  var toggleSelectAll = function toggleSelectAll() {
6848
6878
  var _tableObject$toggleAl;
6849
6879
  var newState = !isAllSelected;
6850
- setIsAllSelected(newState);
6851
- tableObject.rowconfig.forEach(function (row) {
6852
- row._checked = newState;
6853
- });
6854
6880
  (_tableObject$toggleAl = tableObject.toggleAllCallback) === null || _tableObject$toggleAl === void 0 ? void 0 : _tableObject$toggleAl.call(tableObject, newState);
6855
6881
  };
6856
6882
  React.useEffect(function () {
6857
- setIsAllSelected(false);
6883
+ if (!(rowconfig !== null && rowconfig !== void 0 && rowconfig.length)) {
6884
+ setIsAllSelected(false);
6885
+ return;
6886
+ }
6887
+ var allChecked = rowconfig.every(function (row) {
6888
+ return row._checked;
6889
+ });
6890
+ setIsAllSelected(allChecked);
6858
6891
  }, [rowconfig]);
6859
6892
  return React__default.createElement(TableContainer, null, React__default.createElement(TableContent, null, React__default.createElement(TableHeader, {
6860
6893
  "$hbcolor": tableheaderconfig.headercolor,