codexly-ui 0.12.23 → 0.12.24
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/fesm2022/codexly-ui.mjs +14 -2
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +10 -2
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -8414,7 +8414,11 @@ class ClxModalComponent {
|
|
|
8414
8414
|
_confirmColor = computed(() => this.confirmButton()?.color ?? this._themeSvc.config().primaryColor, ...(ngDevMode ? [{ debugName: "_confirmColor" }] : /* istanbul ignore next */ []));
|
|
8415
8415
|
_confirmVariant = computed(() => this.confirmButton()?.variant ?? 'solid', ...(ngDevMode ? [{ debugName: "_confirmVariant" }] : /* istanbul ignore next */ []));
|
|
8416
8416
|
_cancelText = computed(() => this.cancelButton()?.text ?? 'Cancelar', ...(ngDevMode ? [{ debugName: "_cancelText" }] : /* istanbul ignore next */ []));
|
|
8417
|
-
|
|
8417
|
+
/** Undefined when the caller didn't pass an explicit cancelButton.color — lets the button's own
|
|
8418
|
+
* emphasis="secondary" resolve the theme's secondaryColor (with secondaryButtonTextColor
|
|
8419
|
+
* auto-applied on solid variants) instead of hardcoding 'slate', same convention as
|
|
8420
|
+
* clx-alert/clx-product-detail/clx-wishlist's secondary actions. */
|
|
8421
|
+
_cancelColor = computed(() => this.cancelButton()?.color, ...(ngDevMode ? [{ debugName: "_cancelColor" }] : /* istanbul ignore next */ []));
|
|
8418
8422
|
_cancelVariant = computed(() => this.cancelButton()?.variant ?? 'ghost', ...(ngDevMode ? [{ debugName: "_cancelVariant" }] : /* istanbul ignore next */ []));
|
|
8419
8423
|
_close() {
|
|
8420
8424
|
this._modalRef?.close();
|
|
@@ -8454,6 +8458,7 @@ class ClxModalComponent {
|
|
|
8454
8458
|
<button
|
|
8455
8459
|
clx-button
|
|
8456
8460
|
type="button"
|
|
8461
|
+
emphasis="secondary"
|
|
8457
8462
|
[color]="_cancelColor()"
|
|
8458
8463
|
[variant]="_cancelVariant()"
|
|
8459
8464
|
[icon]="cancelButton()?.icon"
|
|
@@ -8522,6 +8527,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
8522
8527
|
<button
|
|
8523
8528
|
clx-button
|
|
8524
8529
|
type="button"
|
|
8530
|
+
emphasis="secondary"
|
|
8525
8531
|
[color]="_cancelColor()"
|
|
8526
8532
|
[variant]="_cancelVariant()"
|
|
8527
8533
|
[icon]="cancelButton()?.icon"
|
|
@@ -11857,7 +11863,11 @@ class ClxAlertComponent {
|
|
|
11857
11863
|
return ALERT_CONFIRM_COLOR_MAP[this._type];
|
|
11858
11864
|
}, ...(ngDevMode ? [{ debugName: "_confirmColor" }] : /* istanbul ignore next */ []));
|
|
11859
11865
|
_cancelText = signal(this._opts.cancelButton?.text ?? 'Cancelar', ...(ngDevMode ? [{ debugName: "_cancelText" }] : /* istanbul ignore next */ []));
|
|
11860
|
-
|
|
11866
|
+
/** Undefined when the caller didn't pass an explicit cancelButton.color — lets the button's own
|
|
11867
|
+
* emphasis="secondary" resolve the theme's secondaryColor (with secondaryButtonTextColor
|
|
11868
|
+
* auto-applied on solid variants), same convention as clx-product-detail/clx-wishlist's
|
|
11869
|
+
* secondary CTAs, instead of hardcoding secondaryColor here and losing that auto-text-color. */
|
|
11870
|
+
_cancelColor = computed(() => this._opts.cancelButton?.color, ...(ngDevMode ? [{ debugName: "_cancelColor" }] : /* istanbul ignore next */ []));
|
|
11861
11871
|
_cancelVariant = signal(this._opts.cancelButton?.variant ?? 'ghost', ...(ngDevMode ? [{ debugName: "_cancelVariant" }] : /* istanbul ignore next */ []));
|
|
11862
11872
|
// ─── Timer state ─────────────────────────────────────────────────────────
|
|
11863
11873
|
_timerTotal = signal(this._opts.timer ?? 0, ...(ngDevMode ? [{ debugName: "_timerTotal" }] : /* istanbul ignore next */ []));
|
|
@@ -11959,6 +11969,7 @@ class ClxAlertComponent {
|
|
|
11959
11969
|
<button
|
|
11960
11970
|
clx-button
|
|
11961
11971
|
type="button"
|
|
11972
|
+
emphasis="secondary"
|
|
11962
11973
|
[color]="_cancelColor()"
|
|
11963
11974
|
[variant]="_cancelVariant()"
|
|
11964
11975
|
size="md"
|
|
@@ -12031,6 +12042,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
12031
12042
|
<button
|
|
12032
12043
|
clx-button
|
|
12033
12044
|
type="button"
|
|
12045
|
+
emphasis="secondary"
|
|
12034
12046
|
[color]="_cancelColor()"
|
|
12035
12047
|
[variant]="_cancelVariant()"
|
|
12036
12048
|
size="md"
|