@code0-tech/pictor 0.0.0-mvp.13 → 0.0.0-mvp.15

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.
Files changed (82) hide show
  1. package/dist/assets/components/button/Button.style.css +1 -1
  2. package/dist/assets/components/card/Card.style.css +1 -1
  3. package/dist/assets/components/toast/Toast.style.css +1 -1
  4. package/dist/components/button/Button.d.ts +2 -1
  5. package/dist/components/button/Button.js +22 -20
  6. package/dist/components/card/Card.d.ts +2 -1
  7. package/dist/components/card/Card.js +24 -21
  8. package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.service.d.ts +1 -1
  9. package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.service.js +1 -1
  10. package/dist/components/d-license/index.d.ts +2 -0
  11. package/dist/components/d-license/index.js +6 -0
  12. package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.service.d.ts +3 -2
  13. package/dist/components/d-member/DNamespaceMember.service.js +14 -0
  14. package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.d.ts +4 -1
  15. package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.js +4 -1
  16. package/dist/components/d-member/index.d.ts +2 -0
  17. package/dist/components/d-member/index.js +6 -0
  18. package/dist/components/d-namespace/index.d.ts +0 -10
  19. package/dist/components/d-namespace/index.js +4 -33
  20. package/dist/components/d-organization/DOrganization.service.d.ts +2 -2
  21. package/dist/components/d-organization/DOrganization.view.d.ts +4 -1
  22. package/dist/components/d-organization/DOrganization.view.js +21 -18
  23. package/dist/components/d-organization/DOrganizationCard.d.ts +3 -3
  24. package/dist/components/d-organization/DOrganizationCard.js +13 -76
  25. package/dist/components/d-organization/DOrganizationList.d.ts +10 -0
  26. package/dist/components/d-organization/DOrganizationList.js +20 -0
  27. package/dist/components/d-organization/DOrganizatonContent.d.ts +9 -0
  28. package/dist/components/d-organization/DOrganizatonContent.js +82 -0
  29. package/dist/components/d-organization/index.d.ts +1 -0
  30. package/dist/components/d-organization/index.js +8 -5
  31. package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.service.d.ts +1 -1
  32. package/dist/components/d-project/DNamespaceProject.service.js +14 -0
  33. package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.d.ts +4 -1
  34. package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.js +13 -10
  35. package/dist/components/{d-namespace/project → d-project}/DNamespaceProjectCard.d.ts +1 -1
  36. package/dist/components/d-project/DNamespaceProjectCard.js +15 -0
  37. package/dist/components/d-project/DNamespaceProjectContent.d.ts +8 -0
  38. package/dist/components/d-project/DNamespaceProjectContent.js +68 -0
  39. package/dist/components/d-project/DNamespaceProjectList.d.ts +9 -0
  40. package/dist/components/d-project/DNamespaceProjectList.js +19 -0
  41. package/dist/components/{d-namespace/project → d-project}/DNamespaceProjectMenu.d.ts +1 -1
  42. package/dist/components/{d-namespace/project → d-project}/DNamespaceProjectMenu.js +3 -3
  43. package/dist/components/d-project/index.d.ts +5 -0
  44. package/dist/components/d-project/index.js +24 -0
  45. package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.service.d.ts +1 -1
  46. package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.service.js +1 -1
  47. package/dist/components/d-role/index.d.ts +2 -0
  48. package/dist/components/d-role/index.js +6 -0
  49. package/dist/components/d-runtime/DRuntime.view.d.ts +4 -1
  50. package/dist/components/d-runtime/DRuntime.view.js +6 -3
  51. package/dist/components/d-runtime/DRuntimeCard.d.ts +7 -0
  52. package/dist/components/d-runtime/DRuntimeCard.js +17 -0
  53. package/dist/components/d-runtime/DRuntimeContent.d.ts +7 -0
  54. package/dist/components/d-runtime/DRuntimeContent.js +38 -0
  55. package/dist/components/d-runtime/DRuntimeList.d.ts +9 -0
  56. package/dist/components/d-runtime/DRuntimeList.js +19 -0
  57. package/dist/components/d-runtime/index.d.ts +2 -0
  58. package/dist/components/d-runtime/index.js +6 -2
  59. package/dist/components/d-user/DUser.view.d.ts +4 -1
  60. package/dist/components/d-user/DUser.view.js +13 -10
  61. package/dist/components/d-user/DUserCard.d.ts +7 -0
  62. package/dist/components/d-user/DUserCard.js +15 -0
  63. package/dist/components/d-user/DUserContent.d.ts +7 -0
  64. package/dist/components/d-user/DUserContent.js +84 -0
  65. package/dist/components/d-user/DUserList.d.ts +9 -0
  66. package/dist/components/d-user/DUserList.js +19 -0
  67. package/dist/components/d-user/index.d.ts +2 -0
  68. package/dist/components/d-user/index.js +11 -7
  69. package/dist/components/form/useForm.d.ts +2 -1
  70. package/dist/components/form/useForm.js +27 -18
  71. package/dist/components/toast/Toast.d.ts +1 -0
  72. package/dist/components/toast/Toast.js +54 -62
  73. package/dist/index.d.ts +4 -0
  74. package/dist/index.js +184 -172
  75. package/package.json +11 -10
  76. package/dist/components/d-namespace/member/DNamespaceMember.service.js +0 -11
  77. package/dist/components/d-namespace/project/DNamespaceProject.service.js +0 -11
  78. package/dist/components/d-namespace/project/DNamespaceProjectCard.js +0 -57
  79. /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.d.ts +0 -0
  80. /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.js +0 -0
  81. /package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.d.ts +0 -0
  82. /package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.js +0 -0
@@ -1 +1 @@
1
- .button{padding:.7rem 1rem;gap:.5rem;cursor:pointer;height:fit-content;display:flex;align-items:center;width:fit-content;justify-content:center;font-size:.8rem}.button:disabled,.button[data-disabled],.button[aria-disabled=true],.button--disabled{cursor:not-allowed;opacity:25%;pointer-events:unset}.button{border-radius:1rem}.button--primary{border:none;background:#030014;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.button--primary:hover{box-shadow:inset 0 0 0 1px #ffffff40}.button--primary:active,.button--primary:focus{box-shadow:inset 0 0 0 1px #ffffff0d,inset 0 0 3rem #ffffff1a;outline:none}.button--primary.button--outlined{background:transparent}.button--primary.button--none{background:transparent;box-shadow:none}.button--secondary{border:none;background:#1c1a2c;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.button--secondary:hover{box-shadow:inset 0 0 0 1px #ffffff40}.button--secondary:active,.button--secondary:focus{box-shadow:inset 0 0 0 1px #ffffff0d,inset 0 0 3rem #ffffff1a;outline:none}.button--secondary.button--outlined{background:transparent}.button--secondary.button--none{background:transparent;box-shadow:none}.button--success{border:none;background:#071314;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.button--success:hover{box-shadow:inset 0 0 0 1px #ffffff40}.button--success:active,.button--success:focus{box-shadow:inset 0 0 0 1px #ffffff0d,inset 0 0 3rem #ffffff1a;outline:none}.button--success.button--outlined{background:transparent}.button--success.button--none{background:transparent;box-shadow:none}.button--warning{border:none;background:#1c1313;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.button--warning:hover{box-shadow:inset 0 0 0 1px #ffffff40}.button--warning:active,.button--warning:focus{box-shadow:inset 0 0 0 1px #ffffff0d,inset 0 0 3rem #ffffff1a;outline:none}.button--warning.button--outlined{background:transparent}.button--warning.button--none{background:transparent;box-shadow:none}.button--error{border:none;background:#180016;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.button--error:hover{box-shadow:inset 0 0 0 1px #ffffff40}.button--error:active,.button--error:focus{box-shadow:inset 0 0 0 1px #ffffff0d,inset 0 0 3rem #ffffff1a;outline:none}.button--error.button--outlined{background:transparent}.button--error.button--none{background:transparent;box-shadow:none}.button--info{border:none;background:#0e1a24;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.button--info:hover{box-shadow:inset 0 0 0 1px #ffffff40}.button--info:active,.button--info:focus{box-shadow:inset 0 0 0 1px #ffffff0d,inset 0 0 3rem #ffffff1a;outline:none}.button--info.button--outlined{background:transparent}.button--info.button--none{background:transparent;box-shadow:none}
1
+ .button{padding:.7rem 1rem;gap:.5rem;cursor:pointer;height:fit-content;display:flex;align-items:center;width:fit-content;justify-content:center;font-size:.8rem}.button:disabled,.button[data-disabled],.button[aria-disabled=true],.button--disabled{cursor:not-allowed;opacity:25%;pointer-events:unset}.button{border-radius:1rem}.button--primary{border:none;background:#030014;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.button--primary:hover{box-shadow:inset 0 0 0 1px #ffffff40}.button--primary:active,.button--primary:focus{box-shadow:inset 0 0 0 1px #ffffff0d,inset 0 0 3rem #ffffff1a;outline:none}.button--primary.button--outlined{background:transparent}.button--primary.button--none{background:transparent;box-shadow:none}.button--secondary{border:none;background:#1c1a2c;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.button--secondary:hover{box-shadow:inset 0 0 0 1px #ffffff40}.button--secondary:active,.button--secondary:focus{box-shadow:inset 0 0 0 1px #ffffff0d,inset 0 0 3rem #ffffff1a;outline:none}.button--secondary.button--outlined{background:transparent}.button--secondary.button--none{background:transparent;box-shadow:none}.button--success{border:none;background:#071314;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.button--success:hover{box-shadow:inset 0 0 0 1px #ffffff40}.button--success:active,.button--success:focus{box-shadow:inset 0 0 0 1px #ffffff0d,inset 0 0 3rem #ffffff1a;outline:none}.button--success.button--outlined{background:transparent}.button--success.button--none{background:transparent;box-shadow:none}.button--warning{border:none;background:#1c1313;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.button--warning:hover{box-shadow:inset 0 0 0 1px #ffffff40}.button--warning:active,.button--warning:focus{box-shadow:inset 0 0 0 1px #ffffff0d,inset 0 0 3rem #ffffff1a;outline:none}.button--warning.button--outlined{background:transparent}.button--warning.button--none{background:transparent;box-shadow:none}.button--error{border:none;background:#180016;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.button--error:hover{box-shadow:inset 0 0 0 1px #ffffff40}.button--error:active,.button--error:focus{box-shadow:inset 0 0 0 1px #ffffff0d,inset 0 0 3rem #ffffff1a;outline:none}.button--error.button--outlined{background:transparent}.button--error.button--none{background:transparent;box-shadow:none}.button--info{border:none;background:#0e1a24;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.button--info:hover{box-shadow:inset 0 0 0 1px #ffffff40}.button--info:active,.button--info:focus{box-shadow:inset 0 0 0 1px #ffffff0d,inset 0 0 3rem #ffffff1a;outline:none}.button--info.button--outlined{background:transparent}.button--info.button--none{background:transparent;box-shadow:none}.button--xxs{padding:.35rem .7rem}.button--xs{padding:.7rem .8rem}.button--sm{padding:.8rem 1rem}.button--md{padding:1rem 1.2rem}.button--lg{padding:1.2rem 1.3rem}.button--xl{padding:1.3rem}
@@ -1 +1 @@
1
- .card{display:block;padding:1.3rem;position:relative;font-size:.8rem}.card{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;line-height:1.5}.card>.card__section>img{border-radius:.5rem}.card>.card__section:first-child{margin-top:0}.card>.card__section--border:first-child{padding-top:0;border-top:none}.card>.card__section:not(:has(~.card__section)){margin-bottom:0}.card>.card__section--border:not(:has(~.card__section)){padding-bottom:0;border-bottom:none}.card *.card__section>img{border-radius:.5rem}.card__section{margin-bottom:1.3rem;margin-top:1.3rem;position:relative}.card__section--border{margin-right:-1.3rem;margin-left:-1.3rem;padding:1.3rem;border-top:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1)}.card__section--border+.card__section--border{border-top:none;margin-top:-.5em}.card--primary{border:none;background:#030014;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a;border-radius:1rem}.card--primary.card--none{background:transparent;border-color:transparent}.card--primary.card--filled{border-color:transparent}.card--primary.card--outlined{background:transparent}.card--outline-primary{outline-offset:.65rem;margin:.65rem;outline:rgba(3,0,20,.25) solid 1px}.card--border-primary{box-shadow:inset 0 0 0 1px #03001440}.card--secondary{border:none;background:#1c1a2c;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a;border-radius:1rem}.card--secondary.card--none{background:transparent;border-color:transparent}.card--secondary.card--filled{border-color:transparent}.card--secondary.card--outlined{background:transparent}.card--outline-secondary{outline-offset:.65rem;margin:.65rem;outline:rgba(255,255,255,.1) solid 1px}.card--border-secondary{box-shadow:inset 0 0 0 1px #ffffff1a}.card--success{border:none;background:#071314;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a;border-radius:1rem}.card--success.card--none{background:transparent;border-color:transparent}.card--success.card--filled{border-color:transparent}.card--success.card--outlined{background:transparent}.card--outline-success{outline-offset:.65rem;margin:.65rem;outline:rgba(41,191,18,.25) solid 1px}.card--border-success{box-shadow:inset 0 0 0 1px #29bf1240}.card--warning{border:none;background:#1c1313;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a;border-radius:1rem}.card--warning.card--none{background:transparent;border-color:transparent}.card--warning.card--filled{border-color:transparent}.card--warning.card--outlined{background:transparent}.card--outline-warning{outline-offset:.65rem;margin:.65rem;outline:rgba(255,190,11,.25) solid 1px}.card--border-warning{box-shadow:inset 0 0 0 1px #ffbe0b40}.card--error{border:none;background:#180016;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a;border-radius:1rem}.card--error.card--none{background:transparent;border-color:transparent}.card--error.card--filled{border-color:transparent}.card--error.card--outlined{background:transparent}.card--outline-error{outline-offset:.65rem;margin:.65rem;outline:rgba(217,4,41,.25) solid 1px}.card--border-error{box-shadow:inset 0 0 0 1px #d9042940}.card--info{border:none;background:#0e1a24;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a;border-radius:1rem}.card--info.card--none{background:transparent;border-color:transparent}.card--info.card--filled{border-color:transparent}.card--info.card--outlined{background:transparent}.card--outline-info{outline-offset:.65rem;margin:.65rem;outline:rgba(112,255,178,.25) solid 1px}.card--border-info{box-shadow:inset 0 0 0 1px #70ffb240}.card--border--dashed{border-style:dashed}
1
+ .card{display:block;position:relative;font-size:.8rem}.card{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;line-height:1.5}.card>.card__section>img{border-radius:.5rem}.card>.card__section--border:first-child{padding-top:0;border-top:none}.card>.card__section--border:not(:has(~.card__section)){padding-bottom:0;border-bottom:none}.card *.card__section>img{border-radius:.5rem}.card__section{position:relative}.card__section--border{margin-right:calc(-1 * var(--padding));margin-left:calc(-1 * var(--padding));padding:var(--padding);border-top:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1)}.card__section--border+.card__section--border{border-top:none}.card--primary{border:none;background:#030014;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a;border-radius:1rem}.card--primary.card--none{background:transparent;border-color:transparent}.card--primary.card--filled{border-color:transparent}.card--primary.card--outlined{background:transparent}.card--outline-primary{outline-offset:calc(var(--padding) / 2);margin:calc(var(--padding) / 2);outline:rgba(3,0,20,.25) solid 1px}.card--border-primary{box-shadow:inset 0 0 0 1px #03001440}.card--secondary{border:none;background:#1c1a2c;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a;border-radius:1rem}.card--secondary.card--none{background:transparent;border-color:transparent}.card--secondary.card--filled{border-color:transparent}.card--secondary.card--outlined{background:transparent}.card--outline-secondary{outline-offset:calc(var(--padding) / 2);margin:calc(var(--padding) / 2);outline:rgba(255,255,255,.1) solid 1px}.card--border-secondary{box-shadow:inset 0 0 0 1px #ffffff1a}.card--success{border:none;background:#071314;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a;border-radius:1rem}.card--success.card--none{background:transparent;border-color:transparent}.card--success.card--filled{border-color:transparent}.card--success.card--outlined{background:transparent}.card--outline-success{outline-offset:calc(var(--padding) / 2);margin:calc(var(--padding) / 2);outline:rgba(41,191,18,.25) solid 1px}.card--border-success{box-shadow:inset 0 0 0 1px #29bf1240}.card--warning{border:none;background:#1c1313;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a;border-radius:1rem}.card--warning.card--none{background:transparent;border-color:transparent}.card--warning.card--filled{border-color:transparent}.card--warning.card--outlined{background:transparent}.card--outline-warning{outline-offset:calc(var(--padding) / 2);margin:calc(var(--padding) / 2);outline:rgba(255,190,11,.25) solid 1px}.card--border-warning{box-shadow:inset 0 0 0 1px #ffbe0b40}.card--error{border:none;background:#180016;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a;border-radius:1rem}.card--error.card--none{background:transparent;border-color:transparent}.card--error.card--filled{border-color:transparent}.card--error.card--outlined{background:transparent}.card--outline-error{outline-offset:calc(var(--padding) / 2);margin:calc(var(--padding) / 2);outline:rgba(217,4,41,.25) solid 1px}.card--border-error{box-shadow:inset 0 0 0 1px #d9042940}.card--info{border:none;background:#0e1a24;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a;border-radius:1rem}.card--info.card--none{background:transparent;border-color:transparent}.card--info.card--filled{border-color:transparent}.card--info.card--outlined{background:transparent}.card--outline-info{outline-offset:calc(var(--padding) / 2);margin:calc(var(--padding) / 2);outline:rgba(112,255,178,.25) solid 1px}.card--border-info{box-shadow:inset 0 0 0 1px #70ffb240}.card--border--dashed{border-style:dashed}.card--xxs{--padding: .35rem;padding:var(--padding)}.card--xs{--padding: .7rem;padding:var(--padding)}.card--sm{--padding: .8rem;padding:var(--padding)}.card--md{--padding: 1rem;padding:var(--padding)}.card--lg{--padding: 1.2rem;padding:var(--padding)}.card--xl{--padding: 1.3rem;padding:var(--padding)}
@@ -1 +1 @@
1
- .toast{padding:1rem}.toast{border-radius:1rem;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;line-height:1.5}.toast__header{align-items:flex-start;justify-content:space-between;gap:.35rem}.toast__icon{display:flex;align-items:center;justify-content:center}.toast__content{margin-top:.35rem;box-sizing:border-box}.toast__header-wrapper{align-items:center;gap:.35rem}.toast__header-wrapper>svg{min-width:1rem;min-height:1rem}.toast__dismissible{cursor:pointer;display:flex;align-items:center;justify-content:center}.toast__dismissible{border-radius:1rem}.toast__dismissible svg{min-width:1rem;min-height:1rem}.toast--primary{border:none;background:#030014;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--secondary{border:none;background:#1c1a2c;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--success{border:none;background:#071314;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--warning{border:none;background:#1c1313;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--error{border:none;background:#180016;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--info{border:none;background:#0e1a24;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}
1
+ .toast{padding:1rem;width:100%;overflow:hidden}.toast{border-radius:1rem;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;line-height:1.5}.toast__header{align-items:flex-start;justify-content:space-between;gap:.7rem}.toast__icon{display:flex;align-items:center;justify-content:center}.toast__content{box-sizing:border-box;margin-left:27px}.toast__header-wrapper{align-items:flex-start;gap:.7rem}.toast__header-wrapper>svg{min-width:1rem;min-height:1rem}.toast__dismissible{cursor:pointer;display:flex;align-items:center;justify-content:center}.toast__dismissible{border-radius:1rem}.toast__dismissible svg{min-width:1rem;min-height:1rem}@keyframes toast-duration{0%{width:0%}to{width:100%}}.toast:hover .toast__duration:after{animation-play-state:paused}.toast__duration{position:relative;margin:1rem -1rem -1rem;padding:.35rem 1rem .6rem}.toast__duration{border-top:1px solid rgba(255,255,255,.1)}.toast__duration:after{content:"";position:absolute;left:0;bottom:0;width:0%;height:4px;background:#ffffff1a;animation-name:toast-duration;animation-duration:var(--toast-duration, 4s);animation-timing-function:linear;animation-fill-mode:forwards}.toast--primary{border:none;background:#030014;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--secondary{border:none;background:#1c1a2c;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--success{border:none;background:#071314;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--warning{border:none;background:#1c1313;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--error{border:none;background:#180016;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--info{border:none;background:#0e1a24;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}
@@ -1,10 +1,11 @@
1
1
  import { default as React, ReactNode } from 'react';
2
- import { Code0Component, Color } from '../../utils/types';
2
+ import { Code0Component, Code0Sizes, Color } from '../../utils';
3
3
  export interface ButtonProps extends Code0Component<HTMLButtonElement> {
4
4
  children: ReactNode | ReactNode[];
5
5
  color?: Color;
6
6
  variant?: "none" | "normal" | "outlined";
7
7
  active?: boolean;
8
8
  disabled?: boolean;
9
+ paddingSize?: Code0Sizes;
9
10
  }
10
11
  export declare const Button: React.FC<ButtonProps>;
@@ -1,29 +1,31 @@
1
- import { jsx as x } from "react/jsx-runtime";
2
- import { c as R } from "../../_virtual/compiler-runtime.js";
1
+ import { jsx as R } from "react/jsx-runtime";
2
+ import { c as h } from "../../_virtual/compiler-runtime.js";
3
3
  import '../../assets/components/button/Button.style.css';/* empty css */
4
- import g from "react";
5
- import { mergeCode0Props as h } from "../../utils/utils.js";
6
- const E = g.forwardRef((n, l) => {
7
- const t = R.c(11);
8
- let o, i, e, r;
9
- if (t[0] !== n || t[1] !== l) {
4
+ import z from "react";
5
+ import "../../utils/contextStore.js";
6
+ import { mergeCode0Props as S } from "../../utils/utils.js";
7
+ const P = z.forwardRef((a, d) => {
8
+ const t = h.c(11);
9
+ let o, r, e, i;
10
+ if (t[0] !== a || t[1] !== d) {
10
11
  const {
11
12
  children: f,
12
13
  variant: c,
13
- color: d,
14
- active: m,
15
- disabled: b,
16
- ...u
17
- } = n;
14
+ color: l,
15
+ paddingSize: m,
16
+ active: b,
17
+ disabled: u,
18
+ ...v
19
+ } = a;
18
20
  o = f;
19
- const v = c === void 0 ? "normal" : c, p = d === void 0 ? "secondary" : d, $ = m === void 0 ? !1 : m;
20
- i = b === void 0 ? !1 : b, e = l, r = h(`button button--${p} ${$ ? "button--active" : ""} ${i ? "button--disabled" : ""} button--${v}`, u), t[0] = n, t[1] = l, t[2] = o, t[3] = i, t[4] = e, t[5] = r;
21
+ const p = c === void 0 ? "normal" : c, $ = l === void 0 ? "secondary" : l, g = m === void 0 ? "xs" : m, x = b === void 0 ? !1 : b;
22
+ r = u === void 0 ? !1 : u, e = d, i = S(`button button--${$} ${x ? "button--active" : ""} ${r ? "button--disabled" : ""} button--${p} button--${g}`, v), t[0] = a, t[1] = d, t[2] = o, t[3] = r, t[4] = e, t[5] = i;
21
23
  } else
22
- o = t[2], i = t[3], e = t[4], r = t[5];
23
- const s = i ? "true" : "false";
24
- let a;
25
- return t[6] !== o || t[7] !== e || t[8] !== r || t[9] !== s ? (a = /* @__PURE__ */ x("button", { ref: e, ...r, "aria-disabled": s, children: o }), t[6] = o, t[7] = e, t[8] = r, t[9] = s, t[10] = a) : a = t[10], a;
24
+ o = t[2], r = t[3], e = t[4], i = t[5];
25
+ const s = r ? "true" : "false";
26
+ let n;
27
+ return t[6] !== o || t[7] !== e || t[8] !== i || t[9] !== s ? (n = /* @__PURE__ */ R("button", { ref: e, ...i, "aria-disabled": s, children: o }), t[6] = o, t[7] = e, t[8] = i, t[9] = s, t[10] = n) : n = t[10], n;
26
28
  });
27
29
  export {
28
- E as Button
30
+ P as Button
29
31
  };
@@ -1,5 +1,5 @@
1
1
  import { default as React, ReactNode } from 'react';
2
- import { Code0Component, Color } from '../../utils/types';
2
+ import { Code0Component, Code0Sizes, Color } from '../../utils/types';
3
3
  export interface Card extends Code0Component<HTMLDivElement> {
4
4
  children: ReactNode | ReactNode[];
5
5
  color?: Color;
@@ -10,5 +10,6 @@ export interface Card extends Code0Component<HTMLDivElement> {
10
10
  outline?: boolean;
11
11
  outlineColor?: Color;
12
12
  dashed?: boolean;
13
+ paddingSize?: Code0Sizes;
13
14
  }
14
15
  export declare const Card: React.FC<Card>;
@@ -1,11 +1,11 @@
1
- import { jsx as f, Fragment as E } from "react/jsx-runtime";
2
- import { c as F } from "../../_virtual/compiler-runtime.js";
1
+ import { jsx as p, Fragment as j } from "react/jsx-runtime";
2
+ import { c as E } from "../../_virtual/compiler-runtime.js";
3
3
  import '../../assets/components/card/Card.style.css';/* empty css */
4
- import { mergeCode0Props as P } from "../../utils/utils.js";
5
- const z = (d) => {
6
- const o = F.c(6);
7
- let r, t;
8
- if (o[0] !== d) {
4
+ import { mergeCode0Props as F } from "../../utils/utils.js";
5
+ const A = (e) => {
6
+ const o = E.c(6);
7
+ let r, d;
8
+ if (o[0] !== e) {
9
9
  const {
10
10
  children: C,
11
11
  color: i,
@@ -15,25 +15,28 @@ const z = (d) => {
15
15
  borderColor: l,
16
16
  outlineColor: s,
17
17
  outline: m,
18
- dashed: v,
18
+ dashed: g,
19
+ paddingSize: v,
19
20
  ...u
20
- } = d;
21
+ } = e;
21
22
  r = C;
22
- const h = i === void 0 ? "primary" : i, p = n === void 0 ? "normal" : n, $ = a === void 0 ? !1 : a, b = c === void 0 ? "secondary" : c, g = l === void 0 ? "secondary" : l, y = s === void 0 ? "secondary" : s, x = m === void 0 ? !1 : m, j = v === void 0 ? !1 : v;
23
- t = P(`
23
+ const h = i === void 0 ? "primary" : i, b = n === void 0 ? "normal" : n, $ = a === void 0 ? !1 : a, x = c === void 0 ? "secondary" : c, f = l === void 0 ? "secondary" : l, y = s === void 0 ? "secondary" : s, z = m === void 0 ? !1 : m, S = g === void 0 ? !1 : g;
24
+ d = F(`
24
25
  card
25
- card--${h} card--${p}
26
- ${x ? `card--outline-${y}` : ""}
26
+ card--${h} card--${b}
27
+ card--${v === void 0 ? "xl" : v}
28
+ ${z ? `card--outline-${y}` : ""}
27
29
  ${$ ? "card--gradient" : ""}
28
- ${g ? `card--border-${g}` : ""}
29
- ${j ? "card--border--dashed" : ""}
30
- ${$ ? `card--gradient-${b}` : ""}
31
- `, u), o[0] = d, o[1] = r, o[2] = t;
30
+ ${f ? `card--border-${f}` : ""}
31
+ ${S ? "card--border--dashed" : ""}
32
+ ${$ ? `card--gradient-${x}` : ""}
33
+
34
+ `, u), o[0] = e, o[1] = r, o[2] = d;
32
35
  } else
33
- r = o[1], t = o[2];
34
- let e;
35
- return o[3] !== r || o[4] !== t ? (e = /* @__PURE__ */ f(E, { children: /* @__PURE__ */ f("div", { ...t, children: r }) }), o[3] = r, o[4] = t, o[5] = e) : e = o[5], e;
36
+ r = o[1], d = o[2];
37
+ let t;
38
+ return o[3] !== r || o[4] !== d ? (t = /* @__PURE__ */ p(j, { children: /* @__PURE__ */ p("div", { ...d, children: r }) }), o[3] = r, o[4] = d, o[5] = t) : t = o[5], t;
36
39
  };
37
40
  export {
38
- z as Card
41
+ A as Card
39
42
  };
@@ -1,6 +1,6 @@
1
1
  import { NamespaceLicense, NamespacesLicensesCreateInput, NamespacesLicensesCreatePayload, NamespacesLicensesDeleteInput, NamespacesLicensesDeletePayload } from '@code0-tech/sagittarius-graphql-types';
2
2
  import { DNamespaceLicenseView } from './DNamespaceLicense.view';
3
- import { ReactiveArrayService } from '../../../utils/reactiveArrayService';
3
+ import { ReactiveArrayService } from '../../utils/reactiveArrayService';
4
4
  export declare abstract class DNamespaceLicenseReactiveService extends ReactiveArrayService<DNamespaceLicenseView> {
5
5
  getById(id: NamespaceLicense['id']): DNamespaceLicenseView | undefined;
6
6
  abstract licenseCreate(payload: NamespacesLicensesCreateInput): Promise<NamespacesLicensesCreatePayload | undefined>;
@@ -1,4 +1,4 @@
1
- import { ReactiveArrayService as r } from "../../../utils/reactiveArrayService.js";
1
+ import { ReactiveArrayService as r } from "../../utils/reactiveArrayService.js";
2
2
  class c extends r {
3
3
  //TODO: inject UI error handler for toasts
4
4
  //inject: namespaceId because the runtimes query needs it
@@ -0,0 +1,2 @@
1
+ export * from './DNamespaceLicense.service';
2
+ export * from './DNamespaceLicense.view';
@@ -0,0 +1,6 @@
1
+ import { DNamespaceLicenseReactiveService as a } from "./DNamespaceLicense.service.js";
2
+ import { DNamespaceLicenseView as r } from "./DNamespaceLicense.view.js";
3
+ export {
4
+ a as DNamespaceLicenseReactiveService,
5
+ r as DNamespaceLicenseView
6
+ };
@@ -1,8 +1,9 @@
1
- import { NamespaceMember, NamespacesMembersAssignRolesInput, NamespacesMembersAssignRolesPayload, NamespacesMembersDeleteInput, NamespacesMembersDeletePayload, NamespacesMembersInviteInput, NamespacesMembersInvitePayload } from '@code0-tech/sagittarius-graphql-types';
1
+ import { Namespace, NamespaceMember, NamespacesMembersAssignRolesInput, NamespacesMembersAssignRolesPayload, NamespacesMembersDeleteInput, NamespacesMembersDeletePayload, NamespacesMembersInviteInput, NamespacesMembersInvitePayload, User } from '@code0-tech/sagittarius-graphql-types';
2
2
  import { DNamespaceMemberView } from './DNamespaceMember.view';
3
- import { ReactiveArrayService } from '../../../utils/reactiveArrayService';
3
+ import { ReactiveArrayService } from '../../utils/reactiveArrayService';
4
4
  export declare abstract class DNamespaceMemberReactiveService extends ReactiveArrayService<DNamespaceMemberView> {
5
5
  getById(id: NamespaceMember['id']): DNamespaceMemberView | undefined;
6
+ getByNamespaceIdAndUserId(namespaceId: Namespace['id'], userId: User['id']): DNamespaceMemberView | undefined;
6
7
  abstract memberInvite(payload: NamespacesMembersInviteInput): Promise<NamespacesMembersInvitePayload | undefined>;
7
8
  abstract memberDelete(payload: NamespacesMembersDeleteInput): Promise<NamespacesMembersDeletePayload | undefined>;
8
9
  abstract memberAssignRoles(payload: NamespacesMembersAssignRolesInput): Promise<NamespacesMembersAssignRolesPayload | undefined>;
@@ -0,0 +1,14 @@
1
+ import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
2
+ class d extends i {
3
+ //TODO: inject UI error handler for toasts
4
+ //inject: namespaceId because the runtimes query needs it
5
+ getById(e) {
6
+ return this.values().find((r) => r.id === e);
7
+ }
8
+ getByNamespaceIdAndUserId(e, r) {
9
+ return this.values().find((a) => a.namespace?.id === e && a.user?.id === r);
10
+ }
11
+ }
12
+ export {
13
+ d as DNamespaceMemberReactiveService
14
+ };
@@ -1,4 +1,4 @@
1
- import { Maybe, Namespace, NamespaceMember, NamespaceMemberRoleConnection, NamespaceRoleConnection, Scalars, User } from '@code0-tech/sagittarius-graphql-types';
1
+ import { Maybe, Namespace, NamespaceMember, NamespaceMemberRoleConnection, NamespaceMemberUserAbilities, NamespaceRoleConnection, Scalars, User } from '@code0-tech/sagittarius-graphql-types';
2
2
  export declare class DNamespaceMemberView {
3
3
  /** Time when this NamespaceMember was created */
4
4
  private readonly _createdAt?;
@@ -14,6 +14,8 @@ export declare class DNamespaceMemberView {
14
14
  private readonly _updatedAt?;
15
15
  /** User this member belongs to */
16
16
  private readonly _user?;
17
+ /** Abilities for the current user on this NamespaceMember */
18
+ private readonly _userAbilities?;
17
19
  constructor(payload: NamespaceMember);
18
20
  get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
19
21
  get id(): Maybe<Scalars["NamespaceMemberID"]["output"]> | undefined;
@@ -22,5 +24,6 @@ export declare class DNamespaceMemberView {
22
24
  get roles(): Maybe<NamespaceRoleConnection> | undefined;
23
25
  get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
24
26
  get user(): Maybe<User> | undefined;
27
+ get userAbilities(): Maybe<NamespaceMemberUserAbilities> | undefined;
25
28
  json(): NamespaceMember;
26
29
  }
@@ -17,7 +17,7 @@ function o(t, e) {
17
17
  }
18
18
  class n {
19
19
  constructor(e) {
20
- r(this, "_createdAt", void 0), r(this, "_id", void 0), r(this, "_memberRoles", void 0), r(this, "_namespace", void 0), r(this, "_roles", void 0), r(this, "_updatedAt", void 0), r(this, "_user", void 0), this._createdAt = e.createdAt, this._id = e.id, this._memberRoles = e.memberRoles, this._namespace = e.namespace, this._roles = e.roles, this._updatedAt = e.updatedAt, this._user = e.user;
20
+ r(this, "_createdAt", void 0), r(this, "_id", void 0), r(this, "_memberRoles", void 0), r(this, "_namespace", void 0), r(this, "_roles", void 0), r(this, "_updatedAt", void 0), r(this, "_user", void 0), r(this, "_userAbilities", void 0), this._createdAt = e.createdAt, this._id = e.id, this._memberRoles = e.memberRoles, this._namespace = e.namespace, this._roles = e.roles, this._updatedAt = e.updatedAt, this._user = e.user, this._userAbilities = e.userAbilities;
21
21
  }
22
22
  get createdAt() {
23
23
  return this._createdAt;
@@ -40,6 +40,9 @@ class n {
40
40
  get user() {
41
41
  return this._user;
42
42
  }
43
+ get userAbilities() {
44
+ return this._userAbilities;
45
+ }
43
46
  json() {
44
47
  return {
45
48
  createdAt: this._createdAt,
@@ -0,0 +1,2 @@
1
+ export * from './DNamespaceMember.service';
2
+ export * from './DNamespaceMember.view';
@@ -0,0 +1,6 @@
1
+ import { DNamespaceMemberReactiveService as m } from "./DNamespaceMember.service.js";
2
+ import { DNamespaceMemberView as c } from "./DNamespaceMember.view.js";
3
+ export {
4
+ m as DNamespaceMemberReactiveService,
5
+ c as DNamespaceMemberView
6
+ };
@@ -1,12 +1,2 @@
1
- export * from './license/DNamespaceLicense.service';
2
- export * from './license/DNamespaceLicense.view';
3
- export * from './member/DNamespaceMember.service';
4
- export * from './member/DNamespaceMember.view';
5
- export * from './project/DNamespaceProject.service';
6
- export * from './project/DNamespaceProject.view';
7
- export * from './project/DNamespaceProjectCard';
8
- export * from './project/DNamespaceProjectMenu';
9
- export * from './role/DNamespaceRole.service';
10
- export * from './role/DNamespaceRole.view';
11
1
  export * from './DNamespace.service';
12
2
  export * from './DNamespace.view';
@@ -1,35 +1,6 @@
1
- import { DNamespaceLicenseReactiveService as R } from "./license/DNamespaceLicense.service.js";
2
- import { DNamespaceLicenseView as S } from "./license/DNamespaceLicense.view.js";
3
- import { DNamespaceMemberReactiveService as b } from "./member/DNamespaceMember.service.js";
4
- import { DNamespaceMemberView as l } from "./member/DNamespaceMember.view.js";
5
- import { DNamespaceProjectReactiveService as L } from "./project/DNamespaceProject.service.js";
6
- import { DNamespaceProjectView as P } from "./project/DNamespaceProject.view.js";
7
- import "react/jsx-runtime";
8
- import "react";
9
- import "../../_virtual/compiler-runtime.js";
10
- import '../../assets/components/menu/Menu.style.css';import '../../assets/components/badge/Badge.style.css';import '../../assets/components/flex/Flex.style.css';import '../../assets/components/text/Text.style.css';import '../../assets/components/card/Card.style.css';/* empty css */
11
- import "merge-props";
12
- /* empty css */
13
- import "@tabler/icons-react";
14
- import "../../utils/contextStore.js";
15
- /* empty css */
16
- import "../button/Button.js";
17
- /* empty css */
18
- import { DNamespaceReactiveService as g } from "./DNamespace.service.js";
19
- /* empty css */
20
- import "@radix-ui/react-dropdown-menu";
21
- import { DNamespaceRoleReactiveService as k } from "./role/DNamespaceRole.service.js";
22
- import { DNamespaceRoleView as u } from "./role/DNamespaceRole.view.js";
23
- import { DNamespaceView as z } from "./DNamespace.view.js";
1
+ import { DNamespaceReactiveService as r } from "./DNamespace.service.js";
2
+ import { DNamespaceView as m } from "./DNamespace.view.js";
24
3
  export {
25
- R as DNamespaceLicenseReactiveService,
26
- S as DNamespaceLicenseView,
27
- b as DNamespaceMemberReactiveService,
28
- l as DNamespaceMemberView,
29
- L as DNamespaceProjectReactiveService,
30
- P as DNamespaceProjectView,
31
- g as DNamespaceReactiveService,
32
- k as DNamespaceRoleReactiveService,
33
- u as DNamespaceRoleView,
34
- z as DNamespaceView
4
+ r as DNamespaceReactiveService,
5
+ m as DNamespaceView
35
6
  };
@@ -1,8 +1,8 @@
1
1
  import { ReactiveArrayService } from '../../utils/reactiveArrayService';
2
2
  import { DOrganizationView } from './DOrganization.view';
3
- import { OrganizationsCreateInput, OrganizationsCreatePayload, OrganizationsDeleteInput, OrganizationsDeletePayload, Scalars } from '@code0-tech/sagittarius-graphql-types';
3
+ import { Organization, OrganizationsCreateInput, OrganizationsCreatePayload, OrganizationsDeleteInput, OrganizationsDeletePayload } from '@code0-tech/sagittarius-graphql-types';
4
4
  export declare abstract class DOrganizationReactiveService extends ReactiveArrayService<DOrganizationView> {
5
- getById(id: Scalars["OrganizationID"]["input"]): DOrganizationView | undefined;
5
+ getById(id: Organization["id"]): DOrganizationView | undefined;
6
6
  abstract organizationCreate(payload: OrganizationsCreateInput): Promise<OrganizationsCreatePayload | undefined>;
7
7
  abstract organizationDelete(payload: OrganizationsDeleteInput): Promise<OrganizationsDeletePayload | undefined>;
8
8
  }
@@ -1,4 +1,4 @@
1
- import { Maybe, Namespace, Organization, Scalars } from '@code0-tech/sagittarius-graphql-types';
1
+ import { Maybe, Namespace, Organization, OrganizationUserAbilities, Scalars } from '@code0-tech/sagittarius-graphql-types';
2
2
  export declare class DOrganizationView {
3
3
  private readonly _createdAt?;
4
4
  /** Global ID of this Organization */
@@ -9,12 +9,15 @@ export declare class DOrganizationView {
9
9
  private readonly _namespace?;
10
10
  /** Time when this Organization was last updated */
11
11
  private readonly _updatedAt?;
12
+ /** Abilities for the current user on this Organization */
13
+ private readonly _userAbilities?;
12
14
  constructor(payload: Organization);
13
15
  get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
14
16
  get id(): Maybe<Scalars["OrganizationID"]["output"] | undefined>;
15
17
  get name(): Maybe<Scalars["String"]["output"]> | undefined;
16
18
  get namespace(): Maybe<Namespace> | undefined;
17
19
  get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
20
+ get userAbilities(): Maybe<OrganizationUserAbilities> | undefined;
18
21
  set name(value: Maybe<Scalars["String"]["output"]>);
19
22
  json(): Organization;
20
23
  }
@@ -1,23 +1,23 @@
1
- function r(e, t, i) {
2
- return (t = a(t)) in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
1
+ function i(t, e, r) {
2
+ return (e = n(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
3
3
  }
4
- function a(e) {
5
- var t = s(e, "string");
6
- return typeof t == "symbol" ? t : t + "";
4
+ function n(t) {
5
+ var e = a(t, "string");
6
+ return typeof e == "symbol" ? e : e + "";
7
7
  }
8
- function s(e, t) {
9
- if (typeof e != "object" || !e) return e;
10
- var i = e[Symbol.toPrimitive];
11
- if (i !== void 0) {
12
- var n = i.call(e, t);
13
- if (typeof n != "object") return n;
8
+ function a(t, e) {
9
+ if (typeof t != "object" || !t) return t;
10
+ var r = t[Symbol.toPrimitive];
11
+ if (r !== void 0) {
12
+ var s = r.call(t, e);
13
+ if (typeof s != "object") return s;
14
14
  throw new TypeError("@@toPrimitive must return a primitive value.");
15
15
  }
16
- return (t === "string" ? String : Number)(e);
16
+ return (e === "string" ? String : Number)(t);
17
17
  }
18
- class d {
19
- constructor(t) {
20
- r(this, "_createdAt", void 0), r(this, "_id", void 0), r(this, "_name", void 0), r(this, "_namespace", void 0), r(this, "_updatedAt", void 0), this._createdAt = t.createdAt, this._id = t.id, this._name = t.name, this._namespace = t.namespace, this._updatedAt = t.updatedAt;
18
+ class u {
19
+ constructor(e) {
20
+ i(this, "_createdAt", void 0), i(this, "_id", void 0), i(this, "_name", void 0), i(this, "_namespace", void 0), i(this, "_updatedAt", void 0), i(this, "_userAbilities", void 0), this._createdAt = e.createdAt, this._id = e.id, this._name = e.name, this._namespace = e.namespace, this._updatedAt = e.updatedAt, this._userAbilities = e.userAbilities;
21
21
  }
22
22
  get createdAt() {
23
23
  return this._createdAt;
@@ -34,8 +34,11 @@ class d {
34
34
  get updatedAt() {
35
35
  return this._updatedAt;
36
36
  }
37
- set name(t) {
38
- this._name = t;
37
+ get userAbilities() {
38
+ return this._userAbilities;
39
+ }
40
+ set name(e) {
41
+ this._name = e;
39
42
  }
40
43
  json() {
41
44
  return {
@@ -48,5 +51,5 @@ class d {
48
51
  }
49
52
  }
50
53
  export {
51
- d as DOrganizationView
54
+ u as DOrganizationView
52
55
  };
@@ -1,10 +1,10 @@
1
1
  import { default as React } from 'react';
2
- import { Code0Component } from '../../utils/types';
2
+ import { Code0Component } from '../../utils';
3
3
  import { Scalars } from '@code0-tech/sagittarius-graphql-types';
4
4
  export interface DOrganizationCardProps extends Code0Component<HTMLDivElement> {
5
5
  organizationId: Scalars['OrganizationID']['output'];
6
- onSettingsClick?: (organizationId: Scalars['OrganizationID']['output']) => void;
7
- onLeaveClick?: (organizationId: Scalars['OrganizationID']['output']) => void;
6
+ onSetting?: (organizationId: Scalars['OrganizationID']['output']) => void;
7
+ onLeave?: (organizationId: Scalars['OrganizationID']['output']) => void;
8
8
  }
9
9
  declare const DOrganizationCard: React.FC<DOrganizationCardProps>;
10
10
  export default DOrganizationCard;
@@ -1,79 +1,16 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import b from "react";
3
- import { Card as j } from "../card/Card.js";
4
- import { Text as t } from "../text/Text.js";
5
- import { useStore as c, useService as a } from "../../utils/contextStore.js";
6
- import { DOrganizationReactiveService as g } from "./DOrganization.service.js";
7
- import { IconFolder as $, IconUser as k, IconServer as D, IconSettings as L, IconLogout as R } from "@tabler/icons-react";
8
- import { Flex as i } from "../flex/Flex.js";
9
- import { Button as d } from "../button/Button.js";
10
- import { DNamespaceReactiveService as h } from "../d-namespace/DNamespace.service.js";
11
- import { DNamespaceLicenseReactiveService as y } from "../d-namespace/license/DNamespaceLicense.service.js";
12
- import { Spacing as B } from "../spacing/Spacing.js";
13
- import { Avatar as w } from "../avatar/Avatar.js";
14
- const K = (u) => {
15
- const {
16
- organizationId: o,
17
- onSettingsClick: f = () => {
18
- },
19
- onLeaveClick: z = () => {
20
- }
21
- } = u, S = c(g), v = a(g), x = c(h), C = a(h), I = c(y);
22
- a(y);
23
- const n = v.getById(o);
24
- if (!n?.namespace?.id) return;
25
- const s = C.getById(n?.namespace?.id), m = n?.namespace?.projects?.count, l = s?.members?.count, p = s?.runtimes?.count;
26
- return b.useMemo(() => /* @__PURE__ */ e(j, { children: /* @__PURE__ */ r(i, { align: "center", style: {
27
- gap: "1.3rem"
28
- }, justify: "space-between", children: [
29
- /* @__PURE__ */ r(i, { align: "center", style: {
30
- gap: "1.3rem"
31
- }, children: [
32
- /* @__PURE__ */ e(w, { bg: "transparent", identifier: n?.name ?? "" }),
33
- /* @__PURE__ */ r(i, { style: {
34
- flexDirection: "column"
35
- }, children: [
36
- /* @__PURE__ */ e(t, { size: "lg", hierarchy: "primary", display: "block", children: n?.name }),
37
- /* @__PURE__ */ e(B, { spacing: "xxs" }),
38
- /* @__PURE__ */ r(i, { align: "center", style: {
39
- gap: "1.3rem",
40
- flexWrap: "wrap"
41
- }, children: [
42
- /* @__PURE__ */ r(i, { align: "center", style: {
43
- gap: "0.35rem"
44
- }, children: [
45
- /* @__PURE__ */ e($, { size: 18 }),
46
- /* @__PURE__ */ e(t, { size: "xs", hierarchy: "tertiary", children: `${m ?? 0} project${(m ?? 0) !== 1 ? "s" : ""}` })
47
- ] }),
48
- /* @__PURE__ */ r(i, { align: "center", style: {
49
- gap: "0.35rem"
50
- }, children: [
51
- /* @__PURE__ */ e(k, { size: 18 }),
52
- /* @__PURE__ */ r(t, { size: "xs", hierarchy: "tertiary", children: [
53
- " ",
54
- `${l ?? 0} member${(l ?? 0) !== 1 ? "s" : ""}`
55
- ] })
56
- ] }),
57
- /* @__PURE__ */ r(i, { align: "center", style: {
58
- gap: "0.35rem"
59
- }, children: [
60
- /* @__PURE__ */ e(D, { size: 18 }),
61
- /* @__PURE__ */ e(t, { size: "xs", hierarchy: "tertiary", children: `${p ?? 0} runtime${(p ?? 0) !== 1 ? "s" : ""}` })
62
- ] })
63
- ] })
64
- ] })
65
- ] }),
66
- /* @__PURE__ */ r(i, { align: "center", style: {
67
- gap: "0.35rem"
68
- }, children: [
69
- /* @__PURE__ */ e(d, { color: "secondary", onClick: () => f(o), children: /* @__PURE__ */ e(L, { size: 16 }) }),
70
- /* @__PURE__ */ r(d, { color: "error", onClick: () => z(o), children: [
71
- /* @__PURE__ */ e(R, { size: 16 }),
72
- " Leave"
73
- ] })
74
- ] })
75
- ] }) }), [S, x, I]);
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { c as m } from "../../_virtual/compiler-runtime.js";
3
+ import { Card as s } from "../card/Card.js";
4
+ import { DOrganizationContent as c } from "./DOrganizatonContent.js";
5
+ const g = (a) => {
6
+ const o = m.c(4), {
7
+ organizationId: r,
8
+ onLeave: n,
9
+ onSetting: i
10
+ } = a;
11
+ let t;
12
+ return o[0] !== n || o[1] !== i || o[2] !== r ? (t = /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(c, { onLeave: n, onSetting: i, organizationId: r }) }), o[0] = n, o[1] = i, o[2] = r, o[3] = t) : t = o[3], t;
76
13
  };
77
14
  export {
78
- K as default
15
+ g as default
79
16
  };
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { Card } from '../card/Card';
3
+ import { DOrganizationView } from './DOrganization.view';
4
+ import { Scalars } from '@code0-tech/sagittarius-graphql-types';
5
+ export interface DOrganizationListProps extends Omit<Card, "children"> {
6
+ filter?: (organizations: DOrganizationView, index: number) => boolean;
7
+ onSetting?: (organizationId: Scalars['OrganizationID']['output']) => void;
8
+ onLeave?: (organizationId: Scalars['OrganizationID']['output']) => void;
9
+ }
10
+ export declare const DOrganizationList: React.FC<DOrganizationListProps>;
@@ -0,0 +1,20 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import d from "react";
3
+ import { Card as f } from "../card/Card.js";
4
+ import { useService as u, useStore as S } from "../../utils/contextStore.js";
5
+ import "merge-props";
6
+ import { DOrganizationReactiveService as t } from "./DOrganization.service.js";
7
+ import g from "../card/CardSection.js";
8
+ import { DOrganizationContent as v } from "./DOrganizatonContent.js";
9
+ const R = (i) => {
10
+ const e = u(t), n = S(t), a = d.useMemo(() => e.values(), [n]), {
11
+ filter: m = () => !0,
12
+ onLeave: c,
13
+ onSetting: s,
14
+ ...p
15
+ } = i;
16
+ return /* @__PURE__ */ o(f, { ...p, children: a.filter(m).map((r) => r.id && /* @__PURE__ */ o(g, { border: !0, children: /* @__PURE__ */ o(v, { onLeave: c, onSetting: s, organizationId: r?.id }) }, r.id)) });
17
+ };
18
+ export {
19
+ R as DOrganizationList
20
+ };
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { Code0Component } from '../../utils';
3
+ import { Scalars } from '@code0-tech/sagittarius-graphql-types';
4
+ export interface DOrganizationCardProps extends Code0Component<HTMLDivElement> {
5
+ organizationId: Scalars['OrganizationID']['output'];
6
+ onSetting?: (organizationId: Scalars['OrganizationID']['output']) => void;
7
+ onLeave?: (organizationId: Scalars['OrganizationID']['output']) => void;
8
+ }
9
+ export declare const DOrganizationContent: React.FC<DOrganizationCardProps>;