@skyux/modals 12.23.0 → 13.0.0-alpha.0
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/fesm2022/skyux-modals-testing.mjs +11 -11
- package/fesm2022/skyux-modals-testing.mjs.map +1 -1
- package/fesm2022/skyux-modals.mjs +60 -60
- package/fesm2022/skyux-modals.mjs.map +1 -1
- package/index.d.ts +647 -27
- package/package.json +11 -11
- package/testing/index.d.ts +283 -3
- package/lib/modules/confirm/confirm-button-action.d.ts +0 -4
- package/lib/modules/confirm/confirm-button-config.d.ts +0 -24
- package/lib/modules/confirm/confirm-button-style-type.d.ts +0 -1
- package/lib/modules/confirm/confirm-button.d.ts +0 -12
- package/lib/modules/confirm/confirm-closed-event-args.d.ts +0 -6
- package/lib/modules/confirm/confirm-config-token.d.ts +0 -6
- package/lib/modules/confirm/confirm-config.d.ts +0 -26
- package/lib/modules/confirm/confirm-instance.d.ts +0 -17
- package/lib/modules/confirm/confirm-service-interface.d.ts +0 -8
- package/lib/modules/confirm/confirm-type.d.ts +0 -22
- package/lib/modules/confirm/confirm.component.d.ts +0 -20
- package/lib/modules/confirm/confirm.module.d.ts +0 -10
- package/lib/modules/confirm/confirm.service.d.ts +0 -19
- package/lib/modules/modal/modal-adapter.service.d.ts +0 -30
- package/lib/modules/modal/modal-before-close-handler.d.ts +0 -18
- package/lib/modules/modal/modal-close-args.d.ts +0 -15
- package/lib/modules/modal/modal-component-adapter.service.d.ts +0 -17
- package/lib/modules/modal/modal-configuration.d.ts +0 -29
- package/lib/modules/modal/modal-content.component.d.ts +0 -9
- package/lib/modules/modal/modal-error.d.ts +0 -9
- package/lib/modules/modal/modal-errors.service.d.ts +0 -14
- package/lib/modules/modal/modal-footer.component.d.ts +0 -11
- package/lib/modules/modal/modal-header.component.d.ts +0 -8
- package/lib/modules/modal/modal-host-context-args.d.ts +0 -7
- package/lib/modules/modal/modal-host-context.d.ts +0 -13
- package/lib/modules/modal/modal-host.component.d.ts +0 -17
- package/lib/modules/modal/modal-host.service.d.ts +0 -37
- package/lib/modules/modal/modal-instance.d.ts +0 -81
- package/lib/modules/modal/modal-is-dirty.directive.d.ts +0 -18
- package/lib/modules/modal/modal-service-interface.d.ts +0 -8
- package/lib/modules/modal/modal.component.d.ts +0 -90
- package/lib/modules/modal/modal.interface.d.ts +0 -75
- package/lib/modules/modal/modal.module.d.ts +0 -11
- package/lib/modules/modal/modal.service.d.ts +0 -36
- package/lib/modules/shared/sky-modals-resources.module.d.ts +0 -10
- package/testing/legacy/modal-fixture.d.ts +0 -57
- package/testing/modules/confirm/confirm-button-harness-filters.d.ts +0 -14
- package/testing/modules/confirm/confirm-button-harness.d.ts +0 -29
- package/testing/modules/confirm/confirm-harness.d.ts +0 -42
- package/testing/modules/confirm/confirm-testing.controller.d.ts +0 -28
- package/testing/modules/confirm/confirm-testing.module.d.ts +0 -9
- package/testing/modules/confirm/confirm-testing.service.d.ts +0 -14
- package/testing/modules/confirm/provide-confirm-testing.d.ts +0 -5
- package/testing/modules/modal/controller/modal-testing.controller.d.ts +0 -26
- package/testing/modules/modal/controller/modal-testing.module.d.ts +0 -9
- package/testing/modules/modal/controller/modal-testing.service.d.ts +0 -18
- package/testing/modules/modal/controller/provide-modal-testing.d.ts +0 -5
- package/testing/modules/modal/modal-harness-filters.d.ts +0 -6
- package/testing/modules/modal/modal-harness.d.ts +0 -64
- package/testing/public-api.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/modals",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0-alpha.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
},
|
|
17
17
|
"homepage": "https://github.com/blackbaud/skyux#readme",
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular/cdk": "^
|
|
20
|
-
"@angular/common": "^
|
|
21
|
-
"@angular/core": "^
|
|
22
|
-
"@angular/router": "^
|
|
23
|
-
"@skyux/core": "
|
|
24
|
-
"@skyux/help-inline": "
|
|
25
|
-
"@skyux/i18n": "
|
|
26
|
-
"@skyux/icon": "
|
|
27
|
-
"@skyux/indicators": "
|
|
28
|
-
"@skyux/theme": "
|
|
19
|
+
"@angular/cdk": "^20.0.4",
|
|
20
|
+
"@angular/common": "^20.0.5",
|
|
21
|
+
"@angular/core": "^20.0.5",
|
|
22
|
+
"@angular/router": "^20.0.5",
|
|
23
|
+
"@skyux/core": "13.0.0-alpha.0",
|
|
24
|
+
"@skyux/help-inline": "13.0.0-alpha.0",
|
|
25
|
+
"@skyux/i18n": "13.0.0-alpha.0",
|
|
26
|
+
"@skyux/icon": "13.0.0-alpha.0",
|
|
27
|
+
"@skyux/indicators": "13.0.0-alpha.0",
|
|
28
|
+
"@skyux/theme": "13.0.0-alpha.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"tslib": "^2.8.1"
|
package/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,285 @@
|
|
|
1
|
+
import { ComponentFixture } from '@angular/core/testing';
|
|
2
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
|
+
import { SkyConfirmButtonStyleType, SkyConfirmType, SkyConfirmConfig, SkyConfirmCloseEventArgs, SkyModalCloseArgs } from '@skyux/modals';
|
|
4
|
+
import { SkyComponentHarness, SkyHarnessFilters } from '@skyux/core/testing';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { Type } from '@angular/core';
|
|
7
|
+
|
|
1
8
|
/**
|
|
2
|
-
*
|
|
9
|
+
* Allows interaction with a SKY UX modal component.
|
|
10
|
+
* @internal
|
|
3
11
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
12
|
+
declare class SkyModalFixture {
|
|
13
|
+
#private;
|
|
14
|
+
constructor(fixture: ComponentFixture<unknown>, skyTestId: string);
|
|
15
|
+
/**
|
|
16
|
+
* The modal component's ARIA describedby attribute.
|
|
17
|
+
*/
|
|
18
|
+
get ariaDescribedBy(): string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* The modal component's ARIA labelledby attribute.
|
|
21
|
+
*/
|
|
22
|
+
get ariaLabelledBy(): string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The modal component's role attribute.
|
|
25
|
+
*/
|
|
26
|
+
get ariaRole(): string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Whether or not the modal is a full page modal.
|
|
29
|
+
*/
|
|
30
|
+
get fullPage(): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The size of the modal.
|
|
33
|
+
*/
|
|
34
|
+
get size(): string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Whether or not the modal is set up for tiled content.
|
|
37
|
+
*/
|
|
38
|
+
get tiledBody(): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Clicks the modal header's "close" button.
|
|
41
|
+
*/
|
|
42
|
+
clickHeaderCloseButton(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Clicks the modal header's "help" button.
|
|
45
|
+
*/
|
|
46
|
+
clickHelpButton(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the main modal element.
|
|
49
|
+
*/
|
|
50
|
+
getModalDiv(): any;
|
|
51
|
+
/**
|
|
52
|
+
* Returns the modal's content element.
|
|
53
|
+
*/
|
|
54
|
+
getModalContentEl(): any;
|
|
55
|
+
/**
|
|
56
|
+
* Returns the modal's footer element.
|
|
57
|
+
*/
|
|
58
|
+
getModalFooterEl(): any;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the modal's header element.
|
|
61
|
+
*/
|
|
62
|
+
getModalHeaderEl(): any;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* A set of criteria that can be used to filter a list of SkyConfirmButtonHarness instances.
|
|
67
|
+
*/
|
|
68
|
+
interface SkyConfirmButtonHarnessFilters extends Omit<BaseHarnessFilters, 'selector'> {
|
|
69
|
+
/**
|
|
70
|
+
* Only find instances whose content matches the given value.
|
|
71
|
+
*/
|
|
72
|
+
text?: string | RegExp;
|
|
73
|
+
/**
|
|
74
|
+
* Only find instances whose style matches the given value.
|
|
75
|
+
*/
|
|
76
|
+
styleType?: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Harness for interacting with a confirm component in tests.
|
|
81
|
+
*/
|
|
82
|
+
declare class SkyConfirmButtonHarness extends ComponentHarness {
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
static hostSelector: string;
|
|
87
|
+
/**
|
|
88
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
89
|
+
* `SkyConfirmButtonHarness` that meets certain criteria.
|
|
90
|
+
*/
|
|
91
|
+
static with(filters: SkyConfirmButtonHarnessFilters): HarnessPredicate<SkyConfirmButtonHarness>;
|
|
92
|
+
/**
|
|
93
|
+
* Clicks the confirm button.
|
|
94
|
+
*/
|
|
95
|
+
click(): Promise<void>;
|
|
96
|
+
/**
|
|
97
|
+
* Gets the button style of the confirm button.
|
|
98
|
+
*/
|
|
99
|
+
getStyleType(): Promise<SkyConfirmButtonStyleType>;
|
|
100
|
+
/**
|
|
101
|
+
* Gets the text content of the confirm button.
|
|
102
|
+
*/
|
|
103
|
+
getText(): Promise<string>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Harness for interacting with a confirm component in tests.
|
|
108
|
+
*/
|
|
109
|
+
declare class SkyConfirmHarness extends SkyComponentHarness {
|
|
110
|
+
#private;
|
|
111
|
+
/**
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
static hostSelector: string;
|
|
115
|
+
/**
|
|
116
|
+
* Clicks a confirm button.
|
|
117
|
+
*/
|
|
118
|
+
clickCustomButton(filters: SkyConfirmButtonHarnessFilters): Promise<void>;
|
|
119
|
+
/**
|
|
120
|
+
* Clicks a confirm button.
|
|
121
|
+
*/
|
|
122
|
+
clickOkButton(): Promise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* Gets the body of the confirm component.
|
|
125
|
+
*/
|
|
126
|
+
getBodyText(): Promise<string | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* Gets the confirm component's custom buttons.
|
|
129
|
+
*/
|
|
130
|
+
getCustomButtons(filters?: SkyConfirmButtonHarnessFilters): Promise<SkyConfirmButtonHarness[]>;
|
|
131
|
+
/**
|
|
132
|
+
* Gets the message of the confirm component.
|
|
133
|
+
*/
|
|
134
|
+
getMessageText(): Promise<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Gets the type of the confirm component.
|
|
137
|
+
*/
|
|
138
|
+
getType(): Promise<SkyConfirmType>;
|
|
139
|
+
/**
|
|
140
|
+
* Whether the whitespace is preserved on the confirm component.
|
|
141
|
+
*/
|
|
142
|
+
isWhiteSpacePreserved(): Promise<boolean>;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* A controller to be injected into tests, which mocks the confirm service
|
|
147
|
+
* and handles interactions with confirm dialogs.
|
|
148
|
+
*/
|
|
149
|
+
declare abstract class SkyConfirmTestingController {
|
|
150
|
+
/**
|
|
151
|
+
* Closes the confirm dialog with the "cancel" action.
|
|
152
|
+
*/
|
|
153
|
+
abstract cancel(): void;
|
|
154
|
+
/**
|
|
155
|
+
* Throws if a confirm dialog is open.
|
|
156
|
+
*/
|
|
157
|
+
abstract expectNone(): void;
|
|
158
|
+
/**
|
|
159
|
+
* Throws if the open confirm dialog does not match the provided configuration.
|
|
160
|
+
* @param config
|
|
161
|
+
*/
|
|
162
|
+
abstract expectOpen(config: SkyConfirmConfig): void;
|
|
163
|
+
/**
|
|
164
|
+
* Closes the confirm dialog with the provided action.
|
|
165
|
+
*/
|
|
166
|
+
abstract close(args: SkyConfirmCloseEventArgs): void;
|
|
167
|
+
/**
|
|
168
|
+
* Closes the confirm dialog with the "ok" action.
|
|
169
|
+
*/
|
|
170
|
+
abstract ok(): void;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Configures the `SkyConfirmTestingController` as the backend for the `SkyConfirmService`.
|
|
175
|
+
*/
|
|
176
|
+
declare class SkyConfirmTestingModule {
|
|
177
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyConfirmTestingModule, never>;
|
|
178
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyConfirmTestingModule, never, never, never>;
|
|
179
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SkyConfirmTestingModule>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* A controller to be injected into tests, which mocks the modal service
|
|
184
|
+
* and handles interactions with modal instances. For testing interactions
|
|
185
|
+
* with the modal component itself, use the `SkyModalHarness`.
|
|
186
|
+
*/
|
|
187
|
+
declare abstract class SkyModalTestingController {
|
|
188
|
+
/**
|
|
189
|
+
* Closes the topmost modal with the provided arguments.
|
|
190
|
+
* @param args Arguments to pass to the modal's close event.
|
|
191
|
+
*/
|
|
192
|
+
abstract closeTopModal(args?: SkyModalCloseArgs): void;
|
|
193
|
+
/**
|
|
194
|
+
* Throws if the provided value does not match the number of open modals.
|
|
195
|
+
*/
|
|
196
|
+
abstract expectCount(value: number): void;
|
|
197
|
+
/**
|
|
198
|
+
* Throws if modals are open.
|
|
199
|
+
*/
|
|
200
|
+
abstract expectNone(): void;
|
|
201
|
+
/**
|
|
202
|
+
* Throws if the given criteria does not match the topmost open modal.
|
|
203
|
+
*/
|
|
204
|
+
abstract expectOpen<TComponent>(component: Type<TComponent>): void;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Configures the `SkyModalTestingController` as the implementation for the `SkyModalService`.
|
|
209
|
+
*/
|
|
210
|
+
declare class SkyModalTestingModule {
|
|
211
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalTestingModule, never>;
|
|
212
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyModalTestingModule, never, never, never>;
|
|
213
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SkyModalTestingModule>;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* A set of criteria that can be used to filter a list of SkyModalHarness instances.
|
|
218
|
+
*/
|
|
219
|
+
interface SkyModalHarnessFilters extends SkyHarnessFilters {
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Harness for interacting with a modal component in tests.
|
|
224
|
+
*/
|
|
225
|
+
declare class SkyModalHarness extends SkyComponentHarness {
|
|
226
|
+
#private;
|
|
227
|
+
/**
|
|
228
|
+
* @internal
|
|
229
|
+
*/
|
|
230
|
+
static hostSelector: string;
|
|
231
|
+
/**
|
|
232
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
233
|
+
* `SkyModalHarness` that meets certain criteria
|
|
234
|
+
*/
|
|
235
|
+
static with(filters: SkyModalHarnessFilters): HarnessPredicate<SkyModalHarness>;
|
|
236
|
+
/**
|
|
237
|
+
* Clicks the help inline button.
|
|
238
|
+
*/
|
|
239
|
+
clickHelpInline(): Promise<void>;
|
|
240
|
+
/**
|
|
241
|
+
* Gets the aria-describedBy property of the modal.
|
|
242
|
+
* @deprecated
|
|
243
|
+
*/
|
|
244
|
+
getAriaDescribedBy(): Promise<string | null>;
|
|
245
|
+
/**
|
|
246
|
+
* Gets the aria-labelledBy property of the modal.
|
|
247
|
+
* @deprecated
|
|
248
|
+
*/
|
|
249
|
+
getAriaLabelledBy(): Promise<string | null>;
|
|
250
|
+
/**
|
|
251
|
+
* Gets the role of the modal.
|
|
252
|
+
*/
|
|
253
|
+
getAriaRole(): Promise<string | null>;
|
|
254
|
+
/**
|
|
255
|
+
* Gets the modal's heading text.
|
|
256
|
+
*/
|
|
257
|
+
getHeadingText(): Promise<string | undefined>;
|
|
258
|
+
/**
|
|
259
|
+
* Gets the help popover content.
|
|
260
|
+
*/
|
|
261
|
+
getHelpPopoverContent(): Promise<string | undefined>;
|
|
262
|
+
/**
|
|
263
|
+
* Gets the help popover title.
|
|
264
|
+
*/
|
|
265
|
+
getHelpPopoverTitle(): Promise<string | undefined>;
|
|
266
|
+
/**
|
|
267
|
+
* Gets the modal size.
|
|
268
|
+
*/
|
|
269
|
+
getSize(): Promise<string>;
|
|
270
|
+
/**
|
|
271
|
+
* Gets the wrapper class of the modal.
|
|
272
|
+
*/
|
|
273
|
+
getWrapperClass(): Promise<string | undefined>;
|
|
274
|
+
/**
|
|
275
|
+
* Whether the modal is full page.
|
|
276
|
+
*/
|
|
277
|
+
isFullPage(): Promise<boolean>;
|
|
278
|
+
/**
|
|
279
|
+
* Whether the modal has {@link SkyModalIsDirtyDirective.isDirty} set to dirty.
|
|
280
|
+
*/
|
|
281
|
+
isDirty(): Promise<boolean>;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export { SkyConfirmButtonHarness, SkyConfirmHarness, SkyConfirmTestingController, SkyConfirmTestingModule, SkyModalFixture, SkyModalHarness, SkyModalTestingController, SkyModalTestingModule };
|
|
285
|
+
export type { SkyConfirmButtonHarnessFilters, SkyModalHarnessFilters };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface SkyConfirmButtonConfig {
|
|
2
|
-
/**
|
|
3
|
-
* The identifier to return when users select the button to close the
|
|
4
|
-
* dialog. This is useful to determine which button users select.
|
|
5
|
-
*/
|
|
6
|
-
action: string;
|
|
7
|
-
/**
|
|
8
|
-
* The label for the button.
|
|
9
|
-
*/
|
|
10
|
-
text: string;
|
|
11
|
-
/**
|
|
12
|
-
* The style to apply to the button. The valid options are `primary` for
|
|
13
|
-
* the button that triggers the recommended or most-common action, `default` for
|
|
14
|
-
* buttons that trigger less-common actions, `link` for a button that closes
|
|
15
|
-
* the dialog, and `danger` for a primary action that deletes existing data.
|
|
16
|
-
*/
|
|
17
|
-
styleType?: 'primary' | 'default' | 'link' | string;
|
|
18
|
-
/**
|
|
19
|
-
* Whether to place focus on this button by default.
|
|
20
|
-
* @deprecated The confirm component automatically focuses the first interactive
|
|
21
|
-
* element of the dialog.
|
|
22
|
-
*/
|
|
23
|
-
autofocus?: boolean;
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type SkyConfirmButtonStyleType = 'primary' | 'default' | 'link' | 'danger';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SkyConfirmButtonAction } from './confirm-button-action';
|
|
2
|
-
import { SkyConfirmButtonStyleType } from './confirm-button-style-type';
|
|
3
|
-
/**
|
|
4
|
-
* The view model for button configuration that the confirm component uses.
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export interface SkyConfirmButton {
|
|
8
|
-
action: SkyConfirmButtonAction;
|
|
9
|
-
styleType: SkyConfirmButtonStyleType;
|
|
10
|
-
text: string;
|
|
11
|
-
autofocus?: boolean;
|
|
12
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { SkyConfirmButtonConfig } from './confirm-button-config';
|
|
2
|
-
import { SkyConfirmType } from './confirm-type';
|
|
3
|
-
export interface SkyConfirmConfig {
|
|
4
|
-
/**
|
|
5
|
-
* The message to display in bold at the top of the dialog.
|
|
6
|
-
* @required
|
|
7
|
-
*/
|
|
8
|
-
message: string;
|
|
9
|
-
/**
|
|
10
|
-
* Secondary text to display under the primary message.
|
|
11
|
-
*/
|
|
12
|
-
body?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The list of buttons to display when the `type` property is set to `SkyConfirmType.Custom`.
|
|
15
|
-
*/
|
|
16
|
-
buttons?: SkyConfirmButtonConfig[];
|
|
17
|
-
/**
|
|
18
|
-
* Whether to preserve whitespace and new lines inside the dialog.
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
preserveWhiteSpace?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* The preset button configuration for the dialog.
|
|
24
|
-
*/
|
|
25
|
-
type?: SkyConfirmType;
|
|
26
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { SkyConfirmCloseEventArgs } from './confirm-closed-event-args';
|
|
3
|
-
export declare class SkyConfirmInstance {
|
|
4
|
-
#private;
|
|
5
|
-
/**
|
|
6
|
-
* Fires when users select an action to close the dialog. This event
|
|
7
|
-
* returns a `SkyConfirmCloseEventArgs` object with information about the button that
|
|
8
|
-
* users select. It returns the `'cancel'` action when users press the <kbd>Escape</kbd> key.
|
|
9
|
-
*/
|
|
10
|
-
get closed(): Observable<SkyConfirmCloseEventArgs>;
|
|
11
|
-
/**
|
|
12
|
-
* Closes the confirm instance.
|
|
13
|
-
* @param args Specifies an object to emit to subscribers of the `closed` event
|
|
14
|
-
* of the confirm instance.
|
|
15
|
-
*/
|
|
16
|
-
close(args: SkyConfirmCloseEventArgs): void;
|
|
17
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare enum SkyConfirmType {
|
|
2
|
-
/**
|
|
3
|
-
* Allows you to define your own buttons using the `buttons` property of `SkyConfirmConfig`.
|
|
4
|
-
*/
|
|
5
|
-
Custom = 0,
|
|
6
|
-
/**
|
|
7
|
-
* Displays one button with an **OK** label and an `'ok'` action.
|
|
8
|
-
*/
|
|
9
|
-
OK = 1,
|
|
10
|
-
/**
|
|
11
|
-
* Displays two buttons with **Yes** and **Cancel** labels.
|
|
12
|
-
* @deprecated Use the `Custom` type to follow the guidance that labels
|
|
13
|
-
* should clearly indicate the actions that occur when users select buttons.
|
|
14
|
-
*/
|
|
15
|
-
YesCancel = 2,
|
|
16
|
-
/**
|
|
17
|
-
* Displays three buttons with **Yes**, **No**, and **Cancel** labels.
|
|
18
|
-
* @deprecated Use the `Custom` type to follow the guidance that labels
|
|
19
|
-
* should clearly indicate the actions that occur when users select buttons.
|
|
20
|
-
*/
|
|
21
|
-
YesNoCancel = 3
|
|
22
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { SkyConfirmButton } from './confirm-button';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class SkyConfirmComponent implements OnDestroy {
|
|
8
|
-
#private;
|
|
9
|
-
protected body: string | undefined;
|
|
10
|
-
protected bodyId: string;
|
|
11
|
-
protected buttons: SkyConfirmButton[] | undefined;
|
|
12
|
-
protected isOkType: boolean;
|
|
13
|
-
protected message: string;
|
|
14
|
-
protected preserveWhiteSpace: boolean;
|
|
15
|
-
constructor();
|
|
16
|
-
ngOnDestroy(): void;
|
|
17
|
-
protected close(button: SkyConfirmButton): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyConfirmComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyConfirmComponent, "sky-confirm", never, {}, {}, never, never, true, never>;
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated The `SkyConfirmModule` is no longer needed and can be removed from your application.
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare class SkyConfirmModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyConfirmModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyConfirmModule, never, never, never>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SkyConfirmModule>;
|
|
10
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SkyModalService } from '../modal/modal.service';
|
|
2
|
-
import { SkyConfirmConfig } from './confirm-config';
|
|
3
|
-
import { SkyConfirmInstance } from './confirm-instance';
|
|
4
|
-
import { SkyConfirmServiceInterface } from './confirm-service-interface';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Launches a dialog.
|
|
8
|
-
*/
|
|
9
|
-
export declare class SkyConfirmService implements SkyConfirmServiceInterface {
|
|
10
|
-
#private;
|
|
11
|
-
constructor(modalService: SkyModalService);
|
|
12
|
-
/**
|
|
13
|
-
* Opens a dialog using the specified options.
|
|
14
|
-
* @param config Specifies configuration options for the dialog.
|
|
15
|
-
*/
|
|
16
|
-
open(config: SkyConfirmConfig): SkyConfirmInstance;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyConfirmService, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SkyConfirmService>;
|
|
19
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { SkyAppWindowRef } from '@skyux/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class SkyModalAdapterService {
|
|
8
|
-
#private;
|
|
9
|
-
private static readonly MODAL_BODY_FULL_CLASS;
|
|
10
|
-
private static readonly MODAL_BODY_CLASS;
|
|
11
|
-
constructor(windowRef: SkyAppWindowRef);
|
|
12
|
-
toggleFullPageModalClass(isAddFull: boolean): void;
|
|
13
|
-
setPageScroll(isAdd: boolean): void;
|
|
14
|
-
getModalOpener(): HTMLElement;
|
|
15
|
-
scrollContentToTop(element: ElementRef): void;
|
|
16
|
-
/**
|
|
17
|
-
* Hides siblings of modal-host from screen readers
|
|
18
|
-
* @param hostElRef reference to modal-host element
|
|
19
|
-
*/
|
|
20
|
-
hideHostSiblingsFromScreenReaders(hostElRef: ElementRef): void;
|
|
21
|
-
focusFirstElement(modalEl: ElementRef): void;
|
|
22
|
-
/**
|
|
23
|
-
* Restores modal-host siblings to screen reader status prior to modals being opened
|
|
24
|
-
*/
|
|
25
|
-
unhideOrRestoreHostSiblingsFromScreenReaders(): void;
|
|
26
|
-
hidePreviousModalFromScreenReaders(topModal: ElementRef): void;
|
|
27
|
-
unhidePreviousModalFromScreenReaders(topModal: ElementRef): void;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalAdapterService, never>;
|
|
29
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SkyModalAdapterService>;
|
|
30
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SkyModalCloseArgs } from './modal-close-args';
|
|
2
|
-
/**
|
|
3
|
-
* Properties about the modal close action and a method to close the modal.
|
|
4
|
-
*/
|
|
5
|
-
export declare class SkyModalBeforeCloseHandler {
|
|
6
|
-
/**
|
|
7
|
-
* The object that would be emitted by a modal's `closed` event. This object
|
|
8
|
-
* can be used to determine whether to prompt the user for confirmation, such
|
|
9
|
-
* as when the user closes a modal form after entering data.
|
|
10
|
-
*/
|
|
11
|
-
readonly closeArgs: SkyModalCloseArgs;
|
|
12
|
-
/**
|
|
13
|
-
* Function to call to close the modal. Neglecting to call this function
|
|
14
|
-
* effectively cancels the close modal action.
|
|
15
|
-
*/
|
|
16
|
-
readonly closeModal: () => void;
|
|
17
|
-
constructor(closeModal: () => void, closeArgs: SkyModalCloseArgs);
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Contains an object with the data passed from users when
|
|
3
|
-
* a modal is closed and the reason that the modal was closed.
|
|
4
|
-
*/
|
|
5
|
-
export declare class SkyModalCloseArgs {
|
|
6
|
-
/**
|
|
7
|
-
* The reason the modal was closed.
|
|
8
|
-
* Options include `"close"`, `"save"`, and `"cancel"`.
|
|
9
|
-
*/
|
|
10
|
-
reason: string | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* The data passed from users when the modal is closed.
|
|
13
|
-
*/
|
|
14
|
-
data: any;
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare class SkyModalComponentAdapterService {
|
|
7
|
-
#private;
|
|
8
|
-
handleWindowChange(modalEl: ElementRef): void;
|
|
9
|
-
isFocusInFirstItem(event: KeyboardEvent, list: HTMLElement[]): boolean;
|
|
10
|
-
isFocusInLastItem(event: KeyboardEvent, list: HTMLElement[]): boolean;
|
|
11
|
-
isModalFocused(event: KeyboardEvent, modalEl: ElementRef): boolean;
|
|
12
|
-
focusLastElement(list: HTMLElement[]): boolean;
|
|
13
|
-
focusFirstElement(list: HTMLElement[]): boolean;
|
|
14
|
-
modalContentHasDirectChildViewkeeper(modalContentEl: ElementRef): boolean;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalComponentAdapterService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SkyModalComponentAdapterService>;
|
|
17
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export declare class SkyModalConfiguration {
|
|
6
|
-
fullPage?: boolean;
|
|
7
|
-
size?: string;
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated
|
|
10
|
-
*/
|
|
11
|
-
ariaDescribedBy?: string;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated
|
|
14
|
-
*/
|
|
15
|
-
ariaLabelledBy?: string;
|
|
16
|
-
ariaRole?: string;
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated
|
|
19
|
-
*/
|
|
20
|
-
tiledBody?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated
|
|
23
|
-
*/
|
|
24
|
-
helpKey?: string;
|
|
25
|
-
wrapperClass?: string;
|
|
26
|
-
constructor();
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalConfiguration, never>;
|
|
28
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SkyModalConfiguration>;
|
|
29
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@skyux/core";
|
|
3
|
-
/**
|
|
4
|
-
* Specifies content to display in the modal's body.
|
|
5
|
-
*/
|
|
6
|
-
export declare class SkyModalContentComponent {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalContentComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyModalContentComponent, "sky-modal-content", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.SkyResponsiveHostDirective; inputs: {}; outputs: {}; }]>;
|
|
9
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { SkyModalError } from './modal-error';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class SkyModalErrorsService {
|
|
8
|
-
#private;
|
|
9
|
-
formErrors: Observable<SkyModalError[] | undefined>;
|
|
10
|
-
constructor();
|
|
11
|
-
updateErrors(value: SkyModalError[] | undefined): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalErrorsService, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SkyModalErrorsService>;
|
|
14
|
-
}
|