@ember-eui/core 5.0.0-alpha.1 → 5.0.0-alpha.3
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/addon/components/eui-combo-box/index.ts +1 -1
- package/addon/components/eui-empty-prompt/index.hbs +79 -73
- package/addon/components/eui-field-number/types.ts +4 -1
- package/addon/components/eui-flyout/index.ts +1 -1
- package/addon/components/eui-form-control-layout-custom-icon/types.ts +3 -1
- package/addon/components/eui-form-control-layout-icons/types.ts +4 -1
- package/addon/components/eui-global-toast-list/index.ts +5 -6
- package/addon/components/eui-image/index.ts +7 -2
- package/addon/components/eui-loading-logo/index.hbs +14 -0
- package/addon/components/eui-page-header/index.hbs +2 -2
- package/addon/components/eui-page-header-content/index.ts +1 -1
- package/addon/components/eui-page-template/index.ts +1 -1
- package/addon/components/eui-portal/index.ts +2 -1
- package/addon/components/eui-range-levels/index.ts +14 -3
- package/addon/components/eui-split-panel/inner/index.hbs +2 -1
- package/addon/components/eui-tab/index.hbs +57 -68
- package/addon/components/eui-tab/index.ts +6 -7
- package/addon/components/eui-tabs/index.hbs +2 -10
- package/addon/helpers/arg-or-default.ts +4 -1
- package/addon/helpers/eui-palette.ts +4 -1
- package/addon/helpers/get-tab-id.ts +8 -2
- package/addon/helpers/hex-to-rgb.ts +4 -1
- package/addon/helpers/inline-styles.ts +10 -3
- package/addon/helpers/is-within-number.ts +4 -1
- package/addon/helpers/starts-with.ts +3 -1
- package/addon/initializers/eui-config.ts +12 -0
- package/addon/modifiers/mutation-observer.ts +4 -1
- package/addon/modifiers/outside-click-detector.ts +4 -4
- package/addon/utils/accesibility/cascading-menu-keys.ts +8 -1
- package/addon/utils/code/utils.ts +1 -1
- package/addon/utils/color/color_palette.ts +3 -3
- package/addon/utils/color/eui_palettes.ts +23 -6
- package/addon/utils/css-mappings/eui-health.ts +1 -4
- package/addon/utils/css-mappings/eui-icon.ts +1 -2
- package/addon/utils/css-mappings/eui-list-group.ts +5 -1
- package/addon/utils/css-mappings/eui-modal.ts +5 -1
- package/addon/utils/markdown/markdown-types.ts +10 -11
- package/addon/utils/markdown/plugins/markdown-default-plugins/parsing-plugins.ts +1 -1
- package/addon/utils/markdown/plugins/markdown-default-plugins/plugins.ts +1 -1
- package/addon/utils/markdown/plugins/markdown-default-plugins/processing-plugins.ts +1 -1
- package/addon/utils/markdown/plugins/markdown-default-plugins/ui-plugins.ts +1 -1
- package/addon/utils/transition.ts +10 -3
- package/addon/version.ts +6 -0
- package/app/components/eui-avatar/index.js +1 -1
- package/app/components/eui-badge-group/badge-group-item/index.js +1 -1
- package/app/components/eui-badge-group/index.js +1 -1
- package/app/components/eui-button-icon/index.js +1 -1
- package/app/components/eui-combo-box/create-option/index.js +1 -1
- package/app/components/eui-comment/eui-comment-timeline/index.js +1 -1
- package/app/components/eui-comment/index.js +1 -1
- package/app/components/eui-dual-range/index.js +1 -1
- package/app/components/eui-field-number/index.js +1 -1
- package/app/components/eui-field-password/index.js +1 -1
- package/app/components/eui-field-search/index.js +1 -1
- package/app/components/eui-field-text/index.js +1 -1
- package/app/components/eui-file-picker/index.js +1 -1
- package/app/components/eui-form/index.js +1 -1
- package/app/components/eui-form-control-layout/index.js +1 -1
- package/app/components/eui-form-control-layout-clear-button/index.js +1 -1
- package/app/components/eui-form-control-layout-custom-icon/index.js +1 -1
- package/app/components/eui-form-control-layout-delimited/index.js +1 -1
- package/app/components/eui-form-control-layout-icons/index.js +1 -1
- package/app/components/eui-form-error-text/index.js +1 -1
- package/app/components/eui-form-fieldset/index.js +1 -1
- package/app/components/eui-form-help-text/index.js +1 -1
- package/app/components/eui-form-label/index.js +1 -1
- package/app/components/eui-form-legend/index.js +1 -1
- package/app/components/eui-form-row/index.js +1 -1
- package/app/components/eui-image.js +1 -1
- package/app/components/eui-list-group/index.js +1 -1
- package/app/components/eui-list-group-item/index.js +1 -1
- package/app/components/eui-loading-logo/index.js +1 -0
- package/app/components/eui-overlay-mask.js +1 -1
- package/app/components/eui-page/index.js +1 -1
- package/app/components/eui-page-body/index.js +1 -1
- package/app/components/eui-page-content/index.js +1 -1
- package/app/components/eui-page-content-body/index.js +1 -1
- package/app/components/eui-page-content-header/index.js +1 -1
- package/app/components/eui-page-content-header-section/index.js +1 -1
- package/app/components/eui-page-header/index.js +1 -1
- package/app/components/eui-page-header-content/index.js +1 -1
- package/app/components/eui-page-header-section/index.js +1 -1
- package/app/components/eui-panel/index.js +1 -1
- package/app/components/eui-popover/index.js +1 -1
- package/app/components/eui-popover-footer/index.js +1 -1
- package/app/components/eui-popover-title/index.js +1 -1
- package/app/components/eui-portal/index.js +1 -1
- package/app/components/eui-progress/index.js +1 -1
- package/app/components/eui-radio/index.js +1 -1
- package/app/components/eui-radio-group/index.js +1 -1
- package/app/components/eui-range/index.js +1 -1
- package/app/components/eui-range-highlight/index.js +1 -1
- package/app/components/eui-range-input/index.js +1 -1
- package/app/components/eui-range-label/index.js +1 -1
- package/app/components/eui-range-levels/index.js +1 -1
- package/app/components/eui-range-slider/index.js +1 -1
- package/app/components/eui-range-thumb/index.js +1 -1
- package/app/components/eui-range-ticks/index.js +1 -1
- package/app/components/eui-range-tooltip/index.js +1 -1
- package/app/components/eui-range-track/index.js +1 -1
- package/app/components/eui-range-wrapper/index.js +1 -1
- package/app/components/eui-select/index.js +1 -1
- package/app/components/eui-side-nav/index.js +1 -1
- package/app/components/eui-side-nav-item/button/index.js +1 -1
- package/app/components/eui-side-nav-item/index.js +1 -1
- package/app/components/eui-spacer/index.js +1 -1
- package/app/components/eui-switch/index.js +1 -1
- package/app/components/eui-tab/index.js +1 -1
- package/app/components/eui-tabs/index.js +1 -1
- package/app/components/eui-text/index.js +1 -1
- package/app/components/eui-text-align/index.js +1 -1
- package/app/components/eui-text-area/index.js +1 -1
- package/app/components/eui-text-color/index.js +1 -1
- package/app/components/eui-title/index.js +1 -1
- package/app/components/eui-tool-tip/index.js +1 -1
- package/app/components/eui-tool-tip-popover/index.js +1 -1
- package/app/helpers/eui-palette.js +1 -1
- package/app/helpers/hex-to-rgb.js +1 -1
- package/app/initializers/eui-config.js +1 -0
- package/docs/display/avatar.md +1 -9
- package/docs/display/badge-demo/demo1.md +93 -95
- package/docs/display/badge-demo/demo2.md +15 -17
- package/docs/display/badge-demo/demo3.md +19 -22
- package/docs/display/badge-demo/demo4.md +12 -14
- package/docs/display/badge-demo/demo5.md +16 -18
- package/docs/display/badge-demo/demo6.md +39 -51
- package/docs/display/badge-demo/demo7.md +43 -47
- package/docs/display/badge-demo/demo8.md +3 -6
- package/docs/display/badge.md +1 -9
- package/docs/display/callout.md +3 -9
- package/docs/display/comment-list.md +1 -9
- package/docs/display/description-list-demo/demo1.md +0 -1
- package/docs/display/description-list.md +1 -9
- package/docs/display/empty-prompt-demo/demo1.md +0 -24
- package/docs/display/empty-prompt-demo/demo2.md +16 -0
- package/docs/display/empty-prompt-demo/demo3.md +67 -0
- package/docs/display/empty-prompt-demo/demo4.md +21 -0
- package/docs/display/empty-prompt-demo/demo5.md +33 -0
- package/docs/display/empty-prompt-demo/demo6.md +43 -0
- package/docs/display/empty-prompt-demo/demo7.md +162 -0
- package/docs/display/empty-prompt-demo/demo8.md +57 -0
- package/docs/display/empty-prompt.md +1 -11
- package/docs/display/health-demo/demo1.md +0 -1
- package/docs/display/health.md +4 -10
- package/docs/display/icons.md +1 -9
- package/docs/display/image.md +6 -10
- package/docs/display/list-group.md +1 -9
- package/docs/display/loading/logo-demo/demo1.md +15 -0
- package/docs/display/loading/logo.md +1 -0
- package/docs/display/progress.md +1 -9
- package/docs/display/stat.md +4 -11
- package/docs/display/text.md +4 -12
- package/docs/display/title.md +1 -9
- package/docs/display/tool-tip-demo/demo1.md +40 -42
- package/docs/display/tool-tip-demo/demo2.md +24 -27
- package/docs/display/tool-tip-demo/demo3.md +33 -35
- package/docs/display/tool-tip-demo/demo4.md +4 -7
- package/docs/display/tool-tip.md +6 -10
- package/docs/editors/code/code-block.md +3 -9
- package/docs/editors/code/inline.md +1 -9
- package/docs/editors/markdown-editor/base-editor.md +1 -9
- package/docs/forms/form-controls/checkbox/index.md +1 -9
- package/docs/forms/form-controls/checkbox-group/index.md +1 -9
- package/docs/forms/form-controls/combo-box/index.md +1 -9
- package/docs/forms/form-controls/file-picker/index.md +1 -9
- package/docs/forms/form-controls/form-control-layout/index.md +1 -9
- package/docs/forms/form-controls/form-control-layout-delimited/index.md +1 -9
- package/docs/forms/form-controls/number-field/index.md +1 -9
- package/docs/forms/form-controls/password-field/index.md +1 -9
- package/docs/forms/form-controls/radio/index.md +1 -9
- package/docs/forms/form-controls/radio-group/index.md +1 -9
- package/docs/forms/form-controls/range/index.md +1 -9
- package/docs/forms/form-controls/search-field/index.md +1 -9
- package/docs/forms/form-controls/select/index.md +1 -9
- package/docs/forms/form-controls/switch/index.md +1 -9
- package/docs/forms/form-controls/text-field/index.md +1 -9
- package/docs/forms/form-controls/textarea/index.md +1 -10
- package/docs/forms/form-layouts/described-form-groups.md +1 -9
- package/docs/layout/accordion.md +1 -10
- package/docs/layout/bottom-bar.md +1 -9
- package/docs/layout/flex.md +1 -9
- package/docs/layout/flyout.md +1 -9
- package/docs/layout/header.md +1 -9
- package/docs/layout/horizontal-rule.md +1 -9
- package/docs/layout/modal.md +1 -9
- package/docs/layout/page.md +1 -9
- package/docs/layout/panel.md +2 -10
- package/docs/layout/popover.md +1 -9
- package/docs/navigation/breadcrumbs.md +1 -9
- package/docs/navigation/button.md +1 -9
- package/docs/navigation/collapsible-nav.md +1 -9
- package/docs/navigation/key-pad-menu.md +1 -9
- package/docs/navigation/link.md +1 -9
- package/docs/navigation/side-nav.md +1 -9
- package/docs/navigation/steps.md +1 -9
- package/docs/navigation/tabs-demo/demo1.md +38 -111
- package/docs/navigation/tabs-demo/demo2.md +56 -0
- package/docs/navigation/tabs-demo/demo3.md +79 -0
- package/docs/navigation/tabs-demo/demo4.md +102 -0
- package/docs/navigation/tabs.md +1 -9
- package/docs/utilities/auto-sizer.md +1 -9
- package/docs/utilities/copy.md +1 -9
- package/docs/utilities/mutation-observer.md +1 -9
- package/docs/utilities/outside-click-detector.md +1 -9
- package/docs/utilities/overlay-mask.md +1 -9
- package/docs/utilities/portal.md +1 -9
- package/docs/utilities/resize-observer.md +1 -9
- package/docs/utilities/responsive.md +1 -9
- package/index.js +4 -1
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//@ts-ignore
|
|
2
|
+
import { registerLibrary } from '@ember-eui/core/version';
|
|
3
|
+
// import 'ember-basic-dropdown/vendor/ember-basic-dropdown.css';
|
|
4
|
+
// import '@elastic/eui/dist/eui_theme_amsterdam_light.css';
|
|
5
|
+
|
|
6
|
+
export function initialize(): void {
|
|
7
|
+
registerLibrary();
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
initialize
|
|
12
|
+
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { modifier } from 'ember-modifier';
|
|
2
2
|
|
|
3
|
-
const hasOwnProperty = function (
|
|
3
|
+
const hasOwnProperty = function (
|
|
4
|
+
obj: MutationObserverInit,
|
|
5
|
+
name: string
|
|
6
|
+
): boolean {
|
|
4
7
|
return Object.prototype.hasOwnProperty.call(obj, name);
|
|
5
8
|
};
|
|
6
9
|
|
|
@@ -31,7 +31,7 @@ export default class OutsideClickDetector extends Modifier<OutsideClickDetectorM
|
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
const event =
|
|
34
|
+
const event = e as unknown as EuiEvent;
|
|
35
35
|
|
|
36
36
|
if (
|
|
37
37
|
(event.euiGeneratedBy && event.euiGeneratedBy.includes(this.id)) ||
|
|
@@ -78,9 +78,9 @@ export default class OutsideClickDetector extends Modifier<OutsideClickDetectorM
|
|
|
78
78
|
// of detector ids that have been encountered;
|
|
79
79
|
|
|
80
80
|
if (event.hasOwnProperty('euiGeneratedBy')) {
|
|
81
|
-
(
|
|
81
|
+
(event as unknown as EuiEvent).euiGeneratedBy.push(this.id);
|
|
82
82
|
} else {
|
|
83
|
-
(
|
|
83
|
+
(event as unknown as EuiEvent).euiGeneratedBy = [this.id];
|
|
84
84
|
}
|
|
85
85
|
if (cb) cb(event);
|
|
86
86
|
}
|
|
@@ -88,7 +88,7 @@ export default class OutsideClickDetector extends Modifier<OutsideClickDetectorM
|
|
|
88
88
|
@action
|
|
89
89
|
onChildMouseDown(event: MouseEvent): void {
|
|
90
90
|
this.onChildClick(event, (e) => {
|
|
91
|
-
const nativeEvent =
|
|
91
|
+
const nativeEvent = e as unknown as EuiEvent;
|
|
92
92
|
this.capturedDownIds = nativeEvent.euiGeneratedBy;
|
|
93
93
|
if (this.args.named.onMouseDown) this.args.named.onMouseDown(e);
|
|
94
94
|
if (this.args.named.onTouchStart) this.args.named.onTouchStart(e);
|
|
@@ -28,7 +28,14 @@
|
|
|
28
28
|
* TAB: Normal tabbing navigation is still supported.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
import {
|
|
31
|
+
import {
|
|
32
|
+
ARROW_DOWN,
|
|
33
|
+
ARROW_LEFT,
|
|
34
|
+
ARROW_RIGHT,
|
|
35
|
+
ARROW_UP,
|
|
36
|
+
ESCAPE,
|
|
37
|
+
TAB
|
|
38
|
+
} from '../keys';
|
|
32
39
|
|
|
33
40
|
export const cascadingMenuKeys = {
|
|
34
41
|
ARROW_DOWN,
|
|
@@ -70,7 +70,7 @@ export const getHtmlContent = (nodes: RefractorNode[]) => {
|
|
|
70
70
|
let classNames = [];
|
|
71
71
|
if (properties) {
|
|
72
72
|
if (properties.className) {
|
|
73
|
-
classNames.push(...
|
|
73
|
+
classNames.push(...properties.className);
|
|
74
74
|
}
|
|
75
75
|
for (let key in properties) {
|
|
76
76
|
if (attributes.includes(key)) {
|
|
@@ -102,7 +102,7 @@ export function colorPalette(
|
|
|
102
102
|
const stepsLeft = createSteps(hexStart, numColorsLeft);
|
|
103
103
|
const stepsRight = createSteps(hexEnd, numColorsRight);
|
|
104
104
|
|
|
105
|
-
return (
|
|
106
|
-
|
|
107
|
-
);
|
|
105
|
+
return (
|
|
106
|
+
even && diverging ? stepsLeft.slice(0, stepsLeft.length - 1) : stepsLeft
|
|
107
|
+
).concat(stepsRight.slice(1));
|
|
108
108
|
}
|
|
@@ -96,7 +96,8 @@ export const euiPaletteColorBlind = ({
|
|
|
96
96
|
// Sort the colors based on the color wheel, but shifting the values based on sortShift
|
|
97
97
|
base = [...base].sort(function (a, b) {
|
|
98
98
|
return (
|
|
99
|
-
chroma(a).set('hsl.h', sortShift).hsl()[0] -
|
|
99
|
+
chroma(a).set('hsl.h', sortShift).hsl()[0] -
|
|
100
|
+
chroma(b).set('hsl.h', sortShift).hsl()[0]
|
|
100
101
|
);
|
|
101
102
|
});
|
|
102
103
|
}
|
|
@@ -134,9 +135,13 @@ export const euiPaletteColorBlind = ({
|
|
|
134
135
|
return colors;
|
|
135
136
|
};
|
|
136
137
|
|
|
137
|
-
export const euiPaletteColorBlindBehindText = (
|
|
138
|
+
export const euiPaletteColorBlindBehindText = (
|
|
139
|
+
paletteProps: EuiPaletteColorBlindProps = {}
|
|
140
|
+
) => {
|
|
138
141
|
const originalPalette = euiPaletteColorBlind(paletteProps);
|
|
139
|
-
const newPalette = originalPalette.map((color) =>
|
|
142
|
+
const newPalette = originalPalette.map((color) =>
|
|
143
|
+
chroma(color).brighten(0.5).hex()
|
|
144
|
+
);
|
|
140
145
|
return newPalette;
|
|
141
146
|
};
|
|
142
147
|
|
|
@@ -160,7 +165,11 @@ export const euiPaletteForStatus = function (steps: number): EuiPalette {
|
|
|
160
165
|
}
|
|
161
166
|
if (steps <= 3) {
|
|
162
167
|
return euiPalette(
|
|
163
|
-
[
|
|
168
|
+
[
|
|
169
|
+
euiPaletteColorBlind()[0],
|
|
170
|
+
euiPaletteColorBlind()[5],
|
|
171
|
+
lightNegativeColor
|
|
172
|
+
],
|
|
164
173
|
steps,
|
|
165
174
|
true
|
|
166
175
|
);
|
|
@@ -196,7 +205,11 @@ export const euiPaletteComplimentary = function (steps: number): EuiPalette {
|
|
|
196
205
|
return [euiPaletteColorBlind()[1]];
|
|
197
206
|
}
|
|
198
207
|
|
|
199
|
-
return euiPalette(
|
|
208
|
+
return euiPalette(
|
|
209
|
+
[euiPaletteColorBlind()[1], euiPaletteColorBlind()[7]],
|
|
210
|
+
steps,
|
|
211
|
+
true
|
|
212
|
+
);
|
|
200
213
|
};
|
|
201
214
|
|
|
202
215
|
export const euiPaletteNegative = function (steps: number): EuiPalette {
|
|
@@ -236,5 +249,9 @@ export const euiPaletteGray = function (steps: number): EuiPalette {
|
|
|
236
249
|
return ['#98a2b3'];
|
|
237
250
|
}
|
|
238
251
|
|
|
239
|
-
return euiPalette(
|
|
252
|
+
return euiPalette(
|
|
253
|
+
['white', '#d3dae6', '#98a2b3', '#69707d', '#343741'],
|
|
254
|
+
steps,
|
|
255
|
+
false
|
|
256
|
+
);
|
|
240
257
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
1
|
export const baseClass = 'euiHealth';
|
|
4
2
|
|
|
5
|
-
|
|
6
3
|
export const sizeToClassNameMap = {
|
|
7
4
|
xs: `${baseClass}--textSizeXS`,
|
|
8
5
|
s: `${baseClass}--textSizeS`,
|
|
@@ -13,7 +10,7 @@ export const sizeToClassNameMap = {
|
|
|
13
10
|
const mapping: ComponentMapping = {
|
|
14
11
|
base: baseClass,
|
|
15
12
|
properties: {
|
|
16
|
-
textSize: sizeToClassNameMap
|
|
13
|
+
textSize: sizeToClassNameMap
|
|
17
14
|
}
|
|
18
15
|
};
|
|
19
16
|
|
|
@@ -428,8 +428,7 @@ export const typeToPathMap = {
|
|
|
428
428
|
tokenText: 'tokenText',
|
|
429
429
|
tokenTokenCount: 'tokenTokenCount',
|
|
430
430
|
tokenSearchType: 'tokenSearchType',
|
|
431
|
-
tokenHistogram: 'tokenHistogram'
|
|
432
|
-
|
|
431
|
+
tokenHistogram: 'tokenHistogram'
|
|
433
432
|
};
|
|
434
433
|
|
|
435
434
|
export const sizeToClassNameMap = {
|
|
@@ -7,7 +7,11 @@ export const gutterSizeMapping = {
|
|
|
7
7
|
m: `${baseClass}--gutterMedium`
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
export function inlineStyles({
|
|
10
|
+
export function inlineStyles({
|
|
11
|
+
maxWidth
|
|
12
|
+
}: {
|
|
13
|
+
maxWidth: string | number;
|
|
14
|
+
}): Styling {
|
|
11
15
|
const value = typeOf(maxWidth) === 'number' ? `${maxWidth}px` : `${maxWidth}`;
|
|
12
16
|
|
|
13
17
|
return {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { typeOf } from '@ember/utils';
|
|
2
2
|
export const baseClass = 'euiModal';
|
|
3
3
|
|
|
4
|
-
export function inlineStyles({
|
|
4
|
+
export function inlineStyles({
|
|
5
|
+
maxWidth
|
|
6
|
+
}: {
|
|
7
|
+
maxWidth: string | number;
|
|
8
|
+
}): Styling {
|
|
5
9
|
let value = typeOf(maxWidth) === 'number' ? `${maxWidth}px` : `${maxWidth}`;
|
|
6
10
|
|
|
7
11
|
return {
|
|
@@ -50,17 +50,16 @@ export interface RehypeNode extends EuiMarkdownAstNode {
|
|
|
50
50
|
value: string;
|
|
51
51
|
type: string;
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
53
|
+
type RemarkRehypeHandlerCallback = (
|
|
54
|
+
node: UnistPosition,
|
|
55
|
+
tagName: string,
|
|
56
|
+
props: Record<string, unknown>,
|
|
57
|
+
children: RehypeNode[]
|
|
58
|
+
) => RehypeNode;
|
|
59
|
+
export type RemarkRehypeHandler = (
|
|
60
|
+
h: RemarkRehypeHandlerCallback,
|
|
61
|
+
node: UnistNode
|
|
62
|
+
) => RehypeNode;
|
|
64
63
|
|
|
65
64
|
export interface EuiMarkdownEditorUiPluginEditorProps<NodeShape> {
|
|
66
65
|
node: NodeShape | null;
|
|
@@ -44,7 +44,7 @@ export type DefaultEuiMarkdownParsingPlugins = PluggableList;
|
|
|
44
44
|
|
|
45
45
|
export const getDefaultEuiMarkdownParsingPlugins = ({
|
|
46
46
|
exclude
|
|
47
|
-
}: { exclude?:
|
|
47
|
+
}: { exclude?: 'tooltip'[] } = {}): DefaultEuiMarkdownParsingPlugins => {
|
|
48
48
|
const excludeSet = new Set(exclude);
|
|
49
49
|
const parsingPlugins: PluggableList = [
|
|
50
50
|
[markdown, {}],
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from './processing-plugins';
|
|
21
21
|
|
|
22
22
|
export const getDefaultEuiMarkdownPlugins = (
|
|
23
|
-
config: undefined | { exclude?:
|
|
23
|
+
config: undefined | { exclude?: 'tooltip'[] }
|
|
24
24
|
): {
|
|
25
25
|
parsingPlugins: DefaultEuiMarkdownParsingPlugins;
|
|
26
26
|
processingPlugins: DefaultEuiMarkdownProcessingPlugins;
|
|
@@ -54,7 +54,7 @@ export type DefaultEuiMarkdownProcessingPlugins = [
|
|
|
54
54
|
|
|
55
55
|
export const getDefaultEuiMarkdownProcessingPlugins = ({
|
|
56
56
|
exclude
|
|
57
|
-
}: { exclude?:
|
|
57
|
+
}: { exclude?: 'tooltip'[] } = {}) => {
|
|
58
58
|
exclude;
|
|
59
59
|
const plugins: DefaultEuiMarkdownProcessingPlugins = [
|
|
60
60
|
[remark2Rehype, { allowDangerousHtml: true, unknownHandler }],
|
|
@@ -13,7 +13,7 @@ export type DefaultEuiMarkdownUiPlugins = EuiMarkdownEditorUiPlugin[];
|
|
|
13
13
|
|
|
14
14
|
export const getDefaultEuiMarkdownUiPlugins = ({
|
|
15
15
|
exclude
|
|
16
|
-
}: { exclude?:
|
|
16
|
+
}: { exclude?: 'tooltip'[] } = {}): DefaultEuiMarkdownUiPlugins => {
|
|
17
17
|
const excludeSet = new Set(exclude);
|
|
18
18
|
const uiPlugins = [];
|
|
19
19
|
|
|
@@ -31,7 +31,9 @@ export const getTransitionTimings = (
|
|
|
31
31
|
): { durationMatch: number; delayMatch: number } => {
|
|
32
32
|
const computedStyle = window.getComputedStyle(element);
|
|
33
33
|
|
|
34
|
-
const computedDuration = computedStyle.getPropertyValue(
|
|
34
|
+
const computedDuration = computedStyle.getPropertyValue(
|
|
35
|
+
'transition-duration'
|
|
36
|
+
);
|
|
35
37
|
const durationMatchArray = computedDuration.match(GROUP_NUMERIC);
|
|
36
38
|
const durationMatch = durationMatchArray
|
|
37
39
|
? getMilliseconds(durationMatchArray[1], durationMatchArray[2])
|
|
@@ -39,7 +41,9 @@ export const getTransitionTimings = (
|
|
|
39
41
|
|
|
40
42
|
const computedDelay = computedStyle.getPropertyValue('transition-delay');
|
|
41
43
|
const delayMatchArray = computedDelay.match(GROUP_NUMERIC);
|
|
42
|
-
const delayMatch = delayMatchArray
|
|
44
|
+
const delayMatch = delayMatchArray
|
|
45
|
+
? getMilliseconds(delayMatchArray[1], delayMatchArray[2])
|
|
46
|
+
: 0;
|
|
43
47
|
|
|
44
48
|
return { durationMatch, delayMatch };
|
|
45
49
|
};
|
|
@@ -62,7 +66,10 @@ export const getWaitDuration = (records: MutationRecord[]): number => {
|
|
|
62
66
|
};
|
|
63
67
|
|
|
64
68
|
// Uses `requestAnimationFrame` to perform a given callback after a specified waiting period
|
|
65
|
-
export const performOnFrame = (
|
|
69
|
+
export const performOnFrame = (
|
|
70
|
+
waitDuration: number,
|
|
71
|
+
toPerform: () => void
|
|
72
|
+
): void => {
|
|
66
73
|
if (waitDuration > 0) {
|
|
67
74
|
const startTime = Date.now();
|
|
68
75
|
const endTime = startTime + waitDuration;
|
package/addon/version.ts
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-avatar';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-avatar';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-badge-group/badge-group-item';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-badge-group/badge-group-item';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-badge-group';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-badge-group';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-button-icon';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-button-icon';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-combo-box/create-option';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-combo-box/create-option';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-comment/eui-comment-timeline'
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-comment/eui-comment-timeline';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-comment';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-comment';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-dual-range';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-dual-range';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-field-number';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-field-number';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-field-password';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-field-password';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-field-search';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-field-search';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-field-text';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-field-text';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-file-picker';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-file-picker';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-form';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-form';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-form-control-layout';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-form-control-layout';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-form-control-layout-clear-button';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-form-control-layout-clear-button';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-form-control-layout-custom-icon';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-form-control-layout-custom-icon';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-form-control-layout-delimited';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-form-control-layout-delimited';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-form-control-layout-icons';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-form-control-layout-icons';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-form-error-text';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-form-error-text';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-form-fieldset';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-form-fieldset';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-form-help-text';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-form-help-text';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-form-label';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-form-label';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-form-legend';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-form-legend';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-form-row';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-form-row';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-image';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-image';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-list-group';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-list-group';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-list-group-item';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-list-group-item';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-loading-logo';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-overlay-mask';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-overlay-mask';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-page';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-page';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-page-body';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-page-body';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-page-content';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-page-content';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-page-content-body';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-page-content-body';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-page-content-header'
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-page-content-header';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-page-content-header-section'
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-page-content-header-section';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-page-header';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-page-header';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-page-header-content';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-page-header-content';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-page-header-section';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-page-header-section';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-panel';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-panel';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-popover';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-popover';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-popover-footer';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-popover-footer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-popover-title';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-popover-title';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-portal';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-portal';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-progress';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-progress';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-radio';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-radio';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-radio-group';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-radio-group';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-range';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-range';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-range-highlight';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-range-highlight';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-range-input';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-range-input';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-range-label';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-range-label';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-range-levels';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-range-levels';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-range-slider';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-range-slider';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-range-thumb';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-range-thumb';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-range-ticks';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-range-ticks';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-range-tooltip';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-range-tooltip';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-range-track';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-range-track';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-range-wrapper';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-range-wrapper';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-select';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-side-nav';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-side-nav';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-side-nav-item/button';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-side-nav-item/button';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-side-nav-item';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-side-nav-item';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-spacer';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-spacer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/components/eui-switch';
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-switch';
|