From 41148537015d28fcbde9f663988d62d724555af0 Mon Sep 17 00:00:00 2001 From: Amitai Burstein Date: Wed, 5 Jun 2024 16:53:08 +0300 Subject: [PATCH 1/2] Update elm packages --- client/elm.json | 46 +++++++++++++++++++++++----------------- client/package-lock.json | 10 ++++----- 2 files changed, 31 insertions(+), 25 deletions(-) diff --git a/client/elm.json b/client/elm.json index 7bc1042093..b2e6f92818 100644 --- a/client/elm.json +++ b/client/elm.json @@ -9,11 +9,11 @@ "direct": { "Gizra/elm-all-set": "1.0.1", "Gizra/elm-debouncer": "2.0.0", - "NoRedInk/elm-json-decode-pipeline": "1.0.0", + "NoRedInk/elm-json-decode-pipeline": "1.0.1", "avh4/elm-color": "1.0.0", "ccapndave/elm-update-extra": "4.0.0", - "elm/browser": "1.0.1", - "elm/core": "1.0.0", + "elm/browser": "1.0.2", + "elm/core": "1.0.5", "elm/html": "1.0.0", "elm/http": "1.0.0", "elm/json": "1.1.3", @@ -21,22 +21,22 @@ "elm/svg": "1.0.1", "elm/time": "1.0.0", "elm/url": "1.0.0", - "elm-community/json-extra": "4.0.0", - "elm-community/list-extra": "8.1.0", + "elm-community/json-extra": "4.3.0", + "elm-community/list-extra": "8.7.0", "elm-community/maybe-extra": "5.3.0", "elm-community/string-extra": "4.0.1", - "elm-community/typed-svg": "5.1.0", - "elm-explorations/test": "1.2.1", + "elm-community/typed-svg": "7.0.0", + "elm-explorations/test": "1.2.2", "etaque/elm-form": "4.0.0", - "folkertdev/one-true-path-experiment": "4.0.3", - "gampleman/elm-visualization": "2.0.1", - "hecrj/html-parser": "2.3.4", + "folkertdev/one-true-path-experiment": "6.0.0", + "gampleman/elm-visualization": "2.4.1", + "hecrj/html-parser": "2.4.0", "ianmackenzie/elm-float-extra": "1.1.0", - "justinmimbs/date": "3.2.1", - "justinmimbs/time-extra": "1.1.0", + "justinmimbs/date": "4.1.0", + "justinmimbs/time-extra": "1.2.0", "krisajenkins/remotedata": "5.0.0", "lukewestby/elm-http-builder": "6.0.0", - "myrho/elm-round": "1.0.4", + "myrho/elm-round": "1.0.5", "stoeffel/editable": "2.0.1", "truqu/elm-base64": "2.0.4", "truqu/elm-md5": "1.1.0", @@ -45,16 +45,22 @@ "indirect": { "elm/parser": "1.1.0", "elm/random": "1.0.0", - "elm/virtual-dom": "1.0.2", + "elm/virtual-dom": "1.0.3", + "elmcraft/core-extra": "2.0.0", "folkertdev/elm-deque": "3.0.1", - "folkertdev/svg-path-lowlevel": "3.0.0", - "ianmackenzie/elm-geometry": "1.2.1", - "ianmackenzie/elm-interval": "1.0.1", - "ianmackenzie/elm-triangular-mesh": "1.0.2", + "folkertdev/svg-path-lowlevel": "4.0.1", + "gampleman/elm-rosetree": "1.1.0", + "ianmackenzie/elm-1d-parameter": "1.0.1", + "ianmackenzie/elm-geometry": "3.11.0", + "ianmackenzie/elm-interval": "3.1.0", + "ianmackenzie/elm-triangular-mesh": "1.1.0", + "ianmackenzie/elm-units": "2.10.0", + "ianmackenzie/elm-units-interval": "3.2.0", + "ianmackenzie/elm-units-prefixed": "2.8.0", "pzp1997/assoc-list": "1.0.0", "rtfeldman/elm-hex": "1.0.0", - "rtfeldman/elm-iso8601-date-strings": "1.1.3", - "ryannhg/date-format": "2.3.0", + "rtfeldman/elm-iso8601-date-strings": "1.1.4", + "ryan-haskell/date-format": "1.0.0", "zwilias/elm-utf-tools": "2.0.1" } }, diff --git a/client/package-lock.json b/client/package-lock.json index 1d789a8795..a874d2efdb 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1261,7 +1261,7 @@ } }, "string-width-cjs": { - "version": "npm:string-width@4.2.3", + "version": "npm:string-width-cjs@4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, @@ -1304,7 +1304,7 @@ } }, "strip-ansi-cjs": { - "version": "npm:strip-ansi@6.0.1", + "version": "npm:strip-ansi-cjs@6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, @@ -1332,7 +1332,7 @@ } }, "wrap-ansi-cjs": { - "version": "npm:wrap-ansi@7.0.0", + "version": "npm:wrap-ansi-cjs@7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, @@ -9736,7 +9736,7 @@ "is-obj": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==" + "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=" }, "is-object": { "version": "1.0.1", @@ -9816,7 +9816,7 @@ "is-regexp": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", - "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==" + "integrity": "sha1-/S2INUXEa6xaYz57mgnof6LLUGk=" }, "is-relative": { "version": "1.0.0", From 2def87a6da4e2eeaec38798fc6b0cd1ff99d5c9c Mon Sep 17 00:00:00 2001 From: Amitai Burstein Date: Wed, 5 Jun 2024 17:00:06 +0300 Subject: [PATCH 2/2] Fill is now Paint --- client/src/elm/Pages/Dashboard/View.elm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/elm/Pages/Dashboard/View.elm b/client/src/elm/Pages/Dashboard/View.elm index 8112b87ee6..b4e165ff9d 100644 --- a/client/src/elm/Pages/Dashboard/View.elm +++ b/client/src/elm/Pages/Dashboard/View.elm @@ -84,7 +84,7 @@ import Translate exposing (Language, TranslationId, translate, translateText, tr import TypedSvg exposing (g, svg) import TypedSvg.Attributes as Explicit exposing (fill, transform, viewBox) import TypedSvg.Core exposing (Svg) -import TypedSvg.Types exposing (Fill(..), Transform(..)) +import TypedSvg.Types exposing (Paint(..), Transform(..)) import Utils.Html exposing (spinner, viewModal) import Utils.NominalDate exposing (sortByDateDesc) @@ -2302,7 +2302,7 @@ annular colors signs pieData = makeSlice index datum = Path.element (Shape.arc { datum | innerRadius = radius - 60 }) - [ fill <| Fill <| getColor index ] + [ fill <| Paint <| getColor index ] in g [ transform [ Translate (3 * radius + 20) radius ] ] [ g [] <| List.indexedMap makeSlice pieData @@ -2337,7 +2337,7 @@ viewPieChartLegend language translateFunc colorFunc signs = in div [ class "legend-item" ] [ svg [ Svg.Attributes.width "12", Svg.Attributes.height "12", viewBox 0 0 100 100 ] - [ Svg.circle [ cx "50", cy "50", r "40", fill <| Fill <| colorFunc sign ] [] + [ Svg.circle [ cx "50", cy "50", r "40", fill <| Paint <| colorFunc sign ] [] ] , span [] [ text <| label ++ " (" ++ normalizedPercentage ++ "%)" ] ]