@cloudscape-design/components 3.0.361 → 3.0.363
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/alert/index.d.ts.map +1 -1
- package/alert/index.js +21 -16
- package/alert/index.js.map +1 -1
- package/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +30 -30
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/visual-refresh/styles.css.js +69 -69
- package/app-layout/visual-refresh/styles.scoped.css +169 -169
- package/app-layout/visual-refresh/styles.selectors.js +69 -69
- package/area-chart/model/use-chart-model.js +1 -1
- package/area-chart/model/use-chart-model.js.map +1 -1
- package/area-chart/styles.css.js +6 -6
- package/area-chart/styles.scoped.css +10 -10
- package/area-chart/styles.selectors.js +6 -6
- package/attribute-editor/styles.css.js +14 -14
- package/attribute-editor/styles.scoped.css +25 -25
- package/attribute-editor/styles.selectors.js +14 -14
- package/button-dropdown/category-elements/styles.css.js +13 -13
- package/button-dropdown/category-elements/styles.scoped.css +27 -27
- package/button-dropdown/category-elements/styles.selectors.js +13 -13
- package/button-dropdown/item-element/styles.css.js +15 -15
- package/button-dropdown/item-element/styles.scoped.css +19 -19
- package/button-dropdown/item-element/styles.selectors.js +15 -15
- package/button-dropdown/styles.css.js +14 -14
- package/button-dropdown/styles.scoped.css +22 -22
- package/button-dropdown/styles.selectors.js +14 -14
- package/code-editor/index.d.ts.map +1 -1
- package/code-editor/index.js +26 -71
- package/code-editor/index.js.map +1 -1
- package/code-editor/listeners.d.ts +1 -1
- package/code-editor/listeners.d.ts.map +1 -1
- package/code-editor/listeners.js.map +1 -1
- package/code-editor/setup-editor.d.ts.map +1 -1
- package/code-editor/setup-editor.js +39 -36
- package/code-editor/setup-editor.js.map +1 -1
- package/code-editor/styles.css.js +32 -32
- package/code-editor/styles.scoped.css +130 -130
- package/code-editor/styles.selectors.js +32 -32
- package/code-editor/use-editor.d.ts +24 -0
- package/code-editor/use-editor.d.ts.map +1 -0
- package/code-editor/use-editor.js +71 -0
- package/code-editor/use-editor.js.map +1 -0
- package/collection-preferences/content-display/styles.css.js +11 -11
- package/collection-preferences/content-display/styles.scoped.css +18 -18
- package/collection-preferences/content-display/styles.selectors.js +11 -11
- package/collection-preferences/styles.css.js +37 -37
- package/collection-preferences/styles.scoped.css +47 -47
- package/collection-preferences/styles.selectors.js +37 -37
- package/column-layout/flexible-column-layout/styles.css.js +5 -5
- package/column-layout/flexible-column-layout/styles.scoped.css +5 -5
- package/column-layout/flexible-column-layout/styles.selectors.js +5 -5
- package/column-layout/styles.css.js +13 -13
- package/column-layout/styles.scoped.css +46 -46
- package/column-layout/styles.selectors.js +13 -13
- package/container/styles.css.js +28 -28
- package/container/styles.scoped.css +55 -55
- package/container/styles.selectors.js +28 -28
- package/date-range-picker/styles.css.js +38 -38
- package/date-range-picker/styles.scoped.css +47 -47
- package/date-range-picker/styles.selectors.js +38 -38
- package/expandable-section/styles.css.js +29 -29
- package/expandable-section/styles.scoped.css +66 -66
- package/expandable-section/styles.selectors.js +29 -29
- package/form-field/internal.d.ts.map +1 -1
- package/form-field/internal.js +17 -12
- package/form-field/internal.js.map +1 -1
- package/form-field/styles.css.js +19 -19
- package/form-field/styles.scoped.css +30 -30
- package/form-field/styles.selectors.js +19 -19
- package/help-panel/styles.css.js +4 -4
- package/help-panel/styles.scoped.css +66 -66
- package/help-panel/styles.selectors.js +4 -4
- package/internal/base-component/styles.scoped.css +81 -57
- package/internal/components/chart-popover/index.d.ts.map +1 -1
- package/internal/components/chart-popover/index.js +1 -1
- package/internal/components/chart-popover/index.js.map +1 -1
- package/internal/components/dropdown-footer/styles.css.js +3 -3
- package/internal/components/dropdown-footer/styles.scoped.css +4 -4
- package/internal/components/dropdown-footer/styles.selectors.js +3 -3
- package/internal/components/selectable-item/styles.css.js +16 -16
- package/internal/components/selectable-item/styles.scoped.css +31 -31
- package/internal/components/selectable-item/styles.selectors.js +16 -16
- package/internal/components/token-list/styles.css.js +9 -9
- package/internal/components/token-list/styles.scoped.css +22 -22
- package/internal/components/token-list/styles.selectors.js +9 -9
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/styles/tokens.js +1 -1
- package/internal/generated/theming/index.cjs +25 -23
- package/internal/generated/theming/index.js +25 -23
- package/internal/manifest.json +1 -1
- package/internal/plugins/api.d.ts +21 -25
- package/internal/plugins/api.d.ts.map +1 -1
- package/internal/plugins/api.js +15 -35
- package/internal/plugins/api.js.map +1 -1
- package/internal/plugins/controllers/action-buttons.d.ts +9 -0
- package/internal/plugins/controllers/action-buttons.d.ts.map +1 -1
- package/internal/plugins/controllers/action-buttons.js +11 -0
- package/internal/plugins/controllers/action-buttons.js.map +1 -1
- package/internal/plugins/controllers/drawers.d.ts +9 -0
- package/internal/plugins/controllers/drawers.d.ts.map +1 -1
- package/internal/plugins/controllers/drawers.js +11 -0
- package/internal/plugins/controllers/drawers.js.map +1 -1
- package/internal/utils/dom.d.ts +1 -8
- package/internal/utils/dom.d.ts.map +1 -1
- package/internal/utils/dom.js +1 -22
- package/internal/utils/dom.js.map +1 -1
- package/mixed-line-bar-chart/hooks/use-mouse-hover.js +1 -1
- package/mixed-line-bar-chart/hooks/use-mouse-hover.js.map +1 -1
- package/modal/styles.css.js +23 -23
- package/modal/styles.scoped.css +39 -39
- package/modal/styles.selectors.js +23 -23
- package/package.json +1 -1
- package/pie-chart/pie-chart.d.ts.map +1 -1
- package/pie-chart/pie-chart.js +1 -1
- package/pie-chart/pie-chart.js.map +1 -1
- package/pie-chart/styles.css.js +27 -27
- package/pie-chart/styles.scoped.css +43 -43
- package/pie-chart/styles.selectors.js +27 -27
- package/popover/container.d.ts.map +1 -1
- package/popover/container.js +3 -2
- package/popover/container.js.map +1 -1
- package/property-filter/styles.css.js +29 -29
- package/property-filter/styles.scoped.css +33 -33
- package/property-filter/styles.selectors.js +29 -29
- package/s3-resource-selector/s3-in-context/styles.css.js +7 -7
- package/s3-resource-selector/s3-in-context/styles.scoped.css +10 -10
- package/s3-resource-selector/s3-in-context/styles.selectors.js +7 -7
- package/side-navigation/styles.css.js +28 -28
- package/side-navigation/styles.scoped.css +43 -43
- package/side-navigation/styles.selectors.js +28 -28
- package/split-panel/styles.css.js +56 -56
- package/split-panel/styles.scoped.css +85 -85
- package/split-panel/styles.selectors.js +56 -56
- package/table/body-cell/styles.css.js +28 -28
- package/table/body-cell/styles.scoped.css +76 -76
- package/table/body-cell/styles.selectors.js +28 -28
- package/table/header-cell/styles.css.js +24 -24
- package/table/header-cell/styles.scoped.css +43 -43
- package/table/header-cell/styles.selectors.js +24 -24
- package/table/sticky-scrollbar/styles.css.js +6 -6
- package/table/sticky-scrollbar/styles.scoped.css +9 -9
- package/table/sticky-scrollbar/styles.selectors.js +6 -6
- package/table/styles.css.js +34 -34
- package/table/styles.scoped.css +42 -42
- package/table/styles.selectors.js +34 -34
- package/tabs/styles.css.js +21 -21
- package/tabs/styles.scoped.css +46 -46
- package/tabs/styles.selectors.js +21 -21
- package/tiles/styles.css.js +29 -29
- package/tiles/styles.scoped.css +73 -73
- package/tiles/styles.selectors.js +29 -29
- package/top-navigation/1.0-beta/styles.css.js +25 -25
- package/top-navigation/1.0-beta/styles.scoped.css +43 -43
- package/top-navigation/1.0-beta/styles.selectors.js +25 -25
- package/top-navigation/styles.css.js +47 -47
- package/top-navigation/styles.scoped.css +73 -73
- package/top-navigation/styles.selectors.js +47 -47
- package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
- package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +23 -23
- package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
- package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
- package/tutorial-panel/components/tutorial-list/styles.scoped.css +28 -28
- package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
- package/wizard/styles.css.js +31 -31
- package/wizard/styles.scoped.css +63 -63
- package/wizard/styles.selectors.js +31 -31
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"selectable-item": "awsui_selectable-
|
|
6
|
-
"pad-bottom": "awsui_pad-
|
|
7
|
-
"has-background": "awsui_has-
|
|
8
|
-
"highlighted": "
|
|
9
|
-
"selected": "
|
|
10
|
-
"disabled": "
|
|
11
|
-
"next-item-selected": "awsui_next-item-
|
|
12
|
-
"is-keyboard": "awsui_is-
|
|
13
|
-
"parent": "
|
|
14
|
-
"interactiveGroups": "
|
|
15
|
-
"child": "
|
|
16
|
-
"virtual": "
|
|
17
|
-
"measure-strut": "awsui_measure-
|
|
18
|
-
"measure-strut-first": "awsui_measure-strut-
|
|
19
|
-
"screenreader-content": "awsui_screenreader-
|
|
20
|
-
"option-content": "awsui_option-
|
|
5
|
+
"selectable-item": "awsui_selectable-item_15o6u_15za0_93",
|
|
6
|
+
"pad-bottom": "awsui_pad-bottom_15o6u_15za0_115",
|
|
7
|
+
"has-background": "awsui_has-background_15o6u_15za0_124",
|
|
8
|
+
"highlighted": "awsui_highlighted_15o6u_15za0_127",
|
|
9
|
+
"selected": "awsui_selected_15o6u_15za0_127",
|
|
10
|
+
"disabled": "awsui_disabled_15o6u_15za0_141",
|
|
11
|
+
"next-item-selected": "awsui_next-item-selected_15o6u_15za0_149",
|
|
12
|
+
"is-keyboard": "awsui_is-keyboard_15o6u_15za0_157",
|
|
13
|
+
"parent": "awsui_parent_15o6u_15za0_161",
|
|
14
|
+
"interactiveGroups": "awsui_interactiveGroups_15o6u_15za0_165",
|
|
15
|
+
"child": "awsui_child_15o6u_15za0_180",
|
|
16
|
+
"virtual": "awsui_virtual_15o6u_15za0_195",
|
|
17
|
+
"measure-strut": "awsui_measure-strut_15o6u_15za0_206",
|
|
18
|
+
"measure-strut-first": "awsui_measure-strut-first_15o6u_15za0_215",
|
|
19
|
+
"screenreader-content": "awsui_screenreader-content_15o6u_15za0_219",
|
|
20
|
+
"option-content": "awsui_option-content_15o6u_15za0_225"
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"horizontal": "
|
|
6
|
-
"vertical": "
|
|
7
|
-
"list": "
|
|
8
|
-
"list-item": "awsui_list-
|
|
9
|
-
"toggle-container-inline": "awsui_toggle-container-
|
|
10
|
-
"toggle": "
|
|
11
|
-
"description": "
|
|
12
|
-
"separator": "
|
|
4
|
+
"root": "awsui_root_gfwv3_6v1sx_93",
|
|
5
|
+
"horizontal": "awsui_horizontal_gfwv3_6v1sx_98",
|
|
6
|
+
"vertical": "awsui_vertical_gfwv3_6v1sx_102",
|
|
7
|
+
"list": "awsui_list_gfwv3_6v1sx_106",
|
|
8
|
+
"list-item": "awsui_list-item_gfwv3_6v1sx_124",
|
|
9
|
+
"toggle-container-inline": "awsui_toggle-container-inline_gfwv3_6v1sx_129",
|
|
10
|
+
"toggle": "awsui_toggle_gfwv3_6v1sx_129",
|
|
11
|
+
"description": "awsui_description_gfwv3_6v1sx_197",
|
|
12
|
+
"separator": "awsui_separator_gfwv3_6v1sx_201"
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -90,49 +90,49 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.
|
|
93
|
+
.awsui_root_gfwv3_6v1sx_93:not(#\9) {
|
|
94
94
|
display: flex;
|
|
95
95
|
flex-wrap: wrap;
|
|
96
96
|
gap: var(--space-scaled-xs-26e2du, 8px);
|
|
97
97
|
}
|
|
98
|
-
.
|
|
98
|
+
.awsui_root_gfwv3_6v1sx_93.awsui_horizontal_gfwv3_6v1sx_98:not(#\9) {
|
|
99
99
|
gap: var(--space-xs-zb16t3, 8px);
|
|
100
100
|
flex-direction: row;
|
|
101
101
|
}
|
|
102
|
-
.
|
|
102
|
+
.awsui_root_gfwv3_6v1sx_93.awsui_vertical_gfwv3_6v1sx_102:not(#\9) {
|
|
103
103
|
flex-direction: column;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.
|
|
106
|
+
.awsui_list_gfwv3_6v1sx_106:not(#\9) {
|
|
107
107
|
display: contents;
|
|
108
108
|
list-style: none;
|
|
109
109
|
padding: 0;
|
|
110
110
|
margin: 0;
|
|
111
111
|
}
|
|
112
|
-
.
|
|
112
|
+
.awsui_list_gfwv3_6v1sx_106.awsui_horizontal_gfwv3_6v1sx_98:not(#\9), .awsui_list_gfwv3_6v1sx_106.awsui_vertical_gfwv3_6v1sx_102:not(#\9) {
|
|
113
113
|
display: flex;
|
|
114
114
|
flex-wrap: wrap;
|
|
115
115
|
gap: var(--space-xs-zb16t3, 8px);
|
|
116
116
|
}
|
|
117
|
-
.
|
|
117
|
+
.awsui_list_gfwv3_6v1sx_106.awsui_horizontal_gfwv3_6v1sx_98:not(#\9) {
|
|
118
118
|
flex-direction: row;
|
|
119
119
|
}
|
|
120
|
-
.
|
|
120
|
+
.awsui_list_gfwv3_6v1sx_106.awsui_vertical_gfwv3_6v1sx_102:not(#\9) {
|
|
121
121
|
flex-direction: column;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
.awsui_list-
|
|
124
|
+
.awsui_list-item_gfwv3_6v1sx_124:not(#\9) {
|
|
125
125
|
padding: 0;
|
|
126
126
|
margin: 0;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
.awsui_toggle-container-
|
|
129
|
+
.awsui_toggle-container-inline_gfwv3_6v1sx_129:not(#\9) {
|
|
130
130
|
padding-left: var(--space-xs-zb16t3, 8px);
|
|
131
131
|
display: flex;
|
|
132
132
|
align-items: center;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.
|
|
135
|
+
.awsui_toggle_gfwv3_6v1sx_129:not(#\9) {
|
|
136
136
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
137
137
|
border-collapse: separate;
|
|
138
138
|
border-spacing: 0;
|
|
@@ -187,47 +187,47 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
187
187
|
margin-left: -1px;
|
|
188
188
|
}
|
|
189
189
|
@media (prefers-reduced-motion: reduce) {
|
|
190
|
-
.
|
|
190
|
+
.awsui_toggle_gfwv3_6v1sx_129:not(#\9) {
|
|
191
191
|
animation: none;
|
|
192
192
|
transition: none;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
.awsui-motion-disabled .
|
|
195
|
+
.awsui-motion-disabled .awsui_toggle_gfwv3_6v1sx_129:not(#\9), .awsui-mode-entering .awsui_toggle_gfwv3_6v1sx_129:not(#\9) {
|
|
196
196
|
animation: none;
|
|
197
197
|
transition: none;
|
|
198
198
|
}
|
|
199
|
-
.
|
|
199
|
+
.awsui_toggle_gfwv3_6v1sx_129:not(#\9):hover {
|
|
200
200
|
cursor: pointer;
|
|
201
201
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
202
202
|
}
|
|
203
|
-
.
|
|
203
|
+
.awsui_toggle_gfwv3_6v1sx_129:not(#\9):focus {
|
|
204
204
|
outline: none;
|
|
205
205
|
}
|
|
206
|
-
.
|
|
206
|
+
.awsui_toggle_gfwv3_6v1sx_129:not(#\9):active {
|
|
207
207
|
color: var(--color-text-link-hover-8j6p14, #033160);
|
|
208
208
|
}
|
|
209
|
-
.
|
|
209
|
+
.awsui_toggle_gfwv3_6v1sx_129:not(#\9):active, .awsui_toggle_gfwv3_6v1sx_129:not(#\9):focus, .awsui_toggle_gfwv3_6v1sx_129:not(#\9):hover {
|
|
210
210
|
text-decoration: underline;
|
|
211
211
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
212
212
|
text-decoration-color: currentColor;
|
|
213
213
|
}
|
|
214
|
-
.
|
|
214
|
+
.awsui_toggle_gfwv3_6v1sx_129:not(#\9):active, .awsui_toggle_gfwv3_6v1sx_129:not(#\9):focus, .awsui_toggle_gfwv3_6v1sx_129:not(#\9):hover {
|
|
215
215
|
text-decoration: none;
|
|
216
216
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
217
217
|
text-decoration-color: transparent;
|
|
218
218
|
}
|
|
219
|
-
body[data-awsui-focus-visible=true] .
|
|
219
|
+
body[data-awsui-focus-visible=true] .awsui_toggle_gfwv3_6v1sx_129:not(#\9):focus {
|
|
220
220
|
outline: 2px dotted transparent;
|
|
221
221
|
border: var(--border-field-width-09w7vk, 2px) solid var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
222
222
|
border-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
223
223
|
box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-0ctpjf, 0px) var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
224
224
|
}
|
|
225
|
-
.
|
|
225
|
+
.awsui_toggle_gfwv3_6v1sx_129 > .awsui_description_gfwv3_6v1sx_197:not(#\9) {
|
|
226
226
|
margin-left: var(--space-xxs-p8yyaw, 4px);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
.
|
|
229
|
+
.awsui_separator_gfwv3_6v1sx_201:not(#\9) {
|
|
230
230
|
margin: 0px var(--space-scaled-m-mo5yse, 16px);
|
|
231
|
-
width: var(--border-divider-section-width-
|
|
232
|
-
background-color: var(--color-border-divider-default-
|
|
231
|
+
width: var(--border-divider-section-width-8a5uu9, 2px);
|
|
232
|
+
background-color: var(--color-border-divider-default-et9j7s, #e9ebed);
|
|
233
233
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"horizontal": "
|
|
7
|
-
"vertical": "
|
|
8
|
-
"list": "
|
|
9
|
-
"list-item": "awsui_list-
|
|
10
|
-
"toggle-container-inline": "awsui_toggle-container-
|
|
11
|
-
"toggle": "
|
|
12
|
-
"description": "
|
|
13
|
-
"separator": "
|
|
5
|
+
"root": "awsui_root_gfwv3_6v1sx_93",
|
|
6
|
+
"horizontal": "awsui_horizontal_gfwv3_6v1sx_98",
|
|
7
|
+
"vertical": "awsui_vertical_gfwv3_6v1sx_102",
|
|
8
|
+
"list": "awsui_list_gfwv3_6v1sx_106",
|
|
9
|
+
"list-item": "awsui_list-item_gfwv3_6v1sx_124",
|
|
10
|
+
"toggle-container-inline": "awsui_toggle-container-inline_gfwv3_6v1sx_129",
|
|
11
|
+
"toggle": "awsui_toggle_gfwv3_6v1sx_129",
|
|
12
|
+
"description": "awsui_description_gfwv3_6v1sx_197",
|
|
13
|
+
"separator": "awsui_separator_gfwv3_6v1sx_201"
|
|
14
14
|
};
|
|
15
15
|
|
package/internal/environment.js
CHANGED
|
@@ -196,7 +196,7 @@ export var colorBorderButtonNormalHover = "var(--color-border-button-normal-hove
|
|
|
196
196
|
export var colorBorderButtonPrimaryDisabled = "var(--color-border-button-primary-disabled-q34ikb, #e9ebed)";
|
|
197
197
|
export var colorBorderContainerTop = "var(--color-border-container-top-736buh, transparent)";
|
|
198
198
|
export var colorBorderControlDefault = "var(--color-border-control-default-0fzxw0, #7d8998)";
|
|
199
|
-
export var colorBorderDividerDefault = "var(--color-border-divider-default-
|
|
199
|
+
export var colorBorderDividerDefault = "var(--color-border-divider-default-et9j7s, #e9ebed)";
|
|
200
200
|
export var colorBorderDropdownItemHover = "var(--color-border-dropdown-item-hover-461g78, #7d8998)";
|
|
201
201
|
export var colorBorderInputDefault = "var(--color-border-input-default-1zl7hq, #7d8998)";
|
|
202
202
|
export var colorBorderItemFocused = "var(--color-border-item-focused-b2ntyl, #0972d3)";
|
|
@@ -6900,8 +6900,8 @@ module.exports.preset = {
|
|
|
6900
6900
|
"dark": "{colorGrey100}"
|
|
6901
6901
|
},
|
|
6902
6902
|
"colorBorderDividerDefault": {
|
|
6903
|
-
"light": "{
|
|
6904
|
-
"dark": "{
|
|
6903
|
+
"light": "{colorTextButtonNormalDefault}",
|
|
6904
|
+
"dark": "{colorTextButtonNormalDefault}"
|
|
6905
6905
|
},
|
|
6906
6906
|
"colorBorderDividerPanelBottom": {
|
|
6907
6907
|
"light": "{colorBorderDividerDefault}",
|
|
@@ -7228,12 +7228,12 @@ module.exports.preset = {
|
|
|
7228
7228
|
"dark": "{colorGrey300}"
|
|
7229
7229
|
},
|
|
7230
7230
|
"colorTextExpandableSectionDefault": {
|
|
7231
|
-
"light": "{
|
|
7232
|
-
"dark": "{
|
|
7231
|
+
"light": "{colorTextButtonNormalDefault}",
|
|
7232
|
+
"dark": "{colorTextButtonNormalDefault}"
|
|
7233
7233
|
},
|
|
7234
7234
|
"colorTextExpandableSectionHover": {
|
|
7235
|
-
"light": "{
|
|
7236
|
-
"dark": "{
|
|
7235
|
+
"light": "{colorTextButtonNormalHover}",
|
|
7236
|
+
"dark": "{colorTextButtonNormalHover}"
|
|
7237
7237
|
},
|
|
7238
7238
|
"colorTextExpandableSectionNavigationIconDefault": {
|
|
7239
7239
|
"light": "{colorTextInteractiveDefault}",
|
|
@@ -7450,7 +7450,9 @@ module.exports.preset = {
|
|
|
7450
7450
|
"colorDropzoneTextHover": {
|
|
7451
7451
|
"light": "{colorBlue800}",
|
|
7452
7452
|
"dark": "{colorWhite}"
|
|
7453
|
-
}
|
|
7453
|
+
},
|
|
7454
|
+
"fontExpandableHeadingSize": "14px",
|
|
7455
|
+
"borderDividerSectionWidth": "1px"
|
|
7454
7456
|
}
|
|
7455
7457
|
},
|
|
7456
7458
|
"alert-header": {
|
|
@@ -7834,8 +7836,8 @@ module.exports.preset = {
|
|
|
7834
7836
|
"dark": "{colorGrey100}"
|
|
7835
7837
|
},
|
|
7836
7838
|
"colorBorderDividerDefault": {
|
|
7837
|
-
"light": "{
|
|
7838
|
-
"dark": "{
|
|
7839
|
+
"light": "{colorTextButtonNormalDefault}",
|
|
7840
|
+
"dark": "{colorTextButtonNormalDefault}"
|
|
7839
7841
|
},
|
|
7840
7842
|
"colorBorderDividerPanelBottom": {
|
|
7841
7843
|
"light": "{colorGreyTransparent}",
|
|
@@ -8162,12 +8164,12 @@ module.exports.preset = {
|
|
|
8162
8164
|
"dark": "{colorGrey300}"
|
|
8163
8165
|
},
|
|
8164
8166
|
"colorTextExpandableSectionDefault": {
|
|
8165
|
-
"light": "{
|
|
8166
|
-
"dark": "{
|
|
8167
|
+
"light": "{colorTextButtonNormalDefault}",
|
|
8168
|
+
"dark": "{colorTextButtonNormalDefault}"
|
|
8167
8169
|
},
|
|
8168
8170
|
"colorTextExpandableSectionHover": {
|
|
8169
|
-
"light": "{
|
|
8170
|
-
"dark": "{
|
|
8171
|
+
"light": "{colorTextButtonNormalHover}",
|
|
8172
|
+
"dark": "{colorTextButtonNormalHover}"
|
|
8171
8173
|
},
|
|
8172
8174
|
"colorTextExpandableSectionNavigationIconDefault": {
|
|
8173
8175
|
"light": "{colorTextInteractiveDefault}",
|
|
@@ -10402,12 +10404,12 @@ module.exports.preset = {
|
|
|
10402
10404
|
"colorBorderControlDefault": "--color-border-control-default-0fzxw0",
|
|
10403
10405
|
"colorBorderControlDisabled": "--color-border-control-disabled-bv2kkn",
|
|
10404
10406
|
"colorBorderDividerActive": "--color-border-divider-active-k4haaf",
|
|
10405
|
-
"colorBorderDividerDefault": "--color-border-divider-default-
|
|
10406
|
-
"colorBorderDividerPanelBottom": "--color-border-divider-panel-bottom-
|
|
10407
|
-
"colorBorderDividerPanelSide": "--color-border-divider-panel-side-
|
|
10407
|
+
"colorBorderDividerDefault": "--color-border-divider-default-et9j7s",
|
|
10408
|
+
"colorBorderDividerPanelBottom": "--color-border-divider-panel-bottom-16n9vt",
|
|
10409
|
+
"colorBorderDividerPanelSide": "--color-border-divider-panel-side-qqne3x",
|
|
10408
10410
|
"colorBorderDropdownContainer": "--color-border-dropdown-container-5boaph",
|
|
10409
|
-
"colorBorderDropdownGroup": "--color-border-dropdown-group-
|
|
10410
|
-
"colorBorderDropdownItemDefault": "--color-border-dropdown-item-default-
|
|
10411
|
+
"colorBorderDropdownGroup": "--color-border-dropdown-group-zgquz8",
|
|
10412
|
+
"colorBorderDropdownItemDefault": "--color-border-dropdown-item-default-dofu99",
|
|
10411
10413
|
"colorBorderDropdownItemHover": "--color-border-dropdown-item-hover-461g78",
|
|
10412
10414
|
"colorBorderDropdownItemDimmedHover": "--color-border-dropdown-item-dimmed-hover-xdu0hf",
|
|
10413
10415
|
"colorBorderDropdownItemSelected": "--color-border-dropdown-item-selected-096aj1",
|
|
@@ -10484,8 +10486,8 @@ module.exports.preset = {
|
|
|
10484
10486
|
"colorTextDropdownItemSecondary": "--color-text-dropdown-item-secondary-jho0ju",
|
|
10485
10487
|
"colorTextDropdownItemSecondaryHover": "--color-text-dropdown-item-secondary-hover-zfmqjr",
|
|
10486
10488
|
"colorTextEmpty": "--color-text-empty-2wfcyr",
|
|
10487
|
-
"colorTextExpandableSectionDefault": "--color-text-expandable-section-default-
|
|
10488
|
-
"colorTextExpandableSectionHover": "--color-text-expandable-section-hover-
|
|
10489
|
+
"colorTextExpandableSectionDefault": "--color-text-expandable-section-default-lm3qgp",
|
|
10490
|
+
"colorTextExpandableSectionHover": "--color-text-expandable-section-hover-2d1zpj",
|
|
10489
10491
|
"colorTextExpandableSectionNavigationIconDefault": "--color-text-expandable-section-navigation-icon-default-htcovl",
|
|
10490
10492
|
"colorTextFormDefault": "--color-text-form-default-vh42kd",
|
|
10491
10493
|
"colorTextFormLabel": "--color-text-form-label-ktbzsd",
|
|
@@ -10552,7 +10554,7 @@ module.exports.preset = {
|
|
|
10552
10554
|
"fontDisplayLLineHeight": "--font-display-l-line-height-07o0h7",
|
|
10553
10555
|
"fontDisplayLSize": "--font-display-l-size-0u12dn",
|
|
10554
10556
|
"fontDisplayLabelWeight": "--font-display-label-weight-815ja9",
|
|
10555
|
-
"fontExpandableHeadingSize": "--font-expandable-heading-size-
|
|
10557
|
+
"fontExpandableHeadingSize": "--font-expandable-heading-size-smdiul",
|
|
10556
10558
|
"fontFamilyBase": "--font-family-base-dnvic8",
|
|
10557
10559
|
"fontFamilyMonospace": "--font-family-monospace-bftdwf",
|
|
10558
10560
|
"fontHeaderH2DescriptionLineHeight": "--font-header-h2-description-line-height-rtewek",
|
|
@@ -10589,13 +10591,13 @@ module.exports.preset = {
|
|
|
10589
10591
|
"fontWayfindingLinkActiveWeight": "--font-wayfinding-link-active-weight-rbmzei",
|
|
10590
10592
|
"fontWeightHeavy": "--font-weight-heavy-cqd9pv",
|
|
10591
10593
|
"borderActiveWidth": "--border-active-width-9dmqf4",
|
|
10592
|
-
"borderCodeEditorStatusDividerWidth": "--border-code-editor-status-divider-width-
|
|
10594
|
+
"borderCodeEditorStatusDividerWidth": "--border-code-editor-status-divider-width-6zj7o8",
|
|
10593
10595
|
"borderContainerStickyWidth": "--border-container-sticky-width-6asz33",
|
|
10594
10596
|
"borderContainerTopWidth": "--border-container-top-width-uugwwl",
|
|
10595
10597
|
"borderControlFocusRingShadowSpread": "--border-control-focus-ring-shadow-spread-0ctpjf",
|
|
10596
10598
|
"borderControlInvalidFocusRingShadowSpread": "--border-control-invalid-focus-ring-shadow-spread-fhmbjn",
|
|
10597
10599
|
"borderDividerListWidth": "--border-divider-list-width-27y3k5",
|
|
10598
|
-
"borderDividerSectionWidth": "--border-divider-section-width-
|
|
10600
|
+
"borderDividerSectionWidth": "--border-divider-section-width-8a5uu9",
|
|
10599
10601
|
"borderDropdownVirtualOffsetWidth": "--border-dropdown-virtual-offset-width-kekgc0",
|
|
10600
10602
|
"borderFieldWidth": "--border-field-width-09w7vk",
|
|
10601
10603
|
"borderInvalidWidth": "--border-invalid-width-5ktjp2",
|
|
@@ -6900,8 +6900,8 @@ export var preset = {
|
|
|
6900
6900
|
"dark": "{colorGrey100}"
|
|
6901
6901
|
},
|
|
6902
6902
|
"colorBorderDividerDefault": {
|
|
6903
|
-
"light": "{
|
|
6904
|
-
"dark": "{
|
|
6903
|
+
"light": "{colorTextButtonNormalDefault}",
|
|
6904
|
+
"dark": "{colorTextButtonNormalDefault}"
|
|
6905
6905
|
},
|
|
6906
6906
|
"colorBorderDividerPanelBottom": {
|
|
6907
6907
|
"light": "{colorBorderDividerDefault}",
|
|
@@ -7228,12 +7228,12 @@ export var preset = {
|
|
|
7228
7228
|
"dark": "{colorGrey300}"
|
|
7229
7229
|
},
|
|
7230
7230
|
"colorTextExpandableSectionDefault": {
|
|
7231
|
-
"light": "{
|
|
7232
|
-
"dark": "{
|
|
7231
|
+
"light": "{colorTextButtonNormalDefault}",
|
|
7232
|
+
"dark": "{colorTextButtonNormalDefault}"
|
|
7233
7233
|
},
|
|
7234
7234
|
"colorTextExpandableSectionHover": {
|
|
7235
|
-
"light": "{
|
|
7236
|
-
"dark": "{
|
|
7235
|
+
"light": "{colorTextButtonNormalHover}",
|
|
7236
|
+
"dark": "{colorTextButtonNormalHover}"
|
|
7237
7237
|
},
|
|
7238
7238
|
"colorTextExpandableSectionNavigationIconDefault": {
|
|
7239
7239
|
"light": "{colorTextInteractiveDefault}",
|
|
@@ -7450,7 +7450,9 @@ export var preset = {
|
|
|
7450
7450
|
"colorDropzoneTextHover": {
|
|
7451
7451
|
"light": "{colorBlue800}",
|
|
7452
7452
|
"dark": "{colorWhite}"
|
|
7453
|
-
}
|
|
7453
|
+
},
|
|
7454
|
+
"fontExpandableHeadingSize": "14px",
|
|
7455
|
+
"borderDividerSectionWidth": "1px"
|
|
7454
7456
|
}
|
|
7455
7457
|
},
|
|
7456
7458
|
"alert-header": {
|
|
@@ -7834,8 +7836,8 @@ export var preset = {
|
|
|
7834
7836
|
"dark": "{colorGrey100}"
|
|
7835
7837
|
},
|
|
7836
7838
|
"colorBorderDividerDefault": {
|
|
7837
|
-
"light": "{
|
|
7838
|
-
"dark": "{
|
|
7839
|
+
"light": "{colorTextButtonNormalDefault}",
|
|
7840
|
+
"dark": "{colorTextButtonNormalDefault}"
|
|
7839
7841
|
},
|
|
7840
7842
|
"colorBorderDividerPanelBottom": {
|
|
7841
7843
|
"light": "{colorGreyTransparent}",
|
|
@@ -8162,12 +8164,12 @@ export var preset = {
|
|
|
8162
8164
|
"dark": "{colorGrey300}"
|
|
8163
8165
|
},
|
|
8164
8166
|
"colorTextExpandableSectionDefault": {
|
|
8165
|
-
"light": "{
|
|
8166
|
-
"dark": "{
|
|
8167
|
+
"light": "{colorTextButtonNormalDefault}",
|
|
8168
|
+
"dark": "{colorTextButtonNormalDefault}"
|
|
8167
8169
|
},
|
|
8168
8170
|
"colorTextExpandableSectionHover": {
|
|
8169
|
-
"light": "{
|
|
8170
|
-
"dark": "{
|
|
8171
|
+
"light": "{colorTextButtonNormalHover}",
|
|
8172
|
+
"dark": "{colorTextButtonNormalHover}"
|
|
8171
8173
|
},
|
|
8172
8174
|
"colorTextExpandableSectionNavigationIconDefault": {
|
|
8173
8175
|
"light": "{colorTextInteractiveDefault}",
|
|
@@ -10402,12 +10404,12 @@ export var preset = {
|
|
|
10402
10404
|
"colorBorderControlDefault": "--color-border-control-default-0fzxw0",
|
|
10403
10405
|
"colorBorderControlDisabled": "--color-border-control-disabled-bv2kkn",
|
|
10404
10406
|
"colorBorderDividerActive": "--color-border-divider-active-k4haaf",
|
|
10405
|
-
"colorBorderDividerDefault": "--color-border-divider-default-
|
|
10406
|
-
"colorBorderDividerPanelBottom": "--color-border-divider-panel-bottom-
|
|
10407
|
-
"colorBorderDividerPanelSide": "--color-border-divider-panel-side-
|
|
10407
|
+
"colorBorderDividerDefault": "--color-border-divider-default-et9j7s",
|
|
10408
|
+
"colorBorderDividerPanelBottom": "--color-border-divider-panel-bottom-16n9vt",
|
|
10409
|
+
"colorBorderDividerPanelSide": "--color-border-divider-panel-side-qqne3x",
|
|
10408
10410
|
"colorBorderDropdownContainer": "--color-border-dropdown-container-5boaph",
|
|
10409
|
-
"colorBorderDropdownGroup": "--color-border-dropdown-group-
|
|
10410
|
-
"colorBorderDropdownItemDefault": "--color-border-dropdown-item-default-
|
|
10411
|
+
"colorBorderDropdownGroup": "--color-border-dropdown-group-zgquz8",
|
|
10412
|
+
"colorBorderDropdownItemDefault": "--color-border-dropdown-item-default-dofu99",
|
|
10411
10413
|
"colorBorderDropdownItemHover": "--color-border-dropdown-item-hover-461g78",
|
|
10412
10414
|
"colorBorderDropdownItemDimmedHover": "--color-border-dropdown-item-dimmed-hover-xdu0hf",
|
|
10413
10415
|
"colorBorderDropdownItemSelected": "--color-border-dropdown-item-selected-096aj1",
|
|
@@ -10484,8 +10486,8 @@ export var preset = {
|
|
|
10484
10486
|
"colorTextDropdownItemSecondary": "--color-text-dropdown-item-secondary-jho0ju",
|
|
10485
10487
|
"colorTextDropdownItemSecondaryHover": "--color-text-dropdown-item-secondary-hover-zfmqjr",
|
|
10486
10488
|
"colorTextEmpty": "--color-text-empty-2wfcyr",
|
|
10487
|
-
"colorTextExpandableSectionDefault": "--color-text-expandable-section-default-
|
|
10488
|
-
"colorTextExpandableSectionHover": "--color-text-expandable-section-hover-
|
|
10489
|
+
"colorTextExpandableSectionDefault": "--color-text-expandable-section-default-lm3qgp",
|
|
10490
|
+
"colorTextExpandableSectionHover": "--color-text-expandable-section-hover-2d1zpj",
|
|
10489
10491
|
"colorTextExpandableSectionNavigationIconDefault": "--color-text-expandable-section-navigation-icon-default-htcovl",
|
|
10490
10492
|
"colorTextFormDefault": "--color-text-form-default-vh42kd",
|
|
10491
10493
|
"colorTextFormLabel": "--color-text-form-label-ktbzsd",
|
|
@@ -10552,7 +10554,7 @@ export var preset = {
|
|
|
10552
10554
|
"fontDisplayLLineHeight": "--font-display-l-line-height-07o0h7",
|
|
10553
10555
|
"fontDisplayLSize": "--font-display-l-size-0u12dn",
|
|
10554
10556
|
"fontDisplayLabelWeight": "--font-display-label-weight-815ja9",
|
|
10555
|
-
"fontExpandableHeadingSize": "--font-expandable-heading-size-
|
|
10557
|
+
"fontExpandableHeadingSize": "--font-expandable-heading-size-smdiul",
|
|
10556
10558
|
"fontFamilyBase": "--font-family-base-dnvic8",
|
|
10557
10559
|
"fontFamilyMonospace": "--font-family-monospace-bftdwf",
|
|
10558
10560
|
"fontHeaderH2DescriptionLineHeight": "--font-header-h2-description-line-height-rtewek",
|
|
@@ -10589,13 +10591,13 @@ export var preset = {
|
|
|
10589
10591
|
"fontWayfindingLinkActiveWeight": "--font-wayfinding-link-active-weight-rbmzei",
|
|
10590
10592
|
"fontWeightHeavy": "--font-weight-heavy-cqd9pv",
|
|
10591
10593
|
"borderActiveWidth": "--border-active-width-9dmqf4",
|
|
10592
|
-
"borderCodeEditorStatusDividerWidth": "--border-code-editor-status-divider-width-
|
|
10594
|
+
"borderCodeEditorStatusDividerWidth": "--border-code-editor-status-divider-width-6zj7o8",
|
|
10593
10595
|
"borderContainerStickyWidth": "--border-container-sticky-width-6asz33",
|
|
10594
10596
|
"borderContainerTopWidth": "--border-container-top-width-uugwwl",
|
|
10595
10597
|
"borderControlFocusRingShadowSpread": "--border-control-focus-ring-shadow-spread-0ctpjf",
|
|
10596
10598
|
"borderControlInvalidFocusRingShadowSpread": "--border-control-invalid-focus-ring-shadow-spread-fhmbjn",
|
|
10597
10599
|
"borderDividerListWidth": "--border-divider-list-width-27y3k5",
|
|
10598
|
-
"borderDividerSectionWidth": "--border-divider-section-width-
|
|
10600
|
+
"borderDividerSectionWidth": "--border-divider-section-width-8a5uu9",
|
|
10599
10601
|
"borderDropdownVirtualOffsetWidth": "--border-dropdown-virtual-offset-width-kekgc0",
|
|
10600
10602
|
"borderFieldWidth": "--border-field-width-09w7vk",
|
|
10601
10603
|
"borderInvalidWidth": "--border-invalid-width-5ktjp2",
|
package/internal/manifest.json
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { DrawersApiInternal, DrawersApiPublic } from './controllers/drawers';
|
|
2
|
+
import { ActionsApiInternal, ActionsApiPublic } from './controllers/action-buttons';
|
|
3
|
+
interface AwsuiApi {
|
|
4
|
+
awsuiPlugins: {
|
|
5
|
+
appLayout: DrawersApiPublic;
|
|
6
|
+
alert: ActionsApiPublic;
|
|
7
|
+
flashbar: ActionsApiPublic;
|
|
6
8
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
registerAction(config: ActionConfig): void;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
interface AwsuiPluginApiInternal {
|
|
15
|
-
appLayout: {
|
|
16
|
-
clearRegisteredDrawers(): void;
|
|
17
|
-
onDrawersRegistered(listener: DrawersRegistrationListener): () => void;
|
|
18
|
-
};
|
|
19
|
-
alert: {
|
|
20
|
-
clearRegisteredActions: () => void;
|
|
21
|
-
onActionRegistered(listener: ActionRegistrationListener): () => void;
|
|
22
|
-
};
|
|
23
|
-
flashbar: {
|
|
24
|
-
clearRegisteredActions: () => void;
|
|
25
|
-
onActionRegistered(listener: ActionRegistrationListener): () => void;
|
|
9
|
+
awsuiPluginsInternal: {
|
|
10
|
+
appLayout: DrawersApiInternal;
|
|
11
|
+
alert: ActionsApiInternal;
|
|
12
|
+
flashbar: ActionsApiInternal;
|
|
26
13
|
};
|
|
27
14
|
}
|
|
28
|
-
export declare
|
|
15
|
+
export declare function loadApi(): AwsuiApi;
|
|
16
|
+
export declare const awsuiPlugins: {
|
|
17
|
+
appLayout: DrawersApiPublic;
|
|
18
|
+
alert: ActionsApiPublic;
|
|
19
|
+
flashbar: ActionsApiPublic;
|
|
20
|
+
}, awsuiPluginsInternal: {
|
|
21
|
+
appLayout: DrawersApiInternal;
|
|
22
|
+
alert: ActionsApiInternal;
|
|
23
|
+
flashbar: ActionsApiInternal;
|
|
24
|
+
};
|
|
29
25
|
export {};
|
|
30
26
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"lib/default/","sources":["internal/plugins/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"lib/default/","sources":["internal/plugins/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAqB,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAA2B,MAAM,8BAA8B,CAAC;AAI7G,UAAU,QAAQ;IAChB,YAAY,EAAE;QACZ,SAAS,EAAE,gBAAgB,CAAC;QAC5B,KAAK,EAAE,gBAAgB,CAAC;QACxB,QAAQ,EAAE,gBAAgB,CAAC;KAC5B,CAAC;IACF,oBAAoB,EAAE;QACpB,SAAS,EAAE,kBAAkB,CAAC;QAC9B,KAAK,EAAE,kBAAkB,CAAC;QAC1B,QAAQ,EAAE,kBAAkB,CAAC;KAC9B,CAAC;CACH;AAwBD,wBAAgB,OAAO,aAQtB;AAED,eAAO,MAAQ,YAAY;eA3CZ,gBAAgB;WACpB,gBAAgB;cACb,gBAAgB;GAyCD,oBAAoB;eAtClC,kBAAkB;WACtB,kBAAkB;cACf,kBAAkB;CAoC+B,CAAC"}
|
package/internal/plugins/api.js
CHANGED
|
@@ -19,49 +19,29 @@ function findUpApi(currentWindow) {
|
|
|
19
19
|
return undefined;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
function loadApi() {
|
|
22
|
+
export function loadApi() {
|
|
23
23
|
if (typeof window === 'undefined') {
|
|
24
|
-
return
|
|
24
|
+
return installApi({});
|
|
25
25
|
}
|
|
26
26
|
const win = window;
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
return api;
|
|
30
|
-
}
|
|
31
|
-
win[storageKey] = createApi();
|
|
27
|
+
const existingApi = findUpApi(win);
|
|
28
|
+
win[storageKey] = installApi(existingApi !== null && existingApi !== void 0 ? existingApi : {});
|
|
32
29
|
return win[storageKey];
|
|
33
30
|
}
|
|
34
31
|
export const { awsuiPlugins, awsuiPluginsInternal } = loadApi();
|
|
35
|
-
function
|
|
32
|
+
function installApi(api) {
|
|
33
|
+
var _a, _b;
|
|
34
|
+
(_a = api.awsuiPlugins) !== null && _a !== void 0 ? _a : (api.awsuiPlugins = {});
|
|
35
|
+
(_b = api.awsuiPluginsInternal) !== null && _b !== void 0 ? _b : (api.awsuiPluginsInternal = {});
|
|
36
36
|
const appLayoutDrawers = new DrawersController();
|
|
37
|
+
api.awsuiPlugins.appLayout = appLayoutDrawers.installPublic(api.awsuiPlugins.appLayout);
|
|
38
|
+
api.awsuiPluginsInternal.appLayout = appLayoutDrawers.installInternal(api.awsuiPluginsInternal.appLayout);
|
|
37
39
|
const alertActions = new ActionButtonsController();
|
|
40
|
+
api.awsuiPlugins.alert = alertActions.installPublic(api.awsuiPlugins.alert);
|
|
41
|
+
api.awsuiPluginsInternal.alert = alertActions.installInternal(api.awsuiPluginsInternal.alert);
|
|
38
42
|
const flashbarActions = new ActionButtonsController();
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
registerDrawer: appLayoutDrawers.registerDrawer,
|
|
43
|
-
},
|
|
44
|
-
alert: {
|
|
45
|
-
registerAction: alertActions.registerAction,
|
|
46
|
-
},
|
|
47
|
-
flashbar: {
|
|
48
|
-
registerAction: flashbarActions.registerAction,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
awsuiPluginsInternal: {
|
|
52
|
-
appLayout: {
|
|
53
|
-
clearRegisteredDrawers: appLayoutDrawers.clearRegisteredDrawers,
|
|
54
|
-
onDrawersRegistered: appLayoutDrawers.onDrawersRegistered,
|
|
55
|
-
},
|
|
56
|
-
alert: {
|
|
57
|
-
clearRegisteredActions: alertActions.clearRegisteredActions,
|
|
58
|
-
onActionRegistered: alertActions.onActionRegistered,
|
|
59
|
-
},
|
|
60
|
-
flashbar: {
|
|
61
|
-
clearRegisteredActions: flashbarActions.clearRegisteredActions,
|
|
62
|
-
onActionRegistered: flashbarActions.onActionRegistered,
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
};
|
|
43
|
+
api.awsuiPlugins.flashbar = flashbarActions.installPublic(api.awsuiPlugins.flashbar);
|
|
44
|
+
api.awsuiPluginsInternal.flashbar = flashbarActions.installInternal(api.awsuiPluginsInternal.flashbar);
|
|
45
|
+
return api;
|
|
66
46
|
}
|
|
67
47
|
//# sourceMappingURL=api.js.map
|