datastake-daf 0.6.279 → 0.6.280

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.
@@ -3006,7 +3006,7 @@ const config$4 = {
3006
3006
  viewBox: "0 0 15 15",
3007
3007
  children: /*#__PURE__*/jsxRuntime.jsx("path", {
3008
3008
  d: "M7.66657 9.33337L5.66657 7.33337M9.0068 2.33337V1.33337M11.633 3.37381L12.3401 2.66671M11.633 8.66671L12.3401 9.37381M6.34013 3.37381L5.63303 2.66671M12.6735 6.00004H13.6735M3.08748 13.9125L9.24565 7.75429C9.50966 7.49028 9.64167 7.35827 9.69113 7.20605C9.73463 7.07216 9.73463 6.92792 9.69113 6.79403C9.64167 6.64181 9.50966 6.5098 9.24565 6.24579L8.75415 5.75429C8.49013 5.49028 8.35813 5.35827 8.20591 5.30881C8.07201 5.26531 7.92778 5.26531 7.79389 5.30881C7.64167 5.35827 7.50966 5.49028 7.24565 5.75429L1.08748 11.9125C0.823469 12.1765 0.691463 12.3085 0.642004 12.4607C0.598499 12.5946 0.598499 12.7388 0.642004 12.8727C0.691463 13.0249 0.823469 13.1569 1.08748 13.421L1.57899 13.9125C1.843 14.1765 1.975 14.3085 2.12722 14.3579C2.26112 14.4014 2.40535 14.4014 2.53924 14.3579C2.69146 14.3085 2.82347 14.1765 3.08748 13.9125Z",
3009
- stroke: "#6C737F",
3009
+ stroke: "currentColor",
3010
3010
  strokeLinecap: "round",
3011
3011
  strokeLinejoin: "round"
3012
3012
  })
@@ -14093,8 +14093,9 @@ const determineHasChildren = ({
14093
14093
 
14094
14094
  const sortByPosition = (items, getConfig) => {
14095
14095
  return items.sort((a, b) => {
14096
- const positionA = getConfig(a)?.position || 0;
14097
- const positionB = getConfig(b)?.position || 0;
14096
+ var _getConfig, _getConfig2;
14097
+ const positionA = ((_getConfig = getConfig(a)) === null || _getConfig === void 0 ? void 0 : _getConfig.position) || 0;
14098
+ const positionB = ((_getConfig2 = getConfig(b)) === null || _getConfig2 === void 0 ? void 0 : _getConfig2.position) || 0;
14098
14099
  return positionA - positionB;
14099
14100
  });
14100
14101
  };
@@ -14111,7 +14112,7 @@ const resolveDynamicLabel = (labelConfig, item, defaultLabel) => {
14111
14112
  const parts = labelKey.split(' is ');
14112
14113
  if (parts.length === 2) {
14113
14114
  const [conditionKey, conditionValue] = parts;
14114
- if (item?.[conditionKey] === conditionValue) {
14115
+ if ((item === null || item === void 0 ? void 0 : item[conditionKey]) === conditionValue) {
14115
14116
  return labelConfig[labelKey];
14116
14117
  }
14117
14118
  }
@@ -40281,33 +40282,15 @@ const GetFormItem$1 = ({
40281
40282
  })
40282
40283
  })
40283
40284
  }) : /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
40284
- title: t("P"),
40285
+ title: t("Project Readiness"),
40285
40286
  children: /*#__PURE__*/jsxRuntime.jsx("div", {
40286
40287
  children: /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
40287
40288
  type: "link",
40288
- disabled: !input.meta?.comment,
40289
- ...(!isShown ? {
40290
- className: "default p-0"
40291
- } : {
40292
- className: "p-0 primary"
40293
- }),
40294
- onClick: () => {
40295
- if (inputMeta.comment !== undefined && inputMeta.comment !== null) {
40296
- return;
40297
- }
40298
- setIsShown(true);
40299
- changeInputMeta({
40300
- key: inputKey,
40301
- type: input.type,
40302
- value: {
40303
- comment: ""
40304
- }
40305
- });
40306
- },
40289
+ className: "default p-0",
40307
40290
  children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
40308
40291
  name: "MagicWand",
40309
- width: 17,
40310
- height: 17
40292
+ width: 16,
40293
+ height: 16
40311
40294
  })
40312
40295
  })
40313
40296
  })
@@ -3108,7 +3108,7 @@ const config$2 = {
3108
3108
  viewBox: "0 0 15 15",
3109
3109
  children: /*#__PURE__*/jsxRuntime.jsx("path", {
3110
3110
  d: "M7.66657 9.33337L5.66657 7.33337M9.0068 2.33337V1.33337M11.633 3.37381L12.3401 2.66671M11.633 8.66671L12.3401 9.37381M6.34013 3.37381L5.63303 2.66671M12.6735 6.00004H13.6735M3.08748 13.9125L9.24565 7.75429C9.50966 7.49028 9.64167 7.35827 9.69113 7.20605C9.73463 7.07216 9.73463 6.92792 9.69113 6.79403C9.64167 6.64181 9.50966 6.5098 9.24565 6.24579L8.75415 5.75429C8.49013 5.49028 8.35813 5.35827 8.20591 5.30881C8.07201 5.26531 7.92778 5.26531 7.79389 5.30881C7.64167 5.35827 7.50966 5.49028 7.24565 5.75429L1.08748 11.9125C0.823469 12.1765 0.691463 12.3085 0.642004 12.4607C0.598499 12.5946 0.598499 12.7388 0.642004 12.8727C0.691463 13.0249 0.823469 13.1569 1.08748 13.421L1.57899 13.9125C1.843 14.1765 1.975 14.3085 2.12722 14.3579C2.26112 14.4014 2.40535 14.4014 2.53924 14.3579C2.69146 14.3085 2.82347 14.1765 3.08748 13.9125Z",
3111
- stroke: "#6C737F",
3111
+ stroke: "currentColor",
3112
3112
  strokeLinecap: "round",
3113
3113
  strokeLinejoin: "round"
3114
3114
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.279",
3
+ "version": "0.6.280",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -3064,46 +3064,16 @@ export const GetFormItem = ({
3064
3064
  </div>
3065
3065
  </Tooltip>
3066
3066
  ) : (
3067
- <Tooltip title={t("P")}>
3067
+ <Tooltip title={t("Project Readiness")}>
3068
3068
  <div>
3069
3069
  <Button
3070
3070
  type="link"
3071
- disabled={
3072
- !input.meta?.comment
3073
- }
3074
- {...(!isShown
3075
- ? {
3076
- className:
3077
- "default p-0",
3078
- }
3079
- : {
3080
- className:
3081
- "p-0 primary",
3082
- })}
3083
- onClick={() => {
3084
- if (
3085
- inputMeta.comment !==
3086
- undefined &&
3087
- inputMeta.comment !==
3088
- null
3089
- ) {
3090
- return;
3091
- }
3092
-
3093
- setIsShown(true);
3094
- changeInputMeta({
3095
- key: inputKey,
3096
- type: input.type,
3097
- value: {
3098
- comment: "",
3099
- },
3100
- });
3101
- }}
3071
+ className="default p-0"
3102
3072
  >
3103
3073
  <CustomIcon
3104
3074
  name="MagicWand"
3105
- width={17}
3106
- height={17}
3075
+ width={16}
3076
+ height={16}
3107
3077
  />
3108
3078
  </Button>
3109
3079
  </div>
@@ -3,7 +3,7 @@ const config = {
3
3
  children: (
4
4
  <path
5
5
  d="M7.66657 9.33337L5.66657 7.33337M9.0068 2.33337V1.33337M11.633 3.37381L12.3401 2.66671M11.633 8.66671L12.3401 9.37381M6.34013 3.37381L5.63303 2.66671M12.6735 6.00004H13.6735M3.08748 13.9125L9.24565 7.75429C9.50966 7.49028 9.64167 7.35827 9.69113 7.20605C9.73463 7.07216 9.73463 6.92792 9.69113 6.79403C9.64167 6.64181 9.50966 6.5098 9.24565 6.24579L8.75415 5.75429C8.49013 5.49028 8.35813 5.35827 8.20591 5.30881C8.07201 5.26531 7.92778 5.26531 7.79389 5.30881C7.64167 5.35827 7.50966 5.49028 7.24565 5.75429L1.08748 11.9125C0.823469 12.1765 0.691463 12.3085 0.642004 12.4607C0.598499 12.5946 0.598499 12.7388 0.642004 12.8727C0.691463 13.0249 0.823469 13.1569 1.08748 13.421L1.57899 13.9125C1.843 14.1765 1.975 14.3085 2.12722 14.3579C2.26112 14.4014 2.40535 14.4014 2.53924 14.3579C2.69146 14.3085 2.82347 14.1765 3.08748 13.9125Z"
6
- stroke="#6C737F"
6
+ stroke="currentColor"
7
7
  strokeLinecap="round"
8
8
  strokeLinejoin="round"
9
9
  />