@zanichelli/albe-web-components 19.2.9 → 19.2.11
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 +20 -0
- package/dist/cjs/{iconset-oiCBBbd2.js → iconset-Cz-UsfoU.js} +6 -6
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +36 -6
- package/dist/cjs/z-combobox.cjs.entry.js +10 -7
- package/dist/cjs/z-result-card.cjs.entry.js +1 -1
- package/dist/collection/components/z-combobox/index.js +10 -7
- package/dist/collection/components/z-icon/index.js +31 -2
- package/dist/collection/components/z-input/index.js +2 -1
- package/dist/collection/components/z-input/styles-checkbox-radio.css +2 -0
- package/dist/collection/components/z-input/styles-text.css +5 -0
- package/dist/collection/components/z-result-card/styles.css +8 -5
- package/dist/collection/components/z-tool/index.js +1 -1
- package/dist/collection/constants/iconset.js +6 -6
- package/dist/components/iconset.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index7.js +1 -1
- package/dist/components/z-combobox.js +1 -1
- package/dist/components/z-result-card.js +1 -1
- package/dist/esm/{iconset-CjHS9zeM.js → iconset-AwzX9V8L.js} +6 -6
- package/dist/esm/index.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +36 -6
- package/dist/esm/z-combobox.entry.js +10 -7
- package/dist/esm/z-result-card.entry.js +1 -1
- package/dist/types/components/z-combobox/index.d.ts +1 -0
- package/dist/types/components/z-icon/index.d.ts +13 -0
- package/dist/types/constants/iconset.d.ts +4 -4
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-8a33c769.entry.js +1 -0
- package/dist/web-components-library/p-8eb8b5be.entry.js +1 -0
- package/dist/web-components-library/p-AwzX9V8L.js +1 -0
- package/dist/web-components-library/p-da70be9b.entry.js +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/p-8a33c769.entry.js +1 -0
- package/www/build/p-8eb8b5be.entry.js +1 -0
- package/www/build/p-AwzX9V8L.js +1 -0
- package/www/build/{p-4985ebf0.js → p-b29adff9.js} +1 -1
- package/www/build/p-da70be9b.entry.js +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/web-components-library/p-61992f12.entry.js +0 -1
- package/dist/web-components-library/p-6bd35edf.entry.js +0 -1
- package/dist/web-components-library/p-7b018109.entry.js +0 -1
- package/dist/web-components-library/p-CjHS9zeM.js +0 -1
- package/www/build/p-61992f12.entry.js +0 -1
- package/www/build/p-6bd35edf.entry.js +0 -1
- package/www/build/p-7b018109.entry.js +0 -1
- package/www/build/p-CjHS9zeM.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [19.2.11](https://github.com/ZanichelliEditore/design-system/compare/v19.2.10...v19.2.11) (2026-05-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* correct CSS property order for stylelint ([502d9b8](https://github.com/ZanichelliEditore/design-system/commit/502d9b88b143f980e7dfa818cba5a3b7d53c3bc9))
|
|
11
|
+
* correct CSS property ordering in input clear button styles ([34c3570](https://github.com/ZanichelliEditore/design-system/commit/34c3570a1810fa25cedf9b37fea9e1171378f5b9))
|
|
12
|
+
* **DS-989:** fix focus in z-input when clear icon was pressed ([0406f3d](https://github.com/ZanichelliEditore/design-system/commit/0406f3d52c5c48ab6544957ffc36137dc0e06d3e))
|
|
13
|
+
* increase clear button target size to meet WCAG 2.5.8 ([1571a5f](https://github.com/ZanichelliEditore/design-system/commit/1571a5fd072ed0d37405a089731fd0fd395aedcc))
|
|
14
|
+
* reorder CSS properties to pass stylelint ([ca996ef](https://github.com/ZanichelliEditore/design-system/commit/ca996ef8121c1abe2cb878ba09c7fc12cfcc6480))
|
|
15
|
+
* **z-combobox:** move aria-label to header for selected filter count (WCAG 2.4.6) ([7fdcd7c](https://github.com/ZanichelliEditore/design-system/commit/7fdcd7c392a2b9466cf3c411a26134e8eab87758))
|
|
16
|
+
* **z-input:** correct CSS property order for stylelint ([f9f179a](https://github.com/ZanichelliEditore/design-system/commit/f9f179a16f7f5ac40bdd1a85fd877d288f7f1155))
|
|
17
|
+
* **z-input:** correct CSS property order for stylelint ([f076c04](https://github.com/ZanichelliEditore/design-system/commit/f076c04f87edec8f42ad5d19437c34c40ac22f9c))
|
|
18
|
+
* **z-input:** ensure checkbox label meets WCAG 2.5.8 target size ([456e701](https://github.com/ZanichelliEditore/design-system/commit/456e701073635cfd78217c36f4eed3ca152a70c6))
|
|
19
|
+
* **z-input:** increase radio/checkbox label target size for WCAG 2.5.8 ([003049d](https://github.com/ZanichelliEditore/design-system/commit/003049ddc1b511cd4248cdb53af787f803408e7b))
|
|
20
|
+
* **z-result-card:** adjust clamp values per review feedback ([923e9cf](https://github.com/ZanichelliEditore/design-system/commit/923e9cfcd289b852bd02deef6ca4231d3e6c08a9))
|
|
21
|
+
* **z-result-card:** allow text wrapping at high zoom levels ([02db148](https://github.com/ZanichelliEditore/design-system/commit/02db148e2a7f10fb1fe2ad1477eece4354dd4604))
|
|
22
|
+
|
|
23
|
+
## [19.2.10](https://github.com/ZanichelliEditore/design-system/compare/v19.2.9...v19.2.10) (2026-04-29)
|
|
24
|
+
|
|
5
25
|
## [19.2.9](https://github.com/ZanichelliEditore/design-system/compare/v19.2.8...v19.2.9) (2026-04-29)
|
|
6
26
|
|
|
7
27
|
## [19.2.8](https://github.com/ZanichelliEditore/design-system/compare/v19.2.7...v19.2.8) (2026-04-29)
|
|
@@ -61,7 +61,7 @@ const STROKE_ICONS = {
|
|
|
61
61
|
"back-top": "M461 356L301 528 254 483 500 221 746 483 699 528 539 356 539 980 461 980ZM220 20L780 20 780 92 220 92Z",
|
|
62
62
|
"barrage-questions": "M167 59Q167 41 177 30.5 187 20 206 20L426 20Q444 20 454.5 30.5 465 41 465 59L465 275Q465 293 454.5 303.5 444 314 426 314L206 314Q187 314 177 303.5 167 293 167 275L167 59ZM403 254L403 80 229 80 229 254ZM534 59Q534 41 544.5 30.5 555 20 573 20L794 20Q812 20 822.5 30.5 833 41 833 59L833 275Q833 293 822.5 303.5 812 314 794 314L573 314Q555 314 544.5 303.5 534 293 534 275L534 59ZM768 88L663 187 615 139 582 170 663 251 798 121ZM534 392Q534 374 544 363.5 554 353 573 353L793 353Q811 353 821.5 363.5 832 374 832 392L832 608Q832 626 821.5 636.5 811 647 793 647L573 647Q554 647 544 636.5 534 626 534 608L534 392ZM770 587L770 413 596 413 596 587ZM166 392Q166 374 176.5 363.5 187 353 205 353L426 353Q444 353 454.5 363.5 465 374 465 392L465 608Q465 626 454.5 636.5 444 647 426 647L205 647Q187 647 176.5 636.5 166 626 166 608L166 392ZM400 421L295 520 247 472 214 503 295 584 430 454ZM167 725Q167 707 177 696.5 187 686 206 686L426 686Q444 686 454.5 696.5 465 707 465 725L465 941Q465 959 454.5 969.5 444 980 426 980L206 980Q187 980 177 969.5 167 959 167 941L167 725ZM403 920L403 746 229 746 229 920ZM534 725Q534 707 544.5 696.5 555 686 573 686L794 686Q812 686 822.5 696.5 833 707 833 725L833 941Q833 959 822.5 969.5 812 980 794 980L573 980Q555 980 544.5 969.5 534 959 534 941L534 725ZM768 754L663 853 615 805 582 836 663 917 798 787Z",
|
|
63
63
|
"bg-color": "M420 652Q401 671 376 671 352 671 331 652L116 435Q97 416 97 390 97 365 116 346L273 190 202 119 245 76 316 147 443 20Q462 1 488 1 513 1 532 20L748 235Q767 253 767 280 767 306 748 324L420 652ZM486 67L361 192 433 263 389 307 318 235 194 359 575 407 701 281ZM789 686Q749 686 726 662 703 638 703 604 703 584 712 566 721 548 740 518 774 463 789 429 805 464 837 516 857 547 865.5 565.5 874 584 874 604 874 638 851 662 828 686 789 686ZM103 980Q50 980 50 927L50 822Q50 770 103 770L897 770Q950 770 950 823L950 927Q950 980 897 980L103 980ZM876 940Q897 940 903.5 933 910 926 910 910L910 839Q910 823 903.5 816.5 897 810 876 810L124 810Q103 810 96.5 816.5 90 823 90 839L90 910Q90 926 96.5 933 103 940 124 940L876 940Z",
|
|
64
|
-
"bg-color-
|
|
64
|
+
"bg-color-transparent": "M420 652Q401 671 376 671 352 671 331 652L116 435Q97 416 97 390 97 365 116 346L273 190 202 119 245 76 316 147 443 20Q462 1 488 1 513 1 532 20L748 235Q767 253 767 280 767 306 748 324L420 652ZM486 67L361 192 433 263 389 307 318 235 194 359 575 407 701 281ZM789 686Q749 686 726 662 703 638 703 604 703 584 712 566 721 548 740 518 774 463 789 429 805 464 837 516 857 547 865.5 565.5 874 584 874 604 874 638 851 662 828 686 789 686Z",
|
|
65
65
|
"biology": "M583 550Q619 611 619 678 619 764 559 855L469 997 415 964 456 902 148 702 109 763 55 730 146 588Q191 518 252.5 482 314 446 387 446 406 446 427 449 385 381 385 306 385 221 441 136L533-5 586 29 545 90 853 289 892 228 945 262 854 403Q756 552 614 552 603 552 583 550ZM491 848L507 823Q527 792 541 757L246 567Q223 589 200 623L184 647ZM557 690Q558 683 558 671 558 627 539 591 520 555 482 531 435 502 388 502 345 502 303 524L557 690ZM445 302Q442 352 462 394.5 482 437 524 464 566 493 614 493 657 493 701 468L445 302ZM755 426Q779 402 801 369L817 344 510 144 493 169Q472 200 460 234L755 426Z",
|
|
66
66
|
"black-diamond": "M194 500L500 92 806 504 500 910Z",
|
|
67
67
|
"blockquote": "M852 349L583 347 583 102 930 104 930 351 792 888 715 888ZM359 349L90 347 90 102 437 105 437 353 299 888 222 888Z",
|
|
@@ -475,7 +475,7 @@ const FILLED_ICONS = {
|
|
|
475
475
|
"back-top-filled": "M461 356L301 528 254 483 500 221 746 483 699 528 539 356 539 980 461 980ZM220 20L780 20 780 92 220 92Z",
|
|
476
476
|
"barrage-questions-filled": "M167 59Q167 41 177 30.5 187 20 206 20L426 20Q444 20 454.5 30.5 465 41 465 59L465 275Q465 293 454.5 303.5 444 314 426 314L206 314Q187 314 177 303.5 167 293 167 275L167 59ZM403 254L403 80 229 80 229 254ZM534 59Q534 41 544.5 30.5 555 20 573 20L794 20Q812 20 822.5 30.5 833 41 833 59L833 275Q833 293 822.5 303.5 812 314 794 314L573 314Q555 314 544.5 303.5 534 293 534 275L534 59ZM768 88L663 187 615 139 582 170 663 251 798 121ZM534 392Q534 374 544 363.5 554 353 573 353L793 353Q811 353 821.5 363.5 832 374 832 392L832 608Q832 626 821.5 636.5 811 647 793 647L573 647Q554 647 544 636.5 534 626 534 608L534 392ZM770 587L770 413 596 413 596 587ZM166 392Q166 374 176.5 363.5 187 353 205 353L426 353Q444 353 454.5 363.5 465 374 465 392L465 608Q465 626 454.5 636.5 444 647 426 647L205 647Q187 647 176.5 636.5 166 626 166 608L166 392ZM400 421L295 520 247 472 214 503 295 584 430 454ZM167 725Q167 707 177 696.5 187 686 206 686L426 686Q444 686 454.5 696.5 465 707 465 725L465 941Q465 959 454.5 969.5 444 980 426 980L206 980Q187 980 177 969.5 167 959 167 941L167 725ZM403 920L403 746 229 746 229 920ZM534 725Q534 707 544.5 696.5 555 686 573 686L794 686Q812 686 822.5 696.5 833 707 833 725L833 941Q833 959 822.5 969.5 812 980 794 980L573 980Q555 980 544.5 969.5 534 959 534 941L534 725ZM768 754L663 853 615 805 582 836 663 917 798 787Z",
|
|
477
477
|
"bg-color-filled": "M420 652Q401 671 376 671 352 671 331 652L116 435Q97 416 97 390 97 365 116 346L273 190 202 119 245 76 316 147 443 20Q462 1 488 1 513 1 532 20L748 235Q767 253 767 280 767 306 748 324L420 652ZM486 67L361 192 433 263 389 307 318 235 194 359 575 407 701 281ZM789 686Q749 686 726 662 703 638 703 604 703 584 712 566 721 548 740 518 774 463 789 429 805 464 837 516 857 547 865.5 565.5 874 584 874 604 874 638 851 662 828 686 789 686ZM103 980Q50 980 50 927L50 822Q50 770 103 770L897 770Q950 770 950 823L950 927Q950 980 897 980L103 980ZM876 940Q897 940 903.5 933 910 926 910 910L910 839Q910 823 903.5 816.5 897 810 876 810L124 810Q103 810 96.5 816.5 90 823 90 839L90 910Q90 926 96.5 933 103 940 124 940L876 940Z",
|
|
478
|
-
"bg-color-
|
|
478
|
+
"bg-color-transparent-filled": "M420 652Q401 671 376 671 352 671 331 652L116 435Q97 416 97 390 97 365 116 346L273 190 202 119 245 76 316 147 443 20Q462 1 488 1 513 1 532 20L748 235Q767 253 767 280 767 306 748 324L420 652ZM486 67L361 192 433 263 389 307 318 235 194 359 575 407 701 281ZM789 686Q749 686 726 662 703 638 703 604 703 584 712 566 721 548 740 518 774 463 789 429 805 464 837 516 857 547 865.5 565.5 874 584 874 604 874 638 851 662 828 686 789 686Z",
|
|
479
479
|
"biology-filled": "M583 550Q619 611 619 678 619 764 559 855L469 997 415 964 456 902 149 702 109 763 55 730 146 588Q191 518 252.5 482 314 446 387 446 406 446 427 449 385 381 385 306 385 221 441 136L533-5 586 29 545 90 853 290 892 228 945 262 854 403Q756 552 614 552 603 552 583 550ZM491 848L507 823Q530 786 541 757L245 566Q221 590 200 623L184 647ZM557 690Q558 683 558 669 558 626 539 590.5 520 555 482 531 437 502 388 502 344 502 303 525L557 690ZM446 303Q442 352 462 394.5 482 437 524 464 566 493 613 493 656 493 700 468L446 303ZM756 426Q785 394 801 369L817 344 510 144 493 169Q469 210 460 234L756 426Z",
|
|
480
480
|
"black-diamond-filled": "M194 500L500 92 806 504 500 910Z",
|
|
481
481
|
"blockquote-filled": "M852 349L583 347 583 102 930 104 930 351 792 888 715 888ZM359 349L90 347 90 102 437 105 437 353 299 888 222 888Z",
|
|
@@ -1013,14 +1013,14 @@ const ICONS = Object.assign(Object.assign(Object.assign(Object.assign(Object.ass
|
|
|
1013
1013
|
});
|
|
1014
1014
|
/** List of icons that have a color indicator. */
|
|
1015
1015
|
const COLOR_INDICATOR_ICONS = [
|
|
1016
|
-
"bg-color",
|
|
1017
|
-
"font-color",
|
|
1018
|
-
"picker-color",
|
|
1019
|
-
"stroke-color",
|
|
1020
1016
|
"bg-color-filled",
|
|
1017
|
+
"bg-color",
|
|
1021
1018
|
"font-color-filled",
|
|
1019
|
+
"font-color",
|
|
1022
1020
|
"picker-color-filled",
|
|
1021
|
+
"picker-color",
|
|
1023
1022
|
"stroke-color-filled",
|
|
1023
|
+
"stroke-color",
|
|
1024
1024
|
];
|
|
1025
1025
|
|
|
1026
1026
|
exports.COLOR_INDICATOR_ICONS = COLOR_INDICATOR_ICONS;
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -4,7 +4,7 @@ var index$1 = require('./index-D_S5lGcb.js');
|
|
|
4
4
|
var index = require('./index-wGaSHN1_.js');
|
|
5
5
|
var breakpoints = require('./breakpoints-B7vFm-3T.js');
|
|
6
6
|
var utils = require('./utils-BY7xrW7W.js');
|
|
7
|
-
var iconset = require('./iconset-
|
|
7
|
+
var iconset = require('./iconset-Cz-UsfoU.js');
|
|
8
8
|
|
|
9
9
|
const stylesCss$c = () => `:host{position:relative;display:block;box-shadow:var(--shadow-2)}:host,*{box-sizing:border-box}.heading-panel{--title-line-height:1.333;--title-font-size:var(--font-size-6);position:relative;display:flex;width:100%;max-width:var(--app-header-content-max-width, 100%);flex-direction:column;flex-grow:0;flex-shrink:0;align-items:baseline;padding:calc(var(--space-unit) * 2);margin:0 auto;background:var(--app-header-bg, var(--color-surface01))}:host(:empty) .heading-panel{padding:0}.heading-container{position:relative;z-index:1;display:flex;width:100%;max-width:100%;flex:1 auto;flex-direction:column;justify-content:flex-start}.heading-panel.has-menubar{padding-bottom:0}.heading-panel .heading-container{flex-direction:column-reverse}:host([enable-search]) .heading-panel .heading-container{flex-direction:column}:host([enable-search][search-page-url]) .heading-panel .heading-container{flex-direction:row}.heading-title{display:flex;width:100%;flex-direction:row;align-items:flex-start}.heading-title:not(:last-child){margin-right:var(--space-unit)}.z-logo,.search-page-button{display:flex;height:calc(var(--title-font-size) * var(--title-line-height));align-items:center}.z-logo img{height:24px;margin:0 var(--space-unit) 0 0;content:url('data:image/svg+xml,<svg width="61" height="32" viewBox="0 0 61 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.9874 32C7.1595 32 0 24.8349 0 16C0 7.16513 7.1595 0 15.9874 0H45.0126C53.8405 0 61 7.16513 61 16C61 24.8349 53.8405 32 45.0126 32H15.9874Z" fill="%23E2011A"/><path d="M58.5435 15.9992C58.5435 23.4743 52.4892 29.5403 45.0129 29.5403C37.5367 29.5403 31.4824 23.4813 31.4824 15.9992C31.4824 8.51701 37.5367 2.45801 45.0129 2.45801C52.4892 2.45801 58.5435 8.51701 58.5435 15.9992Z" fill="white"/><path d="M40.7107 8.01862H49.8976V11.3158L44.139 21.7077H50.0384V24.6457H39.9785V21.4048L45.7371 10.9636H40.7107V8.01862Z" fill="%23E2011A"/><path d="M12.2914 24.6449C10.982 24.6449 10.271 23.8136 10.271 22.6722V7.04565H12.1718V22.9822H13.981V24.6449H12.2914Z" fill="white"/><path d="M25.6461 24.6448C24.2452 24.6448 23.675 23.7853 23.5342 22.6439H23.4145C22.8935 24.1446 21.5841 24.9266 19.8735 24.9266C17.2828 24.9266 15.7622 23.4964 15.7622 21.2137C15.7622 18.931 17.4236 17.6206 20.9928 17.6206H23.4145V16.4088C23.4145 14.6756 22.4641 13.7245 20.5141 13.7245C19.0428 13.7245 18.0642 14.4361 17.4025 15.5563L16.262 14.4854C16.9308 13.175 18.4021 12.0829 20.6126 12.0829C23.5623 12.0829 25.3152 13.6259 25.3152 16.2186V22.9751H26.7162V24.6378H25.6461V24.6448ZM23.4145 21.0799V19.0578H20.8942C18.733 19.0578 17.7545 19.7272 17.7545 20.9108V21.411C17.7545 22.6228 18.7049 23.3132 20.1762 23.3132C22.0558 23.3132 23.4074 22.341 23.4074 21.0799H23.4145Z" fill="white"/></svg>')}.product-logo{display:none}.product-logo ::slotted([slot="product-logo"]){width:32px;height:32px;margin-right:var(--space-unit)}.product-logo ::slotted([slot="product-logo"]) img{width:100%;height:100%;object-fit:cover}::slotted([slot="title"]),::slotted([slot="stucked-title"]),.stucked-title{margin:0;color:var(--app-header-text-color, var(--color-default-text));font-family:var(--font-family-serif);font-weight:var(--font-sb)}::slotted([slot="title"]){display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;font-size:var(--title-font-size);-webkit-line-clamp:2;line-clamp:2;line-height:var(--title-line-height);text-overflow:ellipsis}::slotted(a:is([slot="title"],[slot="stucked-title"])){text-decoration:none}:host([enable-search]) ::slotted([slot="title"])+*{margin-left:calc(var(--space-unit) * 2)}:host([enable-offcanvas]:not([menu-length="0"])) .top-subtitle{padding-left:calc(var(--space-unit) * 4 + var(--space-unit))}::slotted([slot="top-subtitle"]){display:-webkit-box;overflow:hidden;max-width:80%;margin:0;-webkit-box-orient:vertical;color:var(--color-default-text);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-style:italic;font-weight:var(--font-rg);-webkit-line-clamp:2;line-clamp:2}.search-page-button{margin-left:auto}.menu-container{display:flex;flex:1 auto;column-gap:calc(var(--space-unit) * 4)}.menu-container:focus:focus-visible{outline:none}:host([menu-length="0"]) .menu-container,.menu-container:empty{display:none}.menu-container ::slotted([open]){position:relative;z-index:3}.menu-container ::slotted([slot="menu"]:not(:last-child))::after{position:absolute;top:calc(1.5em / 2);right:calc(var(--space-unit) * -2);width:var(--border-size-small);height:1em;background-color:var(--color-default-icon);content:"";font-size:var(--font-size-3);transform:translateY(-50%)}z-searchbar{z-index:0;display:flex;width:100%;align-items:center}.heading-stuck{position:fixed;z-index:20;top:var(--app-header-top-offset, 48px);left:0;width:100%;max-width:100%;animation:slide-stuck-heading-in 250ms ease-out;background:var(--app-header-stucked-bg, var(--color-surface01));box-shadow:var(--shadow-2);color:var(--app-header-stucked-text-color, var(--color-default-text))}.heading-stuck-content{display:flex;max-width:var(--app-header-content-max-width, 100%);align-items:center;padding:var(--space-unit) var(--grid-margin);margin:0 auto}.heading-stuck .heading-title{--title-font-size:var(--font-size-5);--title-line-height:1.4;overflow:hidden;align-items:center}.heading-stuck .stucked-title{overflow:hidden;font-size:var(--title-font-size);line-height:var(--title-line-height);text-overflow:ellipsis;white-space:nowrap}.drawer-trigger,::slotted([slot="menu-button"]){display:flex;height:calc(var(--title-font-size) * var(--title-line-height));align-items:center;padding:0;border:0;margin-right:var(--space-unit);appearance:none;background:none;border-radius:0;color:inherit;cursor:pointer;outline:none}.drawer-trigger:focus:focus-visible z-icon{box-shadow:var(--shadow-focus-primary)}.drawer-trigger z-icon{--z-icon-width:calc(var(--space-unit) * 4);--z-icon-height:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.drawer-content{display:none}z-offcanvas{--z-offcanvas--top-space:var(--app-header-top-offset)}z-offcanvas[open] .drawer-content{display:flex;width:100%;flex:1 auto;flex-direction:column}z-offcanvas[open] .drawer-content ::slotted(z-menu){width:100%}.drawer-close{--z-icon-width:calc(var(--space-unit) * 4);--z-icon-height:calc(var(--space-unit) * 4);padding:0;border:0;margin:var(--space-unit) 0 calc(var(--space-unit) * 2.5);appearance:none;background:transparent;border-radius:0;cursor:pointer;outline:none}.drawer-close z-icon{fill:var(--color-default-icon)}.drawer-close:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}@media (max-width: 767px){:host([enable-search]) .heading-panel .heading-container{row-gap:calc(var(--space-unit) * 1.5)}}@media (min-width: 768px){.heading-panel{--title-font-size:var(--font-size-9);padding:calc(var(--space-unit) * 1.5) var(--grid-margin) calc(var(--space-unit) * 1.25)}:host([enable-search][search-page-url]) .heading-panel .heading-container{flex-direction:column}.heading-panel .heading-container{flex-direction:column;margin-right:auto}.z-logo img{height:32px}.product-logo{display:flex;height:calc(var(--title-font-size) * var(--title-line-height));align-items:center}.has-top-subtitle .z-logo{display:none}.top-subtitle.has-product-logo{padding-left:calc(32px + var(--space-unit))}z-searchbar{width:30%;height:calc(var(--title-font-size) * var(--title-line-height));margin-left:auto}.menu-container{flex:initial}.menu-container>[role="menubar"]{display:contents}:host(:not([enable-offcanvas])) .menu-container{margin-top:calc((var(--space-unit) * 1.75))}:host(:not([enable-offcanvas])) .heading-container .drawer-trigger{display:none}.heading-stuck .heading-title{--title-font-size:var(--font-size-8);--title-line-height:1.5}.heading-stuck-content{padding:6px var(--grid-margin)}:host(:not([enable-offcanvas],[menu-length="0"])){padding-left:0}}@media (min-width: 1152px){z-searchbar{min-width:calc(var(--space-unit) * 45)}}@keyframes slide-stuck-heading-in{0%{transform:translate3d(0, -100%, 0)}100%{transform:none}}`;
|
|
10
10
|
|
|
@@ -365,6 +365,8 @@ ZDivider.style = stylesCss$a();
|
|
|
365
365
|
|
|
366
366
|
const stylesCss$9 = () => `:host{display:inline;margin-right:var(--z-icon-right-margin, 0);margin-left:var(--z-icon-left-margin, 0);line-height:0;vertical-align:middle}.icon-wrapper{position:relative;z-index:0;display:inline-block}svg:not([width]){width:var(--z-icon-width, 1.125rem)}svg:not([height]){height:var(--z-icon-height, 1.125rem)}.icon-wrapper svg.color-indicator{position:absolute;z-index:-1;bottom:0;left:0}`;
|
|
367
367
|
|
|
368
|
+
// https://regex101.com/r/ZnoZQ5/3
|
|
369
|
+
const ICON_NAME_SUFFIX_REGEX = /^(.+?)(-transparent)?(-filled|-button)?$/;
|
|
368
370
|
const ZIcon = class {
|
|
369
371
|
constructor(hostRef) {
|
|
370
372
|
index$1.registerInstance(this, hostRef);
|
|
@@ -379,22 +381,49 @@ const ZIcon = class {
|
|
|
379
381
|
}
|
|
380
382
|
return index$1.h("polygon", { points: iconValue });
|
|
381
383
|
}
|
|
384
|
+
get hasColorIndicator() {
|
|
385
|
+
return iconset.COLOR_INDICATOR_ICONS.includes(this.name);
|
|
386
|
+
}
|
|
387
|
+
get needsTransparentIndicator() {
|
|
388
|
+
var _a;
|
|
389
|
+
return ["transparent", "#ffffff00"].includes((_a = this.indicatorColor) === null || _a === void 0 ? void 0 : _a.toLowerCase());
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* For icons with a color indicator, if `indicatorColor` is set to transparent, use a specific icon version without the color indicator.
|
|
393
|
+
* Using the icon without the color indicator prevents visual ambiguity between a transparent indicator and one filled with the background color.
|
|
394
|
+
* @returns The name of the corresponding icon without the indicator, or the original icon name if no transparent version is needed or available.
|
|
395
|
+
*/
|
|
396
|
+
getTransparentIndicatorIconIfNeeded() {
|
|
397
|
+
var _a;
|
|
398
|
+
const transparentIconName = (_a = this.name) === null || _a === void 0 ? void 0 : _a.replace(ICON_NAME_SUFFIX_REGEX, "$1-transparent$3");
|
|
399
|
+
if (!this.hasColorIndicator || !this.needsTransparentIndicator || !iconset.ICONS[transparentIconName]) {
|
|
400
|
+
return this.name;
|
|
401
|
+
}
|
|
402
|
+
return transparentIconName;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Render the icon with the color indicator.
|
|
406
|
+
* The indicator is rendered as a separate SVG element behind the main icon, filled with the `indicatorColor`.
|
|
407
|
+
*/
|
|
408
|
+
renderColorIndicator() {
|
|
409
|
+
return (index$1.h("svg", { class: "color-indicator", fill: this.indicatorColor || "#FFFFFF00", viewBox: "0 0 1000 1000", width: this.width, height: this.height }, this.selectPathOrPolygon(iconset.ICONS["picker-color"])));
|
|
410
|
+
}
|
|
382
411
|
renderBaseIcon() {
|
|
383
|
-
return (index$1.h("svg", { id: this.iconid || undefined, fill: this.fill ? `var(--${this.fill})` : undefined, viewBox: "0 0 1000 1000", width: this.width, height: this.height }, this.selectPathOrPolygon(iconset.ICONS[this.
|
|
412
|
+
return (index$1.h("svg", { id: this.iconid || undefined, fill: this.fill ? `var(--${this.fill})` : undefined, viewBox: "0 0 1000 1000", width: this.width, height: this.height }, this.selectPathOrPolygon(iconset.ICONS[this.getTransparentIndicatorIconIfNeeded()])));
|
|
384
413
|
}
|
|
385
414
|
render() {
|
|
386
|
-
return (index$1.h(index$1.Host, { key: '
|
|
415
|
+
return (index$1.h(index$1.Host, { key: '4a8e4edb8055077b821539897d38849acbccc5e1', "aria-hidden": "true" }, this.hasColorIndicator && !this.needsTransparentIndicator ? (index$1.h("div", { class: "icon-wrapper" }, this.renderColorIndicator(), this.renderBaseIcon())) : (this.renderBaseIcon())));
|
|
387
416
|
}
|
|
388
417
|
};
|
|
389
418
|
ZIcon.style = stylesCss$9();
|
|
390
419
|
|
|
391
420
|
const stylesGeneralCss = () => `.sc-z-input-h{display:inline-block;width:inherit}.sc-z-input-h *.sc-z-input{box-sizing:border-box}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}input[type="search"].sc-z-input::-webkit-search-decoration,input[type="search"].sc-z-input::-webkit-search-cancel-button,input[type="search"].sc-z-input::-webkit-search-results-button,input[type="search"].sc-z-input::-webkit-search-results-decoration{display:none}input.sc-z-input,textarea.sc-z-input{background:var(--color-form-background);fill:var(--color-form-default-icon);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg);outline:none}input.sc-z-input,.textarea-wrapper.sc-z-input{border:var(--border-size-small) solid var(--color-form-surface04);border-radius:var(--border-radius-small);color:var(--color-form-default-text)}[size="small"].sc-z-input-h input.sc-z-input,[size="small"].sc-z-input-h textarea.sc-z-input,[size="x-small"].sc-z-input-h input.sc-z-input,[size="x-small"].sc-z-input-h textarea.sc-z-input{font-size:var(--font-size-2)}.cursor-select.sc-z-input-h input.sc-z-input{cursor:pointer}input.sc-z-input:not([readonly]):hover,.textarea-wrapper.sc-z-input:not(.readonly):hover{outline:var(--border-size-medium) solid var(--color-surface04);outline-offset:-2px}.sc-z-input-h:not(.active-select) input.sc-z-input:focus:focus-visible,.sc-z-input-h:not([readonly="true"]) .textarea-wrapper.sc-z-input:focus-within{border-color:var(--color-form-active-primary);box-shadow:var(--shadow-focus-primary);color:var(--color-form-active-primary)}.sc-z-input-h input.sc-z-input:focus:focus-visible:hover,.textarea-wrapper.sc-z-input:not(.readonly):focus-within:hover{outline-color:var(--color-form-active-primary)}.sc-z-input-h input.sc-z-input:focus:focus-visible+.icons-wrapper.sc-z-input{fill:var(--color-form-active-primary)}.active-select.sc-z-input-h input.sc-z-input{border:var(--border-size-small) solid var(--color-form-active-primary)}.cursor-select.sc-z-input-h input.sc-z-input:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-input-h input[readonly].sc-z-input:focus:focus-visible{border-color:var(--color-form-surface03);box-shadow:none}.input-success.sc-z-input{border-color:var(--color-form-success01);background:var(--color-form-inverse-success)}.input-success.sc-z-input:focus:focus-visible+.icons-wrapper.sc-z-input,.input-success.sc-z-input+.icons-wrapper.sc-z-input{fill:var(--color-form-success01)}.input-error.sc-z-input{border-color:var(--color-form-hover-error);background:var(--color-form-inverse-error)}.input-error.sc-z-input:focus:focus-visible+.icons-wrapper.sc-z-input,.input-error.sc-z-input+.icons-wrapper.sc-z-input{fill:var(--color-form-hover-error)}.input-warning.sc-z-input{border-color:var(--color-form-hover-warning);background:var(--color-form-inverse-warning)}.input-warning.sc-z-input:focus:focus-visible+.icons-wrapper.sc-z-input,.input-warning.sc-z-input+.icons-wrapper.sc-z-input{fill:var(--color-form-hover-warning)}.sc-z-input:is(.input-success,.input-error.sc-z-input,.input-warning).sc-z-input:focus:focus-visible{color:var(--color-form-default-text)}.sc-z-input-h:not(.active-select) input[readonly].sc-z-input,.textarea-wrapper.readonly.sc-z-input{border-color:var(--color-form-surface03);fill:var(--color-form-disabled01-icon);pointer-events:none}[disabled].sc-z-input-h:not([disabled="false"]) input.sc-z-input,[disabled].sc-z-input-h:not([disabled="false"]) .textarea-wrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled="false"]) z-icon.sc-z-input{border-color:var(--color-form-disabled03);box-shadow:none;color:var(--color-form-disabled-text);fill:var(--color-form-disabled01-icon);pointer-events:none}[disabled].sc-z-input-h:not([disabled="false"]) input.sc-z-input:hover{border-width:var(--border-size-small)}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-form-placeholder-text)}.sc-z-input::-webkit-textarea-placeholder{color:var(--color-form-placeholder-text)}.sc-z-input:-ms-textarea-placeholder{color:var(--color-form-placeholder-text)}.sc-z-input::placeholder{color:var(--color-form-placeholder-text)}[disabled].sc-z-input-h:not([disabled="false"]) label.z-label.sc-z-input{color:var(--color-disabled03)}`;
|
|
392
421
|
|
|
393
|
-
const stylesTextCss = () => `.text-wrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1;fill:var(--color-form-default-icon)}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);box-sizing:border-box;padding:0 calc(var(--space-unit) * 1.5);margin:0}[size="small"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4.5)}[size="x-small"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.sc-z-input,.text-wrapper.sc-z-input>div.sc-z-input>input.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input{position:absolute;z-index:2;top:50%;right:calc(var(--space-unit) * 1.5);display:flex;pointer-events:none;transform:translateY(-50%)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.input-icon.sc-z-input{display:flex;padding:0;border:0;background:none;color:inherit;font:inherit;pointer-events:initial}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>.input-icon.sc-z-input+.input-icon.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.input-icon.hidden.sc-z-input{display:none}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.reset-icon.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.toggle-password-icon.sc-z-input{cursor:pointer}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>.input-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>.input-icon.small.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>.input-icon.x-small.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.input-icon.sc-z-input:focus{box-shadow:var(--shadow-focus-primary);outline:none !important}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:currentcolor}`;
|
|
422
|
+
const stylesTextCss = () => `.text-wrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1;fill:var(--color-form-default-icon)}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);box-sizing:border-box;padding:0 calc(var(--space-unit) * 1.5);margin:0}[size="small"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4.5)}[size="x-small"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.sc-z-input,.text-wrapper.sc-z-input>div.sc-z-input>input.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input{position:absolute;z-index:2;top:50%;right:calc(var(--space-unit) * 1.5);display:flex;pointer-events:none;transform:translateY(-50%)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.input-icon.sc-z-input{display:flex;padding:0;border:0;background:none;color:inherit;font:inherit;pointer-events:initial}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>.input-icon.sc-z-input+.input-icon.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.input-icon.hidden.sc-z-input{display:none}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.reset-icon.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.toggle-password-icon.sc-z-input{display:flex;min-width:24px;min-height:24px;align-items:center;justify-content:center;cursor:pointer}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>.input-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>.input-icon.small.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>.input-icon.x-small.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.input-icon.sc-z-input:focus{box-shadow:var(--shadow-focus-primary);outline:none !important}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:currentcolor}`;
|
|
394
423
|
|
|
395
424
|
const stylesTextareaCss = () => `.textarea-wrapper.sc-z-input{width:100%;height:100%;padding:calc(var(--space-unit) * 1.5)}.textarea-wrapper.sc-z-input:not(.input-error,.input-success.sc-z-input,.input-warning).sc-z-input{background-color:var(--color-form-background)}textarea.sc-z-input{width:100%;min-height:132px;padding:0;border:none;margin:0;color:currentcolor;resize:none}`;
|
|
396
425
|
|
|
397
|
-
const stylesCheckboxRadioCss = () => `.radio-wrapper.sc-z-input,.checkbox-wrapper.sc-z-input{position:relative;display:inline-flex;flex-direction:row;align-items:center;color:var(--color-default-text);fill:var(--color-primary01);font-family:var(--font-family-sans)}.radio-wrapper.sc-z-input:hover,.checkbox-wrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary-icon)}.radio-wrapper.sc-z-input>input.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input{position:absolute;z-index:-1;opacity:0;pointer-events:none}.radio-wrapper.sc-z-input .radio-label.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{display:inline-flex;align-items:center;margin:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1;text-transform:inherit}.radio-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkbox-label.sc-z-input{cursor:pointer}.radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{cursor:pointer;fill:inherit}[size="small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size="small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}[size="small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size="small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-2)}[size="x-small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size="x-small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:14px;--z-icon-height:14px}[size="x-small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size="x-small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-1)}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input{flex-direction:row}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input{flex-direction:row-reverse}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}[size="small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size="small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input,[size="x-small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size="x-small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}[size="small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size="small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input,[size="x-small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size="x-small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:calc(var(--space-unit) * 0.5)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input{border-radius:50%}.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{border-radius:var(--border-radius-small)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{box-shadow:var(--shadow-focus-primary)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input{color:var(--color-disabled03)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input>z-icon.sc-z-input{cursor:default;fill:var(--color-disabled01)}`;
|
|
426
|
+
const stylesCheckboxRadioCss = () => `.radio-wrapper.sc-z-input,.checkbox-wrapper.sc-z-input{position:relative;display:inline-flex;flex-direction:row;align-items:center;color:var(--color-default-text);fill:var(--color-primary01);font-family:var(--font-family-sans)}.radio-wrapper.sc-z-input:hover,.checkbox-wrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary-icon)}.radio-wrapper.sc-z-input>input.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input{position:absolute;z-index:-1;opacity:0;pointer-events:none}.radio-wrapper.sc-z-input .radio-label.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{display:inline-flex;min-height:24px;align-items:center;padding:3px 0;margin:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1;text-transform:inherit}.radio-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkbox-label.sc-z-input{cursor:pointer}.radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{cursor:pointer;fill:inherit}[size="small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size="small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}[size="small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size="small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-2)}[size="x-small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size="x-small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:14px;--z-icon-height:14px}[size="x-small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size="x-small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-1)}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input{flex-direction:row}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input{flex-direction:row-reverse}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}[size="small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size="small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input,[size="x-small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size="x-small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}[size="small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size="small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input,[size="x-small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size="x-small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:calc(var(--space-unit) * 0.5)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input{border-radius:50%}.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{border-radius:var(--border-radius-small)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{box-shadow:var(--shadow-focus-primary)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input{color:var(--color-disabled03)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input>z-icon.sc-z-input{cursor:default;fill:var(--color-disabled01)}`;
|
|
398
427
|
|
|
399
428
|
const ZInput = class {
|
|
400
429
|
constructor(hostRef) {
|
|
@@ -611,6 +640,7 @@ const ZInput = class {
|
|
|
611
640
|
return (index$1.h("button", { type: "button", class: { "reset-icon": true, "input-icon": true, hidden }, "aria-label": "cancella il contenuto dell'input", onClick: () => {
|
|
612
641
|
this.inputRef.value = "";
|
|
613
642
|
this.emitInputChange("");
|
|
643
|
+
this.inputRef.focus();
|
|
614
644
|
} }, index$1.h("z-icon", { name: "multiply", class: this.size })));
|
|
615
645
|
}
|
|
616
646
|
renderShowHidePassword() {
|
|
@@ -667,7 +697,7 @@ const ZInput = class {
|
|
|
667
697
|
default:
|
|
668
698
|
input = this.renderInputText(this.type);
|
|
669
699
|
}
|
|
670
|
-
return index$1.h(index$1.Host, { key: '
|
|
700
|
+
return index$1.h(index$1.Host, { key: 'bc35a655bec5191649c1089a66b41911359da847' }, input);
|
|
671
701
|
}
|
|
672
702
|
get hostElement() { return index$1.getElement(this); }
|
|
673
703
|
};
|
|
@@ -214,16 +214,22 @@ const ZCombobox = class {
|
|
|
214
214
|
toggleComboBox() {
|
|
215
215
|
this.isopen = !this.isopen;
|
|
216
216
|
}
|
|
217
|
+
getHeaderAriaLabel() {
|
|
218
|
+
if (!this.label || this.selectedCounter <= 0) {
|
|
219
|
+
return undefined;
|
|
220
|
+
}
|
|
221
|
+
const suffix = this.selectedCounter === 1 ? "elemento selezionato" : "elementi selezionati";
|
|
222
|
+
return `${this.label}: ${this.selectedCounter} ${suffix}`;
|
|
223
|
+
}
|
|
217
224
|
getComboboxA11yAttributes(isZInput) {
|
|
218
225
|
const role = "combobox";
|
|
219
|
-
const ariaLabel = this.htmlAriaLabel;
|
|
220
226
|
const ariaExpanded = this.isopen ? "true" : "false";
|
|
221
227
|
const ariaActivedescendant = this.isopen ? this.focusedItemId : "";
|
|
222
228
|
const ariaControls = `${this.inputid}_list`;
|
|
223
229
|
if (isZInput) {
|
|
224
230
|
return {
|
|
225
231
|
"role": role,
|
|
226
|
-
"aria-label":
|
|
232
|
+
"aria-label": this.htmlAriaLabel,
|
|
227
233
|
"html-aria-expanded": ariaExpanded,
|
|
228
234
|
"html-aria-activedescendant": ariaActivedescendant,
|
|
229
235
|
"html-aria-controls": ariaControls,
|
|
@@ -231,7 +237,6 @@ const ZCombobox = class {
|
|
|
231
237
|
}
|
|
232
238
|
return {
|
|
233
239
|
"role": role,
|
|
234
|
-
"aria-label": ariaLabel,
|
|
235
240
|
"aria-expanded": ariaExpanded,
|
|
236
241
|
"aria-activedescendant": ariaActivedescendant,
|
|
237
242
|
"aria-controls": ariaControls,
|
|
@@ -239,9 +244,7 @@ const ZCombobox = class {
|
|
|
239
244
|
}
|
|
240
245
|
renderHeader() {
|
|
241
246
|
const comboboxA11yAttributes = !this.hassearch ? this.getComboboxA11yAttributes(false) : {};
|
|
242
|
-
return (index.h("div", Object.assign({ class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (e) => this.handleHeaderKeyDown(e), role: "button", tabindex: 0, "aria-controls": "open-combo-data", "aria-expanded": this.isopen ? "true" : "false" }, comboboxA11yAttributes), index.h("span", { class: "body-3", "
|
|
243
|
-
? `${this.label}${this.selectedCounter > 0 ? ` - ${this.selectedCounter} selezionati` : ``}`
|
|
244
|
-
: undefined }, this.label, index.h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), index.h("z-icon", { name: "caret-down", class: this.size })));
|
|
247
|
+
return (index.h("div", Object.assign({ class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (e) => this.handleHeaderKeyDown(e), role: "button", tabindex: 0, "aria-controls": "open-combo-data", "aria-expanded": this.isopen ? "true" : "false", "aria-label": this.getHeaderAriaLabel() }, comboboxA11yAttributes), index.h("span", { class: "body-3" }, this.label, index.h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), index.h("z-icon", { name: "caret-down", class: this.size })));
|
|
245
248
|
}
|
|
246
249
|
renderContent() {
|
|
247
250
|
return (index.h("div", { id: "open-combo-data", class: "open-combo-data" }, this.hassearch && this.renderSearchInput(), index.h("div", { role: "listbox", "aria-label": this.label, "aria-multiselectable": "true", id: `${this.inputid}_list`, "aria-owns": `${this.hascheckall ? `${this.getCheckAllOptionId()} ` : ``}${this.itemsList.map((item) => this.getOptionId(item)).join(" ")}` }, this.renderItems())));
|
|
@@ -304,7 +307,7 @@ const ZCombobox = class {
|
|
|
304
307
|
return (index.h("z-list-element", { class: "check-all-wrapper", role: "presentation", htmlTabindex: -1, dividerType: index$1.ListDividerType.ELEMENT, dividerColor: "gray800", size: this.getControlToListSize(), disabled: !!isDisabled }, index.h("span", { class: "option-wrap", role: "presentation", onClick: () => this.checkOption(optionId) }, index.h("z-icon", { name: allChecked ? "checkbox-checked" : "checkbox", class: this.focusedItemId === optionId ? "focused" : "" }), index.h("span", { id: optionId, role: isDisabled ? "presentation" : "option", "aria-selected": allChecked ? "true" : "false" }, allChecked ? this.uncheckalltext : this.checkalltext))));
|
|
305
308
|
}
|
|
306
309
|
render() {
|
|
307
|
-
return (index.h("div", { key: '
|
|
310
|
+
return (index.h("div", { key: '85e406623f826020f0d8236c33c2f79785f23d10', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
|
|
308
311
|
}
|
|
309
312
|
get element() { return index.getElement(this); }
|
|
310
313
|
static get watchers() { return {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-D_S5lGcb.js');
|
|
4
4
|
|
|
5
|
-
const stylesCss = () => `:host,*{box-sizing:border-box}:host{display:flex;overflow:hidden;min-width:0;height:11.125rem;padding:var(--space-unit);border:var(--border-size-medium) solid var(--color-surface02);background-color:var(--color-surface01);border-radius:var(--border-size-large);cursor:pointer;font-family:var(--font-family-sans);gap:calc(var(--space-unit) * 2)}z-book-cover{--z-book-cover-stack-shift-x:6px;--z-book-cover-stack-shift-y:8px;--z-book-cover-height:158px;--z-book-cover-border-radius:0}.info-container{display:flex;overflow:hidden;min-width:0;flex:1;flex-direction:column}.authors-label{overflow:hidden;color:var(--color-default-text);font-size:var(--font-size-2);font-weight:var(--font-rg);text-overflow:ellipsis;white-space:nowrap}.card-title{display:-webkit-box;overflow:hidden;margin:0;-webkit-box-orient:vertical;font-size:var(--font-size-3);font-weight:var(--font-bd);-webkit-line-clamp:2;line-clamp:2;line-height:1.5;word-break:break-word}.card-subtitle{overflow:hidden;color:var(--color-default-text);text-overflow:ellipsis;white-space:nowrap}.tags-container{display:flex;max-width:100%;flex-wrap:wrap;margin-top:calc(var(--space-unit) * 2);gap:var(--space-unit)}.volumes-label{display:flex;flex-grow:1;align-items:end;color:var(--color-default-text);font-size:var(--font-size-1)}:host(.info-card){height:5rem;gap:calc(var(--space-unit) * 1.5)}:host(.info-card) .info-icon-container{display:flex;align-items:center;align-self:flex-start;justify-content:center;padding:var(--space-unit);margin-bottom:calc(var(--space-unit) * 3);background-color:var(--gray50);border-radius:var(--border-size-large)}:host(.info-card) .info-icon{--z-icon-width:1.125rem;--z-icon-height:1.125rem;fill:var(--color-default-icon)}:host(.info-card) .card-title{display:-webkit-box;overflow:hidden;min-width:0;max-width:100%;max-height:2.4em;margin-top:0;margin-bottom:calc(var(--space-unit) / 2);-webkit-box-orient:vertical;font-size:var(--font-size-3);font-weight:var(--font-bd);-webkit-line-clamp:1;line-clamp:1;line-height:1.2;word-break:break-word}:host(.info-card) .card-subtitle{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;line-height:1.2;white-space:normal;word-break:break-word}@media (max-width: 767px){.card-title{display
|
|
5
|
+
const stylesCss = () => `:host,*{box-sizing:border-box}:host{display:flex;overflow:hidden;min-width:0;min-height:11.125rem;padding:var(--space-unit);border:var(--border-size-medium) solid var(--color-surface02);background-color:var(--color-surface01);border-radius:var(--border-size-large);cursor:pointer;font-family:var(--font-family-sans);gap:calc(var(--space-unit) * 2)}z-book-cover{--z-book-cover-stack-shift-x:6px;--z-book-cover-stack-shift-y:8px;--z-book-cover-height:158px;--z-book-cover-border-radius:0}.info-container{display:flex;overflow:hidden;min-width:0;flex:1;flex-direction:column}.authors-label{overflow:hidden;color:var(--color-default-text);font-size:var(--font-size-2);font-weight:var(--font-rg);text-overflow:ellipsis;white-space:nowrap}.card-title{display:-webkit-box;overflow:hidden;margin:0;-webkit-box-orient:vertical;font-size:var(--font-size-3);font-weight:var(--font-bd);-webkit-line-clamp:2;line-clamp:2;line-height:1.5;word-break:break-word}.card-subtitle{overflow:hidden;color:var(--color-default-text);line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.tags-container{display:flex;max-width:100%;flex-wrap:wrap;margin-top:calc(var(--space-unit) * 2);gap:var(--space-unit)}.volumes-label{display:flex;flex-grow:1;align-items:end;color:var(--color-default-text);font-size:var(--font-size-1)}:host(.info-card){height:5rem;gap:calc(var(--space-unit) * 1.5)}:host(.info-card) .info-icon-container{display:flex;align-items:center;align-self:flex-start;justify-content:center;padding:var(--space-unit);margin-bottom:calc(var(--space-unit) * 3);background-color:var(--gray50);border-radius:var(--border-size-large)}:host(.info-card) .info-icon{--z-icon-width:1.125rem;--z-icon-height:1.125rem;fill:var(--color-default-icon)}:host(.info-card) .card-title{display:-webkit-box;overflow:hidden;min-width:0;max-width:100%;max-height:2.4em;margin-top:0;margin-bottom:calc(var(--space-unit) / 2);-webkit-box-orient:vertical;font-size:var(--font-size-3);font-weight:var(--font-bd);-webkit-line-clamp:1;line-clamp:1;line-height:1.2;word-break:break-word}:host(.info-card) .card-subtitle{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;line-height:1.2;white-space:normal;word-break:break-word}@media (max-width: 767px){.card-title{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;line-height:1.4;word-break:break-word}}`;
|
|
6
6
|
|
|
7
7
|
const ZResultCard = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -204,16 +204,22 @@ export class ZCombobox {
|
|
|
204
204
|
toggleComboBox() {
|
|
205
205
|
this.isopen = !this.isopen;
|
|
206
206
|
}
|
|
207
|
+
getHeaderAriaLabel() {
|
|
208
|
+
if (!this.label || this.selectedCounter <= 0) {
|
|
209
|
+
return undefined;
|
|
210
|
+
}
|
|
211
|
+
const suffix = this.selectedCounter === 1 ? "elemento selezionato" : "elementi selezionati";
|
|
212
|
+
return `${this.label}: ${this.selectedCounter} ${suffix}`;
|
|
213
|
+
}
|
|
207
214
|
getComboboxA11yAttributes(isZInput) {
|
|
208
215
|
const role = "combobox";
|
|
209
|
-
const ariaLabel = this.htmlAriaLabel;
|
|
210
216
|
const ariaExpanded = this.isopen ? "true" : "false";
|
|
211
217
|
const ariaActivedescendant = this.isopen ? this.focusedItemId : "";
|
|
212
218
|
const ariaControls = `${this.inputid}_list`;
|
|
213
219
|
if (isZInput) {
|
|
214
220
|
return {
|
|
215
221
|
"role": role,
|
|
216
|
-
"aria-label":
|
|
222
|
+
"aria-label": this.htmlAriaLabel,
|
|
217
223
|
"html-aria-expanded": ariaExpanded,
|
|
218
224
|
"html-aria-activedescendant": ariaActivedescendant,
|
|
219
225
|
"html-aria-controls": ariaControls,
|
|
@@ -221,7 +227,6 @@ export class ZCombobox {
|
|
|
221
227
|
}
|
|
222
228
|
return {
|
|
223
229
|
"role": role,
|
|
224
|
-
"aria-label": ariaLabel,
|
|
225
230
|
"aria-expanded": ariaExpanded,
|
|
226
231
|
"aria-activedescendant": ariaActivedescendant,
|
|
227
232
|
"aria-controls": ariaControls,
|
|
@@ -229,9 +234,7 @@ export class ZCombobox {
|
|
|
229
234
|
}
|
|
230
235
|
renderHeader() {
|
|
231
236
|
const comboboxA11yAttributes = !this.hassearch ? this.getComboboxA11yAttributes(false) : {};
|
|
232
|
-
return (h("div", Object.assign({ class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (e) => this.handleHeaderKeyDown(e), role: "button", tabindex: 0, "aria-controls": "open-combo-data", "aria-expanded": this.isopen ? "true" : "false" }, comboboxA11yAttributes), h("span", { class: "body-3", "
|
|
233
|
-
? `${this.label}${this.selectedCounter > 0 ? ` - ${this.selectedCounter} selezionati` : ``}`
|
|
234
|
-
: undefined }, this.label, h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), h("z-icon", { name: "caret-down", class: this.size })));
|
|
237
|
+
return (h("div", Object.assign({ class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (e) => this.handleHeaderKeyDown(e), role: "button", tabindex: 0, "aria-controls": "open-combo-data", "aria-expanded": this.isopen ? "true" : "false", "aria-label": this.getHeaderAriaLabel() }, comboboxA11yAttributes), h("span", { class: "body-3" }, this.label, h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), h("z-icon", { name: "caret-down", class: this.size })));
|
|
235
238
|
}
|
|
236
239
|
renderContent() {
|
|
237
240
|
return (h("div", { id: "open-combo-data", class: "open-combo-data" }, this.hassearch && this.renderSearchInput(), h("div", { role: "listbox", "aria-label": this.label, "aria-multiselectable": "true", id: `${this.inputid}_list`, "aria-owns": `${this.hascheckall ? `${this.getCheckAllOptionId()} ` : ``}${this.itemsList.map((item) => this.getOptionId(item)).join(" ")}` }, this.renderItems())));
|
|
@@ -294,7 +297,7 @@ export class ZCombobox {
|
|
|
294
297
|
return (h("z-list-element", { class: "check-all-wrapper", role: "presentation", htmlTabindex: -1, dividerType: ListDividerType.ELEMENT, dividerColor: "gray800", size: this.getControlToListSize(), disabled: !!isDisabled }, h("span", { class: "option-wrap", role: "presentation", onClick: () => this.checkOption(optionId) }, h("z-icon", { name: allChecked ? "checkbox-checked" : "checkbox", class: this.focusedItemId === optionId ? "focused" : "" }), h("span", { id: optionId, role: isDisabled ? "presentation" : "option", "aria-selected": allChecked ? "true" : "false" }, allChecked ? this.uncheckalltext : this.checkalltext))));
|
|
295
298
|
}
|
|
296
299
|
render() {
|
|
297
|
-
return (h("div", { key: '
|
|
300
|
+
return (h("div", { key: '85e406623f826020f0d8236c33c2f79785f23d10', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
|
|
298
301
|
}
|
|
299
302
|
static get is() { return "z-combobox"; }
|
|
300
303
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { COLOR_INDICATOR_ICONS, ICONS } from "../../constants/iconset";
|
|
3
|
+
// https://regex101.com/r/ZnoZQ5/3
|
|
4
|
+
const ICON_NAME_SUFFIX_REGEX = /^(.+?)(-transparent)?(-filled|-button)?$/;
|
|
3
5
|
/**
|
|
4
6
|
* Component to render an SVG icon from the internal icon set, selected by `name`.
|
|
5
7
|
* This component automatically recognizes icons that have an indicator (e.g. `bg-color`, `font-color`, etc.), that can be filled with a custom color via the `indicatorColor` prop.
|
|
@@ -15,11 +17,38 @@ export class ZIcon {
|
|
|
15
17
|
}
|
|
16
18
|
return h("polygon", { points: iconValue });
|
|
17
19
|
}
|
|
20
|
+
get hasColorIndicator() {
|
|
21
|
+
return COLOR_INDICATOR_ICONS.includes(this.name);
|
|
22
|
+
}
|
|
23
|
+
get needsTransparentIndicator() {
|
|
24
|
+
var _a;
|
|
25
|
+
return ["transparent", "#ffffff00"].includes((_a = this.indicatorColor) === null || _a === void 0 ? void 0 : _a.toLowerCase());
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* For icons with a color indicator, if `indicatorColor` is set to transparent, use a specific icon version without the color indicator.
|
|
29
|
+
* Using the icon without the color indicator prevents visual ambiguity between a transparent indicator and one filled with the background color.
|
|
30
|
+
* @returns The name of the corresponding icon without the indicator, or the original icon name if no transparent version is needed or available.
|
|
31
|
+
*/
|
|
32
|
+
getTransparentIndicatorIconIfNeeded() {
|
|
33
|
+
var _a;
|
|
34
|
+
const transparentIconName = (_a = this.name) === null || _a === void 0 ? void 0 : _a.replace(ICON_NAME_SUFFIX_REGEX, "$1-transparent$3");
|
|
35
|
+
if (!this.hasColorIndicator || !this.needsTransparentIndicator || !ICONS[transparentIconName]) {
|
|
36
|
+
return this.name;
|
|
37
|
+
}
|
|
38
|
+
return transparentIconName;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Render the icon with the color indicator.
|
|
42
|
+
* The indicator is rendered as a separate SVG element behind the main icon, filled with the `indicatorColor`.
|
|
43
|
+
*/
|
|
44
|
+
renderColorIndicator() {
|
|
45
|
+
return (h("svg", { class: "color-indicator", fill: this.indicatorColor || "#FFFFFF00", viewBox: "0 0 1000 1000", width: this.width, height: this.height }, this.selectPathOrPolygon(ICONS["picker-color"])));
|
|
46
|
+
}
|
|
18
47
|
renderBaseIcon() {
|
|
19
|
-
return (h("svg", { id: this.iconid || undefined, fill: this.fill ? `var(--${this.fill})` : undefined, viewBox: "0 0 1000 1000", width: this.width, height: this.height }, this.selectPathOrPolygon(ICONS[this.
|
|
48
|
+
return (h("svg", { id: this.iconid || undefined, fill: this.fill ? `var(--${this.fill})` : undefined, viewBox: "0 0 1000 1000", width: this.width, height: this.height }, this.selectPathOrPolygon(ICONS[this.getTransparentIndicatorIconIfNeeded()])));
|
|
20
49
|
}
|
|
21
50
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '4a8e4edb8055077b821539897d38849acbccc5e1', "aria-hidden": "true" }, this.hasColorIndicator && !this.needsTransparentIndicator ? (h("div", { class: "icon-wrapper" }, this.renderColorIndicator(), this.renderBaseIcon())) : (this.renderBaseIcon())));
|
|
23
52
|
}
|
|
24
53
|
static get is() { return "z-icon"; }
|
|
25
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -210,6 +210,7 @@ export class ZInput {
|
|
|
210
210
|
return (h("button", { type: "button", class: { "reset-icon": true, "input-icon": true, hidden }, "aria-label": "cancella il contenuto dell'input", onClick: () => {
|
|
211
211
|
this.inputRef.value = "";
|
|
212
212
|
this.emitInputChange("");
|
|
213
|
+
this.inputRef.focus();
|
|
213
214
|
} }, h("z-icon", { name: "multiply", class: this.size })));
|
|
214
215
|
}
|
|
215
216
|
renderShowHidePassword() {
|
|
@@ -266,7 +267,7 @@ export class ZInput {
|
|
|
266
267
|
default:
|
|
267
268
|
input = this.renderInputText(this.type);
|
|
268
269
|
}
|
|
269
|
-
return h(Host, { key: '
|
|
270
|
+
return h(Host, { key: 'bc35a655bec5191649c1089a66b41911359da847' }, input);
|
|
270
271
|
}
|
|
271
272
|
static get is() { return "z-input"; }
|
|
272
273
|
static get encapsulation() { return "scoped"; }
|
|
@@ -59,6 +59,11 @@
|
|
|
59
59
|
|
|
60
60
|
.text-wrapper .icons-wrapper > button.reset-icon,
|
|
61
61
|
.text-wrapper .icons-wrapper > button.toggle-password-icon {
|
|
62
|
+
display: flex;
|
|
63
|
+
min-width: 24px;
|
|
64
|
+
min-height: 24px;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
62
67
|
cursor: pointer;
|
|
63
68
|
}
|
|
64
69
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
display: flex;
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
min-width: 0;
|
|
10
|
-
height: 11.125rem;
|
|
10
|
+
min-height: 11.125rem;
|
|
11
11
|
padding: var(--space-unit);
|
|
12
12
|
border: var(--border-size-medium) solid var(--color-surface02);
|
|
13
13
|
background-color: var(--color-surface01);
|
|
@@ -57,6 +57,7 @@ z-book-cover {
|
|
|
57
57
|
.card-subtitle {
|
|
58
58
|
overflow: hidden;
|
|
59
59
|
color: var(--color-default-text);
|
|
60
|
+
line-height: 1.4;
|
|
60
61
|
text-overflow: ellipsis;
|
|
61
62
|
white-space: nowrap;
|
|
62
63
|
}
|
|
@@ -131,10 +132,12 @@ z-book-cover {
|
|
|
131
132
|
|
|
132
133
|
@media (max-width: 767px) {
|
|
133
134
|
.card-title {
|
|
134
|
-
display:
|
|
135
|
+
display: -webkit-box;
|
|
135
136
|
overflow: hidden;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
-webkit-box-orient: vertical;
|
|
138
|
+
-webkit-line-clamp: 2;
|
|
139
|
+
line-clamp: 2;
|
|
140
|
+
line-height: 1.4;
|
|
141
|
+
word-break: break-word;
|
|
139
142
|
}
|
|
140
143
|
}
|