codexly-ui 0.10.75 → 0.10.77
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 +90 -82
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -14771,48 +14771,50 @@ class ClxWishlistComponent {
|
|
|
14771
14771
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxWishlistComponent, isStandalone: true, selector: "clx-wishlist", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, sortOptions: { classPropertyName: "sortOptions", publicName: "sortOptions", isSignal: true, isRequired: false, transformFunction: null }, currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, sortValue: { classPropertyName: "sortValue", publicName: "sortValue", isSignal: true, isRequired: false, transformFunction: null }, searchValue: { classPropertyName: "searchValue", publicName: "searchValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { currentPage: "currentPageChange", pageSize: "pageSizeChange", sortValue: "sortValueChange", searchValue: "searchValueChange", onRemove: "onRemove", onAddToCart: "onAddToCart", onSearchChange: "onSearchChange", onSortChange: "onSortChange", onPageChange: "onPageChange", onCheckoutAll: "onCheckoutAll", onBrowseCatalog: "onBrowseCatalog" }, ngImport: i0, template: `
|
|
14772
14772
|
<div class="flex flex-col gap-6">
|
|
14773
14773
|
|
|
14774
|
-
|
|
14775
|
-
|
|
14776
|
-
<div class="flex-
|
|
14777
|
-
<
|
|
14778
|
-
|
|
14779
|
-
|
|
14780
|
-
|
|
14781
|
-
|
|
14782
|
-
|
|
14783
|
-
|
|
14784
|
-
|
|
14785
|
-
|
|
14786
|
-
|
|
14787
|
-
|
|
14788
|
-
<
|
|
14789
|
-
|
|
14790
|
-
|
|
14791
|
-
|
|
14792
|
-
|
|
14793
|
-
|
|
14794
|
-
|
|
14795
|
-
|
|
14774
|
+
@if (loading() || items().length > 0) {
|
|
14775
|
+
<!-- ── Top Bar ──────────────────────────────────────────────────────── -->
|
|
14776
|
+
<div class="flex flex-col sm:flex-row sm:items-center gap-3">
|
|
14777
|
+
<div class="flex-1 min-w-0">
|
|
14778
|
+
<clx-input
|
|
14779
|
+
type="search"
|
|
14780
|
+
placeholder="Search Here"
|
|
14781
|
+
prefixIcon="search"
|
|
14782
|
+
size="md"
|
|
14783
|
+
[color]="color()"
|
|
14784
|
+
[(ngModel)]="_searchModel"
|
|
14785
|
+
(ngModelChange)="handleSearch($event)"
|
|
14786
|
+
/>
|
|
14787
|
+
</div>
|
|
14788
|
+
<div class="w-full sm:w-52 shrink-0">
|
|
14789
|
+
<clx-select
|
|
14790
|
+
placeholder="Sort By"
|
|
14791
|
+
[options]="sortOptions()"
|
|
14792
|
+
[activeColor]="color()"
|
|
14793
|
+
size="md"
|
|
14794
|
+
[(ngModel)]="_sortModel"
|
|
14795
|
+
(ngModelChange)="handleSort($event)"
|
|
14796
|
+
/>
|
|
14797
|
+
</div>
|
|
14796
14798
|
</div>
|
|
14797
|
-
</div>
|
|
14798
14799
|
|
|
14799
|
-
|
|
14800
|
-
|
|
14801
|
-
|
|
14802
|
-
|
|
14803
|
-
|
|
14800
|
+
<!-- ── Info Bar ─────────────────────────────────────────────────────── -->
|
|
14801
|
+
<div class="flex flex-col sm:flex-row sm:items-center justify-between gap-3">
|
|
14802
|
+
<div class="flex items-center gap-2">
|
|
14803
|
+
<h2 class="text-base font-semibold text-clx-text-label">Productos</h2>
|
|
14804
|
+
<span clx-badge variant="light" [color]="color()" size="sm">{{ _totalItems() }}</span>
|
|
14805
|
+
</div>
|
|
14806
|
+
<button
|
|
14807
|
+
clx-button
|
|
14808
|
+
type="button"
|
|
14809
|
+
variant="light"
|
|
14810
|
+
[color]="color()"
|
|
14811
|
+
icon="arrow_forward"
|
|
14812
|
+
iconPosition="right"
|
|
14813
|
+
[disabled]="_totalItems() === 0"
|
|
14814
|
+
(click)="handleCheckoutAll()"
|
|
14815
|
+
>Agregar todo al carrito</button>
|
|
14804
14816
|
</div>
|
|
14805
|
-
|
|
14806
|
-
clx-button
|
|
14807
|
-
type="button"
|
|
14808
|
-
variant="light"
|
|
14809
|
-
[color]="color()"
|
|
14810
|
-
icon="arrow_forward"
|
|
14811
|
-
iconPosition="right"
|
|
14812
|
-
[disabled]="_totalItems() === 0"
|
|
14813
|
-
(click)="handleCheckoutAll()"
|
|
14814
|
-
>Agregar todo al carrito</button>
|
|
14815
|
-
</div>
|
|
14817
|
+
}
|
|
14816
14818
|
|
|
14817
14819
|
<!-- ── List ─────────────────────────────────────────────────────────── -->
|
|
14818
14820
|
@if (loading()) {
|
|
@@ -14887,10 +14889,12 @@ class ClxWishlistComponent {
|
|
|
14887
14889
|
|
|
14888
14890
|
<!-- Price -->
|
|
14889
14891
|
<div class="flex items-baseline gap-2 mt-2">
|
|
14890
|
-
<span [class]="_priceClass">
|
|
14892
|
+
<span [class]="_priceClass">
|
|
14893
|
+
{{ (item.has_discount && item.discount_price ? item.discount_price : (item.sale_price ?? item.product_sale_price)) | currency:'COP':'$':'1.0-0' }}
|
|
14894
|
+
</span>
|
|
14891
14895
|
@if (item.has_discount && item.discount_price) {
|
|
14892
14896
|
<span class="text-sm text-clx-text-subtle line-through">
|
|
14893
|
-
{{ item.
|
|
14897
|
+
{{ (item.sale_price ?? item.product_sale_price) | currency:'COP':'$':'1.0-0' }}
|
|
14894
14898
|
</span>
|
|
14895
14899
|
}
|
|
14896
14900
|
</div>
|
|
@@ -14974,48 +14978,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
14974
14978
|
template: `
|
|
14975
14979
|
<div class="flex flex-col gap-6">
|
|
14976
14980
|
|
|
14977
|
-
|
|
14978
|
-
|
|
14979
|
-
<div class="flex-
|
|
14980
|
-
<
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
|
|
14988
|
-
|
|
14989
|
-
|
|
14990
|
-
|
|
14991
|
-
<
|
|
14992
|
-
|
|
14993
|
-
|
|
14994
|
-
|
|
14995
|
-
|
|
14996
|
-
|
|
14997
|
-
|
|
14998
|
-
|
|
14981
|
+
@if (loading() || items().length > 0) {
|
|
14982
|
+
<!-- ── Top Bar ──────────────────────────────────────────────────────── -->
|
|
14983
|
+
<div class="flex flex-col sm:flex-row sm:items-center gap-3">
|
|
14984
|
+
<div class="flex-1 min-w-0">
|
|
14985
|
+
<clx-input
|
|
14986
|
+
type="search"
|
|
14987
|
+
placeholder="Search Here"
|
|
14988
|
+
prefixIcon="search"
|
|
14989
|
+
size="md"
|
|
14990
|
+
[color]="color()"
|
|
14991
|
+
[(ngModel)]="_searchModel"
|
|
14992
|
+
(ngModelChange)="handleSearch($event)"
|
|
14993
|
+
/>
|
|
14994
|
+
</div>
|
|
14995
|
+
<div class="w-full sm:w-52 shrink-0">
|
|
14996
|
+
<clx-select
|
|
14997
|
+
placeholder="Sort By"
|
|
14998
|
+
[options]="sortOptions()"
|
|
14999
|
+
[activeColor]="color()"
|
|
15000
|
+
size="md"
|
|
15001
|
+
[(ngModel)]="_sortModel"
|
|
15002
|
+
(ngModelChange)="handleSort($event)"
|
|
15003
|
+
/>
|
|
15004
|
+
</div>
|
|
14999
15005
|
</div>
|
|
15000
|
-
</div>
|
|
15001
15006
|
|
|
15002
|
-
|
|
15003
|
-
|
|
15004
|
-
|
|
15005
|
-
|
|
15006
|
-
|
|
15007
|
+
<!-- ── Info Bar ─────────────────────────────────────────────────────── -->
|
|
15008
|
+
<div class="flex flex-col sm:flex-row sm:items-center justify-between gap-3">
|
|
15009
|
+
<div class="flex items-center gap-2">
|
|
15010
|
+
<h2 class="text-base font-semibold text-clx-text-label">Productos</h2>
|
|
15011
|
+
<span clx-badge variant="light" [color]="color()" size="sm">{{ _totalItems() }}</span>
|
|
15012
|
+
</div>
|
|
15013
|
+
<button
|
|
15014
|
+
clx-button
|
|
15015
|
+
type="button"
|
|
15016
|
+
variant="light"
|
|
15017
|
+
[color]="color()"
|
|
15018
|
+
icon="arrow_forward"
|
|
15019
|
+
iconPosition="right"
|
|
15020
|
+
[disabled]="_totalItems() === 0"
|
|
15021
|
+
(click)="handleCheckoutAll()"
|
|
15022
|
+
>Agregar todo al carrito</button>
|
|
15007
15023
|
</div>
|
|
15008
|
-
|
|
15009
|
-
clx-button
|
|
15010
|
-
type="button"
|
|
15011
|
-
variant="light"
|
|
15012
|
-
[color]="color()"
|
|
15013
|
-
icon="arrow_forward"
|
|
15014
|
-
iconPosition="right"
|
|
15015
|
-
[disabled]="_totalItems() === 0"
|
|
15016
|
-
(click)="handleCheckoutAll()"
|
|
15017
|
-
>Agregar todo al carrito</button>
|
|
15018
|
-
</div>
|
|
15024
|
+
}
|
|
15019
15025
|
|
|
15020
15026
|
<!-- ── List ─────────────────────────────────────────────────────────── -->
|
|
15021
15027
|
@if (loading()) {
|
|
@@ -15090,10 +15096,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
15090
15096
|
|
|
15091
15097
|
<!-- Price -->
|
|
15092
15098
|
<div class="flex items-baseline gap-2 mt-2">
|
|
15093
|
-
<span [class]="_priceClass">
|
|
15099
|
+
<span [class]="_priceClass">
|
|
15100
|
+
{{ (item.has_discount && item.discount_price ? item.discount_price : (item.sale_price ?? item.product_sale_price)) | currency:'COP':'$':'1.0-0' }}
|
|
15101
|
+
</span>
|
|
15094
15102
|
@if (item.has_discount && item.discount_price) {
|
|
15095
15103
|
<span class="text-sm text-clx-text-subtle line-through">
|
|
15096
|
-
{{ item.
|
|
15104
|
+
{{ (item.sale_price ?? item.product_sale_price) | currency:'COP':'$':'1.0-0' }}
|
|
15097
15105
|
</span>
|
|
15098
15106
|
}
|
|
15099
15107
|
</div>
|