config.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /**
  2. * DevExtreme (core/config.js)
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
  8. */
  9. "use strict";
  10. var _extend = require("./utils/extend");
  11. var _extend2 = _interopRequireDefault(_extend);
  12. var _errors = require("./errors");
  13. var _errors2 = _interopRequireDefault(_errors);
  14. function _interopRequireDefault(obj) {
  15. return obj && obj.__esModule ? obj : {
  16. "default": obj
  17. }
  18. }
  19. var config = {
  20. rtlEnabled: false,
  21. defaultCurrency: "USD",
  22. oDataFilterToLower: true,
  23. serverDecimalSeparator: ".",
  24. decimalSeparator: ".",
  25. thousandsSeparator: ",",
  26. forceIsoDateParsing: true,
  27. wrapActionsBeforeExecute: true,
  28. useLegacyStoreResult: false,
  29. useJQuery: void 0,
  30. editorStylingMode: void 0,
  31. useLegacyVisibleIndex: false,
  32. floatingActionButtonConfig: {
  33. icon: "add",
  34. closeIcon: "close",
  35. position: {
  36. at: "right bottom",
  37. my: "right bottom",
  38. offset: {
  39. x: -16,
  40. y: -16
  41. }
  42. },
  43. maxSpeedDialActionCount: 5
  44. },
  45. optionsParser: function(optionsString) {
  46. if ("{" !== optionsString.trim().charAt(0)) {
  47. optionsString = "{" + optionsString + "}"
  48. }
  49. try {
  50. return new Function("return " + optionsString)()
  51. } catch (ex) {
  52. throw _errors2.default.Error("E3018", ex, optionsString)
  53. }
  54. }
  55. };
  56. var configMethod = function() {
  57. if (!arguments.length) {
  58. return config
  59. }
  60. _extend2.default.extend(config, arguments.length <= 0 ? void 0 : arguments[0])
  61. };
  62. if ("undefined" !== typeof DevExpress && DevExpress.config) {
  63. configMethod(DevExpress.config)
  64. }
  65. module.exports = configMethod;
  66. module.exports.default = module.exports;