funda-ui 4.7.615 → 4.7.620

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/Date/index.js CHANGED
@@ -5446,6 +5446,10 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
5446
5446
  e.preventDefault();
5447
5447
  e.stopPropagation(); // Avoid triggering other inputs
5448
5448
 
5449
+ // If disabled or readOnly, the operations are not performed
5450
+ if (disabled || readOnly) {
5451
+ return;
5452
+ }
5449
5453
  e.target.select();
5450
5454
  resetDefauleValueExist();
5451
5455
 
@@ -5704,12 +5708,16 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
5704
5708
  tabIndex: -1,
5705
5709
  href: "#",
5706
5710
  className: (0,cls.combinedCls)('date2d__control-tools__close', {
5707
- 'd-none': HIDE_CLEAR_BTN_ENABLED || !dateDefaultValueExist
5711
+ 'd-none': HIDE_CLEAR_BTN_ENABLED || !dateDefaultValueExist || disabled || readOnly
5708
5712
  }),
5709
5713
  onClick: function onClick(e) {
5710
5714
  e.preventDefault();
5711
5715
  e.stopPropagation(); // Avoid triggering pop-ups
5712
5716
 
5717
+ // If disabled or readOnly, the operations are not performed
5718
+ if (disabled || readOnly) {
5719
+ return;
5720
+ }
5713
5721
  clearAll();
5714
5722
  onClear === null || onClear === void 0 ? void 0 : onClear(getFullTimeData(''));
5715
5723
  }
@@ -5728,6 +5736,10 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
5728
5736
  e.preventDefault();
5729
5737
  e.stopPropagation(); // Avoid triggering pop-ups
5730
5738
 
5739
+ // If disabled or readOnly, the operations are not performed
5740
+ if (disabled || readOnly) {
5741
+ return;
5742
+ }
5731
5743
  handleShow();
5732
5744
  }
5733
5745
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("svg", {
@@ -5798,7 +5810,7 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
5798
5810
  onFocus: handleFocus,
5799
5811
  onBlur: handleBlur,
5800
5812
  onKeyDown: handleKeyPressed,
5801
- onClick: enableEntireAreaPopup ? handleShow : function () {}
5813
+ onClick: enableEntireAreaPopup && !disabled && !readOnly ? handleShow : function () {}
5802
5814
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
5803
5815
  className: "date2d__control"
5804
5816
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((cjs_default()), _extends({
@@ -5810,6 +5822,8 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
5810
5822
  externalRef.current = node;
5811
5823
  }
5812
5824
  },
5825
+ disabled: disabled,
5826
+ readOnly: readOnly,
5813
5827
  tabIndex: -1,
5814
5828
  type: "text",
5815
5829
  inputMode: "none",
@@ -6135,6 +6149,10 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
6135
6149
  langMonthsFull: _langMonthsFull,
6136
6150
  langToday: _langToday,
6137
6151
  onChangeDate: function onChangeDate(e, currentData) {
6152
+ // If disabled or readOnly, the operations are not performed
6153
+ if (disabled || readOnly) {
6154
+ return;
6155
+ }
6138
6156
  resetDefauleValueExist();
6139
6157
 
6140
6158
  //
@@ -6153,6 +6171,10 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
6153
6171
  resetPopupBlurStatus();
6154
6172
  },
6155
6173
  onChangeToday: function onChangeToday(currentData) {
6174
+ // If disabled or readOnly, the operations are not performed
6175
+ if (disabled || readOnly) {
6176
+ return;
6177
+ }
6156
6178
  resetDefauleValueExist();
6157
6179
 
6158
6180
  //
@@ -6221,6 +6243,11 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
6221
6243
  tabIndex: -1,
6222
6244
  onClick: function onClick(e) {
6223
6245
  e.preventDefault();
6246
+
6247
+ // If disabled or readOnly, the operations are not performed
6248
+ if (disabled || readOnly) {
6249
+ return;
6250
+ }
6224
6251
  resetDefauleValueExist();
6225
6252
 
6226
6253
  //
@@ -6258,6 +6285,11 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
6258
6285
  tabIndex: -1,
6259
6286
  onClick: function onClick(e) {
6260
6287
  e.preventDefault();
6288
+
6289
+ // If disabled or readOnly, the operations are not performed
6290
+ if (disabled || readOnly) {
6291
+ return;
6292
+ }
6261
6293
  resetDefauleValueExist();
6262
6294
 
6263
6295
  //
@@ -6295,6 +6327,11 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
6295
6327
  tabIndex: -1,
6296
6328
  onClick: function onClick(e) {
6297
6329
  e.preventDefault();
6330
+
6331
+ // If disabled or readOnly, the operations are not performed
6332
+ if (disabled || readOnly) {
6333
+ return;
6334
+ }
6298
6335
  resetDefauleValueExist();
6299
6336
 
6300
6337
  //
@@ -5446,6 +5446,10 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
5446
5446
  e.preventDefault();
5447
5447
  e.stopPropagation(); // Avoid triggering other inputs
5448
5448
 
5449
+ // If disabled or readOnly, the operations are not performed
5450
+ if (disabled || readOnly) {
5451
+ return;
5452
+ }
5449
5453
  e.target.select();
5450
5454
  resetDefauleValueExist();
5451
5455
 
@@ -5704,12 +5708,16 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
5704
5708
  tabIndex: -1,
5705
5709
  href: "#",
5706
5710
  className: (0,cls.combinedCls)('date2d__control-tools__close', {
5707
- 'd-none': HIDE_CLEAR_BTN_ENABLED || !dateDefaultValueExist
5711
+ 'd-none': HIDE_CLEAR_BTN_ENABLED || !dateDefaultValueExist || disabled || readOnly
5708
5712
  }),
5709
5713
  onClick: function onClick(e) {
5710
5714
  e.preventDefault();
5711
5715
  e.stopPropagation(); // Avoid triggering pop-ups
5712
5716
 
5717
+ // If disabled or readOnly, the operations are not performed
5718
+ if (disabled || readOnly) {
5719
+ return;
5720
+ }
5713
5721
  clearAll();
5714
5722
  onClear === null || onClear === void 0 ? void 0 : onClear(getFullTimeData(''));
5715
5723
  }
@@ -5728,6 +5736,10 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
5728
5736
  e.preventDefault();
5729
5737
  e.stopPropagation(); // Avoid triggering pop-ups
5730
5738
 
5739
+ // If disabled or readOnly, the operations are not performed
5740
+ if (disabled || readOnly) {
5741
+ return;
5742
+ }
5731
5743
  handleShow();
5732
5744
  }
5733
5745
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("svg", {
@@ -5798,7 +5810,7 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
5798
5810
  onFocus: handleFocus,
5799
5811
  onBlur: handleBlur,
5800
5812
  onKeyDown: handleKeyPressed,
5801
- onClick: enableEntireAreaPopup ? handleShow : function () {}
5813
+ onClick: enableEntireAreaPopup && !disabled && !readOnly ? handleShow : function () {}
5802
5814
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
5803
5815
  className: "date2d__control"
5804
5816
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((cjs_default()), _extends({
@@ -5810,6 +5822,8 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
5810
5822
  externalRef.current = node;
5811
5823
  }
5812
5824
  },
5825
+ disabled: disabled,
5826
+ readOnly: readOnly,
5813
5827
  tabIndex: -1,
5814
5828
  type: "text",
5815
5829
  inputMode: "none",
@@ -6135,6 +6149,10 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
6135
6149
  langMonthsFull: _langMonthsFull,
6136
6150
  langToday: _langToday,
6137
6151
  onChangeDate: function onChangeDate(e, currentData) {
6152
+ // If disabled or readOnly, the operations are not performed
6153
+ if (disabled || readOnly) {
6154
+ return;
6155
+ }
6138
6156
  resetDefauleValueExist();
6139
6157
 
6140
6158
  //
@@ -6153,6 +6171,10 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
6153
6171
  resetPopupBlurStatus();
6154
6172
  },
6155
6173
  onChangeToday: function onChangeToday(currentData) {
6174
+ // If disabled or readOnly, the operations are not performed
6175
+ if (disabled || readOnly) {
6176
+ return;
6177
+ }
6156
6178
  resetDefauleValueExist();
6157
6179
 
6158
6180
  //
@@ -6221,6 +6243,11 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
6221
6243
  tabIndex: -1,
6222
6244
  onClick: function onClick(e) {
6223
6245
  e.preventDefault();
6246
+
6247
+ // If disabled or readOnly, the operations are not performed
6248
+ if (disabled || readOnly) {
6249
+ return;
6250
+ }
6224
6251
  resetDefauleValueExist();
6225
6252
 
6226
6253
  //
@@ -6258,6 +6285,11 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
6258
6285
  tabIndex: -1,
6259
6286
  onClick: function onClick(e) {
6260
6287
  e.preventDefault();
6288
+
6289
+ // If disabled or readOnly, the operations are not performed
6290
+ if (disabled || readOnly) {
6291
+ return;
6292
+ }
6261
6293
  resetDefauleValueExist();
6262
6294
 
6263
6295
  //
@@ -6295,6 +6327,11 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
6295
6327
  tabIndex: -1,
6296
6328
  onClick: function onClick(e) {
6297
6329
  e.preventDefault();
6330
+
6331
+ // If disabled or readOnly, the operations are not performed
6332
+ if (disabled || readOnly) {
6333
+ return;
6334
+ }
6298
6335
  resetDefauleValueExist();
6299
6336
 
6300
6337
  //
@@ -638,6 +638,11 @@ const Date = forwardRef((props: DateProps, externalRef: any) => {
638
638
  e.preventDefault();
639
639
  e.stopPropagation(); // Avoid triggering other inputs
640
640
 
641
+ // If disabled or readOnly, the operations are not performed
642
+ if (disabled || readOnly) {
643
+ return;
644
+ }
645
+
641
646
  e.target.select();
642
647
 
643
648
 
@@ -949,12 +954,17 @@ const Date = forwardRef((props: DateProps, externalRef: any) => {
949
954
  className={combinedCls(
950
955
  'date2d__control-tools__close',
951
956
  {
952
- 'd-none': HIDE_CLEAR_BTN_ENABLED || !dateDefaultValueExist
957
+ 'd-none': HIDE_CLEAR_BTN_ENABLED || !dateDefaultValueExist || disabled || readOnly
953
958
  }
954
959
  )} onClick={(e: React.MouseEvent) => {
955
960
  e.preventDefault();
956
961
  e.stopPropagation(); // Avoid triggering pop-ups
957
962
 
963
+ // If disabled or readOnly, the operations are not performed
964
+ if (disabled || readOnly) {
965
+ return;
966
+ }
967
+
958
968
  clearAll();
959
969
  onClear?.(getFullTimeData(''));
960
970
  }}
@@ -968,6 +978,11 @@ const Date = forwardRef((props: DateProps, externalRef: any) => {
968
978
  e.preventDefault();
969
979
  e.stopPropagation(); // Avoid triggering pop-ups
970
980
 
981
+ // If disabled or readOnly, the operations are not performed
982
+ if (disabled || readOnly) {
983
+ return;
984
+ }
985
+
971
986
  handleShow();
972
987
  }}
973
988
  >
@@ -1027,7 +1042,7 @@ const Date = forwardRef((props: DateProps, externalRef: any) => {
1027
1042
  onFocus={handleFocus}
1028
1043
  onBlur={handleBlur}
1029
1044
  onKeyDown={handleKeyPressed}
1030
- onClick={enableEntireAreaPopup ? handleShow : () => {}}
1045
+ onClick={enableEntireAreaPopup && !disabled && !readOnly ? handleShow : () => {}}
1031
1046
 
1032
1047
  >
1033
1048
 
@@ -1042,6 +1057,8 @@ const Date = forwardRef((props: DateProps, externalRef: any) => {
1042
1057
  externalRef.current = node;
1043
1058
  }
1044
1059
  }}
1060
+ disabled={disabled}
1061
+ readOnly={readOnly}
1045
1062
  tabIndex={-1}
1046
1063
  type="text"
1047
1064
  inputMode="none"
@@ -1474,6 +1491,11 @@ const Date = forwardRef((props: DateProps, externalRef: any) => {
1474
1491
  langMonthsFull={_langMonthsFull}
1475
1492
  langToday={_langToday}
1476
1493
  onChangeDate={(e: any, currentData: any) => {
1494
+ // If disabled or readOnly, the operations are not performed
1495
+ if (disabled || readOnly) {
1496
+ return;
1497
+ }
1498
+
1477
1499
  resetDefauleValueExist();
1478
1500
 
1479
1501
  //
@@ -1494,6 +1516,11 @@ const Date = forwardRef((props: DateProps, externalRef: any) => {
1494
1516
 
1495
1517
  }}
1496
1518
  onChangeToday={(currentData: any) => {
1519
+ // If disabled or readOnly, the operations are not performed
1520
+ if (disabled || readOnly) {
1521
+ return;
1522
+ }
1523
+
1497
1524
  resetDefauleValueExist();
1498
1525
 
1499
1526
  //
@@ -1579,6 +1606,12 @@ const Date = forwardRef((props: DateProps, externalRef: any) => {
1579
1606
  tabIndex={-1}
1580
1607
  onClick={(e: React.MouseEvent) => {
1581
1608
  e.preventDefault();
1609
+
1610
+ // If disabled or readOnly, the operations are not performed
1611
+ if (disabled || readOnly) {
1612
+ return;
1613
+ }
1614
+
1582
1615
  resetDefauleValueExist();
1583
1616
 
1584
1617
  //
@@ -1634,6 +1667,12 @@ const Date = forwardRef((props: DateProps, externalRef: any) => {
1634
1667
  tabIndex={-1}
1635
1668
  onClick={(e: React.MouseEvent) => {
1636
1669
  e.preventDefault();
1670
+
1671
+ // If disabled or readOnly, the operations are not performed
1672
+ if (disabled || readOnly) {
1673
+ return;
1674
+ }
1675
+
1637
1676
  resetDefauleValueExist();
1638
1677
 
1639
1678
  //
@@ -1692,6 +1731,12 @@ const Date = forwardRef((props: DateProps, externalRef: any) => {
1692
1731
  tabIndex={-1}
1693
1732
  onClick={(e: React.MouseEvent) => {
1694
1733
  e.preventDefault();
1734
+
1735
+ // If disabled or readOnly, the operations are not performed
1736
+ if (disabled || readOnly) {
1737
+ return;
1738
+ }
1739
+
1695
1740
  resetDefauleValueExist();
1696
1741
 
1697
1742
  //
package/package.json CHANGED
@@ -1,45 +1 @@
1
- {
2
- "author": "UIUX Lab",
3
- "email": "uiuxlab@gmail.com",
4
- "name": "funda-ui",
5
- "version": "4.7.615",
6
- "description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/xizon/funda-ui.git"
10
- },
11
- "scripts": {
12
- "test": "echo \"Error: no test specified\" && exit 1"
13
- },
14
- "keywords": [
15
- "bootstrap",
16
- "react-bootstrap",
17
- "react-components",
18
- "components",
19
- "components-react",
20
- "react-bootstrap-components",
21
- "react",
22
- "funda-ui",
23
- "fundaui",
24
- "uikit",
25
- "ui-kit",
26
- "ui-components"
27
- ],
28
- "bugs": {
29
- "url": "https://github.com/xizon/funda-ui/issues"
30
- },
31
- "homepage": "https://github.com/xizon/funda-ui#readme",
32
- "main": "all.js",
33
- "license": "MIT",
34
- "dependencies": {
35
- "react": "^18.2.0",
36
- "react-dom": "^18.2.0"
37
- },
38
- "types": "all.d.ts",
39
- "publishConfig": {
40
- "directory": "lib"
41
- },
42
- "directories": {
43
- "lib": "lib"
44
- }
45
- }
1
+ {"author":"UIUX Lab","email":"uiuxlab@gmail.com","name":"funda-ui","version":"4.7.620","description":"React components using pure Bootstrap 5+ which does not contain any external style and script libraries.","repository":{"type":"git","url":"git+https://github.com/xizon/funda-ui.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["bootstrap","react-bootstrap","react-components","components","components-react","react-bootstrap-components","react","funda-ui","fundaui","uikit","ui-kit","ui-components"],"bugs":{"url":"https://github.com/xizon/funda-ui/issues"},"homepage":"https://github.com/xizon/funda-ui#readme","main":"all.js","license":"MIT","dependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"types":"all.d.ts","publishConfig":{"directory":"lib"},"directories":{"lib":"lib"}}