datastake-daf 0.6.791 → 0.6.792

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.
@@ -42107,17 +42107,20 @@ function AuthForm(_ref) {
42107
42107
  case "number":
42108
42108
  inputNode = /*#__PURE__*/jsxRuntime.jsx(antd.Input, _objectSpread2({
42109
42109
  type: field.type,
42110
- placeholder: field.placeholder
42110
+ placeholder: field.placeholder,
42111
+ disabled: field.disabled
42111
42112
  }, field.props));
42112
42113
  break;
42113
42114
  case "password":
42114
42115
  inputNode = /*#__PURE__*/jsxRuntime.jsx(antd.Input.Password, _objectSpread2({
42115
- placeholder: field.placeholder
42116
+ placeholder: field.placeholder,
42117
+ disabled: field.disabled
42116
42118
  }, field.props));
42117
42119
  break;
42118
42120
  case "textarea":
42119
42121
  inputNode = /*#__PURE__*/jsxRuntime.jsx(antd.Input.TextArea, _objectSpread2({
42120
- placeholder: field.placeholder
42122
+ placeholder: field.placeholder,
42123
+ disabled: field.disabled
42121
42124
  }, field.props));
42122
42125
  break;
42123
42126
  case "select":
@@ -42126,7 +42129,8 @@ function AuthForm(_ref) {
42126
42129
  const _ref3 = field.props || {},
42127
42130
  restSelectProps = _objectWithoutProperties(_ref3, _excluded$d);
42128
42131
  inputNode = /*#__PURE__*/jsxRuntime.jsx(StyledSelect, _objectSpread2(_objectSpread2({
42129
- placeholder: field.placeholder
42132
+ placeholder: field.placeholder,
42133
+ disabled: field.disabled
42130
42134
  }, restSelectProps), {}, {
42131
42135
  children: (_field$options = field.options) === null || _field$options === void 0 ? void 0 : _field$options.map(opt => /*#__PURE__*/jsxRuntime.jsx(antd.Select.Option, {
42132
42136
  value: opt.value,
@@ -42140,7 +42144,8 @@ function AuthForm(_ref) {
42140
42144
  break;
42141
42145
  default:
42142
42146
  inputNode = /*#__PURE__*/jsxRuntime.jsx(antd.Input, _objectSpread2({
42143
- placeholder: field.placeholder
42147
+ placeholder: field.placeholder,
42148
+ disabled: field.disabled
42144
42149
  }, field.props));
42145
42150
  }
42146
42151
  const formItemProps = {
@@ -32870,7 +32870,7 @@ const getFiltersConfig$3 = ({
32870
32870
  getLabel: option => option.label,
32871
32871
  getValue: option => option.value
32872
32872
  },
32873
- type: {
32873
+ category: {
32874
32874
  type: 'select',
32875
32875
  label: 'Type',
32876
32876
  placeholder: () => `${t('Filter by')} ${t('Type').toLowerCase()}`,
@@ -32924,13 +32924,14 @@ const getFilterOptions$3 = (options, t) => {
32924
32924
  administrativeLevel1,
32925
32925
  administrativeLevel2,
32926
32926
  mineralOptions,
32927
+ productionSiteCategories,
32927
32928
  locationCategories = []
32928
32929
  } = options || {};
32929
32930
  const _default = {
32930
- category: stakeholderCategoryOptions || categoryOptions,
32931
+ // category: stakeholderCategoryOptions || categoryOptions,
32931
32932
  country: countries,
32932
32933
  product: mineralOptions,
32933
- type: locationCategories,
32934
+ category: productionSiteCategories || locationCategories,
32934
32935
  administrativeLevel1,
32935
32936
  administrativeLevel2,
32936
32937
  subCategory: subCategoriesOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.791",
3
+ "version": "0.6.792",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -128,13 +128,13 @@ function AuthForm ({
128
128
  case "input":
129
129
  case "email":
130
130
  case "number":
131
- inputNode = <Input type={field.type} placeholder={field.placeholder} {...field.props} />;
131
+ inputNode = <Input type={field.type} placeholder={field.placeholder} disabled={field.disabled} {...field.props} />;
132
132
  break;
133
133
  case "password":
134
- inputNode = <Input.Password placeholder={field.placeholder} {...field.props} />;
134
+ inputNode = <Input.Password placeholder={field.placeholder} disabled={field.disabled} {...field.props} />;
135
135
  break;
136
136
  case "textarea":
137
- inputNode = <Input.TextArea placeholder={field.placeholder} {...field.props} />;
137
+ inputNode = <Input.TextArea placeholder={field.placeholder} disabled={field.disabled} {...field.props} />;
138
138
  break;
139
139
  case "select": {
140
140
  const { onChange: fieldOnChange, value: fieldValue, ...restSelectProps } = field.props || {};
@@ -142,6 +142,7 @@ function AuthForm ({
142
142
  inputNode = (
143
143
  <StyledSelect
144
144
  placeholder={field.placeholder}
145
+ disabled={field.disabled}
145
146
  {...restSelectProps}
146
147
  >
147
148
  {field.options?.map((opt) => (
@@ -157,7 +158,7 @@ function AuthForm ({
157
158
  inputNode = field.component;
158
159
  break;
159
160
  default:
160
- inputNode = <Input placeholder={field.placeholder} {...field.props} />;
161
+ inputNode = <Input placeholder={field.placeholder} disabled={field.disabled} {...field.props} />;
161
162
  }
162
163
 
163
164
  const formItemProps = {
@@ -81,7 +81,7 @@ export const getFiltersConfig = ({t}) => {
81
81
  getLabel: (option) => option.label,
82
82
  getValue: (option) => option.value,
83
83
  },
84
- type: {
84
+ category: {
85
85
  type: 'select',
86
86
  label: 'Type',
87
87
  placeholder: () => `${t('Filter by')} ${t('Type').toLowerCase()}`,
@@ -124,14 +124,15 @@ export const getFilterOptions = (options, t) => {
124
124
  administrativeLevel1,
125
125
  administrativeLevel2,
126
126
  mineralOptions,
127
+ productionSiteCategories,
127
128
  locationCategories = [],
128
129
  } = options || {};
129
130
 
130
131
  const _default = {
131
- category: stakeholderCategoryOptions || categoryOptions,
132
+ // category: stakeholderCategoryOptions || categoryOptions,
132
133
  country: countries,
133
134
  product: mineralOptions,
134
- type: locationCategories,
135
+ category: productionSiteCategories || locationCategories,
135
136
  administrativeLevel1,
136
137
  administrativeLevel2,
137
138
  subCategory: subCategoriesOptions,