@cloudscape-design/components-themeable 3.0.269 → 3.0.271
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/app-layout/test-classes/styles.scss +4 -0
- package/lib/internal/scss/collection-preferences/content-display/sortable-item.scss +80 -0
- package/lib/internal/scss/collection-preferences/content-display/styles.scss +33 -0
- package/lib/internal/scss/collection-preferences/styles.scss +1 -0
- package/lib/internal/scss/collection-preferences/visible-content.scss +1 -0
- package/lib/internal/scss/internal/components/token-list/styles.scss +3 -1
- package/lib/internal/scss/internal/drag-handle/styles.scss +18 -0
- package/lib/internal/scss/internal/handle/styles.scss +31 -0
- package/lib/internal/scss/table/body-cell/styles.scss +4 -159
- package/lib/internal/scss/table/header-cell/styles.scss +160 -0
- package/lib/internal/template/THIRD-PARTY-LICENSES +31 -0
- package/lib/internal/template/app-layout/drawer/index.d.ts +1 -1
- package/lib/internal/template/app-layout/drawer/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/drawer/index.js +3 -3
- package/lib/internal/template/app-layout/drawer/index.js.map +1 -1
- package/lib/internal/template/app-layout/drawer/interfaces.d.ts +17 -3
- package/lib/internal/template/app-layout/drawer/interfaces.d.ts.map +1 -1
- package/lib/internal/template/app-layout/drawer/interfaces.js.map +1 -1
- package/lib/internal/template/app-layout/drawer/resizable-drawer.d.ts.map +1 -1
- package/lib/internal/template/app-layout/drawer/resizable-drawer.js +6 -4
- package/lib/internal/template/app-layout/drawer/resizable-drawer.js.map +1 -1
- package/lib/internal/template/app-layout/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/index.js +47 -31
- package/lib/internal/template/app-layout/index.js.map +1 -1
- package/lib/internal/template/app-layout/mobile-toolbar/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/mobile-toolbar/index.js +4 -1
- package/lib/internal/template/app-layout/mobile-toolbar/index.js.map +1 -1
- package/lib/internal/template/app-layout/test-classes/styles.css.js +19 -18
- package/lib/internal/template/app-layout/test-classes/styles.scoped.css +22 -18
- package/lib/internal/template/app-layout/test-classes/styles.selectors.js +19 -18
- package/lib/internal/template/app-layout/visual-refresh/drawers.d.ts +1 -0
- package/lib/internal/template/app-layout/visual-refresh/drawers.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/drawers.js +2 -2
- package/lib/internal/template/app-layout/visual-refresh/drawers.js.map +1 -1
- package/lib/internal/template/attribute-editor/row.d.ts.map +1 -1
- package/lib/internal/template/attribute-editor/row.js +1 -3
- package/lib/internal/template/attribute-editor/row.js.map +1 -1
- package/lib/internal/template/collection-preferences/content-display/index.d.ts +9 -0
- package/lib/internal/template/collection-preferences/content-display/index.d.ts.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/index.js +55 -0
- package/lib/internal/template/collection-preferences/content-display/index.js.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/defaults.d.ts +3 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/defaults.d.ts.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/defaults.js +9 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/defaults.js.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/index.d.ts +19 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/index.d.ts.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/index.js +126 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/index.js.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/events.d.ts +11 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/events.d.ts.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/events.js +14 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/events.js.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/listeners.d.ts +8 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/listeners.d.ts.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/listeners.js +17 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/listeners.js.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/scroll.d.ts +30 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/scroll.d.ts.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/scroll.js +95 -0
- package/lib/internal/template/collection-preferences/content-display/keyboard-sensor/utilities/scroll.js.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/sortable-item.d.ts +9 -0
- package/lib/internal/template/collection-preferences/content-display/sortable-item.d.ts.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/sortable-item.js +52 -0
- package/lib/internal/template/collection-preferences/content-display/sortable-item.js.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/styles.css.js +20 -0
- package/lib/internal/template/collection-preferences/content-display/styles.scoped.css +303 -0
- package/lib/internal/template/collection-preferences/content-display/styles.selectors.js +21 -0
- package/lib/internal/template/collection-preferences/content-display/use-drag-and-drop-reorder.d.ts +14 -0
- package/lib/internal/template/collection-preferences/content-display/use-drag-and-drop-reorder.d.ts.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/use-drag-and-drop-reorder.js +144 -0
- package/lib/internal/template/collection-preferences/content-display/use-drag-and-drop-reorder.js.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/use-live-announcements.d.ts +12 -0
- package/lib/internal/template/collection-preferences/content-display/use-live-announcements.d.ts.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/use-live-announcements.js +40 -0
- package/lib/internal/template/collection-preferences/content-display/use-live-announcements.js.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/utils.d.ts +9 -0
- package/lib/internal/template/collection-preferences/content-display/utils.d.ts.map +1 -0
- package/lib/internal/template/collection-preferences/content-display/utils.js +7 -0
- package/lib/internal/template/collection-preferences/content-display/utils.js.map +1 -0
- package/lib/internal/template/collection-preferences/index.d.ts +1 -1
- package/lib/internal/template/collection-preferences/index.d.ts.map +1 -1
- package/lib/internal/template/collection-preferences/index.js +15 -9
- package/lib/internal/template/collection-preferences/index.js.map +1 -1
- package/lib/internal/template/collection-preferences/interfaces.d.ts +47 -1
- package/lib/internal/template/collection-preferences/interfaces.d.ts.map +1 -1
- package/lib/internal/template/collection-preferences/interfaces.js.map +1 -1
- package/lib/internal/template/collection-preferences/styles.css.js +36 -21
- package/lib/internal/template/collection-preferences/styles.scoped.css +326 -22
- package/lib/internal/template/collection-preferences/styles.selectors.js +36 -21
- package/lib/internal/template/collection-preferences/utils.d.ts +1 -1
- package/lib/internal/template/collection-preferences/utils.d.ts.map +1 -1
- package/lib/internal/template/collection-preferences/utils.js +20 -9
- package/lib/internal/template/collection-preferences/utils.js.map +1 -1
- package/lib/internal/template/internal/components/token-list/styles.css.js +9 -9
- package/lib/internal/template/internal/components/token-list/styles.scoped.css +22 -21
- package/lib/internal/template/internal/components/token-list/styles.selectors.js +9 -9
- package/lib/internal/template/internal/drag-handle/index.d.ts +9 -0
- package/lib/internal/template/internal/drag-handle/index.d.ts.map +1 -0
- package/lib/internal/template/internal/drag-handle/index.js +13 -0
- package/lib/internal/template/internal/drag-handle/index.js.map +1 -0
- package/lib/internal/template/internal/drag-handle/styles.css.js +6 -0
- package/lib/internal/template/internal/drag-handle/styles.scoped.css +13 -0
- package/lib/internal/template/internal/drag-handle/styles.selectors.js +7 -0
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/handle/index.d.ts +3 -0
- package/lib/internal/template/internal/handle/index.d.ts.map +1 -0
- package/lib/internal/template/internal/handle/index.js +14 -0
- package/lib/internal/template/internal/handle/index.js.map +1 -0
- package/lib/internal/template/internal/handle/styles.css.js +7 -0
- package/lib/internal/template/internal/handle/styles.scoped.css +125 -0
- package/lib/internal/template/internal/handle/styles.selectors.js +8 -0
- package/lib/internal/template/package.json +3 -0
- package/lib/internal/template/table/body-cell/styles.css.js +23 -40
- package/lib/internal/template/table/body-cell/styles.scoped.css +59 -220
- package/lib/internal/template/table/body-cell/styles.selectors.js +23 -40
- package/lib/internal/template/table/header-cell/index.js +1 -1
- package/lib/internal/template/table/header-cell/index.js.map +1 -1
- package/lib/internal/template/table/header-cell/styles.css.js +24 -0
- package/lib/internal/template/table/header-cell/styles.scoped.css +252 -0
- package/lib/internal/template/table/header-cell/styles.selectors.js +25 -0
- package/lib/internal/template/table/interfaces.d.ts +16 -3
- package/lib/internal/template/table/interfaces.d.ts.map +1 -1
- package/lib/internal/template/table/interfaces.js.map +1 -1
- package/lib/internal/template/table/internal.d.ts.map +1 -1
- package/lib/internal/template/table/internal.js +17 -9
- package/lib/internal/template/table/internal.js.map +1 -1
- package/lib/internal/template/table/thead.d.ts.map +1 -1
- package/lib/internal/template/table/thead.js +4 -7
- package/lib/internal/template/table/thead.js.map +1 -1
- package/lib/internal/template/table/use-column-widths.js +1 -1
- package/lib/internal/template/table/use-column-widths.js.map +1 -1
- package/lib/internal/template/table/utils.d.ts +5 -0
- package/lib/internal/template/table/utils.d.ts.map +1 -1
- package/lib/internal/template/table/utils.js +23 -0
- package/lib/internal/template/table/utils.js.map +1 -1
- package/lib/internal/template/test-utils/dom/app-layout/index.d.ts +6 -0
- package/lib/internal/template/test-utils/dom/app-layout/index.js +18 -0
- package/lib/internal/template/test-utils/dom/app-layout/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/collection-preferences/content-display-preference.d.ts +37 -0
- package/lib/internal/template/test-utils/dom/collection-preferences/content-display-preference.js +62 -0
- package/lib/internal/template/test-utils/dom/collection-preferences/content-display-preference.js.map +1 -0
- package/lib/internal/template/test-utils/dom/collection-preferences/index.d.ts +2 -0
- package/lib/internal/template/test-utils/dom/collection-preferences/index.js +4 -0
- package/lib/internal/template/test-utils/dom/collection-preferences/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/table/index.js +10 -9
- package/lib/internal/template/test-utils/dom/table/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/app-layout/index.d.ts +6 -0
- package/lib/internal/template/test-utils/selectors/app-layout/index.js +18 -0
- package/lib/internal/template/test-utils/selectors/app-layout/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/collection-preferences/content-display-preference.d.ts +37 -0
- package/lib/internal/template/test-utils/selectors/collection-preferences/content-display-preference.js +62 -0
- package/lib/internal/template/test-utils/selectors/collection-preferences/content-display-preference.js.map +1 -0
- package/lib/internal/template/test-utils/selectors/collection-preferences/index.d.ts +2 -0
- package/lib/internal/template/test-utils/selectors/collection-preferences/index.js +4 -0
- package/lib/internal/template/test-utils/selectors/collection-preferences/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/table/index.js +10 -9
- package/lib/internal/template/test-utils/selectors/table/index.js.map +1 -1
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
- package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.js +5 -4
- package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
- package/lib/internal/template/top-navigation/parts/utility.js +1 -1
- package/lib/internal/template/top-navigation/parts/utility.js.map +1 -1
- package/package.json +1 -1
- package/lib/internal/template/table/table-wrapper.d.ts +0 -13
- package/lib/internal/template/table/table-wrapper.d.ts.map +0 -1
- package/lib/internal/template/table/table-wrapper.js +0 -15
- package/lib/internal/template/table/table-wrapper.js.map +0 -1
|
@@ -4,9 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
6
|
const styles_selectors_js_1 = require("../../../table/styles.selectors.js");
|
|
7
|
-
const styles_selectors_js_2 = require("../../../table/
|
|
8
|
-
const styles_selectors_js_3 = require("../../../table/
|
|
9
|
-
const styles_selectors_js_4 = require("../../../table/
|
|
7
|
+
const styles_selectors_js_2 = require("../../../table/header-cell/styles.selectors.js");
|
|
8
|
+
const styles_selectors_js_3 = require("../../../table/body-cell/styles.selectors.js");
|
|
9
|
+
const styles_selectors_js_4 = require("../../../table/selection-control/styles.selectors.js");
|
|
10
|
+
const styles_selectors_js_5 = require("../../../table/resizer/styles.selectors.js");
|
|
10
11
|
const collection_preferences_1 = require("../collection-preferences");
|
|
11
12
|
const container_1 = require("../container");
|
|
12
13
|
const pagination_1 = require("../pagination");
|
|
@@ -45,7 +46,7 @@ class TableWrapper extends dom_1.ComponentWrapper {
|
|
|
45
46
|
* @param columnIndex 1-based index of the column containing the resizer.
|
|
46
47
|
*/
|
|
47
48
|
findColumnResizer(columnIndex) {
|
|
48
|
-
return this.findActiveTHead().find(`th:nth-child(${columnIndex}) .${
|
|
49
|
+
return this.findActiveTHead().find(`th:nth-child(${columnIndex}) .${styles_selectors_js_5.default.resizer}`);
|
|
49
50
|
}
|
|
50
51
|
/**
|
|
51
52
|
* Returns a table cell based on given row and column indices.
|
|
@@ -96,10 +97,10 @@ class TableWrapper extends dom_1.ComponentWrapper {
|
|
|
96
97
|
* @param rowIndex 1-based index of the row selection area to return.
|
|
97
98
|
*/
|
|
98
99
|
findRowSelectionArea(rowIndex) {
|
|
99
|
-
return this.findNativeTable().find(`tbody tr:nth-child(${rowIndex}) .${
|
|
100
|
+
return this.findNativeTable().find(`tbody tr:nth-child(${rowIndex}) .${styles_selectors_js_4.default.root}`);
|
|
100
101
|
}
|
|
101
102
|
findSelectAllTrigger() {
|
|
102
|
-
return this.findActiveTHead().find(`.${
|
|
103
|
+
return this.findActiveTHead().find(`.${styles_selectors_js_4.default.root}`);
|
|
103
104
|
}
|
|
104
105
|
findTextFilter() {
|
|
105
106
|
return this.findComponent(`.${styles_selectors_js_1.default['tools-filtering']}`, text_filter_1.default);
|
|
@@ -124,14 +125,14 @@ class TableWrapper extends dom_1.ComponentWrapper {
|
|
|
124
125
|
*/
|
|
125
126
|
findEditCellButton(rowIndex, columnIndex) {
|
|
126
127
|
var _a, _b;
|
|
127
|
-
return (_b = (_a = this.findBodyCell(rowIndex, columnIndex)) === null || _a === void 0 ? void 0 : _a.findByClassName(
|
|
128
|
+
return (_b = (_a = this.findBodyCell(rowIndex, columnIndex)) === null || _a === void 0 ? void 0 : _a.findByClassName(styles_selectors_js_3.default['body-cell-editor'])) !== null && _b !== void 0 ? _b : null;
|
|
128
129
|
}
|
|
129
130
|
findEditingCell() {
|
|
130
|
-
return this.findNativeTable().findByClassName(
|
|
131
|
+
return this.findNativeTable().findByClassName(styles_selectors_js_3.default['body-cell-edit-active']);
|
|
131
132
|
}
|
|
132
133
|
_findEditingCellControls() {
|
|
133
134
|
var _a, _b;
|
|
134
|
-
return (_b = (_a = this.findEditingCell()) === null || _a === void 0 ? void 0 : _a.findByClassName(
|
|
135
|
+
return (_b = (_a = this.findEditingCell()) === null || _a === void 0 ? void 0 : _a.findByClassName(styles_selectors_js_3.default['body-cell-editor-controls'])) !== null && _b !== void 0 ? _b : null;
|
|
135
136
|
}
|
|
136
137
|
findEditingCellSaveButton() {
|
|
137
138
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/table/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,4EAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/table/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,4EAAwD;AACxD,wFAA8E;AAC9E,sFAA0E;AAC1E,8FAAmF;AACnF,oFAAuE;AACvE,sEAAqE;AACrE,4CAA4C;AAC5C,8CAA8C;AAC9C,gDAA+C;AAC/C,wDAAuD;AAEvD,MAAqB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
12
12
|
findToolsClose(): ElementWrapper;
|
|
13
13
|
findToolsToggle(): ElementWrapper;
|
|
14
14
|
findSplitPanel(): SplitPanelWrapper;
|
|
15
|
+
findActiveDrawer(): ElementWrapper;
|
|
16
|
+
findActiveDrawerCloseButton(): ElementWrapper;
|
|
17
|
+
findDrawersDesktopTriggersContainer(): ElementWrapper;
|
|
18
|
+
findDrawersMobileTriggersContainer(): ElementWrapper;
|
|
19
|
+
findDrawersTriggers(): import("@cloudscape-design/test-utils-core/selectors").MultiElementWrapper<ElementWrapper>;
|
|
20
|
+
findDrawersSlider(): ElementWrapper;
|
|
15
21
|
}
|
|
@@ -36,6 +36,24 @@ class AppLayoutWrapper extends selectors_1.ComponentWrapper {
|
|
|
36
36
|
findSplitPanel() {
|
|
37
37
|
return this.findComponent(`.${split_panel_1.default.rootSelector}`, split_panel_1.default);
|
|
38
38
|
}
|
|
39
|
+
findActiveDrawer() {
|
|
40
|
+
return this.findByClassName(styles_selectors_js_1.default['active-drawer']);
|
|
41
|
+
}
|
|
42
|
+
findActiveDrawerCloseButton() {
|
|
43
|
+
return this.findByClassName(styles_selectors_js_1.default['active-drawer-close-button']);
|
|
44
|
+
}
|
|
45
|
+
findDrawersDesktopTriggersContainer() {
|
|
46
|
+
return this.findByClassName(styles_selectors_js_1.default['drawers-desktop-triggers-container']);
|
|
47
|
+
}
|
|
48
|
+
findDrawersMobileTriggersContainer() {
|
|
49
|
+
return this.findByClassName(styles_selectors_js_1.default['drawers-mobile-triggers-container']);
|
|
50
|
+
}
|
|
51
|
+
findDrawersTriggers() {
|
|
52
|
+
return this.findAllByClassName(styles_selectors_js_1.default['drawers-trigger']);
|
|
53
|
+
}
|
|
54
|
+
findDrawersSlider() {
|
|
55
|
+
return this.findByClassName(styles_selectors_js_1.default['drawers-slider']);
|
|
56
|
+
}
|
|
39
57
|
}
|
|
40
58
|
exports.default = AppLayoutWrapper;
|
|
41
59
|
AppLayoutWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/app-layout/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,gDAA+C;AAC/C,8FAAkF;AAClF,MAAqB,gBAAiB,SAAQ,4BAAgB;IAE5D,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,UAAU,CAAE,CAAC;IAC1D,CAAC;IACD,oBAAoB;QAClB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,mBAAmB,CAAC,CAAE,CAAC;IACpE,CAAC;IACD,mBAAmB;QACjB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,kBAAkB,CAAC,CAAE,CAAC;IACnE,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,OAAO,CAAE,CAAC;IACvD,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,aAAa,CAAC,CAAC;IAC5D,CAAC;IACD,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,WAAW,CAAC,CAAC;IAC1D,CAAC;IACD,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,KAAK,CAAE,CAAC;IACrD,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,aAAa,CAAC,CAAE,CAAC;IAC9D,CAAC;IACD,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,cAAc,CAAC,CAAE,CAAC;IAC/D,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,qBAAiB,CAAC,YAAY,EAAE,EAAE,qBAAiB,CAAC,CAAC;IACrF,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources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D,2BAA2B;QACzB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,4BAA4B,CAAC,CAAC,CAAC;IAC5E,CAAC;IACD,mCAAmC;QACjC,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,oCAAoC,CAAC,CAAC,CAAC;IACpF,CAAC;IACD,kCAAkC;QAChC,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,mCAAmC,CAAC,CAAC,CAAC;IACnF,CAAC;IACD,mBAAmB;QACjB,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACpE,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAChE,CAAC;;AAjDH,mCAkDC;AAjDQ,6BAAY,GAAG,6BAAc,CAAC,IAAI,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
|
|
2
|
+
import ToggleWrapper from '../toggle';
|
|
3
|
+
export declare class ContentDisplayOptionWrapper extends ComponentWrapper {
|
|
4
|
+
/**
|
|
5
|
+
* Returns the drag handle for the option item.
|
|
6
|
+
*/
|
|
7
|
+
findDragHandle(): ElementWrapper;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the text label displayed in the option item.
|
|
10
|
+
*/
|
|
11
|
+
findLabel(): ElementWrapper;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the visibility toggle for the option item.
|
|
14
|
+
*/
|
|
15
|
+
findVisibilityToggle(): ToggleWrapper;
|
|
16
|
+
}
|
|
17
|
+
export default class ContentDisplayPreferenceWrapper extends ComponentWrapper {
|
|
18
|
+
static rootSelector: string;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the title.
|
|
21
|
+
*/
|
|
22
|
+
findTitle(): ElementWrapper;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the preference description displayed below the title.
|
|
25
|
+
*/
|
|
26
|
+
findDescription(): ElementWrapper;
|
|
27
|
+
/**
|
|
28
|
+
* Returns an option for a given index.
|
|
29
|
+
*
|
|
30
|
+
* @param index 1-based index of the option to return.
|
|
31
|
+
*/
|
|
32
|
+
findOptionByIndex(index: number): ContentDisplayOptionWrapper;
|
|
33
|
+
/**
|
|
34
|
+
* Returns options that the user can reorder.
|
|
35
|
+
*/
|
|
36
|
+
findOptions(): import("@cloudscape-design/test-utils-core/selectors").MultiElementWrapper<ContentDisplayOptionWrapper>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentDisplayOptionWrapper = void 0;
|
|
4
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
5
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
const styles_selectors_js_1 = require("../../../collection-preferences/styles.selectors.js");
|
|
7
|
+
const styles_selectors_js_2 = require("../../../internal/drag-handle/styles.selectors.js");
|
|
8
|
+
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
9
|
+
const toggle_1 = require("../toggle");
|
|
10
|
+
const getClassName = (suffix) => styles_selectors_js_1.default[`content-display-${suffix}`];
|
|
11
|
+
class ContentDisplayOptionWrapper extends selectors_1.ComponentWrapper {
|
|
12
|
+
/**
|
|
13
|
+
* Returns the drag handle for the option item.
|
|
14
|
+
*/
|
|
15
|
+
findDragHandle() {
|
|
16
|
+
return this.findByClassName(styles_selectors_js_2.default.handle);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns the text label displayed in the option item.
|
|
20
|
+
*/
|
|
21
|
+
findLabel() {
|
|
22
|
+
return this.findByClassName(styles_selectors_js_1.default['sortable-item-label']);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns the visibility toggle for the option item.
|
|
26
|
+
*/
|
|
27
|
+
findVisibilityToggle() {
|
|
28
|
+
return this.findComponent(`.${styles_selectors_js_1.default['sortable-item-toggle']}`, toggle_1.default);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.ContentDisplayOptionWrapper = ContentDisplayOptionWrapper;
|
|
32
|
+
class ContentDisplayPreferenceWrapper extends selectors_1.ComponentWrapper {
|
|
33
|
+
/**
|
|
34
|
+
* Returns the title.
|
|
35
|
+
*/
|
|
36
|
+
findTitle() {
|
|
37
|
+
return this.findByClassName(getClassName('title'));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns the preference description displayed below the title.
|
|
41
|
+
*/
|
|
42
|
+
findDescription() {
|
|
43
|
+
return this.findByClassName(getClassName('description'));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns an option for a given index.
|
|
47
|
+
*
|
|
48
|
+
* @param index 1-based index of the option to return.
|
|
49
|
+
*/
|
|
50
|
+
findOptionByIndex(index) {
|
|
51
|
+
return this.findComponent(`.${getClassName('option')}:nth-child(${index})`, ContentDisplayOptionWrapper);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Returns options that the user can reorder.
|
|
55
|
+
*/
|
|
56
|
+
findOptions() {
|
|
57
|
+
return this.findAllByClassName(getClassName('option')).map(wrapper => new ContentDisplayOptionWrapper(wrapper.getElement()));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.default = ContentDisplayPreferenceWrapper;
|
|
61
|
+
ContentDisplayPreferenceWrapper.rootSelector = styles_selectors_js_1.default['content-display'];
|
|
62
|
+
//# sourceMappingURL=content-display-preference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-display-preference.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/collection-preferences/content-display-preference.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,6FAAyE;AACzE,2FAAiF;AACjF,4EAAgG;AAChG,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6 +4,7 @@ import CheckboxWrapper from '../checkbox';
|
|
|
4
4
|
import ModalWrapper from '../modal';
|
|
5
5
|
import VisibleContentPreferenceWrapper from './visible-content-preference';
|
|
6
6
|
import PageSizePreferenceWrapper from './page-size-preference';
|
|
7
|
+
import ContentDisplayPreferenceWrapper from './content-display-preference';
|
|
7
8
|
declare class PreferencesModalWrapper extends ModalWrapper {
|
|
8
9
|
static rootSelector: string;
|
|
9
10
|
findCancelButton(): ButtonWrapper;
|
|
@@ -13,6 +14,7 @@ declare class PreferencesModalWrapper extends ModalWrapper {
|
|
|
13
14
|
findContentDensityPreference(): CheckboxWrapper;
|
|
14
15
|
findPageSizePreference(): PageSizePreferenceWrapper;
|
|
15
16
|
findVisibleContentPreference(): VisibleContentPreferenceWrapper;
|
|
17
|
+
findContentDisplayPreference(): ContentDisplayPreferenceWrapper;
|
|
16
18
|
findCustomPreference(): ElementWrapper;
|
|
17
19
|
}
|
|
18
20
|
export default class CollectionPreferencesWrapper extends ComponentWrapper {
|
|
@@ -9,6 +9,7 @@ const modal_1 = require("../modal");
|
|
|
9
9
|
const visible_content_preference_1 = require("./visible-content-preference");
|
|
10
10
|
const page_size_preference_1 = require("./page-size-preference");
|
|
11
11
|
const styles_selectors_js_1 = require("../../../collection-preferences/styles.selectors.js");
|
|
12
|
+
const content_display_preference_1 = require("./content-display-preference");
|
|
12
13
|
class PreferencesModalWrapper extends modal_1.default {
|
|
13
14
|
findCancelButton() {
|
|
14
15
|
return this.findComponent(`.${styles_selectors_js_1.default['cancel-button']}`, button_1.default);
|
|
@@ -31,6 +32,9 @@ class PreferencesModalWrapper extends modal_1.default {
|
|
|
31
32
|
findVisibleContentPreference() {
|
|
32
33
|
return this.findComponent(`.${visible_content_preference_1.default.rootSelector}`, visible_content_preference_1.default);
|
|
33
34
|
}
|
|
35
|
+
findContentDisplayPreference() {
|
|
36
|
+
return this.findComponent(`.${content_display_preference_1.default.rootSelector}`, content_display_preference_1.default);
|
|
37
|
+
}
|
|
34
38
|
findCustomPreference() {
|
|
35
39
|
return this.findByClassName(styles_selectors_js_1.default.custom);
|
|
36
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/collection-preferences/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAA+G;AAC/G,sCAAsC;AACtC,0CAA0C;AAC1C,oCAAoC;AACpC,6EAA2E;AAC3E,iEAA+D;AAC/D,6FAAyE;AACzE,MAAM,uBAAwB,SAAQ,eAAY;IAEhD,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC1E,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC3E,CAAC;IACD,uBAAuB;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,YAAY,CAAC,EAAE,EAAE,kBAAe,CAAC,CAAC;IACzE,CAAC;IACD,yBAAyB;QACvB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,cAAc,CAAC,EAAE,EAAE,kBAAe,CAAC,CAAC;IAC3E,CAAC;IACD,4BAA4B;QAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,kBAAe,CAAC,CAAC;IAC9E,CAAC;IACD,sBAAsB;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,8BAAyB,CAAC,YAAY,EAAE,EAAE,8BAAyB,CAAC,CAAC;IACrG,CAAC;IACD,4BAA4B;QAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,oCAA+B,CAAC,YAAY,EAAE,EAAE,oCAA+B,CAAC,CAAC;IACjH,CAAC;IACD,oBAAoB;QAClB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/collection-preferences/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAA+G;AAC/G,sCAAsC;AACtC,0CAA0C;AAC1C,oCAAoC;AACpC,6EAA2E;AAC3E,iEAA+D;AAC/D,6FAAyE;AACzE,6EAA2E;AAC3E,MAAM,uBAAwB,SAAQ,eAAY;IAEhD,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC1E,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC3E,CAAC;IACD,uBAAuB;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,YAAY,CAAC,EAAE,EAAE,kBAAe,CAAC,CAAC;IACzE,CAAC;IACD,yBAAyB;QACvB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,cAAc,CAAC,EAAE,EAAE,kBAAe,CAAC,CAAC;IAC3E,CAAC;IACD,4BAA4B;QAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,kBAAe,CAAC,CAAC;IAC9E,CAAC;IACD,sBAAsB;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,8BAAyB,CAAC,YAAY,EAAE,EAAE,8BAAyB,CAAC,CAAC;IACrG,CAAC;IACD,4BAA4B;QAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,oCAA+B,CAAC,YAAY,EAAE,EAAE,oCAA+B,CAAC,CAAC;IACjH,CAAC;IACD,4BAA4B;QAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,oCAA+B,CAAC,YAAY,EAAE,EAAE,oCAA+B,CAAC,CAAC;IACjH,CAAC;IACD,oBAAoB;QAClB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;;AA3BM,oCAAY,GAAG,6BAAM,CAAC,YAAY,CAAC,CAAC;AA6B7C,MAAqB,4BAA6B,SAAQ,4BAAgB;IAExE,SAAS;QACP,OAAO,IAAA,yBAAa,GAAE,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,YAAY,CAAC,EAAE,EAAE,uBAAuB,CAAC,CAAC;IAC5F,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAC5E,CAAC;;AAPH,+CAQC;AAPQ,yCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC"}
|
|
@@ -4,9 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
6
|
const styles_selectors_js_1 = require("../../../table/styles.selectors.js");
|
|
7
|
-
const styles_selectors_js_2 = require("../../../table/
|
|
8
|
-
const styles_selectors_js_3 = require("../../../table/
|
|
9
|
-
const styles_selectors_js_4 = require("../../../table/
|
|
7
|
+
const styles_selectors_js_2 = require("../../../table/header-cell/styles.selectors.js");
|
|
8
|
+
const styles_selectors_js_3 = require("../../../table/body-cell/styles.selectors.js");
|
|
9
|
+
const styles_selectors_js_4 = require("../../../table/selection-control/styles.selectors.js");
|
|
10
|
+
const styles_selectors_js_5 = require("../../../table/resizer/styles.selectors.js");
|
|
10
11
|
const collection_preferences_1 = require("../collection-preferences");
|
|
11
12
|
const container_1 = require("../container");
|
|
12
13
|
const pagination_1 = require("../pagination");
|
|
@@ -45,7 +46,7 @@ class TableWrapper extends selectors_1.ComponentWrapper {
|
|
|
45
46
|
* @param columnIndex 1-based index of the column containing the resizer.
|
|
46
47
|
*/
|
|
47
48
|
findColumnResizer(columnIndex) {
|
|
48
|
-
return this.findActiveTHead().find(`th:nth-child(${columnIndex}) .${
|
|
49
|
+
return this.findActiveTHead().find(`th:nth-child(${columnIndex}) .${styles_selectors_js_5.default.resizer}`);
|
|
49
50
|
}
|
|
50
51
|
/**
|
|
51
52
|
* Returns a table cell based on given row and column indices.
|
|
@@ -96,10 +97,10 @@ class TableWrapper extends selectors_1.ComponentWrapper {
|
|
|
96
97
|
* @param rowIndex 1-based index of the row selection area to return.
|
|
97
98
|
*/
|
|
98
99
|
findRowSelectionArea(rowIndex) {
|
|
99
|
-
return this.findNativeTable().find(`tbody tr:nth-child(${rowIndex}) .${
|
|
100
|
+
return this.findNativeTable().find(`tbody tr:nth-child(${rowIndex}) .${styles_selectors_js_4.default.root}`);
|
|
100
101
|
}
|
|
101
102
|
findSelectAllTrigger() {
|
|
102
|
-
return this.findActiveTHead().find(`.${
|
|
103
|
+
return this.findActiveTHead().find(`.${styles_selectors_js_4.default.root}`);
|
|
103
104
|
}
|
|
104
105
|
findTextFilter() {
|
|
105
106
|
return this.findComponent(`.${styles_selectors_js_1.default['tools-filtering']}`, text_filter_1.default);
|
|
@@ -124,14 +125,14 @@ class TableWrapper extends selectors_1.ComponentWrapper {
|
|
|
124
125
|
*/
|
|
125
126
|
findEditCellButton(rowIndex, columnIndex) {
|
|
126
127
|
var _a, _b;
|
|
127
|
-
return (_b = (_a = this.findBodyCell(rowIndex, columnIndex)) === null || _a === void 0 ? void 0 : _a.findByClassName(
|
|
128
|
+
return (_b = (_a = this.findBodyCell(rowIndex, columnIndex)) === null || _a === void 0 ? void 0 : _a.findByClassName(styles_selectors_js_3.default['body-cell-editor'])) !== null && _b !== void 0 ? _b : null;
|
|
128
129
|
}
|
|
129
130
|
findEditingCell() {
|
|
130
|
-
return this.findNativeTable().findByClassName(
|
|
131
|
+
return this.findNativeTable().findByClassName(styles_selectors_js_3.default['body-cell-edit-active']);
|
|
131
132
|
}
|
|
132
133
|
_findEditingCellControls() {
|
|
133
134
|
var _a, _b;
|
|
134
|
-
return (_b = (_a = this.findEditingCell()) === null || _a === void 0 ? void 0 : _a.findByClassName(
|
|
135
|
+
return (_b = (_a = this.findEditingCell()) === null || _a === void 0 ? void 0 : _a.findByClassName(styles_selectors_js_3.default['body-cell-editor-controls'])) !== null && _b !== void 0 ? _b : null;
|
|
135
136
|
}
|
|
136
137
|
findEditingCellSaveButton() {
|
|
137
138
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/table/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,4EAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/table/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,4EAAwD;AACxD,wFAA8E;AAC9E,sFAA0E;AAC1E,8FAAmF;AACnF,oFAAuE;AACvE,sEAAqE;AACrE,4CAA4C;AAC5C,8CAA8C;AAC9C,gDAA+C;AAC/C,wDAAuD;AACvD,MAAqB,YAAa,SAAQ,4BAAgB;IAA1D;;QAEU,qBAAgB,GAAG,IAAI,mBAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IAiIrE,CAAC;IAhIS,eAAe;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,OAAO,OAAO,6BAAM,CAAC,KAAK,EAAE,CAAE,CAAC;IAC7D,CAAC;IACO,eAAe;QACrB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,cAAc,CAAC,CAAE,CAAC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