@rolatech/angular-order 18.0.5 → 18.0.7

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.
Files changed (25) hide show
  1. package/esm2022/lib/components/index.mjs +2 -3
  2. package/esm2022/lib/components/order-detail-item/order-detail-item.component.mjs +25 -0
  3. package/esm2022/lib/components/order-item/order-item.component.mjs +15 -7
  4. package/esm2022/lib/components/order-return-request/order-return-request.component.mjs +13 -9
  5. package/esm2022/lib/components/order-variant-item/order-variant-item.component.mjs +3 -3
  6. package/esm2022/lib/interfaces/order.mjs +30 -12
  7. package/esm2022/lib/pages/order-detail/order-detail.component.mjs +12 -39
  8. package/esm2022/lib/pages/order-qrcodepay/order-qrcodepay.component.mjs +7 -6
  9. package/esm2022/lib/pages/orders-index/order-index.component.mjs +74 -12
  10. package/esm2022/lib/pipe/order-item-options.pipe.mjs +10 -6
  11. package/fesm2022/rolatech-angular-order.mjs +155 -104
  12. package/fesm2022/rolatech-angular-order.mjs.map +1 -1
  13. package/lib/components/index.d.ts +1 -2
  14. package/lib/components/order-detail-item/order-detail-item.component.d.ts +12 -0
  15. package/lib/components/order-return-request/order-return-request.component.d.ts +3 -1
  16. package/lib/interfaces/order.d.ts +44 -11
  17. package/lib/pages/order-detail/order-detail.component.d.ts +1 -6
  18. package/lib/pages/orders-index/order-index.component.d.ts +9 -3
  19. package/lib/pipe/order-item-options.pipe.d.ts +4 -1
  20. package/package.json +1 -1
  21. package/themes/_default.scss +1 -1
  22. package/esm2022/lib/components/order-course-item/order-course-item.component.mjs +0 -19
  23. package/esm2022/lib/components/order-product-item/order-product-item.component.mjs +0 -23
  24. package/lib/components/order-course-item/order-course-item.component.d.ts +0 -8
  25. package/lib/components/order-product-item/order-product-item.component.d.ts +0 -11
@@ -1,23 +0,0 @@
1
- import { Component, computed, input } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { MatIcon } from '@angular/material/icon';
4
- import * as i0 from "@angular/core";
5
- export class OrderProductItemComponent {
6
- constructor() {
7
- this.thumbnail = input();
8
- this.title = input.required();
9
- this.description = input();
10
- this.quantity = input(0);
11
- this.total = input.required();
12
- this.priceDisplay = computed(() => {
13
- return (this.total() / 100)?.toFixed(2);
14
- });
15
- }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: OrderProductItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
17
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: OrderProductItemComponent, isStandalone: true, selector: "rolatech-order-product-item", inputs: { thumbnail: { classPropertyName: "thumbnail", publicName: "thumbnail", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, quantity: { classPropertyName: "quantity", publicName: "quantity", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex justify-between py-3\">\n <div class=\"flex w-full\">\n <div class=\"w-1/4 aspect-video bg-[--rt-raised-background] rounded-lg h-fit\">\n <div class=\"object-cover aspect-video\">\n @defer (on viewport()) {\n <rolatech-thumbnail [src]=\"thumbnail()\" size=\"medium\" mode=\"full\"> </rolatech-thumbnail>\n } @placeholder {\n <div class=\"bg-[--rt-raised-background] h-full w-full object-cover aspect-video\"></div>\n }\n </div>\n </div>\n <div class=\"w-3/4 ml-3 flex flex-col justify-between\">\n <!-- info -->\n <div class=\"flex justify-between\">\n <div class=\"flex flex-col\">\n <span class=\"text-lg font-bold\">{{ title() }}</span>\n <span class=\"text-sm text-[--rt-text-secondary] mt-2\">{{ description() }}</span>\n </div>\n <div>\u00A5{{ priceDisplay() }}</div>\n </div>\n <!-- action -->\n <div class=\"flex justify-between items-center w-full\">\n <div class=\"flex items-center text-sm\">\n <span class=\"mr-3\">\u6570\u91CF</span>\n <span class=\"w-11 text-center\">{{ quantity() }}</span>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }], deferBlockDependencies: [() => [import("@rolatech/angular-components").then(m => m.ThumbnailComponent)]] }); }
18
- }
19
- i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "18.2.0", ngImport: i0, type: OrderProductItemComponent, resolveDeferredDeps: () => [import("@rolatech/angular-components").then(m => m.ThumbnailComponent)], resolveMetadata: ThumbnailComponent => ({ decorators: [{
20
- type: Component,
21
- args: [{ selector: 'rolatech-order-product-item', standalone: true, imports: [CommonModule, ThumbnailComponent, MatIcon], template: "<div class=\"flex justify-between py-3\">\n <div class=\"flex w-full\">\n <div class=\"w-1/4 aspect-video bg-[--rt-raised-background] rounded-lg h-fit\">\n <div class=\"object-cover aspect-video\">\n @defer (on viewport()) {\n <rolatech-thumbnail [src]=\"thumbnail()\" size=\"medium\" mode=\"full\"> </rolatech-thumbnail>\n } @placeholder {\n <div class=\"bg-[--rt-raised-background] h-full w-full object-cover aspect-video\"></div>\n }\n </div>\n </div>\n <div class=\"w-3/4 ml-3 flex flex-col justify-between\">\n <!-- info -->\n <div class=\"flex justify-between\">\n <div class=\"flex flex-col\">\n <span class=\"text-lg font-bold\">{{ title() }}</span>\n <span class=\"text-sm text-[--rt-text-secondary] mt-2\">{{ description() }}</span>\n </div>\n <div>\u00A5{{ priceDisplay() }}</div>\n </div>\n <!-- action -->\n <div class=\"flex justify-between items-center w-full\">\n <div class=\"flex items-center text-sm\">\n <span class=\"mr-3\">\u6570\u91CF</span>\n <span class=\"w-11 text-center\">{{ quantity() }}</span>\n </div>\n </div>\n </div>\n </div>\n</div>\n" }]
22
- }], ctorParameters: null, propDecorators: null }) });
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItcHJvZHVjdC1pdGVtLmN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Fzcz1cImZsZXggZmxleC1jb2xcIj5cbiAgICAgICAgICA8c3BhbiBjbGFzcz1cInRleHQtbGcgZm9udC1ib2xkXCI+e3sgdGl0bGUoKSB9fTwvc3Bhbj5cbiAgICAgICAgICA8c3BhbiBjbGFzcz1cInRleHQtc20gdGV4dC1bLS1ydC10ZXh0LXNlY29uZGFyeV0gbXQtMlwiPnt7IGRlc2NyaXB0aW9uKCkgfX08L3NwYW4+XG4gICAgICAgIDwvZGl2PlxuICAgICAgICA8ZGl2PsKle3sgcHJpY2VEaXNwbGF5KCkgfX08L2Rpdj5cbiAgICAgIDwvZGl2PlxuICAgICAgPCEtLSBhY3Rpb24gLS0+XG4gICAgICA8ZGl2IGNsYXNzPVwiZmxleCBqdXN0aWZ5LWJldHdlZW4gaXRlbXMtY2VudGVyIHctZnVsbFwiPlxuICAgICAgICA8ZGl2IGNsYXNzPVwiZmxleCBpdGVtcy1jZW50ZXIgdGV4dC1zbVwiPlxuICAgICAgICAgIDxzcGFuIGNsYXNzPVwibXItM1wiPuaVsOmHjzwvc3Bhbj5cbiAgICAgICAgICA8c3BhbiBjbGFzcz1cInctMTEgdGV4dC1jZW50ZXJcIj57eyBxdWFudGl0eSgpIH19PC9zcGFuPlxuICAgICAgICA8L2Rpdj5cbiAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
@@ -1,8 +0,0 @@
1
- import { Course, CourseType } from '@rolatech/angular-course';
2
- import * as i0 from "@angular/core";
3
- export declare class OrderCourseItemComponent {
4
- course: import("@angular/core").InputSignal<Course>;
5
- type: typeof CourseType;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<OrderCourseItemComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<OrderCourseItemComponent, "rolatech-order-course-item", never, { "course": { "alias": "course"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
8
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class OrderProductItemComponent {
3
- thumbnail: import("@angular/core").InputSignal<string | undefined>;
4
- title: import("@angular/core").InputSignal<string>;
5
- description: import("@angular/core").InputSignal<string | undefined>;
6
- quantity: import("@angular/core").InputSignal<number>;
7
- total: import("@angular/core").InputSignal<number>;
8
- priceDisplay: import("@angular/core").Signal<string>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<OrderProductItemComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<OrderProductItemComponent, "rolatech-order-product-item", never, { "thumbnail": { "alias": "thumbnail"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "quantity": { "alias": "quantity"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
11
- }