@haiilo/catalyst 6.1.1 → 6.1.3
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/index.esm.js +1 -1
- package/dist/catalyst/index.esm.js.map +1 -1
- package/dist/catalyst/{p-48621e71.js → p-42e63e08.js} +1 -1
- package/dist/catalyst/p-42e63e08.js.map +1 -0
- package/dist/catalyst/p-570a1382.entry.js +10 -0
- package/dist/catalyst/p-570a1382.entry.js.map +1 -0
- package/dist/catalyst/{p-6904eb66.js → p-897412f2.js} +1 -1
- package/dist/catalyst/p-897412f2.js.map +1 -0
- package/dist/cjs/cat-alert_25.cjs.entry.js +8 -24
- package/dist/cjs/cat-alert_25.cjs.entry.js.map +1 -1
- package/dist/cjs/{cat-icon-registry-5647cf1f.js → cat-icon-registry-5c292d3f.js} +1 -1
- package/dist/cjs/cat-icon-registry-5c292d3f.js.map +1 -0
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/catalyst.cjs.js.map +1 -1
- package/dist/cjs/{index-e06682a8.js → index-8d1f4d8e.js} +1 -1
- package/dist/cjs/index-8d1f4d8e.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.css +3 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +0 -19
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +1 -1
- package/dist/collection/components/cat-select/cat-select.js +2 -2
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +1 -1
- package/dist/components/cat-checkbox2.js +1 -15
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-datepicker.js.map +1 -1
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-scrollable2.js +4 -6
- package/dist/components/cat-scrollable2.js.map +1 -1
- package/dist/components/cat-select-demo.js +2 -2
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/loglevel.js.map +1 -1
- package/dist/esm/cat-alert_25.entry.js +8 -24
- package/dist/esm/cat-alert_25.entry.js.map +1 -1
- package/dist/esm/{cat-icon-registry-fc49b06c.js → cat-icon-registry-4fc73466.js} +1 -1
- package/dist/esm/cat-icon-registry-4fc73466.js.map +1 -0
- package/dist/esm/catalyst.js +2 -2
- package/dist/esm/catalyst.js.map +1 -1
- package/dist/esm/{index-bac79c60.js → index-16bd9531.js} +1 -1
- package/dist/esm/index-16bd9531.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +0 -3
- package/package.json +8 -6
- package/dist/catalyst/p-2a094d64.entry.js +0 -10
- package/dist/catalyst/p-2a094d64.entry.js.map +0 -1
- package/dist/catalyst/p-48621e71.js.map +0 -1
- package/dist/catalyst/p-6904eb66.js.map +0 -1
- package/dist/cjs/cat-icon-registry-5647cf1f.js.map +0 -1
- package/dist/cjs/index-e06682a8.js.map +0 -1
- package/dist/esm/cat-icon-registry-fc49b06c.js.map +0 -1
- package/dist/esm/index-bac79c60.js.map +0 -1
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const catIconRegistry = require('./cat-icon-registry-
|
|
5
|
+
const index = require('./index-8d1f4d8e.js');
|
|
6
|
+
const catIconRegistry = require('./cat-icon-registry-5c292d3f.js');
|
|
7
7
|
|
|
8
8
|
function setAttributeDefault(host, attr, value) {
|
|
9
9
|
if (!host.hostElement.hasAttribute(attr) && value != null) {
|
|
@@ -477,7 +477,7 @@ const CatFormHint = props => {
|
|
|
477
477
|
]));
|
|
478
478
|
};
|
|
479
479
|
|
|
480
|
-
const catCheckboxCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column;color:rgb(var(--cat-hint-color, inherit))}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1.125rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}.hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;min-width:0}.input-hint,::slotted([slot=hint]){color:rgb(var(--cat-font-color-muted, 81, 92, 108));line-height:1.5;flex:1 1 auto;min-width:0}:host{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;position:relative}.label-left{flex-direction:row-reverse}.label-left input{right:1px;left:unset}input{position:absolute;width:1.25rem;height:1.25rem;margin:0;opacity:0;cursor:inherit;left:1px;top:0.5px}.box-placeholder{width:calc(1.25rem + 1px)}.box{flex:0 0 auto;display:flex;position:relative;height:1.25rem;width:1.25rem;background-color:white;border:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));border-radius:var(--cat-border-radius-s, 0.125rem);transition:background-color 0.13s ease, border-color 0.13s ease;pointer-events:none}.box svg{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all 0.13s ease;width:50%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:indeterminate+.box .dash{stroke-dashoffset:0}:focus-visible+.box{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.is-disabled .box{background-color:#f2f4f7;border-color:rgb(var(--cat-border-color-dark, 215, 219, 224));stroke:rgb(var(--cat-font-color-muted, 81, 92, 108))}:host(.cat-error) .box{border:1px solid rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) :checked+.box,:host(.cat-error) :indeterminate+.box{background-color:rgb(var(--cat-danger-bg, 217, 52, 13));border-color:rgb(var(--cat-danger-bg, 217, 52, 13));stroke:rgb(var(--cat-danger-fill, 255, 255, 255))}.label{flex:1 1 auto;min-width:0}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}";
|
|
480
|
+
const catCheckboxCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column;color:rgb(var(--cat-hint-color, inherit))}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1.125rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}.hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;min-width:0}.input-hint,::slotted([slot=hint]){color:rgb(var(--cat-font-color-muted, 81, 92, 108));line-height:1.5;flex:1 1 auto;min-width:0}:host{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;position:relative}.label-left{flex-direction:row-reverse}.label-left input{right:1px;left:unset}input{position:absolute;width:1.25rem;height:1.25rem;margin:0;opacity:0;cursor:inherit;left:1px;top:0.5px}.box-placeholder{width:calc(1.25rem + 1px)}.box{flex:0 0 auto;display:flex;position:relative;height:1.25rem;width:1.25rem;background-color:white;border:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));border-radius:var(--cat-border-radius-s, 0.125rem);transition:background-color 0.13s ease, border-color 0.13s ease;pointer-events:none}.box svg{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all 0.13s ease;width:50%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:indeterminate+.box .check{stroke-dashoffset:16px}:indeterminate+.box .dash{stroke-dashoffset:0}:focus-visible+.box{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.is-disabled .box{background-color:#f2f4f7;border-color:rgb(var(--cat-border-color-dark, 215, 219, 224));stroke:rgb(var(--cat-font-color-muted, 81, 92, 108))}:host(.cat-error) .box{border:1px solid rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) :checked+.box,:host(.cat-error) :indeterminate+.box{background-color:rgb(var(--cat-danger-bg, 217, 52, 13));border-color:rgb(var(--cat-danger-bg, 217, 52, 13));stroke:rgb(var(--cat-danger-fill, 255, 255, 255))}.label{flex:1 1 auto;min-width:0}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}";
|
|
481
481
|
|
|
482
482
|
let nextUniqueId$8 = 0;
|
|
483
483
|
const CatCheckbox = class {
|
|
@@ -506,19 +506,9 @@ const CatCheckbox = class {
|
|
|
506
506
|
get id() {
|
|
507
507
|
return this.identifier || this._id;
|
|
508
508
|
}
|
|
509
|
-
onCheckedChange(checked) {
|
|
510
|
-
this.indeterminate && (this.indeterminate = !checked);
|
|
511
|
-
}
|
|
512
|
-
onIndeterminateChange(indeterminate) {
|
|
513
|
-
this.checked && (this.checked = !indeterminate);
|
|
514
|
-
}
|
|
515
509
|
componentWillLoad() {
|
|
516
510
|
this.updateResolved();
|
|
517
511
|
}
|
|
518
|
-
componentDidLoad() {
|
|
519
|
-
this.onCheckedChange(this.checked);
|
|
520
|
-
this.onIndeterminateChange(this.indeterminate);
|
|
521
|
-
}
|
|
522
512
|
componentWillRender() {
|
|
523
513
|
this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
|
|
524
514
|
this.hasSlottedHint = !!this.hostElement.querySelector('[slot="hint"]');
|
|
@@ -562,10 +552,6 @@ const CatCheckbox = class {
|
|
|
562
552
|
this.resolvedValue = this.value == null ? this.checked : this.checked ? this.value : null;
|
|
563
553
|
}
|
|
564
554
|
get hostElement() { return index.getElement(this); }
|
|
565
|
-
static get watchers() { return {
|
|
566
|
-
"checked": ["onCheckedChange"],
|
|
567
|
-
"indeterminate": ["onIndeterminateChange"]
|
|
568
|
-
}; }
|
|
569
555
|
};
|
|
570
556
|
CatCheckbox.style = catCheckboxCss;
|
|
571
557
|
|
|
@@ -7022,7 +7008,7 @@ class SafeSubscriber extends Subscriber {
|
|
|
7022
7008
|
let partialObserver;
|
|
7023
7009
|
if (isFunction(observerOrNext) || !observerOrNext) {
|
|
7024
7010
|
partialObserver = {
|
|
7025
|
-
next:
|
|
7011
|
+
next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,
|
|
7026
7012
|
error: error !== null && error !== void 0 ? error : undefined,
|
|
7027
7013
|
complete: complete !== null && complete !== void 0 ? complete : undefined,
|
|
7028
7014
|
};
|
|
@@ -7416,7 +7402,6 @@ class AsyncAction extends Action {
|
|
|
7416
7402
|
this.pending = false;
|
|
7417
7403
|
}
|
|
7418
7404
|
schedule(state, delay = 0) {
|
|
7419
|
-
var _a;
|
|
7420
7405
|
if (this.closed) {
|
|
7421
7406
|
return this;
|
|
7422
7407
|
}
|
|
@@ -7428,7 +7413,7 @@ class AsyncAction extends Action {
|
|
|
7428
7413
|
}
|
|
7429
7414
|
this.pending = true;
|
|
7430
7415
|
this.delay = delay;
|
|
7431
|
-
this.id =
|
|
7416
|
+
this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
|
|
7432
7417
|
return this;
|
|
7433
7418
|
}
|
|
7434
7419
|
requestAsyncId(scheduler, _id, delay = 0) {
|
|
@@ -7438,9 +7423,7 @@ class AsyncAction extends Action {
|
|
|
7438
7423
|
if (delay != null && this.delay === delay && this.pending === false) {
|
|
7439
7424
|
return id;
|
|
7440
7425
|
}
|
|
7441
|
-
|
|
7442
|
-
intervalProvider.clearInterval(id);
|
|
7443
|
-
}
|
|
7426
|
+
intervalProvider.clearInterval(id);
|
|
7444
7427
|
return undefined;
|
|
7445
7428
|
}
|
|
7446
7429
|
execute(state, delay) {
|
|
@@ -7503,6 +7486,7 @@ class AsyncScheduler extends Scheduler {
|
|
|
7503
7486
|
super(SchedulerAction, now);
|
|
7504
7487
|
this.actions = [];
|
|
7505
7488
|
this._active = false;
|
|
7489
|
+
this._scheduled = undefined;
|
|
7506
7490
|
}
|
|
7507
7491
|
flush(action) {
|
|
7508
7492
|
const { actions } = this;
|
|
@@ -8259,7 +8243,7 @@ function delayWhen(delayDurationSelector, subscriptionDelay) {
|
|
|
8259
8243
|
if (subscriptionDelay) {
|
|
8260
8244
|
return (source) => concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
|
|
8261
8245
|
}
|
|
8262
|
-
return mergeMap((value, index) =>
|
|
8246
|
+
return mergeMap((value, index) => delayDurationSelector(value, index).pipe(take(1), mapTo(value)));
|
|
8263
8247
|
}
|
|
8264
8248
|
|
|
8265
8249
|
function delay(due, scheduler = asyncScheduler) {
|