@rolatech/angular-product 19.0.0-beta.8 → 19.1.0-beta.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/fesm2022/rolatech-angular-product-product-index.component-d4RNM9qi.mjs +44 -0
- package/fesm2022/rolatech-angular-product-product-index.component-d4RNM9qi.mjs.map +1 -0
- package/fesm2022/rolatech-angular-product.mjs +138 -138
- package/fesm2022/rolatech-angular-product.mjs.map +1 -1
- package/index.d.ts +271 -6
- package/package.json +14 -2
- package/themes/_default.scss +1 -1
- package/fesm2022/rolatech-angular-product-product-index.component-DFCtGoP0.mjs +0 -45
- package/fesm2022/rolatech-angular-product-product-index.component-DFCtGoP0.mjs.map +0 -1
- package/lib/components/index.d.ts +0 -11
- package/lib/components/product-action/product-action.component.d.ts +0 -14
- package/lib/components/product-info/product-info.component.d.ts +0 -7
- package/lib/components/product-item/product-item.component.d.ts +0 -7
- package/lib/components/product-manage-option-add/product-manage-option-add.component.d.ts +0 -20
- package/lib/components/product-manage-option-item/product-manage-option-item.component.d.ts +0 -14
- package/lib/components/product-manage-variant/product-manage-variant.component.d.ts +0 -20
- package/lib/components/product-mange-section-item/product-mange-section-item.component.d.ts +0 -33
- package/lib/components/product-media/product-media.component.d.ts +0 -12
- package/lib/components/product-option/product-option.component.d.ts +0 -14
- package/lib/components/product-owner-renderer/product-owner-renderer.component.d.ts +0 -8
- package/lib/components/product-pricing/product-pricing.component.d.ts +0 -12
- package/lib/components/product-section/product-section.component.d.ts +0 -16
- package/lib/interfaces/category.d.ts +0 -16
- package/lib/interfaces/index.d.ts +0 -2
- package/lib/interfaces/product.d.ts +0 -104
- package/lib/pages/product/product-category/product-category.component.d.ts +0 -21
- package/lib/pages/product/product-details/product-details.component.d.ts +0 -38
- package/lib/pages/product/product-details/selected.pipe.d.ts +0 -8
- package/lib/pages/product/product-index/product-index.component.d.ts +0 -15
- package/lib/pages/product/product-layout/product-layout.component.d.ts +0 -17
- package/lib/pages/product/product.routes.d.ts +0 -2
- package/lib/pages/product-manage/product-manage-content/product-manage-content.component.d.ts +0 -5
- package/lib/pages/product-manage/product-manage-create/product-manage-create.component.d.ts +0 -11
- package/lib/pages/product-manage/product-manage-index/product-manage-index.component.d.ts +0 -38
- package/lib/pages/product-manage/product-manage-info/product-manage-info.component.d.ts +0 -29
- package/lib/pages/product-manage/product-manage-inventory/product-manage-inventory.component.d.ts +0 -48
- package/lib/pages/product-manage/product-manage-item/product-manage-item.component.d.ts +0 -12
- package/lib/pages/product-manage/product-manage-item-header/product-manage-item-header.component.d.ts +0 -5
- package/lib/pages/product-manage/product-manage-layout/product-manage-layout.component.d.ts +0 -25
- package/lib/pages/product-manage/product-manage-media/product-manage-media.component.d.ts +0 -29
- package/lib/pages/product-manage/product-manage-options/product-manage-options.component.d.ts +0 -17
- package/lib/pages/product-manage/product-manage-pricing/product-manage-pricing.component.d.ts +0 -5
- package/lib/pages/product-manage/product-manage-schedule/product-manage-schedule.component.d.ts +0 -5
- package/lib/pages/product-manage/product-manage-sections/product-manage-sections.component.d.ts +0 -29
- package/lib/pages/product-manage/product-manage-tags/product-manage-tags.component.d.ts +0 -18
- package/lib/pages/product-manage/product-manage-variants/product-manage-variants.component.d.ts +0 -28
- package/lib/pages/product-manage/product-manage.routes.d.ts +0 -2
- package/lib/services/index.d.ts +0 -1
- package/provider.d.ts +0 -2
package/index.d.ts
CHANGED
|
@@ -1,6 +1,271 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { EnvironmentProviders, OnInit, DoCheck } from '@angular/core';
|
|
4
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
5
|
+
import { Media } from '@rolatech/angular-common';
|
|
6
|
+
import { ViewportScroller } from '@angular/common';
|
|
7
|
+
import { MatChipInputEvent } from '@angular/material/chips';
|
|
8
|
+
|
|
9
|
+
declare const productRoutes: Routes;
|
|
10
|
+
|
|
11
|
+
declare const productManageRoutes: Routes;
|
|
12
|
+
|
|
13
|
+
declare function provideAngularProduct(): EnvironmentProviders;
|
|
14
|
+
|
|
15
|
+
declare class ProductInfoComponent {
|
|
16
|
+
name: _angular_core.InputSignal<string>;
|
|
17
|
+
description: _angular_core.InputSignal<string | undefined>;
|
|
18
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProductInfoComponent, never>;
|
|
19
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProductInfoComponent, "rolatech-product-info", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class ProductMediaComponent {
|
|
23
|
+
dialog: MatDialog;
|
|
24
|
+
media: _angular_core.InputSignal<Media[]>;
|
|
25
|
+
min: _angular_core.InputSignal<boolean>;
|
|
26
|
+
mediaIndex: number;
|
|
27
|
+
onImageClick(i: any): void;
|
|
28
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProductMediaComponent, never>;
|
|
29
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProductMediaComponent, "rolatech-product-media", never, { "media": { "alias": "media"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface ProductCategory {
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
media: ProductCategoryMedia[];
|
|
36
|
+
products: Product[];
|
|
37
|
+
createdAt: string;
|
|
38
|
+
originId: string;
|
|
39
|
+
children: ProductCategory;
|
|
40
|
+
parent: ProductCategory;
|
|
41
|
+
}
|
|
42
|
+
interface ProductCategoryMedia {
|
|
43
|
+
id: string;
|
|
44
|
+
url: string;
|
|
45
|
+
alt: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface Product {
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
description: string;
|
|
52
|
+
media: ProductMedia[];
|
|
53
|
+
status: ProductStatus | string;
|
|
54
|
+
type: ProductType | string;
|
|
55
|
+
scope: ProductScope | string;
|
|
56
|
+
categories: ProductCategory[];
|
|
57
|
+
tags: ProductTag[];
|
|
58
|
+
sections: ProductSection[];
|
|
59
|
+
options: ProductOption[];
|
|
60
|
+
variants?: ProductVariant[];
|
|
61
|
+
price: number;
|
|
62
|
+
deposit: number;
|
|
63
|
+
priceType: ProductPriceType;
|
|
64
|
+
userId: string;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
}
|
|
68
|
+
declare enum ProductPriceType {
|
|
69
|
+
FIXED = "\u56FA\u5B9A\u4EF7\u683C",
|
|
70
|
+
PARTIAL = "\u652F\u4ED8\u5B9A\u91D1",
|
|
71
|
+
VARIED = "\u591A\u53D8\u7684"
|
|
72
|
+
}
|
|
73
|
+
interface ProductSection {
|
|
74
|
+
id: string;
|
|
75
|
+
title: string;
|
|
76
|
+
description: string;
|
|
77
|
+
media: ProductMedia[];
|
|
78
|
+
isUploading?: boolean;
|
|
79
|
+
}
|
|
80
|
+
interface ProductVariant {
|
|
81
|
+
id: string;
|
|
82
|
+
title: string;
|
|
83
|
+
price: number;
|
|
84
|
+
sku: string;
|
|
85
|
+
options: ProductVariantOption[];
|
|
86
|
+
media: ProductVariantMedia[];
|
|
87
|
+
isUploading?: boolean;
|
|
88
|
+
status: ProductInventoryStatus | string;
|
|
89
|
+
inventoryItemId: string;
|
|
90
|
+
}
|
|
91
|
+
interface ProductVariantMedia {
|
|
92
|
+
url: string;
|
|
93
|
+
alt: string;
|
|
94
|
+
uploading?: boolean;
|
|
95
|
+
}
|
|
96
|
+
interface ProductVariantOption {
|
|
97
|
+
option: ProductOption;
|
|
98
|
+
value: ProductOptionValue;
|
|
99
|
+
}
|
|
100
|
+
declare enum ProductStatus {
|
|
101
|
+
DRAFT,
|
|
102
|
+
AWAITING,
|
|
103
|
+
PENDING,
|
|
104
|
+
ACCEPTED,
|
|
105
|
+
ACTIVE,
|
|
106
|
+
DELETED,
|
|
107
|
+
ARCHIVED
|
|
108
|
+
}
|
|
109
|
+
declare enum ProductType {
|
|
110
|
+
DIGITAL = "\u865A\u62DF\u5546\u54C1",
|
|
111
|
+
PHYSICAL = "\u5B9E\u4F53\u5546\u54C1",
|
|
112
|
+
SERVICE = "\u670D\u52A1",
|
|
113
|
+
OTHER = "\u5176\u4ED6"
|
|
114
|
+
}
|
|
115
|
+
declare enum ProductInventoryStatus {
|
|
116
|
+
IN_STOCK = "\u6709\u8D27",
|
|
117
|
+
LOW_STOCK = "\u5E93\u5B58\u4E0D\u8DB3",
|
|
118
|
+
OUT_OF_STOCK = "\u552E\u7F44",
|
|
119
|
+
DISCONTINUED = "\u5DF2\u505C\u4EA7"
|
|
120
|
+
}
|
|
121
|
+
declare enum ProductScope {
|
|
122
|
+
WEB,
|
|
123
|
+
GLOBAL
|
|
124
|
+
}
|
|
125
|
+
interface ProductMedia {
|
|
126
|
+
id: string;
|
|
127
|
+
url: string;
|
|
128
|
+
alt: string;
|
|
129
|
+
width: number;
|
|
130
|
+
height: number;
|
|
131
|
+
uuid: string;
|
|
132
|
+
selected: boolean;
|
|
133
|
+
}
|
|
134
|
+
interface ProductTag {
|
|
135
|
+
id: string;
|
|
136
|
+
name: string;
|
|
137
|
+
}
|
|
138
|
+
interface ProductTag {
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
}
|
|
142
|
+
interface ProductOption {
|
|
143
|
+
id: string;
|
|
144
|
+
name: string;
|
|
145
|
+
values: ProductOptionValue[];
|
|
146
|
+
}
|
|
147
|
+
interface ProductOptionValue {
|
|
148
|
+
id?: string;
|
|
149
|
+
name: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
declare class ProductSectionComponent implements OnInit {
|
|
153
|
+
section: _angular_core.InputSignal<ProductSection>;
|
|
154
|
+
user: _angular_core.InputSignal<string | undefined>;
|
|
155
|
+
username: _angular_core.InputSignal<string | undefined>;
|
|
156
|
+
viewportScroller: ViewportScroller;
|
|
157
|
+
row: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
158
|
+
reverse: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
159
|
+
ngOnInit(): void;
|
|
160
|
+
onClickScroller(id: string): void;
|
|
161
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProductSectionComponent, never>;
|
|
162
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProductSectionComponent, "rolatech-product-section", never, { "section": { "alias": "section"; "required": true; "isSignal": true; }; "user": { "alias": "user"; "required": false; "isSignal": true; }; "username": { "alias": "username"; "required": false; "isSignal": true; }; "row": { "alias": "row"; "required": false; "isSignal": true; }; "reverse": { "alias": "reverse"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare class ProductItemComponent {
|
|
166
|
+
product: _angular_core.InputSignal<Product>;
|
|
167
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProductItemComponent, never>;
|
|
168
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProductItemComponent, "rolatech-product-item", never, { "product": { "alias": "product"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare class ProductActionComponent {
|
|
172
|
+
product: _angular_core.InputSignal<Product>;
|
|
173
|
+
cart: _angular_core.OutputEmitterRef<Product>;
|
|
174
|
+
checkout: _angular_core.OutputEmitterRef<Product>;
|
|
175
|
+
deposit: _angular_core.OutputEmitterRef<Product>;
|
|
176
|
+
displayDeposit: _angular_core.Signal<string>;
|
|
177
|
+
onCart(product: Product): void;
|
|
178
|
+
onCheckout(product: Product): void;
|
|
179
|
+
onDeposit(product: Product): void;
|
|
180
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProductActionComponent, never>;
|
|
181
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProductActionComponent, "rolatech-product-action", never, { "product": { "alias": "product"; "required": true; "isSignal": true; }; }, { "cart": "cart"; "checkout": "checkout"; "deposit": "deposit"; }, never, never, true, never>;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare class ProductPricingComponent {
|
|
185
|
+
product: _angular_core.InputSignal<Product>;
|
|
186
|
+
price: _angular_core.InputSignal<number>;
|
|
187
|
+
displayPrice: _angular_core.Signal<string>;
|
|
188
|
+
wish: _angular_core.OutputEmitterRef<Product>;
|
|
189
|
+
inWishList: _angular_core.InputSignal<boolean>;
|
|
190
|
+
onWish(product: Product): void;
|
|
191
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProductPricingComponent, never>;
|
|
192
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProductPricingComponent, "rolatech-product-pricing", never, { "product": { "alias": "product"; "required": true; "isSignal": true; }; "price": { "alias": "price"; "required": true; "isSignal": true; }; "inWishList": { "alias": "inWishList"; "required": false; "isSignal": true; }; }, { "wish": "wish"; }, never, never, true, never>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
declare class ProductOptionComponent {
|
|
196
|
+
option: _angular_core.InputSignal<ProductOption>;
|
|
197
|
+
optionChange: _angular_core.OutputEmitterRef<{
|
|
198
|
+
option: ProductOption;
|
|
199
|
+
value: ProductOptionValue;
|
|
200
|
+
}>;
|
|
201
|
+
selected: _angular_core.ModelSignal<ProductOption | undefined>;
|
|
202
|
+
value: _angular_core.ModelSignal<ProductOptionValue | undefined>;
|
|
203
|
+
onOptionChange(value: ProductOptionValue): void;
|
|
204
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProductOptionComponent, never>;
|
|
205
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProductOptionComponent, "rolatech-product-option", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "optionChange": "optionChange"; "selected": "selectedChange"; "value": "valueChange"; }, never, never, true, never>;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
declare class ProductManageSectionItemComponent implements OnInit {
|
|
209
|
+
isUploading: _angular_core.InputSignal<boolean | undefined>;
|
|
210
|
+
section: _angular_core.InputSignal<ProductSection>;
|
|
211
|
+
actions: _angular_core.InputSignal<boolean>;
|
|
212
|
+
selectMedia: _angular_core.InputSignal<any>;
|
|
213
|
+
upload: _angular_core.OutputEmitterRef<{
|
|
214
|
+
section: ProductSection;
|
|
215
|
+
data: FormData | null;
|
|
216
|
+
}>;
|
|
217
|
+
delete: _angular_core.OutputEmitterRef<ProductSection>;
|
|
218
|
+
save: _angular_core.OutputEmitterRef<ProductSection>;
|
|
219
|
+
deleteMedia: _angular_core.OutputEmitterRef<{
|
|
220
|
+
section: ProductSection;
|
|
221
|
+
media: Media;
|
|
222
|
+
}>;
|
|
223
|
+
selectedImg: Media | any;
|
|
224
|
+
expanded: boolean;
|
|
225
|
+
constructor();
|
|
226
|
+
ngOnInit(): void;
|
|
227
|
+
onUpload(data: any): void;
|
|
228
|
+
onMediaItemClick(image: Media): void;
|
|
229
|
+
select(item: any): void;
|
|
230
|
+
deleteImage(): void;
|
|
231
|
+
onSave(section: ProductSection): void;
|
|
232
|
+
onDelete(section: ProductSection): void;
|
|
233
|
+
onDeleteMedia(media: Media): void;
|
|
234
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProductManageSectionItemComponent, never>;
|
|
235
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProductManageSectionItemComponent, "rolatech-product-manage-section-item", never, { "isUploading": { "alias": "isUploading"; "required": false; "isSignal": true; }; "section": { "alias": "section"; "required": true; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "selectMedia": { "alias": "selectMedia"; "required": false; "isSignal": true; }; }, { "upload": "upload"; "delete": "delete"; "save": "save"; "deleteMedia": "deleteMedia"; }, never, never, true, never>;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
declare class ProductManageOptionAddComponent implements DoCheck {
|
|
239
|
+
option: ProductOption;
|
|
240
|
+
addOnBlur: boolean;
|
|
241
|
+
readonly separatorKeysCodes: readonly [13, 188];
|
|
242
|
+
cancel: _angular_core.OutputEmitterRef<void>;
|
|
243
|
+
save: _angular_core.OutputEmitterRef<ProductOption>;
|
|
244
|
+
action: boolean;
|
|
245
|
+
output: _angular_core.OutputEmitterRef<any>;
|
|
246
|
+
onCancel(): void;
|
|
247
|
+
onSave(): void;
|
|
248
|
+
addOptionValues(event: MatChipInputEvent): void;
|
|
249
|
+
removeValue(value: any): void;
|
|
250
|
+
ngDoCheck(): void;
|
|
251
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProductManageOptionAddComponent, never>;
|
|
252
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProductManageOptionAddComponent, "rolatech-product-manage-option-add", never, {}, { "cancel": "cancel"; "save": "save"; "output": "output"; }, never, never, true, never>;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
declare class ProductManageOptionItemComponent {
|
|
256
|
+
option: _angular_core.InputSignal<ProductOption>;
|
|
257
|
+
addOnBlur: boolean;
|
|
258
|
+
delete: _angular_core.OutputEmitterRef<ProductOption>;
|
|
259
|
+
save: _angular_core.OutputEmitterRef<ProductOption>;
|
|
260
|
+
edit: _angular_core.OutputEmitterRef<ProductOption>;
|
|
261
|
+
onDelete(): void;
|
|
262
|
+
onSave(): void;
|
|
263
|
+
onEdit(): void;
|
|
264
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProductManageOptionItemComponent, never>;
|
|
265
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProductManageOptionItemComponent, "rolatech-product-manage-option-item", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; }, { "delete": "delete"; "save": "save"; "edit": "edit"; }, never, never, true, never>;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare const services: any[];
|
|
269
|
+
|
|
270
|
+
export { ProductActionComponent, ProductInfoComponent, ProductInventoryStatus, ProductItemComponent, ProductManageOptionAddComponent, ProductManageOptionItemComponent, ProductManageSectionItemComponent, ProductMediaComponent, ProductOptionComponent, ProductPriceType, ProductPricingComponent, ProductScope, ProductSectionComponent, ProductStatus, ProductType, productManageRoutes, productRoutes, provideAngularProduct, services };
|
|
271
|
+
export type { Product, ProductCategory, ProductCategoryMedia, ProductMedia, ProductOption, ProductOptionValue, ProductSection, ProductTag, ProductVariant, ProductVariantMedia, ProductVariantOption };
|
package/package.json
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolatech/angular-product",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.1.0-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^19.0.0",
|
|
7
|
-
"@angular/core": "^19.0.0"
|
|
7
|
+
"@angular/core": "^19.0.0",
|
|
8
|
+
"@angular/router": "^19.0.0",
|
|
9
|
+
"@angular/cdk": "^19.0.0",
|
|
10
|
+
"@angular/material": "^19.0.0",
|
|
11
|
+
"@angular/animations": "^19.0.0",
|
|
12
|
+
"@angular/forms": "^19.0.0",
|
|
13
|
+
"@nx/angular": "^19.0.0 || ^20.0.0",
|
|
14
|
+
"lodash": "^4.17.21"
|
|
8
15
|
},
|
|
9
16
|
"dependencies": {
|
|
17
|
+
"@rolatech/angular-common": "19.1.0-beta.3",
|
|
18
|
+
"@rolatech/angular-components": "19.1.0-beta.3",
|
|
19
|
+
"@rolatech/angular-services": "19.1.0-beta.3",
|
|
20
|
+
"@rolatech/angular-auth": "19.1.0-beta.3",
|
|
21
|
+
"@rolatech/angular-comment": "19.1.0-beta.3",
|
|
10
22
|
"tslib": "^2.3.0"
|
|
11
23
|
},
|
|
12
24
|
"sideEffects": false,
|
package/themes/_default.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:600px){.container{max-width:600px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-20{z-index:20}.z-30{z-index:30}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.-m-1{margin:-.25rem}.m-3{margin:.75rem}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.-ml-2{margin-left:-.5rem}.-mt-4{margin-top:-1rem}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-14{margin-left:3.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-\[40px\]{margin-left:40px}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\[6px\]{margin-top:6px}.box-border{box-sizing:border-box}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-4{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}.line-clamp-4{-webkit-line-clamp:4}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.aspect-video{aspect-ratio:16/9}.h-0{height:0}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[190px\]{height:190px}.h-\[1px\]{height:1px}.h-\[256px\]{height:256px}.h-\[72px\]{height:72px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-32{max-height:8rem}.max-h-8{max-height:2rem}.max-h-9{max-height:2.25rem}.min-h-10{min-height:2.5rem}.min-h-11{min-height:2.75rem}.min-h-\[28px\]{min-height:28px}.min-h-\[320px\]{min-height:320px}.w-1{width:.25rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2\/5{width:40%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/5{width:60%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-7{width:1.75rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[160px\]{width:160px}.w-\[190px\]{width:190px}.w-\[256px\]{width:256px}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-24{min-width:6rem}.min-w-28{min-width:7rem}.min-w-9{min-width:2.25rem}.min-w-\[100px\]{min-width:100px}.min-w-\[240px\]{min-width:240px}.min-w-\[256px\]{min-width:256px}.min-w-\[28px\]{min-width:28px}.min-w-\[320px\]{min-width:320px}.max-w-24{max-width:6rem}.max-w-8{max-width:2rem}.max-w-\[1120px\]{max-width:1120px}.max-w-\[1280px\]{max-width:1280px}.max-w-\[500px\]{max-width:500px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.grow{flex-grow:1}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-90,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-\[--rt-10-percent-layer\]>:not([hidden])~:not([hidden]){border-color:var(--rt-10-percent-layer)}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-pre{white-space:pre}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-dashed{border-style:dashed}.border-\[--rt-border-color\]{border-color:var(--rt-border-color)}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity,1))}.bg-\[--rt-10-percent-layer\]{background-color:var(--rt-10-percent-layer)}.bg-\[--rt-20-percent-layer\]{background-color:var(--rt-20-percent-layer)}.bg-\[--rt-badge-chip-background\]{background-color:var(--rt-badge-chip-background)}.bg-\[--rt-base-background\]{background-color:var(--rt-base-background)}.bg-\[--rt-brand-color\]{background-color:var(--rt-brand-color)}.bg-\[--rt-raised-background\]{background-color:var(--rt-raised-background)}.bg-fixed{background-attachment:fixed}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-1{padding:.25rem!important}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-11{padding-bottom:2.75rem;padding-top:2.75rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-3{line-height:.75rem}.leading-none{line-height:1}.text-\[--rt-brand-color\]{color:var(--rt-brand-color)}.text-\[--rt-text-primary-inverse\]{color:var(--rt-text-primary-inverse)}.text-\[--rt-text-primary\]{color:var(--rt-text-primary)}.text-\[--rt-text-secondary\]{color:var(--rt-text-secondary)}.text-transparent{color:transparent}.underline{text-decoration-line:underline}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-4{outline-width:4px}.outline-transparent{outline-color:transparent}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-\[--rt-10-percent-layer\]:hover{background-color:var(--rt-10-percent-layer)}.hover\:bg-\[--rt-base-background\]:hover{background-color:var(--rt-base-background)}.hover\:bg-\[--rt-brand-color\]:hover{background-color:var(--rt-brand-color)}.hover\:bg-\[--rt-raised-background\]:hover{background-color:var(--rt-raised-background)}.hover\:text-\[--rt-text-primary-inverse\]:hover{color:var(--rt-text-primary-inverse)}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:outline-\[--rt-raised-background\]:hover{outline-color:var(--rt-raised-background)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\:visible{visibility:visible}@media (min-width:600px){.sm\:w-1\/3{width:33.333333%}}@media (min-width:768px){.md\:visible{visibility:visible}.md\:mb-1{margin-bottom:.25rem}.md\:ml-16{margin-left:4rem}.md\:ml-2{margin-left:.5rem}.md\:mr-0{margin-right:0}.md\:mr-16{margin-right:4rem}.md\:mt-6{margin-top:1.5rem}.md\:line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.md\:block{display:block}.md\:flex{display:flex}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/2{width:50%}.md\:w-1\/4{width:25%}.md\:w-3\/4{width:75%}.md\:w-full{width:100%}.md\:flex-row{flex-direction:row}.md\:flex-row-reverse{flex-direction:row-reverse}.md\:flex-col{flex-direction:column}.md\:items-start{align-items:flex-start}.md\:gap-10{gap:2.5rem}.md\:bg-\[--rt-base-background\]{background-color:var(--rt-base-background)}.md\:p-3{padding:.75rem}.md\:px-0{padding-left:0;padding-right:0}.md\:px-1{padding-left:.25rem;padding-right:.25rem}.md\:px-16{padding-left:4rem;padding-right:4rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:w-1\/6{width:16.666667%}.lg\:basis-1\/2{flex-basis:50%}.lg\:flex-row{flex-direction:row}.lg\:px-3{padding-left:.75rem;padding-right:.75rem}}@media (min-width:1280px){.xl\:max-w-\[1024px\]{max-width:1024px}}@media (min-width:1536px){.\32xl\:max-w-\[1280px\]{max-width:1280px}}
|
|
1
|
+
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.left-0{left:0}.left-\[30px\]{left:30px}.right-0{right:0}.top-0{top:0}.top-\[30px\]{top:30px}.z-20{z-index:20}.z-30{z-index:30}.z-\[9999\]{z-index:9999}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.-m-1{margin:-.25rem}.m-3{margin:.75rem}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.-ml-2{margin-left:-.5rem}.-mt-4{margin-top:-1rem}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-14{margin-left:3.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-\[40px\]{margin-left:40px}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\[6px\]{margin-top:6px}.box-border{box-sizing:border-box}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-4{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}.line-clamp-4{-webkit-line-clamp:4}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.aspect-video{aspect-ratio:16/9}.h-0{height:0}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[190px\]{height:190px}.h-\[1px\]{height:1px}.h-\[256px\]{height:256px}.h-\[72px\]{height:72px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-32{max-height:8rem}.max-h-8{max-height:2rem}.max-h-9{max-height:2.25rem}.max-h-\[320px\]{max-height:320px}.min-h-10{min-height:2.5rem}.min-h-11{min-height:2.75rem}.min-h-\[28px\]{min-height:28px}.min-h-\[320px\]{min-height:320px}.w-1{width:.25rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2\/5{width:40%}.w-2\/6{width:33.333333%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/5{width:60%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-4\/6{width:66.666667%}.w-7{width:1.75rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[160px\]{width:160px}.w-\[190px\]{width:190px}.w-\[256px\]{width:256px}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-24{min-width:6rem}.min-w-28{min-width:7rem}.min-w-9{min-width:2.25rem}.min-w-\[150px\]{min-width:150px}.min-w-\[240px\]{min-width:240px}.min-w-\[256px\]{min-width:256px}.min-w-\[28px\]{min-width:28px}.min-w-\[320px\]{min-width:320px}.max-w-24{max-width:6rem}.max-w-8{max-width:2rem}.max-w-\[1120px\]{max-width:1120px}.max-w-\[1280px\]{max-width:1280px}.max-w-\[500px\]{max-width:500px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.grow{flex-grow:1}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-90,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-\[--rt-10-percent-layer\]>:not([hidden])~:not([hidden]){border-color:var(--rt-10-percent-layer)}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-pre{white-space:pre}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-dashed{border-style:dashed}.border-\[--rt-border-color\]{border-color:var(--rt-border-color)}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity,1))}.bg-\[--rt-10-percent-layer\]{background-color:var(--rt-10-percent-layer)}.bg-\[--rt-20-percent-layer\]{background-color:var(--rt-20-percent-layer)}.bg-\[--rt-badge-chip-background\]{background-color:var(--rt-badge-chip-background)}.bg-\[--rt-base-background\]{background-color:var(--rt-base-background)}.bg-\[--rt-brand-color\]{background-color:var(--rt-brand-color)}.bg-\[--rt-raised-background\]{background-color:var(--rt-raised-background)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-fixed{background-attachment:fixed}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-1{padding:.25rem!important}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-11{padding-bottom:2.75rem;padding-top:2.75rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.pb-3{padding-bottom:.75rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-3{padding-top:.75rem}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-thin{font-weight:100}.italic{font-style:italic}.leading-3{line-height:.75rem}.leading-none{line-height:1}.text-\[--rt-brand-color\]{color:var(--rt-brand-color)}.text-\[--rt-text-primary-inverse\]{color:var(--rt-text-primary-inverse)}.text-\[--rt-text-primary\]{color:var(--rt-text-primary)}.text-\[--rt-text-secondary\]{color:var(--rt-text-secondary)}.text-transparent{color:transparent}.underline{text-decoration-line:underline}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-4{outline-width:4px}.outline-transparent{outline-color:transparent}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-\[--rt-10-percent-layer\]:hover{background-color:var(--rt-10-percent-layer)}.hover\:bg-\[--rt-base-background\]:hover{background-color:var(--rt-base-background)}.hover\:bg-\[--rt-brand-color\]:hover{background-color:var(--rt-brand-color)}.hover\:bg-\[--rt-raised-background\]:hover{background-color:var(--rt-raised-background)}.hover\:text-\[--rt-text-primary-inverse\]:hover{color:var(--rt-text-primary-inverse)}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:outline-\[--rt-raised-background\]:hover{outline-color:var(--rt-raised-background)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}@media (min-width:640px){.sm\:w-1\/3{width:33.333333%}}@media (min-width:768px){.md\:visible{visibility:visible}.md\:mb-1{margin-bottom:.25rem}.md\:ml-16{margin-left:4rem}.md\:ml-2{margin-left:.5rem}.md\:mr-0{margin-right:0}.md\:mr-16{margin-right:4rem}.md\:mt-6{margin-top:1.5rem}.md\:line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.md\:block{display:block}.md\:flex{display:flex}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/2{width:50%}.md\:w-1\/4{width:25%}.md\:w-3\/4{width:75%}.md\:w-full{width:100%}.md\:flex-row{flex-direction:row}.md\:flex-row-reverse{flex-direction:row-reverse}.md\:flex-col{flex-direction:column}.md\:items-start{align-items:flex-start}.md\:gap-10{gap:2.5rem}.md\:bg-\[--rt-base-background\]{background-color:var(--rt-base-background)}.md\:p-3{padding:.75rem}.md\:px-0{padding-left:0;padding-right:0}.md\:px-1{padding-left:.25rem;padding-right:.25rem}.md\:px-16{padding-left:4rem;padding-right:4rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:w-1\/6{width:16.666667%}.lg\:basis-1\/2{flex-basis:50%}.lg\:flex-row{flex-direction:row}.lg\:px-3{padding-left:.75rem;padding-right:.75rem}}@media (min-width:1280px){.xl\:max-w-\[1024px\]{max-width:1024px}}@media (min-width:1536px){.\32xl\:max-w-\[1280px\]{max-width:1280px}}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, signal, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
-
import { ProductService } from '@rolatech/angular-services';
|
|
4
|
-
import { RichItemComponent, AngularComponentsModule, RichViewComponent } from '@rolatech/angular-components';
|
|
5
|
-
import { AngularCommonModule } from '@rolatech/angular-common';
|
|
6
|
-
import * as i1 from '@angular/router';
|
|
7
|
-
|
|
8
|
-
class ProductIndexComponent {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.productService = inject(ProductService);
|
|
11
|
-
// products: Product[] = [];
|
|
12
|
-
this.products = signal([]);
|
|
13
|
-
this.loading = false;
|
|
14
|
-
}
|
|
15
|
-
ngOnInit() {
|
|
16
|
-
this.findProducts();
|
|
17
|
-
}
|
|
18
|
-
findProducts() {
|
|
19
|
-
this.loading = true;
|
|
20
|
-
const options = {
|
|
21
|
-
sort: 'updatedAt desc',
|
|
22
|
-
// filter: 'published:true',
|
|
23
|
-
};
|
|
24
|
-
this.productService.find(options, false).subscribe({
|
|
25
|
-
next: (res) => {
|
|
26
|
-
// this.products = res.data;
|
|
27
|
-
this.products.set(res.data);
|
|
28
|
-
this.meta = res.meta;
|
|
29
|
-
this.loading = false;
|
|
30
|
-
},
|
|
31
|
-
error: (error) => {
|
|
32
|
-
this.loading = false;
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ProductIndexComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.2", type: ProductIndexComponent, isStandalone: true, selector: "rolatech-product-index", ngImport: i0, template: "<div class=\"min-w-[320px] max-w-[1120px] m-auto\">\n <div class=\"p-3 hidden md:block text-2xl font-medium\">\u5168\u90E8\u5546\u54C1</div>\n @if (loading) {\n @for (number of [0, 1, 2, 3, 4, 5]; track number) {\n <div class=\"flex flex-row animate-pulse mt-3 mr-4 cursor-pointer w-full\">\n <div class=\"h-fit w-2/5 md:w-1/4 aspect-video hover:bg-[--rt-base-background] rounded-lg\"></div>\n <div class=\"w-3/5 md:w-3/4 ml-3 py-1 flex flex-col justify-between\">\n <div class=\"space-y-3\">\n <div class=\"h-4 bg-[--rt-base-background] rounded col-span-2\"></div>\n <div class=\"h-2 bg-[--rt-base-background] rounded col-span-1\"></div>\n <div class=\"h-2 bg-[--rt-base-background] rounded col-span-1 py-1\"></div>\n </div>\n <div>\n <div class=\"h-2 bg-[--rt-base-background] rounded col-span-2 py-1\"></div>\n </div>\n </div>\n </div>\n }\n } @else {\n <rolatech-rich-view wrap>\n @for (item of products(); track item) {\n @defer {\n <rolatech-rich-item\n [routerLink]=\"['./', item.id]\"\n [thumbnail]=\"item.media[0].url + '!w400'\"\n [title]=\"item.name\"\n [subtitle]=\"item.description\"\n [price]=\"item.price / 100\"\n thumbnailRatio=\"square\"\n ></rolatech-rich-item>\n }\n }\n </rolatech-rich-view>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: RichViewComponent, selector: "rolatech-rich-view", inputs: ["list", "wrap"] }], encapsulation: i0.ViewEncapsulation.None, deferBlockDependencies: [() => [i1.RouterLink, RichItemComponent]] }); }
|
|
38
|
-
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ProductIndexComponent, decorators: [{
|
|
40
|
-
type: Component,
|
|
41
|
-
args: [{ selector: 'rolatech-product-index', imports: [AngularCommonModule, AngularComponentsModule, RichViewComponent, RichItemComponent], encapsulation: ViewEncapsulation.None, template: "<div class=\"min-w-[320px] max-w-[1120px] m-auto\">\n <div class=\"p-3 hidden md:block text-2xl font-medium\">\u5168\u90E8\u5546\u54C1</div>\n @if (loading) {\n @for (number of [0, 1, 2, 3, 4, 5]; track number) {\n <div class=\"flex flex-row animate-pulse mt-3 mr-4 cursor-pointer w-full\">\n <div class=\"h-fit w-2/5 md:w-1/4 aspect-video hover:bg-[--rt-base-background] rounded-lg\"></div>\n <div class=\"w-3/5 md:w-3/4 ml-3 py-1 flex flex-col justify-between\">\n <div class=\"space-y-3\">\n <div class=\"h-4 bg-[--rt-base-background] rounded col-span-2\"></div>\n <div class=\"h-2 bg-[--rt-base-background] rounded col-span-1\"></div>\n <div class=\"h-2 bg-[--rt-base-background] rounded col-span-1 py-1\"></div>\n </div>\n <div>\n <div class=\"h-2 bg-[--rt-base-background] rounded col-span-2 py-1\"></div>\n </div>\n </div>\n </div>\n }\n } @else {\n <rolatech-rich-view wrap>\n @for (item of products(); track item) {\n @defer {\n <rolatech-rich-item\n [routerLink]=\"['./', item.id]\"\n [thumbnail]=\"item.media[0].url + '!w400'\"\n [title]=\"item.name\"\n [subtitle]=\"item.description\"\n [price]=\"item.price / 100\"\n thumbnailRatio=\"square\"\n ></rolatech-rich-item>\n }\n }\n </rolatech-rich-view>\n }\n</div>\n" }]
|
|
42
|
-
}], ctorParameters: () => [] });
|
|
43
|
-
|
|
44
|
-
export { ProductIndexComponent };
|
|
45
|
-
//# sourceMappingURL=rolatech-angular-product-product-index.component-DFCtGoP0.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-product-product-index.component-DFCtGoP0.mjs","sources":["../../../../packages/angular-product/src/lib/pages/product/product-index/product-index.component.ts","../../../../packages/angular-product/src/lib/pages/product/product-index/product-index.component.html"],"sourcesContent":["import { Component, inject, OnInit, signal, ViewEncapsulation } from '@angular/core';\nimport { ProductService } from '@rolatech/angular-services';\nimport { Product } from '../../../interfaces/product';\nimport { RichViewComponent, RichItemComponent, AngularComponentsModule } from '@rolatech/angular-components';\nimport { AngularCommonModule } from '@rolatech/angular-common';\n@Component({\n selector: 'rolatech-product-index',\n imports: [AngularCommonModule, AngularComponentsModule, RichViewComponent, RichItemComponent],\n templateUrl: './product-index.component.html',\n styleUrl: './product-index.component.scss',\n encapsulation: ViewEncapsulation.None,\n})\nexport class ProductIndexComponent implements OnInit {\n productService = inject(ProductService);\n // products: Product[] = [];\n products = signal<Product[]>([]);\n\n meta: any;\n loading = false;\n constructor() {}\n\n ngOnInit(): void {\n this.findProducts();\n }\n findProducts() {\n this.loading = true;\n const options = {\n sort: 'updatedAt desc',\n // filter: 'published:true',\n };\n this.productService.find(options, false).subscribe({\n next: (res: any) => {\n // this.products = res.data;\n this.products.set(res.data);\n this.meta = res.meta;\n this.loading = false;\n },\n error: (error) => {\n this.loading = false;\n },\n });\n }\n}\n","<div class=\"min-w-[320px] max-w-[1120px] m-auto\">\n <div class=\"p-3 hidden md:block text-2xl font-medium\">全部商品</div>\n @if (loading) {\n @for (number of [0, 1, 2, 3, 4, 5]; track number) {\n <div class=\"flex flex-row animate-pulse mt-3 mr-4 cursor-pointer w-full\">\n <div class=\"h-fit w-2/5 md:w-1/4 aspect-video hover:bg-[--rt-base-background] rounded-lg\"></div>\n <div class=\"w-3/5 md:w-3/4 ml-3 py-1 flex flex-col justify-between\">\n <div class=\"space-y-3\">\n <div class=\"h-4 bg-[--rt-base-background] rounded col-span-2\"></div>\n <div class=\"h-2 bg-[--rt-base-background] rounded col-span-1\"></div>\n <div class=\"h-2 bg-[--rt-base-background] rounded col-span-1 py-1\"></div>\n </div>\n <div>\n <div class=\"h-2 bg-[--rt-base-background] rounded col-span-2 py-1\"></div>\n </div>\n </div>\n </div>\n }\n } @else {\n <rolatech-rich-view wrap>\n @for (item of products(); track item) {\n @defer {\n <rolatech-rich-item\n [routerLink]=\"['./', item.id]\"\n [thumbnail]=\"item.media[0].url + '!w400'\"\n [title]=\"item.name\"\n [subtitle]=\"item.description\"\n [price]=\"item.price / 100\"\n thumbnailRatio=\"square\"\n ></rolatech-rich-item>\n }\n }\n </rolatech-rich-view>\n }\n</div>\n"],"names":[],"mappings":";;;;;;;MAYa,qBAAqB,CAAA;AAOhC,IAAA,WAAA,GAAA;AANA,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;;AAEvC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAY,EAAE,CAAC;QAGhC,IAAO,CAAA,OAAA,GAAG,KAAK;;IAGf,QAAQ,GAAA;QACN,IAAI,CAAC,YAAY,EAAE;;IAErB,YAAY,GAAA;AACV,QAAA,IAAI,CAAC,OAAO,GAAG,IAAI;AACnB,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,IAAI,EAAE,gBAAgB;;SAEvB;QACD,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,SAAS,CAAC;AACjD,YAAA,IAAI,EAAE,CAAC,GAAQ,KAAI;;gBAEjB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC;AAC3B,gBAAA,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI;AACpB,gBAAA,IAAI,CAAC,OAAO,GAAG,KAAK;aACrB;AACD,YAAA,KAAK,EAAE,CAAC,KAAK,KAAI;AACf,gBAAA,IAAI,CAAC,OAAO,GAAG,KAAK;aACrB;AACF,SAAA,CAAC;;8GA5BO,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECZlC,u7CAmCA,ED5BY,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,mBAAmB,8BAAE,uBAAuB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,iBAAiB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,sBAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,UAAA,EAAE,iBAAiB,CAAA,CAAA,EAAA,CAAA,CAAA;;2FAKjF,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,wBAAwB,EACzB,OAAA,EAAA,CAAC,mBAAmB,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,iBAAiB,CAAC,EAG9E,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,u7CAAA,EAAA;;;;;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './product-info/product-info.component';
|
|
2
|
-
export * from './product-media/product-media.component';
|
|
3
|
-
export * from './product-section/product-section.component';
|
|
4
|
-
export * from './product-item/product-item.component';
|
|
5
|
-
export * from './product-action/product-action.component';
|
|
6
|
-
export * from './product-pricing/product-pricing.component';
|
|
7
|
-
export * from './product-section/product-section.component';
|
|
8
|
-
export * from './product-option/product-option.component';
|
|
9
|
-
export * from './product-mange-section-item/product-mange-section-item.component';
|
|
10
|
-
export * from './product-manage-option-add/product-manage-option-add.component';
|
|
11
|
-
export * from './product-manage-option-item/product-manage-option-item.component';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Product } from '../../interfaces';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ProductActionComponent {
|
|
4
|
-
product: import("@angular/core").InputSignal<Product>;
|
|
5
|
-
cart: import("@angular/core").OutputEmitterRef<Product>;
|
|
6
|
-
checkout: import("@angular/core").OutputEmitterRef<Product>;
|
|
7
|
-
deposit: import("@angular/core").OutputEmitterRef<Product>;
|
|
8
|
-
displayDeposit: import("@angular/core").Signal<string>;
|
|
9
|
-
onCart(product: Product): void;
|
|
10
|
-
onCheckout(product: Product): void;
|
|
11
|
-
onDeposit(product: Product): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductActionComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductActionComponent, "rolatech-product-action", never, { "product": { "alias": "product"; "required": true; "isSignal": true; }; }, { "cart": "cart"; "checkout": "checkout"; "deposit": "deposit"; }, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ProductInfoComponent {
|
|
3
|
-
name: import("@angular/core").InputSignal<string>;
|
|
4
|
-
description: import("@angular/core").InputSignal<string | undefined>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductInfoComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductInfoComponent, "rolatech-product-info", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Product } from '../../interfaces';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ProductItemComponent {
|
|
4
|
-
product: import("@angular/core").InputSignal<Product>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductItemComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductItemComponent, "rolatech-product-item", never, { "product": { "alias": "product"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DoCheck } from '@angular/core';
|
|
2
|
-
import { MatChipInputEvent } from '@angular/material/chips';
|
|
3
|
-
import { ProductOption } from '../../interfaces';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ProductManageOptionAddComponent implements DoCheck {
|
|
6
|
-
option: ProductOption;
|
|
7
|
-
addOnBlur: boolean;
|
|
8
|
-
readonly separatorKeysCodes: readonly [13, 188];
|
|
9
|
-
cancel: import("@angular/core").OutputEmitterRef<void>;
|
|
10
|
-
save: import("@angular/core").OutputEmitterRef<ProductOption>;
|
|
11
|
-
action: boolean;
|
|
12
|
-
output: import("@angular/core").OutputEmitterRef<any>;
|
|
13
|
-
onCancel(): void;
|
|
14
|
-
onSave(): void;
|
|
15
|
-
addOptionValues(event: MatChipInputEvent): void;
|
|
16
|
-
removeValue(value: any): void;
|
|
17
|
-
ngDoCheck(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageOptionAddComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageOptionAddComponent, "rolatech-product-manage-option-add", never, {}, { "cancel": "cancel"; "save": "save"; "output": "output"; }, never, never, true, never>;
|
|
20
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ProductOption } from '../../interfaces';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ProductManageOptionItemComponent {
|
|
4
|
-
option: import("@angular/core").InputSignal<ProductOption>;
|
|
5
|
-
addOnBlur: boolean;
|
|
6
|
-
delete: import("@angular/core").OutputEmitterRef<ProductOption>;
|
|
7
|
-
save: import("@angular/core").OutputEmitterRef<ProductOption>;
|
|
8
|
-
edit: import("@angular/core").OutputEmitterRef<ProductOption>;
|
|
9
|
-
onDelete(): void;
|
|
10
|
-
onSave(): void;
|
|
11
|
-
onEdit(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageOptionItemComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageOptionItemComponent, "rolatech-product-manage-option-item", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; }, { "delete": "delete"; "save": "save"; "edit": "edit"; }, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ProductInventoryStatus, ProductVariant } from '../../interfaces';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { MatSelectChange } from '@angular/material/select';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ProductManageVariantComponent {
|
|
6
|
-
dialog: MatDialog;
|
|
7
|
-
variant: import("@angular/core").ModelSignal<ProductVariant>;
|
|
8
|
-
price: import("@angular/core").Signal<string>;
|
|
9
|
-
expanded: boolean;
|
|
10
|
-
upload: import("@angular/core").OutputEmitterRef<FormData>;
|
|
11
|
-
variantStatus: typeof ProductInventoryStatus;
|
|
12
|
-
enumKeys: string[];
|
|
13
|
-
onUpload(event: any): void;
|
|
14
|
-
onMediaClick(i: number): void;
|
|
15
|
-
statusCompareFn(t1: any, t2: any): boolean;
|
|
16
|
-
onStatusChange(event: MatSelectChange): void;
|
|
17
|
-
onPriceChange(event: any): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageVariantComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageVariantComponent, "rolatech-product-manage-variant", never, { "variant": { "alias": "variant"; "required": true; "isSignal": true; }; }, { "variant": "variantChange"; "upload": "upload"; }, never, never, true, never>;
|
|
20
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Media } from '@rolatech/angular-common';
|
|
3
|
-
import { ProductSection } from '../../interfaces';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ProductManageSectionItemComponent implements OnInit {
|
|
6
|
-
isUploading: import("@angular/core").InputSignal<boolean | undefined>;
|
|
7
|
-
section: import("@angular/core").InputSignal<ProductSection>;
|
|
8
|
-
actions: import("@angular/core").InputSignal<boolean>;
|
|
9
|
-
selectMedia: import("@angular/core").InputSignal<any>;
|
|
10
|
-
upload: import("@angular/core").OutputEmitterRef<{
|
|
11
|
-
section: ProductSection;
|
|
12
|
-
data: FormData | null;
|
|
13
|
-
}>;
|
|
14
|
-
delete: import("@angular/core").OutputEmitterRef<ProductSection>;
|
|
15
|
-
save: import("@angular/core").OutputEmitterRef<ProductSection>;
|
|
16
|
-
deleteMedia: import("@angular/core").OutputEmitterRef<{
|
|
17
|
-
section: ProductSection;
|
|
18
|
-
media: Media;
|
|
19
|
-
}>;
|
|
20
|
-
selectedImg: Media | any;
|
|
21
|
-
expanded: boolean;
|
|
22
|
-
constructor();
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
onUpload(data: any): void;
|
|
25
|
-
onMediaItemClick(image: Media): void;
|
|
26
|
-
select(item: any): void;
|
|
27
|
-
deleteImage(): void;
|
|
28
|
-
onSave(section: ProductSection): void;
|
|
29
|
-
onDelete(section: ProductSection): void;
|
|
30
|
-
onDeleteMedia(media: Media): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageSectionItemComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageSectionItemComponent, "rolatech-product-manage-section-item", never, { "isUploading": { "alias": "isUploading"; "required": false; "isSignal": true; }; "section": { "alias": "section"; "required": true; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "selectMedia": { "alias": "selectMedia"; "required": false; "isSignal": true; }; }, { "upload": "upload"; "delete": "delete"; "save": "save"; "deleteMedia": "deleteMedia"; }, never, never, true, never>;
|
|
33
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
-
import { Media } from '@rolatech/angular-common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ProductMediaComponent {
|
|
5
|
-
dialog: MatDialog;
|
|
6
|
-
media: import("@angular/core").InputSignal<Media[]>;
|
|
7
|
-
min: import("@angular/core").InputSignal<boolean>;
|
|
8
|
-
mediaIndex: number;
|
|
9
|
-
onImageClick(i: any): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductMediaComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductMediaComponent, "rolatech-product-media", never, { "media": { "alias": "media"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ProductOption, ProductOptionValue } from '../../interfaces';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ProductOptionComponent {
|
|
4
|
-
option: import("@angular/core").InputSignal<ProductOption>;
|
|
5
|
-
optionChange: import("@angular/core").OutputEmitterRef<{
|
|
6
|
-
option: ProductOption;
|
|
7
|
-
value: ProductOptionValue;
|
|
8
|
-
}>;
|
|
9
|
-
selected: import("@angular/core").ModelSignal<ProductOption | undefined>;
|
|
10
|
-
value: import("@angular/core").ModelSignal<ProductOptionValue | undefined>;
|
|
11
|
-
onOptionChange(value: ProductOptionValue): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductOptionComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductOptionComponent, "rolatech-product-option", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "optionChange": "optionChange"; "selected": "selectedChange"; "value": "valueChange"; }, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ProductOwnerRendererComponent {
|
|
3
|
-
name: import("@angular/core").InputSignal<string | undefined>;
|
|
4
|
-
avatar: import("@angular/core").InputSignal<string | undefined>;
|
|
5
|
-
username: import("@angular/core").InputSignal<string | undefined>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductOwnerRendererComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductOwnerRendererComponent, "rolatech-product-owner-renderer", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "avatar": { "alias": "avatar"; "required": false; "isSignal": true; }; "username": { "alias": "username"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|