@xplortech/apollo-core 1.0.0-beta.5 → 1.0.0-beta.6

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 (154) hide show
  1. package/build/style.css +1 -1
  2. package/dist/apollo-core/apollo-core.css +9 -5841
  3. package/dist/apollo-core/apollo-core.esm.js +1 -125
  4. package/dist/apollo-core/index.esm.js +0 -1
  5. package/dist/apollo-core/p-ee16942f.entry.js +1 -0
  6. package/dist/cjs/apollo-core.cjs.js +4 -112
  7. package/dist/cjs/index.cjs.js +0 -1
  8. package/dist/cjs/loader.cjs.js +2 -18
  9. package/dist/cjs/xpl-application-shell.cjs.entry.js +1 -1
  10. package/dist/cjs/xpl-avatar_12.cjs.entry.js +17 -17
  11. package/dist/cjs/xpl-backdrop.cjs.entry.js +1 -1
  12. package/dist/cjs/xpl-button-row.cjs.entry.js +1 -1
  13. package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -1
  14. package/dist/cjs/xpl-divider.cjs.entry.js +1 -1
  15. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +4 -1
  16. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +1 -2
  17. package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
  18. package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
  19. package/dist/cjs/xpl-input.cjs.entry.js +4 -21
  20. package/dist/cjs/xpl-list.cjs.entry.js +2 -2
  21. package/dist/cjs/xpl-main-nav.cjs.entry.js +1 -1
  22. package/dist/cjs/xpl-pagination.cjs.entry.js +1 -1
  23. package/dist/cjs/xpl-select.cjs.entry.js +3 -44
  24. package/dist/cjs/xpl-toggle.cjs.entry.js +3 -3
  25. package/dist/collection/collection-manifest.json +1 -1
  26. package/dist/collection/components/xpl-choicelist/choice.js +1 -0
  27. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +3 -3
  28. package/dist/collection/components/xpl-dropdown/dropdownoption.js +1 -0
  29. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -1
  30. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +4 -1
  31. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +16 -8
  32. package/dist/collection/components/xpl-list/listitem.js +1 -0
  33. package/dist/collection/components/xpl-list/xpl-list.js +2 -2
  34. package/dist/collection/components/xpl-select/selectchoice.js +1 -0
  35. package/dist/collection/components/xpl-select/xpl-select.js +2 -1
  36. package/dist/collection/components/xpl-table/xpl-table.js +17 -17
  37. package/dist/custom-elements/index.js +23 -604
  38. package/dist/esm/apollo-core.js +4 -112
  39. package/dist/esm/index.js +1 -1
  40. package/dist/esm/loader.js +2 -18
  41. package/dist/esm/xpl-application-shell.entry.js +1 -1
  42. package/dist/esm/xpl-avatar_12.entry.js +17 -17
  43. package/dist/esm/xpl-backdrop.entry.js +1 -1
  44. package/dist/esm/xpl-button-row.entry.js +1 -1
  45. package/dist/esm/xpl-choicelist.entry.js +1 -1
  46. package/dist/esm/xpl-divider.entry.js +1 -1
  47. package/dist/esm/xpl-dropdown-group_3.entry.js +4 -1
  48. package/dist/esm/xpl-dropdown_2.entry.js +1 -2
  49. package/dist/esm/xpl-grid-item.entry.js +1 -1
  50. package/dist/esm/xpl-grid.entry.js +1 -1
  51. package/dist/esm/xpl-input.entry.js +3 -20
  52. package/dist/esm/xpl-list.entry.js +2 -2
  53. package/dist/esm/xpl-main-nav.entry.js +1 -1
  54. package/dist/esm/xpl-pagination.entry.js +1 -1
  55. package/dist/esm/xpl-select.entry.js +2 -43
  56. package/dist/esm/xpl-toggle.entry.js +2 -2
  57. package/dist/types/components/xpl-choicelist/choice.d.ts +5 -5
  58. package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +2 -1
  59. package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +8 -10
  60. package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +1 -0
  61. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +6 -4
  62. package/dist/types/components/xpl-list/listitem.d.ts +15 -19
  63. package/dist/types/components/xpl-list/xpl-list.d.ts +1 -0
  64. package/dist/types/components/xpl-select/selectchoice.d.ts +3 -2
  65. package/dist/types/components/xpl-select/xpl-select.d.ts +1 -0
  66. package/dist/types/components/xpl-table/xpl-table.d.ts +5 -6
  67. package/dist/types/components.d.ts +17 -6
  68. package/package.json +2 -2
  69. package/dist/apollo-core/app-globals-0f993ce5.js +0 -3
  70. package/dist/apollo-core/css-shim-bbdf0cc6.js +0 -4
  71. package/dist/apollo-core/dom-1f98a75f.js +0 -73
  72. package/dist/apollo-core/index-5b4a209e.js +0 -2938
  73. package/dist/apollo-core/index-912d1a21.js +0 -584
  74. package/dist/apollo-core/p-50eb8239.entry.js +0 -1
  75. package/dist/apollo-core/regular-133c23b5.js +0 -16052
  76. package/dist/apollo-core/shadow-css-67b66845.js +0 -389
  77. package/dist/apollo-core/xpl-application-shell.entry.js +0 -60
  78. package/dist/apollo-core/xpl-avatar.entry.js +0 -19
  79. package/dist/apollo-core/xpl-backdrop.entry.js +0 -21
  80. package/dist/apollo-core/xpl-badge.entry.js +0 -17
  81. package/dist/apollo-core/xpl-breadcrumb-item.entry.js +0 -17
  82. package/dist/apollo-core/xpl-breadcrumbs.entry.js +0 -12
  83. package/dist/apollo-core/xpl-button-row.entry.js +0 -18
  84. package/dist/apollo-core/xpl-button.entry.js +0 -60
  85. package/dist/apollo-core/xpl-checkbox.entry.js +0 -25
  86. package/dist/apollo-core/xpl-choicelist.entry.js +0 -39
  87. package/dist/apollo-core/xpl-content-area.entry.js +0 -16
  88. package/dist/apollo-core/xpl-divider.entry.js +0 -14
  89. package/dist/apollo-core/xpl-dropdown-group.entry.js +0 -31
  90. package/dist/apollo-core/xpl-dropdown-heading.entry.js +0 -12
  91. package/dist/apollo-core/xpl-dropdown-option.entry.js +0 -61
  92. package/dist/apollo-core/xpl-dropdown.entry.js +0 -104
  93. package/dist/apollo-core/xpl-grid-item.entry.js +0 -21
  94. package/dist/apollo-core/xpl-grid.entry.js +0 -31
  95. package/dist/apollo-core/xpl-input.entry.js +0 -2547
  96. package/dist/apollo-core/xpl-list.entry.js +0 -57
  97. package/dist/apollo-core/xpl-main-nav.entry.js +0 -26
  98. package/dist/apollo-core/xpl-nav-item.entry.js +0 -26
  99. package/dist/apollo-core/xpl-pagination.entry.js +0 -72
  100. package/dist/apollo-core/xpl-radio.entry.js +0 -25
  101. package/dist/apollo-core/xpl-secondary-nav.entry.js +0 -12
  102. package/dist/apollo-core/xpl-select.entry.js +0 -662
  103. package/dist/apollo-core/xpl-table.entry.js +0 -91
  104. package/dist/apollo-core/xpl-tag.entry.js +0 -17
  105. package/dist/apollo-core/xpl-toggle.entry.js +0 -30
  106. package/dist/apollo-core/xpl-utility-bar.entry.js +0 -27
  107. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  108. package/dist/cjs/css-shim-a7379e2b.js +0 -6
  109. package/dist/cjs/dom-3e7d9c3b.js +0 -75
  110. package/dist/cjs/index-318d5fc7.js +0 -586
  111. package/dist/cjs/index-88e58962.js +0 -2975
  112. package/dist/cjs/regular-503465f4.js +0 -16054
  113. package/dist/cjs/shadow-css-09555044.js +0 -391
  114. package/dist/cjs/xpl-avatar.cjs.entry.js +0 -23
  115. package/dist/cjs/xpl-badge.cjs.entry.js +0 -21
  116. package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +0 -21
  117. package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +0 -16
  118. package/dist/cjs/xpl-button.cjs.entry.js +0 -64
  119. package/dist/cjs/xpl-checkbox.cjs.entry.js +0 -29
  120. package/dist/cjs/xpl-content-area.cjs.entry.js +0 -20
  121. package/dist/cjs/xpl-dropdown-group.cjs.entry.js +0 -35
  122. package/dist/cjs/xpl-dropdown-heading.cjs.entry.js +0 -16
  123. package/dist/cjs/xpl-dropdown-option.cjs.entry.js +0 -65
  124. package/dist/cjs/xpl-dropdown.cjs.entry.js +0 -108
  125. package/dist/cjs/xpl-nav-item.cjs.entry.js +0 -30
  126. package/dist/cjs/xpl-radio.cjs.entry.js +0 -29
  127. package/dist/cjs/xpl-secondary-nav.cjs.entry.js +0 -16
  128. package/dist/cjs/xpl-table.cjs.entry.js +0 -95
  129. package/dist/cjs/xpl-tag.cjs.entry.js +0 -21
  130. package/dist/cjs/xpl-utility-bar.cjs.entry.js +0 -31
  131. package/dist/esm/app-globals-0f993ce5.js +0 -3
  132. package/dist/esm/css-shim-bbdf0cc6.js +0 -4
  133. package/dist/esm/dom-1f98a75f.js +0 -73
  134. package/dist/esm/index-5b4a209e.js +0 -2938
  135. package/dist/esm/index-912d1a21.js +0 -584
  136. package/dist/esm/regular-133c23b5.js +0 -16052
  137. package/dist/esm/shadow-css-67b66845.js +0 -389
  138. package/dist/esm/xpl-avatar.entry.js +0 -19
  139. package/dist/esm/xpl-badge.entry.js +0 -17
  140. package/dist/esm/xpl-breadcrumb-item.entry.js +0 -17
  141. package/dist/esm/xpl-breadcrumbs.entry.js +0 -12
  142. package/dist/esm/xpl-button.entry.js +0 -60
  143. package/dist/esm/xpl-checkbox.entry.js +0 -25
  144. package/dist/esm/xpl-content-area.entry.js +0 -16
  145. package/dist/esm/xpl-dropdown-group.entry.js +0 -31
  146. package/dist/esm/xpl-dropdown-heading.entry.js +0 -12
  147. package/dist/esm/xpl-dropdown-option.entry.js +0 -61
  148. package/dist/esm/xpl-dropdown.entry.js +0 -104
  149. package/dist/esm/xpl-nav-item.entry.js +0 -26
  150. package/dist/esm/xpl-radio.entry.js +0 -25
  151. package/dist/esm/xpl-secondary-nav.entry.js +0 -12
  152. package/dist/esm/xpl-table.entry.js +0 -91
  153. package/dist/esm/xpl-tag.entry.js +0 -17
  154. package/dist/esm/xpl-utility-bar.entry.js +0 -27
@@ -2,52 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-88e58962.js');
6
- const index$1 = require('./index-318d5fc7.js');
5
+ const index = require('./index-acf3dd7a.js');
6
+ const v4 = require('./v4-14140ff3.js');
7
7
 
8
8
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
9
 
10
- function getDefaultExportFromCjs (x) {
11
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
12
- }
13
-
14
- function createCommonjsModule(fn, basedir, module) {
15
- return module = {
16
- path: basedir,
17
- exports: {},
18
- require: function (path, base) {
19
- return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
20
- }
21
- }, fn(module, module.exports), module.exports;
22
- }
23
-
24
- function getDefaultExportFromNamespaceIfPresent (n) {
25
- return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
26
- }
27
-
28
- function getDefaultExportFromNamespaceIfNotNamed (n) {
29
- return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
30
- }
31
-
32
- function getAugmentedNamespace(n) {
33
- if (n.__esModule) return n;
34
- var a = Object.defineProperty({}, '__esModule', {value: true});
35
- Object.keys(n).forEach(function (k) {
36
- var d = Object.getOwnPropertyDescriptor(n, k);
37
- Object.defineProperty(a, k, d.get ? d : {
38
- enumerable: true,
39
- get: function () {
40
- return n[k];
41
- }
42
- });
43
- });
44
- return a;
45
- }
46
-
47
- function commonjsRequire () {
48
- throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
49
- }
50
-
51
10
  /**
52
11
  * lodash (Custom Build) <https://lodash.com/>
53
12
  * Build: `lodash modularize exports="npm" -o ./`
@@ -521,7 +480,7 @@ const XplSelect = class {
521
480
  */
522
481
  this.truncate = true;
523
482
  this.active = false;
524
- this.id = index$1.v4();
483
+ this.id = v4.v4();
525
484
  this.keepFocus = false;
526
485
  this.value = '';
527
486
  this.displayValue = '';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-88e58962.js');
6
- const index$1 = require('./index-318d5fc7.js');
5
+ const index = require('./index-acf3dd7a.js');
6
+ const v4 = require('./v4-14140ff3.js');
7
7
 
8
8
  const XplToggle = class {
9
9
  constructor(hostRef) {
@@ -12,7 +12,7 @@ const XplToggle = class {
12
12
  * The size of the toggle -- `default` or `small`
13
13
  */
14
14
  this.variant = 'default';
15
- this.id = index$1.v4();
15
+ this.id = v4.v4();
16
16
  }
17
17
  render() {
18
18
  let containerClassName = 'xpl-toggle-container';
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "entries": [
3
+ "./components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js",
3
4
  "./components/xpl-application-shell/xpl-application-shell.js",
4
5
  "./components/xpl-avatar/xpl-avatar.js",
5
6
  "./components/xpl-backdrop/xpl-backdrop.js",
@@ -15,7 +16,6 @@
15
16
  "./components/xpl-dropdown/xpl-dropdown.js",
16
17
  "./components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js",
17
18
  "./components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js",
18
- "./components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js",
19
19
  "./components/xpl-grid/xpl-grid.js",
20
20
  "./components/xpl-grid-item/xpl-grid-item.js",
21
21
  "./components/xpl-input/xpl-input.js",
@@ -1,4 +1,3 @@
1
- /// <reference path="./choice.d.ts"></reference>
2
1
  import { Component, Host, h, Prop, State } from '@stencil/core';
3
2
  export class XplChoicelist {
4
3
  componentWillLoad() {
@@ -47,7 +46,8 @@ export class XplChoicelist {
47
46
  "resolved": "Choice[]",
48
47
  "references": {
49
48
  "Choice": {
50
- "location": "global"
49
+ "location": "import",
50
+ "path": "./choice"
51
51
  }
52
52
  }
53
53
  },
@@ -55,7 +55,7 @@ export class XplChoicelist {
55
55
  "optional": false,
56
56
  "docs": {
57
57
  "tags": [],
58
- "text": "An array of choices to be displayed in the list.\nEach choice should be an object with keys:\n- `checked` [boolean] - whether to precheck or not\n- `children` [Choice[]] - an array of child choices (recursive)\n- `description` [string]\n- `label` [string]"
58
+ "text": "An array of choices to be displayed in the list.\nEach choice should be an object with keys:\n- `checked` [boolean] - whether to pre-check or not\n- `children` [Choice[]] - an array of child choices (recursive)\n- `description` [string]\n- `label` [string]"
59
59
  }
60
60
  },
61
61
  "description": {
@@ -51,7 +51,8 @@ export class XplDropdownGroup {
51
51
  "resolved": "Partial<DropdownOption & DropdownOptionGroup>[]",
52
52
  "references": {
53
53
  "DropdownOptionGroup": {
54
- "location": "global"
54
+ "location": "import",
55
+ "path": "../dropdownoption"
55
56
  }
56
57
  }
57
58
  },
@@ -23,7 +23,10 @@ export class XplDropdownOption {
23
23
  const { closeOnSelect, mode, selectOnFocus } = this.dropdown;
24
24
  if (selectOnFocus && navigationKeys.includes(ev.key)) {
25
25
  const hostElement = document.activeElement.closest('xpl-dropdown-option');
26
- dropdown.handleSelect(ev, { component: { hostElement } });
26
+ const component = {
27
+ component: { hostElement },
28
+ };
29
+ dropdown.handleSelect(ev, component);
27
30
  if (mode === 'single' && closeOnSelect)
28
31
  this.dropdown.isOpen = false;
29
32
  return;
@@ -13,7 +13,6 @@ import { Component, Element, Host, h, Method, Prop } from '@stencil/core';
13
13
  export class XplDropdown {
14
14
  constructor() {
15
15
  /** text to display as heading */
16
- // eslint-disable-next-line @stencil/strict-mutable
17
16
  this.isOpen = false;
18
17
  /** options that are listed */
19
18
  this.closeOnSelect = true;
@@ -30,7 +29,7 @@ export class XplDropdown {
30
29
  };
31
30
  }
32
31
  /**
33
- * called on dropdown option click and keydown events to update isSelected states
32
+ * called on dropdown option click and keydown events to update isSelected states
34
33
  */
35
34
  async handleSelect(e, { component }) {
36
35
  const { hostElement, mode, options, update } = this;
@@ -160,7 +159,8 @@ export class XplDropdown {
160
159
  "resolved": "Partial<DropdownOption & DropdownOptionGroup>[]",
161
160
  "references": {
162
161
  "DropdownItem": {
163
- "location": "global"
162
+ "location": "import",
163
+ "path": "./dropdownoption"
164
164
  }
165
165
  }
166
166
  },
@@ -210,11 +210,14 @@ export class XplDropdown {
210
210
  "type": "unknown",
211
211
  "mutable": false,
212
212
  "complexType": {
213
- "original": "(e: Event, { component: XplDropdown }) => void",
214
- "resolved": "(e: Event, { component: XplDropdown }: { component: any; }) => void",
213
+ "original": "(\n e: Event,\n { component }: { component: XplDropdown }\n ) => void",
214
+ "resolved": "(e: Event, { component }: { component: XplDropdown; }) => void",
215
215
  "references": {
216
216
  "Event": {
217
217
  "location": "global"
218
+ },
219
+ "XplDropdown": {
220
+ "location": "global"
218
221
  }
219
222
  }
220
223
  },
@@ -229,7 +232,7 @@ export class XplDropdown {
229
232
  static get methods() { return {
230
233
  "handleSelect": {
231
234
  "complexType": {
232
- "signature": "(e: Event, { component }: { component: any; }) => Promise<void>",
235
+ "signature": "(e: Event, { component }: { component: XplDropdownOption; }) => Promise<void>",
233
236
  "parameters": [{
234
237
  "tags": [],
235
238
  "text": ""
@@ -244,14 +247,19 @@ export class XplDropdown {
244
247
  "Event": {
245
248
  "location": "global"
246
249
  },
250
+ "XplDropdownOption": {
251
+ "location": "import",
252
+ "path": "./xpl-dropdown-option/xpl-dropdown-option"
253
+ },
247
254
  "DropdownItem": {
248
- "location": "global"
255
+ "location": "import",
256
+ "path": "./dropdownoption"
249
257
  }
250
258
  },
251
259
  "return": "Promise<void>"
252
260
  },
253
261
  "docs": {
254
- "text": "called on dropdown option click and keydown events to update isSelected states",
262
+ "text": "called on dropdown option click and keydown events to update isSelected states",
255
263
  "tags": []
256
264
  }
257
265
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference path="./listitem.d.ts"></reference>
2
1
  import { Component, Host, h, Prop, Fragment, } from '@stencil/core';
3
2
  import '../../../font-awesome/fontawesome';
4
3
  import '../../../font-awesome/regular';
@@ -75,7 +74,8 @@ export class XplList {
75
74
  "resolved": "ListItem[]",
76
75
  "references": {
77
76
  "ListItem": {
78
- "location": "global"
77
+ "location": "import",
78
+ "path": "./listitem"
79
79
  }
80
80
  }
81
81
  },
@@ -198,7 +198,8 @@ export class XplSelect {
198
198
  "resolved": "SelectChoice[]",
199
199
  "references": {
200
200
  "SelectChoice": {
201
- "location": "global"
201
+ "location": "import",
202
+ "path": "./selectchoice"
202
203
  }
203
204
  }
204
205
  },
@@ -30,24 +30,24 @@ export class XplTable {
30
30
  this.onScroll = () => {
31
31
  this.hasScrolled = this.container.scrollLeft > 0;
32
32
  };
33
- /**
34
- * TODO: Need to figure out how this interplays with data
35
- * received from an API/server
36
- */
37
- this.sortBy = (col, ascending = true) => {
38
- this.rowData.sort((a, b) => {
39
- const A = a[col];
40
- const B = b[col];
41
- if (typeof A === 'number' && typeof B === 'number') {
42
- const f = ascending ? 1 : -1;
43
- return A > B ? f : -f;
44
- }
45
- return -1;
46
- });
47
- this.rowData = Array.from(this.rowData);
48
- this.render();
49
- };
50
33
  }
34
+ /**
35
+ * TODO: Need to figure out how this interplays with data
36
+ * received from an API/server
37
+ */
38
+ // private sortBy = (col: number, ascending = true) => {
39
+ // this.rowData.sort((a, b) => {
40
+ // const A = a[col];
41
+ // const B = b[col];
42
+ // if (typeof A === 'number' && typeof B === 'number') {
43
+ // const f = ascending ? 1 : -1;
44
+ // return A > B ? f : -f;
45
+ // }
46
+ // return -1;
47
+ // });
48
+ // this.rowData = Array.from(this.rowData);
49
+ // this.render();
50
+ // };
51
51
  componentWillLoad() {
52
52
  this.areAllSelected = false;
53
53
  this.rowData = this.data !== undefined ? Array.from(this.data) : [];