@code0-tech/pictor 0.0.0-mvp.14 → 0.0.0-mvp.16

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 (81) 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/d-layout/DLayout.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-layout/DLayout.js +25 -25
  9. package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.service.d.ts +1 -1
  10. package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.service.js +1 -1
  11. package/dist/components/d-license/index.d.ts +2 -0
  12. package/dist/components/d-license/index.js +6 -0
  13. package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.service.d.ts +3 -2
  14. package/dist/components/d-member/DNamespaceMember.service.js +14 -0
  15. package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.d.ts +4 -1
  16. package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.js +4 -1
  17. package/dist/components/d-member/index.d.ts +2 -0
  18. package/dist/components/d-member/index.js +6 -0
  19. package/dist/components/d-namespace/index.d.ts +0 -10
  20. package/dist/components/d-namespace/index.js +4 -33
  21. package/dist/components/d-organization/DOrganization.service.d.ts +2 -2
  22. package/dist/components/d-organization/DOrganization.view.d.ts +4 -1
  23. package/dist/components/d-organization/DOrganization.view.js +21 -18
  24. package/dist/components/d-organization/DOrganizationCard.d.ts +3 -3
  25. package/dist/components/d-organization/DOrganizationCard.js +13 -76
  26. package/dist/components/d-organization/DOrganizationList.d.ts +10 -0
  27. package/dist/components/d-organization/DOrganizationList.js +20 -0
  28. package/dist/components/d-organization/DOrganizatonContent.d.ts +9 -0
  29. package/dist/components/d-organization/DOrganizatonContent.js +82 -0
  30. package/dist/components/d-organization/index.d.ts +1 -0
  31. package/dist/components/d-organization/index.js +8 -5
  32. package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.service.d.ts +1 -1
  33. package/dist/components/d-project/DNamespaceProject.service.js +14 -0
  34. package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.d.ts +4 -1
  35. package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.js +13 -10
  36. package/dist/components/{d-namespace/project → d-project}/DNamespaceProjectCard.d.ts +1 -1
  37. package/dist/components/d-project/DNamespaceProjectCard.js +15 -0
  38. package/dist/components/d-project/DNamespaceProjectContent.d.ts +8 -0
  39. package/dist/components/d-project/DNamespaceProjectContent.js +68 -0
  40. package/dist/components/d-project/DNamespaceProjectList.d.ts +9 -0
  41. package/dist/components/d-project/DNamespaceProjectList.js +19 -0
  42. package/dist/components/{d-namespace/project → d-project}/DNamespaceProjectMenu.d.ts +1 -1
  43. package/dist/components/{d-namespace/project → d-project}/DNamespaceProjectMenu.js +3 -3
  44. package/dist/components/d-project/index.d.ts +5 -0
  45. package/dist/components/d-project/index.js +24 -0
  46. package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.service.d.ts +1 -1
  47. package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.service.js +1 -1
  48. package/dist/components/d-role/index.d.ts +2 -0
  49. package/dist/components/d-role/index.js +6 -0
  50. package/dist/components/d-runtime/DRuntime.view.d.ts +4 -1
  51. package/dist/components/d-runtime/DRuntime.view.js +6 -3
  52. package/dist/components/d-runtime/DRuntimeCard.d.ts +7 -0
  53. package/dist/components/d-runtime/DRuntimeCard.js +17 -0
  54. package/dist/components/d-runtime/DRuntimeContent.d.ts +7 -0
  55. package/dist/components/d-runtime/DRuntimeContent.js +38 -0
  56. package/dist/components/d-runtime/DRuntimeList.d.ts +9 -0
  57. package/dist/components/d-runtime/DRuntimeList.js +19 -0
  58. package/dist/components/d-runtime/index.d.ts +2 -0
  59. package/dist/components/d-runtime/index.js +6 -2
  60. package/dist/components/d-user/DUser.view.d.ts +4 -1
  61. package/dist/components/d-user/DUser.view.js +13 -10
  62. package/dist/components/d-user/DUserCard.d.ts +7 -0
  63. package/dist/components/d-user/DUserCard.js +15 -0
  64. package/dist/components/d-user/DUserContent.d.ts +7 -0
  65. package/dist/components/d-user/DUserContent.js +84 -0
  66. package/dist/components/d-user/DUserList.d.ts +9 -0
  67. package/dist/components/d-user/DUserList.js +19 -0
  68. package/dist/components/d-user/index.d.ts +2 -0
  69. package/dist/components/d-user/index.js +11 -7
  70. package/dist/components/form/useForm.d.ts +2 -1
  71. package/dist/components/form/useForm.js +27 -18
  72. package/dist/index.d.ts +4 -0
  73. package/dist/index.js +184 -172
  74. package/package.json +20 -19
  75. package/dist/components/d-namespace/member/DNamespaceMember.service.js +0 -11
  76. package/dist/components/d-namespace/project/DNamespaceProject.service.js +0 -11
  77. package/dist/components/d-namespace/project/DNamespaceProjectCard.js +0 -57
  78. /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.d.ts +0 -0
  79. /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.js +0 -0
  80. /package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.d.ts +0 -0
  81. /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
- .d-layout{position:relative;width:100%;height:100%;overflow:hidden}.d-layout>.flex,.d-layout>.flex>.flex{width:100%;height:100%;gap:1.3rem}.d-layout__content{width:100%}
1
+ .d-layout{position:relative;width:100%;height:100%;overflow:hidden;display:flex}.d-layout__inner{display:flex;flex-direction:column;width:100%;height:100%;gap:1.3rem}.d-layout__top,.d-layout__bottom{flex:0 0 auto}.d-layout__middle{display:flex;flex:1 1 auto;min-height:0;width:100%;gap:1.3rem}.d-layout__left,.d-layout__right{flex:0 0 auto}.d-layout__content{flex:1 1 auto;min-width:0;min-height:0;overflow:auto}
@@ -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,51 +1,51 @@
1
1
  import { jsx as h, jsxs as p } from "react/jsx-runtime";
2
2
  import { c as E } from "../../_virtual/compiler-runtime.js";
3
3
  import { mergeCode0Props as F } from "../../utils/utils.js";
4
- import { Flex as v } from "../flex/Flex.js";
4
+ import { Flex as N } from "../flex/Flex.js";
5
5
  import '../../assets/components/d-layout/DLayout.style.css';/* empty css */
6
6
  const k = (C) => {
7
7
  const t = E.c(29);
8
- let e, i, l, o, r, n;
8
+ let e, n, l, o, s, i;
9
9
  if (t[0] !== C) {
10
10
  const {
11
- children: x,
12
- topContent: N,
11
+ children: v,
12
+ topContent: x,
13
13
  bottomContent: b,
14
14
  leftContent: g,
15
15
  rightContent: j,
16
16
  ...D
17
17
  } = C;
18
- i = x, n = N, e = b, l = g, o = j, r = F("d-layout", D), t[0] = C, t[1] = e, t[2] = i, t[3] = l, t[4] = o, t[5] = r, t[6] = n;
18
+ n = v, i = x, e = b, l = g, o = j, s = F("d-layout", D), t[0] = C, t[1] = e, t[2] = n, t[3] = l, t[4] = o, t[5] = s, t[6] = i;
19
19
  } else
20
- e = t[1], i = t[2], l = t[3], o = t[4], r = t[5], n = t[6];
21
- let _;
22
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
20
+ e = t[1], n = t[2], l = t[3], o = t[4], s = t[5], i = t[6];
21
+ let u;
22
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (u = {
23
23
  flexDirection: "column"
24
- }, t[7] = _) : _ = t[7];
25
- let s;
26
- t[8] !== n ? (s = n ? /* @__PURE__ */ h("div", { className: "d-layout__top", children: n }) : null, t[8] = n, t[9] = s) : s = t[9];
24
+ }, t[7] = u) : u = t[7];
25
+ let r;
26
+ t[8] !== i ? (r = i && /* @__PURE__ */ h("div", { className: "d-layout__top", children: i }), t[8] = i, t[9] = r) : r = t[9];
27
27
  let c;
28
- t[10] !== l ? (c = l ? /* @__PURE__ */ h("div", { className: "d-layout__left", children: l }) : null, t[10] = l, t[11] = c) : c = t[11];
28
+ t[10] !== l ? (c = l && /* @__PURE__ */ h("div", { className: "d-layout__left", children: l }), t[10] = l, t[11] = c) : c = t[11];
29
29
  let m;
30
- t[12] !== i ? (m = /* @__PURE__ */ h("div", { className: "d-layout__content", children: i }), t[12] = i, t[13] = m) : m = t[13];
31
- let d;
32
- t[14] !== o ? (d = o ? /* @__PURE__ */ h("div", { className: "d-layout__right", children: o }) : null, t[14] = o, t[15] = d) : d = t[15];
30
+ t[12] !== n ? (m = /* @__PURE__ */ h("div", { className: "d-layout__content", children: n }), t[12] = n, t[13] = m) : m = t[13];
33
31
  let a;
34
- t[16] !== c || t[17] !== m || t[18] !== d ? (a = /* @__PURE__ */ p(v, { children: [
32
+ t[14] !== o ? (a = o && /* @__PURE__ */ h("div", { className: "d-layout__right", children: o }), t[14] = o, t[15] = a) : a = t[15];
33
+ let d;
34
+ t[16] !== c || t[17] !== m || t[18] !== a ? (d = /* @__PURE__ */ p(N, { className: "d-layout__middle", children: [
35
35
  c,
36
36
  m,
37
- d
38
- ] }), t[16] = c, t[17] = m, t[18] = d, t[19] = a) : a = t[19];
37
+ a
38
+ ] }), t[16] = c, t[17] = m, t[18] = a, t[19] = d) : d = t[19];
39
39
  let f;
40
- t[20] !== e ? (f = e ? /* @__PURE__ */ h("div", { className: "d-layout__bottom", children: e }) : null, t[20] = e, t[21] = f) : f = t[21];
41
- let u;
42
- t[22] !== s || t[23] !== a || t[24] !== f ? (u = /* @__PURE__ */ p(v, { style: _, children: [
43
- s,
44
- a,
40
+ t[20] !== e ? (f = e && /* @__PURE__ */ h("div", { className: "d-layout__bottom", children: e }), t[20] = e, t[21] = f) : f = t[21];
41
+ let _;
42
+ t[22] !== r || t[23] !== d || t[24] !== f ? (_ = /* @__PURE__ */ p(N, { className: "d-layout__inner", style: u, children: [
43
+ r,
44
+ d,
45
45
  f
46
- ] }), t[22] = s, t[23] = a, t[24] = f, t[25] = u) : u = t[25];
46
+ ] }), t[22] = r, t[23] = d, t[24] = f, t[25] = _) : _ = t[25];
47
47
  let y;
48
- return t[26] !== r || t[27] !== u ? (y = /* @__PURE__ */ h("div", { ...r, children: u }), t[26] = r, t[27] = u, t[28] = y) : y = t[28], y;
48
+ return t[26] !== s || t[27] !== _ ? (y = /* @__PURE__ */ h("div", { ...s, children: _ }), t[26] = s, t[27] = _, t[28] = y) : y = t[28], y;
49
49
  };
50
50
  export {
51
51
  k as DLayout
@@ -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;