@genexus/genexus-ide-ui 0.0.22 → 0.0.24
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/cjs/ch-action-group_2.cjs.entry.js +211 -0
- package/dist/cjs/ch-dropdown-item.cjs.entry.js +36 -5
- package/dist/cjs/ch-dropdown.cjs.entry.js +50 -52
- package/dist/cjs/{ch-grid_4.cjs.entry.js → ch-grid_8.cjs.entry.js} +143 -0
- package/dist/cjs/{ch-suggest_5.cjs.entry.js → ch-suggest_4.cjs.entry.js} +0 -65
- package/dist/cjs/ch-test-action-group.cjs.entry.js +79 -0
- package/dist/cjs/ch-test-dropdown.cjs.entry.js +54 -0
- package/dist/cjs/ch-window_2.cjs.entry.js +25 -6
- package/dist/cjs/format-date-f2c49d1a.js +28 -0
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +15 -35
- package/dist/cjs/gx-ide-team-dev-select-recent-comment.cjs.entry.js +5 -15
- package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +102 -0
- package/dist/cjs/gx-ide-team-dev-update-to-revision.cjs.entry.js +53 -0
- package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +278 -0
- package/dist/cjs/gx-ide-top-bar.cjs.entry.js +37 -0
- package/dist/cjs/{gxg-combo-box_8.cjs.entry.js → gxg-combo-box_6.cjs.entry.js} +0 -132
- package/dist/cjs/gxg-form-checkbox-group_2.cjs.entry.js +140 -0
- package/dist/cjs/{gx-ide-top-bar_2.cjs.entry.js → gxg-form-radio-group.cjs.entry.js} +0 -31
- package/dist/cjs/gxg-text.cjs.entry.js +72 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/common/format-date.js +11 -0
- package/dist/collection/components/team-dev-commit/gx-ide-assets/team-dev-commit/langs/team-dev-commit.lang.en.json +1 -1
- package/dist/collection/components/team-dev-commit/team-dev-commit.js +35 -26
- package/dist/collection/components/team-dev-select-recent-comment/team-dev-select-recent-comment.js +6 -16
- package/dist/collection/components/team-dev-update/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.en.json +45 -0
- package/dist/collection/components/team-dev-update/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.ja.json +3 -0
- package/dist/collection/components/team-dev-update/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.zh.json +3 -0
- package/dist/collection/components/team-dev-update/team-dev-update.css +216 -0
- package/dist/collection/components/team-dev-update/team-dev-update.js +524 -0
- 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
- 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
- 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
- package/dist/collection/components/team-dev-update-partial-selection/team-dev-update-partial-selection.css +149 -0
- package/dist/collection/components/team-dev-update-partial-selection/team-dev-update-partial-selection.js +238 -0
- 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
- 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
- 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
- package/dist/collection/components/team-dev-update-to-revision/team-dev-update-to-revision.css +147 -0
- package/dist/collection/components/team-dev-update-to-revision/team-dev-update-to-revision.js +136 -0
- package/dist/components/action-group-item.js +54 -0
- package/dist/components/action-group.js +214 -0
- package/dist/components/ch-action-group-item.js +6 -0
- package/dist/components/ch-action-group.js +6 -0
- package/dist/components/ch-dropdown-item-separator.js +1 -28
- package/dist/components/ch-dropdown-item.js +1 -53
- package/dist/components/ch-dropdown.js +1 -284
- package/dist/components/ch-grid-rowset-empty.js +1 -24
- package/dist/components/ch-grid-rowset-empty2.js +26 -0
- package/dist/components/ch-test-action-group.js +137 -0
- package/dist/components/ch-test-dropdown.js +104 -0
- package/dist/components/ch-window2.js +25 -6
- package/dist/components/dropdown-item-separator.js +30 -0
- package/dist/components/dropdown-item.js +109 -0
- package/dist/components/dropdown.js +294 -0
- package/dist/components/format-date.js +25 -0
- package/dist/components/gx-ide-team-dev-commit.js +16 -35
- package/dist/components/gx-ide-team-dev-select-recent-comment.js +5 -15
- package/dist/components/gx-ide-team-dev-update-partial-selection.d.ts +11 -0
- package/dist/components/gx-ide-team-dev-update-partial-selection.js +213 -0
- package/dist/components/gx-ide-team-dev-update-to-revision.d.ts +11 -0
- package/dist/components/gx-ide-team-dev-update-to-revision.js +131 -0
- package/dist/components/gx-ide-team-dev-update.d.ts +11 -0
- package/dist/components/gx-ide-team-dev-update.js +473 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +7 -0
- package/dist/esm/ch-action-group_2.entry.js +206 -0
- package/dist/esm/ch-dropdown-item.entry.js +36 -5
- package/dist/esm/ch-dropdown.entry.js +50 -52
- package/dist/esm/{ch-grid_4.entry.js → ch-grid_8.entry.js} +140 -1
- package/dist/esm/{ch-suggest_5.entry.js → ch-suggest_4.entry.js} +1 -65
- package/dist/esm/ch-test-action-group.entry.js +75 -0
- package/dist/esm/ch-test-dropdown.entry.js +50 -0
- package/dist/esm/ch-window_2.entry.js +25 -6
- package/dist/esm/format-date-e9ca0786.js +25 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-team-dev-commit.entry.js +15 -35
- package/dist/esm/gx-ide-team-dev-select-recent-comment.entry.js +5 -15
- package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +98 -0
- package/dist/esm/gx-ide-team-dev-update-to-revision.entry.js +49 -0
- package/dist/esm/gx-ide-team-dev-update.entry.js +274 -0
- package/dist/esm/gx-ide-top-bar.entry.js +33 -0
- package/dist/esm/{gxg-combo-box_8.entry.js → gxg-combo-box_6.entry.js} +2 -132
- package/dist/esm/gxg-form-checkbox-group_2.entry.js +135 -0
- package/dist/esm/{gx-ide-top-bar_2.entry.js → gxg-form-radio-group.entry.js} +2 -32
- package/dist/esm/gxg-text.entry.js +68 -0
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-commit/langs/team-dev-commit.lang.en.json +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.en.json +45 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.ja.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.zh.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.en.json +15 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.ja.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.zh.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.en.json +11 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.ja.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.zh.json +3 -0
- package/dist/genexus-ide-ui/p-097a3eeb.entry.js +1 -0
- package/dist/genexus-ide-ui/p-16bd5578.entry.js +1 -0
- package/dist/genexus-ide-ui/p-32b8abf6.entry.js +1 -0
- package/dist/genexus-ide-ui/p-3bdcb73b.entry.js +1 -0
- package/dist/genexus-ide-ui/p-4bbe1c18.entry.js +1 -0
- package/dist/genexus-ide-ui/p-53d36ef7.entry.js +1 -0
- package/dist/genexus-ide-ui/p-5884a014.entry.js +1 -0
- package/dist/genexus-ide-ui/p-5c64c57f.entry.js +1 -0
- package/dist/genexus-ide-ui/p-5ff04ebe.entry.js +1 -0
- package/dist/genexus-ide-ui/p-6e80380b.entry.js +1 -0
- package/dist/genexus-ide-ui/p-718759e7.entry.js +1 -0
- package/dist/genexus-ide-ui/p-72303355.js +1 -0
- package/dist/genexus-ide-ui/p-757f8567.entry.js +1 -0
- package/dist/genexus-ide-ui/p-9c82381c.entry.js +1 -0
- package/dist/genexus-ide-ui/p-a0e85c2a.entry.js +1 -0
- package/dist/genexus-ide-ui/p-afe9515e.entry.js +1 -0
- package/dist/genexus-ide-ui/p-dbebb1a0.entry.js +1 -0
- package/dist/genexus-ide-ui/p-f8561da6.entry.js +1 -0
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/action-group/action-group.css +48 -0
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/action-group-item/action-group-item.css +4 -0
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/dropdown/dropdown.css +32 -88
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/dropdown-item/dropdown-item.css +9 -22
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/test/test-action-group/test-action-group.css +52 -0
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/test/test-dropdown/test-dropdown.css +36 -0
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/window/ch-window.css +3 -1
- package/dist/types/common/format-date.d.ts +1 -0
- package/dist/types/common/types.d.ts +1 -0
- package/dist/types/components/team-dev-commit/team-dev-commit.d.ts +13 -7
- package/dist/types/components/team-dev-select-recent-comment/team-dev-select-recent-comment.d.ts +1 -31
- package/dist/types/components/team-dev-update/team-dev-update.d.ts +173 -0
- package/dist/types/components/team-dev-update-partial-selection/team-dev-update-partial-selection.d.ts +61 -0
- package/dist/types/components/team-dev-update-to-revision/team-dev-update-to-revision.d.ts +41 -0
- package/dist/types/components.d.ts +216 -2
- package/package.json +3 -3
- package/dist/cjs/ch-grid-column-resize_4.cjs.entry.js +0 -150
- package/dist/esm/ch-grid-column-resize_4.entry.js +0 -143
- package/dist/genexus-ide-ui/p-04f094d1.entry.js +0 -1
- package/dist/genexus-ide-ui/p-192f1342.entry.js +0 -1
- package/dist/genexus-ide-ui/p-54cef7ae.entry.js +0 -1
- package/dist/genexus-ide-ui/p-554ed73a.entry.js +0 -1
- package/dist/genexus-ide-ui/p-6d378d61.entry.js +0 -1
- package/dist/genexus-ide-ui/p-b26b5d74.entry.js +0 -1
- package/dist/genexus-ide-ui/p-c10d5f34.entry.js +0 -1
- package/dist/genexus-ide-ui/p-d5c29251.entry.js +0 -1
- package/dist/genexus-ide-ui/p-f1a3397d.entry.js +0 -1
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './ch-window2.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './ch-window-close2.js';
|
|
4
|
+
|
|
5
|
+
const dropdownCss = ":where(button){all:unset}*,::before,::after{box-sizing:border-box}:host{--separation:0px;--separation-x:var(--separation);--separation-y:var(--separation);display:flex;position:relative;width:100%;height:100%}.expandable-button{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;cursor:pointer;z-index:108}.expandable-button:focus-within{transition:box-shadow 250ms}::slotted([slot=action]){pointer-events:none}.separation{display:flex;position:absolute;z-index:107}.separation--y{width:100%;height:var(--separation-y)}.separation--y-outside-start{inset-block-start:calc(var(--separation-y) * -1)}.separation--y-outside-start+ch-window{--ch-window-offset-y:calc(var(--separation-y) * -1)}.separation--y-outside-end{inset-block-end:calc(var(--separation-y) * -1)}.separation--y-outside-end+ch-window{--ch-window-offset-y:var(--separation-y)}.separation--x{width:var(--separation-x);height:100%}.separation--x-outside-start{inset-inline-start:calc(var(--separation-x) * -1)}.separation--x-outside-start+ch-window{--ch-window-offset-x:calc(var(--separation-x) * -1)}.separation--x-outside-end{inset-inline-end:calc(var(--separation-x) * -1)}.separation--x-outside-end+ch-window{--ch-window-offset-x:var(--separation-x)}.list{display:flex;flex-direction:column}";
|
|
6
|
+
|
|
7
|
+
const mapDropdownAlignToChWindowAlign = {
|
|
8
|
+
OutsideStart: "outside-start",
|
|
9
|
+
InsideStart: "inside-start",
|
|
10
|
+
Center: "center",
|
|
11
|
+
InsideEnd: "inside-end",
|
|
12
|
+
OutsideEnd: "outside-end"
|
|
13
|
+
};
|
|
14
|
+
const EXPANDABLE_BUTTON_ID = "expandable-button";
|
|
15
|
+
const SECTION_ID = "section";
|
|
16
|
+
const DROPDOWN_ITEM_TAG_NAME = "ch-dropdown-item";
|
|
17
|
+
const DROPDOWN_ITEM_SELECTOR = `:scope > ${DROPDOWN_ITEM_TAG_NAME}`;
|
|
18
|
+
// Keys
|
|
19
|
+
const TAB_KEY = "Tab";
|
|
20
|
+
const ChDropDown = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
21
|
+
constructor() {
|
|
22
|
+
super();
|
|
23
|
+
this.__registerHost();
|
|
24
|
+
this.__attachShadow();
|
|
25
|
+
this.expandedChange = createEvent(this, "expandedChange", 7);
|
|
26
|
+
this.keyEventsDictionary = {
|
|
27
|
+
ArrowDown: (event) => {
|
|
28
|
+
event.preventDefault();
|
|
29
|
+
if (!this.currentFocusedItem) {
|
|
30
|
+
this.focusFirstDropDownItem();
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const nextDropDownItem = this.findNextDropDownItemSibling();
|
|
34
|
+
if (nextDropDownItem) {
|
|
35
|
+
// This is wrong, it should call the focusElement Method. StencilJS bug?
|
|
36
|
+
nextDropDownItem.handleFocusElement();
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
ArrowUp: (event) => {
|
|
40
|
+
event.preventDefault();
|
|
41
|
+
if (!this.currentFocusedItem) {
|
|
42
|
+
this.focusFirstDropDownItem();
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const previousDropDownItem = this.findPreviousDropDownItemSibling();
|
|
46
|
+
if (previousDropDownItem) {
|
|
47
|
+
// This is wrong, it should call the focusElement Method. StencilJS bug?
|
|
48
|
+
previousDropDownItem.handleFocusElement();
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
Escape: () => {
|
|
52
|
+
this.closeDropdown();
|
|
53
|
+
this.returnFocusToButton();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
this.showHeader = false;
|
|
57
|
+
this.showFooter = false;
|
|
58
|
+
this.expanded = false;
|
|
59
|
+
this.expandedWithHover = false;
|
|
60
|
+
/**
|
|
61
|
+
* This attribute lets you specify the label for the expandable button.
|
|
62
|
+
* Important for accessibility.
|
|
63
|
+
*/
|
|
64
|
+
this.buttonLabel = "Show options";
|
|
65
|
+
/**
|
|
66
|
+
* Determine which actions on the expandable button display the dropdown
|
|
67
|
+
* section.
|
|
68
|
+
*/
|
|
69
|
+
this.expandBehavior = "ClickOrHover";
|
|
70
|
+
/**
|
|
71
|
+
* This attribute lets you specify if the control is nested in another
|
|
72
|
+
* dropdown. Useful to manage keyboard interaction.
|
|
73
|
+
*/
|
|
74
|
+
this.nestedDropdown = false;
|
|
75
|
+
/**
|
|
76
|
+
* Determine if the dropdown section should be opened when the expandable
|
|
77
|
+
* button of the control is focused.
|
|
78
|
+
*/
|
|
79
|
+
this.openOnFocus = false;
|
|
80
|
+
/**
|
|
81
|
+
* Specifies the position of the dropdown section that is placed relative to
|
|
82
|
+
* the expandable button.
|
|
83
|
+
*/
|
|
84
|
+
this.position = "Center_OutsideEnd";
|
|
85
|
+
this.closeDropdown = () => {
|
|
86
|
+
this.closeDropdownWithHover();
|
|
87
|
+
this.expanded = false;
|
|
88
|
+
this.expandedChange.emit(false);
|
|
89
|
+
};
|
|
90
|
+
this.closeDropdownWithHover = () => {
|
|
91
|
+
this.expandedWithHover = false;
|
|
92
|
+
// If the control was not expanded with focus
|
|
93
|
+
if (!this.expanded) {
|
|
94
|
+
this.expandedChange.emit(false);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
this.closeDropdownWhenClickingOutside = (event) => {
|
|
98
|
+
if (event.composedPath().find(el => el === this.el) === undefined) {
|
|
99
|
+
this.closeDropdown();
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
this.handleKeyDownEvents = (event) => {
|
|
103
|
+
const keyEventHandler = this.keyEventsDictionary[event.code];
|
|
104
|
+
if (keyEventHandler) {
|
|
105
|
+
keyEventHandler(event);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Check if the next focused element is a child element of the dropdown
|
|
110
|
+
* control.
|
|
111
|
+
*/
|
|
112
|
+
this.handleKeyUpEvents = (event) => {
|
|
113
|
+
if (event.code !== TAB_KEY) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const isChildElement = event.composedPath().includes(this.el);
|
|
117
|
+
if (isChildElement) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
this.closeDropdown();
|
|
121
|
+
};
|
|
122
|
+
this.handleMouseLeave = () => {
|
|
123
|
+
const focusedElementIsInsideDropDown = document.activeElement.closest("ch-dropdown") === this.el;
|
|
124
|
+
if (focusedElementIsInsideDropDown) {
|
|
125
|
+
this.expanded = true;
|
|
126
|
+
}
|
|
127
|
+
this.closeDropdownWithHover();
|
|
128
|
+
};
|
|
129
|
+
this.handleMouseEnter = () => {
|
|
130
|
+
if (this.expandedWithHover) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
this.expandedWithHover = true;
|
|
134
|
+
// If not previously expanded, emit the event
|
|
135
|
+
if (!this.expanded) {
|
|
136
|
+
this.expandedChange.emit(true);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
this.handleButtonClick = (event) => {
|
|
140
|
+
event.stopPropagation();
|
|
141
|
+
this.expandedChange.emit(!this.expanded);
|
|
142
|
+
this.expanded = !this.expanded;
|
|
143
|
+
};
|
|
144
|
+
this.handleButtonFocus = (event) => {
|
|
145
|
+
event.stopPropagation();
|
|
146
|
+
if (this.expanded) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
this.expanded = true;
|
|
150
|
+
// If not previously expanded, emit the event
|
|
151
|
+
if (!this.expandedWithHover) {
|
|
152
|
+
this.expandedChange.emit(true);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
handleExpandedChange(newExpandedValue) {
|
|
157
|
+
if (newExpandedValue) {
|
|
158
|
+
this.currentFocusedItem = undefined;
|
|
159
|
+
// Click
|
|
160
|
+
document.body.addEventListener("click", this.closeDropdownWhenClickingOutside, {
|
|
161
|
+
capture: true
|
|
162
|
+
});
|
|
163
|
+
// Keyboard events
|
|
164
|
+
if (!this.nestedDropdown) {
|
|
165
|
+
document.body.addEventListener("keydown", this.handleKeyDownEvents, {
|
|
166
|
+
capture: true
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
document.body.addEventListener("keyup", this.handleKeyUpEvents, {
|
|
170
|
+
capture: true
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
// Click
|
|
175
|
+
document.body.removeEventListener("click", this.closeDropdownWhenClickingOutside, {
|
|
176
|
+
capture: true
|
|
177
|
+
});
|
|
178
|
+
// Keyboard events
|
|
179
|
+
if (!this.nestedDropdown) {
|
|
180
|
+
document.body.removeEventListener("keydown", this.handleKeyDownEvents, {
|
|
181
|
+
capture: true
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
document.body.removeEventListener("keyup", this.handleKeyUpEvents, {
|
|
185
|
+
capture: true
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
handleActionClick() {
|
|
190
|
+
this.closeDropdown();
|
|
191
|
+
// @todo This behavior must be specified by a property
|
|
192
|
+
// this.returnFocusToButton();
|
|
193
|
+
}
|
|
194
|
+
handleDropDownItemFocusChange(event) {
|
|
195
|
+
this.currentFocusedItem = event.target;
|
|
196
|
+
}
|
|
197
|
+
focusFirstDropDownItem() {
|
|
198
|
+
this.currentFocusedItem = this.el.querySelector(DROPDOWN_ITEM_SELECTOR);
|
|
199
|
+
if (this.currentFocusedItem) {
|
|
200
|
+
this.currentFocusedItem.handleFocusElement();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
findNextDropDownItemSibling() {
|
|
204
|
+
let nextSibling = this.currentFocusedItem
|
|
205
|
+
.nextElementSibling;
|
|
206
|
+
while (nextSibling &&
|
|
207
|
+
nextSibling.tagName.toLowerCase() !== DROPDOWN_ITEM_TAG_NAME) {
|
|
208
|
+
nextSibling = nextSibling.nextElementSibling;
|
|
209
|
+
}
|
|
210
|
+
return nextSibling;
|
|
211
|
+
}
|
|
212
|
+
findPreviousDropDownItemSibling() {
|
|
213
|
+
let previousSibling = this.currentFocusedItem
|
|
214
|
+
.previousElementSibling;
|
|
215
|
+
while (previousSibling &&
|
|
216
|
+
previousSibling.tagName.toLowerCase() !== DROPDOWN_ITEM_TAG_NAME) {
|
|
217
|
+
previousSibling =
|
|
218
|
+
previousSibling.previousElementSibling;
|
|
219
|
+
}
|
|
220
|
+
return previousSibling;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Returns focus to the expandable button when closing the dropdown. Only
|
|
224
|
+
* works if `openOnFocus = "false"`
|
|
225
|
+
*/
|
|
226
|
+
returnFocusToButton() {
|
|
227
|
+
if (!this.openOnFocus && !this.nestedDropdown) {
|
|
228
|
+
this.expandableButton.focus();
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
componentWillLoad() {
|
|
232
|
+
this.showHeader = !!this.el.querySelector(':scope > [slot="header"]');
|
|
233
|
+
this.showFooter = !!this.el.querySelector(':scope > [slot="footer"]');
|
|
234
|
+
}
|
|
235
|
+
render() {
|
|
236
|
+
const aligns = this.position.split("_");
|
|
237
|
+
const alignX = aligns[0];
|
|
238
|
+
const alignY = aligns[1];
|
|
239
|
+
const hasVerticalPosition = alignY === "OutsideStart" || alignY === "OutsideEnd";
|
|
240
|
+
const xAlignMapping = mapDropdownAlignToChWindowAlign[alignX];
|
|
241
|
+
const yAlignMapping = mapDropdownAlignToChWindowAlign[alignY];
|
|
242
|
+
const isExpanded = this.expanded || this.expandedWithHover;
|
|
243
|
+
return (h(Host, { onMouseLeave: this.expandBehavior === "ClickOrHover"
|
|
244
|
+
? this.handleMouseLeave
|
|
245
|
+
: undefined }, h("button", { id: EXPANDABLE_BUTTON_ID, "aria-controls": SECTION_ID, "aria-expanded": this.expanded.toString(), "aria-haspopup": "true", "aria-label": this.buttonLabel, class: "expandable-button", part: "expandable-button", type: "button", onClick: this.handleButtonClick, onFocus: this.openOnFocus ? this.handleButtonFocus : undefined, onMouseEnter: this.expandBehavior === "ClickOrHover"
|
|
246
|
+
? this.handleMouseEnter
|
|
247
|
+
: undefined, ref: el => (this.expandableButton = el) }, h("slot", { name: "action" })), this.expandBehavior === "ClickOrHover" && (
|
|
248
|
+
// Necessary since the separation between the button and the section
|
|
249
|
+
// triggers the onMouseLeave event
|
|
250
|
+
h("div", { "aria-hidden": "true", class: {
|
|
251
|
+
separation: true,
|
|
252
|
+
[`separation--y separation--y-${yAlignMapping}`]: hasVerticalPosition,
|
|
253
|
+
[`separation--x separation--x-${xAlignMapping}`]: !hasVerticalPosition
|
|
254
|
+
}, part: "separation" })), h("ch-window", { part: "window", exportparts: "window:section,mask,header,footer", container: this.el, closeOnEscape: true, hidden: !isExpanded, modal: false, showFooter: this.showFooter, showHeader: this.showHeader, xAlign: xAlignMapping, yAlign: yAlignMapping }, this.showHeader && h("slot", { name: "header", slot: "header" }), h("div", { role: "list", class: "list", part: "list" }, h("slot", { name: "items" })), this.showFooter && h("slot", { name: "footer", slot: "footer" }))));
|
|
255
|
+
}
|
|
256
|
+
get el() { return this; }
|
|
257
|
+
static get watchers() { return {
|
|
258
|
+
"expanded": ["handleExpandedChange"]
|
|
259
|
+
}; }
|
|
260
|
+
static get style() { return dropdownCss; }
|
|
261
|
+
}, [1, "ch-dropdown", {
|
|
262
|
+
"buttonLabel": [1, "button-label"],
|
|
263
|
+
"expandBehavior": [1, "expand-behavior"],
|
|
264
|
+
"nestedDropdown": [4, "nested-dropdown"],
|
|
265
|
+
"openOnFocus": [4, "open-on-focus"],
|
|
266
|
+
"position": [1],
|
|
267
|
+
"expanded": [32],
|
|
268
|
+
"expandedWithHover": [32]
|
|
269
|
+
}, [[0, "actionClick", "handleActionClick"], [0, "focusChange", "handleDropDownItemFocusChange"]]]);
|
|
270
|
+
function defineCustomElement() {
|
|
271
|
+
if (typeof customElements === "undefined") {
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
const components = ["ch-dropdown", "ch-window", "ch-window-close"];
|
|
275
|
+
components.forEach(tagName => { switch (tagName) {
|
|
276
|
+
case "ch-dropdown":
|
|
277
|
+
if (!customElements.get(tagName)) {
|
|
278
|
+
customElements.define(tagName, ChDropDown);
|
|
279
|
+
}
|
|
280
|
+
break;
|
|
281
|
+
case "ch-window":
|
|
282
|
+
if (!customElements.get(tagName)) {
|
|
283
|
+
defineCustomElement$2();
|
|
284
|
+
}
|
|
285
|
+
break;
|
|
286
|
+
case "ch-window-close":
|
|
287
|
+
if (!customElements.get(tagName)) {
|
|
288
|
+
defineCustomElement$1();
|
|
289
|
+
}
|
|
290
|
+
break;
|
|
291
|
+
} });
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export { ChDropDown as C, defineCustomElement as d };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
/* STENCIL IMPORTS */
|
|
4
|
+
const renderComboItems = (gxOptions) => {
|
|
5
|
+
const comboItemsArray = [];
|
|
6
|
+
gxOptions.forEach((gxOption) => {
|
|
7
|
+
const iconName = gxOption.iconName || gxOption.icon;
|
|
8
|
+
comboItemsArray.push(h("gxg-combo-box-item", { value: gxOption.value, icon: iconName }, gxOption.label || gxOption.name));
|
|
9
|
+
});
|
|
10
|
+
return comboItemsArray;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const formatDate = (dateObject) => {
|
|
14
|
+
const date = dateObject.toISOString().slice(0, 10);
|
|
15
|
+
const hours = dateObject.getHours();
|
|
16
|
+
const minutes = dateObject.getMinutes();
|
|
17
|
+
const time = `${hours}:${minutes}`;
|
|
18
|
+
let period = "AM"; // Assume it's AM by default
|
|
19
|
+
if (hours >= 12) {
|
|
20
|
+
period = "PM";
|
|
21
|
+
}
|
|
22
|
+
return `${date} ${time}${period} `;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { formatDate as f, renderComboItems as r };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { L as Locale } from './locale.js';
|
|
3
|
+
import { f as formatDate, r as renderComboItems } from './format-date.js';
|
|
3
4
|
import { d as defineCustomElement$q } from './ch-grid2.js';
|
|
4
5
|
import { d as defineCustomElement$p } from './ch-grid-column2.js';
|
|
5
6
|
import { d as defineCustomElement$o } from './ch-grid-column-resize2.js';
|
|
@@ -26,16 +27,6 @@ import { d as defineCustomElement$4 } from './tabs.js';
|
|
|
26
27
|
import { d as defineCustomElement$3 } from './title.js';
|
|
27
28
|
import { d as defineCustomElement$2 } from './tooltip.js';
|
|
28
29
|
|
|
29
|
-
/* STENCIL IMPORTS */
|
|
30
|
-
const renderComboItems = (gxOptions) => {
|
|
31
|
-
const comboItemsArray = [];
|
|
32
|
-
gxOptions.forEach((gxOption) => {
|
|
33
|
-
const iconName = gxOption.iconName || gxOption.icon;
|
|
34
|
-
comboItemsArray.push(h("gxg-combo-box-item", { value: gxOption.value, icon: iconName }, gxOption.label || gxOption.name));
|
|
35
|
-
});
|
|
36
|
-
return comboItemsArray;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
30
|
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)}";
|
|
40
31
|
|
|
41
32
|
const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
@@ -96,17 +87,6 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
96
87
|
}
|
|
97
88
|
return h("gxg-icon", { type: type, color: color });
|
|
98
89
|
};
|
|
99
|
-
this.formatDate = (dateObject) => {
|
|
100
|
-
const date = dateObject.toISOString().slice(0, 10);
|
|
101
|
-
const hours = dateObject.getHours();
|
|
102
|
-
const minutes = dateObject.getMinutes();
|
|
103
|
-
const time = `${hours}:${minutes}`;
|
|
104
|
-
let period = "AM"; // Assume it's AM by default
|
|
105
|
-
if (hours >= 12) {
|
|
106
|
-
period = "PM";
|
|
107
|
-
}
|
|
108
|
-
return `${date} ${time}${period} `;
|
|
109
|
-
};
|
|
110
90
|
this.pendingCommitsRowMarkingChangedHandler = async (e) => {
|
|
111
91
|
// remove "rowMarkingChanged" until checkboxes have been added/removed on togglePendingCommitsCheckboxes, to prevent loops.
|
|
112
92
|
this.chGridPendingCommitsEl.removeEventListener("rowMarkingChanged", this.pendingCommitsRowMarkingChangedHandler);
|
|
@@ -127,27 +107,25 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
127
107
|
this.chGridPendingCommitsEl.addEventListener("rowMarkingChanged", this.pendingCommitsRowMarkingChangedHandler);
|
|
128
108
|
}
|
|
129
109
|
};
|
|
130
|
-
this.
|
|
110
|
+
this.gridOnContextMenuCallbackHandler = (grid) => async (ev) => {
|
|
131
111
|
ev.preventDefault();
|
|
132
112
|
ev.stopPropagation();
|
|
133
|
-
let markedRowsIds;
|
|
134
|
-
if (grid === "commit") {
|
|
135
|
-
markedRowsIds = await this.chGridPendingCommitsEl.getMarkedRows();
|
|
136
|
-
}
|
|
137
|
-
else if (grid === "ignored") {
|
|
138
|
-
markedRowsIds = await this.chIgnoredObjectsEl.getMarkedRows();
|
|
139
|
-
}
|
|
140
113
|
if (this.gridContextMenuCallback) {
|
|
141
|
-
await this.gridContextMenuCallback(
|
|
114
|
+
await this.gridContextMenuCallback(grid, ev.detail);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
this.gridOnSelectionChangedCallbackHandler = (grid) => async (ev) => {
|
|
118
|
+
if (this.selectCallback) {
|
|
119
|
+
await this.selectCallback(grid, ev.detail.rowsId);
|
|
142
120
|
}
|
|
143
121
|
};
|
|
144
122
|
/* pending commits grid render*/
|
|
145
123
|
this.renderPendingCommitsGrid = () => {
|
|
146
|
-
return (h("gxg-grid", null, h("ch-grid", { rowSelectionMode: "multiple", ref: (el) => (this.chGridPendingCommitsEl = el), part: "ch-grid-pending-commits", class: "no-border",
|
|
124
|
+
return (h("gxg-grid", null, h("ch-grid", { rowSelectionMode: "multiple", ref: (el) => (this.chGridPendingCommitsEl = el), part: "ch-grid-pending-commits", class: "no-border", onRowContextMenu: this.gridOnContextMenuCallbackHandler("commit"), onSelectionChanged: this.gridOnSelectionChangedCallbackHandler("commit") }, h("ch-grid-columnset", null, h("ch-grid-column", { columnType: "rich", richRowSelector: true, richRowSelectorMode: "mark", settingable: false, sortable: false, size: "auto" }), h("ch-grid-column", { columnName: "State", settingable: false, sortable: false, size: "auto" }), h("ch-grid-column", { settingable: false, sortable: false, size: "auto" }), h("ch-grid-column", { sortable: true, columnName: "Name", settingable: false, size: "auto" }), h("ch-grid-column", { sortable: true, columnName: "Type", settingable: false, size: "auto" }), h("ch-grid-column", { columnName: "Description", settingable: false, size: "auto" }), h("ch-grid-column", { sortable: true, columnName: "Modified On", settingable: false }), h("ch-grid-column", { columnName: "Module", settingable: false, size: "auto" }), h("ch-grid-column", { columnName: "Local State", settingable: false, size: "auto" }), h("ch-grid-column", { columnName: "Last Synchronized", settingable: false, size: "150px" }), h("ch-grid-column", { sortable: true, columnName: "User", settingable: false, size: "auto" })), this.pendingCommits.map((obj) => (h("ch-grid-row", { rowid: obj.id }, h("ch-grid-cell", { "cell-type": "rich", "row-selector": true }), h("ch-grid-cell", null, " ", this.renderIconState(obj.state), " "), h("ch-grid-cell", null, h("gxg-icon", { color: "auto", type: obj.iconType })), h("ch-grid-cell", null, " ", obj.name, " "), h("ch-grid-cell", null, " ", obj.type, " "), h("ch-grid-cell", null, " ", obj.description, " "), h("ch-grid-cell", null, `${formatDate(obj.modifiedOn)}`), h("ch-grid-cell", null, " ", obj.module, " "), h("ch-grid-cell", null, " ", obj.localState, " "), h("ch-grid-cell", null, `${formatDate(obj.lastSynchronized)}`), h("ch-grid-cell", null, " ", obj.user, " ")))))));
|
|
147
125
|
};
|
|
148
126
|
/* ignored objects grid render*/
|
|
149
127
|
this.renderIgnoredObjectsGrid = () => {
|
|
150
|
-
return (h("gxg-grid", null, h("ch-grid", { rowSelectionMode: "multiple",
|
|
128
|
+
return (h("gxg-grid", null, h("ch-grid", { rowSelectionMode: "multiple", part: "ch-grid-pending-commits", onRowContextMenu: this.gridOnContextMenuCallbackHandler("ignored"), onSelectionChanged: this.gridOnSelectionChangedCallbackHandler("ignored") }, h("ch-grid-columnset", null, h("ch-grid-column", { columnName: "", settingable: false }), h("ch-grid-column", { columnName: "TypeIcon", settingable: false }), h("ch-grid-column", { columnName: "Name", settingable: false, sortable: true }), h("ch-grid-column", { columnName: "Type", settingable: false }), h("ch-grid-column", { columnName: "Description", settingable: false }), h("ch-grid-column", { columnName: "Modified On", settingable: false }), h("ch-grid-column", { columnName: "Module", settingable: false }), h("ch-grid-column", { columnName: "Local State", settingable: false }), h("ch-grid-column", { columnName: "Last Synchronized", settingable: false }), h("ch-grid-column", { columnName: "User", settingable: false })), this.ignoredObjects.map((obj) => (h("ch-grid-row", { "row-id": obj.id, selected: true }, h("ch-grid-cell", null, " ", this.renderIconState(obj.state), " "), h("ch-grid-cell", null, h("gxg-icon", { color: "auto", type: obj.iconType })), h("ch-grid-cell", null, " ", obj.name, " "), h("ch-grid-cell", null, " ", obj.type, " "), h("ch-grid-cell", null, " ", obj.description, " "), h("ch-grid-cell", null, `${formatDate(obj.modifiedOn)}`), h("ch-grid-cell", null, " ", obj.module, " "), h("ch-grid-cell", null, " ", obj.localState, " "), h("ch-grid-cell", null, `${formatDate(obj.lastSynchronized)}`), h("ch-grid-cell", null, " ", obj.user, " ")))))));
|
|
151
129
|
};
|
|
152
130
|
this.getRecentCommentHandler = async () => {
|
|
153
131
|
if (this.getRecentCommentCallback) {
|
|
@@ -158,10 +136,11 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
158
136
|
}
|
|
159
137
|
};
|
|
160
138
|
this.commitCallbackHandler = async () => {
|
|
139
|
+
const commitComment = this.commitComment.value;
|
|
161
140
|
this.chGridPendingCommitsEl
|
|
162
141
|
.getMarkedRows()
|
|
163
142
|
.then(async (pendingCommitsCheckedIds) => {
|
|
164
|
-
await this.commitCallback(pendingCommitsCheckedIds);
|
|
143
|
+
await this.commitCallback(pendingCommitsCheckedIds, commitComment);
|
|
165
144
|
/* returns boolean*/
|
|
166
145
|
});
|
|
167
146
|
};
|
|
@@ -198,6 +177,7 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
198
177
|
this.getRecentCommentCallback = undefined;
|
|
199
178
|
this.loadCallback = undefined;
|
|
200
179
|
this.commitCallback = undefined;
|
|
180
|
+
this.selectCallback = undefined;
|
|
201
181
|
this.pendingItemCheckedCallback = undefined;
|
|
202
182
|
this.gridContextMenuCallback = undefined;
|
|
203
183
|
}
|
|
@@ -228,7 +208,7 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
228
208
|
}
|
|
229
209
|
// 10.RENDER() FUNCTION //
|
|
230
210
|
render() {
|
|
231
|
-
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, h("gxg-container", null, h("header", { class: "header grid" }, h("gxg-form-textarea", { id: "gxg-textarea", height: "100px", label: this._componentLocale.topMenu.commentLabel, value: this.comment, placeholder: this._componentLocale.topMenu.commentPlaceholder }), h("gxg-button", { type: "outlined", part: "location", onClick: this.getRecentCommentHandler }, this._componentLocale.topMenu.recentCommentsButton))), h("main", { class: "main" }, h("gxg-container", { fieldset: true, noContentPadding: !!this.filtersHidden }, h("div", { class: "grid second-grid" }, h("div", { class: "actions-row grid" }, 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 }), h("div", { class: "action-buttons", slot: "tab-bar" }, h("gxg-button", { onClick: this.toggleFiltersHandler, type: "secondary-icon-only", icon: "patterns/filters", part: "gxg-button gxg-button--show-filter" }), h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/reset", onClick: this.loadData, part: "gxg-button gxg-button--reload" }))), h("div", { class: "filters-grid grid " +
|
|
211
|
+
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, h("gxg-container", null, h("header", { class: "header grid" }, h("gxg-form-textarea", { id: "gxg-textarea", height: "100px", label: this._componentLocale.topMenu.commentLabel, value: this.comment, ref: (el) => (this.commitComment = el), placeholder: this._componentLocale.topMenu.commentPlaceholder }), h("gxg-button", { type: "outlined", part: "location", onClick: this.getRecentCommentHandler }, this._componentLocale.topMenu.recentCommentsButton))), h("main", { class: "main" }, h("gxg-container", { fieldset: true, noContentPadding: !!this.filtersHidden }, h("div", { class: "grid second-grid" }, h("div", { class: "actions-row grid" }, 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 }), h("div", { class: "action-buttons", slot: "tab-bar" }, h("gxg-button", { onClick: this.toggleFiltersHandler, type: "secondary-icon-only", icon: "patterns/filters", part: "gxg-button gxg-button--show-filter" }), h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/reset", onClick: this.loadData, part: "gxg-button gxg-button--reload" }))), h("div", { class: "filters-grid grid " +
|
|
232
212
|
(this.filtersHidden ? "hidden" : null) }, h("div", { class: "first-row grid" }, 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)), 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))), h("div", { class: "second-row grid" }, 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)), 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)))))), h("gxg-container", null, h("gxg-tabs", { height: "100%", position: "top", class: "gxg-tabs" }, h("gxg-tab-bar", { slot: "tab-bar-container" }, h("gxg-tab-button", { slot: "tab-bar", "tab-label": `${this._componentLocale.tabs.pendingCommits} (${this.pendingCommits.length})`, tab: "pending-commits", "is-selected": true }), h("gxg-tab-button", { slot: "tab-bar", "tab-label": `${this._componentLocale.tabs.ignoredObjects} (${this.ignoredObjects.length})`, tab: "ignored-objects" })), h("gxg-tab", { tab: "pending-commits", "no-padding": true }, this.renderPendingCommitsGrid()), h("gxg-tab", { tab: "ignored-objects", "no-padding": true }, this.renderIgnoredObjectsGrid())), h("gxg-button", { slot: "footer", type: "primary-text-only", onClick: this.commitCallbackHandler, part: "commit-button" }, this._componentLocale.footer.commitButton))))));
|
|
233
213
|
}
|
|
234
214
|
static get assetsDirs() { return ["gx-ide-assets/team-dev-commit"]; }
|
|
@@ -242,6 +222,7 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
242
222
|
"getRecentCommentCallback": [16],
|
|
243
223
|
"loadCallback": [16],
|
|
244
224
|
"commitCallback": [16],
|
|
225
|
+
"selectCallback": [16],
|
|
245
226
|
"pendingItemCheckedCallback": [16],
|
|
246
227
|
"gridContextMenuCallback": [16],
|
|
247
228
|
"filtersHidden": [32],
|
|
@@ -20,15 +20,9 @@ const GxIdeTeamDevSelectRecentComment$1 = /*@__PURE__*/ proxyCustomElement(class
|
|
|
20
20
|
this.__attachShadow();
|
|
21
21
|
this.componentDidLoadEvent = createEvent(this, "componentDidLoadEvent", 7);
|
|
22
22
|
this.selectedComment = null;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/** *****************************
|
|
27
|
-
* 8.PUBLIC METHODS API
|
|
28
|
-
********************************/
|
|
29
|
-
/** *****************************
|
|
30
|
-
* 9.LOCAL METHODS
|
|
31
|
-
********************************/
|
|
23
|
+
// 7.LISTENERS //
|
|
24
|
+
// 8.PUBLIC METHODS API //
|
|
25
|
+
// 9.LOCAL METHODS //
|
|
32
26
|
this.renderObjectItems = (options) => {
|
|
33
27
|
if (options.length) {
|
|
34
28
|
const items = [];
|
|
@@ -53,16 +47,12 @@ const GxIdeTeamDevSelectRecentComment$1 = /*@__PURE__*/ proxyCustomElement(class
|
|
|
53
47
|
this.confirmCallback = undefined;
|
|
54
48
|
this.cancelCallback = undefined;
|
|
55
49
|
}
|
|
56
|
-
|
|
57
|
-
* 6.COMPONENT LIFECYCLE EVENTS
|
|
58
|
-
********************************/
|
|
50
|
+
// 6.COMPONENT LIFECYCLE EVENTS //
|
|
59
51
|
async componentWillLoad() {
|
|
60
52
|
this._componentLocale = await Locale.getComponentStrings(this.el);
|
|
61
53
|
this.componentDidLoadEvent.emit(true);
|
|
62
54
|
}
|
|
63
|
-
|
|
64
|
-
* 10.RENDER() FUNCTION
|
|
65
|
-
********************************/
|
|
55
|
+
// 10.RENDER() FUNCTION //
|
|
66
56
|
render() {
|
|
67
57
|
return (h(Host, null, h("div", { class: `main-wrapper` }, h("gxg-container", { displayBorder: true }, h("gxg-list-box", { id: "max-height", singleSelection: true, height: "100%", required: true, "min-height": "50%", onSelectionChanged: event => {
|
|
68
58
|
if (event.detail[0]) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface GxIdeTeamDevUpdatePartialSelection extends Components.GxIdeTeamDevUpdatePartialSelection, HTMLElement {}
|
|
4
|
+
export const GxIdeTeamDevUpdatePartialSelection: {
|
|
5
|
+
prototype: GxIdeTeamDevUpdatePartialSelection;
|
|
6
|
+
new (): GxIdeTeamDevUpdatePartialSelection;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|