@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.
Files changed (72) hide show
  1. package/addon/components/eui-checkbox-group/index.hbs +8 -0
  2. package/addon/components/eui-combo-box/index.hbs +1 -1
  3. package/addon/components/eui-combo-box/options/index.hbs +1 -0
  4. package/addon/components/eui-dual-range/index.ts +2 -2
  5. package/addon/components/eui-field-text/index.hbs +1 -0
  6. package/addon/components/eui-global-toast-list/index.ts +1 -1
  7. package/addon/components/eui-i18n/index.ts +9 -41
  8. package/addon/components/eui-icon/index.ts +2 -2
  9. package/addon/components/eui-markdown-editor/index.ts +2 -2
  10. package/addon/components/eui-portal/index.ts +2 -2
  11. package/addon/components/eui-range/index.ts +2 -2
  12. package/addon/components/eui-super-date-picker/date-popover/absolute-tab.hbs +42 -0
  13. package/addon/components/eui-super-date-picker/date-popover/absolute-tab.ts +79 -0
  14. package/addon/components/eui-super-date-picker/date-popover/datetime-picker.hbs +125 -0
  15. package/addon/components/eui-super-date-picker/date-popover/datetime-picker.ts +258 -0
  16. package/addon/components/eui-super-date-picker/date-popover/eui-date-popover-button.hbs +49 -0
  17. package/addon/components/eui-super-date-picker/date-popover/eui-date-popover-button.ts +49 -0
  18. package/addon/components/eui-super-date-picker/date-popover/eui-date-popover-content.hbs +42 -0
  19. package/addon/components/eui-super-date-picker/date-popover/eui-date-popover-content.ts +73 -0
  20. package/addon/components/eui-super-date-picker/date-popover/now-tab.hbs +45 -0
  21. package/addon/components/eui-super-date-picker/date-popover/relative-tab.hbs +47 -0
  22. package/addon/components/eui-super-date-picker/date-popover/relative-tab.ts +89 -0
  23. package/addon/components/eui-super-date-picker/eui-date-picker-range.hbs +22 -0
  24. package/addon/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.hbs +42 -0
  25. package/addon/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.hbs +154 -0
  26. package/addon/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.ts +103 -0
  27. package/addon/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.hbs +48 -0
  28. package/addon/components/eui-super-date-picker/eui-quick-select-popover/index.hbs +60 -0
  29. package/addon/components/eui-super-date-picker/eui-quick-select-popover/index.ts +34 -0
  30. package/addon/components/eui-super-date-picker/eui-super-update-button.hbs +43 -0
  31. package/addon/components/eui-super-date-picker/index.hbs +123 -0
  32. package/addon/components/eui-super-date-picker/index.ts +220 -0
  33. package/addon/components/eui-super-date-picker/types/global.d.ts +52 -0
  34. package/addon/components/eui-super-date-picker/utils/date-utils.ts +59 -0
  35. package/addon/components/eui-super-date-picker/utils/index.ts +181 -0
  36. package/addon/components/eui-super-date-picker/utils/pretty-duration.ts +131 -0
  37. package/addon/components/eui-super-date-picker/utils/quick-select.ts +75 -0
  38. package/addon/components/eui-super-date-picker/utils/time-options.ts +216 -0
  39. package/addon/components/eui-tool-tip/index.ts +2 -2
  40. package/addon/components/text-block/index.hbs +25 -21
  41. package/addon/{components/eui-i18n → i18n}/util.ts +1 -6
  42. package/addon/modifiers/outside-click-detector.ts +2 -2
  43. package/addon/services/eui-i18n.ts +89 -0
  44. package/addon/utils/markdown/markdown-unified-plugins.d.ts +0 -14
  45. package/app/components/eui-super-date-picker/date-popover/absolute-tab.js +1 -0
  46. package/app/components/eui-super-date-picker/date-popover/datetime-picker.js +1 -0
  47. package/app/components/eui-super-date-picker/date-popover/eui-date-popover-button.js +1 -0
  48. package/app/components/eui-super-date-picker/date-popover/eui-date-popover-content.js +1 -0
  49. package/app/components/eui-super-date-picker/date-popover/now-tab.js +1 -0
  50. package/app/components/eui-super-date-picker/date-popover/relative-tab.js +1 -0
  51. package/app/components/eui-super-date-picker/eui-date-picker-range.js +1 -0
  52. package/app/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.js +1 -0
  53. package/app/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.js +1 -0
  54. package/app/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.js +1 -0
  55. package/app/components/eui-super-date-picker/eui-quick-select-popover/index.js +1 -0
  56. package/app/components/eui-super-date-picker/eui-super-update-button.js +1 -0
  57. package/app/components/eui-super-date-picker/index.js +1 -0
  58. package/app/services/eui-i18n.js +1 -0
  59. package/docs/forms/super-date-picker/demo/d01-picker.md +90 -0
  60. package/docs/forms/super-date-picker/index.md +16 -0
  61. package/package.json +7 -3
  62. package/tsconfig.json +1 -0
  63. package/addon/helpers/unique-id.ts +0 -23
  64. package/addon/i18n/index.ts +0 -8
  65. package/app/helpers/unique-id.js +0 -1
  66. package/app/i18n/index.js +0 -1
  67. package/docs/templates/super-date-picker/demo/d01-update-button.md +0 -10
  68. package/docs/templates/super-date-picker/demo/d02-quick-select-panels.md +0 -10
  69. package/docs/templates/super-date-picker/demo/d03-sizing.md +0 -10
  70. package/docs/templates/super-date-picker/demo/d04-auto-refresh.md +0 -11
  71. package/docs/templates/super-date-picker/demo/d05-elastic-pattern-with-kql.md +0 -10
  72. 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.8.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": "0dc0a27d489d4287043885f0607144ff89088a49"
189
+ "gitHead": "0388fd81182e0bc01bbbee79b4084cacc5762dd8"
186
190
  }
package/tsconfig.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "extends": "../../tsconfig.base.json",
3
3
  "compilerOptions": {
4
+ "skipLibCheck": true,
4
5
  "baseUrl": ".",
5
6
  "paths": {
6
7
  "dummy/tests/*": ["tests/*"],
@@ -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);
@@ -1,8 +0,0 @@
1
- export interface I18nShape {
2
- mapping: { [key: string]: string };
3
- }
4
-
5
- const i18n: I18nShape = {
6
- mapping: {}
7
- };
8
- export { i18n };
@@ -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';
@@ -1,10 +0,0 @@
1
- ---
2
- order: 1
3
- ---
4
-
5
- # Update button
6
-
7
-
8
- ```hbs template
9
- <TodoText/>
10
- ```
@@ -1,10 +0,0 @@
1
- ---
2
- order: 2
3
- ---
4
-
5
- # Quick select panels
6
-
7
-
8
- ```hbs template
9
- <TodoText/>
10
- ```
@@ -1,10 +0,0 @@
1
- ---
2
- order: 3
3
- ---
4
-
5
- # Sizing
6
-
7
-
8
- ```hbs template
9
- <TodoText/>
10
- ```
@@ -1,11 +0,0 @@
1
- ---
2
- order: 1
3
- 4
4
- ---
5
-
6
- # Auto refresh
7
-
8
-
9
- ```hbs template
10
- <TodoText/>
11
- ```
@@ -1,10 +0,0 @@
1
- ---
2
- order: 5
3
- ---
4
-
5
- # Elastic pattern with KQL
6
-
7
-
8
- ```hbs template
9
- <TodoText/>
10
- ```
@@ -1,12 +0,0 @@
1
- ---
2
- title: Super date picker
3
- disabled: true
4
- disabled_demos:
5
- - d01-update-button
6
- - d02-quick-select-panels
7
- - d03-sizing
8
- - d04-auto-refresh
9
- - d05-elastic-pattern-with-kql
10
- ---
11
- <EuiSpacer/>
12
- <EuiPageHeader @pageTitle="Sitewide search"/>