@demos-europe/demosplan-ui 0.4.21 → 0.4.22
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/.claude/settings.local.json +4 -19
- package/.idea/demosplan-ui.iml +11 -0
- package/.idea/git_toolbox_blame.xml +6 -0
- package/.idea/git_toolbox_prj.xml +15 -0
- package/.idea/material_theme_project_new.xml +13 -0
- package/.idea/modules.xml +8 -0
- package/.idea/sonarlint/issuestore/0/2/02d5146f94659f11c56f0ea1d9c504ff9492b546 +0 -0
- package/.idea/sonarlint/issuestore/0/2/02f4902c3db5247c732bde5aaf0d4fb55363c3b1 +3 -0
- package/.idea/sonarlint/issuestore/0/3/0343acf33ca1b061164f9846ff8ce30429205a2a +0 -0
- package/.idea/sonarlint/issuestore/0/4/04d5869ea32abbf6abf5a3cb9a671637ac2e345b +0 -0
- package/.idea/sonarlint/issuestore/0/9/0918cbb76f2c44f223706cec9d31a32cd1177ce4 +0 -0
- package/.idea/sonarlint/issuestore/0/9/091aff741808a09242f252264b14f4a9adaa5305 +0 -0
- package/.idea/sonarlint/issuestore/0/b/0b63533e07c8b10a8fbfe7f35df1bffec8103e14 +0 -0
- package/.idea/sonarlint/issuestore/0/c/0c0fd6a370cd10350462b46937e98f903bcb1435 +0 -0
- package/.idea/sonarlint/issuestore/0/e/0e600c187f4cf8bd0dd6b678f55067a8300ab570 +0 -0
- package/.idea/sonarlint/issuestore/0/f/0f43007644f06a63afbfbfc129aadd61bf40318a +0 -0
- package/.idea/sonarlint/issuestore/1/4/14148858b7b4a0aa23ddfdc41ef62be2db925c70 +0 -0
- package/.idea/sonarlint/issuestore/1/5/15ff6a89ff653ef3176ddb9c5e0b59c16c2db949 +0 -0
- package/.idea/sonarlint/issuestore/1/6/169d7dbe9a819ce675ee66de130c5a7c92bb763d +0 -0
- package/.idea/sonarlint/issuestore/1/8/18a1ebb3a44ad977a5cfa60b6620a47ba00163a3 +0 -0
- package/.idea/sonarlint/issuestore/1/f/1fd3ecff7dd864e5b00c14a4333d8cde8c9faf11 +0 -0
- package/.idea/sonarlint/issuestore/2/0/204a133d39c4a2c7b86de23f541f342e0a7a3234 +0 -0
- package/.idea/sonarlint/issuestore/2/4/2491406c07bfc2b0f7ed8e010e56d6e468c374d0 +0 -0
- package/.idea/sonarlint/issuestore/2/5/257d0fa8d58da6d96f5a7af9724b2e1c92c62a2d +3 -0
- package/.idea/sonarlint/issuestore/2/8/282dcb1e4436703724dd35bb567086834c3ebdb4 +3 -0
- package/.idea/sonarlint/issuestore/2/a/2aeb7bd71ee8453ff4601a1fc8fcd4fa9c5fe355 +0 -0
- package/.idea/sonarlint/issuestore/2/c/2c25e229323612e7988c659ad7b51c7b1e2b2403 +0 -0
- package/.idea/sonarlint/issuestore/2/f/2fa1946a2afc952506e41d87833ed29401fc29a0 +0 -0
- package/.idea/sonarlint/issuestore/3/4/3463c59843592ad2a00c54f39e2943583bd6fff9 +0 -0
- package/.idea/sonarlint/issuestore/3/9/390f31a969ba7940070bf32aac2a0d1f7b7bd78b +0 -0
- package/.idea/sonarlint/issuestore/3/e/3ebc20bbfa3c33cf20481a2de7591c997c68abb9 +0 -0
- package/.idea/sonarlint/issuestore/4/1/417425bfa2cef1f22539e792dcb0a7f7784f9604 +0 -0
- package/.idea/sonarlint/issuestore/4/1/41ac9772c7dd3fc038485f99106b427a5e28f2e3 +0 -0
- package/.idea/sonarlint/issuestore/4/4/44d3ca69a31c68c4d920b1fbb0083732713d2690 +2 -0
- package/.idea/sonarlint/issuestore/4/8/48a8ec70d252121fbc7df4e8a45044e964b5d6b7 +0 -0
- package/.idea/sonarlint/issuestore/4/9/49e951d8246d0914f9d10b3955a7178866cfcee9 +0 -0
- package/.idea/sonarlint/issuestore/4/d/4def76d1eea91e36f7789929705c032be6df27cd +0 -0
- package/.idea/sonarlint/issuestore/4/f/4f40ac4df99b3f8bbd80db9b729d3b4b401623eb +0 -0
- package/.idea/sonarlint/issuestore/4/f/4f4bba1840f039e57f25bbd19ec0e20c15fc0e1d +0 -0
- package/.idea/sonarlint/issuestore/5/1/51f466e675bcd7ca84bf6287bab7404cde26db22 +0 -0
- package/.idea/sonarlint/issuestore/5/2/5222c3d19fd979fed770b7f3664147b2ed16b230 +0 -0
- package/.idea/sonarlint/issuestore/5/2/52cb9deee3ee8b8add01ec855fc4a45818ac7638 +5 -0
- package/.idea/sonarlint/issuestore/5/3/53585a096fe3a3b96321113856ae62602995a33b +0 -0
- package/.idea/sonarlint/issuestore/5/4/5471e6ec0c0e189560fccc7f474993fc6e1f758a +0 -0
- package/.idea/sonarlint/issuestore/5/7/578f3ebc33c3ca6ab8e66c97f3c2eba2237b40ea +0 -0
- package/.idea/sonarlint/issuestore/5/8/5831775a729fcf9cb12959996af17091f46f440b +0 -0
- package/.idea/sonarlint/issuestore/5/8/5842d31a915855888fd63b1aca8c3a4dd8c95880 +0 -0
- package/.idea/sonarlint/issuestore/5/c/5ce582bce204b2edd80e7602b279b3d64cc737e0 +0 -0
- package/.idea/sonarlint/issuestore/5/f/5f2f0e365ced14f666cef2ac164c93530d4e0c2a +0 -0
- package/.idea/sonarlint/issuestore/6/0/60882ef9544224120d1d72534f44b973f3a57746 +0 -0
- package/.idea/sonarlint/issuestore/6/0/60a7f3adc2729926865b49b02008b2874d65429d +2 -0
- package/.idea/sonarlint/issuestore/6/0/60b89c88214907466f4d004bb8a2e56a468da7f5 +0 -0
- package/.idea/sonarlint/issuestore/6/0/60bb79bf1ee7929bf0f8c20166ae12e49d7af9ea +3 -0
- package/.idea/sonarlint/issuestore/6/1/61ebb9fd6e8cf9082658121d5d81e297791dacd0 +0 -0
- package/.idea/sonarlint/issuestore/6/5/65c98391f12bde62f0955f439128e0f8cb1eac6a +0 -0
- package/.idea/sonarlint/issuestore/6/7/6733e547a8a62f0e2b41358995a67255b967bfeb +0 -0
- package/.idea/sonarlint/issuestore/6/8/68e29ca13d4f4cada132a831a6a1b52c0a0ebfd3 +0 -0
- package/.idea/sonarlint/issuestore/6/9/692f3fce406d97e843fbf744ad689b51e3754dff +0 -0
- package/.idea/sonarlint/issuestore/6/a/6a835d16be742d060f08912c5808bbf862426d3d +0 -0
- package/.idea/sonarlint/issuestore/6/c/6cd35da18772c8847edacba05dd265c15ded5d0b +0 -0
- package/.idea/sonarlint/issuestore/6/e/6e142af7dffa0e82efece3ff58722e96f4283a3f +0 -0
- package/.idea/sonarlint/issuestore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
- package/.idea/sonarlint/issuestore/7/2/725cc9c146a136cafafef5ffec4cb307badb1d0e +0 -0
- package/.idea/sonarlint/issuestore/7/3/73e399246034aaf963bb1ad4b0a0e2b5228f57cc +0 -0
- package/.idea/sonarlint/issuestore/7/7/7710090cd8b91b750ed58a2f3196d971d7de988b +0 -0
- package/.idea/sonarlint/issuestore/7/8/785055d2374e9ff4841f875174c20cad0c0d9a80 +0 -0
- package/.idea/sonarlint/issuestore/7/8/78a09338d0e7bb67a5d2643580367940bee1e5b2 +0 -0
- package/.idea/sonarlint/issuestore/7/9/793162cb1b4e542cbf5f8db45406f4e91f736c0e +0 -0
- package/.idea/sonarlint/issuestore/7/a/7a6581baac8c66b8e331b8187db03c64201001f1 +0 -0
- package/.idea/sonarlint/issuestore/8/5/852060cc24633564871605ce8d1e59970ef2485c +0 -0
- package/.idea/sonarlint/issuestore/8/5/85e8222943093a270d57ab07964a75d9a15648eb +0 -0
- package/.idea/sonarlint/issuestore/8/6/86abd2602e79b84f352d24c72f079541f41aeb6d +0 -0
- package/.idea/sonarlint/issuestore/8/8/881d5d47bdc17ef8facebef59b68b5fc099a0293 +0 -0
- package/.idea/sonarlint/issuestore/8/8/882c515e635f40a7e1ad419c70c0f2d2c17e2f37 +0 -0
- package/.idea/sonarlint/issuestore/8/9/89d3df066dd0ec67c57e82d68cce94cb72f820b5 +0 -0
- package/.idea/sonarlint/issuestore/8/b/8bff50de15c7d9b1166aa9ad98243d1a04b7e4c4 +0 -0
- package/.idea/sonarlint/issuestore/8/c/8c5bbc0d4ce626bd35d05b960ef906abfd312014 +0 -0
- package/.idea/sonarlint/issuestore/9/0/900448384f6077c203e834650b95017f7a373583 +2 -0
- package/.idea/sonarlint/issuestore/9/1/912f3a935b193eb148539815f9aef4a4252c12ba +0 -0
- package/.idea/sonarlint/issuestore/9/4/94dd0b13f6f12ba5eae129046b1d061ddd546d72 +5 -0
- package/.idea/sonarlint/issuestore/9/5/958a078793035ab0aad2086f7be79b55628402c0 +0 -0
- package/.idea/sonarlint/issuestore/9/6/96dcf27dc8ae3662215096d9e00c194897d29c0b +0 -0
- package/.idea/sonarlint/issuestore/9/7/9730e89df0a4367176020e461c38c37b7ae58b9a +0 -0
- package/.idea/sonarlint/issuestore/9/8/98c4f1f9f94adc9e53100dbf68ce8c5df2a47f01 +0 -0
- package/.idea/sonarlint/issuestore/9/9/9920d82d6cbbfe404d91c79781048e0c0514767e +0 -0
- package/.idea/sonarlint/issuestore/9/c/9cc6b3192a90fe4d986d791c393ab1ac7101ac48 +0 -0
- package/.idea/sonarlint/issuestore/a/1/a1991714da3efb5da4456ee802727afe63035aa5 +0 -0
- package/.idea/sonarlint/issuestore/a/7/a70ff2c42b6ffb69f1686cf6ced65733a75e056f +0 -0
- package/.idea/sonarlint/issuestore/a/8/a8b0d4ad8d44e8bb48b2ca34ddbd84b549ee9105 +3 -0
- package/.idea/sonarlint/issuestore/a/a/aaf524b8c18d54117ff8a4de5b06cdd7f5776d0d +0 -0
- package/.idea/sonarlint/issuestore/a/b/ab09011fa121d0a2bb9fa4ca76094f2482b902b7 +0 -0
- package/.idea/sonarlint/issuestore/b/0/b0a40903f86afa7d5940f95f66995a290b6d4fe2 +0 -0
- package/.idea/sonarlint/issuestore/b/2/b26e3039f1510dfa296fdfb6a1a5f12cdca84371 +0 -0
- package/.idea/sonarlint/issuestore/b/3/b3349079128f17cb6e0cecf3cccfa4fe5188f92f +3 -0
- package/.idea/sonarlint/issuestore/b/4/b4a9acebce4d56aa444e5b857fa140163bcbd47f +0 -0
- package/.idea/sonarlint/issuestore/b/5/b5320db1c0a02ceb68cb70d050f5dc9d420b928b +0 -0
- package/.idea/sonarlint/issuestore/b/7/b7d694611d1aa415d97c7872253457c54d8f1ed7 +0 -0
- package/.idea/sonarlint/issuestore/b/9/b9f0a0a757a4dc7cc57724b3534dfdf189c25ea6 +0 -0
- package/.idea/sonarlint/issuestore/b/b/bb971971f3915fff5703a078f2784df410b7298e +0 -0
- package/.idea/sonarlint/issuestore/b/e/be023cb04cabb819ee6a97d9fc2a088cb4eded97 +0 -0
- package/.idea/sonarlint/issuestore/b/e/be633e1bf05efdb3dec5eae2777f024e1aee5599 +0 -0
- package/.idea/sonarlint/issuestore/c/2/c2b3144db64026759165a569b0f1f5086c6be0d3 +0 -0
- package/.idea/sonarlint/issuestore/c/6/c62bdf361b714427c19bdc47c8c97f90cce4dad3 +0 -0
- package/.idea/sonarlint/issuestore/c/6/c680d0675608db3debbc56eab6dae6478ea3d2db +0 -0
- package/.idea/sonarlint/issuestore/c/b/cb44f758b6159383fc5e20e1b38c4a3781d4e4bc +0 -0
- package/.idea/sonarlint/issuestore/c/c/ccc24fa53ed888a7471d8f2d4afae2e0ae89171d +0 -0
- package/.idea/sonarlint/issuestore/c/e/ced731c009a96db35c13542868ab840aa2ef6de4 +0 -0
- package/.idea/sonarlint/issuestore/d/1/d13af3479d43279b14b3cf9dbac30965ada1dadb +0 -0
- package/.idea/sonarlint/issuestore/d/2/d2b81feb53c8d963c77dbd7e63afdc568883baad +0 -0
- package/.idea/sonarlint/issuestore/d/3/d350eccaa5bdadf800f3540db3f0e94c0417a0f3 +0 -0
- package/.idea/sonarlint/issuestore/d/3/d3f37835937f760d81f9a81b56b898afec37a1e7 +0 -0
- package/.idea/sonarlint/issuestore/d/4/d4e02cf17e1477bc4516d78f557bdcd1b933fafd +0 -0
- package/.idea/sonarlint/issuestore/d/5/d5595158cc48f9bf3e51b06f6e6805a8fd2d6262 +0 -0
- package/.idea/sonarlint/issuestore/d/6/d690bc5bd5193edbd3f7e29b2d1be4d3f991937b +0 -0
- package/.idea/sonarlint/issuestore/d/7/d76f3a535e1a92673864b9fca18992b4f862dbba +2 -0
- package/.idea/sonarlint/issuestore/d/a/dac4ed416fff2cc3bff02b81a88328ec7c19de0e +0 -0
- package/.idea/sonarlint/issuestore/e/0/e00bc8f8672ab358b454ac1d2030d3526a374653 +0 -0
- package/.idea/sonarlint/issuestore/e/0/e017677da38130b31bd766d7a84884050023d597 +0 -0
- package/.idea/sonarlint/issuestore/e/1/e15a6d4820640fb201495dfd5875489fd536ebb3 +0 -0
- package/.idea/sonarlint/issuestore/e/4/e4ba9c2909b6e543ec138e95d86cee25af778d54 +0 -0
- package/.idea/sonarlint/issuestore/e/8/e804956e69c2d0944d08ff64caa3e6286590814b +0 -0
- package/.idea/sonarlint/issuestore/f/0/f039b4d90e01657caf0dbfd31860e93d585b6752 +0 -0
- package/.idea/sonarlint/issuestore/f/0/f096934f71a0918e4829a4f76b3bba64b8d65f1e +0 -0
- package/.idea/sonarlint/issuestore/f/1/f11f7a7b3a7306f994e28b2eba9c69a5b555c017 +0 -0
- package/.idea/sonarlint/issuestore/f/1/f1b96288c62ba6818b30b3d2e7506e30c1b4a742 +3 -0
- package/.idea/sonarlint/issuestore/f/3/f351a44ab2314976174827d1ca2495fd38ea8df8 +0 -0
- package/.idea/sonarlint/issuestore/f/3/f37789881b66dffd7123fa80ee7ad838f3bdafaf +0 -0
- package/.idea/sonarlint/issuestore/f/4/f40b81d4c7242e4401b8ae55bdcab1c38b860071 +0 -0
- package/.idea/sonarlint/issuestore/f/4/f425d43e761ebef46b781334764eb5d3bb913cf8 +3 -0
- package/.idea/sonarlint/issuestore/f/6/f61f9b480b4da03d8ff7d137ce344656354cd190 +0 -0
- package/.idea/sonarlint/issuestore/f/6/f65d6b8cc814626bac7a38f2cd1c930554388594 +0 -0
- package/.idea/sonarlint/issuestore/f/9/f900edc44cb929c2267a16100a32851f6d5b477d +0 -0
- package/.idea/sonarlint/issuestore/f/b/fb8261203d602a51243c9a77b6c1ee63bb7b6966 +0 -0
- package/.idea/sonarlint/issuestore/f/f/ff7918f0784b416c82bb974889323c13506e7d0a +0 -0
- package/.idea/sonarlint/issuestore/index.pb +259 -0
- package/.idea/sonarlint/securityhotspotstore/0/2/0233f8559e74312ed5074ade1be1aea02e6e4f1e +0 -0
- package/.idea/sonarlint/securityhotspotstore/0/2/02d5146f94659f11c56f0ea1d9c504ff9492b546 +0 -0
- package/.idea/sonarlint/securityhotspotstore/0/2/02f4902c3db5247c732bde5aaf0d4fb55363c3b1 +0 -0
- package/.idea/sonarlint/securityhotspotstore/0/3/0343acf33ca1b061164f9846ff8ce30429205a2a +0 -0
- package/.idea/sonarlint/securityhotspotstore/0/4/04d5869ea32abbf6abf5a3cb9a671637ac2e345b +0 -0
- package/.idea/sonarlint/securityhotspotstore/0/9/0918cbb76f2c44f223706cec9d31a32cd1177ce4 +0 -0
- package/.idea/sonarlint/securityhotspotstore/0/9/091aff741808a09242f252264b14f4a9adaa5305 +0 -0
- package/.idea/sonarlint/securityhotspotstore/0/b/0b63533e07c8b10a8fbfe7f35df1bffec8103e14 +0 -0
- package/.idea/sonarlint/securityhotspotstore/0/c/0c0fd6a370cd10350462b46937e98f903bcb1435 +0 -0
- package/.idea/sonarlint/securityhotspotstore/0/e/0e600c187f4cf8bd0dd6b678f55067a8300ab570 +0 -0
- package/.idea/sonarlint/securityhotspotstore/0/f/0f43007644f06a63afbfbfc129aadd61bf40318a +0 -0
- package/.idea/sonarlint/securityhotspotstore/1/4/14148858b7b4a0aa23ddfdc41ef62be2db925c70 +0 -0
- package/.idea/sonarlint/securityhotspotstore/1/5/15ff6a89ff653ef3176ddb9c5e0b59c16c2db949 +0 -0
- package/.idea/sonarlint/securityhotspotstore/1/6/169d7dbe9a819ce675ee66de130c5a7c92bb763d +0 -0
- package/.idea/sonarlint/securityhotspotstore/1/8/18a1ebb3a44ad977a5cfa60b6620a47ba00163a3 +0 -0
- package/.idea/sonarlint/securityhotspotstore/1/f/1fd3ecff7dd864e5b00c14a4333d8cde8c9faf11 +0 -0
- package/.idea/sonarlint/securityhotspotstore/2/0/204a133d39c4a2c7b86de23f541f342e0a7a3234 +0 -0
- package/.idea/sonarlint/securityhotspotstore/2/4/2491406c07bfc2b0f7ed8e010e56d6e468c374d0 +0 -0
- package/.idea/sonarlint/securityhotspotstore/2/5/257d0fa8d58da6d96f5a7af9724b2e1c92c62a2d +0 -0
- package/.idea/sonarlint/securityhotspotstore/2/8/282dcb1e4436703724dd35bb567086834c3ebdb4 +0 -0
- package/.idea/sonarlint/securityhotspotstore/2/a/2aeb7bd71ee8453ff4601a1fc8fcd4fa9c5fe355 +0 -0
- package/.idea/sonarlint/securityhotspotstore/2/c/2c25e229323612e7988c659ad7b51c7b1e2b2403 +0 -0
- package/.idea/sonarlint/securityhotspotstore/2/f/2fa1946a2afc952506e41d87833ed29401fc29a0 +0 -0
- package/.idea/sonarlint/securityhotspotstore/3/4/3463c59843592ad2a00c54f39e2943583bd6fff9 +0 -0
- package/.idea/sonarlint/securityhotspotstore/3/9/390f31a969ba7940070bf32aac2a0d1f7b7bd78b +0 -0
- package/.idea/sonarlint/securityhotspotstore/3/e/3ebc20bbfa3c33cf20481a2de7591c997c68abb9 +0 -0
- package/.idea/sonarlint/securityhotspotstore/4/1/417425bfa2cef1f22539e792dcb0a7f7784f9604 +0 -0
- package/.idea/sonarlint/securityhotspotstore/4/1/41ac9772c7dd3fc038485f99106b427a5e28f2e3 +0 -0
- package/.idea/sonarlint/securityhotspotstore/4/4/44d3ca69a31c68c4d920b1fbb0083732713d2690 +0 -0
- package/.idea/sonarlint/securityhotspotstore/4/8/48a8ec70d252121fbc7df4e8a45044e964b5d6b7 +0 -0
- package/.idea/sonarlint/securityhotspotstore/4/9/49e951d8246d0914f9d10b3955a7178866cfcee9 +0 -0
- package/.idea/sonarlint/securityhotspotstore/4/d/4def76d1eea91e36f7789929705c032be6df27cd +0 -0
- package/.idea/sonarlint/securityhotspotstore/4/f/4f40ac4df99b3f8bbd80db9b729d3b4b401623eb +0 -0
- package/.idea/sonarlint/securityhotspotstore/4/f/4f4bba1840f039e57f25bbd19ec0e20c15fc0e1d +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/1/51f466e675bcd7ca84bf6287bab7404cde26db22 +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/2/5222c3d19fd979fed770b7f3664147b2ed16b230 +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/2/52cb9deee3ee8b8add01ec855fc4a45818ac7638 +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/3/53585a096fe3a3b96321113856ae62602995a33b +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/4/5471e6ec0c0e189560fccc7f474993fc6e1f758a +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/7/578f3ebc33c3ca6ab8e66c97f3c2eba2237b40ea +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/8/5831775a729fcf9cb12959996af17091f46f440b +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/8/5842d31a915855888fd63b1aca8c3a4dd8c95880 +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/c/5ce582bce204b2edd80e7602b279b3d64cc737e0 +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/f/5f2f0e365ced14f666cef2ac164c93530d4e0c2a +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/0/60882ef9544224120d1d72534f44b973f3a57746 +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/0/60a7f3adc2729926865b49b02008b2874d65429d +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/0/60b89c88214907466f4d004bb8a2e56a468da7f5 +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/0/60bb79bf1ee7929bf0f8c20166ae12e49d7af9ea +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/1/61ebb9fd6e8cf9082658121d5d81e297791dacd0 +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/5/65c98391f12bde62f0955f439128e0f8cb1eac6a +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/7/6733e547a8a62f0e2b41358995a67255b967bfeb +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/8/68e29ca13d4f4cada132a831a6a1b52c0a0ebfd3 +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/9/692f3fce406d97e843fbf744ad689b51e3754dff +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/a/6a835d16be742d060f08912c5808bbf862426d3d +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/e/6e142af7dffa0e82efece3ff58722e96f4283a3f +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/2/725cc9c146a136cafafef5ffec4cb307badb1d0e +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/3/73e399246034aaf963bb1ad4b0a0e2b5228f57cc +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/7/7710090cd8b91b750ed58a2f3196d971d7de988b +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/8/785055d2374e9ff4841f875174c20cad0c0d9a80 +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/8/78a09338d0e7bb67a5d2643580367940bee1e5b2 +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/9/793162cb1b4e542cbf5f8db45406f4e91f736c0e +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/a/7a6581baac8c66b8e331b8187db03c64201001f1 +0 -0
- package/.idea/sonarlint/securityhotspotstore/8/5/852060cc24633564871605ce8d1e59970ef2485c +0 -0
- package/.idea/sonarlint/securityhotspotstore/8/5/85e8222943093a270d57ab07964a75d9a15648eb +2 -0
- package/.idea/sonarlint/securityhotspotstore/8/6/86abd2602e79b84f352d24c72f079541f41aeb6d +0 -0
- package/.idea/sonarlint/securityhotspotstore/8/8/881d5d47bdc17ef8facebef59b68b5fc099a0293 +0 -0
- package/.idea/sonarlint/securityhotspotstore/8/8/882c515e635f40a7e1ad419c70c0f2d2c17e2f37 +0 -0
- package/.idea/sonarlint/securityhotspotstore/8/9/89d3df066dd0ec67c57e82d68cce94cb72f820b5 +0 -0
- package/.idea/sonarlint/securityhotspotstore/8/b/8bff50de15c7d9b1166aa9ad98243d1a04b7e4c4 +0 -0
- package/.idea/sonarlint/securityhotspotstore/8/c/8c5bbc0d4ce626bd35d05b960ef906abfd312014 +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/0/900448384f6077c203e834650b95017f7a373583 +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/1/912f3a935b193eb148539815f9aef4a4252c12ba +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/4/94dd0b13f6f12ba5eae129046b1d061ddd546d72 +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/5/958a078793035ab0aad2086f7be79b55628402c0 +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/6/96dcf27dc8ae3662215096d9e00c194897d29c0b +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/7/9730e89df0a4367176020e461c38c37b7ae58b9a +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/8/98c4f1f9f94adc9e53100dbf68ce8c5df2a47f01 +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/9/9920d82d6cbbfe404d91c79781048e0c0514767e +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/c/9cc6b3192a90fe4d986d791c393ab1ac7101ac48 +0 -0
- package/.idea/sonarlint/securityhotspotstore/a/1/a1991714da3efb5da4456ee802727afe63035aa5 +0 -0
- package/.idea/sonarlint/securityhotspotstore/a/7/a70ff2c42b6ffb69f1686cf6ced65733a75e056f +0 -0
- package/.idea/sonarlint/securityhotspotstore/a/8/a8b0d4ad8d44e8bb48b2ca34ddbd84b549ee9105 +0 -0
- package/.idea/sonarlint/securityhotspotstore/a/a/aaf524b8c18d54117ff8a4de5b06cdd7f5776d0d +0 -0
- package/.idea/sonarlint/securityhotspotstore/a/b/ab09011fa121d0a2bb9fa4ca76094f2482b902b7 +0 -0
- package/.idea/sonarlint/securityhotspotstore/b/0/b0a40903f86afa7d5940f95f66995a290b6d4fe2 +0 -0
- package/.idea/sonarlint/securityhotspotstore/b/2/b26e3039f1510dfa296fdfb6a1a5f12cdca84371 +0 -0
- package/.idea/sonarlint/securityhotspotstore/b/3/b3349079128f17cb6e0cecf3cccfa4fe5188f92f +0 -0
- package/.idea/sonarlint/securityhotspotstore/b/4/b4a9acebce4d56aa444e5b857fa140163bcbd47f +0 -0
- package/.idea/sonarlint/securityhotspotstore/b/5/b5320db1c0a02ceb68cb70d050f5dc9d420b928b +0 -0
- package/.idea/sonarlint/securityhotspotstore/b/7/b7d694611d1aa415d97c7872253457c54d8f1ed7 +0 -0
- package/.idea/sonarlint/securityhotspotstore/b/9/b9f0a0a757a4dc7cc57724b3534dfdf189c25ea6 +0 -0
- package/.idea/sonarlint/securityhotspotstore/b/b/bb971971f3915fff5703a078f2784df410b7298e +0 -0
- package/.idea/sonarlint/securityhotspotstore/b/e/be023cb04cabb819ee6a97d9fc2a088cb4eded97 +0 -0
- package/.idea/sonarlint/securityhotspotstore/b/e/be633e1bf05efdb3dec5eae2777f024e1aee5599 +0 -0
- package/.idea/sonarlint/securityhotspotstore/c/2/c2b3144db64026759165a569b0f1f5086c6be0d3 +0 -0
- package/.idea/sonarlint/securityhotspotstore/c/6/c62bdf361b714427c19bdc47c8c97f90cce4dad3 +0 -0
- package/.idea/sonarlint/securityhotspotstore/c/6/c680d0675608db3debbc56eab6dae6478ea3d2db +0 -0
- package/.idea/sonarlint/securityhotspotstore/c/b/cb44f758b6159383fc5e20e1b38c4a3781d4e4bc +0 -0
- package/.idea/sonarlint/securityhotspotstore/c/e/ced731c009a96db35c13542868ab840aa2ef6de4 +0 -0
- package/.idea/sonarlint/securityhotspotstore/d/1/d13af3479d43279b14b3cf9dbac30965ada1dadb +0 -0
- package/.idea/sonarlint/securityhotspotstore/d/2/d2b81feb53c8d963c77dbd7e63afdc568883baad +0 -0
- package/.idea/sonarlint/securityhotspotstore/d/3/d3f37835937f760d81f9a81b56b898afec37a1e7 +0 -0
- package/.idea/sonarlint/securityhotspotstore/d/4/d4e02cf17e1477bc4516d78f557bdcd1b933fafd +0 -0
- package/.idea/sonarlint/securityhotspotstore/d/5/d5595158cc48f9bf3e51b06f6e6805a8fd2d6262 +0 -0
- package/.idea/sonarlint/securityhotspotstore/d/6/d690bc5bd5193edbd3f7e29b2d1be4d3f991937b +0 -0
- package/.idea/sonarlint/securityhotspotstore/d/7/d76f3a535e1a92673864b9fca18992b4f862dbba +0 -0
- package/.idea/sonarlint/securityhotspotstore/d/a/dac4ed416fff2cc3bff02b81a88328ec7c19de0e +0 -0
- package/.idea/sonarlint/securityhotspotstore/e/0/e00bc8f8672ab358b454ac1d2030d3526a374653 +0 -0
- package/.idea/sonarlint/securityhotspotstore/e/1/e15a6d4820640fb201495dfd5875489fd536ebb3 +0 -0
- package/.idea/sonarlint/securityhotspotstore/e/8/e804956e69c2d0944d08ff64caa3e6286590814b +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/0/f039b4d90e01657caf0dbfd31860e93d585b6752 +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/0/f096934f71a0918e4829a4f76b3bba64b8d65f1e +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/1/f11f7a7b3a7306f994e28b2eba9c69a5b555c017 +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/1/f1b96288c62ba6818b30b3d2e7506e30c1b4a742 +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/3/f351a44ab2314976174827d1ca2495fd38ea8df8 +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/3/f37789881b66dffd7123fa80ee7ad838f3bdafaf +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/4/f40b81d4c7242e4401b8ae55bdcab1c38b860071 +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/4/f425d43e761ebef46b781334764eb5d3bb913cf8 +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/6/f61f9b480b4da03d8ff7d137ce344656354cd190 +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/6/f65d6b8cc814626bac7a38f2cd1c930554388594 +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/9/f900edc44cb929c2267a16100a32851f6d5b477d +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/b/fb8261203d602a51243c9a77b6c1ee63bb7b6966 +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/f/ff7918f0784b416c82bb974889323c13506e7d0a +0 -0
- package/.idea/sonarlint/securityhotspotstore/index.pb +249 -0
- package/.idea/sonarlint-state.xml +6 -0
- package/.idea/sonarlint.xml +8 -0
- package/.idea/vcs.xml +1 -1
- package/.yarn/install-state.gz +0 -0
- package/.yarn/releases/yarn-1.22.22.cjs +148049 -0
- package/CHANGELOG.md +13 -1
- package/dist/demosplan-ui.umd.js +1 -1
- package/moveToClaudeMD.md +65 -0
- package/package.json +1 -1
- package/src/components/DpAutocomplete/DpAutocomplete.vue +65 -29
- package/src/components/DpProgressBar/DpProgressBar.vue +11 -5
- package/tokens/dist/css/theme.css +1 -1
- package/tokens/dist/js/boxShadow.js +1 -1
- package/tokens/dist/js/breakpoints.js +1 -1
- package/tokens/dist/js/color.brand.js +1 -1
- package/tokens/dist/js/color.data.js +1 -1
- package/tokens/dist/js/color.palette.js +1 -1
- package/tokens/dist/js/color.ui-tailwind.js +1899 -0
- package/tokens/dist/js/color.ui.js +1 -1
- package/tokens/dist/js/fontSize.js +1 -1
- package/tokens/dist/js/rounded.js +1 -1
- package/tokens/dist/js/space.js +1 -1
- package/tokens/dist/js/zIndex.js +1 -1
- package/tokens/dist/scss/_boxShadow.scss +1 -1
- package/tokens/dist/scss/_breakpoints.scss +1 -1
- package/tokens/dist/scss/_color.brand.scss +1 -1
- package/tokens/dist/scss/_color.data.scss +1 -1
- package/tokens/dist/scss/_color.palette.scss +1 -1
- package/tokens/dist/scss/_color.ui.scss +1 -1
- package/tokens/dist/scss/_fontSize.scss +1 -1
- package/tokens/dist/scss/_rounded.scss +1 -1
- package/tokens/dist/scss/_space.scss +1 -1
- package/tokens/dist/scss/_zIndex.scss +1 -1
- package/tokens/dist/tailwind/color.brand.js +8 -0
- package/tokens/dist/tailwind/color.data.js +30 -0
- package/tokens/dist/tailwind/color.palette.js +60 -0
- package/tokens/scss/_boxShadow.scss +8 -0
- package/tokens/scss/_color.brand.scss +10 -0
- package/tokens/scss/_color.data.scss +32 -0
- package/tokens/scss/_color.palette.scss +62 -0
- package/tokens/scss/_color.scss +89 -0
- package/tokens/scss/_color.ui.scss +60 -0
- package/tokens/scss/_fontSize.scss +26 -0
- package/tokens/scss/_rounded.scss +9 -0
- package/tokens/scss/_space.scss +13 -0
- package/yarn-error.log +14081 -0
- package/.idea/codeStyles/Project.xml +0 -62
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_11_07_2025_09_56_[Changes]/shelved.patch +0 -175
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_11_07_2025_09_56__Changes_.xml +0 -4
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_15_07_2025_11_55_[Changes]/shelved.patch +0 -18
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_15_07_2025_11_55__Changes_.xml +0 -4
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_15_07_2025_11_56_[Changes]/shelved.patch +0 -18
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_15_07_2025_11_56__Changes_.xml +0 -4
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_16_06_2025_14_40_[Changes]/shelved.patch +0 -58
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_24_06_2025_11_14_[Changes]/shelved.patch +0 -217
- package/.idea/shelf/Uncommitted_changes_before_Update_at_09_05_2025_14_28_[Changes]/shelved.patch +0 -295
- package/.idea/shelf/Uncommitted_changes_before_Update_at_15_07_2025_11_56_[Changes]/shelved.patch +0 -18
- package/.idea/shelf/Uncommitted_changes_before_Update_at_15_07_2025_11_56__Changes_.xml +0 -4
- package/.idea/workspace.xml +0 -981
- package/coverage/clover.xml +0 -6
- package/coverage/coverage-final.json +0 -1
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -101
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/debug-storybook.log +0 -40
- package/storybook-static/assets/CleanHtml-BxfZNGDF.js +0 -48
- package/storybook-static/assets/CleanHtml-CeG3Pc5D.js +0 -2
- package/storybook-static/assets/Color-AVL7NMMY-CrqVLxS7.js +0 -1
- package/storybook-static/assets/DocsRenderer-PQXLIZUC-C94DWaTq.js +0 -2
- package/storybook-static/assets/DpAccordion-BJ0eYoeL.js +0 -9
- package/storybook-static/assets/DpAccordion-CKgNMMg7.js +0 -1
- package/storybook-static/assets/DpAccordion.stories-Bi3-V11T.js +0 -26
- package/storybook-static/assets/DpApi-BU9X0WT6.js +0 -4
- package/storybook-static/assets/DpAutocomplete-BhABAuyz.js +0 -6
- package/storybook-static/assets/DpAutocomplete-Ds8IvIaM.js +0 -1
- package/storybook-static/assets/DpAutocomplete.stories-DGmOfoqI.js +0 -8
- package/storybook-static/assets/DpBadge-BPAWHuN0.js +0 -16
- package/storybook-static/assets/DpBadge-mgPu9WO8.js +0 -1
- package/storybook-static/assets/DpBadge.stories-DEFu_g_d.js +0 -69
- package/storybook-static/assets/DpBulkEditHeader-DYRPNRDA.js +0 -10
- package/storybook-static/assets/DpBulkEditHeader-qNgl3Gdq.js +0 -1
- package/storybook-static/assets/DpBulkEditHeader.stories-CgKeZjbQ.js +0 -50
- package/storybook-static/assets/DpButton-BLywaapW.js +0 -15
- package/storybook-static/assets/DpButton-BX5f5Y08.js +0 -28
- package/storybook-static/assets/DpButton.stories-Bh1aQWo-.js +0 -60
- package/storybook-static/assets/DpButtonIcon-CutRnDpO.js +0 -4
- package/storybook-static/assets/DpButtonRow-CU6rf5xR.js +0 -12
- package/storybook-static/assets/DpButtonRow-DRRw4r4F.js +0 -1
- package/storybook-static/assets/DpButtonRow.stories-BRZ52We0.js +0 -60
- package/storybook-static/assets/DpCard-CNBkliZ1.js +0 -1
- package/storybook-static/assets/DpCard-CqzBHYky.js +0 -5
- package/storybook-static/assets/DpCard.stories-CkAnU1Vf.js +0 -8
- package/storybook-static/assets/DpCheckbox-BdZqABk4.js +0 -1
- package/storybook-static/assets/DpCheckbox-Db9FgQPp.js +0 -25
- package/storybook-static/assets/DpCheckbox.stories-yTBXYgIJ.js +0 -48
- package/storybook-static/assets/DpCheckboxGroup-CE1noRhA.js +0 -10
- package/storybook-static/assets/DpCheckboxGroup-CFaFEzrL.js +0 -1
- package/storybook-static/assets/DpCheckboxGroup.stories-DQ7BzPww.js +0 -15
- package/storybook-static/assets/DpColumnSelector-B0Q0n09i.js +0 -10
- package/storybook-static/assets/DpColumnSelector-BjRvX20u.js +0 -1
- package/storybook-static/assets/DpColumnSelector.stories-Bsxtu-R9.js +0 -17
- package/storybook-static/assets/DpConfirmDialog-B4NQKzL5.js +0 -8
- package/storybook-static/assets/DpConfirmDialog-CQYtFW-3.js +0 -1
- package/storybook-static/assets/DpConfirmDialog.stories-iv2KRiDU.js +0 -73
- package/storybook-static/assets/DpContextualHelp-DnsCCoZB.js +0 -4
- package/storybook-static/assets/DpContextualHelp-cg4NfoZJ.js +0 -12
- package/storybook-static/assets/DpContextualHelp.stories-D5HWdQyH.js +0 -45
- package/storybook-static/assets/DpDataTable-Cr1GA5Cb.js +0 -16
- package/storybook-static/assets/DpDataTable-f7CVMPNi.js +0 -10
- package/storybook-static/assets/DpDataTable.stories-BjXZnrni.js +0 -123
- package/storybook-static/assets/DpDataTableExtended-C-oFpO_I.js +0 -14
- package/storybook-static/assets/DpDataTableExtended-mDxHCvB0.js +0 -2
- package/storybook-static/assets/DpDataTableExtended.stories-I5_PptZr.js +0 -73
- package/storybook-static/assets/DpDateRangePicker-D5652u0C.js +0 -1
- package/storybook-static/assets/DpDateRangePicker-YGJhE-xN.js +0 -10
- package/storybook-static/assets/DpDateRangePicker.stories-CCfSjt7J.js +0 -19
- package/storybook-static/assets/DpDatepicker-BlQqmRXh.js +0 -14
- package/storybook-static/assets/DpDatepicker-CFlgW3DB.js +0 -30
- package/storybook-static/assets/DpDatepicker.stories-QbL7uNPB.js +0 -55
- package/storybook-static/assets/DpDatetimePicker-BNogWwEl.js +0 -17
- package/storybook-static/assets/DpDatetimePicker-DQokm861.js +0 -2
- package/storybook-static/assets/DpDatetimePicker.stories-dJTr_X4a.js +0 -39
- package/storybook-static/assets/DpDetails-Do--n1SK.js +0 -1
- package/storybook-static/assets/DpDetails-qy-zsMYA.js +0 -12
- package/storybook-static/assets/DpDetails.stories-BmFnnpwr.js +0 -89
- package/storybook-static/assets/DpDraggable-CddfZrQg.js +0 -12
- package/storybook-static/assets/DpDraggable-DLTo9Q5K.js +0 -6
- package/storybook-static/assets/DpDraggable.stories-YSsJhbLZ.js +0 -290
- package/storybook-static/assets/DpEditableList-5FqvJbtx.js +0 -8
- package/storybook-static/assets/DpEditableList-CKEmMpmV.js +0 -28
- package/storybook-static/assets/DpEditableList.stories-CunPGVO1.js +0 -48
- package/storybook-static/assets/DpEditor-xJ7bfv4o.js +0 -12
- package/storybook-static/assets/DpEditor.stories-IBm6EtTh.js +0 -90
- package/storybook-static/assets/DpFlyout-DgegOHH0.js +0 -8
- package/storybook-static/assets/DpFlyout-Dsx6KYUl.js +0 -1
- package/storybook-static/assets/DpFlyout.stories-vre_uXPR.js +0 -23
- package/storybook-static/assets/DpFormRow-BsMZgRL2.js +0 -1
- package/storybook-static/assets/DpFormRow-DkKEMIVl.js +0 -9
- package/storybook-static/assets/DpFormRow.stories-ix_fpK9y.js +0 -12
- package/storybook-static/assets/DpIcon-DNUvGdzz.js +0 -9
- package/storybook-static/assets/DpIcon-dOAQoUKG.js +0 -5
- package/storybook-static/assets/DpIcon.stories-DGgU5AFH.js +0 -149
- package/storybook-static/assets/DpInlineNotification-CEzn4Pqd.js +0 -2
- package/storybook-static/assets/DpInlineNotification-wqa943WU.js +0 -13
- package/storybook-static/assets/DpInlineNotification.stories-B0z19u_O.js +0 -17
- package/storybook-static/assets/DpInput-HcmwQIdx.js +0 -33
- package/storybook-static/assets/DpInput-cN-WEvOL.js +0 -16
- package/storybook-static/assets/DpInput.stories-bIIwZ06I.js +0 -131
- package/storybook-static/assets/DpLabel-CIRt98zd.js +0 -30
- package/storybook-static/assets/DpLabel-DFauD5I2.js +0 -1
- package/storybook-static/assets/DpLabel.stories-DOvT5FP0.js +0 -212
- package/storybook-static/assets/DpLoading-CPPK2VdG.js +0 -20
- package/storybook-static/assets/DpLoading-rM7osZHK.js +0 -1
- package/storybook-static/assets/DpLoading.stories-DbGxhEdp.js +0 -43
- package/storybook-static/assets/DpModal-CVn3FCXs.js +0 -26
- package/storybook-static/assets/DpModal-oGkhZvzT.js +0 -1
- package/storybook-static/assets/DpModal.stories-D85oaATj.js +0 -129
- package/storybook-static/assets/DpMultiselect-Bm5hUadB.js +0 -22
- package/storybook-static/assets/DpMultiselect-C43chKj1.js +0 -44
- package/storybook-static/assets/DpMultiselect.stories-CIoTsG-g.js +0 -107
- package/storybook-static/assets/DpMultistepNav-AnSXdU2J.js +0 -1
- package/storybook-static/assets/DpMultistepNav-C2Zadn2N.js +0 -13
- package/storybook-static/assets/DpMultistepNav.stories-BG2cLqfE.js +0 -30
- package/storybook-static/assets/DpNotification-C1QXVdor.js +0 -1
- package/storybook-static/assets/DpNotification-DyJmy8iY.js +0 -29
- package/storybook-static/assets/DpNotification.stories-DfecPPLD.js +0 -105
- package/storybook-static/assets/DpPager-BaoMw4uo.js +0 -1
- package/storybook-static/assets/DpPager-XfqFqQGG.js +0 -12
- package/storybook-static/assets/DpPager.stories-DHEGD-lB.js +0 -24
- package/storybook-static/assets/DpProgressBar-4fw0icXV.js +0 -20
- package/storybook-static/assets/DpProgressBar-C0dbsdgz.js +0 -1
- package/storybook-static/assets/DpProgressBar.stories-BSJKPymL.js +0 -26
- package/storybook-static/assets/DpRadio-9df2JDL9.js +0 -13
- package/storybook-static/assets/DpRadio-D2xw34qI.js +0 -2
- package/storybook-static/assets/DpRadio.stories-BE1cjwtP.js +0 -117
- package/storybook-static/assets/DpResettableInput-BPdfP0Ae.js +0 -8
- package/storybook-static/assets/DpResettableInput-nox0ihQv.js +0 -1
- package/storybook-static/assets/DpResettableInput.stories-Cq1mfxTz.js +0 -41
- package/storybook-static/assets/DpSearchField-CFqegLRV.js +0 -1
- package/storybook-static/assets/DpSearchField-f1Llye-2.js +0 -4
- package/storybook-static/assets/DpSearchField.stories-CdMKRXtW.js +0 -52
- package/storybook-static/assets/DpSelect-BzmpttTu.js +0 -1
- package/storybook-static/assets/DpSelect-J0BVjsqi.js +0 -11
- package/storybook-static/assets/DpSelect.stories-NpI9vCfo.js +0 -129
- package/storybook-static/assets/DpSkeletonBox-CDn0SzQb.js +0 -20
- package/storybook-static/assets/DpSkeletonBox-a5wBcRN-.js +0 -1
- package/storybook-static/assets/DpSkeletonBox.stories-Cb2yeXBb.js +0 -70
- package/storybook-static/assets/DpSlidebar-Bfb2VXSk.js +0 -21
- package/storybook-static/assets/DpSlidebar-DtAyUisB.js +0 -1
- package/storybook-static/assets/DpSlidebar.stories-DKSwFYzN.js +0 -23
- package/storybook-static/assets/DpSlidingPagination-BCXUgS46.js +0 -1
- package/storybook-static/assets/DpSlidingPagination-CfkT9VBg.js +0 -21
- package/storybook-static/assets/DpSlidingPagination.stories-DZ80NUNd.js +0 -35
- package/storybook-static/assets/DpSplitButton-Cft5u7Pe.js +0 -4
- package/storybook-static/assets/DpStickyElement-Biohssqu.js +0 -21
- package/storybook-static/assets/DpStickyElement-ClzY3p1-.js +0 -4
- package/storybook-static/assets/DpStickyElement.stories-RayTMlXk.js +0 -42
- package/storybook-static/assets/DpTabs-BGgWBJ_5.js +0 -23
- package/storybook-static/assets/DpTabs.stories-BNe9rHxl.js +0 -85
- package/storybook-static/assets/DpTextArea-BtrBIQP_.js +0 -49
- package/storybook-static/assets/DpTextArea-DoA63rHr.js +0 -2
- package/storybook-static/assets/DpTextArea.stories-c3BZqrsh.js +0 -155
- package/storybook-static/assets/DpTimePicker-9Qy_qVnW.js +0 -1
- package/storybook-static/assets/DpTimePicker-JnDQtvH1.js +0 -27
- package/storybook-static/assets/DpTimePicker.stories-CMqNipv8.js +0 -92
- package/storybook-static/assets/DpToggle-BNgSF54s.js +0 -10
- package/storybook-static/assets/DpToggle-BPqlzXQH.js +0 -1
- package/storybook-static/assets/DpToggle.stories-D3_9X7aB.js +0 -35
- package/storybook-static/assets/DpTooltip-BwmuQSat.js +0 -27
- package/storybook-static/assets/DpTooltip-D8SOODgR.js +0 -1
- package/storybook-static/assets/DpTooltip.stories-DbfOxsaF.js +0 -248
- package/storybook-static/assets/DpTransitionExpand-C4Amyfxp.js +0 -8
- package/storybook-static/assets/DpTransitionExpand.stories-DX9u7SiJ.js +0 -85
- package/storybook-static/assets/DpTreeList-C68TZVte.js +0 -78
- package/storybook-static/assets/DpTreeList-Cciwf3YU.js +0 -2
- package/storybook-static/assets/DpTreeList.stories-B_u3WNs8.js +0 -673
- package/storybook-static/assets/DpUploadFiles-BPYxTWYH.js +0 -26
- package/storybook-static/assets/DpUploadFiles.stories-CDCSsFQa.js +0 -154
- package/storybook-static/assets/DpVideoPlayer-CnldmoEy.js +0 -162
- package/storybook-static/assets/DpVideoPlayer-b-qaSsV5.css +0 -1
- package/storybook-static/assets/DpVideoPlayer-n_ANjh0q.js +0 -29
- package/storybook-static/assets/DpVideoPlayer.stories-BOR2SEz7.js +0 -294
- package/storybook-static/assets/Notice-FIynXtzj.js +0 -1
- package/storybook-static/assets/Stickier-DyqV0rTn.js +0 -1
- package/storybook-static/assets/Table-DSJ5DLHV.js +0 -1
- package/storybook-static/assets/Tooltip-DzpJJoBp.js +0 -25
- package/storybook-static/assets/Tooltip-flnpMaRO.js +0 -32
- package/storybook-static/assets/_commonjsHelpers-CE1G-McA.js +0 -1
- package/storybook-static/assets/_plugin-vue_export-helper-DlAUqK2U.js +0 -1
- package/storybook-static/assets/blocks-kyJuz3C5.js +0 -697
- package/storybook-static/assets/dayjs.min-C3DHb-Vr.js +0 -1
- package/storybook-static/assets/getScrollTop-CXy7CyEd.js +0 -1
- package/storybook-static/assets/hasOwnProp-B0vmwdLB.js +0 -1
- package/storybook-static/assets/helpers-CdC6mcQu.js +0 -1
- package/storybook-static/assets/iframe-DH2OFsM2.css +0 -1
- package/storybook-static/assets/iframe-KFxwsBtW.js +0 -1113
- package/storybook-static/assets/index-BbC7EF1e.js +0 -1
- package/storybook-static/assets/index-CTxdm8FW.js +0 -1
- package/storybook-static/assets/index-Ccl8MXhV.js +0 -79
- package/storybook-static/assets/lengthHint-zGawKYxB.js +0 -1
- package/storybook-static/assets/prefixClass-BBJiSKc2.js +0 -1
- package/storybook-static/assets/prefixClassMixin-FjEzRm2G.js +0 -1
- package/storybook-static/assets/tokens._overview-DfWYzL-L.js +0 -111
- package/storybook-static/assets/tokens.boxShadow-BRgz_5Oh.js +0 -64
- package/storybook-static/assets/tokens.breakpoints-V5SksMvF.js +0 -66
- package/storybook-static/assets/tokens.color-BpZbPjHk.js +0 -107
- package/storybook-static/assets/tokens.fontSize-rdG7vcZh.js +0 -51
- package/storybook-static/assets/tokens.rounded-CUE0q0vd.js +0 -55
- package/storybook-static/assets/tokens.space-B3MDHCbR.js +0 -48
- package/storybook-static/assets/tokens.zIndex-Be_fxSoV.js +0 -53
- package/storybook-static/assets/translations-DDOZrg-p.js +0 -1
- package/storybook-static/favicon.svg +0 -1
- package/storybook-static/iframe.html +0 -686
- package/storybook-static/index.html +0 -152
- package/storybook-static/index.json +0 -1
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +0 -1
- package/storybook-static/sb-addons/docs-2/manager-bundle.js +0 -151
- package/storybook-static/sb-addons/links-1/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -188
- package/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +0 -797
- package/storybook-static/sb-manager/globals-runtime.js +0 -69460
- package/storybook-static/sb-manager/globals.js +0 -34
- package/storybook-static/sb-manager/runtime.js +0 -13008
- package/vite.config.mjs +0 -44
- /package/{coverage/lcov.info → .idea/sonarlint/issuestore/0/2/0233f8559e74312ed5074ade1be1aea02e6e4f1e} +0 -0
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import{D as a}from"./DpConfirmDialog-CQYtFW-3.js";const s={component:a,title:"Components/ConfirmDialog",argTypes:{dataCy:{control:"text",description:"Data attribute for Cypress testing"},message:{control:"text",description:"Dialog message to display"},"modal:toggled":{action:"modal:toggled",description:"Event emitted when dialog is opened or closed"}}},e={args:{dataCy:"default",message:"Are you sure you want to proceed?"},render:o=>({components:{DpConfirmDialog:a},setup(){return{args:o}},template:`
|
|
2
|
-
<div>
|
|
3
|
-
<p class="mb-4">A confirm dialog component. In actual usage, you would call the <code>open()</code> method to show the dialog.</p>
|
|
4
|
-
<dp-confirm-dialog ref="dialog" v-bind="args" />
|
|
5
|
-
<button
|
|
6
|
-
class="px-4 py-2 bg-blue-500 text-white rounded"
|
|
7
|
-
@click="$refs.dialog.open().then(result => alert('Dialog result: ' + result))">
|
|
8
|
-
Open Dialog
|
|
9
|
-
</button>
|
|
10
|
-
</div>
|
|
11
|
-
`})},t={args:{dataCy:"custom",message:"This action cannot be undone. Are you absolutely sure you want to delete this item?"},render:o=>({components:{DpConfirmDialog:a},setup(){return{args:o}},template:`
|
|
12
|
-
<div>
|
|
13
|
-
<p class="mb-4">A confirm dialog with a custom message.</p>
|
|
14
|
-
<dp-confirm-dialog ref="dialog" v-bind="args" />
|
|
15
|
-
<button
|
|
16
|
-
class="px-4 py-2 bg-red-500 text-white rounded"
|
|
17
|
-
@click="$refs.dialog.open().then(result => alert('Dialog result: ' + result))">
|
|
18
|
-
Delete Item
|
|
19
|
-
</button>
|
|
20
|
-
</div>
|
|
21
|
-
`})};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
|
|
22
|
-
args: {
|
|
23
|
-
dataCy: 'default',
|
|
24
|
-
message: 'Are you sure you want to proceed?'
|
|
25
|
-
},
|
|
26
|
-
render: args => ({
|
|
27
|
-
components: {
|
|
28
|
-
DpConfirmDialog
|
|
29
|
-
},
|
|
30
|
-
setup() {
|
|
31
|
-
return {
|
|
32
|
-
args
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
template: \`
|
|
36
|
-
<div>
|
|
37
|
-
<p class="mb-4">A confirm dialog component. In actual usage, you would call the <code>open()</code> method to show the dialog.</p>
|
|
38
|
-
<dp-confirm-dialog ref="dialog" v-bind="args" />
|
|
39
|
-
<button
|
|
40
|
-
class="px-4 py-2 bg-blue-500 text-white rounded"
|
|
41
|
-
@click="$refs.dialog.open().then(result => alert('Dialog result: ' + result))">
|
|
42
|
-
Open Dialog
|
|
43
|
-
</button>
|
|
44
|
-
</div>
|
|
45
|
-
\`
|
|
46
|
-
})
|
|
47
|
-
}`,...e.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
|
|
48
|
-
args: {
|
|
49
|
-
dataCy: 'custom',
|
|
50
|
-
message: 'This action cannot be undone. Are you absolutely sure you want to delete this item?'
|
|
51
|
-
},
|
|
52
|
-
render: args => ({
|
|
53
|
-
components: {
|
|
54
|
-
DpConfirmDialog
|
|
55
|
-
},
|
|
56
|
-
setup() {
|
|
57
|
-
return {
|
|
58
|
-
args
|
|
59
|
-
};
|
|
60
|
-
},
|
|
61
|
-
template: \`
|
|
62
|
-
<div>
|
|
63
|
-
<p class="mb-4">A confirm dialog with a custom message.</p>
|
|
64
|
-
<dp-confirm-dialog ref="dialog" v-bind="args" />
|
|
65
|
-
<button
|
|
66
|
-
class="px-4 py-2 bg-red-500 text-white rounded"
|
|
67
|
-
@click="$refs.dialog.open().then(result => alert('Dialog result: ' + result))">
|
|
68
|
-
Delete Item
|
|
69
|
-
</button>
|
|
70
|
-
</div>
|
|
71
|
-
\`
|
|
72
|
-
})
|
|
73
|
-
}`,...t.parameters?.docs?.source}}};const r=["Default","CustomMessage"],n=Object.freeze(Object.defineProperty({__proto__:null,CustomMessage:t,Default:e,__namedExportsOrder:r,default:s},Symbol.toStringTag,{value:"Module"}));export{t as C,n as D,e as a};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{y as s,z as l,B as p,g as r,G as o,e as u,o as c}from"./iframe-KFxwsBtW.js";import{d}from"./translations-DDOZrg-p.js";import{S as f,_ as m}from"./DpIcon-dOAQoUKG.js";import"./CleanHtml-CeG3Pc5D.js";import{T as v}from"./Tooltip-flnpMaRO.js";const y=s({__name:"DpContextualHelp",props:{icon:{type:String,required:!1,default:"question"},size:{type:String,required:!1,default:"medium",validator:e=>Object.keys(f).includes(e)},text:{type:String,required:!1,default:""},tooltipOptions:{type:Object,required:!1,default:()=>({})}},setup(e){const t=e,i=v,n=d.contextualHelp,a=l(()=>Object.keys(t.tooltipOptions).length>0?t.tooltipOptions:t.text);return p(()=>{!t.text&&!t.tooltipOptions.content&&console.error('DpContextualHelp: No tooltip content provided. Add the "tooltipOptions.content" prop.')}),(g,h)=>r((c(),u(o(m),{"aria-label":o(n),icon:e.icon,size:e.size,class:"inline-block"},null,8,["aria-label","icon","size"])),[[o(i),a.value]])}});y.__docgenInfo={exportName:"default",displayName:"DpContextualHelp",description:"",tags:{},props:[{name:"icon",description:"The icon displayed as trigger for the tooltip.",type:{name:"IconName"},required:!1,defaultValue:{func:!1,value:"'question'"}},{name:"size",description:"The icon size. May be small, medium, or large.",type:{name:"IconSize"},required:!1,defaultValue:{func:!1,value:"'medium'"}},{name:"text",description:`A string representing the actual tooltip content. May include html.
|
|
2
|
-
If you want to pass additional options, use the 'tooltipOptions' prop instead
|
|
3
|
-
('tooltipOptions.content' for text)`,type:{name:"string"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"tooltipOptions",description:`For available options check https://floating-vue.starpad.dev/api/#directive-options
|
|
4
|
-
When using, pass text via the 'content' property instead of using the 'text' prop above`,type:{name:"object"},required:!1,defaultValue:{func:!1,value:"{}"}}],sourceFiles:["/home/florian/Dev/demosplan-ui/src/components/DpContextualHelp/DpContextualHelp.vue"]};export{y as _};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as t,M as a,C as e}from"./blocks-kyJuz3C5.js";import{useMDXComponents as s}from"./index-BbC7EF1e.js";import{D as r,a as c,C as h,b as p,T as l}from"./DpContextualHelp.stories-D5HWdQyH.js";import"./iframe-KFxwsBtW.js";import"./_commonjsHelpers-CE1G-McA.js";import"./DpContextualHelp-DnsCCoZB.js";import"./translations-DDOZrg-p.js";import"./DpIcon-dOAQoUKG.js";import"./CleanHtml-CeG3Pc5D.js";import"./Tooltip-flnpMaRO.js";function i(n){const o={h1:"h1",h2:"h2",p:"p",...s(),...n.components};return t.jsxs(t.Fragment,{children:[t.jsx(a,{of:r}),`
|
|
2
|
-
`,t.jsx(o.h1,{id:"contextual-help",children:"Contextual Help"}),`
|
|
3
|
-
`,t.jsx(o.p,{children:`The Contextual Help component renders an icon indicating contextual help,
|
|
4
|
-
which shows a tooltip able to handle text or HTML content.`}),`
|
|
5
|
-
`,t.jsx(o.h2,{id:"default-usage",children:"Default usage"}),`
|
|
6
|
-
`,t.jsx(e,{of:c}),`
|
|
7
|
-
`,t.jsx(o.h2,{id:"with-custom-icon",children:"With custom icon"}),`
|
|
8
|
-
`,t.jsx(e,{of:h}),`
|
|
9
|
-
`,t.jsx(o.h2,{id:"with-custom-size",children:"With custom size"}),`
|
|
10
|
-
`,t.jsx(e,{of:p}),`
|
|
11
|
-
`,t.jsx(o.h2,{id:"with-tooltip-options",children:"With tooltip options"}),`
|
|
12
|
-
`,t.jsx(e,{of:l})]})}function g(n={}){const{wrapper:o}={...s(),...n.components};return o?t.jsx(o,{...n,children:t.jsx(i,{...n})}):i(n)}export{g as default};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import{_ as r}from"./DpContextualHelp-DnsCCoZB.js";import{S as i}from"./DpIcon-dOAQoUKG.js";const a={component:r,title:"Components/ContextualHelp",argTypes:{icon:{control:"text",description:"The icon to display as trigger for the tooltip",defaultValue:"question"},size:{control:"select",options:Object.keys(i),description:"The size of the icon",defaultValue:"medium"},text:{control:"text",description:"The text content of the tooltip"},tooltipOptions:{control:"object",description:"Additional options for the tooltip, including content"}}},t={args:{text:"This is helpful contextual information for the user"}},o={args:{icon:"info",text:"This tooltip uses a different icon"}},e={args:{size:"large",text:"This tooltip has a larger icon"}},s={args:{tooltipOptions:{content:"This tooltip uses <strong>custom classes</strong> and styling with <em>HTML support</em>",classes:"z-modal"}},render:n=>({components:{DpContextualHelp:r},setup(){return{args:n}},template:`
|
|
2
|
-
<DpContextualHelp
|
|
3
|
-
:tooltipOptions="args.tooltipOptions"
|
|
4
|
-
:icon="args.icon || 'info'"
|
|
5
|
-
:size="args.size || 'medium'"
|
|
6
|
-
/>
|
|
7
|
-
`})};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
|
|
8
|
-
args: {
|
|
9
|
-
text: 'This is helpful contextual information for the user'
|
|
10
|
-
}
|
|
11
|
-
}`,...t.parameters?.docs?.source}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
|
|
12
|
-
args: {
|
|
13
|
-
icon: 'info',
|
|
14
|
-
text: 'This tooltip uses a different icon'
|
|
15
|
-
}
|
|
16
|
-
}`,...o.parameters?.docs?.source}}};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
|
|
17
|
-
args: {
|
|
18
|
-
size: 'large',
|
|
19
|
-
text: 'This tooltip has a larger icon'
|
|
20
|
-
}
|
|
21
|
-
}`,...e.parameters?.docs?.source}}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
|
|
22
|
-
args: {
|
|
23
|
-
tooltipOptions: {
|
|
24
|
-
content: 'This tooltip uses <strong>custom classes</strong> and styling with <em>HTML support</em>',
|
|
25
|
-
classes: 'z-modal'
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
render: args => ({
|
|
29
|
-
components: {
|
|
30
|
-
DpContextualHelp
|
|
31
|
-
},
|
|
32
|
-
setup() {
|
|
33
|
-
return {
|
|
34
|
-
args
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
template: \`
|
|
38
|
-
<DpContextualHelp
|
|
39
|
-
:tooltipOptions="args.tooltipOptions"
|
|
40
|
-
:icon="args.icon || 'info'"
|
|
41
|
-
:size="args.size || 'medium'"
|
|
42
|
-
/>
|
|
43
|
-
\`
|
|
44
|
-
})
|
|
45
|
-
}`,...s.parameters?.docs?.source}}};const p=["Default","CustomIcon","CustomSize","TooltipOptions"],u=Object.freeze(Object.defineProperty({__proto__:null,CustomIcon:o,CustomSize:e,Default:t,TooltipOptions:s,__namedExportsOrder:p,default:a},Symbol.toStringTag,{value:"Module"}));export{o as C,u as D,s as T,t as a,e as b};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{j as t,M as a,C as n}from"./blocks-kyJuz3C5.js";import{useMDXComponents as s}from"./index-BbC7EF1e.js";import{D as r,a as h,W as m,b as l,c as d,d as p}from"./DpDataTable.stories-BjXZnrni.js";import"./iframe-KFxwsBtW.js";import"./_commonjsHelpers-CE1G-McA.js";import"./DpDataTable-f7CVMPNi.js";import"./CleanHtml-CeG3Pc5D.js";import"./Tooltip-flnpMaRO.js";import"./translations-DDOZrg-p.js";import"./dayjs.min-C3DHb-Vr.js";import"./helpers-CdC6mcQu.js";import"./getScrollTop-CXy7CyEd.js";import"./prefixClass-BBJiSKc2.js";import"./DpDraggable-DLTo9Q5K.js";import"./DpLoading-rM7osZHK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./DpIcon-dOAQoUKG.js";import"./hasOwnProp-B0vmwdLB.js";function o(i){const e={h1:"h1",h2:"h2",p:"p",...s(),...i.components};return t.jsxs(t.Fragment,{children:[t.jsx(a,{of:r}),`
|
|
2
|
-
`,t.jsx(e.h1,{id:"data-table",children:"Data Table"}),`
|
|
3
|
-
`,t.jsx(e.p,{children:"Renders a tabular representation of data."}),`
|
|
4
|
-
`,t.jsx(e.h2,{id:"how-to-use",children:"How to use"}),`
|
|
5
|
-
`,t.jsx(e.p,{children:`The elements in the items array must have a key which matches a field in the header-fields array.
|
|
6
|
-
Each column is defined with a field key that should match properties in the data items.`}),`
|
|
7
|
-
`,t.jsx(e.h2,{id:"default-usage",children:"Default usage"}),`
|
|
8
|
-
`,t.jsx(n,{of:h}),`
|
|
9
|
-
`,t.jsx(e.h2,{id:"with-selection",children:"With selection"}),`
|
|
10
|
-
`,t.jsx(n,{of:m}),`
|
|
11
|
-
`,t.jsx(e.h2,{id:"with-flyout-menu",children:"With flyout menu"}),`
|
|
12
|
-
`,t.jsx(n,{of:l}),`
|
|
13
|
-
`,t.jsx(e.h2,{id:"with-expandable-rows",children:"With expandable rows"}),`
|
|
14
|
-
`,t.jsx(n,{of:d}),`
|
|
15
|
-
`,t.jsx(e.h2,{id:"with-custom-styling",children:"With custom styling"}),`
|
|
16
|
-
`,t.jsx(n,{of:p})]})}function k(i={}){const{wrapper:e}={...s(),...i.components};return e?t.jsx(e,{...i,children:t.jsx(o,{...i})}):o(i)}export{k as default};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{C as W,p as I}from"./CleanHtml-CeG3Pc5D.js";import"./Tooltip-flnpMaRO.js";import{d as h}from"./translations-DDOZrg-p.js";import"./dayjs.min-C3DHb-Vr.js";import"./helpers-CdC6mcQu.js";import{_ as X}from"./DpDraggable-DLTo9Q5K.js";import{D as Q}from"./DpLoading-rM7osZHK.js";import{_ as F}from"./DpIcon-dOAQoUKG.js";import{c as n,b as S,d as p,o as l,f as r,F as x,a as _,w as G,g as z,h as B,r as y,e as w,n as g,i as k,j as T,m as q,t as C,u as K,R as V,S as A,q as Y,Q as D,p as Z}from"./iframe-KFxwsBtW.js";import{_ as E}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{h as $}from"./hasOwnProp-B0vmwdLB.js";const L={methods:{updateSessionStorage(a,t){a&&sessionStorage.setItem(a,JSON.stringify(t))},getItemFromSessionStorage(a){if(a)return JSON.parse(sessionStorage.getItem(a))||null},removeFromSessionStorage(a){a&&sessionStorage.removeItem(a)},clearSessionStorage(){sessionStorage.clear()}}},N={name:"DpWrapTrigger",components:{DpIcon:F},props:{dataCy:{type:String,required:!1,default:"wrapTriggerIcon"},expanded:{type:Boolean,required:!1,default:!1}},computed:{ariaLabel(){return this.expanded?h.aria.collapse.element:h.aria.expand.element},icon(){return this.expanded?"caret-up":"caret-down"}}},ee=["data-cy"];function ae(a,t,e,o,d,s){const m=p("dp-icon");return l(),n("button",{class:"c-data-table__wrap-trigger o-link--default btn--blank","data-cy":e.dataCy!==""?e.dataCy:!1},[S(m,{"aria-hidden":"true","aria-label":s.ariaLabel,icon:s.icon,size:"small"},null,8,["aria-label","icon"])],8,ee)}const H=E(N,[["render",ae]]);N.__docgenInfo={displayName:"DpWrapTrigger",exportName:"default",description:"",tags:{},props:[{name:"dataCy",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'wrapTriggerIcon'"}},{name:"expanded",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}}],sourceFiles:["/home/florian/Dev/demosplan-ui/src/components/DpDataTable/DpWrapTrigger.vue"]};const M={name:"ResizeHandle",props:{displayIcon:{required:!1,type:Boolean,default:!0}}};function te(a,t,e,o,d,s){return l(),n("div",{class:"c-data-table__resize-handle",onMousedown:t[0]||(t[0]=G(m=>a.$emit("mousedown",m),["stop","prevent"]))},[e.displayIcon?(l(),n(x,{key:0},[t[1]||(t[1]=_("i",{class:"fa fa-angle-left resize-handle__icon","aria-hidden":"true"},null,-1)),t[2]||(t[2]=_("i",{class:"fa fa-angle-right resize-handle__icon","aria-hidden":"true"},null,-1))],64)):r("",!0)],32)}const le=E(M,[["render",te]]);M.__docgenInfo={displayName:"ResizeHandle",exportName:"default",description:"",tags:{},props:[{name:"displayIcon",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"true"}}],events:[{name:"mousedown"}],sourceFiles:["/home/florian/Dev/demosplan-ui/src/components/DpDataTable/DpResizeHandle.vue"]};const j={name:"DpResizableColumn",components:{DpResizeHandle:le},mixins:[L],props:{idx:{required:!0,type:Number},headerField:{type:Object,required:!0},isLast:{type:Boolean,required:!1,default:!1},nextHeader:{type:Object,required:!1,default:null}},data(){return{namedFunc:"",currentHandle:"",nextEl:"",cursorStart:0,dragStart:!1,resize:"",resizeWidth:"",nextWidth:""}},computed:{isResizableColumn(){return $(this.headerField,"resizeable")?this.headerField.resizeable:!0}},methods:{initResize(a,t){this.resize=this.$refs.resizableColumn,this.currentHandle=this.resize.getElementsByClassName("c-data-table__resize-handle")[0],this.currentHandle.classList.add("is-active"),this.nextEl=document.querySelector(`th[data-col-idx='${t+1}']`),this.dragStart=!0,this.cursorStart=a.pageX;const e=this.resize.getBoundingClientRect();this.resizeWidth=e.width,this.namedFunc=d=>this.resizeEl(d,t);const o=document.getElementsByTagName("body")[0];o.classList.add("resizing"),o.addEventListener("mousemove",this.namedFunc),o.addEventListener("mouseup",this.stopResize)},resizeEl(a){if(this.dragStart){const e=a.pageX-this.cursorStart,o=this.resizeWidth+e;if(o<=25)return;this.resize.style.width=o+"px",this.updateSessionStorage(`dpDataTable:data-col-field=${this.headerField.field}`,this.resize.style.width)}},stopResize(){this.currentHandle.classList.remove("is-active"),this.dragStart=!1,document.querySelector("body").removeEventListener("mousemove",this.namedFunc),document.querySelector("body").removeEventListener("mouseup",this.stopResize),document.querySelector("body").classList.remove("resizing")}}},se=["data-col-field","data-col-idx"];function ne(a,t,e,o,d,s){const m=p("dp-resize-handle"),f=B("tooltip");return z((l(),n("th",{ref:"resizableColumn",class:g(["c-data-table__resizable break-words",{"u-pr-0":e.isLast}]),"data-col-field":e.headerField.field,"data-col-idx":e.idx},[y(a.$slots,"default"),e.isLast?r("",!0):(l(),w(m,{key:0,"display-icon":s.isResizableColumn,onMousedown:t[0]||(t[0]=c=>s.initResize(c,e.idx))},null,8,["display-icon"]))],10,se)),[[f,e.headerField.tooltip||e.headerField.label]])}const ie=E(j,[["render",ne]]);j.__docgenInfo={exportName:"default",displayName:"DpResizableColumn",description:"",tags:{},props:[{name:"idx",type:{name:"number"},required:!0},{name:"headerField",type:{name:"object"},required:!0},{name:"isLast",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"nextHeader",type:{name:"object"},required:!1,defaultValue:{func:!1,value:"null"}}],slots:[{name:"default"}],sourceFiles:["/home/florian/Dev/demosplan-ui/src/components/DpDataTable/DpResizableColumn.vue","/home/florian/Dev/demosplan-ui/src/mixins/sessionStorageMixin.js"]};const P={name:"DpTableHeader",components:{DpIcon:F,DpResizableColumn:ie,DpWrapTrigger:H},props:{checked:{type:Boolean,required:!0},dataCy:{type:String,required:!1,default:""},hasFlyout:{type:Boolean,required:!0},headerFields:{type:Array,required:!0},indeterminate:{type:Boolean,required:!1,default:!1},isDraggable:{type:Boolean,required:!1,default:!1},isExpandable:{type:Boolean,required:!1,default:!1},isResizable:{type:Boolean,required:!1,default:!1},isSelectable:{type:Boolean,required:!0},isSticky:{type:Boolean,required:!1,default:!1},isTruncatable:{type:Boolean,required:!1,default:!1},translations:{type:Object,required:!0}},watch:{indeterminate(){this.setIndeterminate()}},methods:{setIndeterminate(){this.isSelectable&&(this.$refs.selectAll.indeterminate=this.indeterminate)},toggleExpandAll(){this.$emit("toggle-expand-all")},toggleSelectAll(){this.$emit("toggle-select-all")},toggleWrapAll(){this.$emit("toggle-wrap-all")}},beforeUpdate(){this.setIndeterminate()}},re=["data-cy"],de=["data-col-field"],oe=["data-col-field"],ce=["aria-label","title","checked"],ue=["textContent"],me=["textContent"],fe=["data-col-field"],he=["data-col-field"];function ge(a,t,e,o,d,s){const m=p("dp-icon"),f=p("dp-wrap-trigger");return l(),n("tr",{ref:"tableHeader","data-cy":e.dataCy!==""?e.dataCy:!1,class:g({"c-data-table__sticky-header":e.isSticky})},[e.isDraggable?(l(),n("th",{key:0,"data-col-field":e.isResizable?"dragHandle":null,scope:"col",class:"c-data-table__cell--narrow"},[S(m,{class:"c-data-table__drag-handle",icon:"drag-handle"})],8,de)):r("",!0),e.isSelectable?(l(),n("th",{key:1,"data-col-field":e.isResizable?"select":null,scope:"col",class:"c-data-table__cell--narrow"},[_("input",{ref:"selectAll","aria-label":e.translations.headerSelectHint,title:e.translations.headerSelectHint,type:"checkbox","data-cy":"selectAll",checked:e.checked,onClick:t[0]||(t[0]=c=>s.toggleSelectAll())},null,8,ce)],8,oe)):r("",!0),(l(!0),n(x,null,k(e.headerFields,(c,v)=>(l(),w(K(e.isResizable?"DpResizableColumn":"th"),{"is-last":e.headerFields.length===v?!0:null,"header-field":c,"next-header":e.headerFields[v+1],idx:v},{default:T(()=>[a.$slots[`header-${c.field}`]&&a.$slots[`header-${c.field}`](c)[0].children?.length>0?y(a.$slots,`header-${c.field}`,q({key:0,ref_for:!0},c),()=>[_("div",{class:g({"c-data-table__resizable--truncated":e.isTruncatable})},[c.label?(l(),n("span",{key:0,textContent:C(c.label)},null,8,ue)):r("",!0)],2)]):c.label?(l(),n("span",{key:1,textContent:C(c.label)},null,8,me)):r("",!0)]),_:2},1032,["is-last","header-field","next-header","idx"]))),256)),e.hasFlyout?(l(),n("th",{key:2,"data-col-field":e.isResizable?"flyout":null,scope:"col"},null,8,fe)):r("",!0),e.isExpandable?(l(),n("th",{key:3,scope:"col",class:"c-data-table__cell--narrow",onClick:t[1]||(t[1]=c=>s.toggleExpandAll())},[S(f,{"data-cy":"isExpandableWrapTrigger",title:e.translations.headerExpandHint},null,8,["title"])])):r("",!0),e.isTruncatable?(l(),n("th",{key:4,"data-col-field":e.isResizable?"wrap":null,scope:"col",class:"c-data-table__cell--narrow",onClick:t[2]||(t[2]=c=>s.toggleWrapAll())},[S(f,{"data-cy":"isTruncatableWrapTrigger",title:e.translations.headerExpandHint},null,8,["title"])],8,he)):r("",!0)],10,re)}const be=E(P,[["render",ge]]);P.__docgenInfo={displayName:"DpTableHeader",exportName:"default",description:"",tags:{},props:[{name:"checked",type:{name:"boolean"},required:!0},{name:"dataCy",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"hasFlyout",type:{name:"boolean"},required:!0},{name:"headerFields",type:{name:"array"},required:!0},{name:"indeterminate",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isDraggable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isExpandable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isResizable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isSelectable",type:{name:"boolean"},required:!0},{name:"isSticky",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isTruncatable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"translations",type:{name:"object"},required:!0}],events:[{name:"toggle-expand-all"},{name:"toggle-select-all"},{name:"toggle-wrap-all"}],slots:[{name:"`header-${hf.field}`",scoped:!0,bindings:[{name:"name",title:"binding"}]}],sourceFiles:["/home/florian/Dev/demosplan-ui/src/components/DpDataTable/DpTableHeader.vue"]};const O={name:"DpTableRow",components:{DpIcon:F,DpWrapTrigger:H},directives:{cleanhtml:W},props:{checked:{type:Boolean,required:!0},dataCy:{type:String,required:!1,default:""},expanded:{type:Boolean,required:!1,default:!1},hasFlyout:{type:Boolean,required:!0},headerFields:{type:Array,required:!0},fields:{type:Array,required:!0},item:{type:Object,required:!0},isDraggable:{type:Boolean,required:!1,default:!1},isExpandable:{type:Boolean,required:!1,default:!1},isLoading:{type:Boolean,required:!1,default:!1},isLocked:{type:Boolean,required:!1,default:!1},isLockedMessage:{type:String,required:!1,default:null},isResizable:{type:Boolean,required:!1,default:!1},isSelectable:{type:Boolean,required:!0},isSelectableName:{type:String,required:!1,default:null},isTruncatable:{type:Boolean,required:!1,default:!1},searchTerm:{type:RegExp,required:!0},trackBy:{type:String,required:!0},wrapped:{type:Boolean,required:!1,default:!1}},data(){return{translations:{ariaCollapse:h.aria.collapse.element,ariaExpand:h.aria.expand.element}}},computed:{highlighted(){return a=>{let t=this.item[a];return this.searchTerm===""?t:(t=I.sanitize(t),t.replace(this.searchTerm,'<span style="background-color: yellow;">$&</span>'))}},elementStyle(){return a=>{const t=this.headerFields.find(o=>o.field===a);let e="";return!this.wrapped&&typeof t.initialWidth<"u"&&(e+=`width: ${t.initialWidth}px;`),!this.wrapped&&typeof t.initialMaxWidth<"u"&&(e+=`max-width: ${t.initialMaxWidth}px;`),!this.wrapped&&typeof t.initialMinWidth<"u"&&(e+=`min-width: ${t.initialMinWidth}px;`),e}}},methods:{toggleSelect(a){this.$emit("toggle-select",a)},toggleWrap(a){this.$emit("toggle-wrap",a)},toggleExpand(a){this.$emit("toggle-expand",a)}}},ye=["data-cy"],pe={key:0,class:"c-data-table__cell--narrow"},_e={key:1,class:"c-data-table__cell--narrow"},Se=["name","value","checked"],ke=["data-col-idx"],xe={key:1},ve={key:2,class:"overflow-visible min-w-[50px]"},Te=["title"],qe=["title"];function we(a,t,e,o,d,s){const m=p("dp-icon"),f=p("dp-wrap-trigger"),c=B("tooltip"),v=B("cleanhtml");return l(),n("tr",{class:g(["row",[{"opacity-70":e.isLoading},{"is-expanded-row":e.expanded}]]),"data-cy":e.dataCy!==""?e.dataCy:!1},[e.isDraggable?(l(),n("td",pe,[S(m,{icon:"drag-handle",class:"c-data-table__drag-handle"})])):r("",!0),e.isSelectable?(l(),n("td",_e,[e.isLocked?z((l(),w(m,{key:0,class:"align-middle color--grey-light",icon:"lock"},null,512)),[[c,e.isLockedMessage]]):(l(),n("input",{key:1,type:"checkbox",class:"u-m-0 align-middle","data-cy":"selectItem",name:e.isSelectableName||null,value:e.isSelectableName?e.item[e.trackBy]:null,checked:e.checked,onClick:t[0]||(t[0]=i=>s.toggleSelect(e.item[e.trackBy]))},null,8,Se))])):r("",!0),(l(!0),n(x,null,k(e.fields,(i,u)=>(l(),n("td",{key:`${i}:${u}`,class:g([{"c-data-table__resizable":e.isTruncatable},{"break-words":e.isResizable}]),"data-col-idx":`${u}`},[_("div",{class:g([e.isTruncatable??"break-words",e.isTruncatable?e.wrapped?"c-data-table__resizable--wrapped":"c-data-table__resizable--truncated":""]),style:Y(e.isTruncatable??s.elementStyle(i))},[a.$slots[i](e.item)[0].children.length>0?y(a.$slots,i,q({key:0,ref_for:!0},e.item)):z((l(),n("span",xe,null,512)),[[v,s.highlighted(i)]])],6)],10,ke))),128)),e.hasFlyout?(l(),n("td",ve,[y(a.$slots,"flyout",V(A(e.item)))])):r("",!0),e.isExpandable?(l(),n("td",{key:3,class:g(["c-data-table__cell--narrow overflow-hidden min-w-[50px]",{"is-open":e.expanded}]),title:e.expanded?d.translations.ariaCollapse:d.translations.ariaExpand,onClick:t[1]||(t[1]=i=>s.toggleExpand(e.item[e.trackBy]))},[S(f,{"data-cy":`isExpandableWrapTrigger:${a.$attrs.index}`,expanded:e.expanded},null,8,["data-cy","expanded"])],10,Te)):r("",!0),e.isTruncatable?(l(),n("td",{key:4,class:g(["c-data-table__cell--narrow overflow-hidden min-w-[50px]",{"is-open":e.wrapped}]),title:e.wrapped?d.translations.ariaCollapse:d.translations.ariaExpand,onClick:t[2]||(t[2]=i=>s.toggleWrap(e.item[e.trackBy]))},[S(f,{"data-cy":`isTruncatableWrapTrigger:${a.$attrs.index}`,expanded:e.wrapped},null,8,["data-cy","expanded"])],10,qe)):r("",!0)],10,ye)}const Ee=E(O,[["render",we]]);O.__docgenInfo={displayName:"DpTableRow",exportName:"default",description:"",tags:{},props:[{name:"checked",type:{name:"boolean"},required:!0},{name:"dataCy",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"expanded",description:"Is the expandable content currently expanded?",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"hasFlyout",type:{name:"boolean"},required:!0},{name:"headerFields",description:"The header of every column of the table is defined here.\n\nEach column is represented by an object with a `field` key whose value should match\na key of the objects inside `items`. The `label` key controls the header of the column.\nThe header can also have a tooltip. To define the width the column is initially\nrendered with when `isResizable` is used, the key `initialWidth` takes a px value.",type:{name:"array"},required:!0},{name:"fields",type:{name:"array"},required:!0},{name:"item",type:{name:"object"},required:!0},{name:"isDraggable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isExpandable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isLoading",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isLocked",description:"The item can be locked for selection. Instead of the checkbox, a lock icon is rendered with a tooltip.",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isLockedMessage",description:"If an item is locked for selection, the message to be shown inside the tooltip can be set here.",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"isResizable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isSelectable",type:{name:"boolean"},required:!0},{name:"isSelectableName",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"isTruncatable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"searchTerm",type:{name:"RegExp"},required:!0},{name:"trackBy",type:{name:"string"},required:!0},{name:"wrapped",description:"Is the truncatable content currently truncated?\nRename to `notTruncated`?",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}}],events:[{name:"toggle-select",type:{names:["undefined"]}},{name:"toggle-wrap",type:{names:["undefined"]}},{name:"toggle-expand",type:{names:["undefined"]}}],slots:[{name:"field",scoped:!0,bindings:[{name:"name",title:"binding"}]},{name:"flyout",scoped:!0,bindings:[]}],sourceFiles:["/home/florian/Dev/demosplan-ui/src/components/DpDataTable/DpTableRow.vue"]};const U={name:"DpDataTable",components:{DpTableRow:Ee,DpTableHeader:be,DpLoading:Q,DpDraggable:X},directives:{cleanhtml:W},mixins:[L],props:{dataCy:{type:String,required:!1,default:"dateTable"},hasFlyout:{type:Boolean,required:!1,default:!1},hasStickyHeader:{type:Boolean,required:!1,default:!1},headerFields:{type:Array,required:!0},initSelectedItems:{type:Array,required:!1,default:()=>[]},isDraggable:{type:Boolean,required:!1,default:!1},isExpandable:{type:Boolean,required:!1,default:!1},isLoading:{type:Boolean,required:!1,default:!1},isResizable:{type:Boolean,required:!1,default:!1},isSelectable:{type:Boolean,required:!1,default:!1},isSelectableName:{type:String,required:!1,default:null},isTruncatable:{type:Boolean,required:!1,default:!1},items:{type:Array,required:!0},multiPageAllSelected:{type:Boolean,required:!1,default:!1},lockCheckboxBy:{type:String,required:!1,default:null},multiPageSelectionItemsToggled:{type:Number,required:!1,default:0},multiPageSelectionItemsTotal:{type:Number,required:!1,default:0},searchString:{type:[String,null],required:!1,default:null},shouldBeSelectedItems:{type:Object,required:!1,default:()=>({})},tableClass:{type:String,required:!1,default:"c-data-table"},tableDescription:{type:String,required:!1,default:""},trackBy:{type:String,required:!0},translations:{type:Object,required:!1,default:()=>({})}},emits:["changed-order","items-selected","items-toggled","selectAll"],data(){return{allExpanded:!1,allWrapped:!1,currentItems:[],defaultTranslations:{footerSelectedElement:h.entrySelected,footerSelectedElements:h.entriesSelected,headerExpandHint:h.expandAll,headerSelectHint:h.operations.select.all,lockedForSelection:h.item.lockedForSelection,searchNoResults:a=>h.search.noResults({searchTerm:a}),tableLoadingData:h.loadingData,tableNoElements:h.noEntriesAvailable},elementSelections:{},expandedElements:{},headerCellCount:0,mergedTranslations:{},selectedElements:[],tableEl:void 0,tableProps:[this.isDraggable,this.isSelectable,this.hasFlyout,this.isExpandable,this.isTruncatable],wrappedElements:{}}},computed:{allSelected(){return this.multiPageSelectionItemsTotal>0?this.multiPageSelectionItemsToggled===this.multiPageSelectionItemsTotal||this.multiPageAllSelected:this.items.filter(a=>this.elementSelections[a[this.trackBy]]).length===this.selectableItems.length},colCount(){let a=0;return this.tableProps.map(t=>{a+=t?1:0}),this.headerCellCount+a},fields(){return this.headerFields.map(a=>a.field)},headerTranslations(){return this.extractTranslations(["headerSelectHint"])},indeterminate(){if(this.isSelectable!==!1)return this.multiPageSelectionItemsTotal>0?this.multiPageSelectionItemsToggled>0&&!this.allSelected:this.selectedElements.length>0&&!this.allSelected},noResults(){return this.mergedTranslations.searchNoResults(I.sanitize('"'+this.searchString+'"'))},searchTerm(){if(this.searchString===null||this.searchString.length<1)return new RegExp;const a=this.escapeSpecialCharacters(this.searchString);return new RegExp(a,"ig")},searchTermSet(){return this.searchTerm.source!=="(?:)"},selectableItems(){return this.lockCheckboxBy?this.items.filter(a=>!a[this.lockCheckboxBy]):this.items}},watch:{headerFields:{handler(){this.isResizable&&this.$nextTick(()=>{const a=this.tableEl.getElementsByTagName("tr")[0],t=a?a.children:null;this.setColsWidth(t)})},deep:!1},shouldBeSelectedItems(){this.forceElementSelections(this.shouldBeSelectedItems)}},methods:{addHoveredClass(a){return this.$refs[`tableRows[${a}]`][0].$el.classList.add("is-hovered-content")},escapeSpecialCharacters(a){return a.replace(/(\s)/g," ").replace(/([+])/g,"\\$&")},extractTranslations(a){return a.reduce((t,e)=>{const o=this.mergedTranslations[e]?{[e]:this.mergedTranslations[e]}:{};return{...t,...o}},{})},filterElementSelections(){return Object.entries(this.elementSelections).filter(a=>a[1]).map(a=>a[0])},forceElementSelections(a){this.elementSelections=a,this.selectedElements=this.filterElementSelections()},getColWidthFromHeaderField(a){const t=this.headerFields.find(e=>e.field===a);return t&&t.colWidth?t.colWidth:null},getFixedColWidth(a){return["flyout","wrap","select","dragHandle"].includes(a)?"30px":null},removeHoveredClass(a){return this.$refs[`tableRows[${a}]`][0].$el.classList.remove("is-hovered-content")},resetSelection(){this.toggleSelectAll(!1)},setColsWidth(a){Array.from(a).forEach(t=>{if(t.nodeType===1){const e=t.getAttribute("data-col-field"),o=`dpDataTable:data-col-field=${e}`,d=this.getItemFromSessionStorage(o),s=this.getFixedColWidth(e),m=this.getColWidthFromHeaderField(e),f=s||d||m||`${t.getBoundingClientRect().width}px`;t.style.width=f,this.updateSessionStorage(o,f)}})},setElementSelections(a,t){return a.reduce((e,o)=>({...e,[o[this.trackBy]]:t}),this.elementSelections)},toggleExpand(a){this.expandedElements={...this.expandedElements,[a]:!this.expandedElements[a]}},toggleExpandAll(a=this.allExpanded===!1){this.expandedElements=this.items.reduce((t,e)=>({...t,[e[this.trackBy]]:a}),{}),this.allExpanded=a},toggleSelect(a){this.elementSelections={...this.elementSelections,[a]:!this.elementSelections[a]},this.selectedElements=this.filterElementSelections(),this.$emit("items-selected",this.selectedElements),this.$emit("items-toggled",[{id:a}],this.elementSelections[a])},toggleSelectAll(a=this.allSelected===!1){this.elementSelections=this.setElementSelections(this.selectableItems,a),this.selectedElements=this.filterElementSelections(),this.$emit("items-selected",this.selectedElements),this.$emit("items-toggled",this.selectableItems.map(t=>({id:t[this.trackBy]})),a),this.$emit("selectAll",a)},toggleWrap(a){this.wrappedElements={...this.wrappedElements,[a]:!this.wrappedElements[a]}},toggleWrapAll(a=this.allWrapped===!1){this.wrappedElements=this.items.reduce((t,e)=>({...t,[e[this.trackBy]]:a}),{}),this.allWrapped=a}},created(){this.elementSelections=this.setElementSelections(this.initSelectedItems,!0);let a={...this.translations};const t=this.translations.searchNoResults?{searchNoResults:()=>this.translations.searchNoResults}:{};a={...a,...t},this.mergedTranslations={...this.defaultTranslations,...a}},beforeUpdate(){this.headerCellCount=this.headerFields.length},mounted(){if(this.tableEl=this.$refs.tableEl,this.isResizable||this.isTruncatable){const a=this.tableEl.getElementsByTagName("tr")[0],t=a?a.children:null;this.setColsWidth(t),this.tableEl.style.tableLayout="fixed",this.tableEl.classList.add("is-fixed"),this.isResizable&&Array.from(t).forEach(e=>{e.firstChild&&e.firstChild.nodeType===1&&(e.firstChild.style.width=null,e.firstChild.style.maxWidth=null,e.firstChild.style.minWidth=null)})}this.isExpandable&&this.isTruncatable&&console.error("`isExpandable` and `isTruncatable` should not be activated at the same time when using DpDataTable."),this.forceElementSelections(this.shouldBeSelectedItems),this.headerCellCount=this.headerFields.length}},Ce=["data-cy"],De=["textContent"],ze={key:0},Be={key:0},Fe={key:1},Re={key:2},We={key:3},Ie={key:4},Ve=["data-cy"],Ae=["colspan","onMouseenter","onMouseleave"],Le={key:3},Ne=["colspan","innerHTML"],He=["colspan"];function Me(a,t,e,o,d,s){const m=p("dp-table-header"),f=p("dp-table-row"),c=p("dp-draggable"),v=p("dp-loading");return l(),n("div",null,[_("table",{ref:"tableEl","data-cy":`${e.dataCy}:table`,class:g(e.tableClass)},[_("caption",{class:"sr-only",textContent:C(e.tableDescription)},null,8,De),e.headerFields.filter(i=>i.colClass).length>0?(l(),n("colgroup",ze,[e.isDraggable?(l(),n("col",Be)):r("",!0),e.isSelectable?(l(),n("col",Fe)):r("",!0),(l(!0),n(x,null,k(e.headerFields,i=>(l(),n("col",{class:g(i.colClass)},null,2))),256)),e.hasFlyout?(l(),n("col",Re)):r("",!0),e.isExpandable?(l(),n("col",We)):r("",!0),e.isTruncatable?(l(),n("col",Ie)):r("",!0)])):r("",!0),_("thead",null,[S(m,{"data-cy":`${e.dataCy}:header`,checked:s.allSelected,"has-flyout":e.hasFlyout,"header-fields":e.headerFields,indeterminate:s.indeterminate,"is-draggable":e.isDraggable,"is-expandable":e.isExpandable,"is-resizable":e.isResizable,"is-selectable":e.isSelectable,"is-sticky":e.hasStickyHeader,"is-truncatable":e.isTruncatable,translations:s.headerTranslations,onToggleExpandAll:s.toggleExpandAll,onToggleSelectAll:s.toggleSelectAll,onToggleWrapAll:s.toggleWrapAll},D({_:2},[k(e.headerFields,i=>({name:`header-${i.field}`,fn:T(u=>[y(a.$slots,`header-${u.field}`,V(A(u)))])}))]),1032,["data-cy","checked","has-flyout","header-fields","indeterminate","is-draggable","is-expandable","is-resizable","is-selectable","is-sticky","is-truncatable","translations","onToggleExpandAll","onToggleSelectAll","onToggleWrapAll"])]),!e.isDraggable&&!e.isLoading?(l(),n("tbody",{key:1,"data-cy":`${e.dataCy}:tbody`},[(l(!0),n(x,null,k(e.items,(i,u)=>(l(),n(x,null,[S(f,{ref_for:!0,ref:`tableRows[${u}]`,"data-cy":`${e.dataCy}:row:${u}`,index:u,checked:d.elementSelections[i[e.trackBy]]||!1,fields:s.fields,"has-flyout":e.hasFlyout,"header-fields":e.headerFields,"is-draggable":e.isDraggable,"is-expandable":e.isExpandable,"is-locked":e.lockCheckboxBy?i[e.lockCheckboxBy]:!1,"is-locked-message":d.mergedTranslations.lockedForSelection,"is-resizable":e.isResizable,"is-selectable":e.isSelectable,"is-selectable-name":e.isSelectableName,"is-truncatable":e.isTruncatable,item:i,"search-term":s.searchTerm,"track-by":e.trackBy,wrapped:d.wrappedElements[i[e.trackBy]]||!1,onToggleExpand:s.toggleExpand,onToggleSelect:s.toggleSelect,onToggleWrap:s.toggleWrap},D({flyout:T(b=>[y(a.$slots,"flyout",q({ref_for:!0},b))]),_:2},[k(s.fields,b=>({name:b,fn:T(R=>[y(a.$slots,b,q({ref_for:!0},R))])}))]),1032,["data-cy","index","checked","fields","has-flyout","header-fields","is-draggable","is-expandable","is-locked","is-locked-message","is-resizable","is-selectable","is-selectable-name","is-truncatable","item","search-term","track-by","wrapped","onToggleExpand","onToggleSelect","onToggleWrap"]),d.expandedElements[i[e.trackBy]]?(l(),n("tr",{key:0,class:g({"is-expanded-content":d.expandedElements[i[e.trackBy]]})},[_("td",{class:g({"opacity-70":e.isLoading}),colspan:s.colCount,onMouseenter:b=>s.addHoveredClass(u),onMouseleave:b=>s.removeHoveredClass(u)},[y(a.$slots,"expandedContent",q({ref_for:!0},i))],42,Ae)],2)):r("",!0)],64))),256))],8,Ve)):r("",!0),e.isDraggable&&!e.isLoading?(l(),w(c,{key:2,"draggable-tag":"tbody","content-data":e.items,handle:"c-data-table__drag-handle","ghost-class":"sortable-ghost","chosen-class":"sortable-chosen",onEnd:t[0]||(t[0]=(i,u)=>a.$emit("changed-order",i,u))},{default:T(()=>[(l(!0),n(x,null,k(e.items,(i,u)=>(l(),w(f,{key:i[e.trackBy],checked:d.elementSelections[i[e.trackBy]]||!1,expanded:d.expandedElements[i[e.trackBy]]||!1,fields:s.fields,"has-flyout":e.hasFlyout,"header-fields":e.headerFields,index:u,"is-draggable":e.isDraggable,"is-expandable":e.isExpandable,"is-loading":e.isLoading,"is-locked":e.lockCheckboxBy?i[e.lockCheckboxBy]:!1,"is-locked-message":d.mergedTranslations.lockedForSelection,"is-resizable":e.isResizable,"is-selectable":e.isSelectable,"is-selectable-name":e.isSelectableName,"is-truncatable":e.isTruncatable,item:i,"search-term":s.searchTerm,"track-by":e.trackBy,wrapped:d.wrappedElements[i[e.trackBy]]||!1,onToggleExpand:s.toggleExpand,onToggleSelect:s.toggleSelect,onToggleWrap:s.toggleWrap},D({flyout:T(b=>[y(a.$slots,"flyout",q({ref_for:!0},b))]),_:2},[k(s.fields,(b,R)=>({name:b,fn:T(J=>[y(a.$slots,b,q({ref_for:!0},J))])}))]),1032,["checked","expanded","fields","has-flyout","header-fields","index","is-draggable","is-expandable","is-loading","is-locked","is-locked-message","is-resizable","is-selectable","is-selectable-name","is-truncatable","item","search-term","track-by","wrapped","onToggleExpand","onToggleSelect","onToggleWrap"]))),128))]),_:3},8,["content-data"])):r("",!0),e.items.length===0?(l(),n("tr",Le,[s.searchTermSet?(l(),n("td",{key:0,colspan:s.colCount,class:"u-pt",innerHTML:s.noResults},null,8,Ne)):(l(),n("td",{key:1,colspan:s.colCount,class:"u-pt"},[e.isLoading?(l(),w(v,{key:0,"is-loading":"",class:"u-mt",colspan:s.colCount},null,8,["colspan"])):(l(),n(x,{key:1},[Z(C(d.mergedTranslations.tableNoElements),1)],64))],8,He))])):r("",!0)],10,Ce)])}const $e=E(U,[["render",Me]]);U.__docgenInfo={exportName:"default",displayName:"DpDataTable",description:"",tags:{},props:[{name:"dataCy",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'dateTable'"}},{name:"hasFlyout",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"hasStickyHeader",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"headerFields",description:"The header of every column of the table is defined here.\n\nEach column is represented by an object with a `field` key whose value should match\na key of the objects inside `items`. The `label` key controls the header of the column.\nThe header can also have a tooltip. To define the width the column is initially rendered with\nwhen `isResizable` is used, the keys `initialWidth`, `initialMaxWidth` and `initialMinWidth` take a px value.",type:{name:"array"},required:!0},{name:"initSelectedItems",type:{name:"array"},required:!1,defaultValue:{func:!1,value:"[]"}},{name:"isDraggable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isExpandable",description:"Rows may be expandable to show additional content inside another row.\nThe `#expandedContent` slot can be utilized to style the content area.",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isLoading",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isResizable",description:"Make table columns resizable.",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isSelectable",description:"Display a checkbox in front of each row.",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isSelectableName",description:'If specified, the checkbox will have a "name" attr with this value, and a value of [trackBy].',type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"isTruncatable",description:`Make table rows truncatable.
|
|
2
|
-
Cell content is truncated after 1 line, but expandable to its original size.
|
|
3
|
-
To make this work, no custom css must be applied to the cells that hold the
|
|
4
|
-
content to be truncated.
|
|
5
|
-
At the moment, \`isTruncatable\` and \`isExpandable\` use the same icon as trigger visual.
|
|
6
|
-
See https://yaits.demos-deutschland.de/T11301#413638 for possible advancement.`,type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"items",type:{name:"array"},required:!0},{name:"multiPageAllSelected",description:`When selection on multiple pages is supported, this variable forces the "Check all" checkbox into a "checked"
|
|
7
|
-
state, because instead of passing all checked items into here (which we can't in multi-page-selection suzenario),
|
|
8
|
-
we just pass the info "all items are selected".`,type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"lockCheckboxBy",description:"Use a Boolean Property of the Item to set the Checkbox to a locked state.\nThis should only be set if `isSelectable` is true.",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"multiPageSelectionItemsToggled",description:`When selection on multiple pages is supported, this variable holds number of items currently toggled.
|
|
9
|
-
It is used for calculating indeterminate state of the "check all" checkbox.`,type:{name:"number"},required:!1,defaultValue:{func:!1,value:"0"}},{name:"multiPageSelectionItemsTotal",description:`When selection on multiple pages is supported, this variable holds the absolute number of items available.
|
|
10
|
-
It is used for calculating indeterminate state of the "check all" checkbox.`,type:{name:"number"},required:!1,defaultValue:{func:!1,value:"0"}},{name:"searchString",type:{name:"string|null"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"shouldBeSelectedItems",type:{name:"object"},required:!1,defaultValue:{func:!1,value:"{}"}},{name:"tableClass",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'c-data-table'"}},{name:"tableDescription",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"trackBy",type:{name:"string"},required:!0},{name:"translations",type:{name:"object"},required:!1,defaultValue:{func:!1,value:"{}"}}],events:[{name:"changed-order"},{name:"items-selected",type:{names:["undefined"]}},{name:"items-toggled",type:{names:["undefined"]},properties:[{type:{names:["undefined"]},name:"<anonymous1>"}]},{name:"selectAll",type:{names:["undefined"]}}],slots:[{name:"`header-${field.field}`",scoped:!0,bindings:[{name:"name",title:"binding"}]},{name:"field",scoped:!0,bindings:[{name:"name",title:"binding"}]},{name:"flyout",scoped:!0,bindings:[]},{name:"expandedContent",scoped:!0,bindings:[]}],sourceFiles:["/home/florian/Dev/demosplan-ui/src/components/DpDataTable/DpDataTable.vue","/home/florian/Dev/demosplan-ui/src/mixins/sessionStorageMixin.js"]};export{$e as D,L as s};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import{D as r}from"./DpDataTable-f7CVMPNi.js";const d={component:r,title:"Components/DataTable",argTypes:{headerFields:{control:"object",description:"Array of column header definitions with field, label and optional styling"},items:{control:"object",description:"Array of data objects to display in the table"},trackBy:{control:"text",description:"Property name to use as unique identifier for each item"},hasFlyout:{control:"boolean",description:"Whether to display a flyout menu for each row"},hasStickyHeader:{control:"boolean",description:"Whether to make the table header sticky during scrolling"},isExpandable:{control:"boolean",description:"Whether rows can be expanded to show additional content"},isSelectable:{control:"boolean",description:"Whether to display checkboxes for selecting rows"},tableClass:{control:"text",description:"Custom CSS class for the table element"},"items-selected":{action:"items-selected",description:"Event emitted when items are selected"},selectAll:{action:"selectAll",description:"Event emitted when all items are selected or deselected"}}},o=[{colClass:"u-1-of-2",field:"name",label:"Name"},{colClass:"u-1-of-2",field:"count",label:"Count"}],l=[{id:"item1",name:"Item 1",count:"99"},{id:"item2",name:"Item 2",count:"60"},{id:"item3",name:"Item 3",count:"100"}],e={args:{headerFields:o,items:l,trackBy:"id"}},t={args:{headerFields:o,items:l,trackBy:"id",isSelectable:!0}},a={args:{headerFields:o,items:l,trackBy:"id",hasFlyout:!0},render:i=>({components:{DpDataTable:r},setup(){return{args:i}},template:`
|
|
2
|
-
<dp-data-table v-bind="args">
|
|
3
|
-
<template #flyout="item">
|
|
4
|
-
<div class="p-2">
|
|
5
|
-
<button class="mb-1 block">Edit</button>
|
|
6
|
-
<button class="mb-1 block">Delete</button>
|
|
7
|
-
<button class="block">Details</button>
|
|
8
|
-
</div>
|
|
9
|
-
</template>
|
|
10
|
-
</dp-data-table>
|
|
11
|
-
`})},s={args:{headerFields:o,items:l,trackBy:"id",isExpandable:!0},render:i=>({components:{DpDataTable:r},setup(){return{args:i}},template:`
|
|
12
|
-
<dp-data-table v-bind="args">
|
|
13
|
-
<template #expandedContent="item">
|
|
14
|
-
<div class="p-4">
|
|
15
|
-
<h3 class="text-lg font-bold mb-2">Expanded details for {{ item.name }}</h3>
|
|
16
|
-
<p>This is additional information that is shown when the row is expanded.</p>
|
|
17
|
-
<p>ID: {{ item.id }}</p>
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
</dp-data-table>
|
|
21
|
-
`})},n={args:{headerFields:[{field:"name",label:"Name",tooltip:"Full name of the item"},{field:"count",label:"Count"},{field:"status",label:"Status"}],items:[{id:"item1",name:"Item 1",count:"99",status:"Active"},{id:"item2",name:"Item 2",count:"60",status:"Inactive"},{id:"item3",name:"Item 3",count:"100",status:"Pending"}],trackBy:"id",tableClass:"c-data-table border-collapse",hasStickyHeader:!0}};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
|
|
22
|
-
args: {
|
|
23
|
-
headerFields: defaultHeaderFields,
|
|
24
|
-
items: defaultItems,
|
|
25
|
-
trackBy: 'id'
|
|
26
|
-
}
|
|
27
|
-
}`,...e.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
|
|
28
|
-
args: {
|
|
29
|
-
headerFields: defaultHeaderFields,
|
|
30
|
-
items: defaultItems,
|
|
31
|
-
trackBy: 'id',
|
|
32
|
-
isSelectable: true
|
|
33
|
-
}
|
|
34
|
-
}`,...t.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
|
|
35
|
-
args: {
|
|
36
|
-
headerFields: defaultHeaderFields,
|
|
37
|
-
items: defaultItems,
|
|
38
|
-
trackBy: 'id',
|
|
39
|
-
hasFlyout: true
|
|
40
|
-
},
|
|
41
|
-
render: args => ({
|
|
42
|
-
components: {
|
|
43
|
-
DpDataTable
|
|
44
|
-
},
|
|
45
|
-
setup() {
|
|
46
|
-
return {
|
|
47
|
-
args
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
|
-
template: \`
|
|
51
|
-
<dp-data-table v-bind="args">
|
|
52
|
-
<template #flyout="item">
|
|
53
|
-
<div class="p-2">
|
|
54
|
-
<button class="mb-1 block">Edit</button>
|
|
55
|
-
<button class="mb-1 block">Delete</button>
|
|
56
|
-
<button class="block">Details</button>
|
|
57
|
-
</div>
|
|
58
|
-
</template>
|
|
59
|
-
</dp-data-table>
|
|
60
|
-
\`
|
|
61
|
-
})
|
|
62
|
-
}`,...a.parameters?.docs?.source}}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
|
|
63
|
-
args: {
|
|
64
|
-
headerFields: defaultHeaderFields,
|
|
65
|
-
items: defaultItems,
|
|
66
|
-
trackBy: 'id',
|
|
67
|
-
isExpandable: true
|
|
68
|
-
},
|
|
69
|
-
render: args => ({
|
|
70
|
-
components: {
|
|
71
|
-
DpDataTable
|
|
72
|
-
},
|
|
73
|
-
setup() {
|
|
74
|
-
return {
|
|
75
|
-
args
|
|
76
|
-
};
|
|
77
|
-
},
|
|
78
|
-
template: \`
|
|
79
|
-
<dp-data-table v-bind="args">
|
|
80
|
-
<template #expandedContent="item">
|
|
81
|
-
<div class="p-4">
|
|
82
|
-
<h3 class="text-lg font-bold mb-2">Expanded details for {{ item.name }}</h3>
|
|
83
|
-
<p>This is additional information that is shown when the row is expanded.</p>
|
|
84
|
-
<p>ID: {{ item.id }}</p>
|
|
85
|
-
</div>
|
|
86
|
-
</template>
|
|
87
|
-
</dp-data-table>
|
|
88
|
-
\`
|
|
89
|
-
})
|
|
90
|
-
}`,...s.parameters?.docs?.source}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
|
|
91
|
-
args: {
|
|
92
|
-
headerFields: [{
|
|
93
|
-
field: "name",
|
|
94
|
-
label: "Name",
|
|
95
|
-
tooltip: "Full name of the item"
|
|
96
|
-
}, {
|
|
97
|
-
field: "count",
|
|
98
|
-
label: "Count"
|
|
99
|
-
}, {
|
|
100
|
-
field: "status",
|
|
101
|
-
label: "Status"
|
|
102
|
-
}],
|
|
103
|
-
items: [{
|
|
104
|
-
id: 'item1',
|
|
105
|
-
name: 'Item 1',
|
|
106
|
-
count: "99",
|
|
107
|
-
status: "Active"
|
|
108
|
-
}, {
|
|
109
|
-
id: 'item2',
|
|
110
|
-
name: 'Item 2',
|
|
111
|
-
count: "60",
|
|
112
|
-
status: "Inactive"
|
|
113
|
-
}, {
|
|
114
|
-
id: 'item3',
|
|
115
|
-
name: 'Item 3',
|
|
116
|
-
count: "100",
|
|
117
|
-
status: "Pending"
|
|
118
|
-
}],
|
|
119
|
-
trackBy: 'id',
|
|
120
|
-
tableClass: 'c-data-table border-collapse',
|
|
121
|
-
hasStickyHeader: true
|
|
122
|
-
}
|
|
123
|
-
}`,...n.parameters?.docs?.source}}};const c=["Default","WithSelection","WithFlyout","WithExpandableRows","WithCustomStyling"],u=Object.freeze(Object.defineProperty({__proto__:null,Default:e,WithCustomStyling:n,WithExpandableRows:s,WithFlyout:a,WithSelection:t,__namedExportsOrder:c,default:d},Symbol.toStringTag,{value:"Module"}));export{u as D,t as W,e as a,a as b,s as c,n as d};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{j as t,M as r,C as o}from"./blocks-kyJuz3C5.js";import{useMDXComponents as n}from"./index-BbC7EF1e.js";import{D as s,a as p,W as d,b as h,c as m}from"./DpDataTableExtended.stories-I5_PptZr.js";import"./iframe-KFxwsBtW.js";import"./_commonjsHelpers-CE1G-McA.js";import"./DpDataTableExtended-mDxHCvB0.js";import"./CleanHtml-CeG3Pc5D.js";import"./DpDataTable-f7CVMPNi.js";import"./Tooltip-flnpMaRO.js";import"./translations-DDOZrg-p.js";import"./dayjs.min-C3DHb-Vr.js";import"./helpers-CdC6mcQu.js";import"./getScrollTop-CXy7CyEd.js";import"./prefixClass-BBJiSKc2.js";import"./DpDraggable-DLTo9Q5K.js";import"./DpLoading-rM7osZHK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./DpIcon-dOAQoUKG.js";import"./hasOwnProp-B0vmwdLB.js";import"./DpSlidingPagination-BCXUgS46.js";import"./DpStickyElement-ClzY3p1-.js";import"./DpApi-BU9X0WT6.js";import"./Stickier-DyqV0rTn.js";function a(i){const e={h1:"h1",h2:"h2",p:"p",...n(),...i.components};return t.jsxs(t.Fragment,{children:[t.jsx(r,{of:s}),`
|
|
2
|
-
`,t.jsx(e.h1,{id:"extended-data-table",children:"Extended Data Table"}),`
|
|
3
|
-
`,t.jsx(e.p,{children:`Renders a pre-configured DpDataTable instance, along with a sticky header where a search bar and a pager including
|
|
4
|
-
items-per-page are placed. Additional actions can be placed in the sticky footer.`}),`
|
|
5
|
-
`,t.jsx(e.p,{children:`As in DpDataTable, be aware of the data structure for header-fields and table-items. The Keys in table-items have to
|
|
6
|
-
match the field values of the header-fields.`}),`
|
|
7
|
-
`,t.jsx(e.h2,{id:"default-usage",children:"Default usage"}),`
|
|
8
|
-
`,t.jsx(o,{of:p}),`
|
|
9
|
-
`,t.jsx(e.h2,{id:"with-selection",children:"With selection"}),`
|
|
10
|
-
`,t.jsx(o,{of:d}),`
|
|
11
|
-
`,t.jsx(e.h2,{id:"with-custom-per-page-options",children:"With custom per-page options"}),`
|
|
12
|
-
`,t.jsx(o,{of:h}),`
|
|
13
|
-
`,t.jsx(e.h2,{id:"with-footer-actions",children:"With footer actions"}),`
|
|
14
|
-
`,t.jsx(o,{of:m})]})}function _(i={}){const{wrapper:e}={...n(),...i.components};return e?t.jsx(e,{...i,children:t.jsx(a,{...i})}):a(i)}export{_ as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as x}from"./CleanHtml-CeG3Pc5D.js";import{D as F}from"./DpDataTable-f7CVMPNi.js";import{c as m,a as o,F as T,i as S,t as b,o as c,b as p,j as g,Q as V,m as B,d as y,g as E,e as w,f as N,P as j,r as _,R as k,S as C,p as A,n as R}from"./iframe-KFxwsBtW.js";import{_ as D}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{v as $}from"./Tooltip-flnpMaRO.js";import{D as z}from"./DpSlidingPagination-BCXUgS46.js";import{D as L}from"./DpStickyElement-ClzY3p1-.js";import"./dayjs.min-C3DHb-Vr.js";import{d as P}from"./translations-DDOZrg-p.js";import{h as v}from"./hasOwnProp-B0vmwdLB.js";import"./helpers-CdC6mcQu.js";function M(e,t){const a=e.concat();if(a&&v(a[0],t))for(let l=0;l<a.length;++l)for(let s=l+1;s<a.length;++s)a[l][t]===a[s][t]&&a.splice(s--,1);return a}const U={data(){return{allItemsCount:null,allSelectedVisually:!1,toggledItems:[],trackDeselected:!1}},computed:{currentlySelectedItems(){const e=this.toggledItems.map(a=>a.id);let t;return this.trackDeselected===!1?t=this.toggledItems:this.trackDeselected===!0&&(t=this.toggledItems.length===0?this.items:this.items.filter(a=>!e.includes(a.id))),t.reduce((a,l)=>({...a,[l.id]:!0}),{})},selectedItemsCount(){return this.trackDeselected?this.allSelectedVisually?this.allItemsCount:this.allItemsCount-this.toggledItems.length:this.toggledItems.length}},methods:{handleSelectAll(e){this.trackDeselected=e,this.allSelectedVisually=e===!0,this.toggledItems=[]},handleToggleItem(e,t){const a=e.map(l=>l.id);(t===!0&&!this.trackDeselected||t===!1&&this.trackDeselected)&&(this.toggledItems=M(this.toggledItems.concat(e),"id")),(t===!1&&!this.trackDeselected||t===!0&&this.trackDeselected)&&(this.toggledItems=this.toggledItems.filter(l=>a.includes(l.id)===!1)),t===!1&&(this.allSelectedVisually=!1)},resetSelection(){this.allSelectedVisually=!1,this.trackDeselected=!1,this.toggledItems=[]}}};function H(e,t,a){let l=t;if(e.length>0){const s=/(\[|\]|\\|\^|\$|\.|\||\?|\*|\+|\(|\)|\.)/ig;let r=e.replace(s,"\\$1");r=r.replace(/\s+/ig,"\\s+");const d=new RegExp(r,"ig");l=t.filter(I=>a.filter(h=>{const f=h.split(".");let i=I[f[0]],u=!!i,n=1;for(;u&&n<f.length;)i=i[f[n]],u=!!i,n++;return typeof i=="string"&&i.match(d)}).length>0)}return l}const O={name:"DpSelectPageItemCount",props:{currentItemCount:{type:Number,required:!0},labelText:{type:String,required:!0},pageCountOptions:{type:Array,required:!0}},data(){return{selectId:$()}}},K=["id"],Q=["data-cy","value","selected"],G=["for"];function J(e,t,a,l,s,r){return c(),m("div",null,[o("select",{id:s.selectId,class:"o-form__control-select w-auto u-mr-0_25","data-cy":"selectPageMenu",onChange:t[0]||(t[0]=d=>e.$emit("changed-count",parseInt(d.target.value)))},[(c(!0),m(T,null,S(a.pageCountOptions,d=>(c(),m("option",{"data-cy":`selectPageItem:${d}`,value:d,selected:d===a.currentItemCount},b(d),9,Q))),256))],40,K),o("label",{for:s.selectId,class:"inline u-mb-0"},b(a.labelText),9,G)])}const W=D(O,[["render",J]]);O.__docgenInfo={displayName:"DpSelectPageItemCount",exportName:"default",description:"",tags:{},props:[{name:"currentItemCount",type:{name:"number"},required:!0},{name:"labelText",type:{name:"string"},required:!0},{name:"pageCountOptions",type:{name:"array"},required:!0}],events:[{name:"changed-count"}],sourceFiles:["/home/florian/Dev/demosplan-ui/src/components/DpDataTableExtended/DpSelectPageItemCount.vue"]};const q={name:"DpDataTableExtended",components:{DpDataTable:F,DpSelectPageItemCount:W,DpSlidingPagination:z,DpStickyElement:L},mixins:[U],props:{defaultSortOrder:{type:[Object,null],required:!1,default:null,validator:e=>typeof e=="object"&&e!==null?v(e,"key")&&v(e,"direction"):e===null},hasFlyout:{type:Boolean,required:!1,default:!1},headerFields:{type:Array,required:!0,default:()=>[]},initItemsPerPage:{type:Number,required:!1,default:50},isExpandable:{type:Boolean,required:!1,default:!1},isLoading:{type:Boolean,required:!1,default:!1},isResizable:{type:Boolean,required:!1,default:!1},isSelectable:{type:Boolean,required:!1,default:!1},isSortable:{type:Boolean,required:!1,default:!1},isTruncatable:{type:Boolean,required:!1,default:!1},itemsPerPageOptions:{type:Array,required:!1,default:()=>[10,50,100,200]},lockCheckboxBy:{type:String,required:!1,default:null},tableItems:{type:Array,required:!1,default:()=>[]},trackBy:{type:String,required:!1,default:"id"},translations:{type:Object,required:!1,default:()=>({})}},data(){return{currentPage:1,defaultTranslations:{colsSort:P.table.colsSort,search:P.search.text,showEntries:P.pager.showEntries},filteredItems:[],filters:this.headerFields.reduce((e,t)=>(e[t.field]=!0,e),{}),isHighlighted:"",itemsPerPage:this.initItemsPerPage,searchString:"",sortOrder:this.defaultSortOrder!==null?this.defaultSortOrder:this.headerFields.length>0?{key:this.headerFields[0].field,direction:-1}:null}},computed:{filteredFields(){const e=this.headerFields.filter(t=>this.filters[t.field]);return this.$emit("updated:filteredItems",e),e},onPageItems(){let e=this.currentPage*this.itemsPerPage;const t=e-this.itemsPerPage;e=e<=this.filteredItems.length?e:this.filteredItems.length;const a=this.filteredItems.slice(t,e);return this.$emit("updated:onPageItems",a),a},sortableFilteredFields(){return this.isSortable?this.filteredFields:[]},totalPages(){return this.filteredItems.length>0?Math.ceil(this.filteredItems.length/this.itemsPerPage):1}},watch:{tableItems:{handler(){this.updateFields()},deep:!0}},methods:{emitSelectedItems(e){this.$emit("items-selected",e)},handlePageChange(e){this.currentPage=e,this.updateFields()},highlightText(e){let t=x.sanitize(e.replace("<br>","__br__")).replace("__br__","<br>");if(this.searchString.length){const a=new RegExp(this.searchString,"ig");t=e.replace(a,'<span style="background-color: yellow;">$&</span>')}return t},setOrder(e){e===this.sortOrder.key?this.sortOrder.direction=this.sortOrder.direction*-1:this.sortOrder={key:e,direction:1},this.updateFields(),this.$emit("updated:sortOrder",this.sortOrder)},setPageItemCount(e){this.itemsPerPage=e,this.currentPage=this.currentPage>this.totalPages?this.totalPages:this.currentPage,this.updateFields()},sortIconClass(e){const t=e===this.sortOrder.key,a=this.sortOrder.direction<0?"fa-sort-up":"fa-sort-down";return t?`${a} color-highlight`:"fa-sort color--grey"},updateFields(e=null){let t=e||this.tableItems;this.sortOrder&&t.sort((a,l)=>a[this.sortOrder.key]===null||typeof a[this.sortOrder.key]>"u"?this.sortOrder.direction*1:l[this.sortOrder.key]===null||typeof l[this.sortOrder.key]>"u"?this.sortOrder.direction*-1:a[this.sortOrder.key].localeCompare(l[this.sortOrder.key],"de",{sensitivity:"base"})*this.sortOrder.direction),this.searchString.length>0&&(t=H(this.searchString,t,this.headerFields.map(a=>a.field))),this.filteredItems=t}},mounted(){this.updateFields()}},X={class:"layout u-pv-0_5"},Y={class:"layout__item u-10-of-12"},Z={class:"inline",for:"search"},ee=["aria-label","title","onClick"];function te(e,t,a,l,s,r){const d=y("dp-sliding-pagination"),I=y("dp-select-page-item-count"),h=y("dp-sticky-element"),f=y("dp-data-table");return c(),m("div",null,[p(h,null,{default:g(()=>[o("div",X,[o("div",Y,[o("label",Z,b(s.defaultTranslations.search),1),E(o("input",{id:"search","onUpdate:modelValue":t[0]||(t[0]=i=>s.searchString=i),type:"text",name:"search",class:"o-form__control-input","data-cy":"dataTableExtended:search",onInput:t[1]||(t[1]=i=>r.updateFields(null))},null,544),[[j,s.searchString]]),r.totalPages>1?(c(),w(d,{key:0,class:"inline-block u-ml-0_5 u-mt-0_125",current:s.currentPage,total:r.totalPages,onPageChange:r.handlePageChange},null,8,["current","total","onPageChange"])):N("",!0),p(I,{class:"inline-block u-mt-0_125 u-ml-0_5","page-count-options":a.itemsPerPageOptions,"current-item-count":s.itemsPerPage,"label-text":s.defaultTranslations.showEntries,onChangedCount:r.setPageItemCount},null,8,["page-count-options","current-item-count","label-text","onChangedCount"])])])]),_:1}),p(f,B(e.$props,{items:r.onPageItems,"should-be-selected-items":e.currentlySelectedItems,onItemsSelected:r.emitSelectedItems}),V({_:2},[S(r.sortableFilteredFields,(i,u)=>({name:`header-${i.field}`,fn:g(n=>[_(e.$slots,`header-${n.field}`,k(C(r.sortableFilteredFields[u])),()=>[(c(),m("div",{key:n.field,class:"o-hellip--nowrap relative u-pr-0_75"},[o("button",{"aria-label":s.defaultTranslations.colsSort+": "+n.label,title:s.defaultTranslations.colsSort+": "+n.label,class:"btn--blank u-top-0 u-right-0 absolute",type:"button",onClick:ae=>r.setOrder(n.field)},[o("i",{"aria-hidden":"true",class:R(["fa",r.sortIconClass(n.field)])},null,2)],8,ee),A(" "+b(n.label),1)]))])])})),S([...r.filteredFields,{field:"expandedContent"},{field:"flyout"}],i=>({name:i.field,fn:g(u=>[_(e.$slots,i.field,k(C(u)))])}))]),1040,["items","should-be-selected-items","onItemsSelected"]),p(h,{direction:"bottom"},{default:g(()=>[_(e.$slots,"footer")]),_:3})])}const he=D(q,[["render",te]]);q.__docgenInfo={exportName:"default",displayName:"DpDataTableExtended",description:"",tags:{},props:[{name:"defaultSortOrder",type:{name:"object|null"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"hasFlyout",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"headerFields",description:"{Array<Object>} { field, label } object fields with Label",type:{name:"array"},required:!0,defaultValue:{func:!1,value:"[]"}},{name:"initItemsPerPage",type:{name:"number"},required:!1,defaultValue:{func:!1,value:"50"}},{name:"isExpandable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isLoading",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isResizable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isSelectable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isSortable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isTruncatable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"itemsPerPageOptions",type:{name:"array"},required:!1,defaultValue:{func:!1,value:"[10, 50, 100, 200]"}},{name:"lockCheckboxBy",description:"Use a Boolean Property of the Item to set the Checkbox to a locked state.\nThis should only be set if `isSelectable` is true.",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"tableItems",description:`{Array{Object} {fieldName1, fieldName2, ...} The field names have to match the field values from the headerFields.
|
|
2
|
-
has to be a computed in the parent (can't be in data)`,type:{name:"array"},required:!1,defaultValue:{func:!1,value:"[]"}},{name:"trackBy",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'id'"}},{name:"translations",type:{name:"object"},required:!1,defaultValue:{func:!1,value:"{}"}}],events:[{name:"updated:filteredItems",type:{names:["undefined"]}},{name:"updated:onPageItems",type:{names:["undefined"]}},{name:"items-selected",type:{names:["undefined"]}},{name:"updated:sortOrder",type:{names:["undefined"]}}],slots:[{name:"`header-${el.field}`",scoped:!0,bindings:[{name:"name",title:"binding"}]},{name:"el.field",scoped:!0,bindings:[{name:"name",title:"binding"}]},{name:"footer"}],sourceFiles:["/home/florian/Dev/demosplan-ui/src/components/DpDataTableExtended/DpDataTableExtended.vue","/home/florian/Dev/demosplan-ui/src/mixins/tableSelectAllItems.js"]};export{he as D,W as a,H as d};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import{D as s}from"./DpDataTableExtended-mDxHCvB0.js";const l={component:s,title:"Components/DataTableExtended",argTypes:{headerFields:{control:"object",description:"Array of column header definitions with field, label and optional styling"},tableItems:{control:"object",description:"Array of data objects to display in the table"},trackBy:{control:"text",description:"Property name to use as unique identifier for each item",defaultValue:"id"},hasFlyout:{control:"boolean",description:"Whether to display a flyout menu for each row"},isExpandable:{control:"boolean",description:"Whether rows can be expanded to show additional content"},isSelectable:{control:"boolean",description:"Whether to display checkboxes for selecting rows"},isSortable:{control:"boolean",description:"Whether columns can be sorted by clicking on headers"},initItemsPerPage:{control:"number",description:"Initial number of items to display per page",defaultValue:50},itemsPerPageOptions:{control:"object",description:"Available options for items per page",defaultValue:[10,50,100,200]},"items-selected":{action:"items-selected",description:"Event emitted when items are selected"}}},n=[{field:"name",label:"Name"},{field:"email",label:"Email"},{field:"role",label:"Role"}],o=[{id:"user1",name:"John Doe",email:"john.doe@example.com",role:"Admin"},{id:"user2",name:"Jane Smith",email:"jane.smith@example.com",role:"Editor"},{id:"user3",name:"Bob Johnson",email:"bob.johnson@example.com",role:"Viewer"},{id:"user4",name:"Alice Brown",email:"alice.brown@example.com",role:"Editor"},{id:"user5",name:"Charlie Wilson",email:"charlie.wilson@example.com",role:"Viewer"}],e={args:{headerFields:n,tableItems:o,isSortable:!0}},a={args:{headerFields:n,tableItems:o,isSelectable:!0,isSortable:!0}},t={args:{headerFields:n,tableItems:[...o,{id:"user6",name:"David Garcia",email:"david.garcia@example.com",role:"Admin"},{id:"user7",name:"Eva Martinez",email:"eva.martinez@example.com",role:"Editor"},{id:"user8",name:"Frank Thomas",email:"frank.thomas@example.com",role:"Viewer"}],initItemsPerPage:3,itemsPerPageOptions:[3,5,10],isSortable:!0}},r={args:{headerFields:n,tableItems:o,isSelectable:!0,isSortable:!0},render:i=>({components:{DpDataTableExtended:s},setup(){return{args:i}},template:`
|
|
2
|
-
<dp-data-table-extended v-bind="args" @items-selected="args['items-selected']">
|
|
3
|
-
<template #footer>
|
|
4
|
-
<div class="p-3 flex justify-end space-x-2">
|
|
5
|
-
<button class="px-4 py-2 bg-blue-500 text-white rounded">Save</button>
|
|
6
|
-
<button class="px-4 py-2 bg-gray-300 rounded">Cancel</button>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
</dp-data-table-extended>
|
|
10
|
-
`})};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
|
|
11
|
-
args: {
|
|
12
|
-
headerFields: defaultHeaderFields,
|
|
13
|
-
tableItems: defaultItems,
|
|
14
|
-
isSortable: true
|
|
15
|
-
}
|
|
16
|
-
}`,...e.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
|
|
17
|
-
args: {
|
|
18
|
-
headerFields: defaultHeaderFields,
|
|
19
|
-
tableItems: defaultItems,
|
|
20
|
-
isSelectable: true,
|
|
21
|
-
isSortable: true
|
|
22
|
-
}
|
|
23
|
-
}`,...a.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
|
|
24
|
-
args: {
|
|
25
|
-
headerFields: defaultHeaderFields,
|
|
26
|
-
tableItems: [...defaultItems, {
|
|
27
|
-
id: 'user6',
|
|
28
|
-
name: 'David Garcia',
|
|
29
|
-
email: 'david.garcia@example.com',
|
|
30
|
-
role: 'Admin'
|
|
31
|
-
}, {
|
|
32
|
-
id: 'user7',
|
|
33
|
-
name: 'Eva Martinez',
|
|
34
|
-
email: 'eva.martinez@example.com',
|
|
35
|
-
role: 'Editor'
|
|
36
|
-
}, {
|
|
37
|
-
id: 'user8',
|
|
38
|
-
name: 'Frank Thomas',
|
|
39
|
-
email: 'frank.thomas@example.com',
|
|
40
|
-
role: 'Viewer'
|
|
41
|
-
}],
|
|
42
|
-
initItemsPerPage: 3,
|
|
43
|
-
itemsPerPageOptions: [3, 5, 10],
|
|
44
|
-
isSortable: true
|
|
45
|
-
}
|
|
46
|
-
}`,...t.parameters?.docs?.source}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
|
|
47
|
-
args: {
|
|
48
|
-
headerFields: defaultHeaderFields,
|
|
49
|
-
tableItems: defaultItems,
|
|
50
|
-
isSelectable: true,
|
|
51
|
-
isSortable: true
|
|
52
|
-
},
|
|
53
|
-
render: args => ({
|
|
54
|
-
components: {
|
|
55
|
-
DpDataTableExtended
|
|
56
|
-
},
|
|
57
|
-
setup() {
|
|
58
|
-
return {
|
|
59
|
-
args
|
|
60
|
-
};
|
|
61
|
-
},
|
|
62
|
-
template: \`
|
|
63
|
-
<dp-data-table-extended v-bind="args" @items-selected="args['items-selected']">
|
|
64
|
-
<template #footer>
|
|
65
|
-
<div class="p-3 flex justify-end space-x-2">
|
|
66
|
-
<button class="px-4 py-2 bg-blue-500 text-white rounded">Save</button>
|
|
67
|
-
<button class="px-4 py-2 bg-gray-300 rounded">Cancel</button>
|
|
68
|
-
</div>
|
|
69
|
-
</template>
|
|
70
|
-
</dp-data-table-extended>
|
|
71
|
-
\`
|
|
72
|
-
})
|
|
73
|
-
}`,...r.parameters?.docs?.source}}};const d=["Default","WithSelection","WithCustomPaging","WithFooterActions"],c=Object.freeze(Object.defineProperty({__proto__:null,Default:e,WithCustomPaging:t,WithFooterActions:r,WithSelection:a,__namedExportsOrder:d,default:l},Symbol.toStringTag,{value:"Module"}));export{c as D,a as W,e as a,t as b,r as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as s}from"./DpDatepicker-CFlgW3DB.js";import{d as l}from"./dayjs.min-C3DHb-Vr.js";import{c as f,b as u,a as m,d as c,o}from"./iframe-KFxwsBtW.js";import{_ as D}from"./_plugin-vue_export-helper-DlAUqK2U.js";const p="DD.MM.YYYY",y="DD.MM.YYYY, HH:mm [Uhr]",q=function(a,t=p){let e;return t==="long"&&(t=y),a instanceof Date&&(e=l(a)),typeof e>"u"||e===null?l().format(t):e.format(t)},i={name:"DpDateRangePicker",components:{DpDatepicker:s},props:{calendarsAfter:{type:Number,required:!1,default:0},calendarsBefore:{type:Number,required:!1,default:0},dataCy:{type:String,required:!1,default:"dateRangePicker"},dataDpValidateErrorFieldname:{type:String,required:!1,default:""},endDisabled:{type:Boolean,required:!1,default:!1},endId:{type:String,required:!0},endName:{type:String,required:!1,default:""},endValue:{type:String,required:!1,default:""},enforcePlausibleDates:{type:Boolean,required:!1,default:!1},maxDate:{type:String,required:!1,default:""},minDate:{type:String,required:!1,default:""},placeholder:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},startDisabled:{type:Boolean,required:!1,default:!1},startId:{type:String,required:!0},startName:{type:String,required:!1,default:""},startValue:{type:String,required:!1,default:""}},data(){return{endDate:this.endValue,maxStartDate:this.enforcePlausibleDates?this.endValue:"",minEndDate:this.enforcePlausibleDates?this.startValue:""}},computed:{currentDate(){return q()}},watch:{startValue(a){this.minEndDate=this.enforcePlausibleDates?a:""},endValue(a){this.maxStartDate=this.enforcePlausibleDates?a:""}},methods:{handleInputEndDate(a){this.updateMaxStartDate(a),this.$emit("input:end-date",a)},handleInputStartDate(a){this.updateMinEndDate(a),this.$emit("input:start-date",a)},updateMaxStartDate(a){this.endDate=a,this.maxStartDate=this.enforcePlausibleDates&&a?a:""},updateMinEndDate(a){this.minEndDate=this.enforcePlausibleDates&&a?a:""}}},g={class:"flex items-center"};function V(a,t,e,b,n,r){const d=c("dp-datepicker");return o(),f("div",g,[u(d,{id:e.startId,name:e.startName,"min-date":e.minDate,"max-date":n.maxStartDate,"calendars-after":e.calendarsAfter,"calendars-before":e.calendarsBefore,disabled:e.startDisabled,"data-dp-validate-error-fieldname":e.dataDpValidateErrorFieldname||null,value:e.startValue,required:e.required||n.endDate!==""&&n.endDate<r.currentDate,"data-cy":`${e.dataCy}:startDate`,onInput:r.handleInputStartDate},null,8,["id","name","min-date","max-date","calendars-after","calendars-before","disabled","data-dp-validate-error-fieldname","value","required","data-cy","onInput"]),t[0]||(t[0]=m("span",null,"-",-1)),u(d,{id:e.endId,name:e.endName,"min-date":n.minEndDate,"max-date":e.maxDate,"calendars-after":e.calendarsAfter,"calendars-before":e.calendarsBefore,disabled:e.endDisabled,"data-dp-validate-error-fieldname":e.dataDpValidateErrorFieldname||null,value:e.endValue,required:e.required,"data-cy":`${e.dataCy}:endDate`,onInput:r.handleInputEndDate},null,8,["id","name","min-date","max-date","calendars-after","calendars-before","disabled","data-dp-validate-error-fieldname","value","required","data-cy","onInput"])])}const _=D(i,[["render",V]]);i.__docgenInfo={displayName:"DpDateRangePicker",exportName:"default",description:"",tags:{},props:[{name:"calendarsAfter",type:{name:"number"},required:!1,defaultValue:{func:!1,value:"0"}},{name:"calendarsBefore",type:{name:"number"},required:!1,defaultValue:{func:!1,value:"0"}},{name:"dataCy",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'dateRangePicker'"}},{name:"dataDpValidateErrorFieldname",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"endDisabled",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"endId",type:{name:"string"},required:!0},{name:"endName",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"endValue",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"enforcePlausibleDates",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"maxDate",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"minDate",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"placeholder",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"required",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"startDisabled",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"startId",type:{name:"string"},required:!0},{name:"startName",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"startValue",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"''"}}],events:[{name:"input:end-date",type:{names:["undefined"]}},{name:"input:start-date",type:{names:["undefined"]}}],sourceFiles:["/home/florian/Dev/demosplan-ui/src/components/DpDateRangePicker/DpDateRangePicker.vue"]};export{_ as D};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{j as e,M as s,C as i}from"./blocks-kyJuz3C5.js";import{useMDXComponents as r}from"./index-BbC7EF1e.js";import{D as o,a as d,W as l,R as c}from"./DpDateRangePicker.stories-CCfSjt7J.js";import"./iframe-KFxwsBtW.js";import"./_commonjsHelpers-CE1G-McA.js";import"./DpDateRangePicker-D5652u0C.js";import"./DpDatepicker-CFlgW3DB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./dayjs.min-C3DHb-Vr.js";function a(n){const t={h1:"h1",h2:"h2",p:"p",...r(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(s,{of:o}),`
|
|
2
|
-
`,e.jsx(t.h1,{id:"date-range-picker",children:"Date Range Picker"}),`
|
|
3
|
-
`,e.jsx(t.p,{children:`The DateRangePicker component allows users to enter two dates within a given range either by typing
|
|
4
|
-
or by selecting two dates from the calendar.`}),`
|
|
5
|
-
`,e.jsx(t.h2,{id:"default-usage",children:"Default usage"}),`
|
|
6
|
-
`,e.jsx(i,{of:d}),`
|
|
7
|
-
`,e.jsx(t.h2,{id:"with-initial-values",children:"With initial values"}),`
|
|
8
|
-
`,e.jsx(i,{of:l}),`
|
|
9
|
-
`,e.jsx(t.h2,{id:"required-fields",children:"Required fields"}),`
|
|
10
|
-
`,e.jsx(i,{of:c})]})}function R(n={}){const{wrapper:t}={...r(),...n.components};return t?e.jsx(t,{...n,children:e.jsx(a,{...n})}):a(n)}export{R as default};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{D as r}from"./DpDateRangePicker-D5652u0C.js";const d={component:r,title:"Components/DateRangePicker",argTypes:{startId:{control:"text",description:"ID for the start date input"},endId:{control:"text",description:"ID for the end date input"},startValue:{control:"text",description:"Initial value for the start date (YYYY-MM-DD format)"},endValue:{control:"text",description:"Initial value for the end date (YYYY-MM-DD format)"},minDate:{control:"text",description:"Minimum selectable date for start date picker"},maxDate:{control:"text",description:"Maximum selectable date for end date picker"},enforcePlausibleDates:{control:"boolean",description:"Whether to enforce start date before end date",defaultValue:!1},required:{control:"boolean",description:"Whether the date inputs are required",defaultValue:!1},"input:end-date":{action:"input:end-date",description:"Event fired when end date changes"},"input:start-date":{action:"input:start-date",description:"Event fired when start date changes"}}},e={args:{startId:"default-start-date",endId:"default-end-date"}},t={args:{startId:"initial-values-start-date",endId:"initial-values-end-date",startValue:"2023-01-15",endValue:"2023-02-15"}},a={args:{startId:"required-start-date",endId:"required-end-date",required:!0}};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
args: {
|
|
3
|
-
startId: 'default-start-date',
|
|
4
|
-
endId: 'default-end-date'
|
|
5
|
-
}
|
|
6
|
-
}`,...e.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
|
|
7
|
-
args: {
|
|
8
|
-
startId: 'initial-values-start-date',
|
|
9
|
-
endId: 'initial-values-end-date',
|
|
10
|
-
startValue: '2023-01-15',
|
|
11
|
-
endValue: '2023-02-15'
|
|
12
|
-
}
|
|
13
|
-
}`,...t.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
|
|
14
|
-
args: {
|
|
15
|
-
startId: 'required-start-date',
|
|
16
|
-
endId: 'required-end-date',
|
|
17
|
-
required: true
|
|
18
|
-
}
|
|
19
|
-
}`,...a.parameters?.docs?.source}}};const n=["Default","WithInitialValues","Required"],o=Object.freeze(Object.defineProperty({__proto__:null,Default:e,Required:a,WithInitialValues:t,__namedExportsOrder:n,default:d},Symbol.toStringTag,{value:"Module"}));export{o as D,a as R,t as W,e as a};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{j as e,M as r,C as a}from"./blocks-kyJuz3C5.js";import{useMDXComponents as s}from"./index-BbC7EF1e.js";import{D as o,a as d,W as h,b as l,R as c,c as p}from"./DpDatepicker.stories-QbL7uNPB.js";import"./iframe-KFxwsBtW.js";import"./_commonjsHelpers-CE1G-McA.js";import"./DpDatepicker-CFlgW3DB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";function i(n){const t={h1:"h1",h2:"h2",p:"p",...s(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{of:o}),`
|
|
2
|
-
`,e.jsx(t.h1,{id:"datepicker",children:"Datepicker"}),`
|
|
3
|
-
`,e.jsx(t.p,{children:"The Datepicker component allows users to enter a date either by typing or by selecting a date from the calendar."}),`
|
|
4
|
-
`,e.jsx(t.p,{children:"Use a date picker when you want to provide a view that allows the user to select a calendar date."}),`
|
|
5
|
-
`,e.jsx(t.h2,{id:"default-usage",children:"Default usage"}),`
|
|
6
|
-
`,e.jsx(a,{of:d}),`
|
|
7
|
-
`,e.jsx(t.h2,{id:"with-preset-value",children:"With preset value"}),`
|
|
8
|
-
`,e.jsx(a,{of:h}),`
|
|
9
|
-
`,e.jsx(t.h2,{id:"with-min-and-max-dates",children:"With min and max dates"}),`
|
|
10
|
-
`,e.jsx(a,{of:l}),`
|
|
11
|
-
`,e.jsx(t.h2,{id:"required-field",children:"Required field"}),`
|
|
12
|
-
`,e.jsx(a,{of:c}),`
|
|
13
|
-
`,e.jsx(t.h2,{id:"disabled",children:"Disabled"}),`
|
|
14
|
-
`,e.jsx(a,{of:p})]})}function b(n={}){const{wrapper:t}={...s(),...n.components};return t?e.jsx(t,{...n,children:e.jsx(i,{...n})}):i(n)}export{b as default};
|