@xplortech/apollo-core 0.5.3 → 1.0.0-beta.0

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 (202) hide show
  1. package/build/style.css +758 -383
  2. package/dist/apollo-core/apollo-core.css +9 -5468
  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-09b2f746.entry.js +1 -0
  6. package/dist/apollo-core/p-0bc956c6.entry.js +1 -0
  7. package/dist/apollo-core/p-1b1e7207.entry.js +1 -0
  8. package/dist/apollo-core/p-20389bb6.entry.js +1 -0
  9. package/dist/apollo-core/p-25983fde.entry.js +1 -0
  10. package/dist/apollo-core/p-2f90296c.js +10 -0
  11. package/dist/apollo-core/p-4a348764.entry.js +1 -0
  12. package/dist/apollo-core/p-4e2b69e8.entry.js +1 -0
  13. package/dist/apollo-core/p-84bf6b2d.entry.js +1 -0
  14. package/dist/apollo-core/p-880c0359.entry.js +1 -0
  15. package/dist/apollo-core/p-8e47a5be.entry.js +1 -0
  16. package/dist/apollo-core/p-93958292.entry.js +1 -0
  17. package/dist/apollo-core/p-93c27db5.entry.js +1 -0
  18. package/dist/apollo-core/p-ad90fe4d.js +1 -0
  19. package/dist/apollo-core/p-b2327e2c.entry.js +1 -0
  20. package/dist/apollo-core/p-c55b5d9c.entry.js +1 -0
  21. package/dist/apollo-core/p-e369d7af.entry.js +1 -0
  22. package/dist/apollo-core/p-e60ecaef.entry.js +1 -0
  23. package/dist/apollo-core/p-f929c958.js +1 -0
  24. package/dist/cjs/apollo-core.cjs.js +19 -0
  25. package/dist/cjs/index-54ba5804.js +1623 -0
  26. package/dist/cjs/index.cjs.js +2 -0
  27. package/dist/cjs/loader.cjs.js +21 -0
  28. package/dist/{apollo-core/regular-133c23b5.js → cjs/regular-872f5226.js} +3 -12
  29. package/dist/cjs/v4-14140ff3.js +77 -0
  30. package/dist/cjs/xpl-application-shell.cjs.entry.js +58 -0
  31. package/dist/cjs/xpl-avatar_12.cjs.entry.js +299 -0
  32. package/dist/cjs/xpl-backdrop.cjs.entry.js +25 -0
  33. package/dist/cjs/xpl-button-row.cjs.entry.js +22 -0
  34. package/dist/cjs/xpl-choicelist.cjs.entry.js +43 -0
  35. package/dist/cjs/xpl-divider.cjs.entry.js +18 -0
  36. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +104 -0
  37. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +123 -0
  38. package/dist/cjs/xpl-grid-item.cjs.entry.js +25 -0
  39. package/dist/cjs/xpl-grid.cjs.entry.js +35 -0
  40. package/dist/cjs/xpl-input.cjs.entry.js +2534 -0
  41. package/dist/cjs/xpl-list.cjs.entry.js +61 -0
  42. package/dist/cjs/xpl-main-nav.cjs.entry.js +30 -0
  43. package/dist/cjs/xpl-pagination.cjs.entry.js +76 -0
  44. package/dist/cjs/xpl-select.cjs.entry.js +625 -0
  45. package/dist/cjs/xpl-toggle.cjs.entry.js +34 -0
  46. package/dist/collection/collection-manifest.json +41 -0
  47. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +147 -0
  48. package/dist/collection/components/xpl-avatar/xpl-avatar.js +158 -0
  49. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +41 -0
  50. package/dist/collection/components/xpl-badge/xpl-badge.js +50 -0
  51. package/dist/{apollo-core/xpl-breadcrumb-item.entry.js → collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js} +12 -11
  52. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +13 -0
  53. package/dist/collection/components/xpl-button/xpl-button.js +211 -0
  54. package/dist/collection/components/xpl-button-row/xpl-button-row.js +117 -0
  55. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +185 -0
  56. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +150 -0
  57. package/dist/collection/components/xpl-content-area/xpl-content-area.js +39 -0
  58. package/dist/collection/components/xpl-divider/xpl-divider.js +30 -0
  59. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +66 -0
  60. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +27 -0
  61. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +110 -0
  62. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +260 -0
  63. package/dist/collection/components/xpl-grid/xpl-grid.js +26 -0
  64. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +93 -0
  65. package/dist/collection/components/xpl-input/xpl-input.js +478 -0
  66. package/dist/collection/components/xpl-list/xpl-list.js +91 -0
  67. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +72 -0
  68. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +67 -0
  69. package/dist/collection/components/xpl-pagination/xpl-pagination.js +190 -0
  70. package/dist/collection/components/xpl-radio/xpl-radio.js +168 -0
  71. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +9 -0
  72. package/dist/collection/components/xpl-select/xpl-select.js +344 -0
  73. package/dist/collection/components/xpl-table/xpl-table.js +200 -0
  74. package/dist/collection/components/xpl-tag/xpl-tag.js +30 -0
  75. package/dist/collection/components/xpl-toggle/xpl-toggle.js +157 -0
  76. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +66 -0
  77. package/dist/custom-elements/index.d.ts +24 -0
  78. package/dist/custom-elements/index.js +20201 -0
  79. package/dist/esm/apollo-core.js +17 -0
  80. package/dist/esm/index-3df6db84.js +1594 -0
  81. package/dist/esm/index.js +1 -0
  82. package/dist/esm/loader.js +17 -0
  83. package/dist/esm/polyfills/core-js.js +11 -0
  84. package/dist/esm/polyfills/css-shim.js +1 -0
  85. package/dist/esm/polyfills/dom.js +79 -0
  86. package/dist/esm/polyfills/es5-html-element.js +1 -0
  87. package/dist/esm/polyfills/index.js +34 -0
  88. package/dist/esm/polyfills/system.js +6 -0
  89. package/dist/esm/regular-86225e9d.js +16041 -0
  90. package/dist/esm/v4-929670b7.js +75 -0
  91. package/dist/{apollo-core → esm}/xpl-application-shell.entry.js +12 -8
  92. package/dist/esm/xpl-avatar_12.entry.js +284 -0
  93. package/dist/{apollo-core → esm}/xpl-backdrop.entry.js +2 -2
  94. package/dist/{apollo-core → esm}/xpl-button-row.entry.js +2 -4
  95. package/dist/esm/xpl-choicelist.entry.js +39 -0
  96. package/dist/{apollo-core → esm}/xpl-divider.entry.js +2 -2
  97. package/dist/esm/xpl-dropdown-group_3.entry.js +98 -0
  98. package/dist/esm/xpl-dropdown_2.entry.js +118 -0
  99. package/dist/{apollo-core → esm}/xpl-grid-item.entry.js +2 -2
  100. package/dist/esm/xpl-grid.entry.js +31 -0
  101. package/dist/{apollo-core → esm}/xpl-input.entry.js +35 -45
  102. package/dist/{apollo-core → esm}/xpl-list.entry.js +18 -20
  103. package/dist/{apollo-core → esm}/xpl-main-nav.entry.js +2 -2
  104. package/dist/{apollo-core → esm}/xpl-pagination.entry.js +8 -8
  105. package/dist/{apollo-core → esm}/xpl-select.entry.js +88 -126
  106. package/dist/esm/xpl-toggle.entry.js +30 -0
  107. package/dist/index.cjs.js +1 -0
  108. package/dist/index.js +1 -0
  109. package/dist/stories/application-shell.stories.js +767 -0
  110. package/dist/stories/avatar.stories.js +173 -0
  111. package/dist/stories/backdrop.stories.js +18 -0
  112. package/dist/stories/badge.stories.js +48 -0
  113. package/dist/stories/breadcrumbs.stories.js +117 -0
  114. package/dist/stories/button-row.stories.js +68 -0
  115. package/dist/stories/button.stories.js +110 -0
  116. package/dist/stories/checkbox.stories.js +78 -0
  117. package/dist/stories/choicelist.stories.js +112 -0
  118. package/dist/stories/content-area.stories.js +53 -0
  119. package/dist/stories/divider.stories.js +34 -0
  120. package/dist/stories/dropdown.stories.js +377 -0
  121. package/dist/stories/grid.stories.js +100 -0
  122. package/dist/stories/input.stories.js +268 -0
  123. package/dist/stories/list.stories.js +154 -0
  124. package/dist/stories/main-nav.stories.js +308 -0
  125. package/dist/stories/pagination.stories.js +84 -0
  126. package/dist/stories/radio.stories.js +68 -0
  127. package/dist/stories/secondary-nav.stories.js +76 -0
  128. package/dist/stories/select.stories.js +119 -0
  129. package/dist/stories/table.stories.js +107 -0
  130. package/dist/stories/tabs.stories.js +24 -0
  131. package/dist/stories/toggle.stories.js +84 -0
  132. package/dist/stories/utility-bar.stories.js +94 -0
  133. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/application-shell.stories.d.ts +4 -4
  134. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/avatar.stories.d.ts +1 -1
  135. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/backdrop.stories.d.ts +1 -1
  136. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/badge.stories.d.ts +1 -1
  137. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +1 -1
  138. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/button-row.stories.d.ts +1 -1
  139. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/button.stories.d.ts +19 -10
  140. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/checkbox.stories.d.ts +2 -2
  141. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/choicelist.stories.d.ts +1 -1
  142. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/content-area.stories.d.ts +1 -1
  143. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/divider.stories.d.ts +1 -1
  144. package/dist/types/Users/fernandogelin/Projects/apollo/.stencil/stories/dropdown.stories.d.ts +134 -0
  145. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/grid.stories.d.ts +1 -1
  146. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/input.stories.d.ts +5 -5
  147. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/list.stories.d.ts +1 -1
  148. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/main-nav.stories.d.ts +1 -1
  149. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/radio.stories.d.ts +1 -1
  150. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/secondary-nav.stories.d.ts +1 -1
  151. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/select.stories.d.ts +2 -2
  152. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/table.stories.d.ts +1 -1
  153. package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/toggle.stories.d.ts +2 -2
  154. package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +2 -2
  155. package/dist/types/components/xpl-avatar/xpl-avatar.d.ts +3 -3
  156. package/dist/types/components/xpl-badge/xpl-badge.d.ts +1 -1
  157. package/dist/types/components/xpl-button/xpl-button.d.ts +32 -8
  158. package/dist/types/components/xpl-button-row/xpl-button-row.d.ts +3 -3
  159. package/dist/types/components/xpl-checkbox/xpl-checkbox.d.ts +1 -1
  160. package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +0 -1
  161. package/dist/types/components/xpl-content-area/xpl-content-area.d.ts +3 -3
  162. package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +7 -0
  163. package/dist/types/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.d.ts +5 -0
  164. package/dist/types/components/xpl-input/xpl-input.d.ts +4 -4
  165. package/dist/types/components/xpl-list/xpl-list.d.ts +2 -3
  166. package/dist/types/components/xpl-main-nav/xpl-main-nav.d.ts +1 -1
  167. package/dist/types/components/xpl-nav-item/xpl-nav-item.d.ts +10 -0
  168. package/dist/types/components/xpl-pagination/xpl-pagination.d.ts +1 -1
  169. package/dist/types/components/xpl-radio/xpl-radio.d.ts +1 -1
  170. package/dist/types/components/xpl-select/xpl-select.d.ts +6 -3
  171. package/dist/types/components/xpl-table/xpl-table.d.ts +1 -1
  172. package/dist/types/components/xpl-toggle/xpl-toggle.d.ts +1 -1
  173. package/dist/types/components.d.ts +264 -43
  174. package/package.json +10 -4
  175. package/dist/apollo-core/app-globals-0f993ce5.js +0 -3
  176. package/dist/apollo-core/css-shim-bbdf0cc6.js +0 -4
  177. package/dist/apollo-core/dom-1f98a75f.js +0 -73
  178. package/dist/apollo-core/index-3c9f25ef.js +0 -2938
  179. package/dist/apollo-core/index-912d1a21.js +0 -584
  180. package/dist/apollo-core/shadow-css-67b66845.js +0 -389
  181. package/dist/apollo-core/xpl-avatar.entry.js +0 -19
  182. package/dist/apollo-core/xpl-badge.entry.js +0 -17
  183. package/dist/apollo-core/xpl-breadcrumbs.entry.js +0 -14
  184. package/dist/apollo-core/xpl-button.entry.js +0 -34
  185. package/dist/apollo-core/xpl-checkbox.entry.js +0 -25
  186. package/dist/apollo-core/xpl-choicelist.entry.js +0 -32
  187. package/dist/apollo-core/xpl-content-area.entry.js +0 -16
  188. package/dist/apollo-core/xpl-grid.entry.js +0 -31
  189. package/dist/apollo-core/xpl-nav-item.entry.js +0 -12
  190. package/dist/apollo-core/xpl-radio.entry.js +0 -25
  191. package/dist/apollo-core/xpl-secondary-nav.entry.js +0 -12
  192. package/dist/apollo-core/xpl-table.entry.js +0 -85
  193. package/dist/apollo-core/xpl-tag.entry.js +0 -17
  194. package/dist/apollo-core/xpl-toggle.entry.js +0 -30
  195. package/dist/apollo-core/xpl-utility-bar.entry.js +0 -25
  196. package/dist/types/components/xpl-choicelist/choice.d.ts +0 -6
  197. package/dist/types/components/xpl-dropdown/dropdownchoice.d.ts +0 -6
  198. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +0 -11
  199. package/dist/types/components/xpl-list/listitem.d.ts +0 -16
  200. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
  201. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
  202. /package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-54ba5804.js');
6
+
7
+ /*
8
+ Stencil Client Patch Esm v2.8.0 | MIT Licensed | https://stenciljs.com
9
+ */
10
+ const patchEsm = () => {
11
+ return index.promiseResolve();
12
+ };
13
+
14
+ const defineCustomElements = (win, options) => {
15
+ if (typeof window === 'undefined') return Promise.resolve();
16
+ return patchEsm().then(() => {
17
+ return index.bootstrapLazy([["xpl-select.cjs",[[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.cjs",[[4,"xpl-application-shell",{"withSubnav":[4,"with-subnav"],"withUtility":[4,"with-utility"],"navWidth":[1,"nav-width"],"navOpen":[32]},[[0,"navOpen","navToggleHandler"],[0,"navWidth","navWithHandler"],[9,"resize","onWindowResize"]]]]],["xpl-avatar_12.cjs",[[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"],"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"],"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.cjs",[[0,"xpl-choicelist",{"choices":[16],"description":[1],"heading":[1],"multi":[4],"name":[1],"styled":[4],"selected":[32]}]]],["xpl-list.cjs",[[0,"xpl-list",{"items":[16]}]]],["xpl-button-row.cjs",[[0,"xpl-button-row",{"primary":[1],"secondary":[1],"tertiary":[1]}]]],["xpl-divider.cjs",[[4,"xpl-divider",{"tier":[2]}]]],["xpl-grid.cjs",[[0,"xpl-grid"]]],["xpl-grid-item.cjs",[[4,"xpl-grid-item",{"xs":[2],"sm":[2],"md":[2],"lg":[2]}]]],["xpl-input.cjs",[[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.cjs",[[4,"xpl-main-nav",{"width":[1]}]]],["xpl-pagination.cjs",[[0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32],"goto":[64]}]]],["xpl-toggle.cjs",[[0,"xpl-toggle",{"checked":[4],"description":[1],"disabled":[4],"heading":[1],"label":[1],"name":[1],"variant":[1],"id":[32]}]]],["xpl-backdrop.cjs",[[0,"xpl-backdrop",{"relative":[4]}]]],["xpl-dropdown-group_3.cjs",[[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.cjs",[[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);
18
+ });
19
+ };
20
+
21
+ exports.defineCustomElements = defineCustomElements;
@@ -1,9 +1,10 @@
1
+ 'use strict';
2
+
1
3
  /*!
2
4
  * Font Awesome Pro 5.15.3 by @fontawesome - https://fontawesome.com
3
5
  * License - https://fontawesome.com/license (Commercial License)
4
6
  */
5
7
  (function () {
6
- "use strict";
7
8
 
8
9
  function _typeof(obj) {
9
10
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
@@ -2947,14 +2948,11 @@
2947
2948
  * License - https://fontawesome.com/license (Commercial License)
2948
2949
  */
2949
2950
  (function () {
2950
- "use strict";
2951
2951
 
2952
2952
  var _WINDOW = {};
2953
- var _DOCUMENT = {};
2954
2953
 
2955
2954
  try {
2956
2955
  if (typeof window !== "undefined") _WINDOW = window;
2957
- if (typeof document !== "undefined") _DOCUMENT = document;
2958
2956
  } catch (e) {}
2959
2957
 
2960
2958
  var _ref = _WINDOW.navigator || {},
@@ -2962,14 +2960,7 @@
2962
2960
  userAgent = _ref$userAgent === void 0 ? "" : _ref$userAgent;
2963
2961
 
2964
2962
  var WINDOW = _WINDOW;
2965
- var DOCUMENT = _DOCUMENT;
2966
- var IS_BROWSER = !!WINDOW.document;
2967
- var IS_DOM =
2968
- !!DOCUMENT.documentElement &&
2969
- !!DOCUMENT.head &&
2970
- typeof DOCUMENT.addEventListener === "function" &&
2971
- typeof DOCUMENT.createElement === "function";
2972
- var IS_IE = ~userAgent.indexOf("MSIE") || ~userAgent.indexOf("Trident/");
2963
+ ~userAgent.indexOf("MSIE") || ~userAgent.indexOf("Trident/");
2973
2964
 
2974
2965
  var NAMESPACE_IDENTIFIER = "___FONT_AWESOME___";
2975
2966
  var PRODUCTION = (function () {
@@ -0,0 +1,77 @@
1
+ 'use strict';
2
+
3
+ // Unique ID creation requires a high quality random # generator. In the browser we therefore
4
+ // require the crypto API and do not support built-in fallback to lower quality random number
5
+ // generators (like Math.random()).
6
+ var getRandomValues;
7
+ var rnds8 = new Uint8Array(16);
8
+ function rng() {
9
+ // lazy load so that environments that need to polyfill have a chance to do so
10
+ if (!getRandomValues) {
11
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
12
+ // find the complete implementation of crypto (msCrypto) on IE11.
13
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
14
+
15
+ if (!getRandomValues) {
16
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
17
+ }
18
+ }
19
+
20
+ return getRandomValues(rnds8);
21
+ }
22
+
23
+ const REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
24
+
25
+ function validate(uuid) {
26
+ return typeof uuid === 'string' && REGEX.test(uuid);
27
+ }
28
+
29
+ /**
30
+ * Convert array of 16 byte values to UUID string format of the form:
31
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
32
+ */
33
+
34
+ var byteToHex = [];
35
+
36
+ for (var i = 0; i < 256; ++i) {
37
+ byteToHex.push((i + 0x100).toString(16).substr(1));
38
+ }
39
+
40
+ function stringify(arr) {
41
+ var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
42
+ // Note: Be careful editing this code! It's been tuned for performance
43
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
44
+ var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
45
+ // of the following:
46
+ // - One or more input array values don't map to a hex octet (leading to
47
+ // "undefined" in the uuid)
48
+ // - Invalid input values for the RFC `version` or `variant` fields
49
+
50
+ if (!validate(uuid)) {
51
+ throw TypeError('Stringified UUID is invalid');
52
+ }
53
+
54
+ return uuid;
55
+ }
56
+
57
+ function v4(options, buf, offset) {
58
+ options = options || {};
59
+ var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
60
+
61
+ rnds[6] = rnds[6] & 0x0f | 0x40;
62
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
63
+
64
+ if (buf) {
65
+ offset = offset || 0;
66
+
67
+ for (var i = 0; i < 16; ++i) {
68
+ buf[offset + i] = rnds[i];
69
+ }
70
+
71
+ return buf;
72
+ }
73
+
74
+ return stringify(rnds);
75
+ }
76
+
77
+ exports.v4 = v4;
@@ -0,0 +1,58 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-54ba5804.js');
6
+
7
+ const XplApplicationShell = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ /**
11
+ * @property {boolean} - Whether or not the Grid should have space for a secondary (sub) navigation bar
12
+ */
13
+ this.withSubnav = false;
14
+ /**
15
+ * @property {boolean} - Whether or not the Grid should have space for a utility bar
16
+ */
17
+ this.withUtility = true;
18
+ /**
19
+ * @property {string} - The width of the main navigation bar, can be passed or updated when nav-width event is emitted.
20
+ */
21
+ this.navWidth = 'default';
22
+ /**
23
+ * @state {boolean} - Whether or not the main nav is open, updates when the nav-open envent is emitted.
24
+ */
25
+ this.navOpen = true;
26
+ }
27
+ closeNavOnMobile() {
28
+ if (window.innerWidth <= 640) {
29
+ this.navOpen = false;
30
+ }
31
+ }
32
+ navToggleHandler() {
33
+ this.navOpen = !this.navOpen;
34
+ }
35
+ navWithHandler(event) {
36
+ this.navWidth = event.detail;
37
+ }
38
+ onWindowResize() {
39
+ this.closeNavOnMobile();
40
+ }
41
+ connectedCallback() {
42
+ this.closeNavOnMobile();
43
+ }
44
+ render() {
45
+ let applicationShellClasses = 'xpl-application-shell';
46
+ if (this.withUtility)
47
+ applicationShellClasses += ' xpl-application-shell--with_utility';
48
+ let navClasses = 'xpl-application-shell__nav';
49
+ navClasses += this.navOpen
50
+ ? ` xpl-application-shell__nav--${this.navWidth}--open`
51
+ : ` xpl-application-shell__nav--${this.navWidth}`;
52
+ return (index.h(index.Host, { class: applicationShellClasses }, index.h("div", { class: navClasses }, index.h("slot", { name: "nav" })), index.h("div", { class: "xpl-application-shell__subnav" }, index.h("slot", { name: "subnav" })), index.h("div", { class: "xpl-application-shell__utility" }, index.h("slot", { name: "utility" })), index.h("div", { class: "xpl-application-shell__content" }, index.h("slot", { name: "content" })), index.h("xpl-backdrop", { onClick: () => this.navToggleHandler(), class: {
53
+ 'xpl-application-shell__backdrop--open': this.navOpen,
54
+ }, relative: true })));
55
+ }
56
+ };
57
+
58
+ exports.xpl_application_shell = XplApplicationShell;
@@ -0,0 +1,299 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-54ba5804.js');
6
+ const v4 = require('./v4-14140ff3.js');
7
+
8
+ const XplAvatar = class {
9
+ constructor(hostRef) {
10
+ index.registerInstance(this, hostRef);
11
+ this.disabled = false;
12
+ }
13
+ render() {
14
+ let className = 'xpl-avatar';
15
+ if (this.size)
16
+ className += ` xpl-avatar--${this.size}`;
17
+ if (this.color)
18
+ className += ` xpl-avatar--${this.color}`;
19
+ const inner = (index.h("div", null, this.src ? (index.h("img", { alt: this.name, src: this.src })) : (index.h("div", { class: "xpl-avatar__placeholder" }, index.h("slot", null))), this.status && (index.h("div", { class: `xpl-avatar__dot--${this.status}` }))));
20
+ return (index.h(index.Host, null, this.href && !this.disabled ? (index.h("a", { href: this.href, class: className, target: this.target }, inner)) : this.href && this.disabled ? (index.h("div", { class: className + ' xpl-avatar--disabled' }, inner)) : (index.h("div", { class: className }, inner))));
21
+ }
22
+ };
23
+
24
+ const XplBadge = class {
25
+ constructor(hostRef) {
26
+ index.registerInstance(this, hostRef);
27
+ }
28
+ render() {
29
+ let className = 'xpl-badge';
30
+ if (this.dot)
31
+ className += ' xpl-badge--dot';
32
+ if (this.variant)
33
+ className += ' xpl-badge--' + this.variant;
34
+ return (index.h(index.Host, null, index.h("div", { class: className }, index.h("slot", null))));
35
+ }
36
+ };
37
+
38
+ const XplBreadcrumbItem = class {
39
+ constructor(hostRef) {
40
+ index.registerInstance(this, hostRef);
41
+ // This is temporary as we still don't have a xpl-icon component. When that's created we should update this code.
42
+ this.chevron = `<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
43
+ <path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>
44
+ </svg>
45
+ `;
46
+ }
47
+ render() {
48
+ return (index.h(index.Host, { class: "xpl-breadcrumb-item", role: "listitem" }, index.h("li", { role: "none" }, index.h("slot", null)), index.h("span", { innerHTML: `${this.chevron}` })));
49
+ }
50
+ };
51
+
52
+ const XplBreadcrumbs = class {
53
+ constructor(hostRef) {
54
+ index.registerInstance(this, hostRef);
55
+ }
56
+ render() {
57
+ return (index.h(index.Host, null, index.h("nav", { class: "xpl-breadcrumbs", "aria-label": "Breadcrumb" }, index.h("ol", { role: "list" }, index.h("slot", null)))));
58
+ }
59
+ };
60
+
61
+ const XplButton = class {
62
+ constructor(hostRef) {
63
+ index.registerInstance(this, hostRef);
64
+ /**
65
+ * @property {"default" | "sm" | "xs"} - button size
66
+ */
67
+ this.size = 'default';
68
+ /**
69
+ * @property {"primary" | "secondary" | "subtle"} - button variant
70
+ */
71
+ this.variant = 'primary';
72
+ /**
73
+ * @property {"neutral" | "warning" | "success"} - button state (color) neutral=purple, success=green, warning=red
74
+ */
75
+ this.state = 'neutral';
76
+ }
77
+ render() {
78
+ let className = `xpl-button
79
+ xpl-button--${this.size}
80
+ xpl-button--${this.state}
81
+ xpl-button--${this.variant}`;
82
+ if (this.iconOnly)
83
+ className += ' xpl-button--icon-only';
84
+ if (this.link && this.disabled)
85
+ className += ' xpl-button--link-disabled';
86
+ return (index.h(index.Host, { class: className },
87
+ /**
88
+ * Conditionally render either an <slot> or <button> element
89
+ * depending on if there's an `link` or not
90
+ */
91
+ this.link ? (index.h("slot", null)) : (index.h("button", { disabled: this.disabled, name: this.name, type: this.type, value: this.value }, index.h("slot", null)))));
92
+ }
93
+ };
94
+
95
+ const XplCheckbox = class {
96
+ constructor(hostRef) {
97
+ index.registerInstance(this, hostRef);
98
+ this.checkboxChange = index.createEvent(this, "checkboxChange", 7);
99
+ this.id = v4.v4();
100
+ }
101
+ render() {
102
+ return (index.h(index.Host, { class: {
103
+ 'xpl-checkbox-radio-container': true,
104
+ styled: this.styled,
105
+ disabled: this.disabled,
106
+ } }, index.h("input", { class: "xpl-checkbox", type: "checkbox", checked: this.checked, disabled: this.disabled, id: this.id, indeterminate: this.indeterminate, onChange: () => this.checkboxChange.emit(this.input.checked), name: this.name, ref: (el) => (this.input = el), required: this.required, value: this.value }), index.h("label", { class: {
107
+ 'xpl-label': true,
108
+ 'xpl-label--disabled': this.disabled,
109
+ }, htmlFor: this.id }, index.h("slot", null), this.description && (index.h("small", { class: {
110
+ 'xpl-description': true,
111
+ 'xpl-description--disabled': this.disabled,
112
+ } }, this.description)))));
113
+ }
114
+ };
115
+
116
+ const XplContentArea = class {
117
+ constructor(hostRef) {
118
+ index.registerInstance(this, hostRef);
119
+ /**
120
+ * @property {string} size - The content-area size.
121
+ */
122
+ this.size = 'wide';
123
+ }
124
+ render() {
125
+ return (index.h(index.Host, null, index.h("main", { class: `xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}` }, index.h("div", { class: "xpl-content-area" }, index.h("slot", null)))));
126
+ }
127
+ };
128
+
129
+ const XplNavItem = class {
130
+ constructor(hostRef) {
131
+ index.registerInstance(this, hostRef);
132
+ this.navOpen = index.createEvent(this, "navOpen", 7);
133
+ /**
134
+ * @property {boolean} - Whether or not the item should control the main nav state on click
135
+ */
136
+ this.navControl = false;
137
+ }
138
+ onNavToggle() {
139
+ if (window.innerWidth <= 640) {
140
+ this.navOpen.emit(false);
141
+ }
142
+ }
143
+ render() {
144
+ return (index.h(index.Host, { class: "xpl-nav-item", role: "listitem", onClick: () => {
145
+ if (this.navControl) {
146
+ this.onNavToggle();
147
+ }
148
+ } }, index.h("slot", { name: "link" }, index.h("slot", { name: "icon" }), index.h("slot", null))));
149
+ }
150
+ };
151
+
152
+ const XplRadio = class {
153
+ constructor(hostRef) {
154
+ index.registerInstance(this, hostRef);
155
+ this.radioChange = index.createEvent(this, "radioChange", 7);
156
+ this.id = v4.v4();
157
+ }
158
+ render() {
159
+ return (index.h(index.Host, { class: {
160
+ 'xpl-checkbox-radio-container': true,
161
+ styled: this.styled,
162
+ disabled: this.disabled,
163
+ } }, index.h("input", { class: "xpl-radio", type: "radio", checked: this.checked, disabled: this.disabled, id: this.id, name: this.name, required: this.required, value: this.value, onChange: () => this.radioChange.emit(true) }), index.h("label", { class: {
164
+ 'xpl-label': true,
165
+ 'xpl-label--disabled': this.disabled,
166
+ }, htmlFor: this.id }, index.h("slot", null), this.description && (index.h("small", { class: {
167
+ 'xpl-description': true,
168
+ 'xpl-description--disabled': this.disabled,
169
+ } }, this.description)))));
170
+ }
171
+ };
172
+
173
+ const XplSecondaryNav = class {
174
+ constructor(hostRef) {
175
+ index.registerInstance(this, hostRef);
176
+ }
177
+ render() {
178
+ return (index.h(index.Host, { class: "xpl-secondary-nav" }, index.h("nav", { "aria-label": "Secondary Nav" }, index.h("slot", null))));
179
+ }
180
+ };
181
+
182
+ const XplTable = class {
183
+ constructor(hostRef) {
184
+ index.registerInstance(this, hostRef);
185
+ this.tableSelect = index.createEvent(this, "tableSelect", 7);
186
+ this.areAllSelected = false;
187
+ this.hasScrolled = false;
188
+ this.selectAll = (e) => {
189
+ const { target } = e;
190
+ if (!(target instanceof HTMLInputElement))
191
+ return;
192
+ const { checked } = target;
193
+ this.areAllSelected = checked;
194
+ this.selected = this.selected.map(() => checked);
195
+ this.onChange();
196
+ };
197
+ this.selectOne = (e, i) => {
198
+ const { target } = e;
199
+ if (!(target instanceof HTMLInputElement))
200
+ return;
201
+ const { checked } = target;
202
+ this.areAllSelected = false;
203
+ this.selected = this.selected.map((v, _i) => (_i === i ? checked : v));
204
+ this.onChange();
205
+ };
206
+ this.onChange = () => {
207
+ this.tableSelect.emit({
208
+ selected: this.selected,
209
+ areAllSelected: this.areAllSelected,
210
+ });
211
+ };
212
+ this.onScroll = () => {
213
+ this.hasScrolled = this.container.scrollLeft > 0;
214
+ };
215
+ /**
216
+ * TODO: Need to figure out how this interplays with data
217
+ * received from an API/server
218
+ */
219
+ this.sortBy = (col, ascending = true) => {
220
+ this.rowData.sort((a, b) => {
221
+ const A = a[col];
222
+ const B = b[col];
223
+ if (typeof A === 'number' && typeof B === 'number') {
224
+ const f = ascending ? 1 : -1;
225
+ return A > B ? f : -f;
226
+ }
227
+ return -1;
228
+ });
229
+ this.rowData = Array.from(this.rowData);
230
+ this.render();
231
+ };
232
+ }
233
+ componentWillLoad() {
234
+ this.areAllSelected = false;
235
+ this.rowData = this.data !== undefined ? Array.from(this.data) : [];
236
+ this.selected = new Array(this.rowData.length).fill(false);
237
+ }
238
+ render() {
239
+ let className = 'xpl-table';
240
+ if (this.striped)
241
+ className += ' xpl-table--striped';
242
+ if (this.freeze)
243
+ className += ' xpl-table--freeze';
244
+ if (this.hasScrolled)
245
+ className += ' xpl-table--has-scrolled';
246
+ return (index.h(index.Host, null, index.h("div", { class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => (this.container = el) }, index.h("table", { class: className }, this.columns && (index.h("thead", null, this.columns.map((column, i) => {
247
+ return (index.h("th", null, this.multiselect && i === 0 ? (index.h("label", { htmlFor: "__xpl-table-th" }, index.h("input", { checked: this.areAllSelected, id: "__xpl-table-th",
248
+ // appear indeterminate when at least one but not all
249
+ // are selected
250
+ indeterminate: !this
251
+ .areAllSelected &&
252
+ this.selected.some((a) => a), onChange: (e) => {
253
+ this.selectAll(e);
254
+ }, type: "checkbox" }), column)) : (column)));
255
+ }))), index.h("tbody", null, this.rowData.map((row, rowNum) => {
256
+ return (index.h("tr", { class: this.selected &&
257
+ this.selected[rowNum]
258
+ ? 'xpl-table-row-selected'
259
+ : '' }, row.map((cell, i) => {
260
+ return (index.h("td", null, this.multiselect &&
261
+ i === 0 ? (index.h("label", { htmlFor: '__xpl-table-row-' +
262
+ rowNum }, index.h("input", { id: '__xpl-table-row-' +
263
+ rowNum, checked: this
264
+ .selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum) }), index.h("div", { innerHTML: cell }))) : (index.h("div", { innerHTML: cell }))));
265
+ })));
266
+ }))))));
267
+ }
268
+ };
269
+
270
+ const XplUtilityBar = class {
271
+ constructor(hostRef) {
272
+ index.registerInstance(this, hostRef);
273
+ this.navOpen = index.createEvent(this, "navOpen", 7);
274
+ this.open = true;
275
+ this.bars = `
276
+ <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="bars" class="svg-inline--fa fa-bars fa-w-14 xpl-utility-nav__bars" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"></path></svg>
277
+ `;
278
+ }
279
+ onNavToggle() {
280
+ this.open = !this.open;
281
+ this.navOpen.emit(this.open);
282
+ }
283
+ render() {
284
+ return (index.h(index.Host, null, index.h("nav", { "aria-label": "utility navigation bar", class: "xpl-utility-bar" }, this.navControl ? (index.h("div", null, index.h("button", { onClick: () => this.onNavToggle(), innerHTML: `${this.bars}` }), index.h("slot", { name: "aside" }))) : (index.h("slot", { name: "aside" })), index.h("slot", { name: "main" }))));
285
+ }
286
+ };
287
+
288
+ exports.xpl_avatar = XplAvatar;
289
+ exports.xpl_badge = XplBadge;
290
+ exports.xpl_breadcrumb_item = XplBreadcrumbItem;
291
+ exports.xpl_breadcrumbs = XplBreadcrumbs;
292
+ exports.xpl_button = XplButton;
293
+ exports.xpl_checkbox = XplCheckbox;
294
+ exports.xpl_content_area = XplContentArea;
295
+ exports.xpl_nav_item = XplNavItem;
296
+ exports.xpl_radio = XplRadio;
297
+ exports.xpl_secondary_nav = XplSecondaryNav;
298
+ exports.xpl_table = XplTable;
299
+ exports.xpl_utility_bar = XplUtilityBar;
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-54ba5804.js');
6
+
7
+ const XplBackdrop = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ /**
11
+ * @property {boolean} - When true, backdrop will have relative position. This is useful when the backdrop doesn't cover the whole view area.
12
+ * If false, the position will be fixed and cover the whole view area.
13
+ */
14
+ this.relative = false;
15
+ }
16
+ render() {
17
+ return (index.h(index.Host, { class: {
18
+ 'xpl-backdrop': true,
19
+ 'xpl-backdrop--fixed': !this.relative,
20
+ 'xpl-backdrop--relative': this.relative,
21
+ }, "aria-hidden": "true" }));
22
+ }
23
+ };
24
+
25
+ exports.xpl_backdrop = XplBackdrop;
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-54ba5804.js');
6
+
7
+ const XplButtonRow = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ this.clickPrimary = index.createEvent(this, "clickPrimary", 7);
11
+ this.clickSecondary = index.createEvent(this, "clickSecondary", 7);
12
+ this.clickTertiary = index.createEvent(this, "clickTertiary", 7);
13
+ this.onPrimary = () => this.clickPrimary.emit();
14
+ this.onSecondary = () => this.clickSecondary.emit();
15
+ this.onTertiary = () => this.clickTertiary.emit();
16
+ }
17
+ render() {
18
+ return (index.h(index.Host, { class: "xpl-button-row" }, index.h("div", { class: "xpl-button-row-inner" }, index.h("div", { class: "xpl-button-row__left" }, this.secondary && (index.h("xpl-button", { variant: "secondary", type: "button", onClick: this.onSecondary }, this.secondary))), index.h("div", { class: "xpl-button-row__right" }, this.tertiary && (index.h("xpl-button", { variant: "subtle", type: "button", onClick: this.onTertiary }, this.tertiary)), this.secondary && (index.h("xpl-button", { variant: "secondary", type: "button", onClick: this.onSecondary }, this.secondary)), this.primary && (index.h("xpl-button", { class: "xpl-button-row__primary", onClick: this.onPrimary }, this.primary))))));
19
+ }
20
+ };
21
+
22
+ exports.xpl_button_row = XplButtonRow;
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-54ba5804.js');
6
+
7
+ const XplChoicelist = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ }
11
+ componentWillLoad() {
12
+ this.selected =
13
+ this.choices !== undefined &&
14
+ this.choices !== null &&
15
+ this.choices.length > 0
16
+ ? this.choices.map(() => false)
17
+ : [];
18
+ }
19
+ render() {
20
+ let className = 'xpl-choicelist';
21
+ if (this.styled)
22
+ className += ' xpl-choicelist--styled';
23
+ return (index.h(index.Host, { class: "xpl-choicelist-container" }, this.heading !== undefined ||
24
+ this.description !== undefined ? (index.h("div", { class: "xpl-choicelist-heading" }, this.heading && index.h("h3", null, this.heading), this.description && index.h("p", null, this.description))) : null, this.choices && (index.h("ul", { class: className }, this.choices.map(({ children, description, label }, i) => {
25
+ const inner = this.multi ? (index.h("xpl-checkbox", { description: description, name: this.name, onCheckboxChange: (e) => {
26
+ const { detail } = e;
27
+ this.selected = this.selected.map((v, j) => (i === j ? detail : v));
28
+ } }, label)) : (index.h("xpl-radio", { description: description, name: this.name, onRadioChange: () => {
29
+ this.selected = this.selected.map((_, j) => i === j);
30
+ } }, label));
31
+ let className = this.styled && this.selected[i]
32
+ ? 'selected'
33
+ : '';
34
+ return (index.h("li", { class: className }, inner, children && (index.h("ul", null, children.map((child) => {
35
+ const childInner = this
36
+ .multi ? (index.h("xpl-checkbox", { description: child.description }, child.label)) : (index.h("xpl-radio", { description: child.description }, child.label));
37
+ return (index.h("li", null, childInner));
38
+ })))));
39
+ })))));
40
+ }
41
+ };
42
+
43
+ exports.xpl_choicelist = XplChoicelist;
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-54ba5804.js');
6
+
7
+ const XplDivider = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ }
11
+ render() {
12
+ let className = 'xpl-divider';
13
+ className += ` xpl-divider--${this.tier}`;
14
+ return (index.h(index.Host, { class: className }, index.h("span", null, index.h("slot", null))));
15
+ }
16
+ };
17
+
18
+ exports.xpl_divider = XplDivider;