fomantic-ui 2.9.3-beta.46 → 2.9.3-beta.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +1 -1
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +1 -1
- package/dist/components/api.min.js +1 -1
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +1 -1
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +1 -1
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +1 -1
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +1 -1
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- package/dist/components/emoji.css +1 -1
- package/dist/components/emoji.min.css +1 -1
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +1 -1
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +1 -1
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +1 -1
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +1 -1
- package/dist/components/menu.min.css +1 -1
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +1 -1
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +1 -1
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +1 -1
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +1 -1
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +1 -1
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +1 -1
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +1 -1
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +1 -1
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +1 -1
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +1 -1
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +1 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +53 -53
- package/dist/semantic.js +26 -26
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +1 -1
- package/package.json +1 -1
- package/types/fomantic-ui-accordion.d.ts +166 -172
- package/types/fomantic-ui-api.d.ts +418 -470
- package/types/fomantic-ui-calendar.d.ts +425 -479
- package/types/fomantic-ui-checkbox.d.ts +148 -194
- package/types/fomantic-ui-dimmer.d.ts +188 -265
- package/types/fomantic-ui-dropdown.d.ts +447 -666
- package/types/fomantic-ui-embed.d.ts +243 -289
- package/types/fomantic-ui-flyout.d.ts +259 -292
- package/types/fomantic-ui-form.d.ts +478 -607
- package/types/fomantic-ui-modal.d.ts +389 -471
- package/types/fomantic-ui-nag.d.ts +228 -277
- package/types/fomantic-ui-popup.d.ts +438 -534
- package/types/fomantic-ui-progress.d.ts +278 -352
- package/types/fomantic-ui-rating.d.ts +137 -168
- package/types/fomantic-ui-search.d.ts +359 -453
- package/types/fomantic-ui-shape.d.ts +152 -194
- package/types/fomantic-ui-sidebar.d.ts +315 -391
- package/types/fomantic-ui-slider.d.ts +259 -322
- package/types/fomantic-ui-sticky.d.ts +198 -244
- package/types/fomantic-ui-tab.d.ts +284 -350
- package/types/fomantic-ui-tests.ts +4 -2
- package/types/fomantic-ui-toast.d.ts +318 -424
- package/types/fomantic-ui-transition.d.ts +223 -273
- package/types/fomantic-ui-visibility.d.ts +286 -353
- package/types/index.d.ts +0 -1
@@ -57,315 +57,269 @@ declare namespace FomanticUI {
|
|
57
57
|
*/
|
58
58
|
(behavior: 'destroy'): JQuery;
|
59
59
|
|
60
|
-
<K extends keyof EmbedSettings>(behavior: 'setting', name: K, value?: undefined): EmbedSettings
|
61
|
-
<K extends keyof EmbedSettings>(behavior: 'setting', name: K, value: EmbedSettings
|
62
|
-
(behavior: 'setting', value: EmbedSettings): JQuery;
|
63
|
-
(settings?: EmbedSettings): JQuery;
|
60
|
+
<K extends keyof EmbedSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<EmbedSettings, keyof EmbedSettings>>;
|
61
|
+
<K extends keyof EmbedSettings>(behavior: 'setting', name: K, value: EmbedSettings[K]): JQuery;
|
62
|
+
(behavior: 'setting', value: Partial<Pick<EmbedSettings, keyof EmbedSettings>>): JQuery;
|
63
|
+
(settings?: Partial<Pick<EmbedSettings, keyof EmbedSettings>>): JQuery;
|
64
64
|
}
|
65
65
|
|
66
66
|
/**
|
67
67
|
* @see {@link https://fomantic-ui.com/modules/embed.html#/settings}
|
68
68
|
*/
|
69
|
-
|
70
|
-
|
71
|
-
namespace EmbedSettings {
|
72
|
-
type Param = (
|
73
|
-
| Pick<_Impl, 'icon'>
|
74
|
-
| Pick<_Impl, 'source'>
|
75
|
-
| Pick<_Impl, 'url'>
|
76
|
-
| Pick<_Impl, 'id'>
|
77
|
-
| Pick<_Impl, 'parameters'>
|
78
|
-
| Pick<_Impl, 'autoplay'>
|
79
|
-
| Pick<_Impl, 'color'>
|
80
|
-
| Pick<_Impl, 'hd'>
|
81
|
-
| Pick<_Impl, 'brandedUI'>
|
82
|
-
| Pick<_Impl, 'onCreate'>
|
83
|
-
| Pick<_Impl, 'onDisplay'>
|
84
|
-
| Pick<_Impl, 'onPlaceholderDisplay'>
|
85
|
-
| Pick<_Impl, 'onEmbed'>
|
86
|
-
| Pick<_Impl, 'selector'>
|
87
|
-
| Pick<_Impl, 'metadata'>
|
88
|
-
| Pick<_Impl, 'className'>
|
89
|
-
| Pick<_Impl, 'templates'>
|
90
|
-
| Pick<_Impl, 'name'>
|
91
|
-
| Pick<_Impl, 'namespace'>
|
92
|
-
| Pick<_Impl, 'silent'>
|
93
|
-
| Pick<_Impl, 'debug'>
|
94
|
-
| Pick<_Impl, 'performance'>
|
95
|
-
| Pick<_Impl, 'verbose'>
|
96
|
-
| Pick<_Impl, 'error'>
|
97
|
-
) &
|
98
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
99
|
-
|
100
|
-
interface _Impl {
|
101
|
-
// region Embed Settings
|
102
|
-
|
103
|
-
/**
|
104
|
-
* Specifies an icon to use with placeholder content.
|
105
|
-
* @default false
|
106
|
-
*/
|
107
|
-
icon: false | string;
|
108
|
-
|
109
|
-
/**
|
110
|
-
* Specifies a source to use, if no source is provided it will be determined from the domain of a specified url.
|
111
|
-
* @default false
|
112
|
-
*/
|
113
|
-
source: false | string;
|
114
|
-
|
115
|
-
/**
|
116
|
-
* Specifies a url to use for embed.
|
117
|
-
* @default false
|
118
|
-
*/
|
119
|
-
url: false | string;
|
120
|
-
|
121
|
-
/**
|
122
|
-
* Specifies an id value to replace with the '{id}' value found in templated urls.
|
123
|
-
* @default false
|
124
|
-
*/
|
125
|
-
id: false | string;
|
126
|
-
|
127
|
-
/**
|
128
|
-
* Specify an object containing key/value pairs to add to the iframes GET parameters.
|
129
|
-
* @default false
|
130
|
-
*/
|
131
|
-
parameters: false | object;
|
132
|
-
|
133
|
-
// endregion
|
134
|
-
|
135
|
-
// region Video Settings
|
136
|
-
|
137
|
-
/**
|
138
|
-
* Default setting 'auto' will only autoplay content when a placeholder is specified.
|
139
|
-
* Setting to 'true' or 'false' will force autoplay.
|
140
|
-
* @default 'auto'
|
141
|
-
*/
|
142
|
-
autoplay: 'auto' | boolean;
|
143
|
-
|
144
|
-
/**
|
145
|
-
* Default setting 'auto' will only autoplay content when a placeholder is specified.
|
146
|
-
* Setting to 'true' or 'false' will force autoplay.
|
147
|
-
* @default '#444444'
|
148
|
-
*/
|
149
|
-
color: string;
|
150
|
-
|
151
|
-
/**
|
152
|
-
* Whether to prefer HD content.
|
153
|
-
* @default true
|
154
|
-
*/
|
155
|
-
hd: boolean;
|
156
|
-
|
157
|
-
/**
|
158
|
-
* Whether to show networks branded UI like title cards, or after video calls to action.
|
159
|
-
* @default false
|
160
|
-
*/
|
161
|
-
brandedUI: boolean;
|
162
|
-
|
163
|
-
// endregion
|
164
|
-
|
165
|
-
// region Callbacks
|
166
|
-
|
167
|
-
/**
|
168
|
-
* Callback when iframe is generated.
|
169
|
-
*/
|
170
|
-
onCreate(this: JQuery, url: string): void;
|
171
|
-
|
172
|
-
/**
|
173
|
-
* Whenever an iframe contents is shown.
|
174
|
-
*/
|
175
|
-
onDisplay(this: JQuery): void;
|
176
|
-
|
177
|
-
/**
|
178
|
-
* Callback immediately before Embed is removed from DOM.
|
179
|
-
*/
|
180
|
-
onPlaceholderDisplay(this: JQuery): void;
|
181
|
-
|
182
|
-
/**
|
183
|
-
* Callback when module parameters are determined.
|
184
|
-
* Allows you to adjust parameters at run time by returning a new parameters object.
|
185
|
-
*/
|
186
|
-
onEmbed(this: JQuery, parameters: object): void;
|
187
|
-
|
188
|
-
// endregion
|
189
|
-
|
190
|
-
// region DOM Settings
|
191
|
-
|
192
|
-
/**
|
193
|
-
* DOM Selectors used internally.
|
194
|
-
* Selectors used to find parts of a module.
|
195
|
-
*/
|
196
|
-
selector: Embed.SelectorSettings;
|
197
|
-
|
198
|
-
/**
|
199
|
-
* HTML Data attributes used to store data.
|
200
|
-
*/
|
201
|
-
metadata: Embed.MetadataSettings;
|
202
|
-
|
203
|
-
/**
|
204
|
-
* Class names used to determine element state.
|
205
|
-
*/
|
206
|
-
className: Embed.ClassNameSettings;
|
207
|
-
|
208
|
-
/**
|
209
|
-
*
|
210
|
-
*/
|
211
|
-
templates: Embed.TemplateSettings;
|
212
|
-
|
213
|
-
// endregion
|
214
|
-
|
215
|
-
// region Debug Settings
|
216
|
-
|
217
|
-
/**
|
218
|
-
* Name used in log statements
|
219
|
-
*/
|
220
|
-
name: string;
|
221
|
-
|
222
|
-
/**
|
223
|
-
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
224
|
-
*/
|
225
|
-
namespace: string;
|
226
|
-
|
227
|
-
/**
|
228
|
-
* Silences all console output including error messages, regardless of other debug settings.
|
229
|
-
*/
|
230
|
-
silent: boolean;
|
231
|
-
|
232
|
-
/**
|
233
|
-
* Debug output to console
|
234
|
-
*/
|
235
|
-
debug: boolean;
|
236
|
-
|
237
|
-
/**
|
238
|
-
* Show console.table output with performance metrics
|
239
|
-
*/
|
240
|
-
performance: boolean;
|
241
|
-
|
242
|
-
/**
|
243
|
-
* Debug output includes all internal behaviors
|
244
|
-
*/
|
245
|
-
verbose: boolean;
|
246
|
-
|
247
|
-
error: Embed.ErrorSettings;
|
248
|
-
|
249
|
-
// endregion
|
250
|
-
}
|
69
|
+
interface EmbedSettings {
|
70
|
+
// region Embed Settings
|
251
71
|
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
258
|
-
|
259
|
-
interface _Impl {
|
260
|
-
/**
|
261
|
-
* @default '.embed'
|
262
|
-
*/
|
263
|
-
embed: string;
|
264
|
-
|
265
|
-
/**
|
266
|
-
* @default '.placeholder'
|
267
|
-
*/
|
268
|
-
placeholder: string;
|
269
|
-
|
270
|
-
/**
|
271
|
-
* @default '.play'
|
272
|
-
*/
|
273
|
-
play: string;
|
274
|
-
}
|
275
|
-
}
|
72
|
+
/**
|
73
|
+
* Specifies an icon to use with placeholder content.
|
74
|
+
* @default false
|
75
|
+
*/
|
76
|
+
icon: false | string;
|
276
77
|
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
| Pick<_Impl, 'icon'>
|
283
|
-
| Pick<_Impl, 'placeholder'>
|
284
|
-
| Pick<_Impl, 'source'>
|
285
|
-
| Pick<_Impl, 'url'>
|
286
|
-
) &
|
287
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
288
|
-
|
289
|
-
interface _Impl {
|
290
|
-
/**
|
291
|
-
* @default 'id'
|
292
|
-
*/
|
293
|
-
id: string;
|
294
|
-
|
295
|
-
/**
|
296
|
-
* @default 'icon'
|
297
|
-
*/
|
298
|
-
icon: string;
|
299
|
-
|
300
|
-
/**
|
301
|
-
* @default 'placeholder'
|
302
|
-
*/
|
303
|
-
placeholder: string;
|
304
|
-
|
305
|
-
/**
|
306
|
-
* @default 'source'
|
307
|
-
*/
|
308
|
-
source: string;
|
309
|
-
|
310
|
-
/**
|
311
|
-
* @default 'url'
|
312
|
-
*/
|
313
|
-
url: string;
|
314
|
-
}
|
315
|
-
}
|
78
|
+
/**
|
79
|
+
* Specifies a source to use, if no source is provided it will be determined from the domain of a specified url.
|
80
|
+
* @default false
|
81
|
+
*/
|
82
|
+
source: false | string;
|
316
83
|
|
317
|
-
|
84
|
+
/**
|
85
|
+
* Specifies a url to use for embed.
|
86
|
+
* @default false
|
87
|
+
*/
|
88
|
+
url: false | string;
|
318
89
|
|
319
|
-
|
320
|
-
|
90
|
+
/**
|
91
|
+
* Specifies an id value to replace with the '{id}' value found in templated urls.
|
92
|
+
* @default false
|
93
|
+
*/
|
94
|
+
id: false | string;
|
321
95
|
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
96
|
+
/**
|
97
|
+
* Specify an object containing key/value pairs to add to the iframes GET parameters.
|
98
|
+
* @default false
|
99
|
+
*/
|
100
|
+
parameters: false | object;
|
327
101
|
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
102
|
+
// endregion
|
103
|
+
|
104
|
+
// region Video Settings
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Default setting 'auto' will only autoplay content when a placeholder is specified.
|
108
|
+
* Setting to 'true' or 'false' will force autoplay.
|
109
|
+
* @default 'auto'
|
110
|
+
*/
|
111
|
+
autoplay: 'auto' | boolean;
|
112
|
+
|
113
|
+
/**
|
114
|
+
* Default setting 'auto' will only autoplay content when a placeholder is specified.
|
115
|
+
* Setting to 'true' or 'false' will force autoplay.
|
116
|
+
* @default '#444'
|
117
|
+
*/
|
118
|
+
color: string;
|
334
119
|
|
335
|
-
|
120
|
+
/**
|
121
|
+
* Whether to prefer HD content.
|
122
|
+
* @default true
|
123
|
+
*/
|
124
|
+
hd: boolean;
|
125
|
+
|
126
|
+
/**
|
127
|
+
* Whether to show networks branded UI like title cards, or after video calls to action.
|
128
|
+
* @default false
|
129
|
+
*/
|
130
|
+
brandedUI: boolean;
|
131
|
+
|
132
|
+
// endregion
|
336
133
|
|
337
|
-
|
338
|
-
|
134
|
+
// region Callbacks
|
135
|
+
|
136
|
+
/**
|
137
|
+
* Callback when iframe is generated.
|
138
|
+
*/
|
139
|
+
onCreate(this: JQuery, url: string): void;
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Whenever an iframe contents is shown.
|
143
|
+
*/
|
144
|
+
onDisplay(this: JQuery): void;
|
145
|
+
|
146
|
+
/**
|
147
|
+
* Whenever the module is cleared.
|
148
|
+
*/
|
149
|
+
onReset(this: JQuery): void;
|
150
|
+
|
151
|
+
/**
|
152
|
+
* Callback immediately before Embed is removed from DOM.
|
153
|
+
*/
|
154
|
+
onPlaceholderDisplay(this: JQuery): void;
|
155
|
+
|
156
|
+
/**
|
157
|
+
* Callback when module parameters are determined.
|
158
|
+
* Allows you to adjust parameters at run time by returning a new parameters object.
|
159
|
+
*/
|
160
|
+
onEmbed(this: JQuery, parameters: object): void;
|
339
161
|
|
340
|
-
|
341
|
-
/**
|
342
|
-
* @default function
|
343
|
-
*/
|
344
|
-
iframe: Function;
|
162
|
+
// endregion
|
345
163
|
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
164
|
+
// region DOM Settings
|
165
|
+
|
166
|
+
/**
|
167
|
+
* DOM Selectors used internally.
|
168
|
+
* Selectors used to find parts of a module.
|
169
|
+
*/
|
170
|
+
selector: Embed.SelectorSettings;
|
171
|
+
|
172
|
+
/**
|
173
|
+
* HTML Data attributes used to store data.
|
174
|
+
*/
|
175
|
+
metadata: Embed.MetadataSettings;
|
176
|
+
|
177
|
+
/**
|
178
|
+
* Class names used to determine element state.
|
179
|
+
*/
|
180
|
+
className: Embed.ClassNameSettings;
|
181
|
+
|
182
|
+
/**
|
183
|
+
*
|
184
|
+
*/
|
185
|
+
templates: Embed.TemplateSettings;
|
186
|
+
|
187
|
+
// endregion
|
188
|
+
|
189
|
+
// region Debug Settings
|
190
|
+
|
191
|
+
/**
|
192
|
+
* Name used in log statements
|
193
|
+
* @default 'Embed''
|
194
|
+
*/
|
195
|
+
name: string;
|
196
|
+
|
197
|
+
/**
|
198
|
+
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
199
|
+
* @default 'embed''
|
200
|
+
*/
|
201
|
+
namespace: string;
|
202
|
+
|
203
|
+
/**
|
204
|
+
* Silences all console output including error messages, regardless of other debug settings.
|
205
|
+
* @default false
|
206
|
+
*/
|
207
|
+
silent: boolean;
|
208
|
+
|
209
|
+
/**
|
210
|
+
* Debug output to console
|
211
|
+
* @default false
|
212
|
+
*/
|
213
|
+
debug: boolean;
|
214
|
+
|
215
|
+
/**
|
216
|
+
* Show console.table output with performance metrics
|
217
|
+
* @default true
|
218
|
+
*/
|
219
|
+
performance: boolean;
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Debug output includes all internal behaviors
|
223
|
+
* @default false
|
224
|
+
*/
|
225
|
+
verbose: boolean;
|
226
|
+
|
227
|
+
error: Embed.ErrorSettings;
|
228
|
+
|
229
|
+
// endregion
|
230
|
+
}
|
231
|
+
|
232
|
+
namespace Embed {
|
233
|
+
type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
|
234
|
+
type MetadataSettings = Partial<Pick<Settings.Metadatas, keyof Settings.Metadatas>>;
|
235
|
+
type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
|
236
|
+
type TemplateSettings = Partial<Pick<Settings.Templates, keyof Settings.Templates>>;
|
237
|
+
type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
|
238
|
+
|
239
|
+
namespace Settings {
|
240
|
+
interface Selectors {
|
241
|
+
/**
|
242
|
+
* @default '.embed'
|
243
|
+
*/
|
244
|
+
embed: string;
|
245
|
+
|
246
|
+
/**
|
247
|
+
* @default '.placeholder'
|
248
|
+
*/
|
249
|
+
placeholder: string;
|
250
|
+
|
251
|
+
/**
|
252
|
+
* @default '.icon'
|
253
|
+
*/
|
254
|
+
icon: string;
|
351
255
|
}
|
352
256
|
|
353
|
-
|
257
|
+
interface Metadatas {
|
258
|
+
/**
|
259
|
+
* @default 'id'
|
260
|
+
*/
|
261
|
+
id: string;
|
262
|
+
|
263
|
+
/**
|
264
|
+
* @default 'icon'
|
265
|
+
*/
|
266
|
+
icon: string;
|
267
|
+
|
268
|
+
/**
|
269
|
+
* @default 'placeholder'
|
270
|
+
*/
|
271
|
+
placeholder: string;
|
272
|
+
|
273
|
+
/**
|
274
|
+
* @default 'source'
|
275
|
+
*/
|
276
|
+
source: string;
|
277
|
+
|
278
|
+
/**
|
279
|
+
* @default 'url'
|
280
|
+
*/
|
281
|
+
url: string;
|
282
|
+
}
|
283
|
+
|
284
|
+
interface ClassNames {
|
285
|
+
/**
|
286
|
+
* @default 'active'
|
287
|
+
*/
|
288
|
+
active: string;
|
354
289
|
|
355
|
-
|
356
|
-
|
290
|
+
/**
|
291
|
+
* @default 'embed'
|
292
|
+
*/
|
293
|
+
embed: string;
|
294
|
+
}
|
295
|
+
|
296
|
+
interface Templates {
|
297
|
+
/**
|
298
|
+
* @default function
|
299
|
+
*/
|
300
|
+
deQuote(string: string, encode: boolean): string;
|
301
|
+
|
302
|
+
/**
|
303
|
+
* @default function
|
304
|
+
*/
|
305
|
+
iframe(url: string, parameters: any): string;
|
306
|
+
|
307
|
+
/**
|
308
|
+
* @default function
|
309
|
+
*/
|
310
|
+
placeholder(image: string, icon: string): string;
|
311
|
+
}
|
357
312
|
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
313
|
+
interface Errors {
|
314
|
+
/**
|
315
|
+
* @default 'No URL specified'
|
316
|
+
*/
|
317
|
+
noURL: string;
|
363
318
|
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
}
|
319
|
+
/**
|
320
|
+
* @default 'The method you called is not defined'
|
321
|
+
*/
|
322
|
+
method: string;
|
369
323
|
}
|
370
324
|
}
|
371
325
|
}
|