@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
@@ -1,125 +1,17 @@
1
- import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-5b4a209e.js';
2
- import { g as globalScripts } from './app-globals-0f993ce5.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-e3c4bb97.js';
3
2
 
4
3
  /*
5
4
  Stencil Client Patch Browser v2.8.0 | MIT Licensed | https://stenciljs.com
6
5
  */
7
- const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
8
6
  const patchBrowser = () => {
9
- // NOTE!! This fn cannot use async/await!
10
- if (BUILD.isDev && !BUILD.isTesting) {
11
- consoleDevInfo('Running in development mode.');
12
- }
13
- if (BUILD.cssVarShim) {
14
- // shim css vars
15
- plt.$cssShim$ = win.__cssshim;
16
- }
17
- if (BUILD.cloneNodeFix) {
18
- // opted-in to polyfill cloneNode() for slot polyfilled components
19
- patchCloneNodeFix(H.prototype);
20
- }
21
- if (BUILD.profile && !performance.mark) {
22
- // not all browsers support performance.mark/measure (Safari 10)
23
- performance.mark = performance.measure = () => {
24
- /*noop*/
25
- };
26
- performance.getEntriesByName = () => [];
27
- }
28
- // @ts-ignore
29
- const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
30
- ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
31
- s.getAttribute('data-stencil-namespace') === NAMESPACE)
32
- : null;
33
7
  const importMeta = import.meta.url;
34
- const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
35
- if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
36
- // Safari < v11 support: This IF is true if it's Safari below v11.
37
- // This fn cannot use async/await since Safari didn't support it until v11,
38
- // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
39
- // so both the ESM file and nomodule file would get downloaded. Only Safari
40
- // has 'onbeforeload' in the script, and "history.scrollRestoration" was added
41
- // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
42
- // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
43
- return {
44
- then() {
45
- /* promise noop */
46
- },
47
- };
48
- }
49
- if (!BUILD.safari10 && importMeta !== '') {
8
+ const opts = {};
9
+ if (importMeta !== '') {
50
10
  opts.resourcesUrl = new URL('.', importMeta).href;
51
11
  }
52
- else if (BUILD.dynamicImportShim || BUILD.safari10) {
53
- opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
54
- if (BUILD.dynamicImportShim) {
55
- patchDynamicImport(opts.resourcesUrl, scriptElm);
56
- }
57
- if (BUILD.dynamicImportShim && !win.customElements) {
58
- // module support, but no custom elements support (Old Edge)
59
- // @ts-ignore
60
- return import(/* webpackChunkName: "polyfills-dom" */ './dom-1f98a75f.js').then(() => opts);
61
- }
62
- }
63
12
  return promiseResolve(opts);
64
13
  };
65
- const patchDynamicImport = (base, orgScriptElm) => {
66
- const importFunctionName = getDynamicImportFunction(NAMESPACE);
67
- try {
68
- // test if this browser supports dynamic imports
69
- // There is a caching issue in V8, that breaks using import() in Function
70
- // By generating a random string, we can workaround it
71
- // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
72
- win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
73
- }
74
- catch (e) {
75
- // this shim is specifically for browsers that do support "esm" imports
76
- // however, they do NOT support "dynamic" imports
77
- // basically this code is for old Edge, v18 and below
78
- const moduleMap = new Map();
79
- win[importFunctionName] = (src) => {
80
- const url = new URL(src, base).href;
81
- let mod = moduleMap.get(url);
82
- if (!mod) {
83
- const script = doc.createElement('script');
84
- script.type = 'module';
85
- script.crossOrigin = orgScriptElm.crossOrigin;
86
- script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
87
- type: 'application/javascript',
88
- }));
89
- mod = new Promise((resolve) => {
90
- script.onload = () => {
91
- resolve(win[importFunctionName].m);
92
- script.remove();
93
- };
94
- });
95
- moduleMap.set(url, mod);
96
- doc.head.appendChild(script);
97
- }
98
- return mod;
99
- };
100
- }
101
- };
102
- const patchCloneNodeFix = (HTMLElementPrototype) => {
103
- const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
104
- HTMLElementPrototype.cloneNode = function (deep) {
105
- if (this.nodeName === 'TEMPLATE') {
106
- return nativeCloneNodeFn.call(this, deep);
107
- }
108
- const clonedNode = nativeCloneNodeFn.call(this, false);
109
- const srcChildNodes = this.childNodes;
110
- if (deep) {
111
- for (let i = 0; i < srcChildNodes.length; i++) {
112
- // Node.ATTRIBUTE_NODE === 2, and checking because IE11
113
- if (srcChildNodes[i].nodeType !== 2) {
114
- clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
115
- }
116
- }
117
- }
118
- return clonedNode;
119
- };
120
- };
121
14
 
122
15
  patchBrowser().then(options => {
123
- globalScripts();
124
- return bootstrapLazy([["xpl-select",[[0,"xpl-select",{"choices":[16],"description":[1],"disabled":[4],"error":[1],"label":[1],"mode":[1],"placeholder":[1],"truncate":[4],"active":[32],"id":[32],"keepFocus":[32],"selected":[32],"value":[32],"displayValue":[32],"visibleChoices":[32]}]]],["xpl-choicelist",[[0,"xpl-choicelist",{"choices":[16],"description":[1],"heading":[1],"multi":[4],"name":[1],"styled":[4],"selected":[32]}]]],["xpl-list",[[0,"xpl-list",{"items":[16]}]]],["xpl-application-shell",[[4,"xpl-application-shell",{"withSubnav":[4,"with-subnav"],"withUtility":[4,"with-utility"],"navWidth":[1,"nav-width"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"navOpen":[32]},[[0,"navOpen","navToggleHandler"],[0,"navWidth","navWithHandler"],[9,"resize","onWindowResize"]]]]],["xpl-button-row",[[0,"xpl-button-row",{"primary":[1],"secondary":[1],"tertiary":[1]}]]],["xpl-breadcrumb-item",[[4,"xpl-breadcrumb-item"]]],["xpl-breadcrumbs",[[4,"xpl-breadcrumbs"]]],["xpl-content-area",[[4,"xpl-content-area",{"size":[1]}]]],["xpl-divider",[[4,"xpl-divider",{"tier":[2]}]]],["xpl-grid",[[0,"xpl-grid"]]],["xpl-grid-item",[[4,"xpl-grid-item",{"xs":[2],"sm":[2],"md":[2],"lg":[2]}]]],["xpl-input",[[0,"xpl-input",{"_id":[1],"autocomplete":[1],"dateFormat":[1,"date-format"],"description":[1],"disabled":[4],"error":[1],"label":[1],"max":[8],"maxCharacterCount":[2,"max-character-count"],"min":[8],"mode":[1],"multiline":[4],"name":[1],"placeholder":[1],"post":[1],"pre":[1],"readonly":[4],"required":[4],"step":[2],"type":[1],"value":[1],"characterCount":[32],"passwordVisible":[32]}]]],["xpl-main-nav",[[4,"xpl-main-nav",{"width":[1]}]]],["xpl-nav-item",[[4,"xpl-nav-item",{"navControl":[4,"nav-control"]}]]],["xpl-pagination",[[0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32],"goto":[64]}]]],["xpl-secondary-nav",[[4,"xpl-secondary-nav"]]],["xpl-table",[[0,"xpl-table",{"columns":[16],"data":[16],"freeze":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32]}]]],["xpl-toggle",[[0,"xpl-toggle",{"checked":[4],"description":[1],"disabled":[4],"heading":[1],"label":[1],"name":[1],"variant":[1],"id":[32]}]]],["xpl-utility-bar",[[4,"xpl-utility-bar",{"navControl":[4,"nav-control"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"open":[32]}]]],["xpl-dropdown",[[4,"xpl-dropdown",{"isOpen":[1540,"open"],"closeOnSelect":[4,"close-on-select"],"mode":[1],"options":[16],"selectOnFocus":[4,"select-on-focus"],"triggerId":[1,"trigger-id"],"update":[16],"handleSelect":[64]}]]],["xpl-avatar",[[4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}]]],["xpl-backdrop",[[0,"xpl-backdrop",{"relative":[4]}]]],["xpl-badge",[[4,"xpl-badge",{"dot":[4],"variant":[1]}]]],["xpl-button",[[4,"xpl-button",{"disabled":[4],"link":[4],"iconOnly":[4,"icon-only"],"fullWidth":[4,"full-width"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1],"state":[1]}]]],["xpl-checkbox",[[4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"styled":[4],"value":[1],"id":[32]}]]],["xpl-radio",[[4,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"required":[4],"styled":[4],"value":[1],"id":[32]}]]],["xpl-tag",[[4,"xpl-tag"]]],["xpl-dropdown-heading",[[4,"xpl-dropdown-heading",{"label":[1]}]]],["xpl-dropdown-option",[[4,"xpl-dropdown-option",{"isDisabled":[516,"disabled"],"label":[1],"isSelected":[1540,"selected"]}]]],["xpl-dropdown-group",[[4,"xpl-dropdown-group",{"groupName":[1,"label"],"options":[16]}]]]], options);
16
+ return bootstrapLazy([["xpl-select",[[0,"xpl-select",{"choices":[16],"description":[1],"disabled":[4],"error":[1],"label":[1],"mode":[1],"placeholder":[1],"truncate":[4],"active":[32],"id":[32],"keepFocus":[32],"selected":[32],"value":[32],"displayValue":[32],"visibleChoices":[32]}]]],["xpl-application-shell",[[4,"xpl-application-shell",{"withSubnav":[4,"with-subnav"],"withUtility":[4,"with-utility"],"navWidth":[1,"nav-width"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"navOpen":[32]},[[0,"navOpen","navToggleHandler"],[0,"navWidth","navWithHandler"],[9,"resize","onWindowResize"]]]]],["xpl-avatar_12",[[4,"xpl-breadcrumb-item"],[4,"xpl-breadcrumbs"],[4,"xpl-content-area",{"size":[1]}],[4,"xpl-nav-item",{"navControl":[4,"nav-control"]}],[4,"xpl-secondary-nav"],[0,"xpl-table",{"columns":[16],"data":[16],"freeze":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32]}],[4,"xpl-utility-bar",{"navControl":[4,"nav-control"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"open":[32]}],[4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}],[4,"xpl-badge",{"dot":[4],"variant":[1]}],[4,"xpl-button",{"disabled":[4],"link":[4],"iconOnly":[4,"icon-only"],"fullWidth":[4,"full-width"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1],"state":[1]}],[4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"styled":[4],"value":[1],"id":[32]}],[4,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"required":[4],"styled":[4],"value":[1],"id":[32]}]]],["xpl-choicelist",[[0,"xpl-choicelist",{"choices":[16],"description":[1],"heading":[1],"multi":[4],"name":[1],"styled":[4],"selected":[32]}]]],["xpl-list",[[0,"xpl-list",{"items":[16]}]]],["xpl-button-row",[[0,"xpl-button-row",{"primary":[1],"secondary":[1],"tertiary":[1]}]]],["xpl-divider",[[4,"xpl-divider",{"tier":[2]}]]],["xpl-grid",[[0,"xpl-grid"]]],["xpl-grid-item",[[4,"xpl-grid-item",{"xs":[2],"sm":[2],"md":[2],"lg":[2]}]]],["xpl-input",[[0,"xpl-input",{"_id":[1],"autocomplete":[1],"dateFormat":[1,"date-format"],"description":[1],"disabled":[4],"error":[1],"label":[1],"max":[8],"maxCharacterCount":[2,"max-character-count"],"min":[8],"mode":[1],"multiline":[4],"name":[1],"placeholder":[1],"post":[1],"pre":[1],"readonly":[4],"required":[4],"step":[2],"type":[1],"value":[1],"characterCount":[32],"passwordVisible":[32]}]]],["xpl-main-nav",[[4,"xpl-main-nav",{"width":[1]}]]],["xpl-pagination",[[0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32],"goto":[64]}]]],["xpl-toggle",[[0,"xpl-toggle",{"checked":[4],"description":[1],"disabled":[4],"heading":[1],"label":[1],"name":[1],"variant":[1],"id":[32]}]]],["xpl-backdrop",[[0,"xpl-backdrop",{"relative":[4]}]]],["xpl-dropdown-group_3",[[4,"xpl-dropdown-group",{"groupName":[1,"label"],"options":[16]}],[4,"xpl-dropdown-heading",{"label":[1]}],[4,"xpl-dropdown-option",{"isDisabled":[516,"disabled"],"label":[1],"isSelected":[1540,"selected"]}]]],["xpl-dropdown_2",[[4,"xpl-dropdown",{"isOpen":[1540,"open"],"closeOnSelect":[4,"close-on-select"],"mode":[1],"options":[16],"selectOnFocus":[4,"select-on-focus"],"triggerId":[1,"trigger-id"],"update":[16],"handleSelect":[64]}],[4,"xpl-tag"]]]], options);
125
17
  });
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- //! Autogenerated index
1
+
@@ -1,32 +1,16 @@
1
- import { B as BUILD, C as CSS, p as plt, w as win, a as promiseResolve, b as bootstrapLazy } from './index-5b4a209e.js';
2
- import { g as globalScripts } from './app-globals-0f993ce5.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-e3c4bb97.js';
3
2
 
4
3
  /*
5
4
  Stencil Client Patch Esm v2.8.0 | MIT Licensed | https://stenciljs.com
6
5
  */
7
6
  const patchEsm = () => {
8
- // NOTE!! This fn cannot use async/await!
9
- // @ts-ignore
10
- if (BUILD.cssVarShim && !(CSS && CSS.supports && CSS.supports('color', 'var(--c)'))) {
11
- // @ts-ignore
12
- return import(/* webpackChunkName: "polyfills-css-shim" */ './css-shim-bbdf0cc6.js').then(() => {
13
- if ((plt.$cssShim$ = win.__cssshim)) {
14
- return plt.$cssShim$.i();
15
- }
16
- else {
17
- // for better minification
18
- return 0;
19
- }
20
- });
21
- }
22
7
  return promiseResolve();
23
8
  };
24
9
 
25
10
  const defineCustomElements = (win, options) => {
26
11
  if (typeof window === 'undefined') return Promise.resolve();
27
12
  return patchEsm().then(() => {
28
- globalScripts();
29
- return bootstrapLazy([["xpl-select",[[0,"xpl-select",{"choices":[16],"description":[1],"disabled":[4],"error":[1],"label":[1],"mode":[1],"placeholder":[1],"truncate":[4],"active":[32],"id":[32],"keepFocus":[32],"selected":[32],"value":[32],"displayValue":[32],"visibleChoices":[32]}]]],["xpl-choicelist",[[0,"xpl-choicelist",{"choices":[16],"description":[1],"heading":[1],"multi":[4],"name":[1],"styled":[4],"selected":[32]}]]],["xpl-list",[[0,"xpl-list",{"items":[16]}]]],["xpl-application-shell",[[4,"xpl-application-shell",{"withSubnav":[4,"with-subnav"],"withUtility":[4,"with-utility"],"navWidth":[1,"nav-width"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"navOpen":[32]},[[0,"navOpen","navToggleHandler"],[0,"navWidth","navWithHandler"],[9,"resize","onWindowResize"]]]]],["xpl-button-row",[[0,"xpl-button-row",{"primary":[1],"secondary":[1],"tertiary":[1]}]]],["xpl-breadcrumb-item",[[4,"xpl-breadcrumb-item"]]],["xpl-breadcrumbs",[[4,"xpl-breadcrumbs"]]],["xpl-content-area",[[4,"xpl-content-area",{"size":[1]}]]],["xpl-divider",[[4,"xpl-divider",{"tier":[2]}]]],["xpl-grid",[[0,"xpl-grid"]]],["xpl-grid-item",[[4,"xpl-grid-item",{"xs":[2],"sm":[2],"md":[2],"lg":[2]}]]],["xpl-input",[[0,"xpl-input",{"_id":[1],"autocomplete":[1],"dateFormat":[1,"date-format"],"description":[1],"disabled":[4],"error":[1],"label":[1],"max":[8],"maxCharacterCount":[2,"max-character-count"],"min":[8],"mode":[1],"multiline":[4],"name":[1],"placeholder":[1],"post":[1],"pre":[1],"readonly":[4],"required":[4],"step":[2],"type":[1],"value":[1],"characterCount":[32],"passwordVisible":[32]}]]],["xpl-main-nav",[[4,"xpl-main-nav",{"width":[1]}]]],["xpl-nav-item",[[4,"xpl-nav-item",{"navControl":[4,"nav-control"]}]]],["xpl-pagination",[[0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32],"goto":[64]}]]],["xpl-secondary-nav",[[4,"xpl-secondary-nav"]]],["xpl-table",[[0,"xpl-table",{"columns":[16],"data":[16],"freeze":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32]}]]],["xpl-toggle",[[0,"xpl-toggle",{"checked":[4],"description":[1],"disabled":[4],"heading":[1],"label":[1],"name":[1],"variant":[1],"id":[32]}]]],["xpl-utility-bar",[[4,"xpl-utility-bar",{"navControl":[4,"nav-control"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"open":[32]}]]],["xpl-dropdown",[[4,"xpl-dropdown",{"isOpen":[1540,"open"],"closeOnSelect":[4,"close-on-select"],"mode":[1],"options":[16],"selectOnFocus":[4,"select-on-focus"],"triggerId":[1,"trigger-id"],"update":[16],"handleSelect":[64]}]]],["xpl-avatar",[[4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}]]],["xpl-backdrop",[[0,"xpl-backdrop",{"relative":[4]}]]],["xpl-badge",[[4,"xpl-badge",{"dot":[4],"variant":[1]}]]],["xpl-button",[[4,"xpl-button",{"disabled":[4],"link":[4],"iconOnly":[4,"icon-only"],"fullWidth":[4,"full-width"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1],"state":[1]}]]],["xpl-checkbox",[[4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"styled":[4],"value":[1],"id":[32]}]]],["xpl-radio",[[4,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"required":[4],"styled":[4],"value":[1],"id":[32]}]]],["xpl-tag",[[4,"xpl-tag"]]],["xpl-dropdown-heading",[[4,"xpl-dropdown-heading",{"label":[1]}]]],["xpl-dropdown-option",[[4,"xpl-dropdown-option",{"isDisabled":[516,"disabled"],"label":[1],"isSelected":[1540,"selected"]}]]],["xpl-dropdown-group",[[4,"xpl-dropdown-group",{"groupName":[1,"label"],"options":[16]}]]]], options);
13
+ return bootstrapLazy([["xpl-select",[[0,"xpl-select",{"choices":[16],"description":[1],"disabled":[4],"error":[1],"label":[1],"mode":[1],"placeholder":[1],"truncate":[4],"active":[32],"id":[32],"keepFocus":[32],"selected":[32],"value":[32],"displayValue":[32],"visibleChoices":[32]}]]],["xpl-application-shell",[[4,"xpl-application-shell",{"withSubnav":[4,"with-subnav"],"withUtility":[4,"with-utility"],"navWidth":[1,"nav-width"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"navOpen":[32]},[[0,"navOpen","navToggleHandler"],[0,"navWidth","navWithHandler"],[9,"resize","onWindowResize"]]]]],["xpl-avatar_12",[[4,"xpl-breadcrumb-item"],[4,"xpl-breadcrumbs"],[4,"xpl-content-area",{"size":[1]}],[4,"xpl-nav-item",{"navControl":[4,"nav-control"]}],[4,"xpl-secondary-nav"],[0,"xpl-table",{"columns":[16],"data":[16],"freeze":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32]}],[4,"xpl-utility-bar",{"navControl":[4,"nav-control"],"isNavOpenAtStartup":[4,"is-nav-open-at-startup"],"open":[32]}],[4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}],[4,"xpl-badge",{"dot":[4],"variant":[1]}],[4,"xpl-button",{"disabled":[4],"link":[4],"iconOnly":[4,"icon-only"],"fullWidth":[4,"full-width"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1],"state":[1]}],[4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"styled":[4],"value":[1],"id":[32]}],[4,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"required":[4],"styled":[4],"value":[1],"id":[32]}]]],["xpl-choicelist",[[0,"xpl-choicelist",{"choices":[16],"description":[1],"heading":[1],"multi":[4],"name":[1],"styled":[4],"selected":[32]}]]],["xpl-list",[[0,"xpl-list",{"items":[16]}]]],["xpl-button-row",[[0,"xpl-button-row",{"primary":[1],"secondary":[1],"tertiary":[1]}]]],["xpl-divider",[[4,"xpl-divider",{"tier":[2]}]]],["xpl-grid",[[0,"xpl-grid"]]],["xpl-grid-item",[[4,"xpl-grid-item",{"xs":[2],"sm":[2],"md":[2],"lg":[2]}]]],["xpl-input",[[0,"xpl-input",{"_id":[1],"autocomplete":[1],"dateFormat":[1,"date-format"],"description":[1],"disabled":[4],"error":[1],"label":[1],"max":[8],"maxCharacterCount":[2,"max-character-count"],"min":[8],"mode":[1],"multiline":[4],"name":[1],"placeholder":[1],"post":[1],"pre":[1],"readonly":[4],"required":[4],"step":[2],"type":[1],"value":[1],"characterCount":[32],"passwordVisible":[32]}]]],["xpl-main-nav",[[4,"xpl-main-nav",{"width":[1]}]]],["xpl-pagination",[[0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32],"goto":[64]}]]],["xpl-toggle",[[0,"xpl-toggle",{"checked":[4],"description":[1],"disabled":[4],"heading":[1],"label":[1],"name":[1],"variant":[1],"id":[32]}]]],["xpl-backdrop",[[0,"xpl-backdrop",{"relative":[4]}]]],["xpl-dropdown-group_3",[[4,"xpl-dropdown-group",{"groupName":[1,"label"],"options":[16]}],[4,"xpl-dropdown-heading",{"label":[1]}],[4,"xpl-dropdown-option",{"isDisabled":[516,"disabled"],"label":[1],"isSelected":[1540,"selected"]}]]],["xpl-dropdown_2",[[4,"xpl-dropdown",{"isOpen":[1540,"open"],"closeOnSelect":[4,"close-on-select"],"mode":[1],"options":[16],"selectOnFocus":[4,"select-on-focus"],"triggerId":[1,"trigger-id"],"update":[16],"handleSelect":[64]}],[4,"xpl-tag"]]]], options);
30
14
  });
31
15
  };
32
16
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, e as Host } from './index-5b4a209e.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplApplicationShell = class {
4
4
  constructor(hostRef) {
@@ -231,24 +231,24 @@ const XplTable = class {
231
231
  this.onScroll = () => {
232
232
  this.hasScrolled = this.container.scrollLeft > 0;
233
233
  };
234
- /**
235
- * TODO: Need to figure out how this interplays with data
236
- * received from an API/server
237
- */
238
- this.sortBy = (col, ascending = true) => {
239
- this.rowData.sort((a, b) => {
240
- const A = a[col];
241
- const B = b[col];
242
- if (typeof A === 'number' && typeof B === 'number') {
243
- const f = ascending ? 1 : -1;
244
- return A > B ? f : -f;
245
- }
246
- return -1;
247
- });
248
- this.rowData = Array.from(this.rowData);
249
- this.render();
250
- };
251
234
  }
235
+ /**
236
+ * TODO: Need to figure out how this interplays with data
237
+ * received from an API/server
238
+ */
239
+ // private sortBy = (col: number, ascending = true) => {
240
+ // this.rowData.sort((a, b) => {
241
+ // const A = a[col];
242
+ // const B = b[col];
243
+ // if (typeof A === 'number' && typeof B === 'number') {
244
+ // const f = ascending ? 1 : -1;
245
+ // return A > B ? f : -f;
246
+ // }
247
+ // return -1;
248
+ // });
249
+ // this.rowData = Array.from(this.rowData);
250
+ // this.render();
251
+ // };
252
252
  componentWillLoad() {
253
253
  this.areAllSelected = false;
254
254
  this.rowData = this.data !== undefined ? Array.from(this.data) : [];
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, e as Host } from './index-5b4a209e.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplBackdrop = class {
4
4
  constructor(hostRef) {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, f as createEvent, h, e as Host } from './index-5b4a209e.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplButtonRow = class {
4
4
  constructor(hostRef) {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, e as Host } from './index-5b4a209e.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplChoicelist = class {
4
4
  constructor(hostRef) {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, e as Host } from './index-5b4a209e.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplDivider = class {
4
4
  constructor(hostRef) {
@@ -64,7 +64,10 @@ const XplDropdownOption = class {
64
64
  const { closeOnSelect, mode, selectOnFocus } = this.dropdown;
65
65
  if (selectOnFocus && navigationKeys.includes(ev.key)) {
66
66
  const hostElement = document.activeElement.closest('xpl-dropdown-option');
67
- dropdown.handleSelect(ev, { component: { hostElement } });
67
+ const component = {
68
+ component: { hostElement },
69
+ };
70
+ dropdown.handleSelect(ev, component);
68
71
  if (mode === 'single' && closeOnSelect)
69
72
  this.dropdown.isOpen = false;
70
73
  return;
@@ -16,7 +16,6 @@ const XplDropdown = class {
16
16
  constructor(hostRef) {
17
17
  registerInstance(this, hostRef);
18
18
  /** text to display as heading */
19
- // eslint-disable-next-line @stencil/strict-mutable
20
19
  this.isOpen = false;
21
20
  /** options that are listed */
22
21
  this.closeOnSelect = true;
@@ -33,7 +32,7 @@ const XplDropdown = class {
33
32
  };
34
33
  }
35
34
  /**
36
- * called on dropdown option click and keydown events to update isSelected states
35
+ * called on dropdown option click and keydown events to update isSelected states
37
36
  */
38
37
  async handleSelect(e, { component }) {
39
38
  const { hostElement, mode, options, update } = this;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, e as Host } from './index-5b4a209e.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplGridItem = class {
4
4
  constructor(hostRef) {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, e as Host, g as getElement } from './index-5b4a209e.js';
1
+ import { r as registerInstance, h, g as getElement, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplGrid = class {
4
4
  constructor(hostRef) {
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, e as Host } from './index-5b4a209e.js';
2
- import { v as v4 } from './index-912d1a21.js';
3
- import './regular-133c23b5.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
+ import './regular-86225e9d.js';
3
+ import { v as v4 } from './v4-929670b7.js';
4
4
 
5
5
  const HOOKS = [
6
6
  "onChange",
@@ -433,12 +433,6 @@ function compareDates(date1, date2, timeless = true) {
433
433
  }
434
434
  return date1.getTime() - date2.getTime();
435
435
  }
436
- function compareTimes(date1, date2) {
437
- return (3600 * (date1.getHours() - date2.getHours()) +
438
- 60 * (date1.getMinutes() - date2.getMinutes()) +
439
- date1.getSeconds() -
440
- date2.getSeconds());
441
- }
442
436
  const isBetween = (ts, ts1, ts2) => {
443
437
  return ts > Math.min(ts1, ts2) && ts < Math.max(ts1, ts2);
444
438
  };
@@ -474,7 +468,6 @@ function getDefaultHours(config) {
474
468
  return { hours, minutes, seconds };
475
469
  }
476
470
 
477
- "use strict";
478
471
  if (typeof Object.assign !== "function") {
479
472
  Object.assign = function (target, ...args) {
480
473
  if (!target) {
@@ -1577,8 +1570,6 @@ function FlatpickrInstance(element, instanceConfig) {
1577
1570
  self._input.focus();
1578
1571
  }
1579
1572
  break;
1580
- default:
1581
- break;
1582
1573
  }
1583
1574
  }
1584
1575
  if (self.amPM !== undefined && eventTarget === self.amPM) {
@@ -1925,12 +1916,6 @@ function FlatpickrInstance(element, instanceConfig) {
1925
1916
  let editableSheet = null;
1926
1917
  for (let i = 0; i < document.styleSheets.length; i++) {
1927
1918
  const sheet = document.styleSheets[i];
1928
- try {
1929
- sheet.cssRules;
1930
- }
1931
- catch (err) {
1932
- continue;
1933
- }
1934
1919
  editableSheet = sheet;
1935
1920
  break;
1936
1921
  }
@@ -2086,8 +2071,6 @@ function FlatpickrInstance(element, instanceConfig) {
2086
2071
  .split(self.l10n.rangeSeparator)
2087
2072
  .map((date) => self.parseDate(date, format));
2088
2073
  break;
2089
- default:
2090
- break;
2091
2074
  }
2092
2075
  }
2093
2076
  else
@@ -1,5 +1,5 @@
1
- import { h, F as Fragment, r as registerInstance, e as Host } from './index-5b4a209e.js';
2
- import './regular-133c23b5.js';
1
+ import { r as registerInstance, h, H as Host, F as Fragment } from './index-e3c4bb97.js';
2
+ import './regular-86225e9d.js';
3
3
 
4
4
  const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata, }) => {
5
5
  const hasRight = avatars || badges || subtext;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, f as createEvent, h, e as Host } from './index-5b4a209e.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplMainNav = class {
4
4
  constructor(hostRef) {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, f as createEvent, h, e as Host } from './index-5b4a209e.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-e3c4bb97.js';
2
2
 
3
3
  const XplPagination = class {
4
4
  constructor(hostRef) {
@@ -1,49 +1,8 @@
1
- import { r as registerInstance, h, e as Host } from './index-5b4a209e.js';
2
- import { v as v4 } from './index-912d1a21.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
+ import { v as v4 } from './v4-929670b7.js';
3
3
 
4
4
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
5
 
6
- function getDefaultExportFromCjs (x) {
7
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
8
- }
9
-
10
- function createCommonjsModule(fn, basedir, module) {
11
- return module = {
12
- path: basedir,
13
- exports: {},
14
- require: function (path, base) {
15
- return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
16
- }
17
- }, fn(module, module.exports), module.exports;
18
- }
19
-
20
- function getDefaultExportFromNamespaceIfPresent (n) {
21
- return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
22
- }
23
-
24
- function getDefaultExportFromNamespaceIfNotNamed (n) {
25
- return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
26
- }
27
-
28
- function getAugmentedNamespace(n) {
29
- if (n.__esModule) return n;
30
- var a = Object.defineProperty({}, '__esModule', {value: true});
31
- Object.keys(n).forEach(function (k) {
32
- var d = Object.getOwnPropertyDescriptor(n, k);
33
- Object.defineProperty(a, k, d.get ? d : {
34
- enumerable: true,
35
- get: function () {
36
- return n[k];
37
- }
38
- });
39
- });
40
- return a;
41
- }
42
-
43
- function commonjsRequire () {
44
- throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
45
- }
46
-
47
6
  /**
48
7
  * lodash (Custom Build) <https://lodash.com/>
49
8
  * Build: `lodash modularize exports="npm" -o ./`
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, e as Host } from './index-5b4a209e.js';
2
- import { v as v4 } from './index-912d1a21.js';
1
+ import { r as registerInstance, h, H as Host } from './index-e3c4bb97.js';
2
+ import { v as v4 } from './v4-929670b7.js';
3
3
 
4
4
  const XplToggle = class {
5
5
  constructor(hostRef) {
@@ -1,6 +1,6 @@
1
- interface Choice {
2
- checked?: boolean;
3
- children?: Choice[];
4
- description?: string;
5
- label?: string;
1
+ export interface Choice {
2
+ checked?: boolean;
3
+ children?: Choice[];
4
+ description?: string;
5
+ label?: string;
6
6
  }
@@ -1,8 +1,9 @@
1
+ import { Choice } from './choice';
1
2
  export declare class XplChoicelist {
2
3
  /**
3
4
  * An array of choices to be displayed in the list.
4
5
  * Each choice should be an object with keys:
5
- * - `checked` [boolean] - whether to precheck or not
6
+ * - `checked` [boolean] - whether to pre-check or not
6
7
  * - `children` [Choice[]] - an array of child choices (recursive)
7
8
  * - `description` [string]
8
9
  * - `label` [string]
@@ -1,12 +1,10 @@
1
- interface DropdownOption {
2
- label: string;
3
- isSelected?: boolean;
4
- isDisabled?: boolean;
1
+ export interface DropdownOption {
2
+ label: string;
3
+ isSelected?: boolean;
4
+ isDisabled?: boolean;
5
5
  }
6
-
7
- type DropdownItem = Partial<DropdownOption & DropdownOptionGroup>;
8
-
9
- interface DropdownOptionGroup {
10
- groupName: string;
11
- options: DropdownItem[];
6
+ export declare type DropdownItem = Partial<DropdownOption & DropdownOptionGroup>;
7
+ export interface DropdownOptionGroup {
8
+ groupName: string;
9
+ options: DropdownItem[];
12
10
  }
@@ -1,3 +1,4 @@
1
+ import type { DropdownOptionGroup } from '../dropdownoption';
1
2
  export declare class XplDropdownGroup {
2
3
  /** text to display as heading */
3
4
  groupName: string;
@@ -1,3 +1,5 @@
1
+ import type { DropdownItem } from './dropdownoption';
2
+ import type { XplDropdownOption } from './xpl-dropdown-option/xpl-dropdown-option';
1
3
  export declare class XplDropdown {
2
4
  /** text to display as heading */
3
5
  isOpen: boolean;
@@ -17,15 +19,15 @@ export declare class XplDropdown {
17
19
  * @param {Object} options - component
18
20
  */
19
21
  /** call back function invoked when a selection is made */
20
- update?: (e: Event, { component: XplDropdown }: {
21
- component: any;
22
+ update?: (e: Event, { component }: {
23
+ component: XplDropdown;
22
24
  }) => void;
23
25
  hostElement: HTMLXplDropdownElement;
24
26
  /**
25
- * called on dropdown option click and keydown events to update isSelected states
27
+ * called on dropdown option click and keydown events to update isSelected states
26
28
  */
27
29
  handleSelect(e: Event, { component }: {
28
- component: any;
30
+ component: XplDropdownOption;
29
31
  }): Promise<void>;
30
32
  private handleClickOutside;
31
33
  componentWillLoad(): void;
@@ -1,20 +1,16 @@
1
- interface ListItem {
2
- avatar?: string;
3
- avatars?: string[];
4
- badges?:
5
- | string[]
6
- | {
7
- dot?: boolean;
8
- text: string;
9
- variant?: string;
10
- }[];
11
- href?: string;
12
- title: string;
13
- metadata?:
14
- | string[]
15
- | {
16
- icon: string;
17
- text: string;
18
- }[];
19
- subtext?: string;
1
+ export interface ListItem {
2
+ avatar?: string;
3
+ avatars?: string[];
4
+ badges?: string[] | {
5
+ dot?: boolean;
6
+ text: string;
7
+ variant?: string;
8
+ }[];
9
+ href?: string;
10
+ title: string;
11
+ metadata?: string[] | {
12
+ icon: string;
13
+ text: string;
14
+ }[];
15
+ subtext?: string;
20
16
  }
@@ -1,5 +1,6 @@
1
1
  import '../../../font-awesome/fontawesome';
2
2
  import '../../../font-awesome/regular';
3
+ import type { ListItem } from './listitem';
3
4
  export declare class XplList {
4
5
  /**
5
6
  * `items` should be an array of objects with the following signature:
@@ -1,3 +1,4 @@
1
- interface SelectChoice extends DropdownItem {
2
- value?: string;
1
+ import { DropdownItem } from '../xpl-dropdown/dropdownoption';
2
+ export interface SelectChoice extends DropdownItem {
3
+ value?: string;
3
4
  }
@@ -1,3 +1,4 @@
1
+ import type { SelectChoice } from './selectchoice';
1
2
  export declare class XplSelect {
2
3
  /**
3
4
  * An array of choices for the user to choose from.