@mtes-mct/monitor-ui 18.0.1 → 18.0.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## [18.0.2](https://github.com/MTES-MCT/monitor-ui/compare/v18.0.1...v18.0.2) (2024-05-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **components:** ignore external domain stylesheets in NewWindow styles copying ([fb02756](https://github.com/MTES-MCT/monitor-ui/commit/fb0275608debbd07acdc4f2aed0f197f1e864bff))
7
+
8
+ ## [18.0.1](https://github.com/MTES-MCT/monitor-ui/compare/v18.0.0...v18.0.1) (2024-05-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **tables:** disable user selection in SimpleTable.Th ([20d9b64](https://github.com/MTES-MCT/monitor-ui/commit/20d9b64fa72739b880d09740c6f9de6c2141b536))
14
+ * **tables:** force prop border in TableWithSelectableRows.Td ([9fbd1ee](https://github.com/MTES-MCT/monitor-ui/commit/9fbd1ee51236b6a7da47ff410cb2b00e95ddc66e))
15
+ * **tables:** force min & max width in SimpleTable.Th ([0ddfa57](https://github.com/MTES-MCT/monitor-ui/commit/0ddfa57afc4ec734d5242b82756d8506bc7f00fc))
16
+
1
17
  ## [18.0.0](https://github.com/MTES-MCT/monitor-ui/compare/v17.2.2...v18.0.0) (2024-05-27)
2
18
 
3
19
 
@@ -1 +1 @@
1
- {"version":3,"file":"RangeCalendarPicker.d.ts","sourceRoot":"","sources":["../../../src/fields/DateRangePicker/RangeCalendarPicker.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAE3C,KAAK,wBAAwB,GAAG;IAC9B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACpC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAClC,MAAM,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,QAAQ,EAAE,CAAC,qBAAqB,EAAE,cAAc,KAAK,UAAU,CAAC,IAAI,CAAC,CAAA;CACtE,CAAA;AACD,wBAAgB,mBAAmB,CAAC,EAClC,YAAY,EACZ,iBAAyB,EACzB,YAAY,EACZ,MAAM,EACN,QAAQ,EACT,EAAE,wBAAwB,2CA2E1B"}
1
+ {"version":3,"file":"RangeCalendarPicker.d.ts","sourceRoot":"","sources":["../../../src/fields/DateRangePicker/RangeCalendarPicker.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAE3C,KAAK,wBAAwB,GAAG;IAC9B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACpC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAClC,MAAM,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,QAAQ,EAAE,CAAC,qBAAqB,EAAE,cAAc,KAAK,UAAU,CAAC,IAAI,CAAC,CAAA;CACtE,CAAA;AACD,wBAAgB,mBAAmB,CAAC,EAClC,YAAY,EACZ,iBAAyB,EACzB,YAAY,EACZ,MAAM,EACN,QAAQ,EACT,EAAE,wBAAwB,2CA4E1B"}
@@ -1,4 +1,5 @@
1
1
  export declare const StyledRsuiteCalendarBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
+ $isDoubleCalendar?: boolean;
2
3
  $isRightAligned?: boolean;
3
4
  }, never>;
4
5
  //# sourceMappingURL=StyledRsuiteCalendarBox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StyledRsuiteCalendarBox.d.ts","sourceRoot":"","sources":["../../../src/fields/shared/StyledRsuiteCalendarBox.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB;sBAChB,OAAO;SAkQ1B,CAAA"}
1
+ {"version":3,"file":"StyledRsuiteCalendarBox.d.ts","sourceRoot":"","sources":["../../../src/fields/shared/StyledRsuiteCalendarBox.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB;wBACd,OAAO;sBACT,OAAO;SAmQ1B,CAAA"}
package/index.js CHANGED
@@ -52929,7 +52929,11 @@ NewWindow.defaultProps = {
52929
52929
  try {
52930
52930
  rules = styleSheet.cssRules;
52931
52931
  } catch (err) {
52932
- console.error(err);
52932
+ // An error here most likely happens when trying to access stylesheets from other domains,
52933
+ // which is a CORS violation and should be ignored.
52934
+ // eslint-disable-next-line no-console
52935
+ console.debug(err);
52936
+ return;
52933
52937
  }
52934
52938
  if (rules) {
52935
52939
  // IE11 is very slow for appendChild, so use plain string here
@@ -65195,6 +65199,7 @@ const StyledRsuiteCalendarBox = styled.div`
65195
65199
  top: 0 !important;
65196
65200
  line-height: 1;
65197
65201
  padding: 0;
65202
+ ${(p)=>p.$isDoubleCalendar && `width: 483px;`}
65198
65203
 
65199
65204
  > .rs-picker-daterange-panel {
65200
65205
  min-width: unset !important;
@@ -66707,6 +66712,7 @@ function RangeCalendarPicker({ defaultValue, hasSingleCalendar = false, isHistor
66707
66712
  ]);
66708
66713
  return /*#__PURE__*/ jsx(StyledRsuiteCalendarBox, {
66709
66714
  ref: boxRef,
66715
+ $isDoubleCalendar: !hasSingleCalendar,
66710
66716
  className: "Field-DateRangePicker__RangeCalendarPicker",
66711
66717
  onClick: stopMouseEventPropagation,
66712
66718
  children: boxRef.current && /*#__PURE__*/ jsx(DateRangePicker$1, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mtes-mct/monitor-ui",
3
3
  "description": "Common React components, hooks, utilities and CSS stylesheets for MonitorFish, MonitorEnv and RapportNav.",
4
- "version": "18.0.1",
4
+ "version": "18.0.3",
5
5
  "license": "AGPL-3.0",
6
6
  "type": "module",
7
7
  "engines": {