cx 24.0.2 → 24.0.3
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.
- package/dist/manifest.js +713 -710
- package/dist/widgets.js +98 -37
- package/locale/de-de.js +6 -1
- package/locale/en-us.js +5 -1
- package/locale/es-es.js +6 -1
- package/locale/fr-fr.js +7 -2
- package/locale/nl-nl.js +4 -5
- package/locale/pt-pt.js +12 -1
- package/locale/sr-latn-ba.js +6 -2
- package/package.json +1 -1
- package/src/data/StructuredSelector.d.ts +1 -1
- package/src/data/ops/updateTree.js +1 -1
- package/src/data/ops/updateTree.spec.js +16 -14
- package/src/ui/Culture.d.ts +0 -3
- package/src/ui/DataProxy.d.ts +1 -0
- package/src/ui/DataProxy.js +2 -2
- package/src/ui/Localization.js +0 -2
- package/src/ui/Rescope.js +2 -2
- package/src/ui/Text.js +2 -4
- package/src/ui/adapter/DataAdapter.js +7 -12
- package/src/ui/adapter/GroupAdapter.d.ts +22 -3
- package/src/ui/adapter/TreeAdapter.d.ts +23 -3
- package/src/widgets/form/DateTimeField.d.ts +86 -86
- package/src/widgets/form/DateTimeField.js +569 -572
- package/src/widgets/form/Field.js +24 -9
- package/src/widgets/form/FieldIcon.js +42 -0
- package/src/widgets/form/LookupField.d.ts +174 -174
- package/src/widgets/form/LookupField.js +1130 -1131
- package/src/widgets/form/MonthField.d.ts +37 -38
- package/src/widgets/form/MonthField.js +6 -9
- package/src/widgets/form/NumberField.d.ts +2 -2
- package/src/widgets/form/NumberField.js +5 -9
- package/src/widgets/form/Select.d.ts +31 -35
- package/src/widgets/form/Select.js +7 -12
- package/src/widgets/form/TextField.d.ts +2 -2
- package/src/widgets/form/TextField.js +6 -5
- package/src/widgets/grid/Grid.d.ts +6 -6
- package/src/widgets/grid/Grid.js +3277 -3277
- package/src/widgets/overlay/Dropdown.d.ts +1 -0
package/dist/widgets.js
CHANGED
|
@@ -6410,6 +6410,55 @@ Label.prototype.baseClass = "label";
|
|
|
6410
6410
|
Label.prototype.tag = "label";
|
|
6411
6411
|
Label.prototype.asterisk = false;
|
|
6412
6412
|
|
|
6413
|
+
var FieldIcon = /*#__PURE__*/ (function (_Widget) {
|
|
6414
|
+
_inheritsLoose(FieldIcon, _Widget);
|
|
6415
|
+
function FieldIcon() {
|
|
6416
|
+
return _Widget.apply(this, arguments) || this;
|
|
6417
|
+
}
|
|
6418
|
+
var _proto = FieldIcon.prototype;
|
|
6419
|
+
_proto.declareData = function declareData() {
|
|
6420
|
+
var _Widget$prototype$dec;
|
|
6421
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6422
|
+
args[_key] = arguments[_key];
|
|
6423
|
+
}
|
|
6424
|
+
(_Widget$prototype$dec = _Widget.prototype.declareData).call.apply(
|
|
6425
|
+
_Widget$prototype$dec,
|
|
6426
|
+
[this].concat(args, [
|
|
6427
|
+
{
|
|
6428
|
+
name: undefined,
|
|
6429
|
+
},
|
|
6430
|
+
]),
|
|
6431
|
+
);
|
|
6432
|
+
};
|
|
6433
|
+
_proto.render = function render(context, instance, key) {
|
|
6434
|
+
var _this = this;
|
|
6435
|
+
var data = instance.data;
|
|
6436
|
+
if (!data.name) return null;
|
|
6437
|
+
var onClick, onMouseMove, onMouseLeave;
|
|
6438
|
+
if (this.onClick)
|
|
6439
|
+
onClick = function onClick(e) {
|
|
6440
|
+
instance.invoke("onClick", e, instance);
|
|
6441
|
+
};
|
|
6442
|
+
if (this.tooltip) {
|
|
6443
|
+
onMouseLeave = function onMouseLeave(e) {
|
|
6444
|
+
tooltipMouseLeave$1(e, instance, _this.tooltip);
|
|
6445
|
+
};
|
|
6446
|
+
onMouseMove = function onMouseMove(e) {
|
|
6447
|
+
tooltipMouseMove$1(e, instance, _this.tooltip);
|
|
6448
|
+
};
|
|
6449
|
+
}
|
|
6450
|
+
return Icon.render(data.name, {
|
|
6451
|
+
className: data.classNames,
|
|
6452
|
+
style: data.style,
|
|
6453
|
+
onClick: onClick,
|
|
6454
|
+
onMouseMove: onMouseMove,
|
|
6455
|
+
onMouseLeave: onMouseLeave,
|
|
6456
|
+
});
|
|
6457
|
+
};
|
|
6458
|
+
return FieldIcon;
|
|
6459
|
+
})(Widget);
|
|
6460
|
+
FieldIcon.prototype.styled = true;
|
|
6461
|
+
|
|
6413
6462
|
var Field = /*#__PURE__*/ (function (_PureContainer) {
|
|
6414
6463
|
_inheritsLoose(Field, _PureContainer);
|
|
6415
6464
|
function Field() {
|
|
@@ -6451,6 +6500,11 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
6451
6500
|
);
|
|
6452
6501
|
};
|
|
6453
6502
|
_proto.init = function init() {
|
|
6503
|
+
this.inputStyle = parseStyle(this.inputStyle);
|
|
6504
|
+
_PureContainer.prototype.init.call(this);
|
|
6505
|
+
};
|
|
6506
|
+
_proto.initComponents = function initComponents(context, instance) {
|
|
6507
|
+
var _PureContainer$protot2;
|
|
6454
6508
|
if (this.validationMode == "tooltip" && isUndefined(this.errorTooltip)) {
|
|
6455
6509
|
this.errorTooltip = _extends(
|
|
6456
6510
|
{
|
|
@@ -6497,17 +6551,21 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
6497
6551
|
else Object.assign(labelConfig, this.label);
|
|
6498
6552
|
this.label = Label.create(labelConfig);
|
|
6499
6553
|
}
|
|
6500
|
-
this.
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6554
|
+
if (this.icon != null) {
|
|
6555
|
+
var iconConfig = {
|
|
6556
|
+
className: this.CSS.element(this.baseClass, "icon"),
|
|
6557
|
+
};
|
|
6558
|
+
if (isSelector(this.icon)) iconConfig.name = this.icon;
|
|
6559
|
+
else Object.assign(iconConfig, this.icon);
|
|
6560
|
+
this.icon = FieldIcon.create(iconConfig);
|
|
6561
|
+
}
|
|
6505
6562
|
return (_PureContainer$protot2 = _PureContainer.prototype.initComponents).call.apply(
|
|
6506
6563
|
_PureContainer$protot2,
|
|
6507
6564
|
[this].concat(Array.prototype.slice.call(arguments), [
|
|
6508
6565
|
{
|
|
6509
6566
|
label: this.label,
|
|
6510
6567
|
help: this.help,
|
|
6568
|
+
icon: this.icon,
|
|
6511
6569
|
},
|
|
6512
6570
|
]),
|
|
6513
6571
|
);
|
|
@@ -6694,6 +6752,9 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
6694
6752
|
_proto.renderHelp = function renderHelp(context, instance, key) {
|
|
6695
6753
|
if (instance.components.help) return getContent(instance.components.help.render(context, key));
|
|
6696
6754
|
};
|
|
6755
|
+
_proto.renderIcon = function renderIcon(context, instance, key) {
|
|
6756
|
+
if (instance.components.icon) return getContent(instance.components.icon.render(context, key));
|
|
6757
|
+
};
|
|
6697
6758
|
_proto.formatValue = function formatValue(context, _ref) {
|
|
6698
6759
|
var data = _ref.data;
|
|
6699
6760
|
return data.text || data.value;
|
|
@@ -6851,6 +6912,7 @@ var TextField = /*#__PURE__*/ (function (_Field) {
|
|
|
6851
6912
|
data: instance.data,
|
|
6852
6913
|
label: this.labelPlacement && getContent(this.renderLabel(context, instance, "label")),
|
|
6853
6914
|
help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
|
|
6915
|
+
icon: this.renderIcon(context, instance, "icon"),
|
|
6854
6916
|
},
|
|
6855
6917
|
key,
|
|
6856
6918
|
);
|
|
@@ -6899,23 +6961,22 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
6899
6961
|
instance = _this$props.instance,
|
|
6900
6962
|
data = _this$props.data,
|
|
6901
6963
|
label = _this$props.label,
|
|
6902
|
-
help = _this$props.help
|
|
6964
|
+
help = _this$props.help,
|
|
6965
|
+
iconVDOM = _this$props.icon;
|
|
6903
6966
|
var widget = instance.widget,
|
|
6904
6967
|
state = instance.state;
|
|
6905
6968
|
var CSS = widget.CSS,
|
|
6906
6969
|
baseClass = widget.baseClass,
|
|
6907
6970
|
suppressErrorsUntilVisited = widget.suppressErrorsUntilVisited;
|
|
6908
6971
|
var icon =
|
|
6909
|
-
|
|
6972
|
+
iconVDOM &&
|
|
6910
6973
|
/*#__PURE__*/ jsx("div", {
|
|
6911
6974
|
className: CSS.element(baseClass, "left-icon"),
|
|
6912
6975
|
onMouseDown: preventDefault,
|
|
6913
6976
|
onClick: function onClick(e) {
|
|
6914
6977
|
return _this2.onChange(e, "enter");
|
|
6915
6978
|
},
|
|
6916
|
-
children:
|
|
6917
|
-
className: CSS.element(baseClass, "icon"),
|
|
6918
|
-
}),
|
|
6979
|
+
children: iconVDOM,
|
|
6919
6980
|
});
|
|
6920
6981
|
var insideButton;
|
|
6921
6982
|
if (
|
|
@@ -7604,6 +7665,7 @@ var Select = /*#__PURE__*/ (function (_Field) {
|
|
|
7604
7665
|
},
|
|
7605
7666
|
label: this.labelPlacement && getContent(this.renderLabel(context, instance, "label")),
|
|
7606
7667
|
help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
|
|
7668
|
+
icon: this.renderIcon(context, instance, "icon"),
|
|
7607
7669
|
children: this.renderChildren(context, instance),
|
|
7608
7670
|
},
|
|
7609
7671
|
key,
|
|
@@ -7655,19 +7717,18 @@ var SelectComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7655
7717
|
select = _this$props.select,
|
|
7656
7718
|
instance = _this$props.instance,
|
|
7657
7719
|
label = _this$props.label,
|
|
7658
|
-
help = _this$props.help
|
|
7720
|
+
help = _this$props.help,
|
|
7721
|
+
iconVDOM = _this$props.icon;
|
|
7659
7722
|
var data = instance.data,
|
|
7660
7723
|
widget = instance.widget,
|
|
7661
7724
|
state = instance.state;
|
|
7662
7725
|
var CSS = widget.CSS,
|
|
7663
7726
|
baseClass = widget.baseClass;
|
|
7664
7727
|
var icon =
|
|
7665
|
-
|
|
7728
|
+
iconVDOM &&
|
|
7666
7729
|
/*#__PURE__*/ jsx("div", {
|
|
7667
7730
|
className: CSS.element(baseClass, "left-icon"),
|
|
7668
|
-
children:
|
|
7669
|
-
className: CSS.element(baseClass, "icon"),
|
|
7670
|
-
}),
|
|
7731
|
+
children: iconVDOM,
|
|
7671
7732
|
});
|
|
7672
7733
|
var insideButton,
|
|
7673
7734
|
readOnly = data.disabled || data.readOnly;
|
|
@@ -7712,7 +7773,7 @@ var SelectComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7712
7773
|
data.classNames,
|
|
7713
7774
|
CSS.state({
|
|
7714
7775
|
visited: state.visited,
|
|
7715
|
-
icon:
|
|
7776
|
+
icon: !!iconVDOM,
|
|
7716
7777
|
focus: this.state.focus,
|
|
7717
7778
|
error: state.visited && data.error,
|
|
7718
7779
|
empty: data.empty && !data.placeholder,
|
|
@@ -8597,6 +8658,7 @@ var LookupField = /*#__PURE__*/ (function (_Field) {
|
|
|
8597
8658
|
label: this.labelPlacement && getContent(this.renderLabel(context, instance, "label")),
|
|
8598
8659
|
help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
|
|
8599
8660
|
forceUpdate: context.forceUpdate,
|
|
8661
|
+
icon: this.renderIcon(context, instance, "icon"),
|
|
8600
8662
|
},
|
|
8601
8663
|
key,
|
|
8602
8664
|
);
|
|
@@ -9025,7 +9087,8 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
9025
9087
|
var _this$props = this.props,
|
|
9026
9088
|
instance = _this$props.instance,
|
|
9027
9089
|
label = _this$props.label,
|
|
9028
|
-
help = _this$props.help
|
|
9090
|
+
help = _this$props.help,
|
|
9091
|
+
iconVDOM = _this$props.icon;
|
|
9029
9092
|
var data = instance.data,
|
|
9030
9093
|
widget = instance.widget,
|
|
9031
9094
|
state = instance.state;
|
|
@@ -9033,7 +9096,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
9033
9096
|
baseClass = widget.baseClass,
|
|
9034
9097
|
suppressErrorsUntilVisited = widget.suppressErrorsUntilVisited;
|
|
9035
9098
|
var icon =
|
|
9036
|
-
|
|
9099
|
+
iconVDOM &&
|
|
9037
9100
|
/*#__PURE__*/ jsx(
|
|
9038
9101
|
"div",
|
|
9039
9102
|
{
|
|
@@ -9044,9 +9107,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
9044
9107
|
e.stopPropagation();
|
|
9045
9108
|
e.preventDefault();
|
|
9046
9109
|
},
|
|
9047
|
-
children:
|
|
9048
|
-
className: CSS.element(baseClass, "icon"),
|
|
9049
|
-
}),
|
|
9110
|
+
children: iconVDOM,
|
|
9050
9111
|
},
|
|
9051
9112
|
"icon",
|
|
9052
9113
|
);
|
|
@@ -9157,7 +9218,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
9157
9218
|
var states = {
|
|
9158
9219
|
visited: state.visited,
|
|
9159
9220
|
focus: this.state.focus || this.state.dropdownOpen,
|
|
9160
|
-
icon: !!
|
|
9221
|
+
icon: !!iconVDOM,
|
|
9161
9222
|
empty: !data.placeholder && data.empty,
|
|
9162
9223
|
error: data.error && (state.visited || !suppressErrorsUntilVisited || !data.empty),
|
|
9163
9224
|
};
|
|
@@ -9776,6 +9837,7 @@ var NumberField = /*#__PURE__*/ (function (_Field) {
|
|
|
9776
9837
|
instance: instance,
|
|
9777
9838
|
label: this.labelPlacement && getContent(this.renderLabel(context, instance, "label")),
|
|
9778
9839
|
help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
|
|
9840
|
+
icon: this.renderIcon(context, instance, "icon"),
|
|
9779
9841
|
},
|
|
9780
9842
|
key,
|
|
9781
9843
|
);
|
|
@@ -9821,19 +9883,18 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
9821
9883
|
data = _this$props.data,
|
|
9822
9884
|
instance = _this$props.instance,
|
|
9823
9885
|
label = _this$props.label,
|
|
9824
|
-
help = _this$props.help
|
|
9886
|
+
help = _this$props.help,
|
|
9887
|
+
iconVDOM = _this$props.icon;
|
|
9825
9888
|
var widget = instance.widget,
|
|
9826
9889
|
state = instance.state;
|
|
9827
9890
|
var CSS = widget.CSS,
|
|
9828
9891
|
baseClass = widget.baseClass,
|
|
9829
9892
|
suppressErrorsUntilVisited = widget.suppressErrorsUntilVisited;
|
|
9830
9893
|
var icon =
|
|
9831
|
-
|
|
9894
|
+
iconVDOM &&
|
|
9832
9895
|
/*#__PURE__*/ jsx("div", {
|
|
9833
9896
|
className: CSS.element(baseClass, "left-icon"),
|
|
9834
|
-
children:
|
|
9835
|
-
className: CSS.element(baseClass, "icon"),
|
|
9836
|
-
}),
|
|
9897
|
+
children: iconVDOM,
|
|
9837
9898
|
});
|
|
9838
9899
|
var insideButton;
|
|
9839
9900
|
if (!data.readOnly && !data.disabled) {
|
|
@@ -11855,6 +11916,7 @@ var MonthField = /*#__PURE__*/ (function (_Field) {
|
|
|
11855
11916
|
},
|
|
11856
11917
|
label: this.labelPlacement && getContent(this.renderLabel(context, instance, "label")),
|
|
11857
11918
|
help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
|
|
11919
|
+
icon: this.renderIcon(context, instance, "icon"),
|
|
11858
11920
|
},
|
|
11859
11921
|
key,
|
|
11860
11922
|
);
|
|
@@ -11968,7 +12030,8 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
11968
12030
|
instance = _this$props.instance,
|
|
11969
12031
|
label = _this$props.label,
|
|
11970
12032
|
help = _this$props.help,
|
|
11971
|
-
data = _this$props.data
|
|
12033
|
+
data = _this$props.data,
|
|
12034
|
+
iconVDOM = _this$props.icon;
|
|
11972
12035
|
var widget = instance.widget,
|
|
11973
12036
|
state = instance.state;
|
|
11974
12037
|
var CSS = widget.CSS,
|
|
@@ -12001,12 +12064,10 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12001
12064
|
}),
|
|
12002
12065
|
});
|
|
12003
12066
|
}
|
|
12004
|
-
if (
|
|
12067
|
+
if (iconVDOM) {
|
|
12005
12068
|
icon = /*#__PURE__*/ jsx("div", {
|
|
12006
12069
|
className: CSS.element(baseClass, "left-icon"),
|
|
12007
|
-
children:
|
|
12008
|
-
className: CSS.element(baseClass, "icon"),
|
|
12009
|
-
}),
|
|
12070
|
+
children: iconVDOM,
|
|
12010
12071
|
});
|
|
12011
12072
|
}
|
|
12012
12073
|
var dropdown = false;
|
|
@@ -14343,6 +14404,7 @@ var DateTimeField = /*#__PURE__*/ (function (_Field) {
|
|
|
14343
14404
|
},
|
|
14344
14405
|
label: this.labelPlacement && getContent(this.renderLabel(context, instance, "label")),
|
|
14345
14406
|
help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
|
|
14407
|
+
icon: getContent(this.renderIcon(context, instance, "icon")),
|
|
14346
14408
|
},
|
|
14347
14409
|
key,
|
|
14348
14410
|
);
|
|
@@ -14482,7 +14544,8 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
14482
14544
|
var _this$props = this.props,
|
|
14483
14545
|
instance = _this$props.instance,
|
|
14484
14546
|
label = _this$props.label,
|
|
14485
|
-
help = _this$props.help
|
|
14547
|
+
help = _this$props.help,
|
|
14548
|
+
iconVDOM = _this$props.icon;
|
|
14486
14549
|
var data = instance.data,
|
|
14487
14550
|
widget = instance.widget,
|
|
14488
14551
|
state = instance.state;
|
|
@@ -14516,12 +14579,10 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
14516
14579
|
}),
|
|
14517
14580
|
});
|
|
14518
14581
|
}
|
|
14519
|
-
if (
|
|
14582
|
+
if (iconVDOM) {
|
|
14520
14583
|
icon = /*#__PURE__*/ jsx("div", {
|
|
14521
14584
|
className: CSS.element(baseClass, "left-icon"),
|
|
14522
|
-
children:
|
|
14523
|
-
className: CSS.element(baseClass, "icon"),
|
|
14524
|
-
}),
|
|
14585
|
+
children: iconVDOM,
|
|
14525
14586
|
});
|
|
14526
14587
|
}
|
|
14527
14588
|
var dropdown = false;
|
package/locale/de-de.js
CHANGED
|
@@ -24,11 +24,14 @@ const calendarErrorMessages = {
|
|
|
24
24
|
minValueErrorText: 'Wählen Sie {0:d} oder später.',
|
|
25
25
|
minExclusiveErrorText: 'Wählen Sie ein Datum nach dem {0:d}.',
|
|
26
26
|
};
|
|
27
|
+
|
|
27
28
|
// Calendar
|
|
28
29
|
Localization.localize(c, 'cx/widgets/Calendar', {
|
|
29
30
|
...calendarErrorMessages,
|
|
30
|
-
todayButtonText: 'Heute'
|
|
31
|
+
todayButtonText: 'Heute',
|
|
32
|
+
startWithMonday: true
|
|
31
33
|
});
|
|
34
|
+
|
|
32
35
|
// MonthPicker
|
|
33
36
|
Localization.localize(c, 'cx/widgets/MonthPicker', calendarErrorMessages);
|
|
34
37
|
|
|
@@ -37,8 +40,10 @@ const dateFieldErrorMessages = {
|
|
|
37
40
|
...calendarErrorMessages,
|
|
38
41
|
inputErrorText: 'Ungültiges Datum eingegeben.'
|
|
39
42
|
};
|
|
43
|
+
|
|
40
44
|
// MonthField
|
|
41
45
|
Localization.localize(c, 'cx/widgets/MonthField', dateFieldErrorMessages);
|
|
46
|
+
|
|
42
47
|
// DateField
|
|
43
48
|
Localization.localize(c, 'cx/widgets/DateField', dateFieldErrorMessages);
|
|
44
49
|
|
package/locale/en-us.js
CHANGED
|
@@ -24,12 +24,14 @@ const calendarErrorMessages = {
|
|
|
24
24
|
minValueErrorText: 'Select {0:d} or later.',
|
|
25
25
|
minExclusiveErrorText: 'Select a date after {0:d}.',
|
|
26
26
|
};
|
|
27
|
+
|
|
27
28
|
// Calendar
|
|
28
29
|
Localization.localize(c, 'cx/widgets/Calendar', {
|
|
29
30
|
...calendarErrorMessages,
|
|
30
31
|
todayButtonText: 'Today',
|
|
31
32
|
startWithMonday: false
|
|
32
33
|
});
|
|
34
|
+
|
|
33
35
|
// MonthPicker
|
|
34
36
|
Localization.localize(c, 'cx/widgets/MonthPicker', calendarErrorMessages);
|
|
35
37
|
|
|
@@ -38,8 +40,10 @@ const dateFieldErrorMessages = {
|
|
|
38
40
|
...calendarErrorMessages,
|
|
39
41
|
inputErrorText: 'Invalid date entered.'
|
|
40
42
|
};
|
|
43
|
+
|
|
41
44
|
// MonthField
|
|
42
45
|
Localization.localize(c, 'cx/widgets/MonthField', dateFieldErrorMessages);
|
|
46
|
+
|
|
43
47
|
// DateField
|
|
44
48
|
Localization.localize(c, 'cx/widgets/DateField', dateFieldErrorMessages);
|
|
45
49
|
|
|
@@ -68,4 +72,4 @@ Localization.localize(c, 'cx/widgets/UploadButton', {
|
|
|
68
72
|
Localization.localize(c, 'cx/widgets/MsgBox', {
|
|
69
73
|
yesText: "Yes",
|
|
70
74
|
noText: "No"
|
|
71
|
-
});
|
|
75
|
+
});
|
package/locale/es-es.js
CHANGED
|
@@ -24,11 +24,14 @@ const calendarErrorMessages = {
|
|
|
24
24
|
minValueErrorText: 'Seleccione {0: d} o posterior',
|
|
25
25
|
minExclusiveErrorText: 'Seleccione una fecha después de {0: d}.',
|
|
26
26
|
};
|
|
27
|
+
|
|
27
28
|
// Calendar
|
|
28
29
|
Localization.localize(c, 'cx/widgets/Calendar', {
|
|
29
30
|
...calendarErrorMessages,
|
|
30
|
-
todayButtonText: 'Hoy'
|
|
31
|
+
todayButtonText: 'Hoy',
|
|
32
|
+
startWithMonday: true
|
|
31
33
|
});
|
|
34
|
+
|
|
32
35
|
// MonthPicker
|
|
33
36
|
Localization.localize(c, 'cx/widgets/MonthPicker', calendarErrorMessages);
|
|
34
37
|
|
|
@@ -37,8 +40,10 @@ const dateFieldErrorMessages = {
|
|
|
37
40
|
...calendarErrorMessages,
|
|
38
41
|
inputErrorText: 'Fecha introducida no es válida.'
|
|
39
42
|
};
|
|
43
|
+
|
|
40
44
|
// MonthField
|
|
41
45
|
Localization.localize(c, 'cx/widgets/MonthField', dateFieldErrorMessages);
|
|
46
|
+
|
|
42
47
|
// DateField
|
|
43
48
|
Localization.localize(c, 'cx/widgets/DateField', dateFieldErrorMessages);
|
|
44
49
|
|
package/locale/fr-fr.js
CHANGED
|
@@ -24,11 +24,14 @@ const calendarErrorMessages = {
|
|
|
24
24
|
minValueErrorText: 'Sélectionnez {0:d} ou plus tard.',
|
|
25
25
|
minExclusiveErrorText: 'Sélectionnez une date après {0:d}.',
|
|
26
26
|
};
|
|
27
|
+
|
|
27
28
|
// Calendar
|
|
28
29
|
Localization.localize(c, 'cx/widgets/Calendar', {
|
|
29
30
|
...calendarErrorMessages,
|
|
30
|
-
todayButtonText: 'Aujourd\'hui'
|
|
31
|
+
todayButtonText: 'Aujourd\'hui',
|
|
32
|
+
startWithMonday: true
|
|
31
33
|
});
|
|
34
|
+
|
|
32
35
|
// MonthPicker
|
|
33
36
|
Localization.localize(c, 'cx/widgets/MonthPicker', calendarErrorMessages);
|
|
34
37
|
|
|
@@ -37,8 +40,10 @@ const dateFieldErrorMessages = {
|
|
|
37
40
|
...calendarErrorMessages,
|
|
38
41
|
inputErrorText: 'Date invalide entrée.'
|
|
39
42
|
};
|
|
43
|
+
|
|
40
44
|
// MonthField
|
|
41
45
|
Localization.localize(c, 'cx/widgets/MonthField', dateFieldErrorMessages);
|
|
46
|
+
|
|
42
47
|
// DateField
|
|
43
48
|
Localization.localize(c, 'cx/widgets/DateField', dateFieldErrorMessages);
|
|
44
49
|
|
|
@@ -67,4 +72,4 @@ Localization.localize(c, 'cx/widgets/UploadButton', {
|
|
|
67
72
|
Localization.localize(c, 'cx/widgets/MsgBox', {
|
|
68
73
|
yesText: "Oui",
|
|
69
74
|
noText: "Non"
|
|
70
|
-
});
|
|
75
|
+
});
|
package/locale/nl-nl.js
CHANGED
|
@@ -12,7 +12,6 @@ Localization.localize(c, 'cx/widgets/Field', {
|
|
|
12
12
|
// LookupField
|
|
13
13
|
Localization.localize(c, 'cx/widgets/LookupField', {
|
|
14
14
|
loadingText: 'Bezig met laden ...',
|
|
15
|
-
requiredText: 'Dit veld is verplicht.',
|
|
16
15
|
queryErrorText: 'Er is een fout opgetreden bij het weergeven van gegevens.',
|
|
17
16
|
noResultsText: 'Geen resultaten gevonden',
|
|
18
17
|
minQueryLengthMessageText: 'Voer minimaal {0} tekens in.'
|
|
@@ -20,7 +19,6 @@ Localization.localize(c, 'cx/widgets/LookupField', {
|
|
|
20
19
|
|
|
21
20
|
// In common for Calendar and MonthPicker
|
|
22
21
|
const calendarErrorMessages = {
|
|
23
|
-
requiredText: 'Dit veld is verplicht.',
|
|
24
22
|
maxValueErrorText: 'De geselecteerde datum is later dan de laatst toegestane datum {0: d}',
|
|
25
23
|
maxExclusiveErrorText: 'De geselecteerde datum moet vóór {0: d}',
|
|
26
24
|
minValueErrorText: 'De geselecteerde datum is eerder dan {0: d}',
|
|
@@ -30,8 +28,10 @@ const calendarErrorMessages = {
|
|
|
30
28
|
// Calendar
|
|
31
29
|
Localization.localize(c, 'cx/widgets/Calendar', {
|
|
32
30
|
...calendarErrorMessages,
|
|
33
|
-
todayButtonText: 'Vandaag'
|
|
31
|
+
todayButtonText: 'Vandaag',
|
|
32
|
+
startWithMonday: true
|
|
34
33
|
});
|
|
34
|
+
|
|
35
35
|
// MonthPicker
|
|
36
36
|
Localization.localize(c, 'cx/widgets/MonthPicker', calendarErrorMessages);
|
|
37
37
|
|
|
@@ -43,12 +43,12 @@ const dateFieldErrorMessages = {
|
|
|
43
43
|
|
|
44
44
|
// MonthField
|
|
45
45
|
Localization.localize(c, 'cx/widgets/MonthField', dateFieldErrorMessages);
|
|
46
|
+
|
|
46
47
|
// DateField
|
|
47
48
|
Localization.localize(c, 'cx/widgets/DateField', dateFieldErrorMessages);
|
|
48
49
|
|
|
49
50
|
// NumberField
|
|
50
51
|
Localization.localize(c, 'cx/widgets/NumberField', {
|
|
51
|
-
requiredText: 'Dit veld is verplicht.',
|
|
52
52
|
maxValueErrorText: 'Voer {0} of minder in.',
|
|
53
53
|
maxExclusiveErrorText: 'Voer een nummer in dat kleiner is dan {0}.',
|
|
54
54
|
minValueErrorText: 'Voer {0} of meer in.',
|
|
@@ -58,7 +58,6 @@ Localization.localize(c, 'cx/widgets/NumberField', {
|
|
|
58
58
|
|
|
59
59
|
// TextField
|
|
60
60
|
Localization.localize(c, 'cx/widgets/TextField', {
|
|
61
|
-
requiredText: 'Dit veld is verplicht.',
|
|
62
61
|
validationErrorText: 'De ingevoerde waarde is ongeldig.',
|
|
63
62
|
minLengthValidationErrorText: 'Vul {[{0} - {1}]} extra karakters in.',
|
|
64
63
|
maxLengthValidationErrorText: 'Gebruik {0} tekens of minder.'
|
package/locale/pt-pt.js
CHANGED
|
@@ -24,11 +24,14 @@ const calendarErrorMessages = {
|
|
|
24
24
|
minValueErrorText: 'Selecione {0:d} ou posterior.',
|
|
25
25
|
minExclusiveErrorText: 'Selecione uma data após {0:d}.',
|
|
26
26
|
};
|
|
27
|
+
|
|
27
28
|
// Calendar
|
|
28
29
|
Localization.localize(c, 'cx/widgets/Calendar', {
|
|
29
30
|
...calendarErrorMessages,
|
|
30
|
-
todayButtonText: 'Hoje'
|
|
31
|
+
todayButtonText: 'Hoje',
|
|
32
|
+
startWithMonday: false
|
|
31
33
|
});
|
|
34
|
+
|
|
32
35
|
// MonthPicker
|
|
33
36
|
Localization.localize(c, 'cx/widgets/MonthPicker', calendarErrorMessages);
|
|
34
37
|
|
|
@@ -37,8 +40,10 @@ const dateFieldErrorMessages = {
|
|
|
37
40
|
...calendarErrorMessages,
|
|
38
41
|
inputErrorText: 'Data inválida inserida.'
|
|
39
42
|
};
|
|
43
|
+
|
|
40
44
|
// MonthField
|
|
41
45
|
Localization.localize(c, 'cx/widgets/MonthField', dateFieldErrorMessages);
|
|
46
|
+
|
|
42
47
|
// DateField
|
|
43
48
|
Localization.localize(c, 'cx/widgets/DateField', dateFieldErrorMessages);
|
|
44
49
|
|
|
@@ -61,4 +66,10 @@ Localization.localize(c, 'cx/widgets/TextField', {
|
|
|
61
66
|
// UploadButton
|
|
62
67
|
Localization.localize(c, 'cx/widgets/UploadButton', {
|
|
63
68
|
validationErrorText: 'O upload está em andamento.'
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
// MsgBox
|
|
72
|
+
Localization.localize(c, 'cx/widgets/MsgBox', {
|
|
73
|
+
yesText: "Sim",
|
|
74
|
+
noText: "Não"
|
|
64
75
|
});
|
package/locale/sr-latn-ba.js
CHANGED
|
@@ -6,14 +6,14 @@ var c = 'sr-latn-ba';
|
|
|
6
6
|
Localization.localize(c, 'cx/widgets/Field', {
|
|
7
7
|
requiredText: 'Ovo polje je obavezno.',
|
|
8
8
|
validatingText: 'Validacija je u toku...',
|
|
9
|
-
validationExceptionText: 'Došlo je do problema prilikom validacije podataka. Provjerite log za više detalja'
|
|
9
|
+
validationExceptionText: 'Došlo je do problema prilikom validacije podataka. Provjerite log za više detalja.'
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
// LookupField
|
|
13
13
|
Localization.localize(c, 'cx/widgets/LookupField', {
|
|
14
14
|
loadingText: 'Učitavanje...',
|
|
15
15
|
queryErrorText: 'Došlo je do greške kod pribavljanja podataka za prikaz.',
|
|
16
|
-
noResultsText: 'Rezultati nisu pronađeni',
|
|
16
|
+
noResultsText: 'Rezultati nisu pronađeni.',
|
|
17
17
|
minQueryLengthMessageText: 'Unesite najmanje {0} karakter(a).'
|
|
18
18
|
});
|
|
19
19
|
|
|
@@ -24,12 +24,14 @@ const calendarErrorMessages = {
|
|
|
24
24
|
minValueErrorText: 'Izabrani datum je raniji od {0:d}',
|
|
25
25
|
minExclusiveErrorText: 'Izabrani datum bi trebao biti kasniji od {0:d}',
|
|
26
26
|
};
|
|
27
|
+
|
|
27
28
|
// Calendar
|
|
28
29
|
Localization.localize(c, 'cx/widgets/Calendar', {
|
|
29
30
|
...calendarErrorMessages,
|
|
30
31
|
todayButtonText: 'Danas',
|
|
31
32
|
startWithMonday: true
|
|
32
33
|
});
|
|
34
|
+
|
|
33
35
|
// MonthPicker
|
|
34
36
|
Localization.localize(c, 'cx/widgets/MonthPicker', calendarErrorMessages);
|
|
35
37
|
|
|
@@ -38,8 +40,10 @@ const dateFieldErrorMessages = {
|
|
|
38
40
|
...calendarErrorMessages,
|
|
39
41
|
inputErrorText: 'Neispravan datum.'
|
|
40
42
|
};
|
|
43
|
+
|
|
41
44
|
// MonthField
|
|
42
45
|
Localization.localize(c, 'cx/widgets/MonthField', dateFieldErrorMessages);
|
|
46
|
+
|
|
43
47
|
// DateField
|
|
44
48
|
Localization.localize(c, 'cx/widgets/DateField', dateFieldErrorMessages);
|
|
45
49
|
|
package/package.json
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import {Store} from '../Store';
|
|
2
|
-
import {updateTree} from './updateTree';
|
|
1
|
+
import { Store } from '../Store';
|
|
2
|
+
import { updateTree } from './updateTree';
|
|
3
3
|
import assert from 'assert';
|
|
4
4
|
|
|
5
|
-
describe('updateTree', function() {
|
|
5
|
+
describe('updateTree', function () {
|
|
6
6
|
it('updates all nodes that satisfy criteria', function () {
|
|
7
7
|
let store = new Store({
|
|
8
|
-
data: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
data: {
|
|
9
|
+
array: [{
|
|
10
|
+
id: 'n1',
|
|
11
|
+
value: 1,
|
|
12
|
+
children: [{
|
|
13
|
+
id: 'n11',
|
|
14
|
+
value: 2
|
|
15
|
+
}, {
|
|
16
|
+
id: 'n12',
|
|
17
|
+
value: 3
|
|
18
|
+
}]
|
|
17
19
|
}]
|
|
18
|
-
}
|
|
20
|
+
}
|
|
19
21
|
});
|
|
20
22
|
|
|
21
|
-
assert(store.update('array', updateTree, x => ({ ...x, value: x.value + 1}), x => x.value > 1, 'children'));
|
|
23
|
+
assert(store.update('array', updateTree, x => ({ ...x, value: x.value + 1 }), x => x.value > 1, 'children'));
|
|
22
24
|
assert.deepEqual(store.get('array'), [{
|
|
23
25
|
id: 'n1',
|
|
24
26
|
value: 1,
|
package/src/ui/Culture.d.ts
CHANGED
package/src/ui/DataProxy.d.ts
CHANGED
package/src/ui/DataProxy.js
CHANGED