@haiilo/catalyst 10.19.0 → 10.19.2
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/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/{p-b130db4e.entry.js → p-5d82e37e.entry.js} +2 -2
- package/dist/catalyst/{p-b130db4e.entry.js.map → p-5d82e37e.entry.js.map} +1 -1
- package/dist/cjs/cat-alert_29.cjs.entry.js +11 -5
- package/dist/cjs/cat-alert_29.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/cat-time/cat-time.js +10 -2
- package/dist/collection/components/cat-time/cat-time.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +2 -2
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
- package/dist/components/cat-time.js +11 -4
- package/dist/components/cat-time.js.map +1 -1
- package/dist/components/cat-tooltip.js +2 -2
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/esm/cat-alert_29.entry.js +11 -5
- package/dist/esm/cat-alert_29.entry.js.map +1 -1
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cat-time/cat-time.d.ts +1 -0
- package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +1 -1
- package/package.json +2 -2
|
@@ -13365,6 +13365,11 @@ const CatTime = class {
|
|
|
13365
13365
|
this.reclamp('max', max);
|
|
13366
13366
|
}
|
|
13367
13367
|
}
|
|
13368
|
+
onValueChanged(value, oldValue) {
|
|
13369
|
+
if (value !== oldValue) {
|
|
13370
|
+
this.syncValue(value);
|
|
13371
|
+
}
|
|
13372
|
+
}
|
|
13368
13373
|
componentWillLoad() {
|
|
13369
13374
|
this.syncValue(this.value ?? '');
|
|
13370
13375
|
}
|
|
@@ -13440,14 +13445,14 @@ const CatTime = class {
|
|
|
13440
13445
|
this.input?.clear();
|
|
13441
13446
|
}
|
|
13442
13447
|
render() {
|
|
13443
|
-
return (index.h(index.Host, { key: '
|
|
13448
|
+
return (index.h(index.Host, { key: 'e8e1ce6233982a53633893f6821665511ec2a09c' }, index.h("cat-input", { key: 'cdb8318f5cf1aadea614ea92f12fcbf4b9f9bbd0', class: "cat-time-input", ref: el => (this.input = el), requiredMarker: this.requiredMarker, horizontal: this.horizontal, autoComplete: this.autoComplete, clearable: this.clearable, disabled: this.disabled, hint: this.hint, icon: this.icon, iconRight: this.iconRight, identifier: this.identifier, label: this.label, labelHidden: this.labelHidden, name: this.name, placeholder: this.placeholder, textPrefix: this.textPrefix, textSuffix: this.textSuffix, readonly: this.readonly, required: this.required, value: this.format(this.selectionTime, false), errors: this.errors, errorUpdate: this.errorUpdate, nativeAttributes: this.nativeAttributes, onCatFocus: e => this.catFocus.emit(e.detail), onCatBlur: e => this.onInputBlur(e.detail) }, index.h("span", { key: 'c0a0ab5e6c869c7e152dbd0efe518410c390e450', slot: "label" }, this.hasSlottedLabel && index.h("slot", { key: '3136de4f0a814706c3e17d2ebc7994b9f300b0e3', name: "label" }), !this.hasSlottedLabel && this.label, index.h("span", { key: '605627b2b58ae30426a5eebb96392d27c119a1c5', class: "label-aria" }, " (HH:mm)")), index.h("div", { key: '4b68598ab85c1c5673369bcd30a3b1991694f696', slot: "addon", class: "cat-time-addon" }, this.locale.timeFormat === '12' && (index.h("cat-button", { key: '9da13a2d77af3c2b973f542e863f9ca2f4d56d3d', class: "cat-time-format", disabled: this.disabled || this.readonly, onCatClick: () => this.toggleAm() }, this.isAm ? 'AM' : 'PM')), index.h("cat-dropdown", { key: '806e88cdaeecf208bfc7a440600a51cc53b0b426', slot: "addon", placement: this.placement }, index.h("cat-button", { key: '866209cdca6617c440d5fb4fa91504cd09786c8a', slot: "trigger", class: "cat-time-toggle", disabled: this.disabled || this.readonly, icon: "$cat:timepicker-clock", iconOnly: true, a11yLabel: this.selectionTime ? `${this.locale.change}, ${this.format(this.selectionTime)}` : this.locale.choose }), index.h("nav", { key: '704f9854c55c3d8f84f37474fa05326d8390898d', slot: "content", class: "cat-nav" }, index.h("ul", { key: '5039ca6ce902e6796bda9c16e7f7101c8a0fd72f' }, this.timeArray().map(time => {
|
|
13444
13449
|
const isoTime = formatIso(time);
|
|
13445
13450
|
const disabled = isBefore(time, this.min ?? null) || isAfter(time, this.max ?? null);
|
|
13446
13451
|
return (index.h("li", null, index.h("cat-button", { class: {
|
|
13447
13452
|
'cat-nav-item': true,
|
|
13448
13453
|
'time-disabled': disabled
|
|
13449
13454
|
}, disabled: disabled, active: isoTime === this.value, color: isoTime === this.value ? 'primary' : 'secondary', variant: isoTime === this.value ? 'filled' : 'outlined', onCatClick: () => this.select(time), "data-time": isoTime }, this.format(time))));
|
|
13450
|
-
}))))), this.hasSlottedHint && (index.h("span", { key: '
|
|
13455
|
+
}))))), this.hasSlottedHint && (index.h("span", { key: '034daef728e22d9bf13514d5b5a6597355af5960', slot: "hint" }, index.h("slot", { key: '56bd873c145f9f582873355b0a72522a9476bef3', name: "hint" }))))));
|
|
13451
13456
|
}
|
|
13452
13457
|
timeArray() {
|
|
13453
13458
|
const result = [];
|
|
@@ -13505,7 +13510,8 @@ const CatTime = class {
|
|
|
13505
13510
|
get hostElement() { return index.getElement(this); }
|
|
13506
13511
|
static get watchers() { return {
|
|
13507
13512
|
"min": ["onMinChanged"],
|
|
13508
|
-
"max": ["onMaxChanged"]
|
|
13513
|
+
"max": ["onMaxChanged"],
|
|
13514
|
+
"value": ["onValueChanged"]
|
|
13509
13515
|
}; }
|
|
13510
13516
|
};
|
|
13511
13517
|
CatTime.style = CatTimeStyle0;
|
|
@@ -13659,12 +13665,12 @@ const CatTooltip = class {
|
|
|
13659
13665
|
}
|
|
13660
13666
|
}
|
|
13661
13667
|
render() {
|
|
13662
|
-
return (index.h(index.Host, { key: '
|
|
13668
|
+
return (index.h(index.Host, { key: '340e9ed5613717d88fc8dde858d16716d0d100e8' }, index.h("slot", { key: 'af044aaa5e320540463d1318ba8cf8ed1b02b7e4' }), index.h("div", { key: '117ed1ce275f03f879aa2f320d9c0b28bfc953bd', ref: el => (this.tooltip = el), id: this.id, role: "tooltip", "aria-hidden": !this.open, "aria-live": this.open ? 'polite' : 'off', class: {
|
|
13663
13669
|
tooltip: true,
|
|
13664
13670
|
'tooltip-hidden': this.inactive,
|
|
13665
13671
|
'tooltip-round': this.round,
|
|
13666
13672
|
[`tooltip-${this.size}`]: Boolean(this.size)
|
|
13667
|
-
} }, index.h("slot", { key: '
|
|
13673
|
+
} }, index.h("slot", { key: 'af0986e70f3d6ba0ad2f791cfa327ae9ebf768f5', name: "content" }, index.h("p", { key: 'bfcca7d936fa6e05719a88ace8bacf806b8f423b' }, this.content)))));
|
|
13668
13674
|
}
|
|
13669
13675
|
async update() {
|
|
13670
13676
|
if (this.trigger && this.tooltip) {
|