jsl-ui 9.3.2 → 9.6.0

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 (36) hide show
  1. package/lib/components/auto-suggest/AutoSuggestComponent.js +1 -1
  2. package/lib/components/button/ButtonComponent.js +1 -1
  3. package/lib/components/checkbox/CheckBoxComponent.js +1 -1
  4. package/lib/components/date/DateComponent.js +1 -1
  5. package/lib/components/date-range/DateRangeComponent.js +1 -1
  6. package/lib/components/dialog/DialogComponent.js +2 -2
  7. package/lib/components/expander/ExpanderComponent.js +8 -8
  8. package/lib/components/form-field/FormFieldComponent.d.ts +1 -0
  9. package/lib/components/form-field/FormFieldComponent.js +3 -2
  10. package/lib/components/grid/GridComponent.js +1 -1
  11. package/lib/components/input/InputComponent.js +3 -3
  12. package/lib/components/navigation/NavigationComponent.js +13 -11
  13. package/lib/components/notification/Notification.js +1 -1
  14. package/lib/components/number/NumberComponent.js +1 -1
  15. package/lib/components/progress/ProgressComponent.js +2 -2
  16. package/lib/components/ribbon-menu/RibbonMenuComponent.js +9 -7
  17. package/lib/components/select/SelectComponent.js +3 -3
  18. package/lib/components/select/SelectDDAreaComponent.js +23 -19
  19. package/lib/components/stack-panel/SplitterComponent.js +1 -1
  20. package/lib/components/tabs/TabsComponent.js +24 -22
  21. package/lib/components/time/TimeComponent.js +4 -4
  22. package/lib/components/tree-view/TreeViewComponent.js +1 -1
  23. package/lib/components/virtual-render/VirtualRenderComponent.js +2 -2
  24. package/lib/core/culture.js +2 -2
  25. package/lib/grid/filterDialogs/excelFilter.js +4 -4
  26. package/lib/grid/slick.editors.date.d.ts +1 -0
  27. package/lib/grid/slick.editors.date.js +58 -0
  28. package/lib/grid/slick.formatters.js +1 -1
  29. package/lib/grid/slick.grid.d.ts +1 -0
  30. package/lib/grid/slick.grid.js +5 -5
  31. package/lib/grid/slick.groupitemmetadataprovider.d.ts +4 -4
  32. package/lib/index.js.map +1 -1
  33. package/lib/interaction/dataconverter.js +1 -0
  34. package/lib/ui/dialog.d.ts +1 -0
  35. package/lib/ui/dialog.js +8 -2
  36. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ export {};
@@ -4,6 +4,7 @@ export interface IDialogOptions {
4
4
  autoFocus?: string;
5
5
  modal?: boolean;
6
6
  closeOnEscape?: boolean;
7
+ OkOnEnter?: boolean;
7
8
  closeOnOverlayClick?: boolean;
8
9
  onClose?: () => void | boolean;
9
10
  onOpen?: () => void;
package/lib/ui/dialog.js CHANGED
@@ -56,11 +56,17 @@ var JSLDialog = /** @class */ (function () {
56
56
  }
57
57
  }, 0);
58
58
  }
59
- if (this.options.closeOnEscape) {
59
+ if (this.options.closeOnEscape || this.options.OkOnEnter) {
60
60
  this.onKeydownEvent = function (args) {
61
- if (args.keyCode === 27) { // escape
61
+ if (args.keyCode === 27 && _this.options.closeOnEscape) { // escape
62
62
  _this.close();
63
63
  }
64
+ else if (args.keyCode === 13 && _this.options.OkOnEnter) { // ok
65
+ var ok_btn = _this.el.querySelector(".dlg-ok-btn");
66
+ if (ok_btn != null) {
67
+ ok_btn.click();
68
+ }
69
+ }
64
70
  };
65
71
  document.addEventListener("keydown", this.onKeydownEvent);
66
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsl-ui",
3
- "version": "9.3.2",
3
+ "version": "9.6.0",
4
4
  "description": "javascript UI library",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -10,7 +10,7 @@
10
10
  "copycss": "xcopy /sy ui\\*.css lib\\ui\\ && xcopy /sy components\\*.css lib\\components\\ && xcopy /sy grid\\*.css lib\\grid\\ && xcopy /sy interaction\\*.css lib\\interaction\\",
11
11
  "copyscss": "xcopy /sy ui\\*.scss lib\\ui\\ && xcopy /sy components\\*.scss lib\\components\\ && xcopy /sy grid\\*.scss lib\\grid\\ && xcopy /sy interaction\\*.scss lib\\interaction\\",
12
12
  "buildcss": "parcel build .\\index.ts --no-scope-hoist && parcel build .\\grid.ts --no-scope-hoist",
13
- "build": "npm run copycss && npm run copyscss && npm run buildcss && tsc"
13
+ "build": "npm run buildcss && npm run copycss && npm run copyscss && tsc"
14
14
  },
15
15
  "author": "Philipp P.",
16
16
  "devDependencies": {