@genexus/genexus-ide-ui 0.0.21 → 0.0.23

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 (101) hide show
  1. package/dist/cjs/{ch-grid_4.cjs.entry.js → ch-grid_8.cjs.entry.js} +143 -0
  2. package/dist/cjs/{ch-suggest_5.cjs.entry.js → ch-suggest_4.cjs.entry.js} +0 -65
  3. package/dist/cjs/format-date-f2c49d1a.js +28 -0
  4. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  5. package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +4 -24
  6. package/dist/cjs/gx-ide-team-dev-select-recent-comment.cjs.entry.js +5 -15
  7. package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +102 -0
  8. package/dist/cjs/gx-ide-team-dev-update-to-revision.cjs.entry.js +53 -0
  9. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +278 -0
  10. package/dist/cjs/gx-ide-top-bar.cjs.entry.js +37 -0
  11. package/dist/cjs/{gxg-combo-box_8.cjs.entry.js → gxg-combo-box_6.cjs.entry.js} +1 -132
  12. package/dist/cjs/gxg-form-checkbox-group_2.cjs.entry.js +140 -0
  13. package/dist/cjs/{gx-ide-top-bar_2.cjs.entry.js → gxg-form-radio-group.cjs.entry.js} +0 -31
  14. package/dist/cjs/gxg-text.cjs.entry.js +72 -0
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/collection/collection-manifest.json +3 -0
  17. package/dist/collection/common/format-date.js +11 -0
  18. package/dist/collection/components/team-dev-commit/team-dev-commit.js +3 -13
  19. package/dist/collection/components/team-dev-select-recent-comment/team-dev-select-recent-comment.js +6 -16
  20. package/dist/collection/components/team-dev-update/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.en.json +45 -0
  21. package/dist/collection/components/team-dev-update/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.ja.json +3 -0
  22. package/dist/collection/components/team-dev-update/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.zh.json +3 -0
  23. package/dist/collection/components/team-dev-update/team-dev-update.css +216 -0
  24. package/dist/collection/components/team-dev-update/team-dev-update.js +524 -0
  25. package/dist/collection/components/team-dev-update-partial-selection/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.en.json +15 -0
  26. package/dist/collection/components/team-dev-update-partial-selection/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.ja.json +3 -0
  27. package/dist/collection/components/team-dev-update-partial-selection/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.zh.json +3 -0
  28. package/dist/collection/components/team-dev-update-partial-selection/team-dev-update-partial-selection.css +149 -0
  29. package/dist/collection/components/team-dev-update-partial-selection/team-dev-update-partial-selection.js +238 -0
  30. package/dist/collection/components/team-dev-update-to-revision/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.en.json +11 -0
  31. package/dist/collection/components/team-dev-update-to-revision/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.ja.json +3 -0
  32. package/dist/collection/components/team-dev-update-to-revision/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.zh.json +3 -0
  33. package/dist/collection/components/team-dev-update-to-revision/team-dev-update-to-revision.css +147 -0
  34. package/dist/collection/components/team-dev-update-to-revision/team-dev-update-to-revision.js +136 -0
  35. package/dist/components/ch-grid-rowset-empty.js +1 -24
  36. package/dist/components/ch-grid-rowset-empty2.js +26 -0
  37. package/dist/components/format-date.js +25 -0
  38. package/dist/components/gx-ide-team-dev-commit.js +4 -24
  39. package/dist/components/gx-ide-team-dev-select-recent-comment.js +5 -15
  40. package/dist/components/gx-ide-team-dev-update-partial-selection.d.ts +11 -0
  41. package/dist/components/gx-ide-team-dev-update-partial-selection.js +213 -0
  42. package/dist/components/gx-ide-team-dev-update-to-revision.d.ts +11 -0
  43. package/dist/components/gx-ide-team-dev-update-to-revision.js +131 -0
  44. package/dist/components/gx-ide-team-dev-update.d.ts +11 -0
  45. package/dist/components/gx-ide-team-dev-update.js +473 -0
  46. package/dist/components/index.d.ts +3 -0
  47. package/dist/components/index.js +3 -0
  48. package/dist/components/tabs.js +1 -0
  49. package/dist/esm/{ch-grid_4.entry.js → ch-grid_8.entry.js} +140 -1
  50. package/dist/esm/{ch-suggest_5.entry.js → ch-suggest_4.entry.js} +1 -65
  51. package/dist/esm/format-date-e9ca0786.js +25 -0
  52. package/dist/esm/genexus-ide-ui.js +1 -1
  53. package/dist/esm/gx-ide-team-dev-commit.entry.js +4 -24
  54. package/dist/esm/gx-ide-team-dev-select-recent-comment.entry.js +5 -15
  55. package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +98 -0
  56. package/dist/esm/gx-ide-team-dev-update-to-revision.entry.js +49 -0
  57. package/dist/esm/gx-ide-team-dev-update.entry.js +274 -0
  58. package/dist/esm/gx-ide-top-bar.entry.js +33 -0
  59. package/dist/esm/{gxg-combo-box_8.entry.js → gxg-combo-box_6.entry.js} +3 -132
  60. package/dist/esm/gxg-form-checkbox-group_2.entry.js +135 -0
  61. package/dist/esm/{gx-ide-top-bar_2.entry.js → gxg-form-radio-group.entry.js} +2 -32
  62. package/dist/esm/gxg-text.entry.js +68 -0
  63. package/dist/esm/loader.js +1 -1
  64. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  65. package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.en.json +45 -0
  66. package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.ja.json +3 -0
  67. package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.zh.json +3 -0
  68. package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.en.json +15 -0
  69. package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.ja.json +3 -0
  70. package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.zh.json +3 -0
  71. package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.en.json +11 -0
  72. package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.ja.json +3 -0
  73. package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.zh.json +3 -0
  74. package/dist/genexus-ide-ui/p-16bd5578.entry.js +1 -0
  75. package/dist/genexus-ide-ui/p-32b8abf6.entry.js +1 -0
  76. package/dist/genexus-ide-ui/p-3bdcb73b.entry.js +1 -0
  77. package/dist/genexus-ide-ui/p-53d36ef7.entry.js +1 -0
  78. package/dist/genexus-ide-ui/p-5884a014.entry.js +1 -0
  79. package/dist/genexus-ide-ui/p-66072dce.entry.js +1 -0
  80. package/dist/genexus-ide-ui/p-6e80380b.entry.js +1 -0
  81. package/dist/genexus-ide-ui/p-718759e7.entry.js +1 -0
  82. package/dist/genexus-ide-ui/p-72303355.js +1 -0
  83. package/dist/genexus-ide-ui/p-757f8567.entry.js +1 -0
  84. package/dist/genexus-ide-ui/p-a0e85c2a.entry.js +1 -0
  85. package/dist/genexus-ide-ui/p-afe9515e.entry.js +1 -0
  86. package/dist/types/common/format-date.d.ts +1 -0
  87. package/dist/types/components/team-dev-commit/team-dev-commit.d.ts +0 -1
  88. package/dist/types/components/team-dev-select-recent-comment/team-dev-select-recent-comment.d.ts +1 -31
  89. package/dist/types/components/team-dev-update/team-dev-update.d.ts +173 -0
  90. package/dist/types/components/team-dev-update-partial-selection/team-dev-update-partial-selection.d.ts +61 -0
  91. package/dist/types/components/team-dev-update-to-revision/team-dev-update-to-revision.d.ts +41 -0
  92. package/dist/types/components.d.ts +207 -1
  93. package/package.json +3 -3
  94. package/dist/cjs/ch-grid-column-resize_4.cjs.entry.js +0 -150
  95. package/dist/esm/ch-grid-column-resize_4.entry.js +0 -143
  96. package/dist/genexus-ide-ui/p-554ed73a.entry.js +0 -1
  97. package/dist/genexus-ide-ui/p-6d378d61.entry.js +0 -1
  98. package/dist/genexus-ide-ui/p-a8433582.entry.js +0 -1
  99. package/dist/genexus-ide-ui/p-b26b5d74.entry.js +0 -1
  100. package/dist/genexus-ide-ui/p-d5c29251.entry.js +0 -1
  101. package/dist/genexus-ide-ui/p-f1a3397d.entry.js +0 -1
@@ -4,16 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-5a32426a.js');
6
6
  const locale = require('./locale-c8445ea4.js');
7
-
8
- /* STENCIL IMPORTS */
9
- const renderComboItems = (gxOptions) => {
10
- const comboItemsArray = [];
11
- gxOptions.forEach((gxOption) => {
12
- const iconName = gxOption.iconName || gxOption.icon;
13
- comboItemsArray.push(index.h("gxg-combo-box-item", { value: gxOption.value, icon: iconName }, gxOption.label || gxOption.name));
14
- });
15
- return comboItemsArray;
16
- };
7
+ const formatDate = require('./format-date-f2c49d1a.js');
17
8
 
18
9
  const teamDevCommitCss = ".gxi-hidden{display:none !important}.gxi-full-height{height:100%}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}:host(.gx-ide-component){box-shadow:var(--box-shadow-01) !important;height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--font-weight-regular);font-size:var(--font-size-lg);line-height:1.6em;height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:6px;height:6px}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-main .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:6px;height:6px}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-overflow .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}:host{display:block}.main-wrapper{width:100%}.gxg-tabs{margin-top:0;box-shadow:none}.header{grid-template-columns:4fr auto}.second-grid{grid-template-rows:1fr auto}.second-grid .actions-row{grid-template-columns:1fr auto}.action-buttons{justify-self:flex-end}.hidden{display:none}.filters-grid{grid-template-rows:repeat(2, 1fr)}.filters-grid .first-row{grid-template-columns:repeat(2, 1fr)}.filters-grid .second-row{grid-template-columns:repeat(2, 1fr)}";
19
10
 
@@ -73,17 +64,6 @@ const GxIdeTeamDevCommit = class {
73
64
  }
74
65
  return index.h("gxg-icon", { type: type, color: color });
75
66
  };
76
- this.formatDate = (dateObject) => {
77
- const date = dateObject.toISOString().slice(0, 10);
78
- const hours = dateObject.getHours();
79
- const minutes = dateObject.getMinutes();
80
- const time = `${hours}:${minutes}`;
81
- let period = "AM"; // Assume it's AM by default
82
- if (hours >= 12) {
83
- period = "PM";
84
- }
85
- return `${date} ${time}${period} `;
86
- };
87
67
  this.pendingCommitsRowMarkingChangedHandler = async (e) => {
88
68
  // remove "rowMarkingChanged" until checkboxes have been added/removed on togglePendingCommitsCheckboxes, to prevent loops.
89
69
  this.chGridPendingCommitsEl.removeEventListener("rowMarkingChanged", this.pendingCommitsRowMarkingChangedHandler);
@@ -120,11 +100,11 @@ const GxIdeTeamDevCommit = class {
120
100
  };
121
101
  /* pending commits grid render*/
122
102
  this.renderPendingCommitsGrid = () => {
123
- return (index.h("gxg-grid", null, index.h("ch-grid", { rowSelectionMode: "multiple", ref: (el) => (this.chGridPendingCommitsEl = el), part: "ch-grid-pending-commits", class: "no-border", onContextMenu: this.gridContextMenuCallbackHandler("commit") }, index.h("ch-grid-columnset", null, index.h("ch-grid-column", { columnType: "rich", richRowSelector: true, richRowSelectorMode: "mark", settingable: false, sortable: false, size: "auto" }), index.h("ch-grid-column", { columnName: "State", settingable: false, sortable: false, size: "auto" }), index.h("ch-grid-column", { settingable: false, sortable: false, size: "auto" }), index.h("ch-grid-column", { sortable: true, columnName: "Name", settingable: false, size: "auto" }), index.h("ch-grid-column", { sortable: true, columnName: "Type", settingable: false, size: "auto" }), index.h("ch-grid-column", { columnName: "Description", settingable: false, size: "auto" }), index.h("ch-grid-column", { sortable: true, columnName: "Modified On", settingable: false }), index.h("ch-grid-column", { columnName: "Module", settingable: false, size: "auto" }), index.h("ch-grid-column", { columnName: "Local State", settingable: false, size: "auto" }), index.h("ch-grid-column", { columnName: "Last Synchronized", settingable: false, size: "150px" }), index.h("ch-grid-column", { sortable: true, columnName: "User", settingable: false, size: "auto" })), this.pendingCommits.map((obj) => (index.h("ch-grid-row", { rowid: obj.id }, index.h("ch-grid-cell", { "cell-type": "rich", "row-selector": true }), index.h("ch-grid-cell", null, " ", this.renderIconState(obj.state), " "), index.h("ch-grid-cell", null, index.h("gxg-icon", { color: "auto", type: obj.iconType })), index.h("ch-grid-cell", null, " ", obj.name, " "), index.h("ch-grid-cell", null, " ", obj.type, " "), index.h("ch-grid-cell", null, " ", obj.description, " "), index.h("ch-grid-cell", null, `${this.formatDate(obj.modifiedOn)}`), index.h("ch-grid-cell", null, " ", obj.module, " "), index.h("ch-grid-cell", null, " ", obj.localState, " "), index.h("ch-grid-cell", null, `${this.formatDate(obj.lastSynchronized)}`), index.h("ch-grid-cell", null, " ", obj.user, " ")))))));
103
+ return (index.h("gxg-grid", null, index.h("ch-grid", { rowSelectionMode: "multiple", ref: (el) => (this.chGridPendingCommitsEl = el), part: "ch-grid-pending-commits", class: "no-border", onContextMenu: this.gridContextMenuCallbackHandler("commit") }, index.h("ch-grid-columnset", null, index.h("ch-grid-column", { columnType: "rich", richRowSelector: true, richRowSelectorMode: "mark", settingable: false, sortable: false, size: "auto" }), index.h("ch-grid-column", { columnName: "State", settingable: false, sortable: false, size: "auto" }), index.h("ch-grid-column", { settingable: false, sortable: false, size: "auto" }), index.h("ch-grid-column", { sortable: true, columnName: "Name", settingable: false, size: "auto" }), index.h("ch-grid-column", { sortable: true, columnName: "Type", settingable: false, size: "auto" }), index.h("ch-grid-column", { columnName: "Description", settingable: false, size: "auto" }), index.h("ch-grid-column", { sortable: true, columnName: "Modified On", settingable: false }), index.h("ch-grid-column", { columnName: "Module", settingable: false, size: "auto" }), index.h("ch-grid-column", { columnName: "Local State", settingable: false, size: "auto" }), index.h("ch-grid-column", { columnName: "Last Synchronized", settingable: false, size: "150px" }), index.h("ch-grid-column", { sortable: true, columnName: "User", settingable: false, size: "auto" })), this.pendingCommits.map((obj) => (index.h("ch-grid-row", { rowid: obj.id }, index.h("ch-grid-cell", { "cell-type": "rich", "row-selector": true }), index.h("ch-grid-cell", null, " ", this.renderIconState(obj.state), " "), index.h("ch-grid-cell", null, index.h("gxg-icon", { color: "auto", type: obj.iconType })), index.h("ch-grid-cell", null, " ", obj.name, " "), index.h("ch-grid-cell", null, " ", obj.type, " "), index.h("ch-grid-cell", null, " ", obj.description, " "), index.h("ch-grid-cell", null, `${formatDate.formatDate(obj.modifiedOn)}`), index.h("ch-grid-cell", null, " ", obj.module, " "), index.h("ch-grid-cell", null, " ", obj.localState, " "), index.h("ch-grid-cell", null, `${formatDate.formatDate(obj.lastSynchronized)}`), index.h("ch-grid-cell", null, " ", obj.user, " ")))))));
124
104
  };
125
105
  /* ignored objects grid render*/
126
106
  this.renderIgnoredObjectsGrid = () => {
127
- return (index.h("gxg-grid", null, index.h("ch-grid", { rowSelectionMode: "multiple", ref: (el) => (this.chIgnoredObjectsEl = el), part: "ch-grid-pending-commits", onContextMenu: this.gridContextMenuCallbackHandler("ignored") }, index.h("ch-grid-columnset", null, index.h("ch-grid-column", { columnName: "", settingable: false }), index.h("ch-grid-column", { columnName: "TypeIcon", settingable: false }), index.h("ch-grid-column", { columnName: "Name", settingable: false, sortable: true }), index.h("ch-grid-column", { columnName: "Type", settingable: false }), index.h("ch-grid-column", { columnName: "Description", settingable: false }), index.h("ch-grid-column", { columnName: "Modified On", settingable: false }), index.h("ch-grid-column", { columnName: "Module", settingable: false }), index.h("ch-grid-column", { columnName: "Local State", settingable: false }), index.h("ch-grid-column", { columnName: "Last Synchronized", settingable: false }), index.h("ch-grid-column", { columnName: "User", settingable: false })), this.ignoredObjects.map((obj) => (index.h("ch-grid-row", { "row-id": obj.id, selected: true }, index.h("ch-grid-cell", null, " ", this.renderIconState(obj.state), " "), index.h("ch-grid-cell", null, index.h("gxg-icon", { color: "auto", type: obj.iconType })), index.h("ch-grid-cell", null, " ", obj.name, " "), index.h("ch-grid-cell", null, " ", obj.type, " "), index.h("ch-grid-cell", null, " ", obj.description, " "), index.h("ch-grid-cell", null, `${this.formatDate(obj.modifiedOn)}`), index.h("ch-grid-cell", null, " ", obj.module, " "), index.h("ch-grid-cell", null, " ", obj.localState, " "), index.h("ch-grid-cell", null, `${this.formatDate(obj.lastSynchronized)}`), index.h("ch-grid-cell", null, " ", obj.user, " ")))))));
107
+ return (index.h("gxg-grid", null, index.h("ch-grid", { rowSelectionMode: "multiple", ref: (el) => (this.chIgnoredObjectsEl = el), part: "ch-grid-pending-commits", onContextMenu: this.gridContextMenuCallbackHandler("ignored") }, index.h("ch-grid-columnset", null, index.h("ch-grid-column", { columnName: "", settingable: false }), index.h("ch-grid-column", { columnName: "TypeIcon", settingable: false }), index.h("ch-grid-column", { columnName: "Name", settingable: false, sortable: true }), index.h("ch-grid-column", { columnName: "Type", settingable: false }), index.h("ch-grid-column", { columnName: "Description", settingable: false }), index.h("ch-grid-column", { columnName: "Modified On", settingable: false }), index.h("ch-grid-column", { columnName: "Module", settingable: false }), index.h("ch-grid-column", { columnName: "Local State", settingable: false }), index.h("ch-grid-column", { columnName: "Last Synchronized", settingable: false }), index.h("ch-grid-column", { columnName: "User", settingable: false })), this.ignoredObjects.map((obj) => (index.h("ch-grid-row", { "row-id": obj.id, selected: true }, index.h("ch-grid-cell", null, " ", this.renderIconState(obj.state), " "), index.h("ch-grid-cell", null, index.h("gxg-icon", { color: "auto", type: obj.iconType })), index.h("ch-grid-cell", null, " ", obj.name, " "), index.h("ch-grid-cell", null, " ", obj.type, " "), index.h("ch-grid-cell", null, " ", obj.description, " "), index.h("ch-grid-cell", null, `${formatDate.formatDate(obj.modifiedOn)}`), index.h("ch-grid-cell", null, " ", obj.module, " "), index.h("ch-grid-cell", null, " ", obj.localState, " "), index.h("ch-grid-cell", null, `${formatDate.formatDate(obj.lastSynchronized)}`), index.h("ch-grid-cell", null, " ", obj.user, " ")))))));
128
108
  };
129
109
  this.getRecentCommentHandler = async () => {
130
110
  if (this.getRecentCommentCallback) {
@@ -206,7 +186,7 @@ const GxIdeTeamDevCommit = class {
206
186
  // 10.RENDER() FUNCTION //
207
187
  render() {
208
188
  return (index.h(index.Host, { class: "gx-ide-component" }, index.h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, index.h("gxg-container", null, index.h("header", { class: "header grid" }, index.h("gxg-form-textarea", { id: "gxg-textarea", height: "100px", label: this._componentLocale.topMenu.commentLabel, value: this.comment, placeholder: this._componentLocale.topMenu.commentPlaceholder }), index.h("gxg-button", { type: "outlined", part: "location", onClick: this.getRecentCommentHandler }, this._componentLocale.topMenu.recentCommentsButton))), index.h("main", { class: "main" }, index.h("gxg-container", { fieldset: true, noContentPadding: !!this.filtersHidden }, index.h("div", { class: "grid second-grid" }, index.h("div", { class: "actions-row grid" }, index.h("gxg-form-text", { class: this.filtersHidden ? "hidden" : null, "disable-filter": true, label: this._componentLocale.filtersMenu.patternLabel, labelPosition: "start", value: "", ref: (el) => (this.patternEl = el), "display-validation-styles": true, "display-validation-message": true, part: "pattern", onInput: this.loadData }), index.h("div", { class: "action-buttons", slot: "tab-bar" }, index.h("gxg-button", { onClick: this.toggleFiltersHandler, type: "secondary-icon-only", icon: "patterns/filters", part: "gxg-button gxg-button--show-filter" }), index.h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/reset", onClick: this.loadData, part: "gxg-button gxg-button--reload" }))), index.h("div", { class: "filters-grid grid " +
209
- (this.filtersHidden ? "hidden" : null) }, index.h("div", { class: "first-row grid" }, index.h("gxg-combo-box", { labelPosition: "start", "disable-filter": true, label: this._componentLocale.filtersMenu.changesetLabel, value: this.changeSet[0]["id"], ref: (el) => (this.changeSetEl = el), part: "change-set", "display-validation-styles": true, "display-validation-message": true, onValueChanged: this.loadData }, renderComboItems(this.changeSet)), index.h("gxg-combo-box", { labelPosition: "start", "disable-filter": true, label: this._componentLocale.filtersMenu.typeLabel, value: this.types[0]["id"], ref: (el) => (this.typesEl = el), part: "type", onValueChanged: this.loadData }, renderComboItems(this.types))), index.h("div", { class: "second-row grid" }, index.h("gxg-combo-box", { labelPosition: "start", "disable-filter": true, label: this._componentLocale.filtersMenu.folderLabel, value: this.folders[0]["id"], ref: (el) => (this.foldersEl = el), part: "folder", "display-validation-styles": true, "display-validation-message": true, onValueChanged: this.loadData }, renderComboItems(this.folders)), index.h("gxg-combo-box", { labelPosition: "start", "disable-filter": true, label: this._componentLocale.filtersMenu.categoryLabel, value: this.categories[0]["id"], ref: (el) => (this.categoriesEl = el), part: "categories", onValueChanged: this.loadData }, renderComboItems(this.categories)))))), index.h("gxg-container", null, index.h("gxg-tabs", { height: "100%", position: "top", class: "gxg-tabs" }, index.h("gxg-tab-bar", { slot: "tab-bar-container" }, index.h("gxg-tab-button", { slot: "tab-bar", "tab-label": `${this._componentLocale.tabs.pendingCommits} (${this.pendingCommits.length})`, tab: "pending-commits", "is-selected": true }), index.h("gxg-tab-button", { slot: "tab-bar", "tab-label": `${this._componentLocale.tabs.ignoredObjects} (${this.ignoredObjects.length})`, tab: "ignored-objects" })), index.h("gxg-tab", { tab: "pending-commits", "no-padding": true }, this.renderPendingCommitsGrid()), index.h("gxg-tab", { tab: "ignored-objects", "no-padding": true }, this.renderIgnoredObjectsGrid())), index.h("gxg-button", { slot: "footer", type: "primary-text-only", onClick: this.commitCallbackHandler, part: "commit-button" }, this._componentLocale.footer.commitButton))))));
189
+ (this.filtersHidden ? "hidden" : null) }, index.h("div", { class: "first-row grid" }, index.h("gxg-combo-box", { labelPosition: "start", "disable-filter": true, label: this._componentLocale.filtersMenu.changesetLabel, value: this.changeSet[0]["id"], ref: (el) => (this.changeSetEl = el), part: "change-set", "display-validation-styles": true, "display-validation-message": true, onValueChanged: this.loadData }, formatDate.renderComboItems(this.changeSet)), index.h("gxg-combo-box", { labelPosition: "start", "disable-filter": true, label: this._componentLocale.filtersMenu.typeLabel, value: this.types[0]["id"], ref: (el) => (this.typesEl = el), part: "type", onValueChanged: this.loadData }, formatDate.renderComboItems(this.types))), index.h("div", { class: "second-row grid" }, index.h("gxg-combo-box", { labelPosition: "start", "disable-filter": true, label: this._componentLocale.filtersMenu.folderLabel, value: this.folders[0]["id"], ref: (el) => (this.foldersEl = el), part: "folder", "display-validation-styles": true, "display-validation-message": true, onValueChanged: this.loadData }, formatDate.renderComboItems(this.folders)), index.h("gxg-combo-box", { labelPosition: "start", "disable-filter": true, label: this._componentLocale.filtersMenu.categoryLabel, value: this.categories[0]["id"], ref: (el) => (this.categoriesEl = el), part: "categories", onValueChanged: this.loadData }, formatDate.renderComboItems(this.categories)))))), index.h("gxg-container", null, index.h("gxg-tabs", { height: "100%", position: "top", class: "gxg-tabs" }, index.h("gxg-tab-bar", { slot: "tab-bar-container" }, index.h("gxg-tab-button", { slot: "tab-bar", "tab-label": `${this._componentLocale.tabs.pendingCommits} (${this.pendingCommits.length})`, tab: "pending-commits", "is-selected": true }), index.h("gxg-tab-button", { slot: "tab-bar", "tab-label": `${this._componentLocale.tabs.ignoredObjects} (${this.ignoredObjects.length})`, tab: "ignored-objects" })), index.h("gxg-tab", { tab: "pending-commits", "no-padding": true }, this.renderPendingCommitsGrid()), index.h("gxg-tab", { tab: "ignored-objects", "no-padding": true }, this.renderIgnoredObjectsGrid())), index.h("gxg-button", { slot: "footer", type: "primary-text-only", onClick: this.commitCallbackHandler, part: "commit-button" }, this._componentLocale.footer.commitButton))))));
210
190
  }
211
191
  static get assetsDirs() { return ["gx-ide-assets/team-dev-commit"]; }
212
192
  get el() { return index.getElement(this); }
@@ -12,15 +12,9 @@ const GxIdeTeamDevSelectRecentComment = class {
12
12
  index.registerInstance(this, hostRef);
13
13
  this.componentDidLoadEvent = index.createEvent(this, "componentDidLoadEvent", 7);
14
14
  this.selectedComment = null;
15
- /** *****************************
16
- * 7.LISTENERS
17
- ********************************/
18
- /** *****************************
19
- * 8.PUBLIC METHODS API
20
- ********************************/
21
- /** *****************************
22
- * 9.LOCAL METHODS
23
- ********************************/
15
+ // 7.LISTENERS //
16
+ // 8.PUBLIC METHODS API //
17
+ // 9.LOCAL METHODS //
24
18
  this.renderObjectItems = (options) => {
25
19
  if (options.length) {
26
20
  const items = [];
@@ -45,16 +39,12 @@ const GxIdeTeamDevSelectRecentComment = class {
45
39
  this.confirmCallback = undefined;
46
40
  this.cancelCallback = undefined;
47
41
  }
48
- /** *****************************
49
- * 6.COMPONENT LIFECYCLE EVENTS
50
- ********************************/
42
+ // 6.COMPONENT LIFECYCLE EVENTS //
51
43
  async componentWillLoad() {
52
44
  this._componentLocale = await locale.Locale.getComponentStrings(this.el);
53
45
  this.componentDidLoadEvent.emit(true);
54
46
  }
55
- /** *****************************
56
- * 10.RENDER() FUNCTION
57
- ********************************/
47
+ // 10.RENDER() FUNCTION //
58
48
  render() {
59
49
  return (index.h(index.Host, null, index.h("div", { class: `main-wrapper` }, index.h("gxg-container", { displayBorder: true }, index.h("gxg-list-box", { id: "max-height", singleSelection: true, height: "100%", required: true, "min-height": "50%", onSelectionChanged: event => {
60
50
  if (event.detail[0]) {
@@ -0,0 +1,102 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-5a32426a.js');
6
+ const locale = require('./locale-c8445ea4.js');
7
+
8
+ const teamDevUpdatePartialSelectionCss = ".gxi-hidden{display:none !important}.gxi-full-height{height:100%}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}:host(.gx-ide-component){box-shadow:var(--box-shadow-01) !important;height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--font-weight-regular);font-size:var(--font-size-lg);line-height:1.6em;height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:6px;height:6px}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-main .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:6px;height:6px}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-overflow .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}:host{display:block;border:1px solid var(--gxg-border-color--regular);background-color:var(--color-background)}:host(.gxi-object-selector--shadow){border:none;box-shadow:var(--box-shadow-01)}.top-actions{display:flex;align-items:center;justify-content:flex-end}.actions{grid-template-columns:repeat(2, 1fr)}.actions>*{display:flex;flex-direction:row;gap:var(--gx-ide-grid-row-gap)}.actions>*:nth-child(2){justify-content:flex-end}";
9
+
10
+ const GxIdeTeamDevUpdatePartialSelection = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.componentDidLoadEvent = index.createEvent(this, "componentDidLoadEvent", 7);
14
+ // 9.LOCAL METHODS //
15
+ this.handleKeyDownEvent = (add) => {
16
+ if (add) {
17
+ document.addEventListener("keydown", this.keyDownEventHandler);
18
+ }
19
+ else {
20
+ document.removeEventListener("keydown", this.keyDownEventHandler);
21
+ }
22
+ };
23
+ this.keyDownEventHandler = (e) => {
24
+ console.log(e.detail);
25
+ };
26
+ this.renderObjects = () => {
27
+ return (index.h("gxg-grid", null, index.h("ch-grid", { "row-selection-mode": "multiple", ref: (el) => (this.chGridEl = el), part: "ch-grid-objects" }, index.h("ch-grid-columnset", null, index.h("ch-grid-column", { columnName: "", settingable: false, sortable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.name, settingable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.type, settingable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.description, settingable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.modifiedOn, settingable: false })), this.selection.map((obj) => (index.h("ch-grid-row", { rowid: obj.id }, index.h("ch-grid-cell", null, index.h("gxg-icon", { type: obj.typeIcon })), index.h("ch-grid-cell", null, " ", obj.name, " "), index.h("ch-grid-cell", null, " ", obj.type, " "), index.h("ch-grid-cell", null, " ", obj.description, " "), index.h("ch-grid-cell", null, `${obj.modifiedOn.toISOString().slice(0, 10)}`)))))));
28
+ };
29
+ this.getObjects = () => {
30
+ this.addCallback().then((items) => {
31
+ if ((items === null || items === void 0 ? void 0 : items.length) > 0) {
32
+ this.selection = [...this.selection, ...items];
33
+ this.selectedObjectsIds = [];
34
+ this.deselectAll();
35
+ }
36
+ });
37
+ };
38
+ this.removeObjects = () => {
39
+ this.selection = this.selection.filter(item => !this.selectedObjectsIds.includes(item.id));
40
+ this.selectedObjectsIds = [];
41
+ this.deselectAll();
42
+ };
43
+ this.confirm = () => {
44
+ this.confirmCallback(this.selectedObjectsIds);
45
+ };
46
+ this.cancel = () => {
47
+ this.cancelCallback();
48
+ };
49
+ this.deselectAll = () => {
50
+ this.chGridEl.selectAllRows(false);
51
+ };
52
+ this.listenChanges = () => {
53
+ // for grid selection
54
+ this.chGridEl.addEventListener("selectionChanged", (ev) => {
55
+ this.selectedObjectsIds = ev.detail.rowsId;
56
+ });
57
+ };
58
+ this.addCallback = undefined;
59
+ this.cancelCallback = undefined;
60
+ this.confirmCallback = undefined;
61
+ this.selection = [];
62
+ this.selectedObjectsIds = [];
63
+ }
64
+ // 6.COMPONENT LIFECYCLE EVENTS //
65
+ async componentWillLoad() {
66
+ this._componentLocale = await locale.Locale.getComponentStrings(this.el);
67
+ this.componentDidLoadEvent.emit(true);
68
+ this.handleKeyDownEvent(true);
69
+ }
70
+ componentDidLoad() {
71
+ this.listenChanges();
72
+ }
73
+ // 7.LISTENERS //
74
+ keyDownHandler(eventInfo) {
75
+ if (document.activeElement === this.el) {
76
+ switch (eventInfo.key) {
77
+ case "Delete":
78
+ this.removeObjects();
79
+ break;
80
+ }
81
+ }
82
+ }
83
+ // 8.PUBLIC METHODS API //
84
+ /**
85
+ * Validate necessary data input
86
+ */
87
+ async validate() {
88
+ const isValid = true;
89
+ return isValid;
90
+ }
91
+ // 10.RENDER() FUNCTION //
92
+ render() {
93
+ return (index.h(index.Host, { class: {
94
+ "gxi-team-dev-update-partial-selection": true
95
+ } }, index.h("div", { class: `main-wrapper` }, index.h("gxg-container", { containerTitle: this._componentLocale.title }, index.h("div", { class: "top-actions" }, index.h("gxg-button", { id: "button-add", type: "secondary-icon-only", icon: "gemini-tools/add-circle", onClick: this.getObjects, part: "gxg-button gxg-button--add" }), index.h("gxg-button", { id: "button-remove", type: "secondary-icon-only", icon: "gemini-tools/minus-circle", onClick: this.removeObjects, part: "gxg-button gxg-button--remove" })), this.renderObjects(), index.h("gxg-container", { displayBorderTop: true }, index.h("div", { class: "grid actions" }, index.h("div", null, index.h("gxg-button", { id: "button-clear", type: "primary-text-only", onClick: this.deselectAll, part: "gxg-button gxg-button--clear" }, this._componentLocale.footer.btnClear)), index.h("div", null, index.h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.confirm, part: "gxg-button gxg-button--ok" }, this._componentLocale.footer.btnOk), index.h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancel, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel))))))));
96
+ }
97
+ static get assetsDirs() { return ["gx-ide-assets/team-dev-update-partial-selection"]; }
98
+ get el() { return index.getElement(this); }
99
+ };
100
+ GxIdeTeamDevUpdatePartialSelection.style = teamDevUpdatePartialSelectionCss;
101
+
102
+ exports.gx_ide_team_dev_update_partial_selection = GxIdeTeamDevUpdatePartialSelection;
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-5a32426a.js');
6
+ const locale = require('./locale-c8445ea4.js');
7
+
8
+ const teamDevUpdateToRevisionCss = ".gxi-hidden{display:none !important}.gxi-full-height{height:100%}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}:host(.gx-ide-component){box-shadow:var(--box-shadow-01) !important;height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--font-weight-regular);font-size:var(--font-size-lg);line-height:1.6em;height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:6px;height:6px}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-main .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:6px;height:6px}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-overflow .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}:host{display:block;border:1px solid var(--gxg-border-color--regular);background-color:var(--color-background)}:host(.gxi-object-selector--shadow){border:none;box-shadow:var(--box-shadow-01)}.revision-number{display:flex;align-items:center;gap:var(--gx-ide-grid-row-gap)}.revision-number>:nth-child(2){width:auto !important}.actions{display:flex;justify-content:flex-end;align-items:center;gap:var(--gx-ide-grid-row-gap)}";
9
+
10
+ const GxIdeTeamDevUpdateToRevision = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.componentDidLoadEvent = index.createEvent(this, "componentDidLoadEvent", 7);
14
+ // 9.LOCAL METHODS //
15
+ this.confirm = () => {
16
+ let revision = undefined;
17
+ if (this.updateToRevisionEl.checked) {
18
+ revision = this.revisionNumberEl.value;
19
+ }
20
+ this.confirmCallback(revision);
21
+ };
22
+ this.cancel = () => {
23
+ this.cancelCallback();
24
+ };
25
+ this.cancelCallback = undefined;
26
+ this.confirmCallback = undefined;
27
+ }
28
+ // 6.COMPONENT LIFECYCLE EVENTS //
29
+ async componentWillLoad() {
30
+ this._componentLocale = await locale.Locale.getComponentStrings(this.el);
31
+ this.componentDidLoadEvent.emit(true);
32
+ }
33
+ // 7.LISTENERS //
34
+ // 8.PUBLIC METHODS API //
35
+ /**
36
+ * Validate necessary data input
37
+ */
38
+ async validate() {
39
+ const isValid = true;
40
+ return isValid;
41
+ }
42
+ // 10.RENDER() FUNCTION //
43
+ render() {
44
+ return (index.h(index.Host, { class: {
45
+ "gxi-team-dev-update-to-revision": true
46
+ } }, index.h("div", { class: `main-wrapper` }, index.h("gxg-container", null, index.h("gxg-form-radio-group", null, index.h("gxg-form-radio", { label: this._componentLocale.options.updateToLatest, value: "updateToLatest", part: "radio-to-latest" }), index.h("div", { class: "revision-number" }, index.h("gxg-form-radio", { label: this._componentLocale.options.updateToRevision, value: "updateToRevision", ref: (el) => (this.updateToRevisionEl = el), part: "radio-to-revision" }), index.h("gxg-form-text", { ref: (el) => (this.revisionNumberEl = el), part: "revision-number" })))), index.h("gxg-container", { displayBorderTop: true }, index.h("div", { class: "actions" }, index.h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.confirm, part: "gxg-button gxg-button--ok" }, this._componentLocale.footer.btnOk), index.h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancel, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel))))));
47
+ }
48
+ static get assetsDirs() { return ["gx-ide-assets/team-dev-update-to-revision"]; }
49
+ get el() { return index.getElement(this); }
50
+ };
51
+ GxIdeTeamDevUpdateToRevision.style = teamDevUpdateToRevisionCss;
52
+
53
+ exports.gx_ide_team_dev_update_to_revision = GxIdeTeamDevUpdateToRevision;
@@ -0,0 +1,278 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-5a32426a.js');
6
+ const locale = require('./locale-c8445ea4.js');
7
+ const formatDate = require('./format-date-f2c49d1a.js');
8
+
9
+ const teamDevUpdateCss = ".gxi-hidden{display:none !important}.gxi-full-height{height:100%}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}:host(.gx-ide-component){box-shadow:var(--box-shadow-01) !important;height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--font-weight-regular);font-size:var(--font-size-lg);line-height:1.6em;height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:6px;height:6px}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-main .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:6px;height:6px}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-overflow .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}:host{display:block;border:1px solid var(--gxg-border-color--regular);background-color:var(--color-background)}:host(.gxi-object-selector--shadow){border:none;box-shadow:var(--box-shadow-01)}.options-grid{grid-template-columns:1fr auto}.options-grid .options-update-from-grid{grid-template-columns:auto 1fr;grid-row-gap:0}.options-grid .options-scope-grid{grid-template-columns:auto 1fr auto}.options-grid .options-scope-grid>:nth-child(7){grid-area:3/1/4/4}.flex{display:flex;flex-direction:row;align-items:center}.with-gap{gap:var(--gx-ide-grid-row-gap)}.hide{display:none !important}.filters-container-body{width:100%;display:flex;align-items:flex-end;justify-content:space-between}.filters-container-body .filter-grid{flex:1;grid-template-columns:repeat(2, 1fr)}.filters-container-body .actions{display:flex;justify-content:flex-end;align-items:center}.filters-container-body .actions.close{width:100%}.data-grid{grid-template-columns:repeat(3, 1fr)}.data-grid>:nth-child(1){grid-area:1/1/2/2}.data-grid>:nth-child(2){grid-area:1/2/2/4}.data-panel-grid{grid-template-columns:repeat(2, 1fr)}.data-preview img{max-width:100%}.data-max-height{max-height:300px;overflow-y:auto}.actions{justify-content:flex-end}.no-border{border:0}.bold{font-weight:bold}";
10
+
11
+ const GxIdeTeamDevUpdate = class {
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ this.componentDidLoadEvent = index.createEvent(this, "componentDidLoadEvent", 7);
15
+ this.loadDataCalledFirstTime = false; // pending for update grid checkboxes, should be checked, after loadData has loaded objects for the first time.
16
+ // 9.LOCAL METHODS //
17
+ this.markAllPendingToUpdateRows = () => {
18
+ this.chGridPendingForUpdateEl.markAllRows();
19
+ };
20
+ this.renderOptions = () => {
21
+ return (index.h("gxg-container", { part: "options-container" }, index.h("div", { class: "grid options-grid" }, index.h("gxg-container", { displayBorder: true, part: "options-update-from", containerTitle: this._componentLocale.options.updateFrom }, index.h("div", { class: "grid options-update-from-grid" }, index.h("gxg-text", { type: "text-regular" }, this._componentLocale.options.updateFrom, ":"), index.h("gxg-text", { type: "text-link", onClick: this.openServerCallback }, this.updateFrom ? this.updateFrom.serverUrl : ""), index.h("gxg-text", { type: "text-regular" }, this._componentLocale.options.knowledgeBase, ":"), index.h("gxg-text", { type: "text-regular" }, this.updateFrom ? this.updateFrom.kbName : ""), index.h("gxg-text", { type: "text-regular" }, this._componentLocale.options.version, ":"), index.h("gxg-text", { type: "text-regular" }, this.updateFrom ? this.updateFrom.versionName : ""), index.h("gxg-text", { type: "text-regular" }, this._componentLocale.options.lastFullUpdate, ":"), index.h("gxg-text", { type: "text-regular" }, this.updateFrom
22
+ ? formatDate.formatDate(this.updateFrom.lastFullUpdate)
23
+ : ""))), index.h("gxg-container", { displayBorder: true, part: "options-scope", containerTitle: this._componentLocale.options.scope }, index.h("div", { class: "grid options-scope-grid" }, index.h("gxg-text", { type: "text-regular" }, this._componentLocale.options.objects, ":"), index.h("gxg-text", { type: "text-regular" }, index.h("span", { class: { bold: this.objectScopeText === "partial" } }, this._componentLocale.options.scopeData.objects[this.objectScopeText.toLocaleLowerCase()])), index.h("gxg-button", { id: "button-scope-objects-change", type: "outlined", onClick: this.objectsScope, part: "gxg-button gxg-button--scope-objects-change" }, this._componentLocale.options.changeBtn), index.h("gxg-text", { type: "text-regular" }, this._componentLocale.options.revision, ":"), index.h("gxg-text", { type: "text-regular" }, index.h("span", { class: { bold: this.revisionScopeText !== undefined } }, this.revisionScopeText === undefined
24
+ ? this._componentLocale.options.scopeData.revision.latest
25
+ : this.revisionScopeText)), index.h("gxg-button", { id: "button-scope-revision-change", type: "outlined", onClick: this.revisionScope, part: "gxg-button gxg-button--scope-revision-change" }, this._componentLocale.options.changeBtn), index.h("gxg-form-checkbox", { label: this._componentLocale.options.kbProperties, class: "align-center", part: "option-kb-properties" }))))));
26
+ };
27
+ this.renderFilter = () => {
28
+ return (index.h("gxg-container", { part: "filters-container" }, index.h("div", { class: "filters-container-body with-gap" }, index.h("div", { class: {
29
+ "grid": true,
30
+ "filter-grid": true,
31
+ "hide": !this.showFilter
32
+ } }, index.h("gxg-form-text", { "label-position": "above", label: this._componentLocale.filter.pattern, ref: (el) => (this.filterPatternEl = el), part: "filter-pattern", onInput: this.loadData }), index.h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.type, disabled: !this.types, ref: (el) => (this.filterTypeEl = el), onValueChanged: this.loadData, part: "filter-type", value: this.types[0].id }, formatDate.renderComboItems(this.types))), index.h("div", { class: { actions: true, close: !this.showFilter } }, index.h("gxg-button", { type: "secondary-icon-only", icon: "patterns/filters", onClick: this.toggleFilter, part: "gxg-button gxg-button--show-filter" }), index.h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/reset", onClick: this.loadData, part: "gxg-button gxg-button--reload" })))));
33
+ };
34
+ this.renderData = () => {
35
+ return (index.h("gxg-container", { part: "data-container" }, index.h("gxg-tabs", { id: "dataTabs", part: "data-tabs" }, index.h("gxg-tab-bar", { slot: "tab-bar-container" }, index.h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabs.pendingForUpdate, tab: "pendingForUpdate", key: "pendingForUpdate", isSelected: true }), index.h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabs.ignoredObjects, tab: "ignoredObjects", key: "ignoredObjects" }), index.h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabs.results, tab: "results", key: "results", ref: (el) => (this.gxgTabButtonResultsEl = el) })), index.h("gxg-tab", { tab: "pendingForUpdate", key: "pendingForUpdate", isSelected: true }, this.renderPendingForUpdate()), index.h("gxg-tab", { tab: "ignoredObjects", key: "ignoredObjects" }, this.renderIgnoredObjects()), index.h("gxg-tab", { tab: "results", key: "results" }, this.renderResults()))));
36
+ };
37
+ this.renderPendingForUpdate = () => {
38
+ return (index.h("gxg-grid", null, index.h("ch-grid", { "row-selection-mode": "none", ref: (el) => (this.chGridPendingForUpdateEl = el), part: "ch-grid-pending-for-updates", class: "no-border" }, index.h("ch-grid-columnset", null, index.h("ch-grid-column", { settingable: false, sortable: false, "column-type": "rich", richRowSelector: true, richRowSelectorMode: "mark" }), index.h("ch-grid-column", { settingable: false, sortable: false }), index.h("ch-grid-column", { settingable: false, sortable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.name, settingable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.type, settingable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.description, settingable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.modifiedOn, settingable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.status, settingable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.action, settingable: false })), this.updateData.pendingForUpdate.map((obj) => (index.h("ch-grid-row", { rowid: obj.id }, index.h("ch-grid-cell", { "cell-type": "rich", "row-selector": true }), index.h("ch-grid-cell", null, index.h("gxg-icon", { type: obj.typeIcon })), index.h("ch-grid-cell", null, " ", this.renderIconState(obj.state), " "), index.h("ch-grid-cell", null, " ", obj.name, " "), index.h("ch-grid-cell", null, " ", obj.type, " "), index.h("ch-grid-cell", null, " ", obj.description, " "), index.h("ch-grid-cell", null, `${formatDate.formatDate(obj.modifiedOn)}`), index.h("ch-grid-cell", null, " ", obj.status, " "), index.h("ch-grid-cell", null, " ", obj.action, " ")))))));
39
+ };
40
+ this.renderIgnoredObjects = () => {
41
+ return (index.h("gxg-grid", null, index.h("ch-grid", { "row-selection-mode": "multiple", ref: (el) => (this.chGridIgnoredObjectsEl = el), part: "ch-grid-ignored-objects", class: "no-border" }, index.h("ch-grid-columnset", null, index.h("ch-grid-column", { settingable: false, sortable: false, size: "min-content" }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.name, settingable: false, size: "1fr" }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.type, settingable: false, size: "1fr" })), this.updateData.ignoredObjects.map((obj) => (index.h("ch-grid-row", { rowid: obj.id }, index.h("ch-grid-cell", null, index.h("gxg-icon", { type: obj.typeIcon })), index.h("ch-grid-cell", null, " ", obj.name, " "), index.h("ch-grid-cell", null, " ", obj.type, " ")))))));
42
+ };
43
+ this.renderResults = () => {
44
+ return (index.h("gxg-grid", null, index.h("ch-grid", { "row-selection-mode": "multiple", ref: (el) => (this.chGridResultsEl = el), part: "ch-grid-results", class: "no-border" }, index.h("ch-grid-columnset", null, index.h("ch-grid-column", { settingable: false, sortable: false, "column-type": "tree" }), index.h("ch-grid-column", { settingable: false, sortable: false }), index.h("ch-grid-column", { settingable: false, sortable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.name, settingable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.type, settingable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.description, settingable: false }), index.h("ch-grid-column", { columnName: this._componentLocale.tableHead.notes, settingable: false })), this.updateResultData.map((obj) => (index.h("ch-grid-row", { rowid: obj.id }, index.h("ch-grid-cell", null, " ", this.renderIconResult(obj.result), " "), index.h("ch-grid-cell", null, index.h("gxg-icon", { type: obj.typeIcon })), index.h("ch-grid-cell", null, " ", this.renderIconState(obj.state), " "), index.h("ch-grid-cell", null, " ", obj.name, " "), index.h("ch-grid-cell", null, " ", obj.type, " "), index.h("ch-grid-cell", null, " ", obj.description, " "), index.h("ch-grid-cell", null, " ", obj.notes, " "), index.h("ch-grid-rowset", null, obj.messages.map(msg => {
45
+ let msgType;
46
+ switch (msg.type) {
47
+ case "info":
48
+ msgType = "text-alert-info";
49
+ break;
50
+ case "success":
51
+ msgType = "text-alert-success";
52
+ break;
53
+ case "warning":
54
+ msgType = "text-alert-warning";
55
+ break;
56
+ case "error":
57
+ msgType = "text-alert-error";
58
+ break;
59
+ }
60
+ return (index.h("ch-grid-rowset-empty", null, index.h("gxg-text", { type: msgType }, msg.text)));
61
+ }))))))));
62
+ };
63
+ this.renderIconState = (state) => {
64
+ let type;
65
+ let color;
66
+ switch (state) {
67
+ case "modified":
68
+ type = "gx-server/changes-commit-pending";
69
+ color = "primary-active";
70
+ break;
71
+ case "inserted":
72
+ type = "gx-server/new";
73
+ color = "success";
74
+ break;
75
+ case "deleted":
76
+ type = "gx-server/delete";
77
+ color = "error";
78
+ break;
79
+ case "conflicted":
80
+ type = "gx-server/conflict";
81
+ color = "warning";
82
+ break;
83
+ }
84
+ return index.h("gxg-icon", { type: type, color: color });
85
+ };
86
+ this.renderIconResult = (result) => {
87
+ let type;
88
+ let color;
89
+ switch (result) {
90
+ case "info":
91
+ type = "gemini-tools/notice";
92
+ color = "primary-active";
93
+ break;
94
+ case "success":
95
+ type = "gemini-tools/success";
96
+ color = "success";
97
+ break;
98
+ case "warning":
99
+ type = "gemini-tools/warning";
100
+ color = "warning";
101
+ break;
102
+ case "error":
103
+ type = "gemini-tools/error";
104
+ color = "error";
105
+ break;
106
+ }
107
+ return index.h("gxg-icon", { type: type, color: color });
108
+ };
109
+ this.loadData = async () => {
110
+ const filters = {
111
+ pattern: this.showFilter ? this.filterPatternEl.value : null,
112
+ type: this.showFilter ? this.filterTypeEl.value : null
113
+ };
114
+ // this.updateData = null;
115
+ this.isLoading = true;
116
+ this.updateData = await this.loadCallback(filters);
117
+ this.isLoading = false;
118
+ if (!this.loadDataCalledFirstTime) {
119
+ /* this allows checking the pending commits checkboxes on first load*/
120
+ this.loadDataCalledFirstTime = true;
121
+ }
122
+ };
123
+ this.update = async () => {
124
+ if (this.updateCallback) {
125
+ const pendingForUpdateMarked = await this.chGridPendingForUpdateEl.getMarkedRows();
126
+ this.updateCallback(pendingForUpdateMarked).then((updateResultData) => {
127
+ this.updateResultData = updateResultData;
128
+ this.gxgTabButtonResultsEl.tabButtonClick();
129
+ });
130
+ }
131
+ };
132
+ this.toggleFilter = () => {
133
+ this.showFilter = !this.showFilter;
134
+ };
135
+ this.objectsScope = () => {
136
+ if (this.objectsScopeCallback) {
137
+ this.objectsScopeCallback().then(objectData => {
138
+ if (objectData) {
139
+ this.objectScopeText = objectData;
140
+ }
141
+ });
142
+ }
143
+ };
144
+ this.revisionScope = () => {
145
+ if (this.revisionScopeCallback) {
146
+ this.revisionScopeCallback().then(revisionData => {
147
+ this.revisionScopeText = revisionData;
148
+ });
149
+ }
150
+ };
151
+ this.addListeners = async () => {
152
+ // for pending-for-update grid events
153
+ if (this.updateData.pendingForUpdate) {
154
+ this.chGridPendingForUpdateEl.addEventListener("contextmenu", async (ev) => {
155
+ ev.preventDefault();
156
+ ev.stopPropagation();
157
+ const pendingForUpdateMarked = await this.chGridPendingForUpdateEl.getMarkedRows();
158
+ this.gridContextMenuCallback(pendingForUpdateMarked, "update");
159
+ });
160
+ }
161
+ // for ignored-objects grid events
162
+ this.chGridIgnoredObjectsEl.addEventListener("contextmenu", async (ev) => {
163
+ ev.preventDefault();
164
+ ev.stopPropagation();
165
+ const ignoredObjectsSelected = await this.chGridIgnoredObjectsEl.getSelectedRows();
166
+ this.gridContextMenuCallback(ignoredObjectsSelected, "ignored");
167
+ });
168
+ // for results grid events
169
+ this.chGridResultsEl.addEventListener("contextmenu", async (ev) => {
170
+ ev.preventDefault();
171
+ ev.stopPropagation();
172
+ const resultsObjectsSelected = await this.chGridResultsEl.getMarkedRows();
173
+ this.gridContextMenuCallback(resultsObjectsSelected, "results");
174
+ });
175
+ };
176
+ this.pendingForUpdatesRowMarkingChangedHandler = async (e) => {
177
+ // remove "rowMarkingChanged" until checkboxes have been added/removed on togglePendingCommitsCheckboxes, to prevent loops.
178
+ this.chGridPendingForUpdateEl.removeEventListener("rowMarkingChanged", this.pendingForUpdatesRowMarkingChangedHandler);
179
+ if (this.chGridPendingForUpdateEl) {
180
+ const addedRowsIds = e.detail.addedRowsId;
181
+ const removedRowsId = e.detail.removedRowsId;
182
+ const pendingItemCheckedResult = await this.pendingItemCheckedCallback({
183
+ itemsChecked: addedRowsIds,
184
+ itemsUnchecked: removedRowsId
185
+ });
186
+ if (pendingItemCheckedResult === undefined) {
187
+ // undo check/uncheck
188
+ await this.revertPendingCommitsCheckboxes(addedRowsIds, removedRowsId);
189
+ }
190
+ else {
191
+ await this.togglePendingCommitsCheckboxes(pendingItemCheckedResult);
192
+ }
193
+ this.chGridPendingForUpdateEl.addEventListener("rowMarkingChanged", this.pendingForUpdatesRowMarkingChangedHandler);
194
+ }
195
+ this.chGridPendingForUpdateEl.addEventListener("rowMarkingChanged", this.pendingForUpdatesRowMarkingChangedHandler);
196
+ };
197
+ this.togglePendingCommitsCheckboxes = async (itemsToToggle) => {
198
+ if (this.chGridPendingForUpdateEl) {
199
+ const itemsToCheck = itemsToToggle.itemsToCheck;
200
+ const itemsToUncheck = itemsToToggle.itemsToUncheck;
201
+ // check
202
+ for (const rowId of itemsToCheck) {
203
+ await this.chGridPendingForUpdateEl.markRow(rowId, true);
204
+ }
205
+ // uncheck
206
+ for (const rowId of itemsToUncheck) {
207
+ await this.chGridPendingForUpdateEl.markRow(rowId, false);
208
+ }
209
+ }
210
+ };
211
+ this.revertPendingCommitsCheckboxes = async (addedRowsIds, removedRowsId) => {
212
+ if (this.chGridPendingForUpdateEl) {
213
+ for (const rowId of addedRowsIds) {
214
+ await this.chGridPendingForUpdateEl.markRow(rowId, false);
215
+ }
216
+ for (const rowId of removedRowsId) {
217
+ await this.chGridPendingForUpdateEl.markRow(rowId, true);
218
+ }
219
+ }
220
+ };
221
+ this.isLoading = false;
222
+ this.objectScopeText = "all";
223
+ this.openTab = "pending";
224
+ this.revisionScopeText = undefined;
225
+ this.showFilter = false;
226
+ this.updateData = {
227
+ pendingForUpdate: [],
228
+ ignoredObjects: []
229
+ };
230
+ this.updateResultData = [];
231
+ this.confirmCallback = undefined;
232
+ this.gridContextMenuCallback = undefined;
233
+ this.loadCallback = undefined;
234
+ this.objectsScopeCallback = undefined;
235
+ this.openServerCallback = undefined;
236
+ this.pendingItemCheckedCallback = undefined;
237
+ this.revisionScopeCallback = undefined;
238
+ this.types = undefined;
239
+ this.updateCallback = undefined;
240
+ this.updateFrom = undefined;
241
+ }
242
+ // 6.COMPONENT LIFECYCLE EVENTS //
243
+ async componentWillLoad() {
244
+ this._componentLocale = await locale.Locale.getComponentStrings(this.el);
245
+ this.componentDidLoadEvent.emit(true);
246
+ }
247
+ async componentDidLoad() {
248
+ await this.loadData();
249
+ this.addListeners();
250
+ }
251
+ async componentDidRender() {
252
+ if (this.loadDataCalledFirstTime) {
253
+ // call this method only once
254
+ await this.markAllPendingToUpdateRows();
255
+ // attach "rowMarkingChanged" after rows have been checked for the first time.
256
+ this.chGridPendingForUpdateEl.addEventListener("rowMarkingChanged", this.pendingForUpdatesRowMarkingChangedHandler);
257
+ this.loadDataCalledFirstTime = false;
258
+ }
259
+ }
260
+ // 7.LISTENERS //
261
+ // 8.PUBLIC METHODS API //
262
+ /**
263
+ * Validate necessary data input
264
+ */
265
+ async validate() {
266
+ const isValid = true;
267
+ return isValid;
268
+ }
269
+ // 10.RENDER() FUNCTION //
270
+ render() {
271
+ return (index.h(index.Host, { class: "gx-ide-component" }, index.h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, this.renderOptions(), this.renderFilter(), this.renderData(), index.h("gxg-container", { displayBorderTop: true }, index.h("div", { class: "align-center with-gap actions" }, index.h("gxg-button", { id: "button-update", type: "primary-text-only", onClick: this.update, part: "gxg-button gxg-button--update", disabled: this.isLoading }, this._componentLocale.footer.btnUpdate))))));
272
+ }
273
+ static get assetsDirs() { return ["gx-ide-assets/team-dev-update"]; }
274
+ get el() { return index.getElement(this); }
275
+ };
276
+ GxIdeTeamDevUpdate.style = teamDevUpdateCss;
277
+
278
+ exports.gx_ide_team_dev_update = GxIdeTeamDevUpdate;
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-5a32426a.js');
6
+
7
+ const topBarCss = ":host{display:block;box-sizing:border-box}.wrapper{display:flex;justify-content:space-between;padding:var(--spacing-comp-01) var(--spacing-comp-02);transition:background-color var(--gx-ide-timing-super-fast-ms);background-color:var(--gray-01)}gxg-title::part(title){color:var(--color-on-secondary);transition:color var(--gx-ide-timing-super-fast-ms)}";
8
+
9
+ const GxIdeTopBar = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.topBarTitle = undefined;
13
+ }
14
+ // 5.EVENTS (EMIT) //
15
+ // 6.METHODS //
16
+ componentWillLoad() {
17
+ this.evaluateSlots();
18
+ }
19
+ // 7.LISTENERS //
20
+ // 8.PUBLIC METHODS API //
21
+ // 9.LOCAL METHODS //
22
+ evaluateSlots() {
23
+ // header
24
+ const menuSlot = this.el.querySelectorAll('[slot="menu"]');
25
+ if (menuSlot.length) {
26
+ this._hasMenuSlot = true;
27
+ }
28
+ }
29
+ // 10.RENDER() FUNCTION //
30
+ render() {
31
+ return (index.h(index.Host, null, index.h("div", { class: "wrapper", part: "wrapper" }, index.h("div", { class: "wrapper__left", part: "wrapper-left" }, index.h("gxg-title", { type: "title-04", exportparts: "title: gxg-title" }, this.topBarTitle)), index.h("div", { class: "wrapper__right", part: "wrapper-right" }, this._hasMenuSlot ? (index.h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/show-more-vertical" }, index.h("slot", { name: "menu" }))) : null))));
32
+ }
33
+ get el() { return index.getElement(this); }
34
+ };
35
+ GxIdeTopBar.style = topBarCss;
36
+
37
+ exports.gx_ide_top_bar = GxIdeTopBar;