@ember-eui/core 5.8.5 → 5.10.2
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-checkbox-group/index.hbs +8 -0
- package/addon/components/eui-combo-box/index.hbs +1 -1
- package/addon/components/eui-combo-box/options/index.hbs +1 -0
- package/addon/components/eui-dual-range/index.ts +2 -2
- package/addon/components/eui-field-text/index.hbs +1 -0
- package/addon/components/eui-global-toast-list/index.ts +1 -1
- package/addon/components/eui-i18n/index.ts +9 -41
- package/addon/components/eui-icon/index.ts +2 -2
- package/addon/components/eui-markdown-editor/index.ts +2 -2
- package/addon/components/eui-portal/index.ts +2 -2
- package/addon/components/eui-range/index.ts +2 -2
- package/addon/components/eui-super-date-picker/date-popover/absolute-tab.hbs +42 -0
- package/addon/components/eui-super-date-picker/date-popover/absolute-tab.ts +79 -0
- package/addon/components/eui-super-date-picker/date-popover/datetime-picker.hbs +125 -0
- package/addon/components/eui-super-date-picker/date-popover/datetime-picker.ts +258 -0
- package/addon/components/eui-super-date-picker/date-popover/eui-date-popover-button.hbs +49 -0
- package/addon/components/eui-super-date-picker/date-popover/eui-date-popover-button.ts +49 -0
- package/addon/components/eui-super-date-picker/date-popover/eui-date-popover-content.hbs +42 -0
- package/addon/components/eui-super-date-picker/date-popover/eui-date-popover-content.ts +73 -0
- package/addon/components/eui-super-date-picker/date-popover/now-tab.hbs +45 -0
- package/addon/components/eui-super-date-picker/date-popover/relative-tab.hbs +47 -0
- package/addon/components/eui-super-date-picker/date-popover/relative-tab.ts +89 -0
- package/addon/components/eui-super-date-picker/eui-date-picker-range.hbs +22 -0
- package/addon/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.hbs +42 -0
- package/addon/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.hbs +154 -0
- package/addon/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.ts +103 -0
- package/addon/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.hbs +48 -0
- package/addon/components/eui-super-date-picker/eui-quick-select-popover/index.hbs +60 -0
- package/addon/components/eui-super-date-picker/eui-quick-select-popover/index.ts +34 -0
- package/addon/components/eui-super-date-picker/eui-super-update-button.hbs +43 -0
- package/addon/components/eui-super-date-picker/index.hbs +123 -0
- package/addon/components/eui-super-date-picker/index.ts +220 -0
- package/addon/components/eui-super-date-picker/types/global.d.ts +52 -0
- package/addon/components/eui-super-date-picker/utils/date-utils.ts +59 -0
- package/addon/components/eui-super-date-picker/utils/index.ts +181 -0
- package/addon/components/eui-super-date-picker/utils/pretty-duration.ts +131 -0
- package/addon/components/eui-super-date-picker/utils/quick-select.ts +75 -0
- package/addon/components/eui-super-date-picker/utils/time-options.ts +216 -0
- package/addon/components/eui-tool-tip/index.ts +2 -2
- package/addon/components/text-block/index.hbs +25 -21
- package/addon/{components/eui-i18n → i18n}/util.ts +1 -6
- package/addon/modifiers/outside-click-detector.ts +2 -2
- package/addon/services/eui-i18n.ts +89 -0
- package/addon/utils/markdown/markdown-unified-plugins.d.ts +0 -14
- package/app/components/eui-super-date-picker/date-popover/absolute-tab.js +1 -0
- package/app/components/eui-super-date-picker/date-popover/datetime-picker.js +1 -0
- package/app/components/eui-super-date-picker/date-popover/eui-date-popover-button.js +1 -0
- package/app/components/eui-super-date-picker/date-popover/eui-date-popover-content.js +1 -0
- package/app/components/eui-super-date-picker/date-popover/now-tab.js +1 -0
- package/app/components/eui-super-date-picker/date-popover/relative-tab.js +1 -0
- package/app/components/eui-super-date-picker/eui-date-picker-range.js +1 -0
- package/app/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.js +1 -0
- package/app/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.js +1 -0
- package/app/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.js +1 -0
- package/app/components/eui-super-date-picker/eui-quick-select-popover/index.js +1 -0
- package/app/components/eui-super-date-picker/eui-super-update-button.js +1 -0
- package/app/components/eui-super-date-picker/index.js +1 -0
- package/app/services/eui-i18n.js +1 -0
- package/docs/forms/super-date-picker/demo/d01-picker.md +90 -0
- package/docs/forms/super-date-picker/index.md +16 -0
- package/package.json +7 -3
- package/tsconfig.json +1 -0
- package/addon/helpers/unique-id.ts +0 -23
- package/addon/i18n/index.ts +0 -8
- package/app/helpers/unique-id.js +0 -1
- package/app/i18n/index.js +0 -1
- package/docs/templates/super-date-picker/demo/d01-update-button.md +0 -10
- package/docs/templates/super-date-picker/demo/d02-quick-select-panels.md +0 -10
- package/docs/templates/super-date-picker/demo/d03-sizing.md +0 -10
- package/docs/templates/super-date-picker/demo/d04-auto-refresh.md +0 -11
- package/docs/templates/super-date-picker/demo/d05-elastic-pattern-with-kql.md +0 -10
- package/docs/templates/super-date-picker/index.md +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-eui/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.2",
|
|
4
4
|
"description": "Ember Components for Elastic UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
+
"@elastic/datemath": "^5.0.3",
|
|
55
56
|
"@elastic/eui": "41.4.0",
|
|
56
57
|
"@ember/render-modifiers": "^2.0.4",
|
|
57
58
|
"@html-next/vertical-collection": "3.0.0",
|
|
@@ -77,6 +78,7 @@
|
|
|
77
78
|
"ember-style-modifier": "^0.7.0",
|
|
78
79
|
"ember-svg-jar": "^2.3.4",
|
|
79
80
|
"ember-truth-helpers": "^3.0.0",
|
|
81
|
+
"ember-unique-id-helper-polyfill": "^1.2.2",
|
|
80
82
|
"lodash-es": "^4.17.21",
|
|
81
83
|
"mdast-util-to-hast": "^10.0.0",
|
|
82
84
|
"refractor": "^3.5.0",
|
|
@@ -94,7 +96,8 @@
|
|
|
94
96
|
},
|
|
95
97
|
"peerDependencies": {
|
|
96
98
|
"ember-auto-import": "^2.2.4",
|
|
97
|
-
"ember-focus-trap": "^1.0.1"
|
|
99
|
+
"ember-focus-trap": "^1.0.1",
|
|
100
|
+
"moment": "^2.29.3"
|
|
98
101
|
},
|
|
99
102
|
"devDependencies": {
|
|
100
103
|
"@ember/optional-features": "^2.0.0",
|
|
@@ -159,6 +162,7 @@
|
|
|
159
162
|
"loader.js": "^4.7.0",
|
|
160
163
|
"lodash-es": "^4.17.21",
|
|
161
164
|
"mdast-util-to-hast": "^10.0.0",
|
|
165
|
+
"moment": "^2.29.3",
|
|
162
166
|
"npm-run-all": "^4.1.5",
|
|
163
167
|
"prettier": "^2.5.1",
|
|
164
168
|
"qunit": "^2.17.2",
|
|
@@ -182,5 +186,5 @@
|
|
|
182
186
|
"volta": {
|
|
183
187
|
"extends": "../../package.json"
|
|
184
188
|
},
|
|
185
|
-
"gitHead": "
|
|
189
|
+
"gitHead": "0388fd81182e0bc01bbbee79b4084cacc5762dd8"
|
|
186
190
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { helper } from '@ember/component/helper';
|
|
2
|
-
import { guidFor } from '@ember/object/internals';
|
|
3
|
-
import { isPresent } from '@ember/utils';
|
|
4
|
-
|
|
5
|
-
interface Identifiable {
|
|
6
|
-
ref: number | string | Element | Record<string, unknown>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Returns a guid for the passed `ref`.
|
|
11
|
-
* The guid is stable, meaning that passing the same `ref` will yield the same guid.
|
|
12
|
-
* If no parameter is passed it will generate the next available guid.
|
|
13
|
-
*
|
|
14
|
-
* @param { any } ref
|
|
15
|
-
*/
|
|
16
|
-
export function uniqueId(
|
|
17
|
-
_?: any[],
|
|
18
|
-
{ ref }: { ref?: Identifiable } = {}
|
|
19
|
-
): string {
|
|
20
|
-
return isPresent(ref) ? guidFor(ref) : guidFor({});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export default helper(uniqueId);
|
package/addon/i18n/index.ts
DELETED
package/app/helpers/unique-id.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, uniqueId } from '@ember-eui/core/helpers/unique-id';
|
package/app/i18n/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@ember-eui/core/i18n';
|