@momentum-ui/web-components 2.16.3 → 2.16.5
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/dist/assets/fonts/CiscoSansTT-Medium.woff +0 -0
- package/dist/assets/fonts/CiscoSansTT-Medium.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTT-MediumOblique.woff +0 -0
- package/dist/assets/fonts/CiscoSansTT-MediumOblique.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTBold.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTBold.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTBoldOblique.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTBoldOblique.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTCondBold.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTCondBold.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTCondRegular.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTCondRegular.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTExtraLight.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTExtraLight.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTExtraLightOblique.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTExtraLightOblique.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTHeavy.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTHeavy.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTHeavyOblique.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTHeavyOblique.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTLight.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTLight.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTLightOblique.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTLightOblique.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTRegular.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTRegular.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTRegularOblique.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTRegularOblique.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTThin.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTThin.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTThinOblique.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTThinOblique.woff2 +0 -0
- package/dist/assets/fonts/Inter.var.woff2 +0 -0
- package/dist/assets/fonts/index.html +18578 -0
- package/dist/assets/fonts/momentum-ui-icons.svg +9270 -0
- package/dist/assets/fonts/momentum-ui-icons.ttf +0 -0
- package/dist/assets/fonts/momentum-ui-icons.woff +0 -0
- package/dist/assets/fonts/momentum-ui-icons.woff2 +0 -0
- package/dist/assets/icons/fonts/index.html +18578 -0
- package/dist/assets/icons/fonts/momentum-ui-icons.svg +9270 -0
- package/dist/assets/icons/fonts/momentum-ui-icons.ttf +0 -0
- package/dist/assets/icons/fonts/momentum-ui-icons.woff +0 -0
- package/dist/assets/icons/fonts/momentum-ui-icons.woff2 +0 -0
- package/dist/assets/images/avatar-images/barbara.png +0 -0
- package/dist/assets/images/avatar-images/brandon.png +0 -0
- package/dist/assets/images/avatar-images/brenda.png +0 -0
- package/dist/assets/images/avatar-images/giacomo.png +0 -0
- package/dist/assets/images/avatar-images/maria.png +0 -0
- package/dist/assets/images/avatar-images/simon.png +0 -0
- package/dist/assets/images/cisco/cisco-logo-black.png +0 -0
- package/dist/assets/images/cisco/cisco-logo-black.svg +21 -0
- package/dist/assets/images/cisco/cisco-logo-blue.png +0 -0
- package/dist/assets/images/cisco/cisco-logo-blue.svg +21 -0
- package/dist/assets/images/cisco/cisco-logo-white.png +0 -0
- package/dist/assets/images/cisco/cisco-logo-white.svg +21 -0
- package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-black.png +0 -0
- package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-black.svg +30 -0
- package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-blue.png +0 -0
- package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-blue.svg +30 -0
- package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-white.png +0 -0
- package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-white.svg +30 -0
- package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-black.png +0 -0
- package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-black.svg +13 -0
- package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-blue.png +0 -0
- package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-blue.svg +13 -0
- package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-white.png +0 -0
- package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-white.svg +13 -0
- package/dist/assets/images/flags.png +0 -0
- package/dist/assets/images/flags@2x.png +0 -0
- package/dist/assets/images/momentum/momentum-color-icon.png +0 -0
- package/dist/assets/images/momentum/momentum-color-icon.svg +1 -0
- package/dist/assets/images/momentum/momentum-horiz-color-white.png +0 -0
- package/dist/assets/images/momentum/momentum-horiz-color.png +0 -0
- package/dist/assets/images/momentum/momentum-horiz-color.svg +1 -0
- package/dist/assets/images/momentum/momentum-horiz-outline.png +0 -0
- package/dist/assets/images/momentum/momentum-horiz-outline.svg +1 -0
- package/dist/assets/images/momentum/momentum-outline-icon.png +0 -0
- package/dist/assets/images/momentum/momentum-outline-icon.svg +1 -0
- package/dist/assets/images/momentum/momentum-vert-color.png +0 -0
- package/dist/assets/images/momentum/momentum-vert-color.svg +1 -0
- package/dist/assets/images/momentum/momentum-vert-outline.png +0 -0
- package/dist/assets/images/momentum/momentum-vert-outline.svg +1 -0
- package/dist/assets/images/momentum/momentum.jpg +0 -0
- package/dist/assets/images/opacity-bkgd.jpg +0 -0
- package/dist/assets/images/webex-calling/calling-icon-color.png +0 -0
- package/dist/assets/images/webex-calling/calling-icon-color.svg +14 -0
- package/dist/assets/images/webex-calling/calling-icon-white.png +0 -0
- package/dist/assets/images/webex-calling/calling-icon-white.svg +13 -0
- package/dist/assets/images/webex-calling/calling-with-container-and-label-color.png +0 -0
- package/dist/assets/images/webex-calling/calling-with-container-and-label-color.svg +46 -0
- package/dist/assets/images/webex-calling/calling-with-container-color.png +0 -0
- package/dist/assets/images/webex-calling/calling-with-container-color.svg +19 -0
- package/dist/assets/images/webex-calling/calling-with-label-color.png +0 -0
- package/dist/assets/images/webex-calling/calling-with-label-color.svg +39 -0
- package/dist/assets/images/webex-meetings/meetings-icon-color.png +0 -0
- package/dist/assets/images/webex-meetings/meetings-icon-color.svg +15 -0
- package/dist/assets/images/webex-meetings/meetings-icon-white.png +0 -0
- package/dist/assets/images/webex-meetings/meetings-icon-white.svg +12 -0
- package/dist/assets/images/webex-meetings/meetings-with-container-and-label-color.png +0 -0
- package/dist/assets/images/webex-meetings/meetings-with-container-and-label-color.svg +29 -0
- package/dist/assets/images/webex-meetings/meetings-with-container-color.png +0 -0
- package/dist/assets/images/webex-meetings/meetings-with-container-color.svg +16 -0
- package/dist/assets/images/webex-meetings/meetings-with-label-color.png +0 -0
- package/dist/assets/images/webex-meetings/meetings-with-label-color.svg +28 -0
- package/dist/assets/images/webex-teams/teams-icon-color.png +0 -0
- package/dist/assets/images/webex-teams/teams-icon-color.svg +18 -0
- package/dist/assets/images/webex-teams/teams-icon-white.png +0 -0
- package/dist/assets/images/webex-teams/teams-icon-white.svg +12 -0
- package/dist/assets/images/webex-teams/teams-with-container-and-label-color.png +0 -0
- package/dist/assets/images/webex-teams/teams-with-container-and-label-color.svg +29 -0
- package/dist/assets/images/webex-teams/teams-with-container-color.png +0 -0
- package/dist/assets/images/webex-teams/teams-with-container-color.svg +19 -0
- package/dist/assets/images/webex-teams/teams-with-label-color.png +0 -0
- package/dist/assets/images/webex-teams/teams-with-label-color.svg +30 -0
- package/dist/assets/styles/momentum-ui-icons.min.css +1 -0
- package/dist/assets/styles/momentum-ui.min.css +7 -0
- package/dist/assets/styles/momentum-ui.min.css.map +1 -0
- package/dist/chunks/md-0.js +1 -0
- package/dist/chunks/md-1.js +1 -0
- package/dist/chunks/md-10.js +1 -0
- package/dist/chunks/md-100.js +1 -0
- package/dist/chunks/md-101.js +1 -0
- package/dist/chunks/md-102.js +1 -0
- package/dist/chunks/md-103.js +1 -0
- package/dist/chunks/md-104.js +1 -0
- package/dist/chunks/md-105.js +1 -0
- package/dist/chunks/md-106.js +1 -0
- package/dist/chunks/md-107.js +1 -0
- package/dist/chunks/md-108.js +1 -0
- package/dist/chunks/md-109.js +1 -0
- package/dist/chunks/md-11.js +1 -0
- package/dist/chunks/md-110.js +1 -0
- package/dist/chunks/md-111.js +1 -0
- package/dist/chunks/md-112.js +1 -0
- package/dist/chunks/md-113.js +1 -0
- package/dist/chunks/md-114.js +1 -0
- package/dist/chunks/md-115.js +1 -0
- package/dist/chunks/md-116.js +1 -0
- package/dist/chunks/md-117.js +1 -0
- package/dist/chunks/md-118.js +1 -0
- package/dist/chunks/md-119.js +1 -0
- package/dist/chunks/md-12.js +1 -0
- package/dist/chunks/md-120.js +1 -0
- package/dist/chunks/md-121.js +1 -0
- package/dist/chunks/md-122.js +1 -0
- package/dist/chunks/md-123.js +1 -0
- package/dist/chunks/md-124.js +1 -0
- package/dist/chunks/md-125.js +1 -0
- package/dist/chunks/md-126.js +1 -0
- package/dist/chunks/md-127.js +1 -0
- package/dist/chunks/md-128.js +1 -0
- package/dist/chunks/md-129.js +1 -0
- package/dist/chunks/md-13.js +1 -0
- package/dist/chunks/md-130.js +1 -0
- package/dist/chunks/md-131.js +1 -0
- package/dist/chunks/md-132.js +1 -0
- package/dist/chunks/md-133.js +1 -0
- package/dist/chunks/md-134.js +1 -0
- package/dist/chunks/md-135.js +1 -0
- package/dist/chunks/md-136.js +1 -0
- package/dist/chunks/md-137.js +1 -0
- package/dist/chunks/md-138.js +1 -0
- package/dist/chunks/md-139.js +1 -0
- package/dist/chunks/md-14.js +11 -0
- package/dist/chunks/md-140.js +1 -0
- package/dist/chunks/md-141.js +1 -0
- package/dist/chunks/md-142.js +1 -0
- package/dist/chunks/md-143.js +1 -0
- package/dist/chunks/md-144.js +1 -0
- package/dist/chunks/md-145.js +1 -0
- package/dist/chunks/md-146.js +1 -0
- package/dist/chunks/md-147.js +1 -0
- package/dist/chunks/md-148.js +1 -0
- package/dist/chunks/md-149.js +1 -0
- package/dist/chunks/md-15.js +9 -0
- package/dist/chunks/md-150.js +1 -0
- package/dist/chunks/md-151.js +1 -0
- package/dist/chunks/md-152.js +1 -0
- package/dist/chunks/md-153.js +1 -0
- package/dist/chunks/md-154.js +1 -0
- package/dist/chunks/md-155.js +1 -0
- package/dist/chunks/md-156.js +1 -0
- package/dist/chunks/md-157.js +1 -0
- package/dist/chunks/md-158.js +1 -0
- package/dist/chunks/md-159.js +1 -0
- package/dist/chunks/md-16.js +1 -0
- package/dist/chunks/md-160.js +1 -0
- package/dist/chunks/md-161.js +1 -0
- package/dist/chunks/md-162.js +1 -0
- package/dist/chunks/md-163.js +1 -0
- package/dist/chunks/md-164.js +1 -0
- package/dist/chunks/md-165.js +1 -0
- package/dist/chunks/md-166.js +1 -0
- package/dist/chunks/md-167.js +1 -0
- package/dist/chunks/md-168.js +1 -0
- package/dist/chunks/md-169.js +1 -0
- package/dist/chunks/md-17.js +26 -0
- package/dist/chunks/md-170.js +1 -0
- package/dist/chunks/md-171.js +1 -0
- package/dist/chunks/md-172.js +1 -0
- package/dist/chunks/md-173.js +1 -0
- package/dist/chunks/md-174.js +1 -0
- package/dist/chunks/md-175.js +1 -0
- package/dist/chunks/md-176.js +1 -0
- package/dist/chunks/md-177.js +1 -0
- package/dist/chunks/md-178.js +1 -0
- package/dist/chunks/md-179.js +1 -0
- package/dist/chunks/md-18.js +124 -0
- package/dist/chunks/md-180.js +1 -0
- package/dist/chunks/md-181.js +1 -0
- package/dist/chunks/md-182.js +1 -0
- package/dist/chunks/md-183.js +1 -0
- package/dist/chunks/md-184.js +1 -0
- package/dist/chunks/md-185.js +1 -0
- package/dist/chunks/md-186.js +1 -0
- package/dist/chunks/md-187.js +1 -0
- package/dist/chunks/md-188.js +1 -0
- package/dist/chunks/md-189.js +1 -0
- package/dist/chunks/md-19.js +17 -0
- package/dist/chunks/md-190.js +1 -0
- package/dist/chunks/md-191.js +1 -0
- package/dist/chunks/md-192.js +1 -0
- package/dist/chunks/md-193.js +1 -0
- package/dist/chunks/md-194.js +1 -0
- package/dist/chunks/md-195.js +1 -0
- package/dist/chunks/md-196.js +1 -0
- package/dist/chunks/md-197.js +1 -0
- package/dist/chunks/md-198.js +1 -0
- package/dist/chunks/md-199.js +1 -0
- package/dist/chunks/md-2.js +1 -0
- package/dist/chunks/md-20.js +1 -0
- package/dist/chunks/md-200.js +1 -0
- package/dist/chunks/md-201.js +1 -0
- package/dist/chunks/md-202.js +1 -0
- package/dist/chunks/md-203.js +1 -0
- package/dist/chunks/md-204.js +1 -0
- package/dist/chunks/md-205.js +1 -0
- package/dist/chunks/md-206.js +1 -0
- package/dist/chunks/md-207.js +1 -0
- package/dist/chunks/md-208.js +1 -0
- package/dist/chunks/md-209.js +1 -0
- package/dist/chunks/md-21.js +8 -0
- package/dist/chunks/md-210.js +1 -0
- package/dist/chunks/md-211.js +1 -0
- package/dist/chunks/md-212.js +1 -0
- package/dist/chunks/md-213.js +1 -0
- package/dist/chunks/md-214.js +1 -0
- package/dist/chunks/md-215.js +1 -0
- package/dist/chunks/md-216.js +1 -0
- package/dist/chunks/md-217.js +1 -0
- package/dist/chunks/md-218.js +1 -0
- package/dist/chunks/md-219.js +1 -0
- package/dist/chunks/md-22.js +23 -0
- package/dist/chunks/md-220.js +1 -0
- package/dist/chunks/md-221.js +1 -0
- package/dist/chunks/md-222.js +1 -0
- package/dist/chunks/md-223.js +1 -0
- package/dist/chunks/md-224.js +1 -0
- package/dist/chunks/md-225.js +1 -0
- package/dist/chunks/md-226.js +1 -0
- package/dist/chunks/md-227.js +1 -0
- package/dist/chunks/md-228.js +1 -0
- package/dist/chunks/md-229.js +1 -0
- package/dist/chunks/md-23.js +1 -0
- package/dist/chunks/md-230.js +1 -0
- package/dist/chunks/md-231.js +1 -0
- package/dist/chunks/md-232.js +1 -0
- package/dist/chunks/md-233.js +1 -0
- package/dist/chunks/md-234.js +1 -0
- package/dist/chunks/md-235.js +1 -0
- package/dist/chunks/md-236.js +1 -0
- package/dist/chunks/md-237.js +1 -0
- package/dist/chunks/md-238.js +1 -0
- package/dist/chunks/md-239.js +1 -0
- package/dist/chunks/md-24.js +7 -0
- package/dist/chunks/md-240.js +1 -0
- package/dist/chunks/md-241.js +1 -0
- package/dist/chunks/md-242.js +1 -0
- package/dist/chunks/md-243.js +1 -0
- package/dist/chunks/md-244.js +1 -0
- package/dist/chunks/md-245.js +1 -0
- package/dist/chunks/md-246.js +1 -0
- package/dist/chunks/md-247.js +1 -0
- package/dist/chunks/md-248.js +1 -0
- package/dist/chunks/md-249.js +1 -0
- package/dist/chunks/md-25.js +8 -0
- package/dist/chunks/md-250.js +1 -0
- package/dist/chunks/md-251.js +1 -0
- package/dist/chunks/md-252.js +1 -0
- package/dist/chunks/md-253.js +1 -0
- package/dist/chunks/md-254.js +1 -0
- package/dist/chunks/md-255.js +1 -0
- package/dist/chunks/md-256.js +1 -0
- package/dist/chunks/md-257.js +1 -0
- package/dist/chunks/md-258.js +1 -0
- package/dist/chunks/md-259.js +1 -0
- package/dist/chunks/md-26.js +1 -0
- package/dist/chunks/md-260.js +1 -0
- package/dist/chunks/md-261.js +1 -0
- package/dist/chunks/md-262.js +1 -0
- package/dist/chunks/md-263.js +1 -0
- package/dist/chunks/md-264.js +1 -0
- package/dist/chunks/md-265.js +1 -0
- package/dist/chunks/md-266.js +1 -0
- package/dist/chunks/md-267.js +1 -0
- package/dist/chunks/md-268.js +1 -0
- package/dist/chunks/md-269.js +1 -0
- package/dist/chunks/md-27.js +1 -0
- package/dist/chunks/md-270.js +1 -0
- package/dist/chunks/md-271.js +1 -0
- package/dist/chunks/md-272.js +1 -0
- package/dist/chunks/md-273.js +1 -0
- package/dist/chunks/md-274.js +1 -0
- package/dist/chunks/md-275.js +1 -0
- package/dist/chunks/md-276.js +1 -0
- package/dist/chunks/md-277.js +1 -0
- package/dist/chunks/md-278.js +1 -0
- package/dist/chunks/md-279.js +1 -0
- package/dist/chunks/md-28.js +55 -0
- package/dist/chunks/md-280.js +1 -0
- package/dist/chunks/md-281.js +1 -0
- package/dist/chunks/md-282.js +1 -0
- package/dist/chunks/md-283.js +1 -0
- package/dist/chunks/md-29.js +1 -0
- package/dist/chunks/md-3.js +1 -0
- package/dist/chunks/md-30.js +216 -0
- package/dist/chunks/md-31.js +49 -0
- package/dist/chunks/md-32.js +1 -0
- package/dist/chunks/md-33.js +1 -0
- package/dist/chunks/md-34.js +36 -0
- package/dist/chunks/md-35.js +33 -0
- package/dist/chunks/md-36.js +23 -0
- package/dist/chunks/md-37.js +5 -0
- package/dist/chunks/md-38.js +5 -0
- package/dist/chunks/md-39.js +1 -0
- package/dist/chunks/md-4.js +1 -0
- package/dist/chunks/md-40.js +21 -0
- package/dist/chunks/md-41.js +26 -0
- package/dist/chunks/md-42.js +42 -0
- package/dist/chunks/md-43.js +1 -0
- package/dist/chunks/md-44.js +30 -0
- package/dist/chunks/md-45.js +16 -0
- package/dist/chunks/md-46.js +1 -0
- package/dist/chunks/md-47.js +27 -0
- package/dist/chunks/md-48.js +5 -0
- package/dist/chunks/md-49.js +38 -0
- package/dist/chunks/md-5.js +1 -0
- package/dist/chunks/md-50.js +13 -0
- package/dist/chunks/md-51.js +34 -0
- package/dist/chunks/md-52.js +20 -0
- package/dist/chunks/md-53.js +121 -0
- package/dist/chunks/md-54.js +98 -0
- package/dist/chunks/md-55.js +11 -0
- package/dist/chunks/md-56.js +5 -0
- package/dist/chunks/md-57.js +77 -0
- package/dist/chunks/md-58.js +68 -0
- package/dist/chunks/md-59.js +22 -0
- package/dist/chunks/md-6.js +77 -0
- package/dist/chunks/md-60.js +14 -0
- package/dist/chunks/md-61.js +5 -0
- package/dist/chunks/md-62.js +51 -0
- package/dist/chunks/md-63.js +22 -0
- package/dist/chunks/md-64.js +47 -0
- package/dist/chunks/md-65.js +5 -0
- package/dist/chunks/md-66.js +1 -0
- package/dist/chunks/md-67.js +23 -0
- package/dist/chunks/md-68.js +5 -0
- package/dist/chunks/md-69.js +11 -0
- package/dist/chunks/md-7.js +1 -0
- package/dist/chunks/md-70.js +138 -0
- package/dist/chunks/md-71.js +30 -0
- package/dist/chunks/md-72.js +70 -0
- package/dist/chunks/md-73.js +19 -0
- package/dist/chunks/md-74.js +22 -0
- package/dist/chunks/md-75.js +17 -0
- package/dist/chunks/md-76.js +76 -0
- package/dist/chunks/md-77.js +7 -0
- package/dist/chunks/md-78.js +72 -0
- package/dist/chunks/md-79.js +78 -0
- package/dist/chunks/md-8.js +26 -0
- package/dist/chunks/md-80.js +71 -0
- package/dist/chunks/md-81.js +17 -0
- package/dist/chunks/md-82.js +5 -0
- package/dist/chunks/md-83.js +19 -0
- package/dist/chunks/md-84.js +1 -0
- package/dist/chunks/md-85.js +168 -0
- package/dist/chunks/md-86.js +43 -0
- package/dist/chunks/md-87.js +101 -0
- package/dist/chunks/md-88.js +82 -0
- package/dist/chunks/md-89.js +12 -0
- package/dist/chunks/md-9.js +1 -0
- package/dist/chunks/md-90.js +43 -0
- package/dist/chunks/md-91.js +34 -0
- package/dist/chunks/md-92.js +1 -0
- package/dist/chunks/md-93.js +1 -0
- package/dist/chunks/md-94.js +1 -0
- package/dist/chunks/md-95.js +1 -0
- package/dist/chunks/md-96.js +1 -0
- package/dist/chunks/md-97.js +1 -0
- package/dist/chunks/md-98.js +1 -0
- package/dist/chunks/md-99.js +1 -0
- package/dist/comp/md-accordion-entry.js +1 -0
- package/dist/comp/md-accordion-item-entry.js +1 -0
- package/dist/comp/md-accordion-item.js +15 -0
- package/dist/comp/md-accordion.js +11 -0
- package/dist/comp/md-activity-button-entry.js +1 -0
- package/dist/comp/md-activity-button.js +9 -0
- package/dist/comp/md-advance-list-entry.js +1 -0
- package/dist/comp/md-advance-list.js +7 -0
- package/dist/comp/md-alert-banner-entry.js +1 -0
- package/dist/comp/md-alert-banner.js +9 -0
- package/dist/comp/md-alert-entry.js +1 -0
- package/dist/comp/md-alert.js +10 -0
- package/dist/comp/md-audio-player-entry.js +1 -0
- package/dist/comp/md-audio-player.js +17 -0
- package/dist/comp/md-avatar-entry.js +1 -0
- package/dist/comp/md-avatar.js +11 -0
- package/dist/comp/md-badge-entry.js +1 -0
- package/dist/comp/md-badge.js +4 -0
- package/dist/comp/md-breadcrumb-entry.js +1 -0
- package/dist/comp/md-breadcrumb.js +4 -0
- package/dist/comp/md-button-entry.js +1 -0
- package/dist/comp/md-button-group-entry.js +1 -0
- package/dist/comp/md-button-group.js +10 -0
- package/dist/comp/md-button.js +6 -0
- package/dist/comp/md-card-ai-entry.js +1 -0
- package/dist/comp/md-card-ai.js +9 -0
- package/dist/comp/md-card-entry.js +1 -0
- package/dist/comp/md-card.js +23 -0
- package/dist/comp/md-chat-message-entry.js +1 -0
- package/dist/comp/md-chat-message.js +12 -0
- package/dist/comp/md-checkbox-entry.js +1 -0
- package/dist/comp/md-checkbox.js +11 -0
- package/dist/comp/md-checkboxgroup-entry.js +1 -0
- package/dist/comp/md-checkboxgroup.js +11 -0
- package/dist/comp/md-chip-entry.js +1 -0
- package/dist/comp/md-chip.js +18 -0
- package/dist/comp/md-coachmark-entry.js +1 -0
- package/dist/comp/md-coachmark-popover-entry.js +1 -0
- package/dist/comp/md-coachmark-popover.js +15 -0
- package/dist/comp/md-coachmark.js +13 -0
- package/dist/comp/md-combobox-entry.js +1 -0
- package/dist/comp/md-combobox.js +17 -0
- package/dist/comp/md-composite-avatar-entry.js +1 -0
- package/dist/comp/md-composite-avatar.js +5 -0
- package/dist/comp/md-date-range-picker-entry.js +1 -0
- package/dist/comp/md-date-range-picker.js +25 -0
- package/dist/comp/md-date-time-picker-entry.js +1 -0
- package/dist/comp/md-date-time-picker.js +19 -0
- package/dist/comp/md-datepicker-calendar-entry.js +1 -0
- package/dist/comp/md-datepicker-calendar.js +14 -0
- package/dist/comp/md-datepicker-day-entry.js +1 -0
- package/dist/comp/md-datepicker-day.js +9 -0
- package/dist/comp/md-datepicker-entry.js +1 -0
- package/dist/comp/md-datepicker-month-entry.js +1 -0
- package/dist/comp/md-datepicker-month.js +11 -0
- package/dist/comp/md-datepicker-week-entry.js +1 -0
- package/dist/comp/md-datepicker-week.js +10 -0
- package/dist/comp/md-datepicker.js +24 -0
- package/dist/comp/md-draggable-entry.js +1 -0
- package/dist/comp/md-draggable-item-entry.js +1 -0
- package/dist/comp/md-draggable-item.js +11 -0
- package/dist/comp/md-draggable.js +12 -0
- package/dist/comp/md-dropdown-entry.js +1 -0
- package/dist/comp/md-dropdown.js +15 -0
- package/dist/comp/md-editable-field-entry.js +1 -0
- package/dist/comp/md-editable-field.js +15 -0
- package/dist/comp/md-favorite-entry.js +1 -0
- package/dist/comp/md-favorite.js +14 -0
- package/dist/comp/md-floating-minimize-entry.js +1 -0
- package/dist/comp/md-floating-minimize.js +15 -0
- package/dist/comp/md-floating-modal-entry.js +1 -0
- package/dist/comp/md-floating-modal.js +16 -0
- package/dist/comp/md-form-entry.js +1 -0
- package/dist/comp/md-form.js +9 -0
- package/dist/comp/md-grabber-entry.js +1 -0
- package/dist/comp/md-grabber.js +14 -0
- package/dist/comp/md-help-text-entry.js +1 -0
- package/dist/comp/md-help-text.js +4 -0
- package/dist/comp/md-icon-entry.js +1 -0
- package/dist/comp/md-icon.js +8 -0
- package/dist/comp/md-inpu.js +12 -0
- package/dist/comp/md-input-entry.js +1 -0
- package/dist/comp/md-input-file.js +1 -0
- package/dist/comp/md-input.js +13 -0
- package/dist/comp/md-label-entry.js +1 -0
- package/dist/comp/md-label.js +4 -0
- package/dist/comp/md-link-entry.js +1 -0
- package/dist/comp/md-link.js +4 -0
- package/dist/comp/md-list-entry.js +1 -0
- package/dist/comp/md-list-item-entry.js +1 -0
- package/dist/comp/md-list-item.js +11 -0
- package/dist/comp/md-list.js +11 -0
- package/dist/comp/md-loading-entry.js +1 -0
- package/dist/comp/md-loading.js +4 -0
- package/dist/comp/md-meeting-alert-entry.js +1 -0
- package/dist/comp/md-meeting-alert.js +12 -0
- package/dist/comp/md-menu-entry.js +1 -0
- package/dist/comp/md-menu-item-entry.js +1 -0
- package/dist/comp/md-menu-item.js +4 -0
- package/dist/comp/md-menu-overlay-entry.js +1 -0
- package/dist/comp/md-menu-overlay.js +9 -0
- package/dist/comp/md-menu.js +8 -0
- package/dist/comp/md-modal-entry.js +1 -0
- package/dist/comp/md-modal.js +14 -0
- package/dist/comp/md-pagination-entry.js +1 -0
- package/dist/comp/md-pagination.js +9 -0
- package/dist/comp/md-phone-input-entry.js +1 -0
- package/dist/comp/md-phone-input.js +20 -0
- package/dist/comp/md-popover-entry.js +1 -0
- package/dist/comp/md-popover.js +14 -0
- package/dist/comp/md-progress-bar-entry.js +1 -0
- package/dist/comp/md-progress-bar.js +4 -0
- package/dist/comp/md-radio-entry.js +1 -0
- package/dist/comp/md-radio.js +11 -0
- package/dist/comp/md-radiogroup-entry.js +1 -0
- package/dist/comp/md-radiogroup.js +11 -0
- package/dist/comp/md-slider-entry.js +1 -0
- package/dist/comp/md-slider.js +10 -0
- package/dist/comp/md-spinner-entry.js +1 -0
- package/dist/comp/md-spinner.js +4 -0
- package/dist/comp/md-tab-entry.js +1 -0
- package/dist/comp/md-tab-panel-entry.js +1 -0
- package/dist/comp/md-tab-panel.js +11 -0
- package/dist/comp/md-tab.js +11 -0
- package/dist/comp/md-table-advanced-entry.js +1 -0
- package/dist/comp/md-table-advanced.js +15 -0
- package/dist/comp/md-table-entry.js +1 -0
- package/dist/comp/md-table.js +9 -0
- package/dist/comp/md-tabs-entry.js +1 -0
- package/dist/comp/md-tabs.js +20 -0
- package/dist/comp/md-task-item-entry.js +1 -0
- package/dist/comp/md-task-item.js +10 -0
- package/dist/comp/md-theme-entry.js +1 -0
- package/dist/comp/md-theme.js +4 -0
- package/dist/comp/md-timepicker-entry.js +1 -0
- package/dist/comp/md-timepicker.js +22 -0
- package/dist/comp/md-toggle-switch-entry.js +1 -0
- package/dist/comp/md-toggle-switch.js +11 -0
- package/dist/comp/md-tooltip-entry.js +1 -0
- package/dist/comp/md-tooltip.js +12 -0
- package/dist/index-entry.js +34 -0
- package/dist/index.js +94 -0
- package/dist/managers/thememanager-entry.js +1 -0
- package/dist/managers/thememanager.js +2 -0
- package/dist/types/components/accordion/Accordion.d.ts +32 -0
- package/dist/types/components/accordion/AccordionItem.d.ts +41 -0
- package/dist/types/components/activity-button/ActivityButton.d.ts +41 -0
- package/dist/types/components/advance-list/AdvanceList.d.ts +46 -0
- package/dist/types/components/alert/Alert.d.ts +59 -0
- package/dist/types/components/alert-banner/AlertBanner.d.ts +29 -0
- package/dist/types/components/audio-player/AudioPlayer.d.ts +112 -0
- package/dist/types/components/avatar/Avatar.constants.d.ts +4 -0
- package/dist/types/components/avatar/Avatar.d.ts +69 -0
- package/dist/types/components/avatar/CompositeAvatar.d.ts +25 -0
- package/dist/types/components/avatar/Presence.d.ts +19 -0
- package/dist/types/components/avatar/Presence.utils.d.ts +7 -0
- package/dist/types/components/badge/Badge.d.ts +38 -0
- package/dist/types/components/breadcrumb/Breadcrumb.d.ts +24 -0
- package/dist/types/components/button/Button.d.ts +115 -0
- package/dist/types/components/button-group/ButtonGroup.d.ts +45 -0
- package/dist/types/components/card/Card.d.ts +37 -0
- package/dist/types/components/card-ai/CardAi.d.ts +45 -0
- package/dist/types/components/chat-message/ChatMessage.d.ts +18 -0
- package/dist/types/components/checkbox/Checkbox.d.ts +44 -0
- package/dist/types/components/checkbox/CheckboxGroup.d.ts +29 -0
- package/dist/types/components/chip/Chip.d.ts +67 -0
- package/dist/types/components/coachmark/Coachmark.d.ts +46 -0
- package/dist/types/components/coachmark-popover/CoachmarkPopover.d.ts +211 -0
- package/dist/types/components/code-editor/CodeEditor.d.ts +40 -0
- package/dist/types/components/combobox/ComboBox.d.ts +227 -0
- package/dist/types/components/date-range-picker/DateRangePicker.d.ts +28 -0
- package/dist/types/components/date-time-picker/DateTimePicker.d.ts +45 -0
- package/dist/types/components/datepicker/DatePicker.d.ts +58 -0
- package/dist/types/components/datepicker/datepicker-calendar/DatePickerCalendar.d.ts +39 -0
- package/dist/types/components/datepicker/datepicker-day/DatePickerDay.d.ts +56 -0
- package/dist/types/components/datepicker/datepicker-month/DatePickerMonth.d.ts +26 -0
- package/dist/types/components/datepicker/datepicker-week/DatePickerWeek.d.ts +27 -0
- package/dist/types/components/draggable/Draggable.d.ts +62 -0
- package/dist/types/components/draggable/DraggableItem.d.ts +29 -0
- package/dist/types/components/dropdown/Dropdown.d.ts +154 -0
- package/dist/types/components/editable-textfield/EditableTextfield.d.ts +53 -0
- package/dist/types/components/favorite/Favorite.d.ts +36 -0
- package/dist/types/components/floating-modal/FloatingMinimizedModal.d.ts +53 -0
- package/dist/types/components/floating-modal/FloatingModal.d.ts +70 -0
- package/dist/types/components/form/Form.d.ts +49 -0
- package/dist/types/components/grabber/Grabber.d.ts +87 -0
- package/dist/types/components/help-text/HelpText.d.ts +28 -0
- package/dist/types/components/icon/Icon.d.ts +197 -0
- package/dist/types/components/input/Input.d.ts +139 -0
- package/dist/types/components/input-file/InputFile.d.ts +25 -0
- package/dist/types/components/label/Label.d.ts +43 -0
- package/dist/types/components/link/Link.d.ts +36 -0
- package/dist/types/components/list/List.d.ts +47 -0
- package/dist/types/components/list/ListItem.d.ts +26 -0
- package/dist/types/components/loading/Loading.d.ts +24 -0
- package/dist/types/components/meeting-alert/CompositeAvatar.d.ts +1 -0
- package/dist/types/components/meeting-alert/MeetingAlert.d.ts +46 -0
- package/dist/types/components/menu/Menu.d.ts +46 -0
- package/dist/types/components/menu/MenuItem.d.ts +46 -0
- package/dist/types/components/menu-overlay/MenuOverlay.d.ts +81 -0
- package/dist/types/components/modal/Modal.d.ts +74 -0
- package/dist/types/components/pagination/Pagination.d.ts +33 -0
- package/dist/types/components/phone-input/PhoneInput.d.ts +72 -0
- package/dist/types/components/popover/Popover.d.ts +184 -0
- package/dist/types/components/popover/Popover.types.d.ts +8 -0
- package/dist/types/components/progress-bar/ProgressBar.d.ts +35 -0
- package/dist/types/components/radio/Radio.d.ts +33 -0
- package/dist/types/components/radio/RadioGroup.d.ts +43 -0
- package/dist/types/components/sass-stats/SassStats.d.ts +29 -0
- package/dist/types/components/slider/Slider.d.ts +47 -0
- package/dist/types/components/spinner/Spinner.d.ts +24 -0
- package/dist/types/components/table/Table.d.ts +57 -0
- package/dist/types/components/table-advanced/TableAdvanced.d.ts +169 -0
- package/dist/types/components/table-advanced/src/decorators.d.ts +32 -0
- package/dist/types/components/table-advanced/src/filter.d.ts +25 -0
- package/dist/types/components/tabs/Tab.d.ts +65 -0
- package/dist/types/components/tabs/TabPanel.d.ts +25 -0
- package/dist/types/components/tabs/Tabs.d.ts +128 -0
- package/dist/types/components/taskitem/TaskItem.d.ts +54 -0
- package/dist/types/components/theme/Theme.d.ts +89 -0
- package/dist/types/components/theme/index.d.ts +7 -0
- package/dist/types/components/timepicker/TimePicker.d.ts +50 -0
- package/dist/types/components/toggle-switch/ToggleSwitch.d.ts +39 -0
- package/dist/types/components/tooltip/Tooltip.d.ts +56 -0
- package/dist/types/constants.d.ts +39 -0
- package/dist/types/index.d.ts +79 -0
- package/dist/types/internal-components/color-table/ColorTable.d.ts +9 -0
- package/dist/types/internal-components/color-table/data.d.ts +551 -0
- package/dist/types/internal-components/color-table/utils.d.ts +1 -0
- package/dist/types/managers/ThemeManager.d.ts +41 -0
- package/dist/types/mixins/CustomElementCheck.d.ts +1 -0
- package/dist/types/mixins/DedupeMixin.d.ts +28 -0
- package/dist/types/mixins/FocusMixin.d.ts +44 -0
- package/dist/types/mixins/FocusTrapMixin.d.ts +19 -0
- package/dist/types/mixins/ResizeMixin.d.ts +52 -0
- package/dist/types/mixins/RovingTabIndexMixin.d.ts +31 -0
- package/dist/types/mixins/SlottedMixin.d.ts +43 -0
- package/dist/types/mixins/index.d.ts +14 -0
- package/dist/types/utils/dateUtils.d.ts +31 -0
- package/dist/types/utils/enums.d.ts +18 -0
- package/dist/types/utils/helpers.d.ts +17 -0
- package/dist/types/utils/keyboard.d.ts +1 -0
- package/dist/types/utils/validations.d.ts +25 -0
- package/dist/types/wc_scss/colors/vars/color-table-data-string.d.ts +1 -0
- package/package.json +7 -133
- package/.eslintignore +0 -6
- package/.eslintrc.js +0 -22
- package/.github/CODEOWNERS +0 -5
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/pull_request_template.md +0 -191
- package/.prettierignore +0 -6
- package/.prettierrc +0 -6
- package/.storybook/main.ts +0 -67
- package/.storybook/manager.ts +0 -16
- package/.storybook/preview-body.html +0 -43
- package/.storybook/preview-head.html +0 -3
- package/.storybook/preview.ts +0 -70
- package/.storybook/themeDecorator.js +0 -9
- package/.stylelintignore +0 -6
- package/.stylelintrc.js +0 -18
- package/.vscode/extensions.json +0 -13
- package/.vscode/launch.json +0 -13
- package/.vscode/settings.json +0 -33
- package/ANGULAR_USAGE.md +0 -102
- package/APPLYING_STYLES.md +0 -44
- package/CHANGELOG.md +0 -23
- package/CONTRIBUTING.md +0 -56
- package/REACT_USAGE.md +0 -145
- package/VERSIONING.md +0 -28
- package/WEB_COMPONENTS_CRASH_COURSE.md +0 -255
- package/babel.config.js +0 -4
- package/codecov.yml +0 -10
- package/jest/cssTransform.js +0 -9
- package/jest/imgTransform.js +0 -9
- package/jest/svgTransform.js +0 -9
- package/jest.config.js +0 -37
- package/publish-conf.js +0 -65
- package/sonar-project.properties +0 -22
- package/sonar.config.js +0 -22
- package/src/[sandbox]/examples/AdvanceList/components/ErrorLoader/ErrorLoader.scss +0 -22
- package/src/[sandbox]/examples/AdvanceList/components/ErrorLoader/ErrorLoader.ts +0 -72
- package/src/[sandbox]/examples/AdvanceList/components/ParentComponentError.ts +0 -123
- package/src/[sandbox]/examples/AdvanceList/components/ParentComponentGeneric.ts +0 -101
- package/src/[sandbox]/examples/AdvanceList/components/ParentComponentPreSelect.ts +0 -98
- package/src/[sandbox]/examples/accordion.ts +0 -67
- package/src/[sandbox]/examples/advance-list.ts +0 -14
- package/src/[sandbox]/examples/alert-banner.ts +0 -100
- package/src/[sandbox]/examples/alert.ts +0 -130
- package/src/[sandbox]/examples/audio-player.ts +0 -9
- package/src/[sandbox]/examples/avatar.ts +0 -119
- package/src/[sandbox]/examples/badge.ts +0 -170
- package/src/[sandbox]/examples/breadcrumb.ts +0 -5
- package/src/[sandbox]/examples/button-group.ts +0 -66
- package/src/[sandbox]/examples/button.ts +0 -455
- package/src/[sandbox]/examples/card-ai.ts +0 -105
- package/src/[sandbox]/examples/card.ts +0 -76
- package/src/[sandbox]/examples/chat-message.ts +0 -33
- package/src/[sandbox]/examples/checkbox.ts +0 -64
- package/src/[sandbox]/examples/chip.ts +0 -121
- package/src/[sandbox]/examples/coachmark.ts +0 -90
- package/src/[sandbox]/examples/code-editor.ts +0 -13
- package/src/[sandbox]/examples/colorTable.ts +0 -12
- package/src/[sandbox]/examples/combobox.ts +0 -441
- package/src/[sandbox]/examples/date-range-picker.ts +0 -26
- package/src/[sandbox]/examples/date-time-picker.ts +0 -25
- package/src/[sandbox]/examples/datepicker.ts +0 -41
- package/src/[sandbox]/examples/draggable.ts +0 -70
- package/src/[sandbox]/examples/dropdown.ts +0 -263
- package/src/[sandbox]/examples/editable-field.ts +0 -115
- package/src/[sandbox]/examples/favorite.ts +0 -49
- package/src/[sandbox]/examples/floating-modal.ts +0 -101
- package/src/[sandbox]/examples/form.ts +0 -101
- package/src/[sandbox]/examples/grabber.ts +0 -199
- package/src/[sandbox]/examples/icon.ts +0 -72
- package/src/[sandbox]/examples/index.ts +0 -55
- package/src/[sandbox]/examples/input-file.ts +0 -7
- package/src/[sandbox]/examples/input.ts +0 -444
- package/src/[sandbox]/examples/label.ts +0 -13
- package/src/[sandbox]/examples/link.ts +0 -46
- package/src/[sandbox]/examples/list.ts +0 -55
- package/src/[sandbox]/examples/loading.ts +0 -8
- package/src/[sandbox]/examples/meeting-alert.ts +0 -108
- package/src/[sandbox]/examples/menu-item.ts +0 -33
- package/src/[sandbox]/examples/menu-overlay.ts +0 -579
- package/src/[sandbox]/examples/modal.ts +0 -451
- package/src/[sandbox]/examples/pagination.ts +0 -13
- package/src/[sandbox]/examples/phone-input.ts +0 -112
- package/src/[sandbox]/examples/popover.ts +0 -164
- package/src/[sandbox]/examples/progress-bar.ts +0 -6
- package/src/[sandbox]/examples/radio-group.ts +0 -52
- package/src/[sandbox]/examples/slider.ts +0 -17
- package/src/[sandbox]/examples/spinner.ts +0 -4
- package/src/[sandbox]/examples/table-advanced.ts +0 -120
- package/src/[sandbox]/examples/table.ts +0 -106
- package/src/[sandbox]/examples/tabs.ts +0 -887
- package/src/[sandbox]/examples/task-item.ts +0 -142
- package/src/[sandbox]/examples/timepicker.ts +0 -26
- package/src/[sandbox]/examples/toggle-switch.ts +0 -20
- package/src/[sandbox]/examples/tooltip.ts +0 -138
- package/src/[sandbox]/favicon.ico +0 -0
- package/src/[sandbox]/index.html +0 -15
- package/src/[sandbox]/sandbox.mock.ts +0 -636
- package/src/[sandbox]/sandbox.scss +0 -66
- package/src/[sandbox]/sandbox.ts +0 -318
- package/src/assets/images/profile.svg +0 -47
- package/src/assets/images/whatsapp.svg +0 -1104
- package/src/assets/images/wxm.svg +0 -8
- package/src/components/accordion/Accordion.mdx +0 -74
- package/src/components/accordion/Accordion.stories.ts +0 -40
- package/src/components/accordion/Accordion.test.ts +0 -151
- package/src/components/accordion/Accordion.ts +0 -188
- package/src/components/accordion/AccordionItem.test.ts +0 -124
- package/src/components/accordion/AccordionItem.ts +0 -180
- package/src/components/accordion/scss/accordion-item.scss +0 -92
- package/src/components/accordion/scss/accordion.scss +0 -32
- package/src/components/accordion/scss/mixins.scss +0 -16
- package/src/components/accordion/scss/module.scss +0 -2
- package/src/components/accordion/scss/settings.scss +0 -14
- package/src/components/accordion/tokens/lm-accordion-tokens.js +0 -26
- package/src/components/accordion/tokens/md-accordion-tokens.js +0 -26
- package/src/components/accordion/tokens/mdv2-accordion-tokens.js +0 -21
- package/src/components/activity-button/ActivityButton.test.ts +0 -52
- package/src/components/activity-button/ActivityButton.ts +0 -92
- package/src/components/activity-button/scss/activity-button.scss +0 -160
- package/src/components/activity-button/scss/module.scss +0 -63
- package/src/components/advance-list/AdvanceList.test.ts +0 -357
- package/src/components/advance-list/AdvanceList.ts +0 -293
- package/src/components/advance-list/scss/AdvanceList.scss +0 -82
- package/src/components/advance-list/scss/module.scss +0 -8
- package/src/components/advance-list/tokens/lm-advance-list-tokens.js +0 -46
- package/src/components/advance-list/tokens/md-advance-list-tokens.js +0 -46
- package/src/components/advance-list/tokens/mdv2-adavance-list-tokens.js +0 -49
- package/src/components/alert/Alert.mdx +0 -72
- package/src/components/alert/Alert.stories.ts +0 -94
- package/src/components/alert/Alert.test.ts +0 -276
- package/src/components/alert/Alert.ts +0 -282
- package/src/components/alert/scss/alert.scss +0 -221
- package/src/components/alert/scss/mixins.scss +0 -27
- package/src/components/alert/scss/module.scss +0 -6
- package/src/components/alert/scss/settings.scss +0 -27
- package/src/components/alert/tokens/lm-alert-tokens.js +0 -63
- package/src/components/alert/tokens/md-alert-tokens.js +0 -63
- package/src/components/alert/tokens/mdv2-alert-tokens.js +0 -51
- package/src/components/alert-banner/AlertBanner.mdx +0 -38
- package/src/components/alert-banner/AlertBanner.stories.ts +0 -49
- package/src/components/alert-banner/AlertBanner.test.ts +0 -79
- package/src/components/alert-banner/AlertBanner.ts +0 -89
- package/src/components/alert-banner/scss/alert-banner.scss +0 -71
- package/src/components/alert-banner/scss/mixins.scss +0 -8
- package/src/components/alert-banner/scss/module.scss +0 -7
- package/src/components/alert-banner/scss/settings.scss +0 -9
- package/src/components/alert-banner/tokens/lm-alertbanner-tokens.js +0 -50
- package/src/components/alert-banner/tokens/md-alertbanner-tokens.js +0 -50
- package/src/components/alert-banner/tokens/mdv2-alertbanner-tokens.js +0 -44
- package/src/components/audio-player/AudioPlayer.stories.ts +0 -33
- package/src/components/audio-player/AudioPlayer.test.ts +0 -208
- package/src/components/audio-player/AudioPlayer.ts +0 -539
- package/src/components/audio-player/scss/audio-player.scss +0 -236
- package/src/components/audio-player/scss/mixins.scss +0 -0
- package/src/components/audio-player/scss/module.scss +0 -16
- package/src/components/audio-player/scss/settings.scss +0 -15
- package/src/components/audio-player/tokens/lm-audio-player-token.js +0 -46
- package/src/components/audio-player/tokens/md-audio-player-token.js +0 -46
- package/src/components/audio-player/tokens/mdv2-audio-player-token.js +0 -37
- package/src/components/avatar/Avatar.constants.ts +0 -31
- package/src/components/avatar/Avatar.mdx +0 -153
- package/src/components/avatar/Avatar.stories.ts +0 -98
- package/src/components/avatar/Avatar.test.ts +0 -218
- package/src/components/avatar/Avatar.ts +0 -284
- package/src/components/avatar/CompositeAvatar.ts +0 -47
- package/src/components/avatar/Presence.test.ts +0 -225
- package/src/components/avatar/Presence.ts +0 -46
- package/src/components/avatar/Presence.utils.ts +0 -114
- package/src/components/avatar/scss/avatar.scss +0 -331
- package/src/components/avatar/scss/composite-avatar.scss +0 -89
- package/src/components/avatar/scss/mixins.scss +0 -33
- package/src/components/avatar/scss/module.scss +0 -18
- package/src/components/avatar/scss/presence.scss +0 -50
- package/src/components/avatar/scss/settings.scss +0 -103
- package/src/components/avatar/tokens/lm-avatar-tokens.js +0 -193
- package/src/components/avatar/tokens/md-avatar-tokens.js +0 -183
- package/src/components/avatar/tokens/mdv2-avatar-tokens.js +0 -182
- package/src/components/badge/Badge.stories.ts +0 -55
- package/src/components/badge/Badge.test.ts +0 -100
- package/src/components/badge/Badge.ts +0 -114
- package/src/components/badge/scss/badge.scss +0 -244
- package/src/components/badge/scss/mixins.scss +0 -82
- package/src/components/badge/scss/module.scss +0 -12
- package/src/components/badge/scss/settings.scss +0 -69
- package/src/components/badge/tokens/lm-badge-tokens.js +0 -369
- package/src/components/badge/tokens/md-badge-tokens.js +0 -359
- package/src/components/badge/tokens/mdv2-badge-tokens.js +0 -392
- package/src/components/breadcrumb/Breadcrumb.stories.ts +0 -50
- package/src/components/breadcrumb/Breadcrumb.test.ts +0 -38
- package/src/components/breadcrumb/Breadcrumb.ts +0 -79
- package/src/components/breadcrumb/scss/breadcrumb.scss +0 -39
- package/src/components/breadcrumb/scss/mixins.scss +0 -5
- package/src/components/breadcrumb/scss/module.scss +0 -15
- package/src/components/breadcrumb/scss/settings.scss +0 -6
- package/src/components/breadcrumb/tokens/lm-breadcrumb-token.js +0 -23
- package/src/components/breadcrumb/tokens/md-breadcrumb-token.js +0 -23
- package/src/components/breadcrumb/tokens/mdv2-breadcrumb-token.js +0 -18
- package/src/components/button/Button.mdx +0 -77
- package/src/components/button/Button.stories.ts +0 -90
- package/src/components/button/Button.test.ts +0 -278
- package/src/components/button/Button.ts +0 -384
- package/src/components/button/README.md +0 -72
- package/src/components/button/scss/button.scss +0 -1067
- package/src/components/button/scss/mixins.scss +0 -281
- package/src/components/button/scss/module.scss +0 -16
- package/src/components/button/scss/settings.scss +0 -241
- package/src/components/button/tokens/lm-button-tokens.js +0 -467
- package/src/components/button/tokens/mdv2-button-tokens.js +0 -544
- package/src/components/button-group/ButtonGroup.stories.ts +0 -45
- package/src/components/button-group/ButtonGroup.test.ts +0 -146
- package/src/components/button-group/ButtonGroup.ts +0 -219
- package/src/components/button-group/scss/button-group.scss +0 -95
- package/src/components/button-group/scss/module.scss +0 -14
- package/src/components/button-group/scss/settings.scss +0 -5
- package/src/components/button-group/tokens/lm-button-group-tokens.js +0 -38
- package/src/components/button-group/tokens/md-button-group-tokens.js +0 -38
- package/src/components/button-group/tokens/mdv2-button-group-tokens.js +0 -40
- package/src/components/card/Card.stories.ts +0 -83
- package/src/components/card/Card.test.ts +0 -83
- package/src/components/card/Card.ts +0 -179
- package/src/components/card/scss/card.scss +0 -131
- package/src/components/card/scss/module.scss +0 -13
- package/src/components/card/scss/settings.scss +0 -11
- package/src/components/card-ai/CardAi.stories.ts +0 -58
- package/src/components/card-ai/CardAi.test.ts +0 -203
- package/src/components/card-ai/CardAi.ts +0 -232
- package/src/components/card-ai/scss/card-ai.scss +0 -107
- package/src/components/card-ai/scss/module.scss +0 -13
- package/src/components/card-ai/scss/settings.scss +0 -17
- package/src/components/card-ai/tokens/lm-card-ai-tokens.js +0 -16
- package/src/components/card-ai/tokens/md-card-ai-tokens.js +0 -16
- package/src/components/card-ai/tokens/mdv2-card-ai-tokens.js +0 -16
- package/src/components/chat-message/ChatMessage.stories.ts +0 -41
- package/src/components/chat-message/ChatMessage.test.ts +0 -53
- package/src/components/chat-message/ChatMessage.ts +0 -52
- package/src/components/chat-message/scss/chat-message.scss +0 -49
- package/src/components/chat-message/scss/mixins.scss +0 -6
- package/src/components/chat-message/scss/module.scss +0 -16
- package/src/components/chat-message/scss/settings.scss +0 -7
- package/src/components/chat-message/tokens/lm-chat-message-tokens.js +0 -18
- package/src/components/chat-message/tokens/md-chat-message-tokens.js +0 -18
- package/src/components/chat-message/tokens/mdv2-chat-message-tokens.js +0 -15
- package/src/components/checkbox/Checkbox.stories.ts +0 -58
- package/src/components/checkbox/Checkbox.test.ts +0 -124
- package/src/components/checkbox/Checkbox.ts +0 -172
- package/src/components/checkbox/CheckboxGroup.test.ts +0 -43
- package/src/components/checkbox/CheckboxGroup.ts +0 -91
- package/src/components/checkbox/scss/checkbox.scss +0 -152
- package/src/components/checkbox/scss/checkboxgroup.scss +0 -17
- package/src/components/checkbox/scss/mixins.scss +0 -0
- package/src/components/checkbox/scss/module.scss +0 -9
- package/src/components/checkbox/scss/settings.scss +0 -15
- package/src/components/checkbox/tokens/lm-checkbox-tokens.js +0 -82
- package/src/components/checkbox/tokens/md-checkbox-tokens.js +0 -83
- package/src/components/checkbox/tokens/mdv2-checkbox-tokens.js +0 -65
- package/src/components/chip/Chip.stories.ts +0 -80
- package/src/components/chip/Chip.test.ts +0 -137
- package/src/components/chip/Chip.ts +0 -282
- package/src/components/chip/scss/chip.scss +0 -469
- package/src/components/chip/scss/mixins.scss +0 -54
- package/src/components/chip/scss/module.scss +0 -17
- package/src/components/chip/scss/settings.scss +0 -5
- package/src/components/coachmark/Coachmark.stories.ts +0 -49
- package/src/components/coachmark/Coachmark.test.ts +0 -143
- package/src/components/coachmark/Coachmark.ts +0 -155
- package/src/components/coachmark/scss/coachmarks.scss +0 -281
- package/src/components/coachmark/scss/module.scss +0 -10
- package/src/components/coachmark/scss/settings.scss +0 -7
- package/src/components/coachmark/tokens/lm-coachmark-tokens.js +0 -140
- package/src/components/coachmark/tokens/md-coachmark-tokens.js +0 -130
- package/src/components/coachmark/tokens/mdv2-coachmark-tokens.js +0 -117
- package/src/components/coachmark-popover/CoachmarkPopover.ts +0 -366
- package/src/components/coachmark-popover/scss/coachmark-popover.scss +0 -84
- package/src/components/coachmark-popover/scss/module.scss +0 -1
- package/src/components/coachmark-popover/scss/settings.scss +0 -14
- package/src/components/code-editor/CodeEditor.stories.ts +0 -37
- package/src/components/code-editor/CodeEditor.test.ts +0 -46
- package/src/components/code-editor/CodeEditor.ts +0 -183
- package/src/components/code-editor/scss/code-editor.scss +0 -157
- package/src/components/code-editor/scss/module.scss +0 -12
- package/src/components/code-editor/scss/settings.scss +0 -10
- package/src/components/combobox/ComboBox.stories.ts +0 -162
- package/src/components/combobox/ComboBox.test.ts +0 -1530
- package/src/components/combobox/ComboBox.ts +0 -1869
- package/src/components/combobox/scss/combobox.scss +0 -637
- package/src/components/combobox/scss/mixins.scss +0 -9
- package/src/components/combobox/scss/module.scss +0 -17
- package/src/components/combobox/scss/settings.scss +0 -39
- package/src/components/combobox/tokens/lm-combobox-tokens.js +0 -164
- package/src/components/combobox/tokens/md-combobox-tokens.js +0 -168
- package/src/components/combobox/tokens/mdv2-combobox-tokens.js +0 -146
- package/src/components/date-range-picker/DateRangePicker.stories.ts +0 -44
- package/src/components/date-range-picker/DateRangePicker.test.ts +0 -156
- package/src/components/date-range-picker/DateRangePicker.ts +0 -86
- package/src/components/date-range-picker/scss/daterangepicker.scss +0 -0
- package/src/components/date-range-picker/tokens/lm-date-range-picker-tokens.js +0 -26
- package/src/components/date-range-picker/tokens/md-date-range-picker-tokens.js +0 -26
- package/src/components/date-range-picker/tokens/mdv2-date-range-picker-tokens.js +0 -26
- package/src/components/date-time-picker/DateTimePicker.stories.ts +0 -54
- package/src/components/date-time-picker/DateTimePicker.test.ts +0 -37
- package/src/components/date-time-picker/DateTimePicker.ts +0 -187
- package/src/components/date-time-picker/scss/date-time-picker.scss +0 -7
- package/src/components/date-time-picker/scss/module.scss +0 -9
- package/src/components/date-time-picker/scss/settings.scss +0 -1
- package/src/components/datepicker/DatePicker.stories.ts +0 -45
- package/src/components/datepicker/DatePicker.test.ts +0 -97
- package/src/components/datepicker/DatePicker.ts +0 -290
- package/src/components/datepicker/datepicker-calendar/DatePickerCalendar.test.ts +0 -70
- package/src/components/datepicker/datepicker-calendar/DatePickerCalendar.ts +0 -179
- package/src/components/datepicker/datepicker-day/DatePickerDay.test.ts +0 -48
- package/src/components/datepicker/datepicker-day/DatePickerDay.ts +0 -173
- package/src/components/datepicker/datepicker-month/DatePickerMonth.test.ts +0 -13
- package/src/components/datepicker/datepicker-month/DatePickerMonth.ts +0 -60
- package/src/components/datepicker/datepicker-week/DatePickerWeek.test.ts +0 -13
- package/src/components/datepicker/datepicker-week/DatePickerWeek.ts +0 -56
- package/src/components/datepicker/scss/datepicker.scss +0 -263
- package/src/components/datepicker/scss/module.scss +0 -9
- package/src/components/datepicker/scss/settings.scss +0 -9
- package/src/components/datepicker/tokens/lm-datepicker-tokens.js +0 -68
- package/src/components/datepicker/tokens/md-datepicker-tokens.js +0 -68
- package/src/components/datepicker/tokens/mdv2-datepicker-tokens.js +0 -91
- package/src/components/draggable/Draggable.mdx +0 -258
- package/src/components/draggable/Draggable.stories.ts +0 -166
- package/src/components/draggable/Draggable.test.ts +0 -116
- package/src/components/draggable/Draggable.ts +0 -203
- package/src/components/draggable/DraggableItem.test.ts +0 -45
- package/src/components/draggable/DraggableItem.ts +0 -58
- package/src/components/draggable/scss/draggable-item.scss +0 -70
- package/src/components/draggable/scss/module.scss +0 -12
- package/src/components/draggable/scss/settings.scss +0 -6
- package/src/components/dropdown/Dropdown.stories.ts +0 -110
- package/src/components/dropdown/Dropdown.test.ts +0 -461
- package/src/components/dropdown/Dropdown.ts +0 -897
- package/src/components/dropdown/scss/dropdown.scss +0 -497
- package/src/components/dropdown/scss/mixins.scss +0 -23
- package/src/components/dropdown/scss/module.scss +0 -25
- package/src/components/dropdown/scss/settings.scss +0 -28
- package/src/components/dropdown/tokens/lm-dropdown-tokens.js +0 -68
- package/src/components/dropdown/tokens/md-dropdown-tokens.js +0 -68
- package/src/components/dropdown/tokens/mdv2-dropdown-tokens.js +0 -74
- package/src/components/editable-textfield/EditableTextfield.stories.ts +0 -93
- package/src/components/editable-textfield/EditableTextfield.test.ts +0 -219
- package/src/components/editable-textfield/EditableTextfield.ts +0 -262
- package/src/components/editable-textfield/scss/editable-textfield.scss +0 -128
- package/src/components/editable-textfield/scss/module.scss +0 -14
- package/src/components/editable-textfield/scss/settings.scss +0 -6
- package/src/components/editable-textfield/tokens/lm-editabletextfield-tokens.js +0 -130
- package/src/components/editable-textfield/tokens/md-editabletextfield-tokens.js +0 -118
- package/src/components/editable-textfield/tokens/mdv2-editabletextfield-tokens.js +0 -129
- package/src/components/favorite/Favorite.mdx +0 -27
- package/src/components/favorite/Favorite.stories.ts +0 -43
- package/src/components/favorite/Favorite.test.ts +0 -116
- package/src/components/favorite/Favorite.ts +0 -119
- package/src/components/favorite/scss/favorite.scss +0 -118
- package/src/components/favorite/scss/module.scss +0 -7
- package/src/components/favorite/scss/settings.scss +0 -3
- package/src/components/floating-modal/Floating.mdx +0 -42
- package/src/components/floating-modal/FloatingMinimizedModal.test.ts +0 -92
- package/src/components/floating-modal/FloatingMinimizedModal.ts +0 -278
- package/src/components/floating-modal/FloatingModal.stories.ts +0 -67
- package/src/components/floating-modal/FloatingModal.test.ts +0 -114
- package/src/components/floating-modal/FloatingModal.ts +0 -372
- package/src/components/floating-modal/README.md +0 -36
- package/src/components/floating-modal/scss/floating.scss +0 -85
- package/src/components/floating-modal/scss/module.scss +0 -19
- package/src/components/floating-modal/scss/settings.scss +0 -5
- package/src/components/floating-modal/tokens/lm-floating-modal-tokens.js +0 -46
- package/src/components/floating-modal/tokens/md-floating-modal-tokens.js +0 -46
- package/src/components/floating-modal/tokens/mdv2-floating-modal-tokens.js +0 -38
- package/src/components/form/Form.stories.ts +0 -54
- package/src/components/form/Form.test.ts +0 -57
- package/src/components/form/Form.ts +0 -239
- package/src/components/grabber/Grabber.stories.ts +0 -54
- package/src/components/grabber/Grabber.test.ts +0 -194
- package/src/components/grabber/Grabber.ts +0 -224
- package/src/components/grabber/scss/grabber.scss +0 -133
- package/src/components/grabber/scss/module.scss +0 -1
- package/src/components/grabber/tokens/lm-grabber-tokens.js +0 -39
- package/src/components/grabber/tokens/md-grabber-tokens.js +0 -39
- package/src/components/grabber/tokens/mdv2-grabber-tokens.js +0 -38
- package/src/components/help-text/HelpText.test.ts +0 -38
- package/src/components/help-text/HelpText.ts +0 -69
- package/src/components/help-text/scss/help-text.scss +0 -50
- package/src/components/help-text/scss/mixins.scss +0 -14
- package/src/components/help-text/scss/module.scss +0 -13
- package/src/components/help-text/scss/settings.scss +0 -5
- package/src/components/help-text/tokens/lm-help-text-tokens.js +0 -16
- package/src/components/help-text/tokens/md-help-text-tokens.js +0 -16
- package/src/components/help-text/tokens/mdv2-help-text-tokens.js +0 -14
- package/src/components/icon/Icon.stories.ts +0 -87
- package/src/components/icon/Icon.test.ts +0 -181
- package/src/components/icon/Icon.ts +0 -474
- package/src/components/icon/momentum-ui-to-design-icons.json +0 -3087
- package/src/components/icon/scss/icon.scss +0 -36
- package/src/components/icon/scss/module.scss +0 -17
- package/src/components/icon/scss/settings.scss +0 -10
- package/src/components/input/Input.stories.ts +0 -148
- package/src/components/input/Input.test.ts +0 -347
- package/src/components/input/Input.ts +0 -557
- package/src/components/input/scss/input.scss +0 -564
- package/src/components/input/scss/module.scss +0 -26
- package/src/components/input/tokens/lm-input-tokens.js +0 -156
- package/src/components/input/tokens/md-input-tokens.js +0 -146
- package/src/components/input/tokens/mdv2-input-tokens.js +0 -171
- package/src/components/input-file/InputFile.stories.ts +0 -20
- package/src/components/input-file/InputFile.test.ts +0 -39
- package/src/components/input-file/InputFile.ts +0 -115
- package/src/components/input-file/scss/input-file.scss +0 -8
- package/src/components/input-file/scss/module.scss +0 -6
- package/src/components/label/Label.stories.ts +0 -55
- package/src/components/label/Label.test.ts +0 -26
- package/src/components/label/Label.ts +0 -81
- package/src/components/label/scss/label.scss +0 -44
- package/src/components/label/scss/mixins.scss +0 -25
- package/src/components/label/scss/module.scss +0 -17
- package/src/components/label/scss/settings.scss +0 -8
- package/src/components/label/tokens/lm-label-tokens.js +0 -18
- package/src/components/label/tokens/md-label-tokens.js +0 -18
- package/src/components/label/tokens/mdv2-label-tokens.js +0 -15
- package/src/components/link/Link.stories.ts +0 -59
- package/src/components/link/Link.test.ts +0 -98
- package/src/components/link/Link.ts +0 -123
- package/src/components/link/scss/link.scss +0 -43
- package/src/components/link/scss/mixins.scss +0 -124
- package/src/components/link/scss/module.scss +0 -11
- package/src/components/link/scss/settings.scss +0 -5
- package/src/components/link/tokens/lm-link-tokens.js +0 -61
- package/src/components/link/tokens/md-link-tokens.js +0 -127
- package/src/components/link/tokens/mdv2-link-tokens.js +0 -120
- package/src/components/list/List.stories.ts +0 -55
- package/src/components/list/List.test.ts +0 -214
- package/src/components/list/List.ts +0 -198
- package/src/components/list/ListItem.test.ts +0 -59
- package/src/components/list/ListItem.ts +0 -69
- package/src/components/list/scss/list.scss +0 -26
- package/src/components/list/scss/listitem.scss +0 -88
- package/src/components/list/scss/mixins.scss +0 -8
- package/src/components/list/scss/module.scss +0 -15
- package/src/components/list/scss/settings.scss +0 -7
- package/src/components/list/tokens/lm-list-tokens.js +0 -46
- package/src/components/list/tokens/md-list-tokens.js +0 -46
- package/src/components/list/tokens/mdv2-list-tokens.js +0 -46
- package/src/components/loading/Loading.stories.ts +0 -39
- package/src/components/loading/Loading.test.ts +0 -29
- package/src/components/loading/Loading.ts +0 -48
- package/src/components/loading/scss/loading.scss +0 -78
- package/src/components/loading/scss/module.scss +0 -1
- package/src/components/meeting-alert/CompositeAvatar.ts +0 -37
- package/src/components/meeting-alert/MeetingAlert.mdx +0 -187
- package/src/components/meeting-alert/MeetingAlert.stories.ts +0 -182
- package/src/components/meeting-alert/MeetingAlert.test.ts +0 -227
- package/src/components/meeting-alert/MeetingAlert.ts +0 -203
- package/src/components/meeting-alert/scss/alert.scss +0 -244
- package/src/components/meeting-alert/scss/mixins.scss +0 -13
- package/src/components/meeting-alert/scss/module.scss +0 -20
- package/src/components/meeting-alert/scss/settings.scss +0 -27
- package/src/components/meeting-alert/tokens/lm-meeting-alert-tokens.js +0 -15
- package/src/components/meeting-alert/tokens/md-meeting-alert-tokens.js +0 -15
- package/src/components/meeting-alert/tokens/mdv2-meeting-alert-tokens.js +0 -43
- package/src/components/menu/Menu.stories.ts +0 -66
- package/src/components/menu/Menu.test.ts +0 -109
- package/src/components/menu/Menu.ts +0 -218
- package/src/components/menu/MenuItem.test.ts +0 -49
- package/src/components/menu/MenuItem.ts +0 -159
- package/src/components/menu/scss/menu-item.scss +0 -61
- package/src/components/menu/scss/menu.scss +0 -31
- package/src/components/menu/scss/module.scss +0 -15
- package/src/components/menu/scss/settings.scss +0 -18
- package/src/components/menu/tokens/lm-menu-tokens.js +0 -27
- package/src/components/menu/tokens/md-menu-tokens.js +0 -27
- package/src/components/menu/tokens/mdv2-menu-tokens.js +0 -42
- package/src/components/menu-overlay/MenuOverlay.stories.ts +0 -104
- package/src/components/menu-overlay/MenuOverlay.test.ts +0 -634
- package/src/components/menu-overlay/MenuOverlay.ts +0 -476
- package/src/components/menu-overlay/scss/menu-overlay.scss +0 -109
- package/src/components/menu-overlay/scss/module.scss +0 -12
- package/src/components/menu-overlay/scss/settings.scss +0 -6
- package/src/components/modal/Modal.stories.ts +0 -74
- package/src/components/modal/Modal.test.ts +0 -217
- package/src/components/modal/Modal.ts +0 -292
- package/src/components/modal/scss/mixins.scss +0 -109
- package/src/components/modal/scss/modal.scss +0 -357
- package/src/components/modal/scss/module.scss +0 -18
- package/src/components/modal/scss/settings.scss +0 -59
- package/src/components/modal/tokens/lm-modal-tokens.js +0 -44
- package/src/components/modal/tokens/md-modal-tokens.js +0 -44
- package/src/components/modal/tokens/mdv2-modal-tokens.js +0 -36
- package/src/components/pagination/Pagination.stories.ts +0 -32
- package/src/components/pagination/Pagination.test.ts +0 -74
- package/src/components/pagination/Pagination.ts +0 -219
- package/src/components/pagination/scss/mixins.scss +0 -11
- package/src/components/pagination/scss/module.scss +0 -18
- package/src/components/pagination/scss/pagination.scss +0 -120
- package/src/components/pagination/scss/settings.scss +0 -11
- package/src/components/pagination/tokens/lm-pagination-tokens.js +0 -49
- package/src/components/pagination/tokens/md-pagination-tokens.js +0 -49
- package/src/components/pagination/tokens/mdv2-pagination-tokens.js +0 -39
- package/src/components/phone-input/PhoneInput.stories.ts +0 -39
- package/src/components/phone-input/PhoneInput.test.ts +0 -198
- package/src/components/phone-input/PhoneInput.ts +0 -288
- package/src/components/phone-input/scss/module.scss +0 -7
- package/src/components/phone-input/scss/phoneInput.scss +0 -103
- package/src/components/phone-input/scss/settings.scss +0 -3
- package/src/components/phone-input/tokens/lm-phone-input-tokens.js +0 -26
- package/src/components/phone-input/tokens/md-phone-input-tokens.js +0 -26
- package/src/components/phone-input/tokens/mdv2-phone-input-tokens.js +0 -22
- package/src/components/popover/Popover.ts +0 -580
- package/src/components/popover/Popover.types.ts +0 -26
- package/src/components/popover/scss/module.scss +0 -2
- package/src/components/popover/scss/popover.scss +0 -131
- package/src/components/popover/scss/settings.scss +0 -11
- package/src/components/popover/tokens/lm-popover-tokens.js +0 -18
- package/src/components/popover/tokens/md-popover-tokens.js +0 -18
- package/src/components/popover/tokens/mdv2-popover-tokens.js +0 -18
- package/src/components/progress-bar/ProgressBar.stories.ts +0 -43
- package/src/components/progress-bar/ProgressBar.test.ts +0 -120
- package/src/components/progress-bar/ProgressBar.ts +0 -112
- package/src/components/progress-bar/scss/mixins.scss +0 -49
- package/src/components/progress-bar/scss/module.scss +0 -10
- package/src/components/progress-bar/scss/progress.scss +0 -77
- package/src/components/progress-bar/scss/settings.scss +0 -29
- package/src/components/progress-bar/tokens/lm-progress-bar-tokens.js +0 -28
- package/src/components/progress-bar/tokens/md-progress-bar-tokens.js +0 -28
- package/src/components/progress-bar/tokens/mdv2-progress-bar-tokens.js +0 -36
- package/src/components/radio/Radio.test.ts +0 -66
- package/src/components/radio/Radio.ts +0 -94
- package/src/components/radio/RadioGroup.stories.ts +0 -49
- package/src/components/radio/RadioGroup.test.ts +0 -209
- package/src/components/radio/RadioGroup.ts +0 -195
- package/src/components/radio/scss/mixins.scss +0 -7
- package/src/components/radio/scss/module.scss +0 -14
- package/src/components/radio/scss/radio.scss +0 -150
- package/src/components/radio/scss/radiogroup.scss +0 -29
- package/src/components/radio/scss/settings.scss +0 -18
- package/src/components/radio/tokens/lm-radio-tokens.js +0 -84
- package/src/components/radio/tokens/md-radio-tokens.js +0 -84
- package/src/components/radio/tokens/mdv2-radio-tokens.js +0 -67
- package/src/components/sass-stats/README.md +0 -25
- package/src/components/sass-stats/SassStats.test.ts +0 -13
- package/src/components/sass-stats/SassStats.ts +0 -110
- package/src/components/slider/Slider.stories.ts +0 -62
- package/src/components/slider/Slider.test.ts +0 -128
- package/src/components/slider/Slider.ts +0 -283
- package/src/components/slider/scss/mixins.scss +0 -5
- package/src/components/slider/scss/module.scss +0 -17
- package/src/components/slider/scss/settings.scss +0 -10
- package/src/components/slider/scss/slider.scss +0 -188
- package/src/components/slider/tokens/lm-slider-token.js +0 -57
- package/src/components/slider/tokens/md-slider-tokens.js +0 -61
- package/src/components/slider/tokens/mdv2-slider-token.js +0 -50
- package/src/components/spinner/Spinner.stories.ts +0 -36
- package/src/components/spinner/Spinner.test.ts +0 -18
- package/src/components/spinner/Spinner.ts +0 -40
- package/src/components/spinner/scss/mixins.scss +0 -34
- package/src/components/spinner/scss/module.scss +0 -10
- package/src/components/spinner/scss/settings.scss +0 -3
- package/src/components/spinner/scss/spinner.scss +0 -50
- package/src/components/spinner/tokens/lm-spinner-tokens.js +0 -16
- package/src/components/spinner/tokens/md-spinner-tokens.js +0 -18
- package/src/components/spinner/tokens/mdv2-spinner-tokens.js +0 -15
- package/src/components/table/Table.stories.ts +0 -76
- package/src/components/table/Table.test.ts +0 -51
- package/src/components/table/Table.ts +0 -234
- package/src/components/table/scss/mixins.scss +0 -6
- package/src/components/table/scss/module.scss +0 -27
- package/src/components/table/scss/settings.scss +0 -11
- package/src/components/table/scss/table.scss +0 -148
- package/src/components/table/tokens/lm-table-tokens.js +0 -42
- package/src/components/table/tokens/md-table-tokens.js +0 -42
- package/src/components/table/tokens/mdv2-table-tokens.js +0 -35
- package/src/components/table-advanced/TableAdvanced.md +0 -233
- package/src/components/table-advanced/TableAdvanced.mdx +0 -240
- package/src/components/table-advanced/TableAdvanced.stories.ts +0 -161
- package/src/components/table-advanced/TableAdvanced.test.ts +0 -374
- package/src/components/table-advanced/TableAdvanced.ts +0 -1081
- package/src/components/table-advanced/scss/module.scss +0 -27
- package/src/components/table-advanced/scss/settings.scss +0 -16
- package/src/components/table-advanced/scss/table-advanced.scss +0 -399
- package/src/components/table-advanced/src/decorators.ts +0 -150
- package/src/components/table-advanced/src/filter.ts +0 -86
- package/src/components/table-advanced/tokens/lm-table-advanced-tokens.js +0 -64
- package/src/components/table-advanced/tokens/md-table-advanced-tokens.js +0 -64
- package/src/components/table-advanced/tokens/mdv2-table-advanced-tokens.js +0 -64
- package/src/components/tabs/Tab.test.ts +0 -103
- package/src/components/tabs/Tab.ts +0 -219
- package/src/components/tabs/TabPanel.test.ts +0 -31
- package/src/components/tabs/TabPanel.ts +0 -44
- package/src/components/tabs/Tabs.stories.ts +0 -171
- package/src/components/tabs/Tabs.test.ts +0 -676
- package/src/components/tabs/Tabs.ts +0 -1231
- package/src/components/tabs/scss/mixins.scss +0 -6
- package/src/components/tabs/scss/module.scss +0 -14
- package/src/components/tabs/scss/settings.scss +0 -25
- package/src/components/tabs/scss/tab.scss +0 -378
- package/src/components/tabs/scss/tabs.scss +0 -250
- package/src/components/tabs/tokens/lm-tabs-tokens.js +0 -92
- package/src/components/tabs/tokens/md-tabs-tokens.js +0 -86
- package/src/components/tabs/tokens/mdv2-tabs-tokens.js +0 -70
- package/src/components/taskitem/TaskItem.stories.ts +0 -70
- package/src/components/taskitem/TaskItem.test.ts +0 -496
- package/src/components/taskitem/TaskItem.ts +0 -293
- package/src/components/taskitem/scss/mixins.scss +0 -42
- package/src/components/taskitem/scss/module.scss +0 -15
- package/src/components/taskitem/scss/settings.scss +0 -45
- package/src/components/taskitem/scss/task-item.scss +0 -229
- package/src/components/taskitem/tokens/lm-taskitem-tokens.js +0 -72
- package/src/components/taskitem/tokens/md-taskitem-tokens.js +0 -72
- package/src/components/taskitem/tokens/mdv2-taskitem-tokens.js +0 -58
- package/src/components/theme/README.md +0 -13
- package/src/components/theme/Theme.test.ts +0 -157
- package/src/components/theme/Theme.ts +0 -392
- package/src/components/theme/index.ts +0 -8
- package/src/components/timepicker/TimePicker.stories.ts +0 -39
- package/src/components/timepicker/TimePicker.test.ts +0 -145
- package/src/components/timepicker/TimePicker.ts +0 -425
- package/src/components/timepicker/scss/module.scss +0 -9
- package/src/components/timepicker/scss/settings.scss +0 -8
- package/src/components/timepicker/scss/timepicker.scss +0 -71
- package/src/components/toggle-switch/ToggleSwitch.stories.ts +0 -48
- package/src/components/toggle-switch/ToggleSwitch.test.ts +0 -92
- package/src/components/toggle-switch/ToggleSwitch.ts +0 -102
- package/src/components/toggle-switch/scss/mixins.scss +0 -114
- package/src/components/toggle-switch/scss/module.scss +0 -7
- package/src/components/toggle-switch/scss/settings.scss +0 -16
- package/src/components/toggle-switch/scss/toggle-switch.scss +0 -197
- package/src/components/toggle-switch/tokens/lm-toggle-tokens.js +0 -54
- package/src/components/toggle-switch/tokens/md-toggle-tokens.js +0 -54
- package/src/components/toggle-switch/tokens/mdv2-toggle-tokens.js +0 -54
- package/src/components/tooltip/Tooltip.stories.ts +0 -55
- package/src/components/tooltip/Tooltip.test.ts +0 -108
- package/src/components/tooltip/Tooltip.ts +0 -239
- package/src/components/tooltip/scss/module.scss +0 -9
- package/src/components/tooltip/scss/settings.scss +0 -11
- package/src/components/tooltip/scss/tooltip.scss +0 -151
- package/src/components/tooltip/tokens/lm-tooltip-tokens.js +0 -18
- package/src/components/tooltip/tokens/md-tooltip-tokens.js +0 -18
- package/src/components/tooltip/tokens/mdv2-tooltip-tokens.js +0 -42
- package/src/constants.ts +0 -42
- package/src/index.ts +0 -82
- package/src/internal-components/color-table/ColorTable.stories.ts +0 -31
- package/src/internal-components/color-table/ColorTable.ts +0 -83
- package/src/internal-components/color-table/data.ts +0 -203
- package/src/internal-components/color-table/scss/color-table.scss +0 -739
- package/src/internal-components/color-table/scss/module.scss +0 -11
- package/src/internal-components/color-table/utils.ts +0 -552
- package/src/managers/ThemeManager.ts +0 -91
- package/src/mixins/CustomElementCheck.ts +0 -25
- package/src/mixins/DedupeMixin.test.ts +0 -81
- package/src/mixins/DedupeMixin.ts +0 -54
- package/src/mixins/FocusMixin.test.ts +0 -116
- package/src/mixins/FocusMixin.ts +0 -136
- package/src/mixins/FocusTrapMixin.test.ts +0 -560
- package/src/mixins/FocusTrapMixin.ts +0 -492
- package/src/mixins/ResizeMixin.test.ts +0 -84
- package/src/mixins/ResizeMixin.ts +0 -142
- package/src/mixins/RovingTabIndexMixin.test.ts +0 -60
- package/src/mixins/RovingTabIndexMixin.ts +0 -135
- package/src/mixins/SlottedMixin.test.ts +0 -68
- package/src/mixins/SlottedMixin.ts +0 -116
- package/src/mixins/index.ts +0 -17
- package/src/templates/color-table-data-string.hbs +0 -22
- package/src/templates/colors-settings.hbs +0 -21
- package/src/templates/colors.hbs +0 -35
- package/src/templates/component-colors.hbs +0 -40
- package/src/templates/css-color-variables.hbs +0 -22
- package/src/templates/dark-colors.hbs +0 -33
- package/src/templates/light-colors.hbs +0 -33
- package/src/templates/semantic-color-dark.hbs +0 -28
- package/src/templates/semantic-color-light.hbs +0 -28
- package/src/templates/semantic-color-settings.hbs +0 -38
- package/src/tokens/Tokens.test.ts +0 -12
- package/src/tokens/tokenImports.js +0 -7
- package/src/tsconfig.json +0 -23
- package/src/types/declare.d.ts +0 -31
- package/src/types/globals.d.ts +0 -5
- package/src/utils/clearVars.js +0 -47
- package/src/utils/createTokenFilesModule.js +0 -88
- package/src/utils/dateUtils.test.ts +0 -174
- package/src/utils/dateUtils.ts +0 -102
- package/src/utils/enums.ts +0 -721
- package/src/utils/generateColorTableData.js +0 -41
- package/src/utils/generateScssFromTokens.js +0 -245
- package/src/utils/helpers.ts +0 -150
- package/src/utils/keyboard.ts +0 -5
- package/src/utils/validateIconMapping.js +0 -55
- package/src/utils/validations.ts +0 -29
- package/src/wc_scss/colors/settings-base.scss +0 -208
- package/src/wc_scss/colors/settings-transparencies.scss +0 -54
- package/src/wc_scss/colors/settings.scss +0 -1
- package/src/wc_scss/generic/global.scss +0 -117
- package/src/wc_scss/generic/normalize.scss +0 -422
- package/src/wc_scss/icon/settings.scss +0 -16
- package/src/wc_scss/path.scss +0 -4
- package/src/wc_scss/reset.scss +0 -27
- package/src/wc_scss/settings/button-settings.scss +0 -194
- package/src/wc_scss/settings/core.scss +0 -133
- package/src/wc_scss/settings/focus.scss +0 -9
- package/src/wc_scss/settings/form-controls.scss +0 -23
- package/src/wc_scss/settings/forms.scss +0 -29
- package/src/wc_scss/settings/input.scss +0 -63
- package/src/wc_scss/settings/list-item.scss +0 -86
- package/src/wc_scss/settings/list.scss +0 -10
- package/src/wc_scss/settings/media.scss +0 -116
- package/src/wc_scss/settings/overlay.scss +0 -6
- package/src/wc_scss/settings/rem.scss +0 -1
- package/src/wc_scss/settings/z-index.scss +0 -9
- package/src/wc_scss/themes/global--dark.scss +0 -116
- package/src/wc_scss/themes/global--light.scss +0 -116
- package/src/wc_scss/themes/global--lm.scss +0 -5
- package/src/wc_scss/themes/global--md.scss +0 -5
- package/src/wc_scss/themes/global--mdv2.scss +0 -187
- package/src/wc_scss/tools/functions/core.scss +0 -185
- package/src/wc_scss/tools/mixins/avatar.scss +0 -32
- package/src/wc_scss/tools/mixins/baseline.scss +0 -71
- package/src/wc_scss/tools/mixins/border-radius.scss +0 -26
- package/src/wc_scss/tools/mixins/button.scss +0 -256
- package/src/wc_scss/tools/mixins/core.scss +0 -204
- package/src/wc_scss/tools/mixins/easing.scss +0 -63
- package/src/wc_scss/tools/mixins/flex.scss +0 -14
- package/src/wc_scss/tools/mixins/focus.scss +0 -35
- package/src/wc_scss/tools/mixins/input.scss +0 -155
- package/src/wc_scss/tools/mixins/nav-divider.scss +0 -10
- package/src/wc_scss/tools/mixins/scrollbar.scss +0 -40
- package/src/wc_scss/tools/mixins/spacing.scss +0 -211
- package/src/wc_scss/tools/mixins/spinner.scss +0 -38
- package/src/wc_scss/typography/mixins.scss +0 -208
- package/src/wc_scss/typography/settings.scss +0 -300
- package/src/wc_scss/typography/typography.scss +0 -322
- package/stats/cssStats.js +0 -17
- package/stats/stats-loader.js +0 -23
- package/stats/utils.js +0 -5
- package/stats/writeFileSyncRecursive.js +0 -20
- package/tsconfig.json +0 -13
- package/webpack.config.dev.server.ts +0 -27
- package/webpack.config.ts +0 -312
- package/webpack.plugin.LoadChunks.ts +0 -76
- /package/{src → dist}/assets/styles/fonts.css +0 -0
|
@@ -1,1081 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Cisco Systems, Inc. and its affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import "@/components/button/Button";
|
|
10
|
-
import "@/components/icon/Icon";
|
|
11
|
-
import "@/components/menu-overlay/MenuOverlay";
|
|
12
|
-
import { customElementWithCheck } from "@/mixins/CustomElementCheck";
|
|
13
|
-
import { FocusTrapMixin } from "@/mixins/FocusTrapMixin";
|
|
14
|
-
import reset from "@/wc_scss/reset.scss";
|
|
15
|
-
import { html, internalProperty, LitElement, property, PropertyValues, queryAll } from "lit-element";
|
|
16
|
-
import { nothing, TemplateResult } from "lit-html";
|
|
17
|
-
import { classMap } from "lit-html/directives/class-map";
|
|
18
|
-
import { ifDefined } from "lit-html/directives/if-defined";
|
|
19
|
-
import { templateContent } from "lit-html/directives/template-content";
|
|
20
|
-
import Papa from "papaparse";
|
|
21
|
-
import styles from "./scss/module.scss";
|
|
22
|
-
import { debounce, Evt, evt, TemplateCallback, templateCallback, TemplateInfo } from "./src/decorators";
|
|
23
|
-
import { Filter } from "./src/filter";
|
|
24
|
-
|
|
25
|
-
const IMG = document.createElement("img");
|
|
26
|
-
IMG.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
|
|
27
|
-
|
|
28
|
-
export namespace TableAdvanced {
|
|
29
|
-
/**
|
|
30
|
-
* @element md-table-advanced
|
|
31
|
-
* @fires md-table-advanced-change
|
|
32
|
-
*/
|
|
33
|
-
@customElementWithCheck("md-table-advanced")
|
|
34
|
-
export class ELEMENT extends FocusTrapMixin(LitElement) {
|
|
35
|
-
@property({ attribute: "config" }) config!: Config | string;
|
|
36
|
-
@property({ attribute: "data" }) data!: Data | string;
|
|
37
|
-
@property({ type: String }) isRowFocusable = "true";
|
|
38
|
-
|
|
39
|
-
@evt() "md-table-advanced-change"!: Evt<ChangeEvent>;
|
|
40
|
-
|
|
41
|
-
@internalProperty() tableConfig!: Config;
|
|
42
|
-
@internalProperty() tableData!: Data;
|
|
43
|
-
|
|
44
|
-
@internalProperty() private error = "";
|
|
45
|
-
|
|
46
|
-
@internalProperty() private COLS: Col[] = [];
|
|
47
|
-
@internalProperty() private ROWS: Cell[][] = [];
|
|
48
|
-
private updCols = () => this.requestUpdate("COLS");
|
|
49
|
-
private updRows = () => this.requestUpdate("ROWS");
|
|
50
|
-
|
|
51
|
-
@internalProperty() private dragRow = -1;
|
|
52
|
-
@internalProperty() private dropRow = -1;
|
|
53
|
-
@internalProperty() private drops: [number, number][] = [];
|
|
54
|
-
private dragRowElem: HTMLElement | null = null;
|
|
55
|
-
|
|
56
|
-
@internalProperty() private dragCol = -1;
|
|
57
|
-
@internalProperty() private dropCol = -1;
|
|
58
|
-
|
|
59
|
-
private isResizing = false;
|
|
60
|
-
private isSelectable = false;
|
|
61
|
-
private selected: Record<number, boolean> = {};
|
|
62
|
-
private expandedRowIdx: Record<number, boolean> = {};
|
|
63
|
-
|
|
64
|
-
private dragover = (e: Event) => e.preventDefault();
|
|
65
|
-
|
|
66
|
-
@queryAll("tr[tabindex]") tableRaws?: HTMLTableRowElement[];
|
|
67
|
-
disconnectedCallback() {
|
|
68
|
-
super.disconnectedCallback();
|
|
69
|
-
document.removeEventListener("dragover", this.dragover);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
connectedCallback() {
|
|
73
|
-
super.connectedCallback();
|
|
74
|
-
document.addEventListener("dragover", this.dragover);
|
|
75
|
-
this.updateTableConfig();
|
|
76
|
-
this.updateTableData();
|
|
77
|
-
this.populateTable();
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
protected update(changedProperties: PropertyValues) {
|
|
81
|
-
super.update(changedProperties);
|
|
82
|
-
if (changedProperties.has("data")) {
|
|
83
|
-
this.updateTableData();
|
|
84
|
-
this.updateDataInTable();
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private updateTableData() {
|
|
89
|
-
if (typeof this.data === "string") {
|
|
90
|
-
try {
|
|
91
|
-
this.tableData = JSON.parse(this.data);
|
|
92
|
-
} catch (error) {
|
|
93
|
-
console.error("[INVALID_JSON_FORMAT] Please recheck the config json");
|
|
94
|
-
}
|
|
95
|
-
} else {
|
|
96
|
-
this.tableData = { ...this.data };
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
private updateTableConfig() {
|
|
101
|
-
if (typeof this.config === "string") {
|
|
102
|
-
try {
|
|
103
|
-
this.tableConfig = JSON.parse(this.config);
|
|
104
|
-
} catch (error) {
|
|
105
|
-
console.error("[INVALID_JSON_FORMAT] Please recheck the data json");
|
|
106
|
-
}
|
|
107
|
-
} else {
|
|
108
|
-
this.tableConfig = { ...this.config };
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
private populateColumns() {
|
|
113
|
-
let index = 0;
|
|
114
|
-
const pushCol = (col: ColOptions, group?: { name: string; length: number }) => {
|
|
115
|
-
const f = col.filters || this.tableConfig.default?.col?.filters;
|
|
116
|
-
const filters = f
|
|
117
|
-
? f == "forString"
|
|
118
|
-
? Filter.optionsString
|
|
119
|
-
: f == "forNumber"
|
|
120
|
-
? Filter.optionsNumber
|
|
121
|
-
: f.length
|
|
122
|
-
? f
|
|
123
|
-
: null
|
|
124
|
-
: null;
|
|
125
|
-
|
|
126
|
-
this.COLS.push({
|
|
127
|
-
options: { ...col },
|
|
128
|
-
index: index++,
|
|
129
|
-
group,
|
|
130
|
-
sort: "default",
|
|
131
|
-
sorter: col.sorter || this.tableConfig.default?.col?.sorter,
|
|
132
|
-
isCollapsable: this.tableConfig.cols.collapse == col.id,
|
|
133
|
-
filter: filters
|
|
134
|
-
? {
|
|
135
|
-
list: filters,
|
|
136
|
-
selectedIndex: 0,
|
|
137
|
-
input: "",
|
|
138
|
-
active: false,
|
|
139
|
-
menuVisible: false
|
|
140
|
-
}
|
|
141
|
-
: undefined
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
this.tableConfig.cols.define.forEach((col) => {
|
|
146
|
-
if ("children" in col) {
|
|
147
|
-
col.children.forEach((c) => pushCol(c, { name: col.groupName, length: col.children.length }));
|
|
148
|
-
} else {
|
|
149
|
-
pushCol(col);
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
this.isSelectable = !!this.tableConfig.rows && this.tableConfig.rows?.selectable != "none";
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
private populateData() {
|
|
156
|
-
const lenNodes = this.COLS.length;
|
|
157
|
-
|
|
158
|
-
// data
|
|
159
|
-
|
|
160
|
-
if ("csv" in this.tableData) {
|
|
161
|
-
const parse = Papa.parse(this.tableData.csv, {
|
|
162
|
-
skipEmptyLines: true,
|
|
163
|
-
transform: (x) => x.trim()
|
|
164
|
-
});
|
|
165
|
-
if (parse.errors) {
|
|
166
|
-
this.error = "PARSE ERROR:\n" + JSON.stringify(parse.errors, null, 2);
|
|
167
|
-
return;
|
|
168
|
-
} else {
|
|
169
|
-
const data = parse.data as string[][];
|
|
170
|
-
this.ROWS = data.map((x) => x.map((text) => ({ text })));
|
|
171
|
-
}
|
|
172
|
-
} else if ("list2d" in this.tableData) {
|
|
173
|
-
this.ROWS = this.tableData.list2d.map((x) => x.map((text) => ({ text })));
|
|
174
|
-
} else {
|
|
175
|
-
while (this.tableData.list.length > lenNodes) {
|
|
176
|
-
this.ROWS.push(this.tableData.list.splice(0, lenNodes).map((text) => ({ text })));
|
|
177
|
-
}
|
|
178
|
-
if (this.tableData.list.length != 0) {
|
|
179
|
-
this.ROWS.push(this.tableData.list.map((text) => ({ text })));
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
if (this.ROWS.length == 0) {
|
|
184
|
-
this.error = "DATA ERROR: Data is empty";
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
private validateData() {
|
|
190
|
-
const lenNodes = this.COLS.length;
|
|
191
|
-
// validate
|
|
192
|
-
|
|
193
|
-
const lenData = this.ROWS.reduce((acc, d) => acc + d.length, 0);
|
|
194
|
-
if (lenData % lenNodes != 0) {
|
|
195
|
-
this.error = this.error =
|
|
196
|
-
"DATA ERROR: Data length mismatch. You must provide (numberOfRows * numberOfColumns) amount of data values.";
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
this.ROWS.forEach((d, i) => {
|
|
201
|
-
const len = d.length;
|
|
202
|
-
if (len != lenNodes) {
|
|
203
|
-
this.error = `DATA ERROR: Total number of cols (=${lenNodes}) and data[${i}] length (=${len}) mismatch`;
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
private populateTemplate() {
|
|
209
|
-
// TEMPLATES
|
|
210
|
-
const templates = this.tableConfig.cellTemplates;
|
|
211
|
-
const templatesKeys = Object.keys(templates || {});
|
|
212
|
-
if (templates && templatesKeys.length) {
|
|
213
|
-
this.ROWS.forEach((row, iRow) => {
|
|
214
|
-
row.forEach((cell, iCol) => {
|
|
215
|
-
for (const k in templates) {
|
|
216
|
-
const idx = cell.text.indexOf(k);
|
|
217
|
-
if (idx != -1) {
|
|
218
|
-
const t = templates[k];
|
|
219
|
-
const template = this.querySelector<HTMLTemplateElement>(`#${t.templateName}`);
|
|
220
|
-
if (template == null) {
|
|
221
|
-
console.warn(`cellTemplates["${k}"]: Missing '${t.templateName}' template.`);
|
|
222
|
-
continue;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
let text = cell.text.replace(k, "");
|
|
226
|
-
if (t.contentCb) {
|
|
227
|
-
text = t.contentCb({ col: iCol, row: iRow, content: text, insertIndex: idx });
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
this.ROWS[iRow][iCol] = {
|
|
231
|
-
text,
|
|
232
|
-
template: {
|
|
233
|
-
template,
|
|
234
|
-
templateCb: t.templateCb,
|
|
235
|
-
insertIndex: t.contentUse == "replace" ? -1 : idx
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
break;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
private setDefaultFilterAndSort() {
|
|
247
|
-
const s = this.tableConfig.default?.sort;
|
|
248
|
-
if (s) {
|
|
249
|
-
const col = this.COLS.find((c) => c.options.id == s.colId);
|
|
250
|
-
if (col) {
|
|
251
|
-
this.sort(col, s.order);
|
|
252
|
-
} else {
|
|
253
|
-
console.warn(`Cant find ${s.colId} col - for sorting`);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
const f = this.tableConfig.default?.filter;
|
|
258
|
-
if (f) {
|
|
259
|
-
const col = this.COLS.find((c) => c.options.id == f.colId);
|
|
260
|
-
if (col) {
|
|
261
|
-
if (col.filter) {
|
|
262
|
-
col.filter.selectedIndex = f.selectedIndex;
|
|
263
|
-
col.filter.input = f.input;
|
|
264
|
-
this.updCols();
|
|
265
|
-
this.filter(col);
|
|
266
|
-
} else {
|
|
267
|
-
console.warn(`Cant find filters on ${f.colId} col`);
|
|
268
|
-
}
|
|
269
|
-
} else {
|
|
270
|
-
console.warn(`Cant find ${f.colId} col - for filtering`);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
private populateTable() {
|
|
276
|
-
this.populateColumns();
|
|
277
|
-
this.populateData();
|
|
278
|
-
this.validateData();
|
|
279
|
-
this.setDefaultFilterAndSort();
|
|
280
|
-
this.populateTemplate();
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
private updateDataInTable() {
|
|
284
|
-
this.populateData();
|
|
285
|
-
this.validateData();
|
|
286
|
-
this.populateTemplate();
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
// --------------
|
|
290
|
-
|
|
291
|
-
private onDropRow() {
|
|
292
|
-
if (this.dragRow != this.dropRow) {
|
|
293
|
-
this.drops.push([this.dragRow, this.dropRow]);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
this.dragRow = -1;
|
|
297
|
-
this.dropRow = -1;
|
|
298
|
-
if (this.dragRowElem) {
|
|
299
|
-
this.dragRowElem.setAttribute("draggable", "false");
|
|
300
|
-
this.dragRowElem = null;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
private onDropCol() {
|
|
305
|
-
if (this.dragCol != this.dropCol) {
|
|
306
|
-
const drag = this.COLS[this.dragCol];
|
|
307
|
-
const drop = this.COLS[this.dropCol];
|
|
308
|
-
const gDrag = drag.group;
|
|
309
|
-
const gDrop = drop.group;
|
|
310
|
-
const iDrag = drag.index;
|
|
311
|
-
const iDrop = drop.index;
|
|
312
|
-
drag.group = gDrop;
|
|
313
|
-
drop.group = gDrag;
|
|
314
|
-
drag.index = iDrop;
|
|
315
|
-
drop.index = iDrag;
|
|
316
|
-
this.COLS[this.dragCol] = drop;
|
|
317
|
-
this.COLS[this.dropCol] = drag;
|
|
318
|
-
|
|
319
|
-
this.ROWS.forEach((row) => {
|
|
320
|
-
const rDrag = row[this.dragCol];
|
|
321
|
-
const rDrop = row[this.dropCol];
|
|
322
|
-
row[this.dragCol] = rDrop;
|
|
323
|
-
row[this.dropCol] = rDrag;
|
|
324
|
-
});
|
|
325
|
-
|
|
326
|
-
this.updCols();
|
|
327
|
-
this.updRows();
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
this.dragCol = -1;
|
|
331
|
-
this.dropCol = -1;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
private sort(col: Col, order?: SortOrder) {
|
|
335
|
-
if (!col.sorter) return;
|
|
336
|
-
|
|
337
|
-
this.clearSelection();
|
|
338
|
-
this.drops = [];
|
|
339
|
-
|
|
340
|
-
this.COLS.forEach((c) => {
|
|
341
|
-
if (c.options.id == col.options.id) {
|
|
342
|
-
c.sort = order ? order : c.sort == "default" ? "ascending" : c.sort == "ascending" ? "descending" : "default";
|
|
343
|
-
} else {
|
|
344
|
-
c.sort = "default";
|
|
345
|
-
}
|
|
346
|
-
});
|
|
347
|
-
|
|
348
|
-
this.updCols();
|
|
349
|
-
this.requestUpdate();
|
|
350
|
-
|
|
351
|
-
this["md-table-advanced-change"].emit({
|
|
352
|
-
type: "sort",
|
|
353
|
-
order: col.sort
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
@debounce(500)
|
|
358
|
-
private filter(col: Col) {
|
|
359
|
-
if (!col.filter) return;
|
|
360
|
-
|
|
361
|
-
this.clearSelection();
|
|
362
|
-
this.drops = [];
|
|
363
|
-
|
|
364
|
-
const input = col.filter.input.trim();
|
|
365
|
-
const filter = col.filter.list[col.filter.selectedIndex];
|
|
366
|
-
|
|
367
|
-
col.filter.active = input ? true : false;
|
|
368
|
-
this.requestUpdate();
|
|
369
|
-
|
|
370
|
-
if (input) {
|
|
371
|
-
this["md-table-advanced-change"].emit({
|
|
372
|
-
type: "filter-on",
|
|
373
|
-
filter,
|
|
374
|
-
input
|
|
375
|
-
});
|
|
376
|
-
} else {
|
|
377
|
-
this["md-table-advanced-change"].emit({
|
|
378
|
-
type: "filter-off",
|
|
379
|
-
filter: col.filter.list[col.filter.selectedIndex]
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
private selectRow(p: { row: Row; shiftKey: boolean; metaKey: boolean }) {
|
|
385
|
-
const i = p.row.idx;
|
|
386
|
-
const isSelected = Object.prototype.hasOwnProperty.call(this.selected, i);
|
|
387
|
-
if (this.tableConfig.rows?.selectable == "multiple") {
|
|
388
|
-
if (p.metaKey) {
|
|
389
|
-
if (isSelected) {
|
|
390
|
-
delete this.selected[i];
|
|
391
|
-
} else {
|
|
392
|
-
this.selected[i] = true;
|
|
393
|
-
}
|
|
394
|
-
} else if (p.shiftKey) {
|
|
395
|
-
// TODO - if we enable shift key we need to disable "native browser" text selection
|
|
396
|
-
// and maybe user wants to select and copy more then 1 row content
|
|
397
|
-
} else {
|
|
398
|
-
this.selected = { [i]: true };
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
this["md-table-advanced-change"].emit({
|
|
402
|
-
type: "multi-select",
|
|
403
|
-
rows: Object.keys(this.selected).map((k) => +k)
|
|
404
|
-
});
|
|
405
|
-
} else {
|
|
406
|
-
if (isSelected) {
|
|
407
|
-
this.clearSelection();
|
|
408
|
-
} else {
|
|
409
|
-
this.selected = { [i]: true };
|
|
410
|
-
this["md-table-advanced-change"].emit({
|
|
411
|
-
type: "select",
|
|
412
|
-
index: i
|
|
413
|
-
});
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
this.requestUpdate("selected");
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
private clearSelection() {
|
|
421
|
-
this.selected = {};
|
|
422
|
-
this.requestUpdate("selected");
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
private collapseToggle(e: Event, row: number) {
|
|
426
|
-
e.stopPropagation();
|
|
427
|
-
if (this.expandedRowIdx[row]) {
|
|
428
|
-
delete this.expandedRowIdx[row];
|
|
429
|
-
this["md-table-advanced-change"].emit({
|
|
430
|
-
type: "collapse",
|
|
431
|
-
row
|
|
432
|
-
});
|
|
433
|
-
} else {
|
|
434
|
-
this.expandedRowIdx[row] = true;
|
|
435
|
-
this["md-table-advanced-change"].emit({
|
|
436
|
-
type: "expand",
|
|
437
|
-
row
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
this.clearSelection();
|
|
441
|
-
this.requestUpdate();
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
private eX = 0; // https://stackoverflow.com/a/33672982
|
|
445
|
-
|
|
446
|
-
// RESIZE
|
|
447
|
-
private onResize = (e: DragEvent, col: Col) => {
|
|
448
|
-
if (this.dragCol != -1 || this.dragRow != -1) return;
|
|
449
|
-
|
|
450
|
-
this.isResizing = true;
|
|
451
|
-
|
|
452
|
-
const t = e.target as HTMLDivElement;
|
|
453
|
-
e.dataTransfer?.setDragImage(IMG, 0, 0);
|
|
454
|
-
|
|
455
|
-
const elems = this.COLS.map((c) => this.shadowRoot!.querySelector<HTMLElement>(`th.col-index-${c.index}`)!);
|
|
456
|
-
this.COLS.forEach((c, i) => (c.width = elems[i].offsetWidth + "px"));
|
|
457
|
-
this.updCols();
|
|
458
|
-
|
|
459
|
-
const orgX = e.x;
|
|
460
|
-
this.eX = e.x;
|
|
461
|
-
|
|
462
|
-
let posX = -1;
|
|
463
|
-
let set = -1;
|
|
464
|
-
let setLeft = -1;
|
|
465
|
-
|
|
466
|
-
const colLeft = this.COLS[col.index - 1];
|
|
467
|
-
|
|
468
|
-
const elem = elems[col.index];
|
|
469
|
-
const elemLeft = elems[col.index - 1];
|
|
470
|
-
const elemW = elem.offsetWidth;
|
|
471
|
-
const elemLeftW = elemLeft.offsetWidth;
|
|
472
|
-
|
|
473
|
-
const drag = () => {
|
|
474
|
-
const eX = this.eX;
|
|
475
|
-
if (posX != eX && eX != 0) {
|
|
476
|
-
posX = eX;
|
|
477
|
-
|
|
478
|
-
// TODO - With this I can catch if resize is stopped
|
|
479
|
-
/*
|
|
480
|
-
const real = elem.offsetWidth;
|
|
481
|
-
console.log(set, real);
|
|
482
|
-
const realLeft = elemLeft.offsetWidth;
|
|
483
|
-
console.log(setLeft, realLeft);
|
|
484
|
-
*/
|
|
485
|
-
|
|
486
|
-
const deltaX = posX - orgX;
|
|
487
|
-
set = elemW - deltaX;
|
|
488
|
-
setLeft = elemLeftW + deltaX;
|
|
489
|
-
|
|
490
|
-
col.width = set + "px";
|
|
491
|
-
colLeft.width = setLeft + "px";
|
|
492
|
-
this.updCols();
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
|
-
|
|
496
|
-
const dragOver = (evt: DragEvent) => (this.eX = evt.x);
|
|
497
|
-
|
|
498
|
-
const dragEnd = () => {
|
|
499
|
-
this.isResizing = false;
|
|
500
|
-
t.removeEventListener("drag", drag);
|
|
501
|
-
t.removeEventListener("dragend", dragEnd);
|
|
502
|
-
document.removeEventListener("dragover", dragOver);
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
t.addEventListener("drag", drag);
|
|
506
|
-
t.addEventListener("dragend", dragEnd);
|
|
507
|
-
document.addEventListener("dragover", dragOver);
|
|
508
|
-
};
|
|
509
|
-
|
|
510
|
-
// RENDER
|
|
511
|
-
// ----------------------------------
|
|
512
|
-
|
|
513
|
-
render() {
|
|
514
|
-
if (this.error) return html` <div>${this.error}</div> `;
|
|
515
|
-
|
|
516
|
-
const { head } = this.tableConfig;
|
|
517
|
-
const tableClass = classMap({
|
|
518
|
-
"sticky-header": !!this.tableConfig.isStickyHeader
|
|
519
|
-
});
|
|
520
|
-
|
|
521
|
-
return html`
|
|
522
|
-
<div class="md-table-advanced">
|
|
523
|
-
<slot></slot>
|
|
524
|
-
<table class=${tableClass} summary=${ifDefined(head?.summary)}>
|
|
525
|
-
${head?.caption
|
|
526
|
-
? html`
|
|
527
|
-
<caption>
|
|
528
|
-
${head?.caption}
|
|
529
|
-
${head?.tableDescription
|
|
530
|
-
? html` <span style="position: absolute; top: -30em">${head?.tableDescription}</span> `
|
|
531
|
-
: nothing}
|
|
532
|
-
</caption>
|
|
533
|
-
`
|
|
534
|
-
: head?.tableDescription
|
|
535
|
-
? html`
|
|
536
|
-
<caption>
|
|
537
|
-
<span style="position: absolute; top: -30em">${head?.tableDescription}</span>
|
|
538
|
-
</caption>
|
|
539
|
-
`
|
|
540
|
-
: nothing}
|
|
541
|
-
${this.renderHead()} ${this.renderBody()}
|
|
542
|
-
</table>
|
|
543
|
-
</div>
|
|
544
|
-
`;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
private ariaSortOrder(sortOrder: SortOrder) {
|
|
548
|
-
if (sortOrder === "ascending") return sortOrder;
|
|
549
|
-
else if (sortOrder === "descending") return sortOrder;
|
|
550
|
-
|
|
551
|
-
return "none";
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
private renderHead() {
|
|
555
|
-
let groups = nothing;
|
|
556
|
-
const hasGroup = this.COLS.reduce((acc, col) => (acc = col.group ? true : acc), false);
|
|
557
|
-
if (hasGroup) {
|
|
558
|
-
let gName = "";
|
|
559
|
-
groups = html`
|
|
560
|
-
${this.COLS.map((c) => {
|
|
561
|
-
if (c.group) {
|
|
562
|
-
if (gName != c.group.name) {
|
|
563
|
-
gName = c.group.name;
|
|
564
|
-
return html` <colgroup span=${c.group.length}></colgroup> `;
|
|
565
|
-
}
|
|
566
|
-
} else {
|
|
567
|
-
return html` <col /> `;
|
|
568
|
-
}
|
|
569
|
-
})}
|
|
570
|
-
<tr tabindex="0">
|
|
571
|
-
${this.COLS.map((col) => {
|
|
572
|
-
if (col.group) {
|
|
573
|
-
if (gName != col.group.name) {
|
|
574
|
-
gName = col.group.name;
|
|
575
|
-
return html`
|
|
576
|
-
<th colspan=${col.group.length} scope="colgroup" title="${col.group.name}">
|
|
577
|
-
<div class="head-inner-cell">
|
|
578
|
-
<span>${col.group.name}</span>
|
|
579
|
-
${this.renderColResize(col)}
|
|
580
|
-
</div>
|
|
581
|
-
</th>
|
|
582
|
-
`;
|
|
583
|
-
}
|
|
584
|
-
} else {
|
|
585
|
-
return this.renderCol(col, 2);
|
|
586
|
-
}
|
|
587
|
-
})}
|
|
588
|
-
</tr>
|
|
589
|
-
`;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
const heads = html`
|
|
593
|
-
<tr tabindex="0">
|
|
594
|
-
${this.COLS.map((col) => {
|
|
595
|
-
if (hasGroup) {
|
|
596
|
-
if (col.group) {
|
|
597
|
-
return this.renderCol(col);
|
|
598
|
-
}
|
|
599
|
-
} else {
|
|
600
|
-
return this.renderCol(col);
|
|
601
|
-
}
|
|
602
|
-
})}
|
|
603
|
-
</tr>
|
|
604
|
-
`;
|
|
605
|
-
|
|
606
|
-
return html`
|
|
607
|
-
<thead>
|
|
608
|
-
${groups} ${heads}
|
|
609
|
-
</thead>
|
|
610
|
-
`;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
sortIconTemplate(sortOrder: SortOrder): TemplateResult | typeof nothing {
|
|
614
|
-
if (sortOrder === "ascending") {
|
|
615
|
-
return html`<md-icon name="arrow-tail-down-bold" size="12" iconSet="momentumDesign"></md-icon>`;
|
|
616
|
-
} else if (sortOrder === "descending") {
|
|
617
|
-
return html`<md-icon name="arrow-tail-up-bold" size="12" iconSet="momentumDesign"></md-icon>`;
|
|
618
|
-
}
|
|
619
|
-
return html`<md-icon name="unsorted-bold" size="12" iconSet="momentumDesign"></md-icon>`;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
private renderCol(col: Col, rowspan?: number) {
|
|
623
|
-
const input = col.filter?.list[col.filter.selectedIndex]?.input;
|
|
624
|
-
const sortClass = classMap({
|
|
625
|
-
ascending: col.sort == "ascending",
|
|
626
|
-
descending: col.sort == "descending"
|
|
627
|
-
});
|
|
628
|
-
|
|
629
|
-
return html`
|
|
630
|
-
<th
|
|
631
|
-
rowspan=${ifDefined(rowspan)}
|
|
632
|
-
width=${ifDefined(col.width ? col.width : col.options.width)}
|
|
633
|
-
scope="col"
|
|
634
|
-
part="head-col"
|
|
635
|
-
aria-sort=${this.ariaSortOrder(col.sort)}
|
|
636
|
-
title="${col.options.title}"
|
|
637
|
-
class=${"col-index-" + col.index}
|
|
638
|
-
>
|
|
639
|
-
<!-- DRAG -->
|
|
640
|
-
${this.renderColDrag(col)}
|
|
641
|
-
|
|
642
|
-
<div class="head-inner-cell">
|
|
643
|
-
<!-- SORT -->
|
|
644
|
-
${col.sorter
|
|
645
|
-
? html`
|
|
646
|
-
<button class="sortable ${sortClass}" @click=${() => this.sort(col)}>
|
|
647
|
-
${col.options.title} ${this.sortIconTemplate(col.sort)}
|
|
648
|
-
</button>
|
|
649
|
-
`
|
|
650
|
-
: html` <span>${col.options.title}</span> `}
|
|
651
|
-
|
|
652
|
-
<!-- FILTER -->
|
|
653
|
-
${col.filter
|
|
654
|
-
? html`
|
|
655
|
-
<div class="filter-wrap">
|
|
656
|
-
${col.filter.active
|
|
657
|
-
? html`
|
|
658
|
-
<md-icon
|
|
659
|
-
class="filter-active"
|
|
660
|
-
name="filter-bold"
|
|
661
|
-
size="14"
|
|
662
|
-
iconSet="momentumDesign"
|
|
663
|
-
></md-icon>
|
|
664
|
-
`
|
|
665
|
-
: nothing}
|
|
666
|
-
<md-menu-overlay placement="bottom" class="filter" custom-width="188px">
|
|
667
|
-
<md-button class="filter-icon" slot="menu-trigger" color="color-none" size="size-none">
|
|
668
|
-
<md-icon slot="icon" name="filter-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
669
|
-
</md-button>
|
|
670
|
-
<div class="filter-menu" style="width: 100%;">
|
|
671
|
-
<select
|
|
672
|
-
name="filter-type"
|
|
673
|
-
@change=${(e: Event) => {
|
|
674
|
-
col.filter!.selectedIndex = (e.target! as HTMLSelectElement).value as unknown as number;
|
|
675
|
-
this.updCols();
|
|
676
|
-
this.filter(col);
|
|
677
|
-
}}
|
|
678
|
-
>
|
|
679
|
-
${col.filter.list.map(
|
|
680
|
-
(c, i) => html`
|
|
681
|
-
<option value=${i} ?selected=${col.filter!.selectedIndex == i}>${c.label}</option>
|
|
682
|
-
`
|
|
683
|
-
)}
|
|
684
|
-
</select>
|
|
685
|
-
<input
|
|
686
|
-
type="text"
|
|
687
|
-
placeholder=${input!.placeholder}
|
|
688
|
-
maxlength=${ifDefined(input!.maxlength)}
|
|
689
|
-
pattern=${ifDefined(input!.pattern)}
|
|
690
|
-
.value=${col.filter.input}
|
|
691
|
-
@input=${(e: InputEvent) => {
|
|
692
|
-
col.filter!.input = (e.target! as HTMLSelectElement).value;
|
|
693
|
-
this.updCols();
|
|
694
|
-
this.filter(col);
|
|
695
|
-
}}
|
|
696
|
-
/>
|
|
697
|
-
</div>
|
|
698
|
-
</md-menu-overlay>
|
|
699
|
-
</div>
|
|
700
|
-
`
|
|
701
|
-
: nothing}
|
|
702
|
-
|
|
703
|
-
<!-- RESIZE -->
|
|
704
|
-
${this.renderColResize(col)}
|
|
705
|
-
</div>
|
|
706
|
-
</th>
|
|
707
|
-
`;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
private renderColDrag(col: Col) {
|
|
711
|
-
return this.tableConfig.cols.isDraggable
|
|
712
|
-
? html`
|
|
713
|
-
<div
|
|
714
|
-
draggable="true"
|
|
715
|
-
class="drag-area-col ${classMap({
|
|
716
|
-
drag: this.dragCol != -1,
|
|
717
|
-
over: this.dropCol == col.index && this.dropCol != this.dragCol
|
|
718
|
-
})}"
|
|
719
|
-
@dragstart=${(e: DragEvent) => {
|
|
720
|
-
if (this.isResizing || this.dragRow != -1) return;
|
|
721
|
-
this.dragCol = col.index;
|
|
722
|
-
e.dataTransfer!.setDragImage((e.target! as Node).parentNode as Element, 0, 0);
|
|
723
|
-
}}
|
|
724
|
-
@dragenter=${() => {
|
|
725
|
-
if (this.isResizing || this.dragRow != -1) return;
|
|
726
|
-
this.dropCol = col.index;
|
|
727
|
-
}}
|
|
728
|
-
@dragend=${() => this.onDropCol()}
|
|
729
|
-
></div>
|
|
730
|
-
`
|
|
731
|
-
: nothing;
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
private renderColResize(col: Col) {
|
|
735
|
-
return this.tableConfig.cols.isResizable
|
|
736
|
-
? html`
|
|
737
|
-
${col.index > 0
|
|
738
|
-
? html`
|
|
739
|
-
<div class="resize" draggable="true" @dragstart=${(e: DragEvent) => this.onResize(e, col)}></div>
|
|
740
|
-
`
|
|
741
|
-
: nothing}
|
|
742
|
-
`
|
|
743
|
-
: nothing;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
private renderBody() {
|
|
747
|
-
let rows: Row[] = this.ROWS.map((cells, idx) => ({
|
|
748
|
-
cells,
|
|
749
|
-
idx,
|
|
750
|
-
idxDrag: idx,
|
|
751
|
-
collapse: "none",
|
|
752
|
-
first: idx === 0 ? true : false,
|
|
753
|
-
isGhost: false,
|
|
754
|
-
children: []
|
|
755
|
-
}));
|
|
756
|
-
|
|
757
|
-
// filter
|
|
758
|
-
const len = this.COLS.length;
|
|
759
|
-
rows = rows.filter((row) => {
|
|
760
|
-
for (let i = 0; i < len; i++) {
|
|
761
|
-
const col = this.COLS[i];
|
|
762
|
-
if (col.filter?.active) {
|
|
763
|
-
const filter = col.filter.list[col.filter.selectedIndex];
|
|
764
|
-
const isVisible = filter.predicate(row.cells[i].text, col.filter.input);
|
|
765
|
-
if (!isVisible) return false;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
return true;
|
|
769
|
-
});
|
|
770
|
-
|
|
771
|
-
// sort
|
|
772
|
-
const sortCol = this.COLS.find((c) => c.sort != "default");
|
|
773
|
-
if (sortCol) {
|
|
774
|
-
const map = this.ROWS.map((r, i) => ({ v: r[sortCol.index].text, i }));
|
|
775
|
-
const dir = sortCol.sort == "ascending" ? 1 : -1;
|
|
776
|
-
|
|
777
|
-
let rowsSorted: SortNode[] = [];
|
|
778
|
-
if (sortCol.sorter == "byNumber") {
|
|
779
|
-
rowsSorted = map.sort((a, b) => (dir == 1 ? +a.v - +b.v : +b.v - +a.v));
|
|
780
|
-
} else if (sortCol.sorter == "byString") {
|
|
781
|
-
rowsSorted = map.sort((a, b) => (a.v == b.v ? 0 : a.v > b.v ? dir : -dir));
|
|
782
|
-
} else if (typeof sortCol.sorter == "function") {
|
|
783
|
-
const func = sortCol.sorter;
|
|
784
|
-
rowsSorted = map.sort((a, b) => func(a.v, b.v, dir));
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
rows = rowsSorted.map((s) => rows[s.i]);
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
// collapse
|
|
791
|
-
const collapseCol = this.COLS.find((c) => c.isCollapsable);
|
|
792
|
-
if (collapseCol) {
|
|
793
|
-
const colIdx = collapseCol.index;
|
|
794
|
-
|
|
795
|
-
const groups = rows.reduce(
|
|
796
|
-
(acc, row) => {
|
|
797
|
-
const key = row.cells[colIdx].text;
|
|
798
|
-
const group = acc.find((x) => x.key == key);
|
|
799
|
-
if (group) {
|
|
800
|
-
row.collapse = "child";
|
|
801
|
-
group.children.push(row);
|
|
802
|
-
} else {
|
|
803
|
-
acc.push({ key, root: row, children: [] });
|
|
804
|
-
}
|
|
805
|
-
return acc;
|
|
806
|
-
},
|
|
807
|
-
[] as { key: string; root: Row; children: Row[] }[]
|
|
808
|
-
);
|
|
809
|
-
|
|
810
|
-
rows = [];
|
|
811
|
-
groups.forEach((g) => {
|
|
812
|
-
rows.push(g.root);
|
|
813
|
-
g.root.collapse =
|
|
814
|
-
g.children.length == 0 ? "none" : this.expandedRowIdx[g.root.idx] ? "expanded" : "collapsed";
|
|
815
|
-
g.root.children = g.children;
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
// drag drop
|
|
820
|
-
this.drops.forEach(({ 0: drag, 1: drop }) => {
|
|
821
|
-
rows.splice(drop, 0, rows.splice(drag, 1)[0]);
|
|
822
|
-
});
|
|
823
|
-
|
|
824
|
-
// drag realtime
|
|
825
|
-
rows.forEach((r, i) => (r.idxDrag = i));
|
|
826
|
-
if (this.dragRow != -1) {
|
|
827
|
-
rows[this.dragRow].isGhost = true;
|
|
828
|
-
if (this.dropRow != -1) {
|
|
829
|
-
rows.splice(this.dropRow, 0, rows.splice(this.dragRow, 1)[0]);
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
return html`
|
|
834
|
-
<tbody>
|
|
835
|
-
${rows.map((row) => {
|
|
836
|
-
const len = rows.length;
|
|
837
|
-
const isRenderChild = row.children.length > 0 && row.collapse == "expanded" && !row.isGhost;
|
|
838
|
-
return html`
|
|
839
|
-
${this.renderRow(row, len)} ${isRenderChild ? row.children.map((c) => this.renderRow(c, len)) : nothing}
|
|
840
|
-
`;
|
|
841
|
-
})}
|
|
842
|
-
</tbody>
|
|
843
|
-
`;
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
private renderRow(row: Row, rowsLen: number) {
|
|
847
|
-
const isSelected = Object.prototype.hasOwnProperty.call(this.selected, row.idx);
|
|
848
|
-
const rowStyles = classMap({
|
|
849
|
-
selected: isSelected,
|
|
850
|
-
selectable: this.isSelectable && !isSelected,
|
|
851
|
-
ghost: row.isGhost
|
|
852
|
-
});
|
|
853
|
-
|
|
854
|
-
return html`
|
|
855
|
-
<tr
|
|
856
|
-
class=${rowStyles}
|
|
857
|
-
tabindex=${ifDefined(this.isRowFocusable === "true" ? "0" : undefined)}
|
|
858
|
-
part=${row.first ? "first-row" : "row"}
|
|
859
|
-
@click=${({ shiftKey, metaKey }: MouseEvent) => {
|
|
860
|
-
if (this.isSelectable) this.selectRow({ row, shiftKey, metaKey });
|
|
861
|
-
}}
|
|
862
|
-
>
|
|
863
|
-
${row.cells.map((cell, j) => {
|
|
864
|
-
const col = this.COLS[j];
|
|
865
|
-
|
|
866
|
-
// content
|
|
867
|
-
let content: TemplateResult | string = cell.text;
|
|
868
|
-
const t = cell.template;
|
|
869
|
-
if (t) {
|
|
870
|
-
content = t.templateCb
|
|
871
|
-
? html`
|
|
872
|
-
${templateCallback({
|
|
873
|
-
cb: t.templateCb,
|
|
874
|
-
insertIndex: t.insertIndex,
|
|
875
|
-
template: t.template,
|
|
876
|
-
content: cell.text,
|
|
877
|
-
row: row.idx,
|
|
878
|
-
col: j
|
|
879
|
-
})}
|
|
880
|
-
`
|
|
881
|
-
: html` ${templateContent(t.template)} `;
|
|
882
|
-
if (t.insertIndex != -1) {
|
|
883
|
-
content = html`
|
|
884
|
-
${t.insertIndex > 0 ? cell.text.substring(0, t.insertIndex) : nothing} ${content}
|
|
885
|
-
${t.insertIndex < cell.text.length - 1 ? cell.text.substring(t.insertIndex) : nothing}
|
|
886
|
-
`;
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
// drag
|
|
891
|
-
const isDrag = this.tableConfig.rows?.isDraggable && row.collapse != "child";
|
|
892
|
-
const isDragArea = isDrag && this.dragRow != -1 && this.dragRow != row.idxDrag;
|
|
893
|
-
const isDragHandle = isDrag && j == 0;
|
|
894
|
-
|
|
895
|
-
const cellRenderResult = html`
|
|
896
|
-
<div
|
|
897
|
-
class="inner-cell"
|
|
898
|
-
draggable="false"
|
|
899
|
-
@dragstart=${() => {
|
|
900
|
-
if (this.isResizing || this.dragCol != -1) return;
|
|
901
|
-
this.dragRow = row.idxDrag;
|
|
902
|
-
}}
|
|
903
|
-
@dragend=${() => this.onDropRow()}
|
|
904
|
-
>
|
|
905
|
-
${isDragArea
|
|
906
|
-
? html`
|
|
907
|
-
<div
|
|
908
|
-
class="drag-area top"
|
|
909
|
-
@dragenter=${() => {
|
|
910
|
-
if (this.dragRow == 0) {
|
|
911
|
-
const i = row.idxDrag - 1;
|
|
912
|
-
this.dropRow = i >= 0 ? i : 0;
|
|
913
|
-
} else {
|
|
914
|
-
this.dropRow = row.idxDrag;
|
|
915
|
-
}
|
|
916
|
-
}}
|
|
917
|
-
></div>
|
|
918
|
-
<div
|
|
919
|
-
class="drag-area bottom"
|
|
920
|
-
@dragenter=${() => {
|
|
921
|
-
if (this.dragRow == 0) {
|
|
922
|
-
this.dropRow = row.idxDrag;
|
|
923
|
-
} else {
|
|
924
|
-
const i = row.idxDrag + 1;
|
|
925
|
-
this.dropRow = i < rowsLen ? i : rowsLen - 1;
|
|
926
|
-
}
|
|
927
|
-
}}
|
|
928
|
-
></div>
|
|
929
|
-
`
|
|
930
|
-
: nothing}
|
|
931
|
-
${isDragHandle
|
|
932
|
-
? html`
|
|
933
|
-
<md-icon
|
|
934
|
-
class="drag-handle"
|
|
935
|
-
@mousedown=${(e: MouseEvent) => {
|
|
936
|
-
if (this.isResizing || this.dragCol != -1) return;
|
|
937
|
-
this.dragRowElem = (e.target! as Node).parentNode as HTMLElement;
|
|
938
|
-
this.dragRowElem.setAttribute("draggable", "true");
|
|
939
|
-
}}
|
|
940
|
-
name="dragger-vertical-bold"
|
|
941
|
-
size="16"
|
|
942
|
-
iconSet="momentumDesign"
|
|
943
|
-
>
|
|
944
|
-
</md-icon>
|
|
945
|
-
`
|
|
946
|
-
: nothing}
|
|
947
|
-
${col.isCollapsable
|
|
948
|
-
? html`
|
|
949
|
-
${row.collapse == "expanded" || row.collapse == "collapsed"
|
|
950
|
-
? html`
|
|
951
|
-
<button class="row-collapsible" @click=${(e: Event) => this.collapseToggle(e, row.idx)}>
|
|
952
|
-
${row.collapse == "collapsed"
|
|
953
|
-
? html` <md-icon name="plus-bold" size="12" iconSet="momentumDesign"></md-icon> `
|
|
954
|
-
: html` <md-icon name="minus-bold" size="12" iconSet="momentumDesign"></md-icon> `}
|
|
955
|
-
</button>
|
|
956
|
-
`
|
|
957
|
-
: nothing}
|
|
958
|
-
<span>${row.collapse == "child" ? nothing : content}</span>
|
|
959
|
-
`
|
|
960
|
-
: html` <span>${content}</span> `}
|
|
961
|
-
</div>
|
|
962
|
-
`;
|
|
963
|
-
|
|
964
|
-
return col.options.isHeader
|
|
965
|
-
? html` <th part="cell-ishead" scope="row" title="${cell.text}">${cellRenderResult}</th> `
|
|
966
|
-
: html` <td part=${j === 0 ? "first-cell" : "cell"} title="${cell.text}">${cellRenderResult}</td> `;
|
|
967
|
-
})}
|
|
968
|
-
</tr>
|
|
969
|
-
`;
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
static get styles() {
|
|
973
|
-
return [reset, styles];
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
type ColId = string;
|
|
978
|
-
|
|
979
|
-
export type Data = { csv: string } | { list: string[] } | { list2d: string[][] };
|
|
980
|
-
|
|
981
|
-
export type Config = {
|
|
982
|
-
isStickyHeader?: boolean;
|
|
983
|
-
isInfiniteScroll?: boolean;
|
|
984
|
-
|
|
985
|
-
cols: {
|
|
986
|
-
define: (ColOptions | ColOptionsGroup)[];
|
|
987
|
-
isDraggable?: boolean;
|
|
988
|
-
isResizable?: boolean;
|
|
989
|
-
collapse?: ColId;
|
|
990
|
-
};
|
|
991
|
-
|
|
992
|
-
rows?: {
|
|
993
|
-
isDraggable?: boolean;
|
|
994
|
-
selectable?: "none" | "single" | "multiple";
|
|
995
|
-
};
|
|
996
|
-
|
|
997
|
-
cellTemplates?: Record<string, CellTemplate>;
|
|
998
|
-
|
|
999
|
-
default?: {
|
|
1000
|
-
col?: Pick<ColOptions, "filters" | "sorter">;
|
|
1001
|
-
|
|
1002
|
-
sort?: {
|
|
1003
|
-
colId: ColId;
|
|
1004
|
-
order: SortOrder;
|
|
1005
|
-
};
|
|
1006
|
-
|
|
1007
|
-
filter?: {
|
|
1008
|
-
colId: ColId;
|
|
1009
|
-
input: string;
|
|
1010
|
-
selectedIndex: number;
|
|
1011
|
-
};
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
head?: {
|
|
1015
|
-
caption?: string;
|
|
1016
|
-
summary?: string;
|
|
1017
|
-
tableDescription?: string;
|
|
1018
|
-
};
|
|
1019
|
-
};
|
|
1020
|
-
|
|
1021
|
-
type ColOptions = {
|
|
1022
|
-
id: string;
|
|
1023
|
-
title: string;
|
|
1024
|
-
width?: string;
|
|
1025
|
-
sorter?: "byString" | "byNumber" | SortComparator;
|
|
1026
|
-
filters?: "forString" | "forNumber" | Filter.Options[];
|
|
1027
|
-
isHeader?: boolean;
|
|
1028
|
-
};
|
|
1029
|
-
|
|
1030
|
-
type ColOptionsGroup = { groupName: string; children: ColOptions[] };
|
|
1031
|
-
type SortOrder = "default" | "ascending" | "descending";
|
|
1032
|
-
type SortComparator = (a: string, b: string, direction: 1 | -1) => number; // -number, 0, number
|
|
1033
|
-
type SortNode = { v: string; i: number };
|
|
1034
|
-
|
|
1035
|
-
type Cell = { text: string; template?: CellTemplateProcessed };
|
|
1036
|
-
type CellTemplate = {
|
|
1037
|
-
templateName: string;
|
|
1038
|
-
contentUse?: "insert" | "replace";
|
|
1039
|
-
contentCb?: CellContentCallback;
|
|
1040
|
-
templateCb?: TemplateCallback;
|
|
1041
|
-
};
|
|
1042
|
-
type CellTemplateProcessed = { insertIndex: number; template: HTMLTemplateElement; templateCb?: TemplateCallback };
|
|
1043
|
-
type CellContentCallback = (p: TemplateInfo) => string;
|
|
1044
|
-
type Row = {
|
|
1045
|
-
cells: Cell[];
|
|
1046
|
-
idx: number;
|
|
1047
|
-
idxDrag: number;
|
|
1048
|
-
isGhost: boolean;
|
|
1049
|
-
first: boolean;
|
|
1050
|
-
collapse: "none" | "collapsed" | "expanded" | "child";
|
|
1051
|
-
children: Row[];
|
|
1052
|
-
};
|
|
1053
|
-
|
|
1054
|
-
type Col = {
|
|
1055
|
-
index: number;
|
|
1056
|
-
sort: SortOrder;
|
|
1057
|
-
sorter: ColOptions["sorter"];
|
|
1058
|
-
width?: string;
|
|
1059
|
-
group?: { name: string; length: number };
|
|
1060
|
-
filter?: { list: Filter.Options[]; selectedIndex: number; input: string; active: boolean; menuVisible: boolean };
|
|
1061
|
-
options: ColOptions;
|
|
1062
|
-
isCollapsable: boolean;
|
|
1063
|
-
};
|
|
1064
|
-
|
|
1065
|
-
export type ChangeEvent = {
|
|
1066
|
-
detail:
|
|
1067
|
-
| { type: "filter-on"; filter: Filter.Options; input: string }
|
|
1068
|
-
| { type: "filter-off"; filter: Filter.Options }
|
|
1069
|
-
| { type: "sort"; order: SortOrder }
|
|
1070
|
-
| { type: "select"; index: number }
|
|
1071
|
-
| { type: "multi-select"; rows: number[] }
|
|
1072
|
-
| { type: "expand"; row: number }
|
|
1073
|
-
| { type: "collapse"; row: number };
|
|
1074
|
-
};
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
declare global {
|
|
1078
|
-
interface HTMLElementTagNameMap {
|
|
1079
|
-
"md-table-advanced": TableAdvanced.ELEMENT;
|
|
1080
|
-
}
|
|
1081
|
-
}
|