From be049d2aa53d39f6b334a410f332a12dbaf913fe Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Thu, 23 May 2024 20:55:26 +0200 Subject: [PATCH 01/38] fix(dropdown): hidden cursor on form states Whenever an empty (placeholder shown) multiple search dropdown got a form state (error/info/warning/success) the cursor was not shown anymore when clicking into the search field of the dropdown. --- src/definitions/collections/form.less | 2 ++ src/definitions/modules/dropdown.less | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/definitions/collections/form.less b/src/definitions/collections/form.less index 6ca284dddd..ef557becca 100755 --- a/src/definitions/collections/form.less +++ b/src/definitions/collections/form.less @@ -653,6 +653,7 @@ } /* Placeholder */ + .ui.form .@{state} .ui.dropdown > .default.text, .ui.form .@{state} ::placeholder { color: @formStates[@@state][inputPlaceholderColor]; } @@ -660,6 +661,7 @@ color: @formStates[@@state][inputPlaceholderColor] !important; } + .ui.form .@{state} .ui.dropdown > input:focus ~ .default.text, .ui.form .@{state} :focus::placeholder { color: @formStates[@@state][inputPlaceholderFocusColor]; } diff --git a/src/definitions/modules/dropdown.less b/src/definitions/modules/dropdown.less index e902b14f10..6dd0f51f64 100755 --- a/src/definitions/modules/dropdown.less +++ b/src/definitions/modules/dropdown.less @@ -751,7 +751,7 @@ select.ui.dropdown { opacity: @selectionTextUnderlayIconOpacity; } .ui.active.search.dropdown input.search:focus + .text { - color: @selectionTextUnderlayColor !important; + color: @selectionTextUnderlayColor; } .ui.search.dropdown.button > span.sizer { @@ -922,6 +922,9 @@ select.ui.dropdown { padding: inherit; margin: @multipleSelectionChildMargin; line-height: @multipleSelectionChildLineHeight; + &.default { + z-index: -1; + } } .ui.multiple.search.dropdown > .label ~ .text { @@ -1976,7 +1979,7 @@ select.ui.dropdown { opacity: @invertedSelectionTextUnderlayIconOpacity; } .ui.inverted.active.search.dropdown input.search:focus + .text { - color: @invertedSelectionTextUnderlayColor !important; + color: @invertedSelectionTextUnderlayColor; } .ui.dropdown .inverted.menu > .message:not(.ui), From 6218f3eebe903cb64080c4305913be8008a31012 Mon Sep 17 00:00:00 2001 From: lubber-de Date: Sat, 1 Jun 2024 14:32:54 +0200 Subject: [PATCH 02/38] fix(message): compact message should not exceed max width --- src/definitions/collections/message.less | 1 + 1 file changed, 1 insertion(+) diff --git a/src/definitions/collections/message.less b/src/definitions/collections/message.less index a681030033..78effb0a87 100755 --- a/src/definitions/collections/message.less +++ b/src/definitions/collections/message.less @@ -195,6 +195,7 @@ .ui.compact.message { display: inline-block; + max-width: 100%; } .ui.compact.icon.message { display: inline-flex; From c7c2a5d5498ee84d59b058ff6c453788af3b5935 Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Tue, 4 Jun 2024 10:30:27 +0200 Subject: [PATCH 03/38] feat(button): circular icon button to appear round at minimum Whenever a circular icon button was used to reduce the padding but use text instead of an icon, the button does not appear as a circle at least (that is taken care of for circular label) By adding a min width to a circular button this gets fixed. I intentionally added the minwidth directly to circular button (instead of circular icon button) as it saves an extra selector and the default min-width is already reached (because of the larger paddding) when a non icon button is used. --- src/definitions/elements/button.less | 1 + src/themes/default/elements/button.variables | 1 + 2 files changed, 2 insertions(+) diff --git a/src/definitions/elements/button.less b/src/definitions/elements/button.less index 670c69b0e3..869160c2a3 100755 --- a/src/definitions/elements/button.less +++ b/src/definitions/elements/button.less @@ -1098,6 +1098,7 @@ .ui.ui.circular.buttons .button, .ui.ui.ui.ui.circular.button { border-radius: @circularBorderRadius; + min-width: @circularMinWidth; } .ui.circular.buttons .button > .icon, diff --git a/src/themes/default/elements/button.variables b/src/themes/default/elements/button.variables index a9a4414abd..2775088c06 100644 --- a/src/themes/default/elements/button.variables +++ b/src/themes/default/elements/button.variables @@ -394,6 +394,7 @@ /* Circular */ @circularBorderRadius: 10em; @circularIconWidth: 1em; +@circularMinWidth: 2.5em; @circularGroupMargin: 0.25em; @circularVerticalGroupMargin: @circularGroupMargin; From 77f9f0e191dd18475de7ac61e35c78ce86b66f78 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Jun 2024 16:36:35 +0200 Subject: [PATCH 04/38] build(deps): bump browserslist from 4.23.0 to 4.23.1 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 50 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 20 deletions(-) diff --git a/yarn.lock b/yarn.lock index a26ea29ff7..2628290c6e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -866,14 +866,14 @@ braces@^3.0.2, braces@~3.0.2: fill-range "^7.0.1" browserslist@^4.21.4: - version "4.23.0" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.0.tgz#8f3acc2bbe73af7213399430890f86c63a5674ab" - integrity sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ== + version "4.23.1" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.1.tgz#ce4af0534b3d37db5c1a4ca98b9080f985041e96" + integrity sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw== dependencies: - caniuse-lite "^1.0.30001587" - electron-to-chromium "^1.4.668" + caniuse-lite "^1.0.30001629" + electron-to-chromium "^1.4.796" node-releases "^2.0.14" - update-browserslist-db "^1.0.13" + update-browserslist-db "^1.0.16" buffer@^5.5.0: version "5.7.1" @@ -951,10 +951,10 @@ camelcase@^5.0.0, camelcase@^5.3.1: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== -caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001587: - version "1.0.30001587" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001587.tgz#a0bce920155fa56a1885a69c74e1163fc34b4881" - integrity sha512-HMFNotUmLXn71BQxg8cijvqxnIAofforZOwGsxyXJ0qugTdspUF4sPSJ2vhgprHCB996tIDzEq1ubumPDV8ULA== +caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001629: + version "1.0.30001632" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001632.tgz#964207b7cba5851701afb4c8afaf1448db3884b6" + integrity sha512-udx3o7yHJfUxMLkGohMlVHCvFvWmirKh9JAH/d7WOLPetlH+LTL5cocMZ0t7oZx/mdlOWXti97xLZWc8uURRHg== chalk@^2.0.0: version "2.4.2" @@ -1384,10 +1384,10 @@ editorconfig@^0.15.3: semver "^5.6.0" sigmund "^1.0.1" -electron-to-chromium@^1.4.668: - version "1.4.670" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.670.tgz#0fc5ac92ada8371e898ea72d577ffc888167a017" - integrity sha512-hcijYOWjOtjKrKPtNA6tuLlA/bTLO3heFG8pQA6mLpq7dRydSWicXova5lyxDzp1iVJaYhK7J2OQlGE52KYn7A== +electron-to-chromium@^1.4.796: + version "1.4.796" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.796.tgz#48dd6ff634b7f7df6313bd27aaa713f3af4a2b29" + integrity sha512-NglN/xprcM+SHD2XCli4oC6bWe6kHoytcyLKCWXmRL854F0qhPhaYgUswUsglnPxYaNQIg2uMY4BvaomIf3kLA== emoji-regex@^8.0.0: version "8.0.0" @@ -1507,6 +1507,11 @@ escalade@^3.1.1: resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== +escalade@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" + integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== + escape-string-regexp@^1.0.3, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" @@ -3737,6 +3742,11 @@ picocolors@^1.0.0: resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== +picocolors@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1" + integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew== + picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" @@ -4894,13 +4904,13 @@ unixify@^1.0.0: dependencies: normalize-path "^2.1.1" -update-browserslist-db@^1.0.13: - version "1.0.13" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz#3c5e4f5c083661bd38ef64b6328c26ed6c8248c4" - integrity sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg== +update-browserslist-db@^1.0.16: + version "1.0.16" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz#f6d489ed90fb2f07d67784eb3f53d7891f736356" + integrity sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ== dependencies: - escalade "^3.1.1" - picocolors "^1.0.0" + escalade "^3.1.2" + picocolors "^1.0.1" uri-js@^4.2.2: version "4.4.1" From c48cd9d6b80720fdcddbd81b62dc0b20f5e02022 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Jun 2024 16:44:42 +0200 Subject: [PATCH 05/38] build(deps): bump braces from 3.0.2 to 3.0.3 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/yarn.lock b/yarn.lock index 2628290c6e..411e1c6cc3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -859,11 +859,11 @@ brace-expansion@^2.0.1: balanced-match "^1.0.0" braces@^3.0.2, braces@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + version "3.0.3" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" + integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== dependencies: - fill-range "^7.0.1" + fill-range "^7.1.1" browserslist@^4.21.4: version "4.23.1" @@ -1785,10 +1785,10 @@ file-entry-cache@^6.0.1: dependencies: flat-cache "^3.0.4" -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== +fill-range@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" + integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg== dependencies: to-regex-range "^5.0.1" From 127b2eee3a1c601098e632d55aab25dd0136169d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 21:53:23 +0200 Subject: [PATCH 06/38] build(deps-dev): bump postcss from 8.4.38 to 8.4.39 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/yarn.lock b/yarn.lock index 411e1c6cc3..7c3331fa38 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3737,12 +3737,7 @@ pegjs@^0.10.0: resolved "https://registry.yarnpkg.com/pegjs/-/pegjs-0.10.0.tgz#cf8bafae6eddff4b5a7efb185269eaaf4610ddbd" integrity sha1-z4uvrm7d/0tafvsYUmnqr0YQ3b0= -picocolors@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" - integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== - -picocolors@^1.0.1: +picocolors@^1.0.0, picocolors@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1" integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew== @@ -3824,12 +3819,12 @@ postcss-value-parser@^4.2.0: integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== postcss@^8.3.0, postcss@^8.3.11, postcss@^8.4.19: - version "8.4.38" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.38.tgz#b387d533baf2054288e337066d81c6bee9db9e0e" - integrity sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A== + version "8.4.39" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.39.tgz#aa3c94998b61d3a9c259efa51db4b392e1bde0e3" + integrity sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw== dependencies: nanoid "^3.3.7" - picocolors "^1.0.0" + picocolors "^1.0.1" source-map-js "^1.2.0" prelude-ls@^1.2.1: From 3db532891770e9e8a2beac490ff1e175ef7bfbd0 Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Sat, 6 Jul 2024 20:54:14 +0200 Subject: [PATCH 07/38] fix(form): dont add whitespace on empty required field labels Followup of #2711 Whenever an empty label was used for a required single field or non-grouped, non-inline fields group, the label was still receiving an extra space to create a default height and did not display the asterisk. The intention of the space character was for empty non required fields to match same height when used inside a fields row. If one does not want a label at all and does not want to make this field required, you would not render the label at all and wont get additional space then --- src/definitions/collections/form.less | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/definitions/collections/form.less b/src/definitions/collections/form.less index ef557becca..4ce4e9edb6 100755 --- a/src/definitions/collections/form.less +++ b/src/definitions/collections/form.less @@ -849,12 +849,16 @@ } } -.ui.ui.ui.ui.form .fields > label:empty::after, -.ui.ui.ui.ui.form .field > label:empty::after { +.ui.ui.ui.ui.form .fields:not(.required) > label:empty::after, +.ui.ui.ui.ui.form .fields:not(.grouped):not(.inline) > .field:not(.required) > label:empty::after { content: " "; display: inline-block; } +.ui.ui.ui.ui.form .inline.fields .field:not(.required) > label:empty { + display: none; +} + /******************************* Variations *******************************/ From 882ab0657b5cd268c3f2c2cf6407e9c875d63040 Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Tue, 9 Jul 2024 08:51:13 +0200 Subject: [PATCH 08/38] fix(progress): wider bar min width When a progress is very short, the bar could contain a value > "10%" which then does not completely fit into the bar anymore. By slightly increasing the min-width, this should cover almost every usecase. --- src/themes/default/modules/progress.variables | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/themes/default/modules/progress.variables b/src/themes/default/modules/progress.variables index b65cd16c7a..2a5237eb8e 100644 --- a/src/themes/default/modules/progress.variables +++ b/src/themes/default/modules/progress.variables @@ -28,7 +28,7 @@ width @barTransitionDuration @barTransitionEasing, background-color @barTransitionDuration @barTransitionEasing; @barInitialWidth: 0; -@barMinWidth: 2em; +@barMinWidth: 2.5em; /* Progress Bar Label */ @progressWidth: auto; From 0322d13c333cec5819279c9e40028692971a3e4d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jul 2024 21:12:29 +0200 Subject: [PATCH 09/38] build(deps): bump browserslist from 4.23.1 to 4.23.2 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/yarn.lock b/yarn.lock index 7c3331fa38..eedee27aa1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -866,14 +866,14 @@ braces@^3.0.2, braces@~3.0.2: fill-range "^7.1.1" browserslist@^4.21.4: - version "4.23.1" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.1.tgz#ce4af0534b3d37db5c1a4ca98b9080f985041e96" - integrity sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw== + version "4.23.2" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.2.tgz#244fe803641f1c19c28c48c4b6ec9736eb3d32ed" + integrity sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA== dependencies: - caniuse-lite "^1.0.30001629" - electron-to-chromium "^1.4.796" + caniuse-lite "^1.0.30001640" + electron-to-chromium "^1.4.820" node-releases "^2.0.14" - update-browserslist-db "^1.0.16" + update-browserslist-db "^1.1.0" buffer@^5.5.0: version "5.7.1" @@ -951,10 +951,10 @@ camelcase@^5.0.0, camelcase@^5.3.1: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== -caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001629: - version "1.0.30001632" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001632.tgz#964207b7cba5851701afb4c8afaf1448db3884b6" - integrity sha512-udx3o7yHJfUxMLkGohMlVHCvFvWmirKh9JAH/d7WOLPetlH+LTL5cocMZ0t7oZx/mdlOWXti97xLZWc8uURRHg== +caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001640: + version "1.0.30001641" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001641.tgz#3572862cd18befae3f637f2a1101cc033c6782ac" + integrity sha512-Phv5thgl67bHYo1TtMY/MurjkHhV4EDaCosezRXgZ8jzA/Ub+wjxAvbGvjoFENStinwi5kCyOYV3mi5tOGykwA== chalk@^2.0.0: version "2.4.2" @@ -1384,10 +1384,10 @@ editorconfig@^0.15.3: semver "^5.6.0" sigmund "^1.0.1" -electron-to-chromium@^1.4.796: - version "1.4.796" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.796.tgz#48dd6ff634b7f7df6313bd27aaa713f3af4a2b29" - integrity sha512-NglN/xprcM+SHD2XCli4oC6bWe6kHoytcyLKCWXmRL854F0qhPhaYgUswUsglnPxYaNQIg2uMY4BvaomIf3kLA== +electron-to-chromium@^1.4.820: + version "1.4.823" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.823.tgz#38587f7aa55bed14930f04091dfc65c39a3d8bd7" + integrity sha512-4h+oPeAiGQOHFyUJOqpoEcPj/xxlicxBzOErVeYVMMmAiXUXsGpsFd0QXBMaUUbnD8hhSfLf9uw+MlsoIA7j5w== emoji-regex@^8.0.0: version "8.0.0" @@ -4899,10 +4899,10 @@ unixify@^1.0.0: dependencies: normalize-path "^2.1.1" -update-browserslist-db@^1.0.16: - version "1.0.16" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz#f6d489ed90fb2f07d67784eb3f53d7891f736356" - integrity sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ== +update-browserslist-db@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e" + integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ== dependencies: escalade "^3.1.2" picocolors "^1.0.1" From f622ea890c0aa689b13551a0cc566c48724f2aed Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 18 Jul 2024 08:33:24 +0200 Subject: [PATCH 10/38] build(deps-dev): bump semver from 7.6.2 to 7.6.3 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index eedee27aa1..c3a7c0be21 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4232,9 +4232,9 @@ semver@^6.3.0, semver@^6.3.1: integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== semver@^7.3.4, semver@^7.3.5: - version "7.6.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.2.tgz#1e3b34759f896e8f14d6134732ce798aeb0c6e13" - integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w== + version "7.6.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" + integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== set-blocking@^2.0.0: version "2.0.0" From 66bda79da0cb40fac6ef024a94c0ffce7cdb8bb4 Mon Sep 17 00:00:00 2001 From: KiddoV Date: Sun, 28 Jul 2024 09:36:33 -0500 Subject: [PATCH 11/38] chore(types): fix missing types on some module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There was a missing type declaration on module search.fullTextSearch. I added these changes based on the current document: https://fomantic-ui.com/modules/dropdown.html#additional-settings --- types/fomantic-ui-calendar.d.ts | 18 +++++++++++++++++- types/fomantic-ui-search.d.ts | 9 +++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/types/fomantic-ui-calendar.d.ts b/types/fomantic-ui-calendar.d.ts index e486026c36..594c97572f 100644 --- a/types/fomantic-ui-calendar.d.ts +++ b/types/fomantic-ui-calendar.d.ts @@ -327,7 +327,23 @@ declare namespace FomanticUI { formatter: Calendar.FormatterSettings; - // endregion + /** + * Customizable methods to parse a given date + * Has to return a date object + */ + parser: { + date: (text: string, settings: CalendarSettings) => Date; + } + + /** + * DOM selector where the calendar popup should be attached to. By default (false) the calendar popup + * is attached as direct child of the triggering element. + * + * @default false + */ + context: string | JQuery | false + + // end region // region Callbacks diff --git a/types/fomantic-ui-search.d.ts b/types/fomantic-ui-search.d.ts index 4d844603b7..6ea4a313fb 100644 --- a/types/fomantic-ui-search.d.ts +++ b/types/fomantic-ui-search.d.ts @@ -183,10 +183,15 @@ declare namespace FomanticUI { showNoResults: boolean; /** - * Specifying to "true" will use a fuzzy full text search, setting to "exact" will force the exact search to be matched somewhere in the string, setting to false will only match to start of string. + * Possible values + * * `exact` will force the exact search to be matched somewhere in the string. + * * `some` Will do the same as exact but supports multiple search values separated by whitespace. At least one word must match. (New in v2.9.1) + * * `all` is same as some but all words have to match in all given search fields of each record altogether. (New in v2.9.1) + * * `true` will use a fuzzy full text search. + * * `false` will only match to start of string. * @default 'exact' */ - fullTextSearch: 'exact' | boolean; + fullTextSearch: 'exact' | 'some' | 'all' | boolean; /** * List mapping display content to JSON property, either with API or 'source'. From 628e1d9d12db902f67d4491ae092706d29186ca0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 28 Jul 2024 15:43:57 +0100 Subject: [PATCH 12/38] build(deps-dev): bump postcss from 8.4.39 to 8.4.40 Bumps [postcss](https://github.com/postcss/postcss) from 8.4.39 to 8.4.40. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.4.39...8.4.40) --- updated-dependencies: - dependency-name: postcss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index c3a7c0be21..5661f0aad7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3819,9 +3819,9 @@ postcss-value-parser@^4.2.0: integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== postcss@^8.3.0, postcss@^8.3.11, postcss@^8.4.19: - version "8.4.39" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.39.tgz#aa3c94998b61d3a9c259efa51db4b392e1bde0e3" - integrity sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw== + version "8.4.40" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.40.tgz#eb81f2a4dd7668ed869a6db25999e02e9ad909d8" + integrity sha512-YF2kKIUzAofPMpfH6hOi2cGnv/HrUlfucspc7pDyvv7kGdqXrfj8SCl/t8owkEgKEuu8ZcRjSOxFxVLqwChZ2Q== dependencies: nanoid "^3.3.7" picocolors "^1.0.1" From 59d4729367114bb079bfd9fc2ca573cb568b3d4e Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Fri, 2 Aug 2024 21:59:31 +0100 Subject: [PATCH 13/38] fix(types): satisfy lint rule no-unsafe-function-type Latest linting rule no-unsafe-function-type breaks existing types which results in failed CI checks on every other PR. --- types/fomantic-ui-dropdown.d.ts | 6 +++--- types/fomantic-ui-flyout.d.ts | 2 +- types/fomantic-ui-form.d.ts | 2 +- types/fomantic-ui-modal.d.ts | 4 ++-- types/fomantic-ui-search.d.ts | 10 +++++----- types/fomantic-ui-slider.d.ts | 2 +- types/fomantic-ui-tab.d.ts | 2 +- types/fomantic-ui-transition.d.ts | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/types/fomantic-ui-dropdown.d.ts b/types/fomantic-ui-dropdown.d.ts index 11826ff5db..9be97f48a3 100644 --- a/types/fomantic-ui-dropdown.d.ts +++ b/types/fomantic-ui-dropdown.d.ts @@ -29,14 +29,14 @@ declare namespace FomanticUI { * If a function is provided to callback, it's called after the dropdown-menu is shown. * Set preventFocus to true if you don't want the dropdown field to focus after the menu is shown */ - (behavior: 'show', callback?: Function, preventFocus?: boolean): void; + (behavior: 'show', callback?: () => void, preventFocus?: boolean): void; /** * Hides dropdown. * If a function is provided to callback, it's called after the dropdown-menu is hidden. * Set preventBlur to true if you don't want the dropdown field to blur after the menu is hidden */ - (behavior: 'hide', callback?: Function, preventBlur?: boolean): void; + (behavior: 'hide', callback?: () => void, preventBlur?: boolean): void; /** * Clears dropdown of selection. @@ -358,7 +358,7 @@ declare namespace FomanticUI { * Whether to sort values when creating a dropdown automatically from a select element. * @default false */ - sortSelect: boolean | 'natural' | Function; + sortSelect: boolean | 'natural' | ((a: any, b: any) => number); /** * Whether search selection will force currently selected choice when element is blurred. diff --git a/types/fomantic-ui-flyout.d.ts b/types/fomantic-ui-flyout.d.ts index 30f5ebc568..291fdbdad8 100644 --- a/types/fomantic-ui-flyout.d.ts +++ b/types/fomantic-ui-flyout.d.ts @@ -6,7 +6,7 @@ declare namespace FomanticUI { * Attaches flyout action to given selector. * Default event if none specified is toggle. */ - (behavior: 'attach events', selector: JQuery, event: Function): JQuery; + (behavior: 'attach events', selector: JQuery, event?: string): JQuery; /** * Shows the flyout. diff --git a/types/fomantic-ui-form.d.ts b/types/fomantic-ui-form.d.ts index ffb4425fe0..c0298db242 100644 --- a/types/fomantic-ui-form.d.ts +++ b/types/fomantic-ui-form.d.ts @@ -164,7 +164,7 @@ declare namespace FomanticUI { (settings?: Partial>): JQuery; } - type FormFields = Record; + type FormFields = Record; interface FormRule { type: string; diff --git a/types/fomantic-ui-modal.d.ts b/types/fomantic-ui-modal.d.ts index 545a23730d..4eea57048f 100644 --- a/types/fomantic-ui-modal.d.ts +++ b/types/fomantic-ui-modal.d.ts @@ -5,12 +5,12 @@ declare namespace FomanticUI { /** * Shows the modal. */ - (behavior: 'show', callback?: Function): JQuery; + (behavior: 'show', callback?: () => void): JQuery; /** * Hides the modal. */ - (behavior: 'hide', callback?: Function): JQuery; + (behavior: 'hide', callback?: () => void): JQuery; /** * Toggles the modal. diff --git a/types/fomantic-ui-search.d.ts b/types/fomantic-ui-search.d.ts index 6ea4a313fb..e40cf3bfbb 100644 --- a/types/fomantic-ui-search.d.ts +++ b/types/fomantic-ui-search.d.ts @@ -5,7 +5,7 @@ declare namespace FomanticUI { /** * Search for value currently set in search input. */ - (behavior: 'query', callback: Function): JQuery; + (behavior: 'query', callback?: () => void): JQuery; /** * Displays message in search results with text, using template matching type. @@ -30,7 +30,7 @@ declare namespace FomanticUI { /** * Search remote endpoint for specified query and display results. */ - (behavior: 'search remote', query: string, callback: Function): JQuery; + (behavior: 'search remote', query: string, callback?: () => void): JQuery; /** * Search object for specified query and return results. @@ -90,17 +90,17 @@ declare namespace FomanticUI { /** * Shows results container. */ - (behavior: 'show results', callback: Function): JQuery; + (behavior: 'show results', callback?: () => void): JQuery; /** * Hide results container. */ - (behavior: 'hide results', callback: Function): JQuery; + (behavior: 'hide results', callback?: () => void): JQuery; /** * Generates results using parser specified by 'settings.template'. */ - (behavior: 'generate results', response: Function): JQuery; + (behavior: 'generate results', response: object): JQuery; /** * Removes all events. diff --git a/types/fomantic-ui-slider.d.ts b/types/fomantic-ui-slider.d.ts index 1d272c78a4..3ac57cfde9 100644 --- a/types/fomantic-ui-slider.d.ts +++ b/types/fomantic-ui-slider.d.ts @@ -89,7 +89,7 @@ declare namespace FomanticUI { * You can specify a function here which consumes the current label value as parameter and should return a custom label text according to the given value. * @default false */ - interpretLabel: false | Function; + interpretLabel: false | ((value: any) => string); /** * Show ticks on a labeled slider. diff --git a/types/fomantic-ui-tab.d.ts b/types/fomantic-ui-tab.d.ts index 5f93af2199..f02ddc5fb5 100644 --- a/types/fomantic-ui-tab.d.ts +++ b/types/fomantic-ui-tab.d.ts @@ -276,7 +276,7 @@ declare namespace FomanticUI { * Returns page title * @default Function */ - determineTitle: Function; + determineTitle: (tabPath: string) => string | void; } interface Selectors { diff --git a/types/fomantic-ui-transition.d.ts b/types/fomantic-ui-transition.d.ts index 014d056519..1f40e41f77 100644 --- a/types/fomantic-ui-transition.d.ts +++ b/types/fomantic-ui-transition.d.ts @@ -227,7 +227,7 @@ declare namespace FomanticUI { * Callback right before the show transition should start. * The 'showFunction' parameter has to be called inside the callback to trigger the transition show */ - onBeforeShow(this: JQuery, showFunction: Function): void; + onBeforeShow(this: JQuery, showFunction: () => void): void; /** * Callback once the show transition has finished. @@ -244,7 +244,7 @@ declare namespace FomanticUI { * Callback right before the hide transition should start. * The 'hideFunction' parameter has to be called inside the callback to trigger the transition hide. */ - onBeforeHide(this: JQuery, hideFunction: Function): void; + onBeforeHide(this: JQuery, hideFunction: () => void): void; /** * Callback once the transition hide has finished. From 95d3bf8b2aa2f5bd3df6600964def99b7816e212 Mon Sep 17 00:00:00 2001 From: BrianJavier99 <105766366+BrianJavier99@users.noreply.github.com> Date: Sat, 3 Aug 2024 05:03:53 +0800 Subject: [PATCH 14/38] fix(form): duplicate error displays on invalid form field value Adds a variable formErrorsTracker that tracks which field identifiers have already pushed an error prompt in the formErrors variable which limits the number of error prompt for every field identifier into 1. --- src/definitions/behaviors/form.js | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index e577aaa64a..efe2f5e0a3 100644 --- a/src/definitions/behaviors/form.js +++ b/src/definitions/behaviors/form.js @@ -38,6 +38,7 @@ element = this, formErrors = [], + formErrorsTracker = {}, keyHeldDown = false, // set at run-time @@ -948,7 +949,7 @@ $prompt.css('display', 'none'); } $prompt - .appendTo($fieldGroup) + .appendTo($fieldGroup.filter('.' + className.error)) ; } $prompt @@ -1285,6 +1286,7 @@ $module.removeClass(className.initial); // reset errors formErrors = []; + formErrorsTracker = {}; if (module.determine.isValid()) { module.debug('Form has no validation errors, submitting'); module.set.success(); @@ -1388,7 +1390,22 @@ var invalidFields = module.validate.rule(field, rule, true) || []; if (invalidFields.length > 0) { module.debug('Field is invalid', identifier, rule.type); - fieldErrors.push(module.get.prompt(rule, field)); + var fieldError = module.get.prompt(rule, field); + if (!settings.inline) { + if ( + // Always allow the first error prompt for new field identifiers + (!(identifier in formErrorsTracker) + // Also allow multiple error prompts per field identifier but make sure each prompt is unique + || formErrorsTracker[identifier].indexOf(fieldError) === -1) + // Limit the number of unique error prompts for every field identifier if specified + && (!errorLimit || (formErrorsTracker[identifier] || []).length < errorLimit) + ) { + fieldErrors.push(fieldError); + (formErrorsTracker[identifier] = formErrorsTracker[identifier] || []).push(fieldError); + } + } else { + fieldErrors.push(fieldError); + } fieldValid = false; if (showErrors) { $(invalidFields).closest($group).addClass(className.error); @@ -1403,7 +1420,7 @@ settings.onValid.call($field); } } else { - if (showErrors) { + if (showErrors && fieldErrors.length > 0) { formErrors = formErrors.concat(fieldErrors); module.add.prompt(identifier, fieldErrors, true); settings.onInvalid.call($field, fieldErrors); From 9b6bbcde6f2f7e3008a0188accf2dee2b20250ee Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Aug 2024 23:09:23 +0200 Subject: [PATCH 15/38] build(deps): bump browserslist from 4.23.2 to 4.23.3 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/yarn.lock b/yarn.lock index 5661f0aad7..2a6da80f17 100644 --- a/yarn.lock +++ b/yarn.lock @@ -866,13 +866,13 @@ braces@^3.0.2, braces@~3.0.2: fill-range "^7.1.1" browserslist@^4.21.4: - version "4.23.2" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.2.tgz#244fe803641f1c19c28c48c4b6ec9736eb3d32ed" - integrity sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA== + version "4.23.3" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.3.tgz#debb029d3c93ebc97ffbc8d9cbb03403e227c800" + integrity sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA== dependencies: - caniuse-lite "^1.0.30001640" - electron-to-chromium "^1.4.820" - node-releases "^2.0.14" + caniuse-lite "^1.0.30001646" + electron-to-chromium "^1.5.4" + node-releases "^2.0.18" update-browserslist-db "^1.1.0" buffer@^5.5.0: @@ -951,10 +951,10 @@ camelcase@^5.0.0, camelcase@^5.3.1: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== -caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001640: - version "1.0.30001641" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001641.tgz#3572862cd18befae3f637f2a1101cc033c6782ac" - integrity sha512-Phv5thgl67bHYo1TtMY/MurjkHhV4EDaCosezRXgZ8jzA/Ub+wjxAvbGvjoFENStinwi5kCyOYV3mi5tOGykwA== +caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001646: + version "1.0.30001646" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001646.tgz#d472f2882259ba032dd73ee069ff01bfd059b25d" + integrity sha512-dRg00gudiBDDTmUhClSdv3hqRfpbOnU28IpI1T6PBTLWa+kOj0681C8uML3PifYfREuBrVjDGhL3adYpBT6spw== chalk@^2.0.0: version "2.4.2" @@ -1384,10 +1384,10 @@ editorconfig@^0.15.3: semver "^5.6.0" sigmund "^1.0.1" -electron-to-chromium@^1.4.820: - version "1.4.823" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.823.tgz#38587f7aa55bed14930f04091dfc65c39a3d8bd7" - integrity sha512-4h+oPeAiGQOHFyUJOqpoEcPj/xxlicxBzOErVeYVMMmAiXUXsGpsFd0QXBMaUUbnD8hhSfLf9uw+MlsoIA7j5w== +electron-to-chromium@^1.5.4: + version "1.5.4" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.4.tgz#cd477c830dd6fca41fbd5465c1ff6ce08ac22343" + integrity sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA== emoji-regex@^8.0.0: version "8.0.0" @@ -3413,10 +3413,10 @@ node-gyp@^9.4.0: tar "^6.1.2" which "^2.0.2" -node-releases@^2.0.14: - version "2.0.14" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" - integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== +node-releases@^2.0.18: + version "2.0.18" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" + integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== nopt@^6.0.0: version "6.0.0" From eadc3d123941bc13bc9e4ac102105a07f23f170a Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Fri, 2 Aug 2024 22:25:29 +0100 Subject: [PATCH 16/38] fix(shape): use classname alias to short variable access All modules have common used variables inside settings globally aliased which way not completely used inside the shape module --- src/definitions/modules/shape.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/definitions/modules/shape.js b/src/definitions/modules/shape.js index 0bca06cc82..bedeabfea0 100644 --- a/src/definitions/modules/shape.js +++ b/src/definitions/modules/shape.js @@ -185,7 +185,7 @@ set: { defaultSide: function () { - $activeSide = $side.filter('.' + settings.className.active); + $activeSide = $side.filter('.' + className.active); $nextSide = $activeSide.next(selector.side).length > 0 ? $activeSide.next(selector.side) : $side.first(); @@ -211,7 +211,7 @@ currentStageSize: function () { var - $activeSide = $side.filter('.' + settings.className.active), + $activeSide = $side.filter('.' + className.active), width = $activeSide.outerWidth(true), height = $activeSide.outerHeight(true) ; @@ -227,7 +227,7 @@ var $clone = $module.clone().addClass(className.loading), $side = $clone.find('>' + selector.sides + '>' + selector.side), - $activeSide = $side.filter('.' + settings.className.active), + $activeSide = $side.filter('.' + className.active), $nextSide = nextIndex ? $side.eq(nextIndex) : ($activeSide.next(selector.side).length > 0 From fb2d8fcbc3f4de690f6df6a75a76452a8bf7e1a2 Mon Sep 17 00:00:00 2001 From: kutoman Date: Sat, 3 Aug 2024 14:30:36 +0200 Subject: [PATCH 17/38] fix(types): correct transition behavior "set looping" fixing the transition looping enabling call signature. The passed behavior gets interpreted as a nonexistent animation otherwise. --- types/fomantic-ui-transition.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/fomantic-ui-transition.d.ts b/types/fomantic-ui-transition.d.ts index 1f40e41f77..fb14890d7c 100644 --- a/types/fomantic-ui-transition.d.ts +++ b/types/fomantic-ui-transition.d.ts @@ -50,7 +50,7 @@ declare namespace FomanticUI { /** * Enables animation looping. */ - (behavior: 'looping'): JQuery; + (behavior: 'set looping'): JQuery; /** * Removes looping state from element. From 263c192a24e368b9a58e4017f05a253cf2af66dc Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Thu, 8 Aug 2024 17:09:15 +0200 Subject: [PATCH 18/38] fix(types): missing/wrong types for modal. dropdown, popup, transition Some types fixes to reflect settings in modal, dropdown, popup and transition --- types/fomantic-ui-dropdown.d.ts | 35 ++++++++++++++++++++++++------- types/fomantic-ui-modal.d.ts | 28 ++++++++++++++++++++++++- types/fomantic-ui-popup.d.ts | 28 ++++++++++++++++++++++++- types/fomantic-ui-transition.d.ts | 12 ++++++++--- 4 files changed, 90 insertions(+), 13 deletions(-) diff --git a/types/fomantic-ui-dropdown.d.ts b/types/fomantic-ui-dropdown.d.ts index 9be97f48a3..a4e584bcc7 100644 --- a/types/fomantic-ui-dropdown.d.ts +++ b/types/fomantic-ui-dropdown.d.ts @@ -453,7 +453,7 @@ declare namespace FomanticUI { * Alternatively you can provide an 'object' to set individual values for hide/show transitions as well as hide/show duration. * @default 'auto' */ - transition: boolean | object; + transition: string | Dropdown.TransitionSettings; /** * Duration of animation events. @@ -468,13 +468,6 @@ declare namespace FomanticUI { */ displayType: false | string; - /** - * Maximum glyph width, used to calculate search size. - * This is usually size of a "W" in your font in 'em'. - * @default 1.037 - */ - glyphWidth: number; - /** * Whether option headers should have an additional divider line underneath when converted from ' collapseOnActionable: true, // whether the dropdown should collapse upon selection of an actionable item + collapseOnClearable: false, // whether the dropdown should collapse upon clicking the clearable icon // label settings on multi-select label: { diff --git a/types/fomantic-ui-dropdown.d.ts b/types/fomantic-ui-dropdown.d.ts index a4e584bcc7..0dca229d79 100644 --- a/types/fomantic-ui-dropdown.d.ts +++ b/types/fomantic-ui-dropdown.d.ts @@ -480,6 +480,12 @@ declare namespace FomanticUI { */ collapseOnActionable: boolean; + /** + * Whether the dropdown should collapse upon clicking the clearable icon. + * @default false + */ + collapseOnClearable: boolean; + /** * Allows customization of multi-select labels. * @default true