@mtes-mct/monitor-ui 8.6.1 → 8.8.0

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,17 @@
1
+ # [8.7.0](https://github.com/MTES-MCT/monitor-ui/compare/v8.6.1...v8.7.0) (2023-08-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * **icons:** add icons ([ace2a82](https://github.com/MTES-MCT/monitor-ui/commit/ace2a821c9baf8b78091111e4801706b37b3c2ee))
7
+
8
+ ## [8.6.1](https://github.com/MTES-MCT/monitor-ui/compare/v8.6.0...v8.6.1) (2023-08-21)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **components:** fix style and rename MapMenuModal in MapMenuDialog ([680b320](https://github.com/MTES-MCT/monitor-ui/commit/680b32091858f05151e0d627d3b85c96757af465))
14
+
1
15
  # [8.6.0](https://github.com/MTES-MCT/monitor-ui/compare/v8.5.0...v8.6.0) (2023-08-21)
2
16
 
3
17
 
package/index.js CHANGED
@@ -3099,7 +3099,7 @@ function Anchor({ color, size, ...nativeProps }) {
3099
3099
  }
3100
3100
 
3101
3101
  function Archive({ color, size, ...nativeProps }) {
3102
- return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-120)", children: [jsx("path", { d: "M138,2H122V8h1V18h14V8h1ZM124,4h12V6H124Zm11,12H125V8h10Z", fill: "currentColor" }), jsxs("g", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(128 10)", children: [jsx("rect", { height: "2", stroke: "none", width: "4" }), jsx("rect", { fill: "none", width: "2", x: "1", y: "1" })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(120)", width: "20" })] }) }) }));
3102
+ return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M138,2H122V8h1V18h14V8h1ZM124,4h12V6H124Zm11,12H125V8h10Z", fill: "currentColor", transform: "translate(-120)" }), jsx("rect", { fill: "currentColor", height: "2", transform: "translate(8 10)", width: "4" }), jsx("rect", { fill: "none", height: "20", width: "20" })] }) }));
3103
3103
  }
3104
3104
 
3105
3105
  function Attention({ color, size, ...nativeProps }) {
@@ -3302,6 +3302,10 @@ function Report({ color, size, ...nativeProps }) {
3302
3302
  return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("rect", { fill: "none", height: "20", width: "20" }), jsx("path", { d: "M-143,6.6-155,1V19h2V11.453Z", fill: "currentColor", transform: "translate(160)" })] }) }));
3303
3303
  }
3304
3304
 
3305
+ function Reset({ color, size, ...nativeProps }) {
3306
+ return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M0,0H20V20H0Z", fill: "none" }), jsxs("g", { children: [jsx("path", { d: "M17.37,15.155A8.992,8.992,0,0,0,4.124,3.192l1,1.793,0,.01A6.993,6.993,0,0,1,17,10H14.495l1.75,3.142-.012.028.017-.019.92,1.653.2.361Z", fill: "currentColor" }), jsx("path", { d: "M14.888,15A6.994,6.994,0,0,1,3,10H5.505L3.756,6.856l.01-.023-.015.014-.373-.67L2.634,4.838h0l0-.006v.011A8.992,8.992,0,0,0,15.877,16.806l-1-1.792Z", fill: "currentColor" })] })] }) }));
3307
+ }
3308
+
3305
3309
  function Save({ color, size, ...nativeProps }) {
3306
3310
  return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M14.444,2H2V18H18V5.556ZM10,16.222a2.667,2.667,0,1,1,2.667-2.667h0a2.663,2.663,0,0,1-2.659,2.667Zm2.667-8.889H3.778V3.778h8.889Z", fill: "currentColor" }), jsx("rect", { fill: "none", height: "20", width: "20" })] }) }));
3307
3311
  }
@@ -3342,6 +3346,18 @@ function SortingArrows({ color, size, ...nativeProps }) {
3342
3346
  return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(-40)", children: [jsxs("g", { children: [jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M57.536,11.636,55,14.172V2H53V14.172l-2.536-2.536L49.05,13.05,54,18l4.95-4.95Z", stroke: "none" }), jsx("path", { d: "M 54 18 L 49.05022811889648 13.05023002624512 L 50.46448135375977 11.6360502243042 L 53 14.17156982421875 L 53 2 L 55 2 L 55 14.17156982421875 L 57.53551864624023 11.6360502243042 L 58.94977188110352 13.05023002624512 L 54 18 Z", fill: "currentColor", stroke: "none" })] }), jsxs("g", { fill: "none", strokeMiterlimit: "10", children: [jsx("path", { d: "M50.95,6.95,46,2,41.05,6.95l1.414,1.414L45,5.828V18h2V5.828l2.536,2.536Z", stroke: "none" }), jsx("path", { d: "M 46 2 L 50.94977188110352 6.949709892272949 L 49.53551864624023 8.363949775695801 L 47 5.828370094299316 L 47 18 L 45 18 L 45 5.828370094299316 L 42.46448135375977 8.363949775695801 L 41.05022811889648 6.949709892272949 L 46 2 Z", fill: "currentColor", stroke: "none" })] })] }), jsx("rect", { fill: "none", height: "20", transform: "translate(40)", width: "20" })] }) }) }));
3343
3347
  }
3344
3348
 
3349
+ function SortingChevrons({ color, size, ...nativeProps }) {
3350
+ return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("path", { d: "M-184.5-110.5-190-105l-5.5-5.5", fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(200 123)" }), jsx("path", { d: "M-195.5-115.5l5.5-5.5,5.5,5.5", fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(200 123)" }), jsx("rect", { fill: "none", height: "20", width: "20" }), jsx("path", { d: "M-200-123h20v20h-20Z", fill: "none", transform: "translate(200 123)" })] }) }));
3351
+ }
3352
+
3353
+ function SortSelectedDown({ color, size, ...nativeProps }) {
3354
+ return (jsx(IconBox, { "$color": color, "$size": size, children: jsx("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: jsxs("g", { transform: "translate(20 20) rotate(180)", children: [jsx("rect", { fill: "none", height: "20", width: "20" }), jsxs("g", { transform: "translate(0)", children: [jsx("path", { d: "M4.5,7.5,10,2l5.5,5.5", fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2" }), jsx("line", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(9.999 2)", y2: "17" })] })] }) }) }));
3355
+ }
3356
+
3357
+ function SortSelectedUp({ color, size, ...nativeProps }) {
3358
+ return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("rect", { fill: "none", height: "20", width: "20" }), jsxs("g", { transform: "translate(0)", children: [jsx("path", { d: "M4.5,7.5,10,2l5.5,5.5", fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2" }), jsx("line", { fill: "none", stroke: "currentColor", strokeMiterlimit: "10", strokeWidth: "2", transform: "translate(9.999 2)", y2: "17" })] })] }) }));
3359
+ }
3360
+
3345
3361
  function Summary({ color, size, ...nativeProps }) {
3346
3362
  return (jsx(IconBox, { "$color": color, "$size": size, children: jsxs("svg", { height: "20", viewBox: "0 0 20 20", width: "20", ...nativeProps, children: [jsx("defs", { children: jsx("clipPath", { children: jsx("use", {}) }) }), jsx("g", { children: jsx("rect", { fill: "none", height: "20", width: "20" }) }), jsxs("g", { children: [jsx("rect", { fill: "currentColor", height: "1.5", transform: "translate(6 6)", width: "8" }), jsx("rect", { fill: "currentColor", height: "1.5", transform: "translate(6 9.25)", width: "8" }), jsx("rect", { fill: "currentColor", height: "1.5", transform: "translate(6 12.5)", width: "8" }), jsx("path", { d: "M16.5,3.5v13H3.5V3.5h13M18,2H2V18H18V2Z", fill: "currentColor" })] })] }) }));
3347
3363
  }
@@ -3426,6 +3442,7 @@ var index = /*#__PURE__*/Object.freeze({
3426
3442
  Plus: Plus,
3427
3443
  Reject: Reject,
3428
3444
  Report: Report,
3445
+ Reset: Reset,
3429
3446
  Save: Save,
3430
3447
  Search: Search$1,
3431
3448
  SelectCircle: SelectCircle,
@@ -3435,7 +3452,10 @@ var index = /*#__PURE__*/Object.freeze({
3435
3452
  Semaphore: Semaphore,
3436
3453
  ShowErsMessages: ShowErsMessages,
3437
3454
  ShowXml: ShowXml,
3455
+ SortSelectedDown: SortSelectedDown,
3456
+ SortSelectedUp: SortSelectedUp,
3438
3457
  SortingArrows: SortingArrows,
3458
+ SortingChevrons: SortingChevrons,
3439
3459
  Summary: Summary,
3440
3460
  Tag: Tag$1,
3441
3461
  Target: Target,
@@ -36689,6 +36709,16 @@ function nullify(value) {
36689
36709
  return value;
36690
36710
  }
36691
36711
 
36712
+ /**
36713
+ * Pluralize a given lowercase string.
36714
+ */
36715
+ function pluralize(text, count) {
36716
+ if (!text.trim().length) {
36717
+ return '';
36718
+ }
36719
+ return text + (count > 1 ? 's' : '');
36720
+ }
36721
+
36692
36722
  /* eslint-disable no-null/no-null */
36693
36723
  const undefineArrayValues = (list) => list.map(undefine);
36694
36724
  const undefineObjectProps = (record) => pipe$1(toPairs$1, map$1(undefineObjectPropPair), fromPairs$1)(record);
@@ -36715,5 +36745,5 @@ function undefine(value) {
36715
36745
  return value;
36716
36746
  }
36717
36747
 
36718
- export { Accent, Button$1 as Button, Checkbox, CoordinatesFormat, CoordinatesInput, CustomSearch, DatePicker, DateRangePicker, Dialog, Dropdown, Field$2 as Field, FieldError, Fieldset, FormikCheckbox, FormikCoordinatesInput, FormikDatePicker, FormikDateRangePicker, FormikEffect, FormikMultiCheckbox, FormikMultiRadio, FormikMultiSelect, FormikNumberInput, FormikSearch, FormikSelect, FormikTextInput, FormikTextarea, GlobalStyle, index as Icon, IconButton, Label, Legend, MapMenuDialog, MultiCheckbox, MultiRadio, MultiSelect, MultiZoneEditor, NewWindow, NewWindowContext, NotificationEvent, Notifier, NumberInput, OPENLAYERS_PROJECTION, OnlyFontGlobalStyle, Search, Select, SideMenu, SimpleTable, SingleTag, Size, THEME, TableWithSelectableRows, Tag, TagBullet, TagGroup, TextInput, Textarea, ThemeProvider, WSG84_PROJECTION, coordinatesAreDistinct, customDayjs, getCoordinates, getLocalizedDayjs, getOptionsFromIdAndName, getOptionsFromLabelledEnum, getPseudoRandomString, getUtcizedDayjs, isArray, isDefined, isNumeric, isObject, logSoftError, nullify, stopMouseEventPropagation, undefine, useClickOutsideEffect, useFieldControl, useForceUpdate, useKey, useNewWindow, usePrevious };
36748
+ export { Accent, Button$1 as Button, Checkbox, CoordinatesFormat, CoordinatesInput, CustomSearch, DatePicker, DateRangePicker, Dialog, Dropdown, Field$2 as Field, FieldError, Fieldset, FormikCheckbox, FormikCoordinatesInput, FormikDatePicker, FormikDateRangePicker, FormikEffect, FormikMultiCheckbox, FormikMultiRadio, FormikMultiSelect, FormikNumberInput, FormikSearch, FormikSelect, FormikTextInput, FormikTextarea, GlobalStyle, index as Icon, IconButton, Label, Legend, MapMenuDialog, MultiCheckbox, MultiRadio, MultiSelect, MultiZoneEditor, NewWindow, NewWindowContext, NotificationEvent, Notifier, NumberInput, OPENLAYERS_PROJECTION, OnlyFontGlobalStyle, Search, Select, SideMenu, SimpleTable, SingleTag, Size, THEME, TableWithSelectableRows, Tag, TagBullet, TagGroup, TextInput, Textarea, ThemeProvider, WSG84_PROJECTION, cleanString, coordinatesAreDistinct, customDayjs, getCoordinates, getLocalizedDayjs, getOptionsFromIdAndName, getOptionsFromLabelledEnum, getPseudoRandomString, getUtcizedDayjs, isArray, isDefined, isNumeric, isObject, logSoftError, normalizeString, nullify, pluralize, stopMouseEventPropagation, undefine, useClickOutsideEffect, useFieldControl, useForceUpdate, useKey, useNewWindow, usePrevious };
36719
36749
  //# sourceMappingURL=index.js.map