@haiilo/catalyst 8.0.2 → 8.1.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 (79) hide show
  1. package/dist/catalyst/catalyst.css +1 -3
  2. package/dist/catalyst/catalyst.esm.js +1 -1
  3. package/dist/catalyst/catalyst.esm.js.map +1 -1
  4. package/dist/catalyst/p-1bd44896.js +3 -0
  5. package/dist/catalyst/p-1bd44896.js.map +1 -0
  6. package/dist/catalyst/p-dc953306.entry.js +10 -0
  7. package/dist/catalyst/p-dc953306.entry.js.map +1 -0
  8. package/dist/catalyst/scss/core/_notification.scss +1 -2
  9. package/dist/catalyst/scss/core/_typography.scss +0 -1
  10. package/dist/cjs/cat-alert_26.cjs.entry.js +10 -10
  11. package/dist/cjs/cat-alert_26.cjs.entry.js.map +1 -1
  12. package/dist/cjs/catalyst.cjs.js +2 -2
  13. package/dist/cjs/catalyst.cjs.js.map +1 -1
  14. package/dist/cjs/{index-329a3380.js → index-1e7eef7e.js} +16 -6
  15. package/dist/cjs/index-1e7eef7e.js.map +1 -0
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/collection/collection-manifest.json +1 -1
  18. package/dist/collection/components/cat-checkbox/cat-checkbox.js +2 -2
  19. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  20. package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js +2 -2
  21. package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js.map +1 -1
  22. package/dist/collection/components/cat-input/cat-input.js +4 -3
  23. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  24. package/dist/collection/components/cat-input/cat-input.spec.js +3 -3
  25. package/dist/collection/components/cat-input/cat-input.spec.js.map +1 -1
  26. package/dist/collection/components/cat-radio/cat-radio.js +2 -1
  27. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  28. package/dist/collection/components/cat-radio/cat-radio.spec.js +1 -1
  29. package/dist/collection/components/cat-radio/cat-radio.spec.js.map +1 -1
  30. package/dist/collection/components/cat-select/cat-select.js +8 -7
  31. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  32. package/dist/collection/components/cat-select/cat-select.spec.js +3 -3
  33. package/dist/collection/components/cat-select/cat-select.spec.js.map +1 -1
  34. package/dist/collection/components/cat-textarea/cat-textarea.js +4 -3
  35. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  36. package/dist/collection/components/cat-textarea/cat-textarea.spec.js +3 -3
  37. package/dist/collection/components/cat-textarea/cat-textarea.spec.js.map +1 -1
  38. package/dist/collection/components/cat-toggle/cat-toggle.js +2 -2
  39. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  40. package/dist/collection/components/cat-toggle/cat-toggle.spec.js +2 -2
  41. package/dist/collection/components/cat-toggle/cat-toggle.spec.js.map +1 -1
  42. package/dist/collection/scss/core/_notification.scss +1 -2
  43. package/dist/collection/scss/core/_typography.scss +0 -1
  44. package/dist/components/cat-checkbox2.js +1 -1
  45. package/dist/components/cat-checkbox2.js.map +1 -1
  46. package/dist/components/cat-input2.js +2 -2
  47. package/dist/components/cat-input2.js.map +1 -1
  48. package/dist/components/cat-radio.js +1 -1
  49. package/dist/components/cat-radio.js.map +1 -1
  50. package/dist/components/cat-select2.js +2 -2
  51. package/dist/components/cat-select2.js.map +1 -1
  52. package/dist/components/cat-textarea.js +2 -2
  53. package/dist/components/cat-textarea.js.map +1 -1
  54. package/dist/components/cat-toggle.js +1 -1
  55. package/dist/components/cat-toggle.js.map +1 -1
  56. package/dist/esm/cat-alert_26.entry.js +10 -10
  57. package/dist/esm/cat-alert_26.entry.js.map +1 -1
  58. package/dist/esm/catalyst.js +3 -3
  59. package/dist/esm/catalyst.js.map +1 -1
  60. package/dist/esm/{index-6af09649.js → index-30a221a3.js} +16 -6
  61. package/dist/esm/index-30a221a3.js.map +1 -0
  62. package/dist/esm/loader.js +2 -2
  63. package/dist/types/@types/Intl.d.ts +3 -0
  64. package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +1 -1
  65. package/dist/types/components/cat-input/cat-input.d.ts +2 -1
  66. package/dist/types/components/cat-radio/cat-radio.d.ts +1 -0
  67. package/dist/types/components/cat-select/autosize.d.ts +1 -0
  68. package/dist/types/components/cat-select/cat-select.d.ts +2 -1
  69. package/dist/types/components/cat-textarea/cat-textarea.d.ts +2 -1
  70. package/dist/types/components/cat-toggle/cat-toggle.d.ts +1 -1
  71. package/dist/types/components.d.ts +188 -0
  72. package/dist/types/stencil-public-runtime.d.ts +21 -0
  73. package/package.json +12 -12
  74. package/dist/catalyst/p-376b504c.js +0 -3
  75. package/dist/catalyst/p-376b504c.js.map +0 -1
  76. package/dist/catalyst/p-402a81e9.entry.js +0 -10
  77. package/dist/catalyst/p-402a81e9.entry.js.map +0 -1
  78. package/dist/cjs/index-329a3380.js.map +0 -1
  79. package/dist/esm/index-6af09649.js.map +0 -1
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-329a3380.js');
5
+ const index = require('./index-1e7eef7e.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.4.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.7.1 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchBrowser = () => {
11
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('catalyst.cjs.js', document.baseURI).href));
@@ -1 +1 @@
1
- {"file":"catalyst.cjs.js","mappings":";;;;;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAyB3B,IAAI,MAAM,UAAU,GAAG,0MAAe,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAOA,oBAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;AChCD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC;;;;","names":["promiseResolve","bootstrapLazy"],"sources":["../node_modules/.pnpm/@stencil+core@4.4.1/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.4.1 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
1
+ {"file":"catalyst.cjs.js","mappings":";;;;;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAa3B,IAAI,MAAM,UAAU,GAAG,0MAAe,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAOA,oBAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACpBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC;;;;","names":["promiseResolve","bootstrapLazy"],"sources":["../node_modules/.pnpm/@stencil+core@4.7.1/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.7.1 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
@@ -489,11 +489,19 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
489
489
  // except for the first character, we keep the event name case
490
490
  memberName = ln[2] + memberName.slice(3);
491
491
  }
492
- if (oldValue) {
493
- plt.rel(elm, memberName, oldValue, false);
494
- }
495
- if (newValue) {
496
- plt.ael(elm, memberName, newValue, false);
492
+ if (oldValue || newValue) {
493
+ // Need to account for "capture" events.
494
+ // If the event name ends with "Capture", we'll update the name to remove
495
+ // the "Capture" suffix and make sure the event listener is setup to handle the capture event.
496
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
497
+ // Make sure we only replace the last instance of "Capture"
498
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
499
+ if (oldValue) {
500
+ plt.rel(elm, memberName, oldValue, capture);
501
+ }
502
+ if (newValue) {
503
+ plt.ael(elm, memberName, newValue, capture);
504
+ }
497
505
  }
498
506
  }
499
507
  else {
@@ -555,6 +563,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
555
563
  };
556
564
  const parseClassListRegex = /\s/;
557
565
  const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
566
+ const CAPTURE_EVENT_SUFFIX = 'Capture';
567
+ const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
558
568
  const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
559
569
  // if the element passed in is a shadow root, which is a document fragment
560
570
  // then we want to be adding attrs/props to the shadow root's "host" element
@@ -1970,4 +1980,4 @@ exports.promiseResolve = promiseResolve;
1970
1980
  exports.registerInstance = registerInstance;
1971
1981
  exports.setNonce = setNonce;
1972
1982
 
1973
- //# sourceMappingURL=index-329a3380.js.map
1983
+ //# sourceMappingURL=index-1e7eef7e.js.map