@devschile/chucao 2.0.0 → 2.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.
- package/README.md +2 -0
- package/dist/chucao/chucao.esm.js +1 -1
- package/dist/chucao/chucao.esm.js.map +1 -1
- package/dist/chucao/{p-a0ec231a.entry.js → p-04dbcfa0.entry.js} +2 -2
- package/dist/chucao/{p-75184fe1.entry.js → p-11083711.entry.js} +2 -2
- package/dist/chucao/{p-f04d2f75.entry.js → p-121fbfc8.entry.js} +2 -2
- package/dist/chucao/{p-10658dc9.entry.js → p-1b1e56cd.entry.js} +2 -2
- package/dist/chucao/{p-e48912c7.entry.js → p-2ab4a6a8.entry.js} +2 -2
- package/dist/chucao/{p-19dde4f9.entry.js → p-4bc8e098.entry.js} +2 -2
- package/dist/chucao/{p-2e20c7a1.entry.js → p-5fe8bfff.entry.js} +2 -2
- package/dist/chucao/p-9bb81a65.entry.js +2 -0
- package/dist/chucao/p-9bb81a65.entry.js.map +1 -0
- package/dist/chucao/{p-BaKXvAYc.js → p-DWC12BJ-.js} +2 -2
- package/dist/chucao/p-DWC12BJ-.js.map +1 -0
- package/dist/chucao/{p-66dce533.entry.js → p-a955eebf.entry.js} +2 -2
- package/dist/chucao/{p-96c852f5.entry.js → p-d5a9e340.entry.js} +2 -2
- package/dist/chucao/{p-f62e1da2.entry.js → p-ff5f5c1f.entry.js} +2 -2
- package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ch-alert_8.cjs.entry.js +6 -6
- package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ch-divider.cjs.entry.js +1 -1
- package/dist/cjs/ch-emoji.cjs.entry.js +104 -0
- package/dist/cjs/ch-emoji.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-link.cjs.entry.js +1 -1
- package/dist/cjs/ch-modal.cjs.entry.js +2 -2
- package/dist/cjs/ch-radio.cjs.entry.js +2 -2
- package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ch-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/chucao.cjs.js +3 -3
- package/dist/cjs/chucao.cjs.js.map +1 -1
- package/dist/cjs/{index-C9Abf0td.js → index-C9cpLteP.js} +15 -8
- package/dist/cjs/index-C9cpLteP.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/ch-card/ch-card.js +1 -1
- package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
- package/dist/collection/components/ch-emoji/ch-emoji.css +33 -0
- package/dist/collection/components/ch-emoji/ch-emoji.js +151 -0
- package/dist/collection/components/ch-emoji/ch-emoji.js.map +1 -0
- package/dist/collection/components/ch-input/ch-input.js +1 -1
- package/dist/collection/components/ch-modal/ch-modal.js +1 -1
- package/dist/collection/components/ch-radio/ch-radio.js +1 -1
- package/dist/collection/components/ch-select/ch-select.js +1 -1
- package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
- package/dist/collection/components/ch-switch/ch-switch.js +1 -1
- package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
- package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
- package/dist/collection/components/ch-tooltip/ch-tooltip.js +1 -1
- package/dist/components/ch-accordion.js +1 -1
- package/dist/components/ch-alert.js +1 -1
- package/dist/components/ch-badge.js +1 -1
- package/dist/components/ch-button.js +1 -1
- package/dist/components/ch-card.js +1 -1
- package/dist/components/ch-checkbox.js +1 -1
- package/dist/components/ch-divider.js +1 -1
- package/dist/components/ch-emoji.d.ts +11 -0
- package/dist/components/ch-emoji.js +2 -0
- package/dist/components/ch-emoji.js.map +1 -0
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-link.js +1 -1
- package/dist/components/ch-modal.js +1 -1
- package/dist/components/ch-radio.js +1 -1
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-spinner.js +1 -1
- package/dist/components/ch-switch.js +1 -1
- package/dist/components/ch-tabs.js +1 -1
- package/dist/components/ch-textarea.js +1 -1
- package/dist/components/ch-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DL-bL54o.js → p-BhAZrOxf.js} +2 -2
- package/dist/components/p-BhAZrOxf.js.map +1 -0
- package/dist/esm/ch-accordion.entry.js +1 -1
- package/dist/esm/ch-alert_8.entry.js +6 -6
- package/dist/esm/ch-checkbox.entry.js +2 -2
- package/dist/esm/ch-divider.entry.js +1 -1
- package/dist/esm/ch-emoji.entry.js +102 -0
- package/dist/esm/ch-emoji.entry.js.map +1 -0
- package/dist/esm/ch-link.entry.js +1 -1
- package/dist/esm/ch-modal.entry.js +2 -2
- package/dist/esm/ch-radio.entry.js +2 -2
- package/dist/esm/ch-tabs.entry.js +2 -2
- package/dist/esm/ch-textarea.entry.js +2 -2
- package/dist/esm/ch-tooltip.entry.js +2 -2
- package/dist/esm/chucao.js +4 -4
- package/dist/esm/chucao.js.map +1 -1
- package/dist/esm/{index-BaKXvAYc.js → index-DWC12BJ-.js} +15 -8
- package/dist/esm/index-DWC12BJ-.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/ch-emoji/ch-emoji.d.ts +32 -0
- package/dist/types/components.d.ts +72 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/dist-react/components.d.ts +3 -0
- package/dist-react/components.js +9 -0
- package/dist-react/components.ts +12 -0
- package/dist-vue/index.d.ts +1 -0
- package/dist-vue/index.js +6 -0
- package/dist-vue/index.ts +8 -0
- package/hydrate/index.js +135 -17
- package/hydrate/index.mjs +135 -17
- package/loader/index.d.ts +1 -1
- package/package.json +2 -1
- package/dist/chucao/p-BaKXvAYc.js.map +0 -1
- package/dist/cjs/index-C9Abf0td.js.map +0 -1
- package/dist/components/p-DL-bL54o.js.map +0 -1
- package/dist/esm/index-BaKXvAYc.js.map +0 -1
- /package/dist/chucao/{p-a0ec231a.entry.js.map → p-04dbcfa0.entry.js.map} +0 -0
- /package/dist/chucao/{p-75184fe1.entry.js.map → p-11083711.entry.js.map} +0 -0
- /package/dist/chucao/{p-f04d2f75.entry.js.map → p-121fbfc8.entry.js.map} +0 -0
- /package/dist/chucao/{p-10658dc9.entry.js.map → p-1b1e56cd.entry.js.map} +0 -0
- /package/dist/chucao/{p-e48912c7.entry.js.map → p-2ab4a6a8.entry.js.map} +0 -0
- /package/dist/chucao/{p-19dde4f9.entry.js.map → p-4bc8e098.entry.js.map} +0 -0
- /package/dist/chucao/{p-2e20c7a1.entry.js.map → p-5fe8bfff.entry.js.map} +0 -0
- /package/dist/chucao/{p-66dce533.entry.js.map → p-a955eebf.entry.js.map} +0 -0
- /package/dist/chucao/{p-96c852f5.entry.js.map → p-d5a9e340.entry.js.map} +0 -0
- /package/dist/chucao/{p-f62e1da2.entry.js.map → p-ff5f5c1f.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -135,7 +135,7 @@ const NAMESPACE = 'chucao';
|
|
|
135
135
|
const BUILD = /* chucao */ { hotModuleReplacement: false, slotRelocation: true, state: true, updatable: true};
|
|
136
136
|
|
|
137
137
|
/*
|
|
138
|
-
Stencil Hydrate Platform v4.44.
|
|
138
|
+
Stencil Hydrate Platform v4.44.2 | MIT Licensed | https://stenciljs.com
|
|
139
139
|
*/
|
|
140
140
|
var __create = Object.create;
|
|
141
141
|
var __defProp = Object.defineProperty;
|
|
@@ -1917,7 +1917,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
1919
|
if (newValue == null || newValue === false) {
|
|
1920
|
-
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
1920
|
+
if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
|
|
1921
1921
|
{
|
|
1922
1922
|
elm.removeAttribute(memberName);
|
|
1923
1923
|
}
|
|
@@ -1930,6 +1930,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
1932
|
};
|
|
1933
|
+
var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
|
|
1934
|
+
var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
|
|
1933
1935
|
var parseClassListRegex = /\s/;
|
|
1934
1936
|
var parseClassList = (value) => {
|
|
1935
1937
|
if (typeof value === "object" && value && "baseVal" in value) {
|
|
@@ -2383,7 +2385,7 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
|
2383
2385
|
return newNode;
|
|
2384
2386
|
}
|
|
2385
2387
|
}
|
|
2386
|
-
if (parent.__insertBefore) {
|
|
2388
|
+
if ((parent == null ? void 0 : parent.__insertBefore)) {
|
|
2387
2389
|
return parent.__insertBefore(newNode, reference);
|
|
2388
2390
|
} else {
|
|
2389
2391
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
@@ -2801,8 +2803,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2801
2803
|
}
|
|
2802
2804
|
}
|
|
2803
2805
|
};
|
|
2804
|
-
|
|
2805
|
-
// src/runtime/proxy-component.ts
|
|
2806
2806
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
2807
2807
|
var _a2;
|
|
2808
2808
|
const prototype = Cstr.prototype;
|
|
@@ -5514,7 +5514,7 @@ class ChCard {
|
|
|
5514
5514
|
registerInstance(this, hostRef);
|
|
5515
5515
|
}
|
|
5516
5516
|
render() {
|
|
5517
|
-
return (hAsync(Host, { key: '
|
|
5517
|
+
return (hAsync(Host, { key: 'de570a460eff697eb242ef56fcedd5b400d6b03f' }, hAsync("div", { key: '3350619356a929c5d922948d52d6635420dc8547', class: "card" }, hAsync("slot", { key: 'b50679202b5fea142702de0babf62587186d4dc8' }))));
|
|
5518
5518
|
}
|
|
5519
5519
|
static get style() { return chCardCss(); }
|
|
5520
5520
|
static get cmpMeta() { return {
|
|
@@ -5638,7 +5638,7 @@ class ChCheckbox {
|
|
|
5638
5638
|
return undefined;
|
|
5639
5639
|
}
|
|
5640
5640
|
render() {
|
|
5641
|
-
return (hAsync(Host, { key: '
|
|
5641
|
+
return (hAsync(Host, { key: 'ad83b999d4dbafbd7b6f2369bae8fbce8e068cad' }, hAsync("label", { key: 'e5927ad9d76db7cd9418debe8e635767b597e27a', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.checkboxId }, hAsync("input", { key: '93c49822bf5a470d67a7077354adcd9144643843', id: this.checkboxId, class: { 'input': true, 'input--invalid': this.invalid }, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.formDisabled, required: this.required, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), this.label && hAsync("span", { key: 'da90747e3339879a744569c98befed94507bebdd', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '3c10c9e29a943bc12983d4ef6b9fa00d95293c80', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '76e4a8debadd36dae475bd2439410c0f2a82cb62', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
5642
5642
|
}
|
|
5643
5643
|
static get formAssociated() { return true; }
|
|
5644
5644
|
static get watchers() { return {
|
|
@@ -5703,6 +5703,123 @@ class ChDivider {
|
|
|
5703
5703
|
}; }
|
|
5704
5704
|
}
|
|
5705
5705
|
|
|
5706
|
+
const aaaa = "aaaa";
|
|
5707
|
+
const ameno = "ameno";
|
|
5708
|
+
const heart = "huemul-love";
|
|
5709
|
+
const love = "huemul-love";
|
|
5710
|
+
const humo = "humo";
|
|
5711
|
+
const hypnotoad = "hypnotoad";
|
|
5712
|
+
const lmao = "lmao";
|
|
5713
|
+
const loading = "loading";
|
|
5714
|
+
const loco = "loco";
|
|
5715
|
+
const loco2 = "loco2";
|
|
5716
|
+
const lol = "lol";
|
|
5717
|
+
const lol2 = "lol2";
|
|
5718
|
+
const monea = "monea";
|
|
5719
|
+
const negative = "negative";
|
|
5720
|
+
var emojiMap = {
|
|
5721
|
+
aaaa: aaaa,
|
|
5722
|
+
ameno: ameno,
|
|
5723
|
+
"huemul-huaso": "huemul-huaso",
|
|
5724
|
+
"huemul-love": "huemul-love",
|
|
5725
|
+
heart: heart,
|
|
5726
|
+
love: love,
|
|
5727
|
+
"huemul-trusted": "huemul-trusted",
|
|
5728
|
+
humo: humo,
|
|
5729
|
+
hypnotoad: hypnotoad,
|
|
5730
|
+
"lets-fucking-go": "lets-fucking-go",
|
|
5731
|
+
lmao: lmao,
|
|
5732
|
+
loading: loading,
|
|
5733
|
+
loco: loco,
|
|
5734
|
+
loco2: loco2,
|
|
5735
|
+
lol: lol,
|
|
5736
|
+
lol2: lol2,
|
|
5737
|
+
monea: monea,
|
|
5738
|
+
negative: negative
|
|
5739
|
+
};
|
|
5740
|
+
|
|
5741
|
+
const chEmojiCss = () => `:host{display:inline-block;vertical-align:middle}.emoji{display:block;object-fit:contain}.emoji--sm{width:16px;height:16px}.emoji--md{width:24px;height:24px}.emoji--lg{width:32px;height:32px}.emoji--xl{width:48px;height:48px}.emoji--hidden{display:none}`;
|
|
5742
|
+
|
|
5743
|
+
const CDN_BASE = 'https://static.devschile.cl/emoji';
|
|
5744
|
+
const EXTENSIONS = ['png', 'gif', 'jpg', 'svg'];
|
|
5745
|
+
/**
|
|
5746
|
+
* Inline emoji from the devsChile CDN.
|
|
5747
|
+
*
|
|
5748
|
+
* Given a name (or alias from the emoji map), the component resolves the
|
|
5749
|
+
* asset URL and tries each possible file extension until one loads.
|
|
5750
|
+
* Size is controlled via the `size` prop.
|
|
5751
|
+
*/
|
|
5752
|
+
class ChEmoji {
|
|
5753
|
+
constructor(hostRef) {
|
|
5754
|
+
registerInstance(this, hostRef);
|
|
5755
|
+
}
|
|
5756
|
+
extIndex = 0;
|
|
5757
|
+
loaded = false;
|
|
5758
|
+
/**
|
|
5759
|
+
* The emoji name or alias, e.g. `"huemul-love"` or `"heart"`.
|
|
5760
|
+
*/
|
|
5761
|
+
name;
|
|
5762
|
+
/**
|
|
5763
|
+
* Accessible alt text for the image. Defaults to the `name` prop.
|
|
5764
|
+
*/
|
|
5765
|
+
alt;
|
|
5766
|
+
/**
|
|
5767
|
+
* Size of the emoji. Either `sm`, `md`, `lg`, or `xl`.
|
|
5768
|
+
*/
|
|
5769
|
+
size = 'md';
|
|
5770
|
+
componentWillLoad() {
|
|
5771
|
+
this.resolveAsset();
|
|
5772
|
+
}
|
|
5773
|
+
handleNameChange() {
|
|
5774
|
+
this.resolveAsset();
|
|
5775
|
+
}
|
|
5776
|
+
resolveAsset() {
|
|
5777
|
+
this.extIndex = 0;
|
|
5778
|
+
this.loaded = false;
|
|
5779
|
+
}
|
|
5780
|
+
get assetName() {
|
|
5781
|
+
return emojiMap[this.name] ?? this.name;
|
|
5782
|
+
}
|
|
5783
|
+
get currentSrc() {
|
|
5784
|
+
return `${CDN_BASE}/${this.assetName}.${EXTENSIONS[this.extIndex]}`;
|
|
5785
|
+
}
|
|
5786
|
+
handleError = () => {
|
|
5787
|
+
if (this.extIndex < EXTENSIONS.length - 1) {
|
|
5788
|
+
this.extIndex++;
|
|
5789
|
+
}
|
|
5790
|
+
};
|
|
5791
|
+
handleLoad = () => {
|
|
5792
|
+
this.loaded = true;
|
|
5793
|
+
};
|
|
5794
|
+
render() {
|
|
5795
|
+
return (hAsync(Host, { key: 'bfc646f047dae03aa8079825012305d7beb1fa6d' }, hAsync("img", { key: 'c397cc1f928c6871df10adc1f43874738e1cbf33', class: {
|
|
5796
|
+
'emoji': true,
|
|
5797
|
+
[`emoji--${this.size}`]: true,
|
|
5798
|
+
'emoji--hidden': !this.loaded,
|
|
5799
|
+
}, src: this.currentSrc, alt: this.alt ?? this.name, onError: this.handleError, onLoad: this.handleLoad })));
|
|
5800
|
+
}
|
|
5801
|
+
static get watchers() { return {
|
|
5802
|
+
"name": [{
|
|
5803
|
+
"handleNameChange": 0
|
|
5804
|
+
}]
|
|
5805
|
+
}; }
|
|
5806
|
+
static get style() { return chEmojiCss(); }
|
|
5807
|
+
static get cmpMeta() { return {
|
|
5808
|
+
"$flags$": 521,
|
|
5809
|
+
"$tagName$": "ch-emoji",
|
|
5810
|
+
"$members$": {
|
|
5811
|
+
"name": [1],
|
|
5812
|
+
"alt": [1],
|
|
5813
|
+
"size": [1],
|
|
5814
|
+
"extIndex": [32],
|
|
5815
|
+
"loaded": [32]
|
|
5816
|
+
},
|
|
5817
|
+
"$listeners$": undefined,
|
|
5818
|
+
"$lazyBundleId$": "-",
|
|
5819
|
+
"$attrsToReflect$": []
|
|
5820
|
+
}; }
|
|
5821
|
+
}
|
|
5822
|
+
|
|
5706
5823
|
const chInputCss = () => `:host{display:inline-block;width:100%}.label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.input{box-sizing:border-box;width:100%;padding:var(--spacing-xl) var(--spacing-3xl);border-radius:var(--radius);border:var(--border-width) solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(var(--effect-blur));font-family:inherit;font-size:inherit;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input::placeholder{color:var(--text-muted)}.input:focus{border-color:var(--accent);box-shadow:var(--shadow-focus-ring);outline:none}.input--invalid{border-color:var(--color-status-warning)}.input--invalid:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}:host([data-touched]:invalid) .input,:host(:user-invalid) .input{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .input:focus,:host(:user-invalid) .input:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}.input:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}`;
|
|
5707
5824
|
|
|
5708
5825
|
let inputIds = 0;
|
|
@@ -5827,7 +5944,7 @@ class ChInput {
|
|
|
5827
5944
|
return undefined;
|
|
5828
5945
|
}
|
|
5829
5946
|
render() {
|
|
5830
|
-
return (hAsync(Host, { key: '
|
|
5947
|
+
return (hAsync(Host, { key: '8a4b7cf5b80097afb849e2de9620fdd205774923' }, this.label && (hAsync("label", { key: '7400206e6c27d61e7b9afadeba8a2131059af59a', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: '2c4fd9215d5b21f28d57a1c49eeaa64224e21e05', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.invalid }, type: this.type, name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.value, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange }), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '6e6a381f81442622784afc480eb79327ae8a8525', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '743215633ca399d801c813194b054d40631b7be6', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
5831
5948
|
}
|
|
5832
5949
|
static get formAssociated() { return true; }
|
|
5833
5950
|
static get watchers() { return {
|
|
@@ -6088,7 +6205,7 @@ class ChModal {
|
|
|
6088
6205
|
this.chClose.emit();
|
|
6089
6206
|
};
|
|
6090
6207
|
render() {
|
|
6091
|
-
return (hAsync(Host, { key: '
|
|
6208
|
+
return (hAsync(Host, { key: '8f5f8c340291feb4385076bfdefc02a849e08efe' }, hAsync("dialog", { key: 'e435367c1e3dc5c7e8102f6ac76792394f5097fa', class: "modal", "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '05a0d306dc7e3f917c47de28ed6359280c0472b8', class: "modal-head" }, hAsync("slot", { key: '79e25ed41f98a5ceee2dca9afc200d8980d9f284', name: "heading" }), this.closeLabel && (hAsync("button", { key: '0620b914cb51cae7ab74f2ccccb25e9fc324811f', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: 'e2a1e0ec6c1d1cbdb2de684bfe4c7e0ed07ceaee', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'af254d18e1538ea5dac06c421ba03d897ddf057d', class: "modal-body" }, hAsync("slot", { key: '645876d63f275108a2a9d27f563bb6918dcb9deb' })))));
|
|
6092
6209
|
}
|
|
6093
6210
|
static get watchers() { return {
|
|
6094
6211
|
"open": [{
|
|
@@ -6224,7 +6341,7 @@ class ChRadio {
|
|
|
6224
6341
|
}
|
|
6225
6342
|
render() {
|
|
6226
6343
|
const groupName = this.name || `${this.groupId}-group`;
|
|
6227
|
-
return (hAsync(Host, { key: '
|
|
6344
|
+
return (hAsync(Host, { key: '2d0f02cbeae89b8c60664825f3885bbeeafd896a' }, this.label && (hAsync("span", { key: 'c32fd25be5eaf0d05c2d8d6aae01dda281f4b952', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: 'bd05a360ad1fd794c95d8066dbb93300152a88dc', class: "radio-group", role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (hAsync("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, hAsync("input", { class: { 'input': true, 'input--invalid': this.invalid }, type: "radio", name: groupName, value: option.value, checked: option.value === this.value, disabled: this.disabled || this.formDisabled || option.disabled, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), hAsync("span", { class: "mark" }), hAsync("span", { class: "label-text" }, option.label))))), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '8c451f8d166c6002a4f30bfb72acd6b863ec38c2', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '8ac12f60e463c908dff76d64d7ae0e216ed51489', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
6228
6345
|
}
|
|
6229
6346
|
static get formAssociated() { return true; }
|
|
6230
6347
|
static get watchers() { return {
|
|
@@ -6378,7 +6495,7 @@ class ChSelect {
|
|
|
6378
6495
|
return undefined;
|
|
6379
6496
|
}
|
|
6380
6497
|
render() {
|
|
6381
|
-
return (hAsync(Host, { key: '
|
|
6498
|
+
return (hAsync(Host, { key: 'ffca23504c723f60f7430e6db2e1fa00db1fd4d8' }, this.label && (hAsync("label", { key: '697998ec67f01f3ca2849b1fb2aa88790d98010b', class: "label", htmlFor: this.selectId }, this.label)), hAsync("select", { key: 'f344d240f38dd123bdfd2d34cd15fbc7b5ae0a2c', id: this.label ? this.selectId : undefined, class: { 'select': true, 'select--invalid': this.invalid }, name: this.name, disabled: this.disabled || this.formDisabled, required: this.required, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }, this.placeholder && (hAsync("option", { key: '34200e96dad92ed55632f0430abde5bc34cf6e6a', value: "", disabled: true, hidden: true, selected: !this.value }, this.placeholder)), this.options.map(option => (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.value === this.value }, option.label)))), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '55690dbf57cad7c974d0bf1b8eedb733ddc5b571', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '7d4598b112d21ebc96ac04bca553f63dd5825996', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
6382
6499
|
}
|
|
6383
6500
|
static get formAssociated() { return true; }
|
|
6384
6501
|
static get watchers() { return {
|
|
@@ -6447,7 +6564,7 @@ class ChSpinner {
|
|
|
6447
6564
|
label;
|
|
6448
6565
|
render() {
|
|
6449
6566
|
const labelled = Boolean(this.label);
|
|
6450
|
-
return (hAsync(Host, { key: '
|
|
6567
|
+
return (hAsync(Host, { key: '9182eecf066be099714a870fa601f744362e697d' }, hAsync("span", { key: 'd67f2572ab80facadd4d49043a892b16816b4fef', class: { spinner: true, [`spinner--${this.size}`]: true }, role: labelled ? 'status' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' })));
|
|
6451
6568
|
}
|
|
6452
6569
|
static get style() { return chSpinnerCss(); }
|
|
6453
6570
|
static get cmpMeta() { return {
|
|
@@ -6574,7 +6691,7 @@ class ChSwitch {
|
|
|
6574
6691
|
return undefined;
|
|
6575
6692
|
}
|
|
6576
6693
|
render() {
|
|
6577
|
-
return (hAsync(Host, { key: '
|
|
6694
|
+
return (hAsync(Host, { key: 'c1a98e9b04710ed014a8c18d6591fee427df0033' }, hAsync("label", { key: '4b14ec7d7709090235b0e9b74a45d4c76dd52f25', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.switchId }, hAsync("input", { key: '4f2c9472b3bf34db582a94e307cc8b47b5dfcd38', id: this.switchId, class: { 'input': true, 'input--invalid': this.invalid }, type: "checkbox", role: "switch", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.formDisabled, required: this.required, "aria-checked": this.checked ? 'true' : 'false', "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), hAsync("span", { key: '6b2c20c6242178bba39f105a535bb12fc5198cd0', class: "track" }, hAsync("span", { key: '4ae0e675ce335417b867f6b688ec5545769b2d2c', class: "thumb" })), this.label && hAsync("span", { key: 'd5383fac3349441104c0926a6c88078b85bda05c', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '41ed07a95f8d627fb4ed8c903b6ba5ee39baa6a5', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '71cf8526dec44e2099235e3bc744db2aa53d70f0', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
6578
6695
|
}
|
|
6579
6696
|
static get formAssociated() { return true; }
|
|
6580
6697
|
static get watchers() { return {
|
|
@@ -6697,7 +6814,7 @@ class ChTabs {
|
|
|
6697
6814
|
}
|
|
6698
6815
|
render() {
|
|
6699
6816
|
const active = this.activeValue;
|
|
6700
|
-
return (hAsync(Host, { key: '
|
|
6817
|
+
return (hAsync(Host, { key: '7c6b34c34e73f034eb03473ad9941eade91317c3' }, hAsync("div", { key: '601bae37f4fb3e5e0d07fb7a91968171b0bd18a3', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
|
|
6701
6818
|
const selected = tab.value === active;
|
|
6702
6819
|
return (hAsync("button", { key: tab.value, type: "button", class: { 'tab': true, 'tab--active': selected, 'tab--disabled': Boolean(tab.disabled) }, role: "tab", id: this.tabId(tab.value), "data-value": tab.value, "aria-selected": selected ? 'true' : 'false', "aria-controls": this.panelId(tab.value), tabIndex: selected ? FIRST_TAB_INDEX : LAST_TAB_INDEX, disabled: tab.disabled, onClick: () => this.select(tab.value) }, tab.label));
|
|
6703
6820
|
})), this.tabs.map(tab => (hAsync("div", { key: `${tab.value}-panel`, class: "tabpanel", id: this.panelId(tab.value), role: "tabpanel", "aria-labelledby": this.tabId(tab.value), tabIndex: FIRST_TAB_INDEX, hidden: tab.value !== active }, hAsync("slot", { name: `panel-${tab.value}` }))))));
|
|
@@ -6842,7 +6959,7 @@ class ChTextarea {
|
|
|
6842
6959
|
return undefined;
|
|
6843
6960
|
}
|
|
6844
6961
|
render() {
|
|
6845
|
-
return (hAsync(Host, { key: '
|
|
6962
|
+
return (hAsync(Host, { key: '6e738612514b114571c1edfad0fb85e2228653a8' }, this.label && (hAsync("label", { key: '3b58b49a02dd532430cfd9096c326288a5120d6d', class: "label", htmlFor: this.textareaId }, this.label)), hAsync("textarea", { key: '0922df038ea6ce6d1567ffe8d02c5b65534bec7a', id: this.label ? this.textareaId : undefined, class: { 'textarea': true, 'textarea--invalid': this.invalid }, rows: this.rows, name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.value, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange }), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '6d3518345b9afaad782741a854053ed2b32e31db', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '8a26edd5a1ef3647133813003fb1a53b1a5f99d6', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
6846
6963
|
}
|
|
6847
6964
|
static get formAssociated() { return true; }
|
|
6848
6965
|
static get watchers() { return {
|
|
@@ -6967,7 +7084,7 @@ class ChTooltip {
|
|
|
6967
7084
|
trigger.setAttribute('aria-describedby', content.id);
|
|
6968
7085
|
};
|
|
6969
7086
|
render() {
|
|
6970
|
-
return (hAsync(Host, { key: '
|
|
7087
|
+
return (hAsync(Host, { key: 'cebea73595fe515f952e60c72c42e92888e57133' }, hAsync("span", { key: 'c2eadb27d9d89b19d821ae1da93dcb7125d07bb0', class: "anchor" }, hAsync("slot", { key: '9eccdd49e741ffaed3d7d95c54697666e6e13cf0', name: "trigger", onSlotchange: this.associate }), hAsync("span", { key: '0842bbc4061da0be353e58bc897548e75c730e43', class: { 'bubble': true, [`bubble--${this.placement}`]: true, 'bubble--visible': this.visible } }, hAsync("slot", { key: '43812aac1e6e2853057e6d34f484906a17b16a5a', name: "content", onSlotchange: this.associate })))));
|
|
6971
7088
|
}
|
|
6972
7089
|
static get style() { return chTooltipCss(); }
|
|
6973
7090
|
static get cmpMeta() { return {
|
|
@@ -6993,6 +7110,7 @@ registerComponents([
|
|
|
6993
7110
|
ChCard,
|
|
6994
7111
|
ChCheckbox,
|
|
6995
7112
|
ChDivider,
|
|
7113
|
+
ChEmoji,
|
|
6996
7114
|
ChInput,
|
|
6997
7115
|
ChLink,
|
|
6998
7116
|
ChModal,
|
|
@@ -7104,7 +7222,7 @@ var NAMESPACE = (
|
|
|
7104
7222
|
);
|
|
7105
7223
|
|
|
7106
7224
|
/*
|
|
7107
|
-
Stencil Hydrate Runner v4.44.
|
|
7225
|
+
Stencil Hydrate Runner v4.44.2 | MIT Licensed | https://stenciljs.com
|
|
7108
7226
|
*/
|
|
7109
7227
|
var __create = Object.create;
|
|
7110
7228
|
var __defProp = Object.defineProperty;
|
package/hydrate/index.mjs
CHANGED
|
@@ -133,7 +133,7 @@ const NAMESPACE = 'chucao';
|
|
|
133
133
|
const BUILD = /* chucao */ { hotModuleReplacement: false, slotRelocation: true, state: true, updatable: true};
|
|
134
134
|
|
|
135
135
|
/*
|
|
136
|
-
Stencil Hydrate Platform v4.44.
|
|
136
|
+
Stencil Hydrate Platform v4.44.2 | MIT Licensed | https://stenciljs.com
|
|
137
137
|
*/
|
|
138
138
|
var __create = Object.create;
|
|
139
139
|
var __defProp = Object.defineProperty;
|
|
@@ -1915,7 +1915,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1915
1915
|
}
|
|
1916
1916
|
}
|
|
1917
1917
|
if (newValue == null || newValue === false) {
|
|
1918
|
-
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
1918
|
+
if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
|
|
1919
1919
|
{
|
|
1920
1920
|
elm.removeAttribute(memberName);
|
|
1921
1921
|
}
|
|
@@ -1928,6 +1928,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1928
1928
|
}
|
|
1929
1929
|
}
|
|
1930
1930
|
};
|
|
1931
|
+
var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
|
|
1932
|
+
var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
|
|
1931
1933
|
var parseClassListRegex = /\s/;
|
|
1932
1934
|
var parseClassList = (value) => {
|
|
1933
1935
|
if (typeof value === "object" && value && "baseVal" in value) {
|
|
@@ -2381,7 +2383,7 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
|
2381
2383
|
return newNode;
|
|
2382
2384
|
}
|
|
2383
2385
|
}
|
|
2384
|
-
if (parent.__insertBefore) {
|
|
2386
|
+
if ((parent == null ? void 0 : parent.__insertBefore)) {
|
|
2385
2387
|
return parent.__insertBefore(newNode, reference);
|
|
2386
2388
|
} else {
|
|
2387
2389
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
@@ -2799,8 +2801,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2799
2801
|
}
|
|
2800
2802
|
}
|
|
2801
2803
|
};
|
|
2802
|
-
|
|
2803
|
-
// src/runtime/proxy-component.ts
|
|
2804
2804
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
2805
2805
|
var _a2;
|
|
2806
2806
|
const prototype = Cstr.prototype;
|
|
@@ -5512,7 +5512,7 @@ class ChCard {
|
|
|
5512
5512
|
registerInstance(this, hostRef);
|
|
5513
5513
|
}
|
|
5514
5514
|
render() {
|
|
5515
|
-
return (hAsync(Host, { key: '
|
|
5515
|
+
return (hAsync(Host, { key: 'de570a460eff697eb242ef56fcedd5b400d6b03f' }, hAsync("div", { key: '3350619356a929c5d922948d52d6635420dc8547', class: "card" }, hAsync("slot", { key: 'b50679202b5fea142702de0babf62587186d4dc8' }))));
|
|
5516
5516
|
}
|
|
5517
5517
|
static get style() { return chCardCss(); }
|
|
5518
5518
|
static get cmpMeta() { return {
|
|
@@ -5636,7 +5636,7 @@ class ChCheckbox {
|
|
|
5636
5636
|
return undefined;
|
|
5637
5637
|
}
|
|
5638
5638
|
render() {
|
|
5639
|
-
return (hAsync(Host, { key: '
|
|
5639
|
+
return (hAsync(Host, { key: 'ad83b999d4dbafbd7b6f2369bae8fbce8e068cad' }, hAsync("label", { key: 'e5927ad9d76db7cd9418debe8e635767b597e27a', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.checkboxId }, hAsync("input", { key: '93c49822bf5a470d67a7077354adcd9144643843', id: this.checkboxId, class: { 'input': true, 'input--invalid': this.invalid }, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.formDisabled, required: this.required, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), this.label && hAsync("span", { key: 'da90747e3339879a744569c98befed94507bebdd', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '3c10c9e29a943bc12983d4ef6b9fa00d95293c80', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '76e4a8debadd36dae475bd2439410c0f2a82cb62', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
5640
5640
|
}
|
|
5641
5641
|
static get formAssociated() { return true; }
|
|
5642
5642
|
static get watchers() { return {
|
|
@@ -5701,6 +5701,123 @@ class ChDivider {
|
|
|
5701
5701
|
}; }
|
|
5702
5702
|
}
|
|
5703
5703
|
|
|
5704
|
+
const aaaa = "aaaa";
|
|
5705
|
+
const ameno = "ameno";
|
|
5706
|
+
const heart = "huemul-love";
|
|
5707
|
+
const love = "huemul-love";
|
|
5708
|
+
const humo = "humo";
|
|
5709
|
+
const hypnotoad = "hypnotoad";
|
|
5710
|
+
const lmao = "lmao";
|
|
5711
|
+
const loading = "loading";
|
|
5712
|
+
const loco = "loco";
|
|
5713
|
+
const loco2 = "loco2";
|
|
5714
|
+
const lol = "lol";
|
|
5715
|
+
const lol2 = "lol2";
|
|
5716
|
+
const monea = "monea";
|
|
5717
|
+
const negative = "negative";
|
|
5718
|
+
var emojiMap = {
|
|
5719
|
+
aaaa: aaaa,
|
|
5720
|
+
ameno: ameno,
|
|
5721
|
+
"huemul-huaso": "huemul-huaso",
|
|
5722
|
+
"huemul-love": "huemul-love",
|
|
5723
|
+
heart: heart,
|
|
5724
|
+
love: love,
|
|
5725
|
+
"huemul-trusted": "huemul-trusted",
|
|
5726
|
+
humo: humo,
|
|
5727
|
+
hypnotoad: hypnotoad,
|
|
5728
|
+
"lets-fucking-go": "lets-fucking-go",
|
|
5729
|
+
lmao: lmao,
|
|
5730
|
+
loading: loading,
|
|
5731
|
+
loco: loco,
|
|
5732
|
+
loco2: loco2,
|
|
5733
|
+
lol: lol,
|
|
5734
|
+
lol2: lol2,
|
|
5735
|
+
monea: monea,
|
|
5736
|
+
negative: negative
|
|
5737
|
+
};
|
|
5738
|
+
|
|
5739
|
+
const chEmojiCss = () => `:host{display:inline-block;vertical-align:middle}.emoji{display:block;object-fit:contain}.emoji--sm{width:16px;height:16px}.emoji--md{width:24px;height:24px}.emoji--lg{width:32px;height:32px}.emoji--xl{width:48px;height:48px}.emoji--hidden{display:none}`;
|
|
5740
|
+
|
|
5741
|
+
const CDN_BASE = 'https://static.devschile.cl/emoji';
|
|
5742
|
+
const EXTENSIONS = ['png', 'gif', 'jpg', 'svg'];
|
|
5743
|
+
/**
|
|
5744
|
+
* Inline emoji from the devsChile CDN.
|
|
5745
|
+
*
|
|
5746
|
+
* Given a name (or alias from the emoji map), the component resolves the
|
|
5747
|
+
* asset URL and tries each possible file extension until one loads.
|
|
5748
|
+
* Size is controlled via the `size` prop.
|
|
5749
|
+
*/
|
|
5750
|
+
class ChEmoji {
|
|
5751
|
+
constructor(hostRef) {
|
|
5752
|
+
registerInstance(this, hostRef);
|
|
5753
|
+
}
|
|
5754
|
+
extIndex = 0;
|
|
5755
|
+
loaded = false;
|
|
5756
|
+
/**
|
|
5757
|
+
* The emoji name or alias, e.g. `"huemul-love"` or `"heart"`.
|
|
5758
|
+
*/
|
|
5759
|
+
name;
|
|
5760
|
+
/**
|
|
5761
|
+
* Accessible alt text for the image. Defaults to the `name` prop.
|
|
5762
|
+
*/
|
|
5763
|
+
alt;
|
|
5764
|
+
/**
|
|
5765
|
+
* Size of the emoji. Either `sm`, `md`, `lg`, or `xl`.
|
|
5766
|
+
*/
|
|
5767
|
+
size = 'md';
|
|
5768
|
+
componentWillLoad() {
|
|
5769
|
+
this.resolveAsset();
|
|
5770
|
+
}
|
|
5771
|
+
handleNameChange() {
|
|
5772
|
+
this.resolveAsset();
|
|
5773
|
+
}
|
|
5774
|
+
resolveAsset() {
|
|
5775
|
+
this.extIndex = 0;
|
|
5776
|
+
this.loaded = false;
|
|
5777
|
+
}
|
|
5778
|
+
get assetName() {
|
|
5779
|
+
return emojiMap[this.name] ?? this.name;
|
|
5780
|
+
}
|
|
5781
|
+
get currentSrc() {
|
|
5782
|
+
return `${CDN_BASE}/${this.assetName}.${EXTENSIONS[this.extIndex]}`;
|
|
5783
|
+
}
|
|
5784
|
+
handleError = () => {
|
|
5785
|
+
if (this.extIndex < EXTENSIONS.length - 1) {
|
|
5786
|
+
this.extIndex++;
|
|
5787
|
+
}
|
|
5788
|
+
};
|
|
5789
|
+
handleLoad = () => {
|
|
5790
|
+
this.loaded = true;
|
|
5791
|
+
};
|
|
5792
|
+
render() {
|
|
5793
|
+
return (hAsync(Host, { key: 'bfc646f047dae03aa8079825012305d7beb1fa6d' }, hAsync("img", { key: 'c397cc1f928c6871df10adc1f43874738e1cbf33', class: {
|
|
5794
|
+
'emoji': true,
|
|
5795
|
+
[`emoji--${this.size}`]: true,
|
|
5796
|
+
'emoji--hidden': !this.loaded,
|
|
5797
|
+
}, src: this.currentSrc, alt: this.alt ?? this.name, onError: this.handleError, onLoad: this.handleLoad })));
|
|
5798
|
+
}
|
|
5799
|
+
static get watchers() { return {
|
|
5800
|
+
"name": [{
|
|
5801
|
+
"handleNameChange": 0
|
|
5802
|
+
}]
|
|
5803
|
+
}; }
|
|
5804
|
+
static get style() { return chEmojiCss(); }
|
|
5805
|
+
static get cmpMeta() { return {
|
|
5806
|
+
"$flags$": 521,
|
|
5807
|
+
"$tagName$": "ch-emoji",
|
|
5808
|
+
"$members$": {
|
|
5809
|
+
"name": [1],
|
|
5810
|
+
"alt": [1],
|
|
5811
|
+
"size": [1],
|
|
5812
|
+
"extIndex": [32],
|
|
5813
|
+
"loaded": [32]
|
|
5814
|
+
},
|
|
5815
|
+
"$listeners$": undefined,
|
|
5816
|
+
"$lazyBundleId$": "-",
|
|
5817
|
+
"$attrsToReflect$": []
|
|
5818
|
+
}; }
|
|
5819
|
+
}
|
|
5820
|
+
|
|
5704
5821
|
const chInputCss = () => `:host{display:inline-block;width:100%}.label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.input{box-sizing:border-box;width:100%;padding:var(--spacing-xl) var(--spacing-3xl);border-radius:var(--radius);border:var(--border-width) solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(var(--effect-blur));font-family:inherit;font-size:inherit;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input::placeholder{color:var(--text-muted)}.input:focus{border-color:var(--accent);box-shadow:var(--shadow-focus-ring);outline:none}.input--invalid{border-color:var(--color-status-warning)}.input--invalid:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}:host([data-touched]:invalid) .input,:host(:user-invalid) .input{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .input:focus,:host(:user-invalid) .input:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}.input:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}`;
|
|
5705
5822
|
|
|
5706
5823
|
let inputIds = 0;
|
|
@@ -5825,7 +5942,7 @@ class ChInput {
|
|
|
5825
5942
|
return undefined;
|
|
5826
5943
|
}
|
|
5827
5944
|
render() {
|
|
5828
|
-
return (hAsync(Host, { key: '
|
|
5945
|
+
return (hAsync(Host, { key: '8a4b7cf5b80097afb849e2de9620fdd205774923' }, this.label && (hAsync("label", { key: '7400206e6c27d61e7b9afadeba8a2131059af59a', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: '2c4fd9215d5b21f28d57a1c49eeaa64224e21e05', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.invalid }, type: this.type, name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.value, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange }), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '6e6a381f81442622784afc480eb79327ae8a8525', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '743215633ca399d801c813194b054d40631b7be6', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
5829
5946
|
}
|
|
5830
5947
|
static get formAssociated() { return true; }
|
|
5831
5948
|
static get watchers() { return {
|
|
@@ -6086,7 +6203,7 @@ class ChModal {
|
|
|
6086
6203
|
this.chClose.emit();
|
|
6087
6204
|
};
|
|
6088
6205
|
render() {
|
|
6089
|
-
return (hAsync(Host, { key: '
|
|
6206
|
+
return (hAsync(Host, { key: '8f5f8c340291feb4385076bfdefc02a849e08efe' }, hAsync("dialog", { key: 'e435367c1e3dc5c7e8102f6ac76792394f5097fa', class: "modal", "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '05a0d306dc7e3f917c47de28ed6359280c0472b8', class: "modal-head" }, hAsync("slot", { key: '79e25ed41f98a5ceee2dca9afc200d8980d9f284', name: "heading" }), this.closeLabel && (hAsync("button", { key: '0620b914cb51cae7ab74f2ccccb25e9fc324811f', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: 'e2a1e0ec6c1d1cbdb2de684bfe4c7e0ed07ceaee', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'af254d18e1538ea5dac06c421ba03d897ddf057d', class: "modal-body" }, hAsync("slot", { key: '645876d63f275108a2a9d27f563bb6918dcb9deb' })))));
|
|
6090
6207
|
}
|
|
6091
6208
|
static get watchers() { return {
|
|
6092
6209
|
"open": [{
|
|
@@ -6222,7 +6339,7 @@ class ChRadio {
|
|
|
6222
6339
|
}
|
|
6223
6340
|
render() {
|
|
6224
6341
|
const groupName = this.name || `${this.groupId}-group`;
|
|
6225
|
-
return (hAsync(Host, { key: '
|
|
6342
|
+
return (hAsync(Host, { key: '2d0f02cbeae89b8c60664825f3885bbeeafd896a' }, this.label && (hAsync("span", { key: 'c32fd25be5eaf0d05c2d8d6aae01dda281f4b952', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: 'bd05a360ad1fd794c95d8066dbb93300152a88dc', class: "radio-group", role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (hAsync("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, hAsync("input", { class: { 'input': true, 'input--invalid': this.invalid }, type: "radio", name: groupName, value: option.value, checked: option.value === this.value, disabled: this.disabled || this.formDisabled || option.disabled, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), hAsync("span", { class: "mark" }), hAsync("span", { class: "label-text" }, option.label))))), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '8c451f8d166c6002a4f30bfb72acd6b863ec38c2', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '8ac12f60e463c908dff76d64d7ae0e216ed51489', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
6226
6343
|
}
|
|
6227
6344
|
static get formAssociated() { return true; }
|
|
6228
6345
|
static get watchers() { return {
|
|
@@ -6376,7 +6493,7 @@ class ChSelect {
|
|
|
6376
6493
|
return undefined;
|
|
6377
6494
|
}
|
|
6378
6495
|
render() {
|
|
6379
|
-
return (hAsync(Host, { key: '
|
|
6496
|
+
return (hAsync(Host, { key: 'ffca23504c723f60f7430e6db2e1fa00db1fd4d8' }, this.label && (hAsync("label", { key: '697998ec67f01f3ca2849b1fb2aa88790d98010b', class: "label", htmlFor: this.selectId }, this.label)), hAsync("select", { key: 'f344d240f38dd123bdfd2d34cd15fbc7b5ae0a2c', id: this.label ? this.selectId : undefined, class: { 'select': true, 'select--invalid': this.invalid }, name: this.name, disabled: this.disabled || this.formDisabled, required: this.required, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }, this.placeholder && (hAsync("option", { key: '34200e96dad92ed55632f0430abde5bc34cf6e6a', value: "", disabled: true, hidden: true, selected: !this.value }, this.placeholder)), this.options.map(option => (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.value === this.value }, option.label)))), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '55690dbf57cad7c974d0bf1b8eedb733ddc5b571', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '7d4598b112d21ebc96ac04bca553f63dd5825996', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
6380
6497
|
}
|
|
6381
6498
|
static get formAssociated() { return true; }
|
|
6382
6499
|
static get watchers() { return {
|
|
@@ -6445,7 +6562,7 @@ class ChSpinner {
|
|
|
6445
6562
|
label;
|
|
6446
6563
|
render() {
|
|
6447
6564
|
const labelled = Boolean(this.label);
|
|
6448
|
-
return (hAsync(Host, { key: '
|
|
6565
|
+
return (hAsync(Host, { key: '9182eecf066be099714a870fa601f744362e697d' }, hAsync("span", { key: 'd67f2572ab80facadd4d49043a892b16816b4fef', class: { spinner: true, [`spinner--${this.size}`]: true }, role: labelled ? 'status' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' })));
|
|
6449
6566
|
}
|
|
6450
6567
|
static get style() { return chSpinnerCss(); }
|
|
6451
6568
|
static get cmpMeta() { return {
|
|
@@ -6572,7 +6689,7 @@ class ChSwitch {
|
|
|
6572
6689
|
return undefined;
|
|
6573
6690
|
}
|
|
6574
6691
|
render() {
|
|
6575
|
-
return (hAsync(Host, { key: '
|
|
6692
|
+
return (hAsync(Host, { key: 'c1a98e9b04710ed014a8c18d6591fee427df0033' }, hAsync("label", { key: '4b14ec7d7709090235b0e9b74a45d4c76dd52f25', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.switchId }, hAsync("input", { key: '4f2c9472b3bf34db582a94e307cc8b47b5dfcd38', id: this.switchId, class: { 'input': true, 'input--invalid': this.invalid }, type: "checkbox", role: "switch", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.formDisabled, required: this.required, "aria-checked": this.checked ? 'true' : 'false', "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), hAsync("span", { key: '6b2c20c6242178bba39f105a535bb12fc5198cd0', class: "track" }, hAsync("span", { key: '4ae0e675ce335417b867f6b688ec5545769b2d2c', class: "thumb" })), this.label && hAsync("span", { key: 'd5383fac3349441104c0926a6c88078b85bda05c', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '41ed07a95f8d627fb4ed8c903b6ba5ee39baa6a5', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '71cf8526dec44e2099235e3bc744db2aa53d70f0', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
6576
6693
|
}
|
|
6577
6694
|
static get formAssociated() { return true; }
|
|
6578
6695
|
static get watchers() { return {
|
|
@@ -6695,7 +6812,7 @@ class ChTabs {
|
|
|
6695
6812
|
}
|
|
6696
6813
|
render() {
|
|
6697
6814
|
const active = this.activeValue;
|
|
6698
|
-
return (hAsync(Host, { key: '
|
|
6815
|
+
return (hAsync(Host, { key: '7c6b34c34e73f034eb03473ad9941eade91317c3' }, hAsync("div", { key: '601bae37f4fb3e5e0d07fb7a91968171b0bd18a3', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
|
|
6699
6816
|
const selected = tab.value === active;
|
|
6700
6817
|
return (hAsync("button", { key: tab.value, type: "button", class: { 'tab': true, 'tab--active': selected, 'tab--disabled': Boolean(tab.disabled) }, role: "tab", id: this.tabId(tab.value), "data-value": tab.value, "aria-selected": selected ? 'true' : 'false', "aria-controls": this.panelId(tab.value), tabIndex: selected ? FIRST_TAB_INDEX : LAST_TAB_INDEX, disabled: tab.disabled, onClick: () => this.select(tab.value) }, tab.label));
|
|
6701
6818
|
})), this.tabs.map(tab => (hAsync("div", { key: `${tab.value}-panel`, class: "tabpanel", id: this.panelId(tab.value), role: "tabpanel", "aria-labelledby": this.tabId(tab.value), tabIndex: FIRST_TAB_INDEX, hidden: tab.value !== active }, hAsync("slot", { name: `panel-${tab.value}` }))))));
|
|
@@ -6840,7 +6957,7 @@ class ChTextarea {
|
|
|
6840
6957
|
return undefined;
|
|
6841
6958
|
}
|
|
6842
6959
|
render() {
|
|
6843
|
-
return (hAsync(Host, { key: '
|
|
6960
|
+
return (hAsync(Host, { key: '6e738612514b114571c1edfad0fb85e2228653a8' }, this.label && (hAsync("label", { key: '3b58b49a02dd532430cfd9096c326288a5120d6d', class: "label", htmlFor: this.textareaId }, this.label)), hAsync("textarea", { key: '0922df038ea6ce6d1567ffe8d02c5b65534bec7a', id: this.label ? this.textareaId : undefined, class: { 'textarea': true, 'textarea--invalid': this.invalid }, rows: this.rows, name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.value, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange }), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '6d3518345b9afaad782741a854053ed2b32e31db', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '8a26edd5a1ef3647133813003fb1a53b1a5f99d6', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
6844
6961
|
}
|
|
6845
6962
|
static get formAssociated() { return true; }
|
|
6846
6963
|
static get watchers() { return {
|
|
@@ -6965,7 +7082,7 @@ class ChTooltip {
|
|
|
6965
7082
|
trigger.setAttribute('aria-describedby', content.id);
|
|
6966
7083
|
};
|
|
6967
7084
|
render() {
|
|
6968
|
-
return (hAsync(Host, { key: '
|
|
7085
|
+
return (hAsync(Host, { key: 'cebea73595fe515f952e60c72c42e92888e57133' }, hAsync("span", { key: 'c2eadb27d9d89b19d821ae1da93dcb7125d07bb0', class: "anchor" }, hAsync("slot", { key: '9eccdd49e741ffaed3d7d95c54697666e6e13cf0', name: "trigger", onSlotchange: this.associate }), hAsync("span", { key: '0842bbc4061da0be353e58bc897548e75c730e43', class: { 'bubble': true, [`bubble--${this.placement}`]: true, 'bubble--visible': this.visible } }, hAsync("slot", { key: '43812aac1e6e2853057e6d34f484906a17b16a5a', name: "content", onSlotchange: this.associate })))));
|
|
6969
7086
|
}
|
|
6970
7087
|
static get style() { return chTooltipCss(); }
|
|
6971
7088
|
static get cmpMeta() { return {
|
|
@@ -6991,6 +7108,7 @@ registerComponents([
|
|
|
6991
7108
|
ChCard,
|
|
6992
7109
|
ChCheckbox,
|
|
6993
7110
|
ChDivider,
|
|
7111
|
+
ChEmoji,
|
|
6994
7112
|
ChInput,
|
|
6995
7113
|
ChLink,
|
|
6996
7114
|
ChModal,
|
|
@@ -7102,7 +7220,7 @@ var NAMESPACE = (
|
|
|
7102
7220
|
);
|
|
7103
7221
|
|
|
7104
7222
|
/*
|
|
7105
|
-
Stencil Hydrate Runner v4.44.
|
|
7223
|
+
Stencil Hydrate Runner v4.44.2 | MIT Licensed | https://stenciljs.com
|
|
7106
7224
|
*/
|
|
7107
7225
|
var __create = Object.create;
|
|
7108
7226
|
var __defProp = Object.defineProperty;
|
package/loader/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface CustomElementsDefineOptions {
|
|
|
8
8
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
9
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated
|
|
14
14
|
*/
|