simpo-component-library 1.6.13 → 1.6.15
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/directive/border-directive.mjs +4 -1
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +14 -16
- package/fesm2022/simpo-component-library.mjs +18 -17
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/package.json +1 -1
- package/simpo-component-library-1.6.14.tgz +0 -0
- package/simpo-component-library-1.6.15.tgz +0 -0
@@ -9,6 +9,9 @@ export class BorderDirective {
|
|
9
9
|
if (this.el.nativeElement.id === res.id) {
|
10
10
|
if (res.data?.display) {
|
11
11
|
this.el.nativeElement.style.setProperty("border-radius", (res.data?.radius ?? 0) + "px");
|
12
|
+
if (!res?.data?.direction) {
|
13
|
+
res.data.direction = ["BOTTOM"];
|
14
|
+
}
|
12
15
|
if (res.data?.direction?.includes("ALL")) {
|
13
16
|
res.data.direction = ["LEFT", "RIGHT", "TOP", "BOTTOM"];
|
14
17
|
}
|
@@ -54,4 +57,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
|
|
54
57
|
type: Input,
|
55
58
|
args: ['simpoBorder']
|
56
59
|
}] } });
|
57
|
-
//# sourceMappingURL=data:application/json;base64,
|
60
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9yZGVyLWRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NpbXBvLXVpL3NyYy9saWIvZGlyZWN0aXZlL2JvcmRlci1kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFNBQVMsRUFBYyxLQUFLLEVBQWEsTUFBTSxlQUFlLENBQUM7OztBQVF4RSxNQUFNLE9BQU8sZUFBZTtJ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JUT1BcIiwgXCJCT1RUT01cIl1cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBmb3IgKGxldCBpZHggPSAwOyBpZHggPCAocmVzLmRhdGE/LmRpcmVjdGlvbj8ubGVuZ3RoID8/IDApOyBpZHgrKykge1xyXG4gICAgICAgICAgICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC5zdHlsZS5zZXRQcm9wZXJ0eShcclxuICAgICAgICAgICAgICAgIGBib3JkZXItYCArIHJlcy5kYXRhPy5kaXJlY3Rpb24/LltpZHhdPy50b0xvd2VyQ2FzZSgpLFxyXG4gICAgICAgICAgICAgICAgcmVzLmRhdGEudGhpY2tuZXNzICsgJ3B4JyArXHJcbiAgICAgICAgICAgICAgICAnICcgK1xyXG4gICAgICAgICAgICAgICAgcmVzLmRhdGEudHlwZSArXHJcbiAgICAgICAgICAgICAgICAnICcgK1xyXG4gICAgICAgICAgICAgICAgcmVzLmRhdGEuY29sb3JcclxuICAgICAgICAgICAgICApO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgdGhpcy5lbC5uYXRpdmVFbGVtZW50LnN0eWxlLnNldFByb3BlcnR5KFxyXG4gICAgICAgICAgICAgICdib3JkZXItYm90dG9tJyxcclxuICAgICAgICAgICAgICAnbm9uZSdcclxuICAgICAgICAgICAgKTtcclxuICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgIClcclxuICB9XHJcblxyXG4gIG5nT25DaGFuZ2VzKCk6IHZvaWQge1xyXG4gICAgaWYgKHRoaXMuYm9yZGVyRGF0YT8uZGlzcGxheSkge1xyXG4gICAgICBpZiAodGhpcy5ib3JkZXJEYXRhPy5kaXJlY3Rpb24/LmluY2x1ZGVzKFwiQUxMXCIpKSB7XHJcbiAgICAgICAgdGhpcy5ib3JkZXJEYXRhLmRpcmVjdGlvbiA9IFtcIkxFRlRcIiwgXCJSSUdIVFw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