@design-factory/design-factory 20.0.0-next.2 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -16
- package/design-factory-initial-branding.css +1 -1
- package/design-factory.css +2 -2
- package/design-factory.scss +0 -2
- package/fesm2022/design-factory.mjs +197 -63
- package/fesm2022/design-factory.mjs.map +1 -1
- package/index.d.ts +12 -22
- package/package.json +2 -2
- package/schematics/migrations/20_0_0/colors-new-branding/index.d.ts +4 -0
- package/schematics/migrations/20_0_0/colors-new-branding/index.js +70 -27
- package/schematics/migrations/20_0_0/modal-removal/index.d.ts +7 -0
- package/schematics/migrations/20_0_0/modal-removal/index.js +53 -0
- package/schematics/migrations/20_0_0/style-import/index.d.ts +7 -0
- package/schematics/migrations/20_0_0/style-import/index.js +39 -0
- package/schematics/migrations/20_0_0/waves-of-progress/index.d.ts +7 -0
- package/schematics/migrations/20_0_0/waves-of-progress/index.js +69 -0
- package/schematics/migrations/migration.json +15 -0
- package/styles/scss/components/badge/_badge.scss +1 -4
- package/styles/scss/components/button/_button.scss +55 -54
- package/styles/scss/components/card/_card.scss +1 -1
- package/styles/scss/components/collapse/_collapse.scss +6 -1
- package/styles/scss/components/datepicker/_datepicker.scss +9 -11
- package/styles/scss/components/dropdown/_dropdown.scss +6 -0
- package/styles/scss/components/fonts/_icon-font.scss +2 -1
- package/styles/scss/components/footer/_footer.scss +1 -1
- package/styles/scss/components/link/_link.scss +5 -1
- package/styles/scss/components/link/_link.variables.scss +5 -2
- package/styles/scss/components/modal/_modal.scss +44 -39
- package/styles/scss/components/pagination/_pagination.scss +1 -0
- package/styles/scss/components/radio/_radio.scss +1 -1
- package/styles/scss/components/scrollspy/_scrollspy.scss +5 -2
- package/styles/scss/components/toast/_toast.scss +17 -3
- package/styles/scss/themes/brand2023/_variables.scss +18 -3
- package/styles/scss/themes/brand2023/tokens/_root.gen.scss +1 -0
- package/styles/scss/themes/brand2023/tokens/_sass-vars.gen.scss +1 -0
- package/assets/waves_of_progress/arrowRight.svg +0 -34
- package/assets/waves_of_progress/arrowUp.svg +0 -35
- package/assets/waves_of_progress/circleDiagonal.svg +0 -29
- package/assets/waves_of_progress/circleUp.svg +0 -24
- package/styles/scss/components/waves/_waves.scss +0 -15
- package/styles/scss/components/waves/_waves.variables.scss +0 -86
package/design-factory.scss
CHANGED
|
@@ -11,7 +11,6 @@ import * as i2 from '@angular/router';
|
|
|
11
11
|
import { RouterModule } from '@angular/router';
|
|
12
12
|
import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
|
|
13
13
|
import { NgSelectComponent, NgSelectModule } from '@ng-select/ng-select';
|
|
14
|
-
import { HttpClient } from '@angular/common/http';
|
|
15
14
|
|
|
16
15
|
class SkipLinkDirective {
|
|
17
16
|
constructor() {
|
|
@@ -5984,78 +5983,208 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
5984
5983
|
}]
|
|
5985
5984
|
}] });
|
|
5986
5985
|
|
|
5986
|
+
const arrowRight = `<svg width="1440" height="810" viewBox="0 0 1440 810" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5987
|
+
<path d="M1440 0H0V810H1440V0Z" fill="var(--df-waves-of-progress-bg-color)" />
|
|
5988
|
+
<mask id="mask0_3040_1578" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="1440"
|
|
5989
|
+
height="810">
|
|
5990
|
+
<path d="M1440 0H0V810H1440V0Z" fill="white" />
|
|
5991
|
+
</mask>
|
|
5992
|
+
<g mask="url(#mask0_3040_1578)">
|
|
5993
|
+
<g opacity="0.5">
|
|
5994
|
+
<path
|
|
5995
|
+
d="M-194.045 87.9764C-178.381 87.9764 -163.118 90.9614 -148.685 96.8527C-133.733 102.95 -120.342 111.909 -108.875 123.478L108.614 342.909C120.014 354.41 128.842 367.798 134.845 382.693C140.647 397.085 143.59 412.288 143.59 427.876C143.59 443.465 140.65 458.668 134.845 473.06C128.842 487.955 120.014 501.343 108.614 512.844L-108.875 732.275C-120.342 743.844 -133.733 752.803 -148.685 758.9C-163.118 764.788 -178.381 767.776 -194.045 767.776C-209.708 767.776 -224.971 764.791 -239.405 758.9C-254.356 752.803 -267.747 743.844 -279.215 732.275L-496.703 512.844C-508.103 501.343 -516.931 487.955 -522.935 473.06C-528.736 458.668 -531.68 443.465 -531.68 427.876C-531.68 412.288 -528.74 397.085 -522.935 382.693C-516.931 367.798 -508.103 354.41 -496.703 342.909L-279.215 123.474C-267.747 111.905 -254.356 102.946 -239.405 96.8489C-224.971 90.9614 -209.708 87.9727 -194.045 87.9727M-194.045 86.4727C-225.286 86.4727 -256.527 98.4539 -280.28 122.416L-497.768 341.848C-544.981 389.48 -544.981 466.261 -497.768 513.898L-280.28 733.329C-256.527 757.291 -225.286 769.273 -194.045 769.273C-162.803 769.273 -131.562 757.291 -107.81 733.329L109.679 513.898C156.892 466.265 156.892 389.484 109.679 341.848L-107.81 122.42C-131.562 98.4577 -162.803 86.4764 -194.045 86.4764V86.4727Z"
|
|
5996
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
5997
|
+
</g>
|
|
5998
|
+
<g opacity="0.5">
|
|
5999
|
+
<path
|
|
6000
|
+
d="M-189.938 -270.881C-167.412 -270.881 -145.463 -266.587 -124.703 -258.116C-103.204 -249.345 -83.9406 -236.463 -67.4518 -219.825L453.104 305.382C469.541 321.964 482.264 341.262 490.919 362.734C499.282 383.483 503.523 405.402 503.523 427.872C503.523 450.342 499.282 472.26 490.919 493.009C482.264 514.485 469.541 533.779 453.104 550.362L-67.4518 1075.58C-83.9406 1092.21 -103.204 1105.1 -124.703 1113.87C-145.463 1122.33 -167.412 1126.63 -189.938 1126.63C-212.464 1126.63 -234.413 1122.34 -255.173 1113.87C-276.672 1105.1 -295.936 1092.21 -312.424 1075.58L-832.981 550.365C-849.417 533.783 -862.141 514.485 -870.796 493.013C-879.158 472.264 -883.399 450.345 -883.399 427.875C-883.399 405.405 -879.158 383.487 -870.796 362.738C-862.141 341.262 -849.417 321.968 -832.981 305.385L-312.424 -219.825C-295.936 -236.463 -276.672 -249.345 -255.173 -258.116C-234.413 -266.583 -212.464 -270.881 -189.938 -270.881ZM-189.938 -272.381C-234.698 -272.381 -279.462 -255.213 -313.489 -220.882L-834.046 304.328C-901.849 372.739 -901.849 483.012 -834.046 551.423L-313.489 1076.63C-279.462 1110.96 -234.698 1128.13 -189.938 1128.13C-145.178 1128.13 -100.414 1110.96 -66.3868 1076.63L454.169 551.423C521.973 483.012 521.973 372.739 454.169 304.328L-66.3868 -220.882C-100.414 -255.213 -145.178 -272.381 -189.938 -272.381Z"
|
|
6001
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6002
|
+
</g>
|
|
6003
|
+
<g opacity="0.5">
|
|
6004
|
+
<path
|
|
6005
|
+
d="M-185.831 -629.736C-171.352 -629.736 -156.817 -628.334 -142.623 -625.574C-128.294 -622.784 -114.198 -618.584 -100.721 -613.086C-72.6708 -601.641 -47.5382 -584.834 -26.0245 -563.129L797.595 267.86C819.068 289.524 835.688 314.731 846.994 342.785C852.432 356.274 856.587 370.374 859.343 384.695C862.073 398.881 863.46 413.409 863.46 427.876C863.46 442.344 862.077 456.871 859.343 471.057C856.587 485.379 852.432 499.479 846.994 512.967C835.688 541.021 819.068 566.229 797.595 587.892L-26.0283 1418.88C-47.542 1440.58 -72.6744 1457.39 -100.724 1468.83C-114.202 1474.33 -128.298 1478.54 -142.627 1481.32C-156.817 1484.09 -171.356 1485.48 -185.834 1485.48C-200.313 1485.48 -214.848 1484.09 -229.042 1481.32C-243.371 1478.53 -257.467 1474.33 -270.944 1468.83C-298.994 1457.39 -324.127 1440.58 -345.641 1418.88L-1169.26 587.892C-1190.73 566.229 -1207.35 541.021 -1218.66 512.967C-1224.09 499.479 -1228.25 485.379 -1231 471.057C-1233.73 456.871 -1235.12 442.344 -1235.12 427.876C-1235.12 413.409 -1233.74 398.881 -1231 384.695C-1228.25 370.374 -1224.09 356.274 -1218.66 342.785C-1207.35 314.731 -1190.73 289.524 -1169.26 267.86L-345.633 -563.125C-324.12 -584.83 -298.991 -601.638 -270.937 -613.083C-257.459 -618.58 -243.363 -622.784 -229.034 -625.57C-214.844 -628.334 -200.306 -629.733 -185.827 -629.733M-185.827 -631.233C-244.109 -631.233 -302.388 -608.883 -346.694 -564.179L-1170.32 266.802C-1258.72 355.992 -1258.72 499.76 -1170.32 588.946L-346.698 1419.94C-302.392 1464.64 -244.109 1486.99 -185.831 1486.99C-127.552 1486.99 -69.2695 1464.64 -24.9633 1419.94L798.66 588.95C887.059 499.76 887.059 355.992 798.66 266.806L-24.9633 -564.183C-69.2695 -608.886 -127.552 -631.236 -185.831 -631.236L-185.827 -631.233Z"
|
|
6006
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6007
|
+
</g>
|
|
6008
|
+
<g opacity="0.5">
|
|
6009
|
+
<path
|
|
6010
|
+
d="M-181.725 -988.59C-163.868 -988.59 -145.935 -986.861 -128.43 -983.456C-110.757 -980.014 -93.3679 -974.831 -76.7441 -968.051C-42.1429 -953.936 -11.1416 -933.202 15.3934 -906.427L1142.08 230.336C1168.59 257.078 1189.11 288.199 1203.07 322.83C1209.78 339.484 1214.91 356.888 1218.31 374.569C1221.68 392.081 1223.39 410.017 1223.39 427.879C1223.39 445.74 1221.68 463.676 1218.31 481.189C1214.91 498.866 1209.78 516.274 1203.07 532.927C1189.11 567.559 1168.59 598.68 1142.08 625.421L15.3934 1762.18C-11.1453 1788.95 -42.1429 1809.69 -76.7441 1823.8C-93.3679 1830.58 -110.757 1835.77 -128.43 1839.21C-145.935 1842.61 -163.864 1844.34 -181.725 1844.34C-199.587 1844.34 -217.515 1842.61 -235.02 1839.21C-252.694 1835.77 -270.083 1830.58 -286.707 1823.8C-321.308 1809.69 -352.305 1788.95 -378.844 1762.18L-1505.54 625.414C-1532.04 598.672 -1552.56 567.551 -1566.52 532.92C-1573.23 516.266 -1578.36 498.862 -1581.76 481.181C-1585.13 463.669 -1586.84 445.733 -1586.84 427.871C-1586.84 410.01 -1585.13 392.074 -1581.76 374.561C-1578.36 356.884 -1573.23 339.476 -1566.52 322.823C-1552.56 288.191 -1532.04 257.07 -1505.54 230.329L-378.844 -906.427C-352.309 -933.202 -321.308 -953.936 -286.707 -968.051C-270.083 -974.831 -252.694 -980.018 -235.02 -983.456C-217.515 -986.865 -199.587 -988.59 -181.725 -988.59ZM-181.725 -990.09C-253.527 -990.09 -325.328 -962.554 -379.909 -907.481L-1506.6 229.279C-1615.59 339.244 -1615.59 516.506 -1506.6 626.471L-379.909 1763.23C-325.324 1818.31 -253.527 1845.84 -181.725 1845.84C-109.924 1845.84 -38.1229 1818.31 16.4584 1763.23L1143.15 626.471C1252.14 516.506 1252.14 339.244 1143.15 229.279L16.4584 -907.485C-38.1266 -962.557 -109.928 -990.094 -181.725 -990.094V-990.09Z"
|
|
6011
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6012
|
+
</g>
|
|
6013
|
+
<g opacity="0.5">
|
|
6014
|
+
<path
|
|
6015
|
+
d="M-177.619 -1347.45C-156.379 -1347.45 -135.053 -1345.39 -114.236 -1341.34C-93.2177 -1337.25 -72.5364 -1331.08 -52.7627 -1323.01C-32.6213 -1314.8 -13.2264 -1304.52 4.88977 -1292.48C23.4823 -1280.11 40.9536 -1265.73 56.8162 -1249.72L1486.57 192.811C1502.43 208.804 1516.67 226.377 1528.9 245.044C1540.83 263.24 1551.01 282.698 1559.14 302.877C1567.13 322.692 1573.23 343.407 1577.28 364.444C1581.3 385.283 1583.33 406.625 1583.33 427.88C1583.33 449.135 1581.3 470.476 1577.28 491.315C1573.23 512.352 1567.13 533.063 1559.14 552.882C1551.01 573.061 1540.84 592.516 1528.9 610.715C1516.67 629.382 1502.43 646.955 1486.57 662.948L56.8198 2105.48C40.9573 2121.48 23.4861 2135.87 4.89355 2148.23C-13.2227 2160.28 -32.6177 2170.55 -52.759 2178.77C-72.5289 2186.84 -93.2103 2193 -114.233 2197.09C-135.053 2201.15 -156.375 2203.2 -177.615 2203.2C-198.855 2203.2 -220.181 2201.15 -240.998 2197.09C-262.016 2193 -282.698 2186.84 -302.471 2178.77C-322.613 2170.55 -342.008 2160.28 -360.124 2148.23C-378.717 2135.87 -396.188 2121.48 -412.05 2105.48L-1841.81 662.941C-1857.66 646.947 -1871.9 629.375 -1884.14 610.707C-1896.07 592.512 -1906.24 573.053 -1914.38 552.875C-1922.36 533.059 -1928.47 512.345 -1932.52 491.307C-1936.53 470.468 -1938.57 449.127 -1938.57 427.872C-1938.57 406.617 -1936.53 385.276 -1932.52 364.437C-1928.47 343.399 -1922.36 322.688 -1914.38 302.87C-1906.24 282.691 -1896.07 263.236 -1884.14 245.037C-1871.9 226.37 -1857.66 208.797 -1841.81 192.803L-412.054 -1249.73C-396.192 -1265.73 -378.72 -1280.12 -360.128 -1292.48C-342.011 -1304.53 -322.617 -1314.8 -302.475 -1323.02C-282.705 -1331.08 -262.024 -1337.25 -241.001 -1341.34C-220.182 -1345.39 -198.859 -1347.45 -177.619 -1347.45M-177.619 -1348.95C-262.939 -1348.95 -348.259 -1316.23 -413.119 -1250.79L-1842.88 191.757C-1972.46 322.501 -1972.46 533.255 -1842.88 663.998L-413.119 2106.54C-348.259 2171.98 -262.939 2204.7 -177.619 2204.7C-92.299 2204.7 -6.979 2171.98 57.8811 2106.54L1487.64 663.995C1617.22 533.251 1617.22 322.497 1487.64 191.753L57.8848 -1250.78C-6.97534 -1316.22 -92.2953 -1348.95 -177.615 -1348.95L-177.619 -1348.95Z"
|
|
6016
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6017
|
+
</g>
|
|
6018
|
+
</g>
|
|
6019
|
+
</svg>`;
|
|
6020
|
+
const arrowUp = `<svg width="1440" height="810" viewBox="0 0 1440 810" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
6021
|
+
class="waves-of-progress">
|
|
6022
|
+
<path d="M1440 0H0V810H1440V0Z" fill="var(--df-waves-of-progress-bg-color)" />
|
|
6023
|
+
<mask id="mask0_3040_1593" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="1440"
|
|
6024
|
+
height="810">
|
|
6025
|
+
<path d="M1440 0H0V810H1440V0Z" fill="white" />
|
|
6026
|
+
</mask>
|
|
6027
|
+
<g mask="url(#mask0_3040_1593)">
|
|
6028
|
+
<g opacity="0.5">
|
|
6029
|
+
<path
|
|
6030
|
+
d="M719.999 657.957C734.969 657.957 749.039 663.785 759.626 674.371L894.078 808.823C904.661 819.41 910.492 833.48 910.492 848.45C910.492 863.42 904.664 877.49 894.078 888.076L759.626 1022.53C749.043 1033.11 734.969 1038.94 719.999 1038.94C705.029 1038.94 690.959 1033.11 680.373 1022.53L545.921 888.076C535.338 877.493 529.507 863.42 529.507 848.45C529.507 833.48 535.334 819.41 545.921 808.823L680.373 674.371C690.956 663.788 705.029 657.957 719.999 657.957ZM719.999 656.457C705.273 656.457 690.547 662.075 679.312 673.31L544.859 807.762C522.389 830.232 522.389 866.663 544.859 889.133L679.312 1023.59C690.547 1034.82 705.273 1040.44 719.999 1040.44C734.725 1040.44 749.452 1034.82 760.687 1023.59L895.139 889.133C917.609 866.663 917.609 830.232 895.139 807.762L760.687 673.31C749.452 662.075 734.725 656.457 719.999 656.457Z"
|
|
6031
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6032
|
+
</g>
|
|
6033
|
+
<g opacity="0.5">
|
|
6034
|
+
<path
|
|
6035
|
+
d="M720 373.762C732.367 373.762 744.423 376.109 755.831 380.733C767.643 385.522 778.241 392.56 787.331 401.65L1166.8 781.117C1175.89 790.207 1182.93 800.804 1187.71 812.617C1192.34 824.024 1194.69 836.08 1194.69 848.448C1194.69 860.815 1192.34 872.872 1187.71 884.279C1182.93 896.092 1175.89 906.689 1166.8 915.779L787.331 1295.25C778.241 1304.34 767.643 1311.37 755.831 1316.16C744.423 1320.79 732.367 1323.13 720 1323.13C707.632 1323.13 695.576 1320.79 684.168 1316.16C672.356 1311.37 661.758 1304.34 652.668 1295.25L273.202 915.779C264.112 906.689 257.073 896.092 252.285 884.279C247.657 872.872 245.313 860.815 245.313 848.448C245.313 836.08 247.661 824.024 252.285 812.617C257.073 800.804 264.112 790.207 273.202 781.117L652.668 401.65C661.758 392.56 672.356 385.522 684.168 380.733C695.576 376.105 707.632 373.762 720 373.762ZM720 372.262C695.246 372.262 670.492 381.704 651.607 400.589L272.141 780.055C234.367 817.829 234.367 879.07 272.141 916.84L651.607 1296.31C670.492 1315.19 695.246 1324.63 720 1324.63C744.753 1324.63 769.507 1315.19 788.392 1296.31L1167.86 916.84C1205.63 879.067 1205.63 817.825 1167.86 780.055L788.392 400.589C769.507 381.704 744.753 372.262 720 372.262Z"
|
|
6036
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6037
|
+
</g>
|
|
6038
|
+
<g opacity="0.5">
|
|
6039
|
+
<path
|
|
6040
|
+
d="M720 89.5645C737.456 89.5645 754.474 92.8757 770.576 99.4044C787.249 106.166 802.207 116.099 815.036 128.928L1439.52 753.408C1452.35 766.241 1462.28 781.199 1469.04 797.868C1475.57 813.971 1478.88 830.988 1478.88 848.444C1478.88 865.901 1475.57 882.918 1469.04 899.021C1462.28 915.693 1452.34 930.652 1439.52 943.481L815.036 1567.96C802.207 1580.79 787.245 1590.72 770.576 1597.48C754.474 1604.01 737.456 1607.32 720 1607.32C702.544 1607.32 685.526 1604.01 669.424 1597.48C652.751 1590.72 637.792 1580.79 624.964 1567.96L0.483578 943.481C-12.3489 930.648 -22.2789 915.689 -29.0402 899.021C-35.5689 882.918 -38.8802 865.901 -38.8802 848.444C-38.8802 830.988 -35.5689 813.971 -29.0402 797.868C-22.2789 781.196 -12.3452 766.237 0.483578 753.408L624.964 128.928C637.796 116.096 652.755 106.166 669.424 99.4044C685.526 92.8757 702.544 89.5645 720 89.5645ZM720 88.0645C685.219 88.0645 650.437 101.332 623.898 127.871L-0.581409 752.351C-53.6552 805.424 -53.6552 891.476 -0.581409 944.549L623.898 1569.03C650.437 1595.57 685.219 1608.84 720 1608.84C754.781 1608.84 789.562 1595.57 816.101 1569.03L1440.58 944.549C1493.65 891.476 1493.65 805.424 1440.58 752.351L816.101 127.871C789.562 101.332 754.781 88.0645 720 88.0645Z"
|
|
6041
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6042
|
+
</g>
|
|
6043
|
+
<g opacity="0.5">
|
|
6044
|
+
<path
|
|
6045
|
+
d="M719.999 -194.633C742.544 -194.633 764.523 -190.358 785.32 -181.92C806.853 -173.19 826.173 -160.358 842.744 -143.787L1712.24 725.707C1728.81 742.278 1741.64 761.598 1750.37 783.131C1758.81 803.928 1763.08 825.907 1763.08 848.452C1763.08 870.997 1758.81 892.976 1750.37 913.773C1741.64 935.306 1728.81 954.626 1712.24 971.197L842.744 1840.69C826.173 1857.26 806.853 1870.09 785.32 1878.82C764.523 1887.26 742.544 1891.53 719.999 1891.53C697.454 1891.53 675.475 1887.26 654.678 1878.82C633.145 1870.09 613.825 1857.26 597.254 1840.69L-272.24 971.197C-288.811 954.626 -301.64 935.306 -310.373 913.773C-318.807 892.976 -323.086 870.997 -323.086 848.452C-323.086 825.907 -318.811 803.928 -310.373 783.131C-301.643 761.598 -288.811 742.278 -272.24 725.707L597.254 -143.79C613.825 -160.362 633.145 -173.19 654.678 -181.924C675.475 -190.358 697.454 -194.637 719.999 -194.637M719.999 -196.137C675.19 -196.137 630.382 -179.044 596.193 -144.855L-273.301 724.642C-341.678 793.02 -341.678 903.877 -273.301 972.255L596.193 1841.75C630.382 1875.94 675.19 1893.03 719.999 1893.03C764.808 1893.03 809.617 1875.94 843.805 1841.75L1713.3 972.255C1781.68 903.877 1781.68 793.02 1713.3 724.642L843.809 -144.852C809.62 -179.04 764.812 -196.133 720.003 -196.133L719.999 -196.137Z"
|
|
6046
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6047
|
+
</g>
|
|
6048
|
+
<g opacity="0.5">
|
|
6049
|
+
<path
|
|
6050
|
+
d="M720 -478.83C733.616 -478.83 747.288 -477.521 760.638 -474.934C774.116 -472.324 787.38 -468.394 800.066 -463.249C826.458 -452.546 850.14 -436.819 870.45 -416.509L1984.96 697.999C2005.27 718.309 2020.99 741.99 2031.7 768.382C2036.84 781.069 2040.77 794.332 2043.38 807.81C2045.97 821.16 2047.28 834.832 2047.28 848.449C2047.28 862.065 2045.97 875.737 2043.38 889.087C2040.77 902.565 2036.84 915.829 2031.7 928.515C2020.99 954.907 2005.27 978.589 1984.96 998.902L870.45 2113.41C850.14 2133.72 826.458 2149.45 800.066 2160.15C787.38 2165.29 774.116 2169.22 760.638 2171.83C747.288 2174.42 733.616 2175.73 720 2175.73C706.383 2175.73 692.711 2174.42 679.361 2171.83C665.883 2169.22 652.62 2165.29 639.933 2160.15C613.541 2149.45 589.859 2133.72 569.546 2113.41L-544.962 998.902C-565.272 978.592 -580.999 954.911 -591.702 928.515C-596.847 915.829 -600.777 902.565 -603.387 889.087C-605.97 875.737 -607.283 862.065 -607.283 848.449C-607.283 834.832 -605.974 821.16 -603.387 807.81C-600.777 794.332 -596.847 781.069 -591.702 768.382C-580.999 741.99 -565.272 718.309 -544.962 697.999L569.55 -416.509C589.86 -436.819 613.541 -452.546 639.937 -463.249C652.623 -468.394 665.887 -472.324 679.365 -474.934C692.715 -477.518 706.387 -478.83 720.003 -478.83M720.003 -480.33C665.167 -480.33 610.331 -459.409 568.488 -417.57L-546.019 696.937C-629.697 780.615 -629.697 916.286 -546.019 999.964L568.488 2114.47C610.327 2156.31 665.163 2177.23 720.003 2177.23C774.843 2177.23 829.676 2156.31 871.518 2114.47L1986.03 999.964C2069.7 916.286 2069.7 780.615 1986.03 696.937L871.515 -417.57C829.676 -459.409 774.84 -480.33 720 -480.33H720.003Z"
|
|
6051
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6052
|
+
</g>
|
|
6053
|
+
</g>
|
|
6054
|
+
</svg>`;
|
|
6055
|
+
const circleDiagonal = `<svg width="1440" height="810" viewBox="0 0 1440 810" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6056
|
+
<path d="M1440 0H0V810H1440V0Z" fill="var(--df-waves-of-progress-bg-color)" />
|
|
6057
|
+
<mask id="mask0_3174_5204" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="1440"
|
|
6058
|
+
height="810">
|
|
6059
|
+
<path d="M1440 0H0V810H1440V0Z" fill="white" />
|
|
6060
|
+
</mask>
|
|
6061
|
+
<g mask="url(#mask0_3174_5204)">
|
|
6062
|
+
<g opacity="0.5">
|
|
6063
|
+
<path
|
|
6064
|
+
d="M-11.2496 -175.631C11.4491 -175.631 33.4691 -171.187 54.1954 -162.42C74.2166 -153.952 92.1979 -141.828 107.64 -126.386C123.083 -110.943 135.207 -92.9621 143.674 -72.9408C152.442 -52.2146 156.885 -30.1946 156.885 -7.49585C156.885 15.2029 152.442 37.2229 143.674 57.9491C135.207 77.9704 123.083 95.9517 107.64 111.394C92.1979 126.837 74.2166 138.96 54.1954 147.428C33.4691 156.195 11.4491 160.639 -11.2496 160.639C-33.9484 160.639 -55.9684 156.195 -76.6946 147.428C-96.7159 138.96 -114.697 126.837 -130.14 111.394C-145.582 95.9517 -157.706 77.9704 -166.173 57.9491C-174.941 37.2229 -179.385 15.2029 -179.385 -7.49585C-179.385 -30.1946 -174.941 -52.2146 -166.173 -72.9408C-157.706 -92.9621 -145.582 -110.943 -130.14 -126.386C-114.697 -141.828 -96.7159 -153.952 -76.6946 -162.42C-55.9684 -171.187 -33.9484 -175.631 -11.2496 -175.631ZM-11.2496 -177.131C-104.936 -177.131 -180.881 -101.182 -180.881 -7.4996C-180.881 86.1829 -104.936 162.132 -11.2496 162.132C82.4366 162.132 158.382 86.1866 158.382 -7.4996C158.382 -101.186 82.4366 -177.131 -11.2496 -177.131Z"
|
|
6065
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6066
|
+
</g>
|
|
6067
|
+
<g opacity="0.5">
|
|
6068
|
+
<path
|
|
6069
|
+
d="M-33.7277 -324.273C3.13483 -324.273 39.9748 -321.236 75.7648 -315.243C110.644 -309.405 144.952 -300.69 177.735 -289.342C209.921 -278.205 240.96 -264.416 269.996 -248.366C298.751 -232.47 325.789 -214.218 350.359 -194.111C374.925 -174.011 397.226 -151.893 416.644 -128.377C436.241 -104.64 453.075 -79.2672 466.672 -52.9609C480.517 -26.1747 491.152 1.85281 498.277 30.3491C505.59 59.584 509.295 89.6703 509.295 119.779C509.295 149.888 505.586 179.974 498.277 209.209C491.152 237.702 480.517 265.733 466.672 292.519C453.075 318.825 436.241 344.198 416.644 367.935C397.226 391.452 374.925 413.569 350.359 433.669C325.789 453.773 298.747 472.028 269.996 487.924C240.96 503.974 209.921 517.759 177.735 528.9C144.952 540.248 110.644 548.959 75.7648 554.802C39.9711 560.794 3.13483 563.832 -33.7277 563.832C-70.5902 563.832 -107.43 560.794 -143.22 554.802C-178.099 548.963 -212.408 540.248 -245.19 528.9C-277.376 517.763 -308.415 503.978 -337.451 487.924C-366.206 472.028 -393.244 453.777 -417.814 433.669C-442.38 413.569 -464.681 391.452 -484.099 367.935C-503.696 344.198 -520.53 318.825 -534.128 292.519C-547.973 265.733 -558.608 237.705 -565.733 209.209C-573.045 179.974 -576.75 149.888 -576.75 119.779C-576.75 89.6703 -573.041 59.584 -565.733 30.3491C-558.608 1.85654 -547.973 -26.1747 -534.128 -52.9609C-520.53 -79.2672 -503.696 -104.64 -484.099 -128.377C-464.681 -151.893 -442.38 -174.011 -417.814 -194.111C-393.244 -214.215 -366.203 -232.47 -337.451 -248.366C-308.415 -264.416 -277.376 -278.201 -245.19 -289.342C-212.408 -300.69 -178.099 -309.401 -143.22 -315.243C-107.426 -321.236 -70.5902 -324.273 -33.7277 -324.273ZM-33.7277 -325.773C-334.463 -325.773 -578.254 -126.292 -578.254 119.779C-578.254 365.85 -334.463 565.328 -33.7277 565.328C267.007 565.328 510.799 365.847 510.799 119.775C510.799 -126.296 267.004 -325.773 -33.7277 -325.773Z"
|
|
6070
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6071
|
+
</g>
|
|
6072
|
+
<g opacity="0.5">
|
|
6073
|
+
<path
|
|
6074
|
+
d="M-56.2076 -472.916C6.09485 -472.916 68.3561 -467.992 128.851 -458.276C187.805 -448.811 245.791 -434.685 301.201 -416.295C355.602 -398.239 408.069 -375.892 457.149 -349.875C505.756 -324.109 551.461 -294.517 592.996 -261.922C634.524 -229.335 672.226 -193.477 705.053 -155.347C738.188 -116.861 766.647 -75.716 789.639 -33.0635C813.05 10.3727 831.031 55.8227 843.08 102.03C855.443 149.438 861.71 198.229 861.71 247.054C861.71 295.879 855.44 344.67 843.08 392.078C831.031 438.285 813.05 483.735 789.639 527.171C766.647 569.828 738.188 610.969 705.053 649.455C672.226 687.585 634.524 723.443 592.996 756.03C551.461 788.625 505.752 818.216 457.149 843.983C408.069 870 355.602 892.347 301.201 910.403C245.791 928.793 187.805 942.919 128.851 952.384C68.3561 962.096 6.09485 967.024 -56.2076 967.024C-118.51 967.024 -180.771 962.1 -241.266 952.384C-300.22 942.919 -358.206 928.793 -413.616 910.403C-468.018 892.347 -520.484 870 -569.564 843.983C-618.171 818.216 -663.876 788.625 -705.411 756.03C-746.939 723.443 -784.641 687.585 -817.469 649.455C-850.604 610.969 -879.063 569.824 -902.054 527.171C-925.465 483.735 -943.446 438.285 -955.495 392.078C-967.859 344.67 -974.125 295.879 -974.125 247.054C-974.125 198.229 -967.855 149.438 -955.495 102.03C-943.446 55.8227 -925.465 10.3727 -902.054 -33.0635C-879.063 -75.7198 -850.604 -116.861 -817.469 -155.347C-784.641 -193.477 -746.939 -229.335 -705.411 -261.922C-663.876 -294.514 -618.168 -324.109 -569.564 -349.875C-520.484 -375.892 -468.018 -398.239 -413.616 -416.295C-358.206 -434.685 -300.22 -448.811 -241.266 -458.276C-180.771 -467.989 -118.51 -472.916 -56.2076 -472.916ZM-56.2076 -474.416C-563.991 -474.416 -975.629 -151.402 -975.629 247.054C-975.629 645.51 -563.991 968.52 -56.2076 968.52C451.576 968.52 863.214 645.506 863.214 247.05C863.214 -151.406 451.576 -474.416 -56.2076 -474.416Z"
|
|
6075
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6076
|
+
</g>
|
|
6077
|
+
<g opacity="0.5">
|
|
6078
|
+
<path
|
|
6079
|
+
d="M-78.6857 -621.559C9.0531 -621.559 96.7394 -614.749 181.932 -601.312C264.957 -588.221 346.621 -568.687 424.658 -543.251C501.274 -518.28 575.168 -487.372 644.288 -451.387C712.748 -415.747 777.121 -374.82 835.621 -329.741C894.113 -284.666 947.217 -235.069 993.454 -182.329C1040.13 -129.09 1080.21 -72.1799 1112.6 -13.1736C1145.58 46.9127 1170.91 109.789 1187.88 173.708C1196.51 206.201 1203.1 239.456 1207.46 272.55C1211.88 306.131 1214.13 340.376 1214.13 374.333C1214.13 408.289 1211.89 442.534 1207.46 476.115C1203.1 509.209 1196.51 542.464 1187.88 574.958C1170.91 638.876 1145.58 701.756 1112.6 761.839C1080.22 820.841 1040.13 877.755 993.454 930.994C947.217 983.734 894.113 1033.33 835.621 1078.41C777.121 1123.49 712.748 1164.41 644.288 1200.05C575.168 1236.04 501.274 1266.95 424.658 1291.92C346.621 1317.35 264.957 1336.89 181.932 1349.98C96.7394 1363.41 9.05676 1370.22 -78.6857 1370.22C-166.428 1370.22 -254.111 1363.41 -339.303 1349.98C-422.328 1336.89 -503.992 1317.35 -582.029 1291.92C-658.646 1266.95 -732.539 1236.04 -801.659 1200.05C-870.119 1164.41 -934.492 1123.49 -992.992 1078.41C-1051.48 1033.33 -1104.59 983.734 -1150.83 930.994C-1197.5 877.755 -1237.59 820.845 -1269.97 761.839C-1302.96 701.753 -1328.28 638.876 -1345.26 574.958C-1353.88 542.464 -1360.47 509.209 -1364.83 476.115C-1369.26 442.534 -1371.5 408.289 -1371.5 374.333C-1371.5 340.376 -1369.26 306.131 -1364.83 272.55C-1360.47 239.456 -1353.88 206.201 -1345.26 173.708C-1328.28 109.789 -1302.95 46.9089 -1269.97 -13.1736C-1237.59 -72.1761 -1197.5 -129.09 -1150.83 -182.329C-1104.59 -235.069 -1051.48 -284.666 -992.992 -329.741C-934.492 -374.82 -870.119 -415.747 -801.659 -451.387C-732.539 -487.372 -658.646 -518.28 -582.029 -543.251C-503.992 -568.687 -422.328 -588.221 -339.303 -601.312C-254.111 -614.745 -166.428 -621.559 -78.6857 -621.559ZM-78.6857 -623.059C-793.518 -623.059 -1373 -176.512 -1373 374.329C-1373 925.17 -793.518 1371.72 -78.6857 1371.72C636.147 1371.72 1215.63 925.17 1215.63 374.329C1215.63 -176.512 636.143 -623.059 -78.6857 -623.059Z"
|
|
6080
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6081
|
+
</g>
|
|
6082
|
+
</g>
|
|
6083
|
+
</svg>`;
|
|
6084
|
+
const circleUp = `<svg width="1440" height="810" viewBox="0 0 1440 810" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6085
|
+
<path d="M1440 0H0V810H1440V0Z" fill="var(--df-waves-of-progress-bg-color)" />
|
|
6086
|
+
<mask id="mask0_3174_6806" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="1440"
|
|
6087
|
+
height="810">
|
|
6088
|
+
<path d="M1440 0H0V810H1440V0Z" fill="white" />
|
|
6089
|
+
</mask>
|
|
6090
|
+
<g mask="url(#mask0_3174_6806)">
|
|
6091
|
+
<g opacity="0.5">
|
|
6092
|
+
<path
|
|
6093
|
+
d="M420.319 594.342C446.929 594.342 473.524 597.154 499.362 602.697C524.543 608.101 549.311 616.163 572.981 626.663C596.224 636.972 618.638 649.733 639.608 664.591C660.379 679.309 679.913 696.211 697.665 714.826C715.418 733.444 731.535 753.931 745.571 775.718C759.743 797.716 771.912 821.232 781.744 845.611C791.76 870.443 799.452 896.431 804.608 922.853C809.899 949.962 812.58 977.866 812.58 1005.79C812.58 1033.71 809.899 1061.61 804.608 1088.72C799.452 1115.14 791.76 1141.13 781.744 1165.97C771.912 1190.35 759.739 1213.86 745.571 1235.86C731.535 1257.65 715.418 1278.13 697.665 1296.75C679.913 1315.37 660.379 1332.27 639.608 1346.99C618.638 1361.84 596.224 1374.6 572.981 1384.91C549.311 1395.41 524.543 1403.48 499.362 1408.88C473.524 1414.43 446.929 1417.23 420.319 1417.23C393.709 1417.23 367.114 1414.42 341.277 1408.88C316.095 1403.48 291.327 1395.41 267.657 1384.91C244.414 1374.6 222 1361.84 201.03 1346.99C180.259 1332.27 160.725 1315.37 142.973 1296.75C125.22 1278.13 109.103 1257.65 95.0665 1235.86C80.8953 1213.86 68.7265 1190.34 58.894 1165.97C48.8778 1141.13 41.1865 1115.15 36.0303 1088.72C30.739 1061.61 28.0578 1033.71 28.0578 1005.79C28.0578 977.866 30.739 949.962 36.0303 922.853C41.1865 896.434 48.8778 870.447 58.894 845.611C68.7265 821.228 80.899 797.712 95.0665 775.718C109.103 753.931 125.22 733.444 142.973 714.826C160.725 696.207 180.259 679.306 201.03 664.591C222 649.733 244.414 636.972 267.657 626.663C291.327 616.163 316.095 608.101 341.277 602.697C367.114 597.151 393.709 594.342 420.319 594.342ZM420.319 592.842C202.853 592.842 26.5615 777.724 26.5615 1005.79C26.5615 1233.85 202.853 1418.73 420.319 1418.73C637.785 1418.73 814.077 1233.85 814.077 1005.79C814.077 777.724 637.785 592.842 420.319 592.842Z"
|
|
6094
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6095
|
+
</g>
|
|
6096
|
+
<g opacity="0.5">
|
|
6097
|
+
<path
|
|
6098
|
+
d="M541.351 240.172C587.813 240.172 634.246 245.617 679.358 256.353C723.327 266.816 766.576 282.431 807.908 302.759C848.491 322.724 887.637 347.433 924.256 376.203C960.53 404.703 994.643 437.437 1025.64 473.493C1056.65 509.553 1084.8 549.232 1109.31 591.427C1134.06 634.031 1155.32 679.578 1172.5 726.802C1189.99 774.903 1203.43 825.239 1212.43 876.416C1221.67 928.927 1226.36 982.976 1226.36 1037.06C1226.36 1091.14 1221.67 1145.19 1212.43 1197.7C1203.43 1248.88 1189.99 1299.21 1172.5 1347.31C1155.32 1394.54 1134.06 1440.09 1109.31 1482.69C1084.8 1524.88 1056.65 1564.56 1025.64 1600.62C994.643 1636.68 960.53 1669.41 924.256 1697.91C887.637 1726.68 848.495 1751.4 807.908 1771.36C766.58 1791.69 723.327 1807.3 679.358 1817.76C634.246 1828.5 587.813 1833.94 541.351 1833.94C494.888 1833.94 448.456 1828.5 403.343 1817.76C359.375 1807.3 316.126 1791.69 274.793 1771.36C234.207 1751.39 195.065 1726.68 158.446 1697.91C122.172 1669.41 88.0583 1636.68 57.0571 1600.62C26.0521 1564.56 -2.09915 1524.88 -26.6129 1482.69C-51.3629 1440.09 -72.6216 1394.54 -89.7966 1347.31C-107.29 1299.21 -120.727 1248.88 -129.73 1197.7C-138.97 1145.19 -143.654 1091.14 -143.654 1037.06C-143.654 982.976 -138.97 928.927 -129.73 876.416C-120.727 825.239 -107.29 774.903 -89.7966 726.802C-72.6216 679.578 -51.3629 634.031 -26.6129 591.427C-2.09915 549.232 26.0483 509.553 57.0571 473.493C88.0583 437.437 122.172 404.707 158.446 376.203C195.065 347.433 234.207 322.721 274.793 302.759C316.122 282.431 359.375 266.816 403.343 256.353C448.456 245.617 494.888 240.172 541.351 240.172ZM541.351 238.672C162.207 238.672 -145.15 596.122 -145.15 1037.06C-145.15 1477.99 162.207 1835.44 541.351 1835.44C920.495 1835.44 1227.85 1477.99 1227.85 1037.06C1227.85 596.122 920.495 238.672 541.351 238.672Z"
|
|
6099
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6100
|
+
</g>
|
|
6101
|
+
<g opacity="0.5">
|
|
6102
|
+
<path
|
|
6103
|
+
d="M662.386 -113.996C728.704 -113.996 794.982 -105.919 859.377 -89.9886C922.137 -74.4636 983.873 -51.2961 1042.87 -21.1311C1100.8 8.49016 1156.67 45.1539 1208.94 87.8439C1260.72 130.133 1309.41 178.699 1353.66 232.193C1397.91 285.694 1438.1 344.565 1473.08 407.171C1508.4 470.381 1538.75 537.96 1563.26 608.025C1588.23 679.388 1607.4 754.069 1620.26 829.995C1633.44 907.901 1640.13 988.088 1640.13 1068.33C1640.13 1148.57 1633.44 1228.75 1620.26 1306.66C1607.4 1382.58 1588.23 1457.27 1563.26 1528.63C1538.75 1598.69 1508.4 1666.27 1473.08 1729.48C1438.09 1792.09 1397.91 1850.96 1353.66 1904.46C1309.41 1957.96 1260.72 2006.52 1208.94 2048.81C1156.67 2091.5 1100.8 2128.16 1042.87 2157.78C983.873 2187.95 922.137 2211.12 859.377 2226.64C794.982 2242.57 728.704 2250.65 662.386 2250.65C596.067 2250.65 529.789 2242.57 465.394 2226.64C402.634 2211.12 340.898 2187.95 281.903 2157.78C223.973 2128.16 168.098 2091.5 115.831 2048.81C64.0544 2006.52 15.3644 1957.95 -28.8894 1904.46C-73.1431 1850.96 -113.324 1792.09 -148.312 1729.48C-183.637 1666.27 -213.978 1598.69 -238.492 1528.63C-263.459 1457.27 -282.637 1382.58 -295.488 1306.66C-308.677 1228.75 -315.363 1148.57 -315.363 1068.33C-315.363 988.088 -308.677 907.901 -295.488 829.995C-282.637 754.069 -263.459 679.388 -238.492 608.025C-213.978 537.96 -183.637 470.381 -148.312 407.171C-113.324 344.565 -73.1469 285.694 -28.8894 232.193C15.3606 178.695 64.0506 130.129 115.831 87.8439C168.098 45.1539 223.973 8.49016 281.903 -21.1311C340.898 -51.2961 402.634 -74.4636 465.394 -89.9886C529.789 -105.919 596.067 -113.996 662.386 -113.996ZM662.386 -115.496C121.564 -115.496 -316.859 414.521 -316.859 1068.33C-316.859 1722.13 121.564 2252.15 662.386 2252.15C1203.21 2252.15 1641.63 1722.13 1641.63 1068.33C1641.63 414.521 1203.21 -115.496 662.386 -115.496Z"
|
|
6104
|
+
fill="var(--df-waves-of-progress-line-color)" />
|
|
6105
|
+
</g>
|
|
6106
|
+
</g>
|
|
6107
|
+
</svg>`;
|
|
6108
|
+
|
|
6109
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6110
|
+
const colors = ['sky', 'crimson', 'pumpkin', 'forest', 'canary', 'fuchsia', 'violet'];
|
|
6111
|
+
const colorsMap = {
|
|
6112
|
+
'dark-sky': ['#000835', '#3A8BFF'],
|
|
6113
|
+
'dark-crimson': ['#560900FF', '#FF514DFF'],
|
|
6114
|
+
'dark-pumpkin': ['#5B2500FF', '#FF7920FF'],
|
|
6115
|
+
'dark-forest': ['#023A00FF', '#92FF73FF'],
|
|
6116
|
+
'dark-canary': ['#564A00FF', '#FCE649FF'],
|
|
6117
|
+
'dark-fuchsia': ['#4F0230FF', '#FF58ACFF'],
|
|
6118
|
+
'dark-violet': ['#26005AFF', '#B650FFFF'],
|
|
6119
|
+
'vivid-sky': ['#3A8BFF', '#000835'],
|
|
6120
|
+
'vivid-crimson': ['#FF514DFF', '#560900FF'],
|
|
6121
|
+
'vivid-pumpkin': ['#FF7920FF', '#5B2500FF'],
|
|
6122
|
+
'vivid-forest': ['#92FF73FF', '#023A00FF'],
|
|
6123
|
+
'vivid-canary': ['#FCE649FF', '#564A00FF'],
|
|
6124
|
+
'vivid-fuchsia': ['#FF58ACFF', '#4F0230FF'],
|
|
6125
|
+
'vivid-violet': ['#B650FFFF', '#26005AFF'],
|
|
6126
|
+
'light-sky': ['#C5D5F9FF', '#000835'],
|
|
6127
|
+
'light-crimson': ['#FFD7D7FF', '#560900FF'],
|
|
6128
|
+
'light-pumpkin': ['#FFD9C4FF', '#5B2500FF'],
|
|
6129
|
+
'light-forest': ['#C8FFC0FF', '#023A00FF'],
|
|
6130
|
+
'light-canary': ['#FFFEB0FF', '#564A00FF'],
|
|
6131
|
+
'light-fuchsia': ['#FCC5F9FF', '#4F0230FF'],
|
|
6132
|
+
'light-violet': ['#E4C7FFFF', '#26005AFF']
|
|
6133
|
+
};
|
|
5987
6134
|
class DfWavesOfProgressDirective {
|
|
6135
|
+
constructor() {
|
|
6136
|
+
/**
|
|
6137
|
+
* The type of waves to display
|
|
6138
|
+
*/
|
|
6139
|
+
this.dfWavesOfProgress = input.required(...(ngDevMode ? [{ debugName: "dfWavesOfProgress" }] : []));
|
|
6140
|
+
/**
|
|
6141
|
+
* The color of the waves. It can be one of the predefined brand colors or a custom color.
|
|
6142
|
+
* @example
|
|
6143
|
+
* 'dark-sky', 'vivid-crimson', 'light-forest', ['#000835', '#3A8BFF']
|
|
6144
|
+
*/
|
|
6145
|
+
this.color = input('dark-sky', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
6146
|
+
this.backgroundImage = computed(() => {
|
|
6147
|
+
const baseSvg = this.getWavesAsString(this.dfWavesOfProgress());
|
|
6148
|
+
let bgColor, lineColor;
|
|
6149
|
+
if (Array.isArray(this.color())) {
|
|
6150
|
+
[bgColor, lineColor] = this.color();
|
|
6151
|
+
}
|
|
6152
|
+
else {
|
|
6153
|
+
[bgColor, lineColor] = colorsMap[this.color()];
|
|
6154
|
+
}
|
|
6155
|
+
return `url(${this.prepareSvg(baseSvg, bgColor, lineColor)})`;
|
|
6156
|
+
}, ...(ngDevMode ? [{ debugName: "backgroundImage" }] : []));
|
|
6157
|
+
}
|
|
5988
6158
|
/**
|
|
5989
6159
|
* Prepares the SVG string by replacing color variables and encoding it.
|
|
6160
|
+
* @param svgAsString - The SVG string to prepare.
|
|
5990
6161
|
* @param bgColor - The background color.
|
|
5991
6162
|
* @param lineColor - The line color.
|
|
5992
6163
|
* @returns The prepared SVG string.
|
|
5993
6164
|
*/
|
|
5994
|
-
prepareSvg(bgColor, lineColor) {
|
|
5995
|
-
|
|
5996
|
-
baseSvg =
|
|
5997
|
-
|
|
6165
|
+
prepareSvg(svgAsString, bgColor, lineColor) {
|
|
6166
|
+
// console.debug(`prepareSvg: ${svgAsString}`);
|
|
6167
|
+
const baseSvg = encodeURIComponent(svgAsString
|
|
6168
|
+
.replace(/var\(--df-waves-of-progress-bg-color\)/g, bgColor)
|
|
6169
|
+
.replace(/var\(--df-waves-of-progress-line-color\)/g, lineColor));
|
|
5998
6170
|
return `'data:image/svg+xml;utf8,${baseSvg}'`;
|
|
5999
6171
|
}
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
this.elementRef.nativeElement.style.backgroundImage = `url(${this.prepareSvg(bgColor, lineColor)})`;
|
|
6013
|
-
}
|
|
6014
|
-
}
|
|
6015
|
-
}
|
|
6016
|
-
constructor() {
|
|
6017
|
-
/**
|
|
6018
|
-
* The type of waves to display. In order to display the waves, the app using the directive must include the assets of Design Factory.
|
|
6019
|
-
* It is possible to do so by adding the following snippet to the `angular.json` file in the `assets` configuration:
|
|
6020
|
-
* @example
|
|
6021
|
-
* "assets": [
|
|
6022
|
-
* {
|
|
6023
|
-
* "glob": "** / *", //remove the spaces between the asterisks and the slash
|
|
6024
|
-
* "input": "node-modules/@design-factory/design-factory/assets/",
|
|
6025
|
-
* "output": "assets/"
|
|
6026
|
-
* },
|
|
6027
|
-
* ...]
|
|
6028
|
-
*/
|
|
6029
|
-
this.dfWavesOfProgress = input.required(...(ngDevMode ? [{ debugName: "dfWavesOfProgress" }] : []));
|
|
6030
|
-
this.http = inject(HttpClient, { optional: true });
|
|
6031
|
-
this.elementRef = inject(ElementRef);
|
|
6032
|
-
this.platformId = inject(PLATFORM_ID);
|
|
6033
|
-
this.baseSvg = '';
|
|
6034
|
-
if (isPlatformBrowser(this.platformId)) {
|
|
6035
|
-
effect(() => {
|
|
6036
|
-
this.getSvg(this.dfWavesOfProgress());
|
|
6037
|
-
});
|
|
6038
|
-
}
|
|
6039
|
-
}
|
|
6040
|
-
getSvg(wavesType) {
|
|
6041
|
-
if (!this.http) {
|
|
6042
|
-
throw Error('Could not find HttpClient provider for use with DF Waves of progress. ' +
|
|
6043
|
-
'Please include the HttpClientModule from @angular/common/http in your ' +
|
|
6044
|
-
'app imports.');
|
|
6172
|
+
getWavesAsString(waves) {
|
|
6173
|
+
switch (waves) {
|
|
6174
|
+
case 'circleDiagonal':
|
|
6175
|
+
return circleDiagonal;
|
|
6176
|
+
case 'circleUp':
|
|
6177
|
+
return circleUp;
|
|
6178
|
+
case 'arrowRight':
|
|
6179
|
+
return arrowRight;
|
|
6180
|
+
case 'arrowUp':
|
|
6181
|
+
return arrowUp;
|
|
6182
|
+
default:
|
|
6183
|
+
return arrowRight;
|
|
6045
6184
|
}
|
|
6046
|
-
const url = `assets/waves_of_progress/${wavesType}.svg`;
|
|
6047
|
-
this.http.get(url, { responseType: 'text' }).subscribe({
|
|
6048
|
-
next: (svgString) => {
|
|
6049
|
-
this.baseSvg = svgString.replace(/\n|\r/g, '');
|
|
6050
|
-
this.updateSvg();
|
|
6051
|
-
},
|
|
6052
|
-
error: (error) => {
|
|
6053
|
-
throw Error('[Design Factory] (Waves of progress): ' + error.message);
|
|
6054
|
-
}
|
|
6055
|
-
});
|
|
6056
6185
|
}
|
|
6057
6186
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DfWavesOfProgressDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6058
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.3", type: DfWavesOfProgressDirective, isStandalone: true, selector: "[dfWavesOfProgress]", inputs: { dfWavesOfProgress: { classPropertyName: "dfWavesOfProgress", publicName: "dfWavesOfProgress", isSignal: true, isRequired: true, transformFunction: null } }, host: {
|
|
6187
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.3", type: DfWavesOfProgressDirective, isStandalone: true, selector: "[dfWavesOfProgress]", inputs: { dfWavesOfProgress: { classPropertyName: "dfWavesOfProgress", publicName: "dfWavesOfProgress", isSignal: true, isRequired: true, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.background-image": "backgroundImage()" }, styleAttribute: "\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center center;\n " }, exportAs: ["dfWavesOfProgress"], ngImport: i0 }); }
|
|
6059
6188
|
}
|
|
6060
6189
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DfWavesOfProgressDirective, decorators: [{
|
|
6061
6190
|
type: Directive,
|
|
@@ -6063,10 +6192,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
6063
6192
|
selector: '[dfWavesOfProgress]',
|
|
6064
6193
|
exportAs: 'dfWavesOfProgress',
|
|
6065
6194
|
host: {
|
|
6066
|
-
|
|
6195
|
+
style: `
|
|
6196
|
+
background-size: cover;
|
|
6197
|
+
background-repeat: no-repeat;
|
|
6198
|
+
background-position: center center;
|
|
6199
|
+
`,
|
|
6200
|
+
'[style.background-image]': 'backgroundImage()'
|
|
6067
6201
|
}
|
|
6068
6202
|
}]
|
|
6069
|
-
}]
|
|
6203
|
+
}] });
|
|
6070
6204
|
|
|
6071
6205
|
class DfWavesOfProgressModule {
|
|
6072
6206
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DfWavesOfProgressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|