@antscorp/antsomi-ui 1.3.5-beta.276 → 1.3.5-beta.277

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.
@@ -366,16 +366,14 @@ export const AlgorithmsSetting = (props) => {
366
366
  React.createElement(AlgorithmWrapper, { mode: mode },
367
367
  React.createElement(Text, Object.assign({}, labelStyle),
368
368
  t(translations.last.title).toString(),
369
- char,
370
- ' '),
369
+ char),
371
370
  React.createElement("div", { style: { display: 'flex', alignItems: 'center' } },
372
371
  React.createElement(InputNumber, { value: algo.last, width: 90, onChange: value => onChangeAlgorithm(algo, { last: value }), min: 1, max: 90, required: true }),
373
372
  React.createElement(Text, { color: isCDP ? (_a = THEME.token) === null || _a === void 0 ? void 0 : _a.colorIcon : undefined, style: { marginLeft: 8 } }, t(translations.days.title).toString()))),
374
373
  React.createElement(AlgorithmWrapper, { style: { marginTop: 4 }, mode: mode },
375
374
  React.createElement(Text, Object.assign({}, labelStyle),
376
375
  t(translations.to.title).toString(),
377
- char,
378
- ' '),
376
+ char),
379
377
  React.createElement(Radio.Group, { onChange: event => onChangeAlgorithm(algo, { to: event.target.value }), value: algo.to },
380
378
  React.createElement(Radio, { value: "today" }, t(translations.today.title).toString()),
381
379
  React.createElement(Radio, { value: "yesterday" }, t(translations.yesterday.title).toString())))));
@@ -397,8 +395,7 @@ export const AlgorithmsSetting = (props) => {
397
395
  React.createElement(AlgorithmWrapper, { mode: mode },
398
396
  React.createElement(Text, Object.assign({}, labelStyle),
399
397
  t(translations.last.title).toString(),
400
- char,
401
- ' '),
398
+ char),
402
399
  React.createElement("div", { style: { display: 'flex', alignItems: 'center' } },
403
400
  React.createElement(InputNumber, { value: algo.last, width: 90, onChange: value => onChangeAlgorithm(algo, { last: value }), min: 1, max: 20, required: true }),
404
401
  React.createElement(Text, { color: isCDP ? (_c = THEME.token) === null || _c === void 0 ? void 0 : _c.colorIcon : undefined, style: { marginLeft: 8 } }, t(translations.keywords.title).toLowerCase())))));
@@ -410,8 +407,7 @@ export const AlgorithmsSetting = (props) => {
410
407
  element = (React.createElement(AlgorithmWrapper, { mode: mode },
411
408
  React.createElement(Text, Object.assign({}, labelStyle),
412
409
  t(translations.last.title).toString(),
413
- char,
414
- ' '),
410
+ char),
415
411
  React.createElement("div", { style: { display: 'flex', alignItems: 'center' } },
416
412
  React.createElement(InputNumber, { value: algo.last, width: 90, onChange: value => onChangeAlgorithm(algo, { last: value }), min: 1, max: 90, required: true }),
417
413
  React.createElement(Text, { color: isCDP ? (_d = THEME.token) === null || _d === void 0 ? void 0 : _d.colorIcon : undefined, style: { marginLeft: 8 } }, itemTypeName === ITEM_TYPE_NAME.ARTICLE
@@ -495,14 +491,12 @@ export const AlgorithmsSetting = (props) => {
495
491
  React.createElement(AlgorithmWrapper, { mode: mode },
496
492
  React.createElement(RequiredLabel, Object.assign({}, labelStyle),
497
493
  t(translations.interest.title).toString(),
498
- char,
499
- ' '),
494
+ char),
500
495
  React.createElement(Select, { required: true, showSearch: true, focused: isShowErrorAlert, placeholder: t(translations.selectAnItem.title).toString(), style: styleNoBorderWFull, value: algo.interest, options: optionNotify, onChange: value => onChangeAlgorithm(algo, { interest: value }) })),
501
496
  React.createElement(AlgorithmWrapper, { mode: mode },
502
497
  React.createElement(Text, Object.assign({}, labelStyle),
503
498
  t(translations.last.title).toString(),
504
- char,
505
- ' '),
499
+ char),
506
500
  React.createElement("div", { style: { display: 'flex', alignItems: 'center' } },
507
501
  React.createElement(InputNumber, { value: algo.last, width: 90, onChange: value => onChangeAlgorithm(algo, { last: value }), min: 1, max: 90, required: true }),
508
502
  React.createElement(Text, { color: isCDP ? (_e = THEME.token) === null || _e === void 0 ? void 0 : _e.colorIcon : undefined, style: { marginLeft: 8 } }, t(translations.days.title).toString())))));
@@ -520,14 +514,12 @@ export const AlgorithmsSetting = (props) => {
520
514
  React.createElement(AlgorithmWrapper, { mode: mode },
521
515
  React.createElement(RequiredLabel, Object.assign({}, labelStyle),
522
516
  t(translations.with.title).toLowerCase(),
523
- char,
524
- ' '),
517
+ char),
525
518
  React.createElement(Select, { required: true, showSearch: true, disabled: isDisable, status: errorMessage ? 'error' : '', errorMsg: errorMessage, focused: isShowErrorAlert, placeholder: t(translations.selectAnItem.title).toString(), style: styleNoBorderWFull, value: algo.sort_by, options: options, onChange: value => onChangeAlgorithm(algo, { sort_by: value }) })),
526
519
  React.createElement(AlgorithmWrapper, { mode: mode },
527
520
  React.createElement(Text, Object.assign({}, labelStyle),
528
521
  t(translations.sortBy.title).toLowerCase(),
529
- char,
530
- ' '),
522
+ char),
531
523
  React.createElement(Select, { showSearch: true, placeholder: t(translations.selectAnItem.title).toString(), style: styleNoBorderWFull, value: algo.sort_type, options: SORT_TYPE_OPTIONS, onChange: value => onChangeAlgorithm(algo, { sort_type: value }) }))));
532
524
  break;
533
525
  }
@@ -536,14 +528,12 @@ export const AlgorithmsSetting = (props) => {
536
528
  React.createElement(AlgorithmWrapper, { mode: mode },
537
529
  React.createElement(RequiredLabel, Object.assign({}, labelStyle),
538
530
  t(translations.by.title).toLowerCase(),
539
- char,
540
- ' '),
531
+ char),
541
532
  React.createElement(Select, { required: true, showSearch: true, focused: isShowErrorAlert, placeholder: t(translations.selectAnItem.title).toString(), style: styleNoBorderWFull, value: algo.by, options: ARTICLE_TREND_BY_OPTIONS, onChange: value => onChangeAlgorithm(algo, { by: value }) })),
542
533
  React.createElement(AlgorithmWrapper, { mode: mode },
543
534
  React.createElement(RequiredLabel, Object.assign({}, labelStyle),
544
535
  t(translations.in.title).toLowerCase(),
545
- char,
546
- ' '),
536
+ char),
547
537
  React.createElement(Select, { required: true, showSearch: true, focused: isShowErrorAlert, placeholder: t(translations.selectAnItem.title).toString(), style: styleNoBorderWFull, value: algo.in, options: ARTICLE_TREND_IN_OPTIONS, onChange: value => onChangeAlgorithm(algo, { in: value }) })),
548
538
  algo.by === 'compare_with_before' && (React.createElement(AlgorithmWrapper, { mode: mode },
549
539
  React.createElement("div", null),
@@ -579,14 +569,12 @@ export const AlgorithmsSetting = (props) => {
579
569
  React.createElement(AlgorithmWrapper, { mode: mode },
580
570
  React.createElement(RequiredLabel, Object.assign({}, labelStyle),
581
571
  t(translations.sortBy.title).toLowerCase(),
582
- char,
583
- ' '),
572
+ char),
584
573
  React.createElement(Select, { required: true, showSearch: true, focused: isShowErrorAlert, placeholder: t(translations.selectAnItem.title).toString(), style: styleNoBorderWFull, value: algo.sort_by, options: ARTICLE_TREND_SORT_BY_OPTIONS, onChange: value => onChangeAlgorithm(algo, { sort_by: value }) })),
585
574
  React.createElement(AlgorithmWrapper, { mode: mode },
586
575
  React.createElement(RequiredLabel, Object.assign({}, labelStyle),
587
576
  t(translations.sortOrder.title).toLowerCase(),
588
- char,
589
- ' '),
577
+ char),
590
578
  React.createElement(Select, { required: true, showSearch: true, focused: isShowErrorAlert, placeholder: t(translations.selectAnItem.title).toString(), style: styleNoBorderWFull, value: algo.sort_order, options: SORT_TYPE_OPTIONS, onChange: value => onChangeAlgorithm(algo, { sort_order: value }) }))));
591
579
  break;
592
580
  }
@@ -706,10 +694,9 @@ export const AlgorithmsSetting = (props) => {
706
694
  : 'none',
707
695
  } }, provided.dragHandleProps),
708
696
  React.createElement(Icon, { type: "icon-ants-double-three-dots", size: 16, style: { opacity: 0.4, color: (_b = THEME.token) === null || _b === void 0 ? void 0 : _b.colorIcon } })),
709
- React.createElement(Text, Object.assign({}, labelStyle), (_c = mapListAlgo[algo.value]) === null || _c === void 0 ? void 0 :
697
+ React.createElement(Text, Object.assign({}, labelStyle, { style: { marginRight: 8, textAlign: 'left' } }), (_c = mapListAlgo[algo.value]) === null || _c === void 0 ? void 0 :
710
698
  _c.label,
711
- char,
712
- ' ')),
699
+ char)),
713
700
  React.createElement(InputNumber, { value: algo.quantity, width: 90, onChange: value => onChangeAlgorithm(algo, { quantity: value }), min: 1, max: 30, required: true }),
714
701
  algorithms.value.length > 1 ? (React.createElement(Button, { onClick: () => onRemoveAlgo(algo), type: "text", icon: React.createElement(Icon, { type: "icon-ants-remove-slim", size: 15 }), style: { alignSelf: 'center' } })) : null),
715
702
  renderAlgorithmBy(algo),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.276",
3
+ "version": "1.3.5-beta.277",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",