iglooform 2.4.9 → 2.4.10

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 (47) hide show
  1. package/es/button/style/index.less +11 -25
  2. package/es/form/addable-section/index.d.ts +14 -0
  3. package/es/form/addable-section/index.js +188 -0
  4. package/es/form/addable-section/style/index.d.ts +1 -0
  5. package/es/form/addable-section/style/index.js +1 -0
  6. package/es/form/addable-section/style/index.less +22 -0
  7. package/es/form/element/index.js +11 -0
  8. package/es/form/section/index.js +1 -1
  9. package/es/free-form/addable-section/index.d.ts +13 -0
  10. package/es/free-form/addable-section/index.js +263 -0
  11. package/es/free-form/addable-section/style/index.d.ts +1 -0
  12. package/es/free-form/addable-section/style/index.js +1 -0
  13. package/es/free-form/addable-section/style/index.less +22 -0
  14. package/es/free-form/section/index.js +1 -1
  15. package/es/index.d.ts +1 -0
  16. package/es/index.js +2 -1
  17. package/es/input/style/index.less +9 -1
  18. package/es/locale/en-US/messages.json +2 -0
  19. package/es/locale/id-ID/messages.json +2 -0
  20. package/es/locale/th-TH/messages.json +2 -0
  21. package/es/locale/vi-VN/messages.json +2 -0
  22. package/es/locale/zh-CN/messages.json +2 -0
  23. package/es/utils/form-utils.js +1 -1
  24. package/lib/button/style/index.less +11 -25
  25. package/lib/form/addable-section/index.d.ts +14 -0
  26. package/lib/form/addable-section/index.js +209 -0
  27. package/lib/form/addable-section/style/index.d.ts +1 -0
  28. package/lib/form/addable-section/style/index.js +3 -0
  29. package/lib/form/addable-section/style/index.less +22 -0
  30. package/lib/form/element/index.js +12 -0
  31. package/lib/form/section/index.js +1 -1
  32. package/lib/free-form/addable-section/index.d.ts +13 -0
  33. package/lib/free-form/addable-section/index.js +283 -0
  34. package/lib/free-form/addable-section/style/index.d.ts +1 -0
  35. package/lib/free-form/addable-section/style/index.js +3 -0
  36. package/lib/free-form/addable-section/style/index.less +22 -0
  37. package/lib/free-form/section/index.js +1 -1
  38. package/lib/index.d.ts +1 -0
  39. package/lib/index.js +10 -1
  40. package/lib/input/style/index.less +9 -1
  41. package/lib/locale/en-US/messages.json +2 -0
  42. package/lib/locale/id-ID/messages.json +2 -0
  43. package/lib/locale/th-TH/messages.json +2 -0
  44. package/lib/locale/vi-VN/messages.json +2 -0
  45. package/lib/locale/zh-CN/messages.json +2 -0
  46. package/lib/utils/form-utils.js +1 -1
  47. package/package.json +1 -1
@@ -0,0 +1,283 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/row/style");
9
+
10
+ var _row = _interopRequireDefault(require("antd/es/row"));
11
+
12
+ require("antd/es/col/style");
13
+
14
+ var _col = _interopRequireDefault(require("antd/es/col"));
15
+
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+
18
+ var _react = require("react");
19
+
20
+ var _context = _interopRequireDefault(require("../context"));
21
+
22
+ var _formUtils = require("../../utils/form-utils");
23
+
24
+ var _typography = _interopRequireDefault(require("../../typography"));
25
+
26
+ var _button = _interopRequireDefault(require("../../button"));
27
+
28
+ var _locale = require("../../locale");
29
+
30
+ require("./style/index.less");
31
+
32
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
+
34
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
35
+
36
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
37
+
38
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39
+
40
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
41
+
42
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
43
+
44
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
45
+
46
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
47
+
48
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
49
+
50
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
51
+
52
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
53
+
54
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
55
+
56
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
57
+
58
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
59
+
60
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
61
+
62
+ var AddableSection = function AddableSection(props) {
63
+ var _props$elements = props.elements,
64
+ elements = _props$elements === void 0 ? [] : _props$elements,
65
+ name = props.name,
66
+ label = props.label,
67
+ _props$labelProps = props.labelProps,
68
+ labelProps = _props$labelProps === void 0 ? {} : _props$labelProps,
69
+ _props$contentProps = props.contentProps,
70
+ contentProps = _props$contentProps === void 0 ? {} : _props$contentProps,
71
+ _props$max = props.max,
72
+ max = _props$max === void 0 ? Number.MAX_SAFE_INTEGER : _props$max,
73
+ parentName = props.parentName,
74
+ preview = props.preview,
75
+ disabledFromParent = props.disabledFromParent,
76
+ setShowStepButton = props.setShowStepButton,
77
+ children = props.children;
78
+
79
+ var _useReducer = (0, _react.useReducer)(function (r) {
80
+ return r + 1;
81
+ }, 0),
82
+ _useReducer2 = _slicedToArray(_useReducer, 2),
83
+ _ = _useReducer2[0],
84
+ dispatch = _useReducer2[1];
85
+
86
+ var _useContext = (0, _react.useContext)(_locale.LocaleContext),
87
+ formatMessage = _useContext.formatMessage;
88
+
89
+ var _useContext2 = (0, _react.useContext)(_context.default),
90
+ form = _useContext2.form,
91
+ requiredMark = _useContext2.requiredMark,
92
+ registerDependencies = _useContext2.registerDependencies;
93
+
94
+ var namePath = (0, _formUtils.calcNamePath)(parentName, name);
95
+
96
+ var _useReducer3 = (0, _react.useReducer)(function (state, action) {
97
+ if (action.type === 'add') {
98
+ return [].concat(_toConsumableArray(state), [action.key]);
99
+ }
100
+
101
+ var found = false;
102
+ return state.filter(function (key, index) {
103
+ if (key === action.key) {
104
+ found = true;
105
+ return false;
106
+ }
107
+
108
+ if (found) {
109
+ form === null || form === void 0 ? void 0 : form.setFields([{
110
+ name: (0, _formUtils.calcNamePath)(namePath, index - 1),
111
+ value: form.getFieldValue((0, _formUtils.calcNamePath)(namePath, index))
112
+ }]);
113
+ }
114
+
115
+ return true;
116
+ });
117
+ }, [Date.now()]),
118
+ _useReducer4 = _slicedToArray(_useReducer3, 2),
119
+ groupKeys = _useReducer4[0],
120
+ dispath = _useReducer4[1];
121
+
122
+ (0, _react.useEffect)(function () {
123
+ var dependencies = props.dependencies,
124
+ asserts = props.asserts,
125
+ copyValue = props.copyValue,
126
+ selectValue = props.selectValue,
127
+ shouldRender = props.shouldRender,
128
+ subscribedFields = props.subscribedFields,
129
+ disabled = props.disabled;
130
+ var dependentField = dependencies || [];
131
+
132
+ if (Array.isArray(subscribedFields)) {
133
+ dependentField.push.apply(dependentField, _toConsumableArray(subscribedFields));
134
+ }
135
+
136
+ if (asserts && asserts.length) {
137
+ asserts.forEach(function (_ref) {
138
+ var field = _ref.field;
139
+ return dependentField.push(field);
140
+ });
141
+ }
142
+
143
+ if (copyValue) {
144
+ dependentField.push(copyValue.assert.field);
145
+ }
146
+
147
+ if (selectValue && selectValue.length) {
148
+ selectValue.forEach(function (_ref2) {
149
+ var assert = _ref2.assert;
150
+ return dependentField.push(assert.field);
151
+ });
152
+ }
153
+
154
+ if (shouldRender && !Array.isArray(subscribedFields)) {
155
+ dependentField.push('SUBSCRIBE_ALL');
156
+ }
157
+
158
+ if (Array.isArray(disabled)) {
159
+ disabled.forEach(function (_ref3) {
160
+ var field = _ref3.field;
161
+ return dependentField.push(field);
162
+ });
163
+ } else if (_typeof(disabled) === 'object') {
164
+ dependentField.push(disabled.field);
165
+ }
166
+
167
+ registerDependencies(dependentField, dispatch);
168
+ }, []);
169
+
170
+ var _calcFormItemProps = (0, _formUtils.calcFormItemProps)(props, {
171
+ requiredMark: requiredMark
172
+ }, form, parentName),
173
+ formItemProps = _calcFormItemProps.formItemProps,
174
+ elementProps = _calcFormItemProps.elementProps,
175
+ display = _calcFormItemProps.display;
176
+
177
+ if (formItemProps.copiedValue.copied) {
178
+ var currentValue = form === null || form === void 0 ? void 0 : form.getFieldValue(namePath);
179
+
180
+ var value = _objectSpread(_objectSpread({}, currentValue), formItemProps.copiedValue.value);
181
+
182
+ form === null || form === void 0 ? void 0 : form.setFields([{
183
+ name: namePath,
184
+ value: value,
185
+ errors: []
186
+ }]);
187
+ }
188
+
189
+ var transformChildren = function transformChildren(parentName) {
190
+ if (Array.isArray(children)) {
191
+ return children.map(function (c, index) {
192
+ var _c$type;
193
+
194
+ if (['Igloo_Free_Form_Item', 'Igloo_Free_Form_Section'].includes(c === null || c === void 0 ? void 0 : (_c$type = c.type) === null || _c$type === void 0 ? void 0 : _c$type.displayName)) {
195
+ return /*#__PURE__*/(0, _react.cloneElement)(c, _objectSpread(_objectSpread({}, c.props), {}, {
196
+ parentName: parentName,
197
+ key: c.props.key || index,
198
+ setShowStepButton: setShowStepButton,
199
+ preview: preview,
200
+ disabledFromParent: elementProps.disabled || disabledFromParent
201
+ }));
202
+ }
203
+
204
+ return c;
205
+ });
206
+ }
207
+
208
+ return /*#__PURE__*/(0, _react.isValidElement)(children) ? /*#__PURE__*/(0, _react.cloneElement)(children, _objectSpread(_objectSpread({}, children.props), {}, {
209
+ parentName: parentName,
210
+ setShowStepButton: setShowStepButton,
211
+ preview: preview,
212
+ disabledFromParent: elementProps.disabled
213
+ })) : children;
214
+ };
215
+
216
+ if (!display) {
217
+ return null;
218
+ }
219
+
220
+ var groups = groupKeys.map(function (key, index) {
221
+ var parentName = (0, _formUtils.calcNamePath)(namePath, index);
222
+ return (0, _jsxRuntime.jsxs)(_col.default, {
223
+ span: 24,
224
+ className: 'igloo-addable-section',
225
+ children: [label && (0, _jsxRuntime.jsxs)(_row.default, {
226
+ justify: "space-between",
227
+ className: 'igloo-addable-section-label',
228
+ children: [(0, _jsxRuntime.jsxs)(_typography.default, _objectSpread(_objectSpread({}, labelProps), {}, {
229
+ level: "h4",
230
+ wrapElement: "div",
231
+ children: [label, " ", index + 1]
232
+ }), void 0), groupKeys.length > 1 && !preview && (0, _jsxRuntime.jsx)(_button.default, {
233
+ type: "link",
234
+ className: "igloo-addable-section-label-remove",
235
+ onClick: function onClick() {
236
+ return dispath({
237
+ type: 'remove',
238
+ key: key
239
+ });
240
+ },
241
+ children: formatMessage({
242
+ id: 'Remove'
243
+ })
244
+ }, void 0)]
245
+ }, void 0), (0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({
246
+ className: 'igloo-addable-section-content'
247
+ }, contentProps), {}, {
248
+ children: (0, _jsxRuntime.jsx)(_row.default, {
249
+ gutter: [32, preview ? 16 : 24],
250
+ children: transformChildren(parentName)
251
+ }, void 0)
252
+ }), void 0)]
253
+ }, key);
254
+ });
255
+ return (0, _jsxRuntime.jsxs)("div", {
256
+ className: "igloo-addable-section-container",
257
+ style: {
258
+ width: '100%'
259
+ },
260
+ children: [groups, groupKeys.length < max && !preview && (0, _jsxRuntime.jsx)(_col.default, {
261
+ span: 24,
262
+ style: {
263
+ marginTop: 16
264
+ },
265
+ children: (0, _jsxRuntime.jsxs)(_button.default, {
266
+ onClick: function onClick() {
267
+ return dispath({
268
+ type: 'add',
269
+ key: Date.now()
270
+ });
271
+ },
272
+ className: "igloo-addable-section-button",
273
+ children: [formatMessage({
274
+ id: 'Add'
275
+ }), " ", label]
276
+ }, void 0)
277
+ }, void 0)]
278
+ }, void 0);
279
+ };
280
+
281
+ var _default = AddableSection;
282
+ exports.default = _default;
283
+ AddableSection.displayName = 'Igloo_Free_Form_AddableSection';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("./index.less");
@@ -0,0 +1,22 @@
1
+ .igloo-addable-section-container {
2
+ .igloo-addable-section {
3
+ .igloo-addable-section-label {
4
+ .igloo-addable-section-label-remove {
5
+ height: auto;
6
+ border: none;
7
+ }
8
+ }
9
+
10
+ .igloo-addable-section-content {
11
+ margin-top: 16px;
12
+ }
13
+
14
+ & + .igloo-addable-section {
15
+ margin-top: 24px;
16
+ }
17
+ }
18
+
19
+ .igloo-addable-section-button {
20
+ min-width: 221px;
21
+ }
22
+ }
@@ -200,7 +200,7 @@ var Section = function Section(props) {
200
200
  className: 'igloo-freeform-section-content'
201
201
  }, contentProps), {}, {
202
202
  children: (0, _jsxRuntime.jsx)(_row.default, {
203
- gutter: [32, 24],
203
+ gutter: [32, preview ? 16 : 24],
204
204
  children: transformChildren()
205
205
  }, void 0)
206
206
  }), void 0)]
package/lib/index.d.ts CHANGED
@@ -42,3 +42,4 @@ export { default as FormPage } from './free-form/page';
42
42
  export { default as FormSteps } from './free-form/steps';
43
43
  export { default as FormStep } from './free-form/step';
44
44
  export { default as FormSection } from './free-form/section';
45
+ export { default as FormAddableSection } from './free-form/addable-section';
package/lib/index.js CHANGED
@@ -71,7 +71,8 @@ var _exportNames = {
71
71
  FormPage: true,
72
72
  FormSteps: true,
73
73
  FormStep: true,
74
- FormSection: true
74
+ FormSection: true,
75
+ FormAddableSection: true
75
76
  };
76
77
  Object.defineProperty(exports, "AdminAmount", {
77
78
  enumerable: true,
@@ -241,6 +242,12 @@ Object.defineProperty(exports, "Form", {
241
242
  return _form.default;
242
243
  }
243
244
  });
245
+ Object.defineProperty(exports, "FormAddableSection", {
246
+ enumerable: true,
247
+ get: function get() {
248
+ return _addableSection.default;
249
+ }
250
+ });
244
251
  Object.defineProperty(exports, "FormItem", {
245
252
  enumerable: true,
246
253
  get: function get() {
@@ -570,6 +577,8 @@ var _step = _interopRequireDefault(require("./free-form/step"));
570
577
 
571
578
  var _section = _interopRequireDefault(require("./free-form/section"));
572
579
 
580
+ var _addableSection = _interopRequireDefault(require("./free-form/addable-section"));
581
+
573
582
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
574
583
 
575
584
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -9,7 +9,7 @@ input[type='number'] {
9
9
  line-height: 24px;
10
10
  width: 100%;
11
11
  height: 48px;
12
- border-color: #bdbdbd !important;
12
+ border-color: #bdbdbd;
13
13
  padding: 12px 16px;
14
14
  color: #212121;
15
15
 
@@ -337,6 +337,14 @@ input[type='number'] {
337
337
 
338
338
  .ant-input:not(.ant-input-disabled) {
339
339
  border-color: #bdbdbd;
340
+
341
+ &:hover {
342
+ border-color: @primary-color;
343
+ }
344
+
345
+ &:active {
346
+ border-color: @active-color;
347
+ }
340
348
  }
341
349
 
342
350
  .igloo-otp-extra {
@@ -4,6 +4,7 @@
4
4
  "1 file in progress...": "1 file in progress...",
5
5
  "Accept": "Accept",
6
6
  "Action": "Action",
7
+ "Add": "Add",
7
8
  "Apply": "Apply",
8
9
  "Apply Columns": "Apply Columns",
9
10
  "Cancel": "Cancel",
@@ -47,6 +48,7 @@
47
48
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.",
48
49
  "Quantity of files should be less than {limit}": "Quantity of files should be less than {limit}",
49
50
  "Reject": "Reject",
51
+ "Remove": "Remove",
50
52
  "Resend OTP": "Resend OTP",
51
53
  "Resend in": "Resend in",
52
54
  "Reset All Filters": "Reset All Filters",
@@ -4,6 +4,7 @@
4
4
  "1 file in progress...": "1 data dalam proses",
5
5
  "Accept": "Menerima",
6
6
  "Action": "Beroperasi",
7
+ "Add": "",
7
8
  "Apply": "Terapkan",
8
9
  "Apply Columns": "Terapkan Kolom",
9
10
  "Cancel": "Batal",
@@ -47,6 +48,7 @@
47
48
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "Perkembangan terkait proses belum dapat diperbarui saat ini. Jangan khawatir! Semua data Anda masih dalam proses .",
48
49
  "Quantity of files should be less than {limit}": "Jumlah dokumen tidak bisa lebih dari {limit}",
49
50
  "Reject": "Menolak",
51
+ "Remove": "",
50
52
  "Resend OTP": "Kirim ulang OTP",
51
53
  "Resend in": "Kirim ulang",
52
54
  "Reset All Filters": "Setel ulang filter",
@@ -4,6 +4,7 @@
4
4
  "1 file in progress...": "กำลังดำเนินการ 1 ไฟล์...",
5
5
  "Accept": "ยอมรับ",
6
6
  "Action": "ดำเนินงาน",
7
+ "Add": "",
7
8
  "Apply": "ใช้",
8
9
  "Apply Columns": "ใช้คอลัมน์",
9
10
  "Cancel": "ยกเลิก",
@@ -47,6 +48,7 @@
47
48
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "ไม่สามารถอัปเดตการประมวลผลได้ในขณะนี้ ไม่ต้องกังวล! ไฟล์ของคุณทั้งหมดกำลังอยู่ระหว่างดำเนินการ",
48
49
  "Quantity of files should be less than {limit}": "จำนวนไฟล์ควรน้อยกว่า {limit}",
49
50
  "Reject": "ปฏิเสธ",
51
+ "Remove": "",
50
52
  "Resend OTP": "ขอ OTP อีกครั้ง",
51
53
  "Resend in": "ส่งอีกครั้งใน",
52
54
  "Reset All Filters": "รีเซทตัวกรอง",
@@ -4,6 +4,7 @@
4
4
  "1 file in progress...": "1 tệp đang được xử lý",
5
5
  "Accept": "Chấp nhận",
6
6
  "Action": "Chạy",
7
+ "Add": "",
7
8
  "Apply": "Áp dụng",
8
9
  "Apply Columns": "Áp dụng Cột",
9
10
  "Cancel": "Hủy",
@@ -47,6 +48,7 @@
47
48
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "Dữ liệu chưa được cập nhật và đang trong quá trình xử lý.",
48
49
  "Quantity of files should be less than {limit}": "Số lượng tệp tin không vượt quá {limit}",
49
50
  "Reject": "Từ chối",
51
+ "Remove": "",
50
52
  "Resend OTP": "Gửi lại OTP",
51
53
  "Resend in": "Gửi lại trong",
52
54
  "Reset All Filters": "Xóa lọc",
@@ -4,6 +4,7 @@
4
4
  "1 file in progress...": "1个文件正在处理...",
5
5
  "Accept": "接受",
6
6
  "Action": "操作",
7
+ "Add": "",
7
8
  "Apply": "应用",
8
9
  "Apply Columns": "应用",
9
10
  "Cancel": "取消",
@@ -47,6 +48,7 @@
47
48
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "文件解析中,请耐心等待。",
48
49
  "Quantity of files should be less than {limit}": "文件数量不能超过{limit}",
49
50
  "Reject": "拒绝",
51
+ "Remove": "",
50
52
  "Resend OTP": "重新发送OTP",
51
53
  "Resend in": "重新发送",
52
54
  "Reset All Filters": "重置所有过滤条件",
@@ -49,7 +49,7 @@ var calcNamePath = function calcNamePath(parentName, name) {
49
49
  names.push(parentName);
50
50
  }
51
51
 
52
- if (name) {
52
+ if (name !== undefined) {
53
53
  names.push(name);
54
54
  }
55
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iglooform",
3
- "version": "2.4.9",
3
+ "version": "2.4.10",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "build-dev": "dumi build",