@dhis2-ui/transfer 8.1.11 → 8.2.2
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/build/cjs/__e2e__/add_remove-highlighted-options.stories.e2e.js +30 -21
- package/build/cjs/__e2e__/common/stateful-decorator.js +26 -19
- package/build/cjs/__e2e__/disabled-transfer-buttons.stories.e2e.js +70 -49
- package/build/cjs/__e2e__/disabled-transfer-options.stories.e2e.js +14 -11
- package/build/cjs/__e2e__/display-order.stories.e2e.js +29 -20
- package/build/cjs/__e2e__/filter-options-list.stories.e2e.js +97 -73
- package/build/cjs/__e2e__/highlight-range-of-options.stories.e2e.js +49 -34
- package/build/cjs/__e2e__/loading_lists.stories.e2e.js +1 -1
- package/build/cjs/__e2e__/notify_at_end_of_list.stories.e2e.js +61 -43
- package/build/cjs/__e2e__/reorder-with-buttons.stories.e2e.js +19 -13
- package/build/cjs/__e2e__/set_unset-highlighted-option.stories.e2e.js +30 -21
- package/build/cjs/__e2e__/transferring-items.stories.e2e.js +29 -20
- package/build/cjs/__tests__/helper/use-highlighted-option/toggle-add.test.js +6 -3
- package/build/cjs/__tests__/helper/use-highlighted-option/toggle-range.test.js +48 -24
- package/build/cjs/__tests__/transfer.test.js +18 -10
- package/build/cjs/actions.js +13 -10
- package/build/cjs/add-all.js +17 -14
- package/build/cjs/add-individual.js +16 -13
- package/build/cjs/common/get-mode-by-modifier-key.js +7 -6
- package/build/cjs/common/modes.js +1 -1
- package/build/cjs/container.js +15 -12
- package/build/cjs/end-intersection-detector.js +21 -15
- package/build/cjs/features/disabled-transfer-options/index.js +4 -2
- package/build/cjs/features/display-order/index.js +47 -26
- package/build/cjs/features/filter-options-list/index.js +6 -3
- package/build/cjs/features/highlight-range-of-options/index.js +10 -5
- package/build/cjs/features/loading_lists/index.js +2 -2
- package/build/cjs/features/notify_at_end_of_list/index.js +5 -3
- package/build/cjs/features/set_unset-highlighted-option/index.js +6 -3
- package/build/cjs/features/transferring-items/index.js +77 -42
- package/build/cjs/filter.js +26 -23
- package/build/cjs/icons.js +134 -116
- package/build/cjs/left-footer.js +13 -10
- package/build/cjs/left-header.js +13 -10
- package/build/cjs/left-side.js +19 -16
- package/build/cjs/options-container.js +17 -16
- package/build/cjs/picked-options.js +22 -19
- package/build/cjs/remove-all.js +16 -13
- package/build/cjs/remove-individual.js +16 -13
- package/build/cjs/reordering-actions.js +34 -31
- package/build/cjs/right-footer.js +13 -10
- package/build/cjs/right-header.js +13 -10
- package/build/cjs/right-side.js +19 -16
- package/build/cjs/source-options.js +22 -19
- package/build/cjs/transfer/add-all-selectable-source-options.js +13 -9
- package/build/cjs/transfer/add-individual-source-options.js +11 -9
- package/build/cjs/transfer/create-double-click-handlers.js +17 -13
- package/build/cjs/transfer/default-filter-callback.js +6 -3
- package/build/cjs/transfer/is-reorder-down-disabled.js +10 -6
- package/build/cjs/transfer/is-reorder-up-disabled.js +10 -6
- package/build/cjs/transfer/move-highlighted-picked-option-down.js +6 -5
- package/build/cjs/transfer/move-highlighted-picked-option-up.js +6 -5
- package/build/cjs/transfer/remove-all-picked-options.js +5 -4
- package/build/cjs/transfer/remove-individual-picked-options.js +10 -8
- package/build/cjs/transfer/use-filter.js +8 -7
- package/build/cjs/transfer/use-highlighted-options/create-toggle-highlighted-option.js +45 -40
- package/build/cjs/transfer/use-highlighted-options/toggle-add.js +7 -6
- package/build/cjs/transfer/use-highlighted-options/toggle-range.js +16 -11
- package/build/cjs/transfer/use-highlighted-options/toggle-replace.js +7 -5
- package/build/cjs/transfer/use-highlighted-options.js +7 -5
- package/build/cjs/transfer-option.js +12 -11
- package/build/cjs/transfer.js +86 -72
- package/build/cjs/transfer.stories.js +127 -131
- package/build/es/__e2e__/add_remove-highlighted-options.stories.e2e.js +29 -20
- package/build/es/__e2e__/common/stateful-decorator.js +26 -19
- package/build/es/__e2e__/disabled-transfer-buttons.stories.e2e.js +69 -48
- package/build/es/__e2e__/disabled-transfer-options.stories.e2e.js +13 -10
- package/build/es/__e2e__/display-order.stories.e2e.js +28 -19
- package/build/es/__e2e__/filter-options-list.stories.e2e.js +96 -72
- package/build/es/__e2e__/highlight-range-of-options.stories.e2e.js +48 -33
- package/build/es/__e2e__/notify_at_end_of_list.stories.e2e.js +60 -42
- package/build/es/__e2e__/reorder-with-buttons.stories.e2e.js +18 -12
- package/build/es/__e2e__/set_unset-highlighted-option.stories.e2e.js +29 -20
- package/build/es/__e2e__/transferring-items.stories.e2e.js +28 -19
- package/build/es/__tests__/helper/use-highlighted-option/toggle-add.test.js +6 -3
- package/build/es/__tests__/helper/use-highlighted-option/toggle-range.test.js +48 -24
- package/build/es/__tests__/transfer.test.js +18 -10
- package/build/es/actions.js +13 -10
- package/build/es/add-all.js +17 -14
- package/build/es/add-individual.js +16 -13
- package/build/es/common/get-mode-by-modifier-key.js +7 -6
- package/build/es/container.js +15 -12
- package/build/es/end-intersection-detector.js +21 -15
- package/build/es/features/disabled-transfer-options/index.js +4 -2
- package/build/es/features/display-order/index.js +47 -26
- package/build/es/features/filter-options-list/index.js +6 -3
- package/build/es/features/highlight-range-of-options/index.js +10 -5
- package/build/es/features/loading_lists/index.js +2 -2
- package/build/es/features/notify_at_end_of_list/index.js +5 -3
- package/build/es/features/set_unset-highlighted-option/index.js +6 -3
- package/build/es/features/transferring-items/index.js +77 -42
- package/build/es/filter.js +26 -23
- package/build/es/icons.js +133 -115
- package/build/es/left-footer.js +13 -10
- package/build/es/left-header.js +13 -10
- package/build/es/left-side.js +19 -16
- package/build/es/options-container.js +17 -16
- package/build/es/picked-options.js +22 -19
- package/build/es/remove-all.js +16 -13
- package/build/es/remove-individual.js +16 -13
- package/build/es/reordering-actions.js +34 -31
- package/build/es/right-footer.js +13 -10
- package/build/es/right-header.js +13 -10
- package/build/es/right-side.js +19 -16
- package/build/es/source-options.js +22 -19
- package/build/es/transfer/add-all-selectable-source-options.js +13 -9
- package/build/es/transfer/add-individual-source-options.js +11 -9
- package/build/es/transfer/create-double-click-handlers.js +17 -13
- package/build/es/transfer/default-filter-callback.js +6 -3
- package/build/es/transfer/is-reorder-down-disabled.js +10 -6
- package/build/es/transfer/is-reorder-up-disabled.js +10 -6
- package/build/es/transfer/move-highlighted-picked-option-down.js +6 -5
- package/build/es/transfer/move-highlighted-picked-option-up.js +6 -5
- package/build/es/transfer/remove-all-picked-options.js +5 -4
- package/build/es/transfer/remove-individual-picked-options.js +10 -8
- package/build/es/transfer/use-filter.js +8 -7
- package/build/es/transfer/use-highlighted-options/create-toggle-highlighted-option.js +45 -40
- package/build/es/transfer/use-highlighted-options/toggle-add.js +7 -6
- package/build/es/transfer/use-highlighted-options/toggle-range.js +16 -11
- package/build/es/transfer/use-highlighted-options/toggle-replace.js +7 -5
- package/build/es/transfer/use-highlighted-options.js +7 -5
- package/build/es/transfer-option.js +12 -11
- package/build/es/transfer.js +86 -72
- package/build/es/transfer.stories.js +126 -130
- package/package.json +7 -7
|
@@ -45,69 +45,90 @@ var _index = require("../common/index.js");
|
|
|
45
45
|
cy.get('{transfer-pickedoptions} {transferoption}').first().dblclick().then(_index.extractOptionFromElement).as('doubleClickedPlainOption');
|
|
46
46
|
});
|
|
47
47
|
(0, _steps.Then)('the highlighted items should be removed from the options list', () => {
|
|
48
|
-
cy.all(() => cy.get('@itemsToBeSelected'), () => cy.get('{transfer-sourceoptions} {transferoption}')).should(
|
|
48
|
+
cy.all(() => cy.get('@itemsToBeSelected'), () => cy.get('{transfer-sourceoptions} {transferoption}')).should(_ref => {
|
|
49
|
+
let [itemsToBeSelected, $selectableSourceOptions] = _ref;
|
|
49
50
|
const selectableSourceOptions = $selectableSourceOptions.toArray().map(_index.extractOptionFromElement);
|
|
50
51
|
const itemsStillSelectable = itemsToBeSelected.every(itemToBeSelected => {
|
|
51
|
-
const result = selectableSourceOptions.find(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
const result = selectableSourceOptions.find(_ref2 => {
|
|
53
|
+
let {
|
|
54
|
+
label,
|
|
55
|
+
value
|
|
56
|
+
} = _ref2;
|
|
57
|
+
return label === itemToBeSelected.label && value === itemToBeSelected.value;
|
|
58
|
+
});
|
|
55
59
|
return result;
|
|
56
60
|
});
|
|
57
61
|
expect(itemsStillSelectable).to.equal(false);
|
|
58
62
|
});
|
|
59
63
|
});
|
|
60
64
|
(0, _steps.Then)('the highlighted items should be visible in the selected list', () => {
|
|
61
|
-
cy.all(() => cy.get('@itemsToBeSelected'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(
|
|
65
|
+
cy.all(() => cy.get('@itemsToBeSelected'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(_ref3 => {
|
|
66
|
+
let [itemsToBeSelected, $selectedOptions] = _ref3;
|
|
62
67
|
const selectedOptions = $selectedOptions.toArray().map(_index.extractOptionFromElement);
|
|
63
|
-
const itemsSelected = itemsToBeSelected.every(itemToBeSelected => selectedOptions.find(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
68
|
+
const itemsSelected = itemsToBeSelected.every(itemToBeSelected => selectedOptions.find(_ref4 => {
|
|
69
|
+
let {
|
|
70
|
+
label,
|
|
71
|
+
value
|
|
72
|
+
} = _ref4;
|
|
73
|
+
return label === itemToBeSelected.label && value === itemToBeSelected.value;
|
|
74
|
+
}));
|
|
67
75
|
expect(itemsSelected).to.equal(true);
|
|
68
76
|
});
|
|
69
77
|
});
|
|
70
78
|
(0, _steps.Then)('the highlighted items should be appended to the selected list in the order they were highlighted', () => {
|
|
71
|
-
cy.all(() => cy.get('@itemsToBeSelected'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(
|
|
79
|
+
cy.all(() => cy.get('@itemsToBeSelected'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(_ref5 => {
|
|
80
|
+
let [itemsToBeSelected, $selectedOptions] = _ref5;
|
|
72
81
|
const lastNSelectedOptions = $selectedOptions.toArray().map(_index.extractOptionFromElement).slice(itemsToBeSelected.length * -1);
|
|
73
82
|
expect(itemsToBeSelected).to.eql(lastNSelectedOptions);
|
|
74
83
|
});
|
|
75
84
|
});
|
|
76
85
|
(0, _steps.Then)('the highlighted items should be removed from the selected list', () => {
|
|
77
|
-
cy.all(() => cy.get('@itemsToBeDeselected'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(
|
|
86
|
+
cy.all(() => cy.get('@itemsToBeDeselected'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(_ref6 => {
|
|
87
|
+
let [itemsToBeDeselected, $selectedOptions] = _ref6;
|
|
78
88
|
const selectedOptions = $selectedOptions.toArray().map(_index.extractOptionFromElement);
|
|
79
89
|
const itemsStillSelected = itemsToBeDeselected.every(itemToBeSelected => {
|
|
80
|
-
const result = selectedOptions.find(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
90
|
+
const result = selectedOptions.find(_ref7 => {
|
|
91
|
+
let {
|
|
92
|
+
label,
|
|
93
|
+
value
|
|
94
|
+
} = _ref7;
|
|
95
|
+
return label === itemToBeSelected.label && value === itemToBeSelected.value;
|
|
96
|
+
});
|
|
84
97
|
return result;
|
|
85
98
|
});
|
|
86
99
|
expect(itemsStillSelected).to.equal(false);
|
|
87
100
|
});
|
|
88
101
|
});
|
|
89
102
|
(0, _steps.Then)('the highlighted items should be visible in the options list', () => {
|
|
90
|
-
cy.all(() => cy.get('@itemsToBeDeselected'), () => cy.get('{transfer-sourceoptions} {transferoption}')).should(
|
|
103
|
+
cy.all(() => cy.get('@itemsToBeDeselected'), () => cy.get('{transfer-sourceoptions} {transferoption}')).should(_ref8 => {
|
|
104
|
+
let [itemsToBeDeselected, $selectedOptions] = _ref8;
|
|
91
105
|
const selectedOptions = $selectedOptions.toArray().map(_index.extractOptionFromElement);
|
|
92
106
|
const itemsSelectable = itemsToBeDeselected.every(itemToBeSelected => {
|
|
93
|
-
const result = selectedOptions.find(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
107
|
+
const result = selectedOptions.find(_ref9 => {
|
|
108
|
+
let {
|
|
109
|
+
label,
|
|
110
|
+
value
|
|
111
|
+
} = _ref9;
|
|
112
|
+
return label === itemToBeSelected.label && value === itemToBeSelected.value;
|
|
113
|
+
});
|
|
97
114
|
return result;
|
|
98
115
|
});
|
|
99
116
|
expect(itemsSelectable).to.equal(true);
|
|
100
117
|
});
|
|
101
118
|
});
|
|
102
119
|
(0, _steps.Then)('the highlighted items should be in the original options list ordering', () => {
|
|
103
|
-
cy.all(() => cy.window(), () => cy.get('{transfer-sourceoptions} {transferoption}'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(
|
|
120
|
+
cy.all(() => cy.window(), () => cy.get('{transfer-sourceoptions} {transferoption}'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(_ref10 => {
|
|
121
|
+
let [win, $selectableSourceOptions, $selectedOptions] = _ref10;
|
|
104
122
|
const selectedOptions = $selectedOptions.toArray().map(_index.extractOptionFromElement);
|
|
105
123
|
const selectableSourceOptions = $selectableSourceOptions.toArray().map(_index.extractOptionFromElement);
|
|
106
124
|
const allOptionsWithoutSelected = win.options.filter(option => {
|
|
107
|
-
return !selectedOptions.find(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
125
|
+
return !selectedOptions.find(_ref11 => {
|
|
126
|
+
let {
|
|
127
|
+
label,
|
|
128
|
+
value
|
|
129
|
+
} = _ref11;
|
|
130
|
+
return option.label === label && option.value === value;
|
|
131
|
+
});
|
|
111
132
|
});
|
|
112
133
|
expect(allOptionsWithoutSelected).to.eql(selectableSourceOptions);
|
|
113
134
|
});
|
|
@@ -116,19 +137,24 @@ var _index = require("../common/index.js");
|
|
|
116
137
|
cy.get('{transfer-sourceoptions} {transferoption}').should('not.exist');
|
|
117
138
|
});
|
|
118
139
|
(0, _steps.Then)('all items removed from options list should be visible in the selected list', () => {
|
|
119
|
-
cy.all(() => cy.get('@itemsToBeSelected'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(
|
|
140
|
+
cy.all(() => cy.get('@itemsToBeSelected'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(_ref12 => {
|
|
141
|
+
let [itemsToBeSelected, $selectedOptions] = _ref12;
|
|
120
142
|
const selectedOptions = $selectedOptions.toArray().map(_index.extractOptionFromElement);
|
|
121
143
|
const allSelected = itemsToBeSelected.every(option => {
|
|
122
|
-
return selectedOptions.find(
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
144
|
+
return selectedOptions.find(_ref13 => {
|
|
145
|
+
let {
|
|
146
|
+
label,
|
|
147
|
+
value
|
|
148
|
+
} = _ref13;
|
|
149
|
+
return option.label === label && option.value === value;
|
|
150
|
+
});
|
|
126
151
|
});
|
|
127
152
|
expect(allSelected).to.equal(true);
|
|
128
153
|
});
|
|
129
154
|
});
|
|
130
155
|
(0, _steps.Then)('the transferred items should be appended to the selected list in the order they were displayed in the options list', () => {
|
|
131
|
-
cy.all(() => cy.get('@itemsToBeSelected'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(
|
|
156
|
+
cy.all(() => cy.get('@itemsToBeSelected'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(_ref14 => {
|
|
157
|
+
let [itemsToBeSelected, $selectedOptions] = _ref14;
|
|
132
158
|
const selectedOptions = $selectedOptions.toArray().map(_index.extractOptionFromElement);
|
|
133
159
|
const previouslySelectedSubset = selectedOptions.slice(-1 * itemsToBeSelected.length);
|
|
134
160
|
expect(itemsToBeSelected).to.eql(previouslySelectedSubset);
|
|
@@ -138,19 +164,24 @@ var _index = require("../common/index.js");
|
|
|
138
164
|
cy.get('{transfer-pickedoptions} {transferoption}').should('not.exist');
|
|
139
165
|
});
|
|
140
166
|
(0, _steps.Then)('all items removed from selected list should be visible in the options list', () => {
|
|
141
|
-
cy.all(() => cy.get('@itemsToBeDeselected'), () => cy.get('{transfer-sourceoptions} {transferoption}')).should(
|
|
167
|
+
cy.all(() => cy.get('@itemsToBeDeselected'), () => cy.get('{transfer-sourceoptions} {transferoption}')).should(_ref15 => {
|
|
168
|
+
let [itemsToBeDeselected, $selectableSourceOptions] = _ref15;
|
|
142
169
|
const selectableSourceOptions = $selectableSourceOptions.toArray().map(_index.extractOptionFromElement);
|
|
143
170
|
const allSelectable = itemsToBeDeselected.every(option => {
|
|
144
|
-
return selectableSourceOptions.find(
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
171
|
+
return selectableSourceOptions.find(_ref16 => {
|
|
172
|
+
let {
|
|
173
|
+
label,
|
|
174
|
+
value
|
|
175
|
+
} = _ref16;
|
|
176
|
+
return option.label === label && option.value === value;
|
|
177
|
+
});
|
|
148
178
|
});
|
|
149
179
|
expect(allSelectable).to.equal(true);
|
|
150
180
|
});
|
|
151
181
|
});
|
|
152
182
|
(0, _steps.Then)('the transferred items should be appended to the selected list in the order they were displayed in the options list', () => {
|
|
153
|
-
cy.all(() => cy.get('@itemsToBeSelected'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(
|
|
183
|
+
cy.all(() => cy.get('@itemsToBeSelected'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(_ref17 => {
|
|
184
|
+
let [itemsToBeSelected, $selectedOptions] = _ref17;
|
|
154
185
|
const selectedOptions = $selectedOptions.toArray().map(_index.extractOptionFromElement);
|
|
155
186
|
const previouslySelectedSubset = selectedOptions.slice(-1 * itemsToBeSelected.length);
|
|
156
187
|
expect(itemsToBeSelected).to.eql(previouslySelectedSubset);
|
|
@@ -159,7 +190,8 @@ var _index = require("../common/index.js");
|
|
|
159
190
|
(0, _steps.Then)('the options list items should be ordered in the original order', () => {
|
|
160
191
|
cy.all(() => cy.window(), () => cy.get('{transfer-sourceoptions} {transferoption}'), () => cy.get('{transfer-pickedoptions}').then($pickedOptions => {
|
|
161
192
|
return $pickedOptions.find((0, _parseSelectorWithDataTest.parseSelectorWithDataTest)('{transferoption}'));
|
|
162
|
-
})).should(
|
|
193
|
+
})).should(_ref18 => {
|
|
194
|
+
let [win, $selectableSourceOptions, $pickedOptions] = _ref18;
|
|
163
195
|
const pickedPlainOptions = $pickedOptions.toArray().map(_index.extractOptionFromElement);
|
|
164
196
|
const originalOrderWithoutSelected = win.options.filter(originalOption => {
|
|
165
197
|
return !pickedPlainOptions.find(pickedPlainOption => pickedPlainOption.value === originalOption.value && pickedPlainOption.label === originalOption.label);
|
|
@@ -169,21 +201,24 @@ var _index = require("../common/index.js");
|
|
|
169
201
|
});
|
|
170
202
|
});
|
|
171
203
|
(0, _steps.Then)('the item should be removed from its options list', () => {
|
|
172
|
-
cy.all(() => cy.get('@doubleClickedPlainOption'), () => cy.get('{transfer-sourceoptions} {transferoption}')).should(
|
|
204
|
+
cy.all(() => cy.get('@doubleClickedPlainOption'), () => cy.get('{transfer-sourceoptions} {transferoption}')).should(_ref19 => {
|
|
205
|
+
let [doubleClickedPlainOption, $sourceOptions] = _ref19;
|
|
173
206
|
const sourcePlainOptions = $sourceOptions.toArray().map(_index.extractOptionFromElement);
|
|
174
207
|
const found = sourcePlainOptions.find(sourcePlainOption => sourcePlainOption.value === doubleClickedPlainOption.value && sourcePlainOption.label === doubleClickedPlainOption.label);
|
|
175
208
|
expect(found).to.not.equal(true);
|
|
176
209
|
});
|
|
177
210
|
});
|
|
178
211
|
(0, _steps.Then)('the item should be visible at the bottom of the selected list', () => {
|
|
179
|
-
cy.all(() => cy.get('@doubleClickedPlainOption'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(
|
|
212
|
+
cy.all(() => cy.get('@doubleClickedPlainOption'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(_ref20 => {
|
|
213
|
+
let [doubleClickedPlainOption, $pickedOptions] = _ref20;
|
|
180
214
|
const lastSourcePlainOption = $pickedOptions.last().toArray().map(_index.extractOptionFromElement).pop();
|
|
181
215
|
const doubleClickedOptionIsLast = lastSourcePlainOption.value === doubleClickedPlainOption.value && lastSourcePlainOption.label === doubleClickedPlainOption.label;
|
|
182
216
|
expect(doubleClickedOptionIsLast).to.equal(true);
|
|
183
217
|
});
|
|
184
218
|
});
|
|
185
219
|
(0, _steps.Then)('the item should be removed from the selected list', () => {
|
|
186
|
-
cy.all(() => cy.get('@doubleClickedPlainOption'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(
|
|
220
|
+
cy.all(() => cy.get('@doubleClickedPlainOption'), () => cy.get('{transfer-pickedoptions} {transferoption}')).should(_ref21 => {
|
|
221
|
+
let [doubleClickedPlainOption, $pickedOptions] = _ref21;
|
|
187
222
|
const pickedPlainOptions = $pickedOptions.toArray().map(_index.extractOptionFromElement);
|
|
188
223
|
const found = pickedPlainOptions.find(sourcePlainOption => sourcePlainOption.value === doubleClickedPlainOption.value && sourcePlainOption.label === doubleClickedPlainOption.label);
|
|
189
224
|
expect(found).to.not.equal(true);
|
package/build/cjs/filter.js
CHANGED
|
@@ -19,29 +19,32 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
22
|
-
const Filter =
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
22
|
+
const Filter = _ref => {
|
|
23
|
+
let {
|
|
24
|
+
dataTest,
|
|
25
|
+
filter,
|
|
26
|
+
onChange,
|
|
27
|
+
label,
|
|
28
|
+
placeholder
|
|
29
|
+
} = _ref;
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
31
|
+
"data-test": dataTest,
|
|
32
|
+
className: _style.default.dynamic([["3679907342", [_uiConstants.spacers.dp8, _uiConstants.spacers.dp8]]])
|
|
33
|
+
}, /*#__PURE__*/_react.default.createElement(_field.Field, {
|
|
34
|
+
label: label,
|
|
35
|
+
name: dataTest,
|
|
36
|
+
dataTest: "".concat(dataTest, "-field")
|
|
37
|
+
}, /*#__PURE__*/_react.default.createElement(_input.Input, {
|
|
38
|
+
dataTest: "".concat(dataTest, "-input"),
|
|
39
|
+
type: "search",
|
|
40
|
+
placeholder: placeholder,
|
|
41
|
+
value: filter,
|
|
42
|
+
onChange: onChange
|
|
43
|
+
})), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
44
|
+
id: "3679907342",
|
|
45
|
+
dynamic: [_uiConstants.spacers.dp8, _uiConstants.spacers.dp8]
|
|
46
|
+
}, ["div.__jsx-style-dynamic-selector{padding-bottom:".concat(_uiConstants.spacers.dp8, ";}"), "div.__jsx-style-dynamic-selector:first-child{padding-top:".concat(_uiConstants.spacers.dp8, ";}")]));
|
|
47
|
+
};
|
|
45
48
|
|
|
46
49
|
exports.Filter = Filter;
|
|
47
50
|
Filter.propTypes = {
|
package/build/cjs/icons.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.IconRemoveIndividual = exports.IconRemoveAll = exports.IconMoveUp = exports.IconMoveDown = exports.IconAddIndividual = exports.IconAddAll = void 0;
|
|
7
7
|
|
|
8
8
|
var _style = _interopRequireDefault(require("styled-jsx/style"));
|
|
9
9
|
|
|
@@ -18,31 +18,34 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
18
18
|
const centerButtonStyles = ["svg.jsx-114231192{min-width:20px;}"];
|
|
19
19
|
centerButtonStyles.__hash = "114231192";
|
|
20
20
|
|
|
21
|
-
const IconAddAll =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
},
|
|
21
|
+
const IconAddAll = _ref => {
|
|
22
|
+
let {
|
|
23
|
+
dataTest,
|
|
24
|
+
disabled
|
|
25
|
+
} = _ref;
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
+
width: "16",
|
|
29
|
+
height: "16",
|
|
30
|
+
viewBox: "0 0 16 16",
|
|
31
|
+
"data-test": dataTest,
|
|
32
|
+
fill: disabled ? _uiConstants.theme.disabled : '#404B5A',
|
|
33
|
+
className: "jsx-".concat(centerButtonStyles.__hash)
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement("g", {
|
|
35
|
+
fillRule: "evenodd",
|
|
36
|
+
className: "jsx-".concat(centerButtonStyles.__hash)
|
|
37
|
+
}, /*#__PURE__*/_react.default.createElement("polygon", {
|
|
38
|
+
fillRule: "nonzero",
|
|
39
|
+
points: "6 2 4.94 3.06 9.13 7.25 0 7.25 0 8.75 9.13 8.75 4.94 12.94 6 14 12 8",
|
|
40
|
+
className: "jsx-".concat(centerButtonStyles.__hash)
|
|
41
|
+
}), /*#__PURE__*/_react.default.createElement("polygon", {
|
|
42
|
+
fillRule: "nonzero",
|
|
43
|
+
points: "10 2 8.94 3.06 13.13 7.25 13.9 8 13.13 8.75 8.94 12.94 10 14 16 8",
|
|
44
|
+
className: "jsx-".concat(centerButtonStyles.__hash)
|
|
45
|
+
})), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
46
|
+
id: centerButtonStyles.__hash
|
|
47
|
+
}, centerButtonStyles));
|
|
48
|
+
};
|
|
46
49
|
|
|
47
50
|
exports.IconAddAll = IconAddAll;
|
|
48
51
|
IconAddAll.propTypes = {
|
|
@@ -50,23 +53,26 @@ IconAddAll.propTypes = {
|
|
|
50
53
|
disabled: _propTypes.default.bool
|
|
51
54
|
};
|
|
52
55
|
|
|
53
|
-
const IconAddIndividual =
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
},
|
|
56
|
+
const IconAddIndividual = _ref2 => {
|
|
57
|
+
let {
|
|
58
|
+
dataTest,
|
|
59
|
+
disabled
|
|
60
|
+
} = _ref2;
|
|
61
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
62
|
+
fill: disabled ? _uiConstants.theme.disabled : '#404B5A',
|
|
63
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
64
|
+
width: "16",
|
|
65
|
+
height: "16",
|
|
66
|
+
viewBox: "0 0 16 16",
|
|
67
|
+
"data-test": dataTest,
|
|
68
|
+
className: "jsx-".concat(centerButtonStyles.__hash)
|
|
69
|
+
}, /*#__PURE__*/_react.default.createElement("polygon", {
|
|
70
|
+
points: "8 2 6.94 3.06 11.13 7.25 2 7.25 2 8.75 11.13 8.75 6.94 12.94 8 14 14 8",
|
|
71
|
+
className: "jsx-".concat(centerButtonStyles.__hash)
|
|
72
|
+
}), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
73
|
+
id: centerButtonStyles.__hash
|
|
74
|
+
}, centerButtonStyles));
|
|
75
|
+
};
|
|
70
76
|
|
|
71
77
|
exports.IconAddIndividual = IconAddIndividual;
|
|
72
78
|
IconAddIndividual.propTypes = {
|
|
@@ -74,33 +80,36 @@ IconAddIndividual.propTypes = {
|
|
|
74
80
|
disabled: _propTypes.default.bool
|
|
75
81
|
};
|
|
76
82
|
|
|
77
|
-
const IconRemoveAll =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
},
|
|
83
|
+
const IconRemoveAll = _ref3 => {
|
|
84
|
+
let {
|
|
85
|
+
dataTest,
|
|
86
|
+
disabled
|
|
87
|
+
} = _ref3;
|
|
88
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
89
|
+
fill: disabled ? _uiConstants.theme.disabled : '#404B5A',
|
|
90
|
+
width: "16px",
|
|
91
|
+
height: "16px",
|
|
92
|
+
viewBox: "0 0 16 16",
|
|
93
|
+
"data-test": dataTest,
|
|
94
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
95
|
+
className: "jsx-".concat(centerButtonStyles.__hash)
|
|
96
|
+
}, /*#__PURE__*/_react.default.createElement("g", {
|
|
97
|
+
fillRule: "evenodd",
|
|
98
|
+
className: "jsx-".concat(centerButtonStyles.__hash)
|
|
99
|
+
}, /*#__PURE__*/_react.default.createElement("polygon", {
|
|
100
|
+
fillRule: "nonzero",
|
|
101
|
+
points: "10 2 8.94 3.06 13.13 7.25 4 7.25 4 8.75 13.13 8.75 8.94 12.94 10 14 16 8",
|
|
102
|
+
transform: "matrix(-1 0 0 1 20 0)",
|
|
103
|
+
className: "jsx-".concat(centerButtonStyles.__hash)
|
|
104
|
+
}), /*#__PURE__*/_react.default.createElement("polygon", {
|
|
105
|
+
fillRule: "nonzero",
|
|
106
|
+
points: "1.06 2 0 3.06 4.19 7.25 4.96 8 4.19 8.75 0 12.94 1.06 14 7.06 8",
|
|
107
|
+
transform: "matrix(-1 0 0 1 7.06 0)",
|
|
108
|
+
className: "jsx-".concat(centerButtonStyles.__hash)
|
|
109
|
+
})), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
110
|
+
id: centerButtonStyles.__hash
|
|
111
|
+
}, centerButtonStyles));
|
|
112
|
+
};
|
|
104
113
|
|
|
105
114
|
exports.IconRemoveAll = IconRemoveAll;
|
|
106
115
|
IconRemoveAll.propTypes = {
|
|
@@ -108,24 +117,27 @@ IconRemoveAll.propTypes = {
|
|
|
108
117
|
disabled: _propTypes.default.bool
|
|
109
118
|
};
|
|
110
119
|
|
|
111
|
-
const IconRemoveIndividual =
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
},
|
|
120
|
+
const IconRemoveIndividual = _ref4 => {
|
|
121
|
+
let {
|
|
122
|
+
dataTest,
|
|
123
|
+
disabled
|
|
124
|
+
} = _ref4;
|
|
125
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
126
|
+
fill: disabled ? _uiConstants.theme.disabled : '#404B5A',
|
|
127
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
128
|
+
width: "16",
|
|
129
|
+
height: "16",
|
|
130
|
+
viewBox: "0 0 16 16",
|
|
131
|
+
"data-test": dataTest,
|
|
132
|
+
className: "jsx-".concat(centerButtonStyles.__hash)
|
|
133
|
+
}, /*#__PURE__*/_react.default.createElement("polygon", {
|
|
134
|
+
points: "8 2 6.94 3.06 11.13 7.25 2 7.25 2 8.75 11.13 8.75 6.94 12.94 8 14 14 8",
|
|
135
|
+
transform: "matrix(-1 0 0 1 16 0)",
|
|
136
|
+
className: "jsx-".concat(centerButtonStyles.__hash)
|
|
137
|
+
}), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
138
|
+
id: centerButtonStyles.__hash
|
|
139
|
+
}, centerButtonStyles));
|
|
140
|
+
};
|
|
129
141
|
|
|
130
142
|
exports.IconRemoveIndividual = IconRemoveIndividual;
|
|
131
143
|
IconRemoveIndividual.propTypes = {
|
|
@@ -133,20 +145,23 @@ IconRemoveIndividual.propTypes = {
|
|
|
133
145
|
disabled: _propTypes.default.bool
|
|
134
146
|
};
|
|
135
147
|
|
|
136
|
-
const IconMoveDown =
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
const IconMoveDown = _ref5 => {
|
|
149
|
+
let {
|
|
150
|
+
dataTest,
|
|
151
|
+
disabled
|
|
152
|
+
} = _ref5;
|
|
153
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
154
|
+
fill: disabled ? _uiConstants.theme.disabled : '#404B5A',
|
|
155
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
156
|
+
width: "16",
|
|
157
|
+
height: "16",
|
|
158
|
+
viewBox: "0 0 16 16",
|
|
159
|
+
"data-test": dataTest
|
|
160
|
+
}, /*#__PURE__*/_react.default.createElement("polygon", {
|
|
161
|
+
points: "8 2 6.94 3.06 11.13 7.25 2 7.25 2 8.75 11.13 8.75 6.94 12.94 8 14 14 8",
|
|
162
|
+
transform: "matrix(0 1 1 0 0 0)"
|
|
163
|
+
}));
|
|
164
|
+
};
|
|
150
165
|
|
|
151
166
|
exports.IconMoveDown = IconMoveDown;
|
|
152
167
|
IconMoveDown.propTypes = {
|
|
@@ -154,20 +169,23 @@ IconMoveDown.propTypes = {
|
|
|
154
169
|
disabled: _propTypes.default.bool
|
|
155
170
|
};
|
|
156
171
|
|
|
157
|
-
const IconMoveUp =
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
172
|
+
const IconMoveUp = _ref6 => {
|
|
173
|
+
let {
|
|
174
|
+
dataTest,
|
|
175
|
+
disabled
|
|
176
|
+
} = _ref6;
|
|
177
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
178
|
+
fill: disabled ? _uiConstants.theme.disabled : '#404B5A',
|
|
179
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
180
|
+
width: "16",
|
|
181
|
+
height: "16",
|
|
182
|
+
viewBox: "0 0 16 16",
|
|
183
|
+
"data-test": dataTest
|
|
184
|
+
}, /*#__PURE__*/_react.default.createElement("polygon", {
|
|
185
|
+
points: "8 2 6.94 3.06 11.13 7.25 2 7.25 2 8.75 11.13 8.75 6.94 12.94 8 14 14 8",
|
|
186
|
+
transform: "rotate(-90 8 8)"
|
|
187
|
+
}));
|
|
188
|
+
};
|
|
171
189
|
|
|
172
190
|
exports.IconMoveUp = IconMoveUp;
|
|
173
191
|
IconMoveUp.propTypes = {
|
package/build/cjs/left-footer.js
CHANGED
|
@@ -17,16 +17,19 @@ var _index = require("./common/index.js");
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
const LeftFooter =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
const LeftFooter = _ref => {
|
|
21
|
+
let {
|
|
22
|
+
children,
|
|
23
|
+
dataTest
|
|
24
|
+
} = _ref;
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
26
|
+
"data-test": dataTest,
|
|
27
|
+
className: _style.default.dynamic([["3629116366", [_index.borderColor, _uiConstants.spacers.dp8]]])
|
|
28
|
+
}, children, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
29
|
+
id: "3629116366",
|
|
30
|
+
dynamic: [_index.borderColor, _uiConstants.spacers.dp8]
|
|
31
|
+
}, ["div.__jsx-style-dynamic-selector{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;border-top:1px solid ".concat(borderColor, ";padding:0 ").concat(_uiConstants.spacers.dp8, ";}")]));
|
|
32
|
+
};
|
|
30
33
|
|
|
31
34
|
exports.LeftFooter = LeftFooter;
|
|
32
35
|
LeftFooter.propTypes = {
|
package/build/cjs/left-header.js
CHANGED
|
@@ -17,16 +17,19 @@ var _index = require("./common/index.js");
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
const LeftHeader =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
const LeftHeader = _ref => {
|
|
21
|
+
let {
|
|
22
|
+
children,
|
|
23
|
+
dataTest
|
|
24
|
+
} = _ref;
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
26
|
+
"data-test": dataTest,
|
|
27
|
+
className: _style.default.dynamic([["2175954399", [_index.borderColor, _uiConstants.spacers.dp8]]])
|
|
28
|
+
}, children, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
29
|
+
id: "2175954399",
|
|
30
|
+
dynamic: [_index.borderColor, _uiConstants.spacers.dp8]
|
|
31
|
+
}, ["div.__jsx-style-dynamic-selector{border-bottom:1px solid ".concat(borderColor, ";-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;padding:0 ").concat(_uiConstants.spacers.dp8, ";}")]));
|
|
32
|
+
};
|
|
30
33
|
|
|
31
34
|
exports.LeftHeader = LeftHeader;
|
|
32
35
|
LeftHeader.propTypes = {
|