@haiilo/catalyst 6.3.3 → 6.4.1
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.
- package/dist/catalyst/assets/fonts/SourceSans3VF-Italic.otf.woff +0 -0
- package/dist/catalyst/assets/fonts/SourceSans3VF-Italic.otf.woff2 +0 -0
- package/dist/catalyst/assets/fonts/SourceSans3VF-Italic.ttf.woff +0 -0
- package/dist/catalyst/assets/fonts/SourceSans3VF-Italic.ttf.woff2 +0 -0
- package/dist/catalyst/assets/fonts/SourceSans3VF-Upright.otf.woff +0 -0
- package/dist/catalyst/assets/fonts/SourceSans3VF-Upright.otf.woff2 +0 -0
- package/dist/catalyst/assets/fonts/SourceSans3VF-Upright.ttf.woff +0 -0
- package/dist/catalyst/assets/fonts/SourceSans3VF-Upright.ttf.woff2 +0 -0
- package/dist/catalyst/catalyst.css +7 -0
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.esm.js.map +1 -1
- package/dist/catalyst/p-12fa3edc.js +3 -0
- package/dist/catalyst/p-12fa3edc.js.map +1 -0
- package/dist/catalyst/{p-2ecedf97.entry.js → p-d3a118b5.entry.js} +4 -4
- package/dist/catalyst/p-d3a118b5.entry.js.map +1 -0
- package/dist/catalyst/p-dd8ae83e.js.map +1 -1
- package/dist/catalyst/scss/fonts/_fonts-mixins.scss +4 -0
- package/dist/catalyst/scss/fonts/_fonts.mixins.ss3v.scss +13 -0
- package/dist/cjs/cat-alert_26.cjs.entry.js +231 -259
- package/dist/cjs/cat-alert_26.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +2 -2
- package/dist/cjs/catalyst.cjs.js.map +1 -1
- package/dist/cjs/{index-8d1f4d8e.js → index-b4391019.js} +86 -10
- package/dist/cjs/index-b4391019.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/assets/fonts/SourceSans3VF-Italic.otf.woff +0 -0
- package/dist/collection/assets/fonts/SourceSans3VF-Italic.otf.woff2 +0 -0
- package/dist/collection/assets/fonts/SourceSans3VF-Italic.ttf.woff +0 -0
- package/dist/collection/assets/fonts/SourceSans3VF-Italic.ttf.woff2 +0 -0
- package/dist/collection/assets/fonts/SourceSans3VF-Upright.otf.woff +0 -0
- package/dist/collection/assets/fonts/SourceSans3VF-Upright.otf.woff2 +0 -0
- package/dist/collection/assets/fonts/SourceSans3VF-Upright.ttf.woff +0 -0
- package/dist/collection/assets/fonts/SourceSans3VF-Upright.ttf.woff2 +0 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/cat-button/cat-button.css +14 -2
- package/dist/collection/components/cat-button/cat-button.js +2 -2
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js +1 -0
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js.map +1 -1
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js +1 -0
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +1 -1
- package/dist/collection/components/cat-select/cat-select.js +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +1 -1
- package/dist/collection/scss/fonts/_fonts-mixins.scss +4 -0
- package/dist/collection/scss/fonts/_fonts.mixins.ss3v.scss +13 -0
- package/dist/components/cat-button2.js +1 -1
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js +237 -265
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/esm/cat-alert_26.entry.js +231 -259
- package/dist/esm/cat-alert_26.entry.js.map +1 -1
- package/dist/esm/catalyst.js +3 -3
- package/dist/esm/catalyst.js.map +1 -1
- package/dist/esm/{index-16bd9531.js → index-2c703aa8.js} +86 -10
- package/dist/esm/index-2c703aa8.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/loader.js.map +1 -1
- package/dist/types/components/cat-button/cat-button.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/stencil-public-runtime.d.ts +6 -2
- package/loader/index.d.ts +1 -1
- package/package.json +11 -11
- package/dist/catalyst/p-2ecedf97.entry.js.map +0 -1
- package/dist/catalyst/p-897412f2.js +0 -3
- package/dist/catalyst/p-897412f2.js.map +0 -1
- package/dist/cjs/index-8d1f4d8e.js.map +0 -1
- package/dist/esm/index-16bd9531.js.map +0 -1
package/dist/cjs/catalyst.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b4391019.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.0.
|
|
8
|
+
Stencil Client Patch Browser v4.0.3 | 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.0.
|
|
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.0.3/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.0.3 | 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}
|
|
@@ -398,6 +398,21 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
398
398
|
*
|
|
399
399
|
* Modified for Stencil's compiler and vdom
|
|
400
400
|
*/
|
|
401
|
+
/**
|
|
402
|
+
* When running a VDom render set properties present on a VDom node onto the
|
|
403
|
+
* corresponding HTML element.
|
|
404
|
+
*
|
|
405
|
+
* Note that this function has special functionality for the `class`,
|
|
406
|
+
* `style`, `key`, and `ref` attributes, as well as event handlers (like
|
|
407
|
+
* `onClick`, etc). All others are just passed through as-is.
|
|
408
|
+
*
|
|
409
|
+
* @param elm the HTMLElement onto which attributes should be set
|
|
410
|
+
* @param memberName the name of the attribute to set
|
|
411
|
+
* @param oldValue the old value for the attribute
|
|
412
|
+
* @param newValue the new value for the attribute
|
|
413
|
+
* @param isSvg whether we're in an svg context or not
|
|
414
|
+
* @param flags bitflags for Vdom variables
|
|
415
|
+
*/
|
|
401
416
|
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
402
417
|
if (oldValue !== newValue) {
|
|
403
418
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -999,17 +1014,44 @@ const nullifyVNodeRefs = (vNode) => {
|
|
|
999
1014
|
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
1000
1015
|
* the DOM node into which it should be rendered.
|
|
1001
1016
|
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
1017
|
+
* @param isInitialLoad whether or not this is the first call after page load
|
|
1002
1018
|
*/
|
|
1003
|
-
const renderVdom = (hostRef, renderFnResults) => {
|
|
1019
|
+
const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1004
1020
|
const hostElm = hostRef.$hostElement$;
|
|
1005
1021
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1006
1022
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1023
|
+
// if `renderFnResults` is a Host node then we can use it directly. If not,
|
|
1024
|
+
// we need to call `h` again to wrap the children of our component in a
|
|
1025
|
+
// 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
|
|
1026
|
+
// implicitly that the top-level vdom node is 1) an only child and 2)
|
|
1027
|
+
// contains attrs that need to be set on the host element.
|
|
1007
1028
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
1008
1029
|
hostTagName = hostElm.tagName;
|
|
1009
1030
|
if (cmpMeta.$attrsToReflect$) {
|
|
1010
1031
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1011
1032
|
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
1012
1033
|
}
|
|
1034
|
+
// On the first render and *only* on the first render we want to check for
|
|
1035
|
+
// any attributes set on the host element which are also set on the vdom
|
|
1036
|
+
// node. If we find them, we override the value on the VDom node attrs with
|
|
1037
|
+
// the value from the host element, which allows developers building apps
|
|
1038
|
+
// with Stencil components to override e.g. the `role` attribute on a
|
|
1039
|
+
// component even if it's already set on the `Host`.
|
|
1040
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
1041
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
1042
|
+
// We have a special implementation in `setAccessor` for `style` and
|
|
1043
|
+
// `class` which reconciles values coming from the VDom with values
|
|
1044
|
+
// already present on the DOM element, so we don't want to override those
|
|
1045
|
+
// attributes on the VDom tree with values from the host element if they
|
|
1046
|
+
// are present.
|
|
1047
|
+
//
|
|
1048
|
+
// Likewise, `ref` and `key` are special internal values for the Stencil
|
|
1049
|
+
// runtime and we don't want to override those either.
|
|
1050
|
+
if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
|
|
1051
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1013
1055
|
rootVnode.$tag$ = null;
|
|
1014
1056
|
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
1015
1057
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -1118,6 +1160,16 @@ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.th
|
|
|
1118
1160
|
*/
|
|
1119
1161
|
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
1120
1162
|
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
1163
|
+
/**
|
|
1164
|
+
* Update a component given reference to its host elements and so on.
|
|
1165
|
+
*
|
|
1166
|
+
* @param hostRef an object containing references to the element's host node,
|
|
1167
|
+
* VDom nodes, and other metadata
|
|
1168
|
+
* @param instance a reference to the underlying host element where it will be
|
|
1169
|
+
* rendered
|
|
1170
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
1171
|
+
* the first render cycle
|
|
1172
|
+
*/
|
|
1121
1173
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1122
1174
|
var _a;
|
|
1123
1175
|
const elm = hostRef.$hostElement$;
|
|
@@ -1129,7 +1181,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1129
1181
|
}
|
|
1130
1182
|
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
1131
1183
|
{
|
|
1132
|
-
callRender(hostRef, instance);
|
|
1184
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
1133
1185
|
}
|
|
1134
1186
|
if (rc) {
|
|
1135
1187
|
// ok, so turns out there are some child host elements
|
|
@@ -1153,7 +1205,19 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1153
1205
|
}
|
|
1154
1206
|
}
|
|
1155
1207
|
};
|
|
1156
|
-
|
|
1208
|
+
/**
|
|
1209
|
+
* Handle making the call to the VDom renderer with the proper context given
|
|
1210
|
+
* various build variables
|
|
1211
|
+
*
|
|
1212
|
+
* @param hostRef an object containing references to the element's host node,
|
|
1213
|
+
* VDom nodes, and other metadata
|
|
1214
|
+
* @param instance a reference to the underlying host element where it will be
|
|
1215
|
+
* rendered
|
|
1216
|
+
* @param elm the Host element for the component
|
|
1217
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
1218
|
+
* @returns an empty promise
|
|
1219
|
+
*/
|
|
1220
|
+
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
1157
1221
|
try {
|
|
1158
1222
|
instance = instance.render() ;
|
|
1159
1223
|
{
|
|
@@ -1168,7 +1232,7 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
1168
1232
|
// or we need to update the css class/attrs on the host element
|
|
1169
1233
|
// DOM WRITE!
|
|
1170
1234
|
{
|
|
1171
|
-
renderVdom(hostRef, instance);
|
|
1235
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
1172
1236
|
}
|
|
1173
1237
|
}
|
|
1174
1238
|
}
|
|
@@ -1533,23 +1597,35 @@ const connectedCallback = (elm) => {
|
|
|
1533
1597
|
// since they would have been removed when disconnected
|
|
1534
1598
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1535
1599
|
// fire off connectedCallback() on component instance
|
|
1536
|
-
|
|
1600
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
|
|
1601
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1602
|
+
}
|
|
1603
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1604
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1605
|
+
}
|
|
1537
1606
|
}
|
|
1538
1607
|
endConnected();
|
|
1539
1608
|
}
|
|
1540
1609
|
};
|
|
1541
|
-
const
|
|
1610
|
+
const disconnectInstance = (instance) => {
|
|
1611
|
+
{
|
|
1612
|
+
safeCall(instance, 'disconnectedCallback');
|
|
1613
|
+
}
|
|
1614
|
+
};
|
|
1615
|
+
const disconnectedCallback = async (elm) => {
|
|
1542
1616
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1543
1617
|
const hostRef = getHostRef(elm);
|
|
1544
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1545
1618
|
{
|
|
1546
1619
|
if (hostRef.$rmListeners$) {
|
|
1547
1620
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1548
1621
|
hostRef.$rmListeners$ = undefined;
|
|
1549
1622
|
}
|
|
1550
1623
|
}
|
|
1551
|
-
{
|
|
1552
|
-
|
|
1624
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
|
|
1625
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1626
|
+
}
|
|
1627
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1628
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1553
1629
|
}
|
|
1554
1630
|
}
|
|
1555
1631
|
};
|
|
@@ -1812,4 +1888,4 @@ exports.promiseResolve = promiseResolve;
|
|
|
1812
1888
|
exports.registerInstance = registerInstance;
|
|
1813
1889
|
exports.setNonce = setNonce;
|
|
1814
1890
|
|
|
1815
|
-
//# sourceMappingURL=index-
|
|
1891
|
+
//# sourceMappingURL=index-b4391019.js.map
|