simpo-component-library 1.6.13 → 1.6.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9yZGVyLWRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NpbXBvLXVpL3NyYy9saWIvZGlyZWN0aXZlL2JvcmRlci1kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFNBQVMsRUFBYyxLQUFLLEVBQWEsTUFBTSxlQUFlLENBQUM7OztBQVF4RSxNQUFNLE9BQU8sZUFBZTtJQUcxQixZQUNVLEVBQWMsRUFDZCxZQUEyQjtRQUQzQixPQUFFLEdBQUYsRUFBRSxDQUFZO1FBQ2QsaUJBQVksR0FBWixZQUFZLENBQWU7UUFFbkMsSUFBSSxDQUFDLFlBQVksQ0FBQyxrQkFBa0IsQ0FBQyxTQUFTLENBQzVDLENBQUMsR0FBUSxFQUFFLEVBQUU7WUFFWCxJQUFJLElBQUksQ0FBQyxFQUFFLENBQUMsYUFBYSxDQUFDLEVBQUUsS0FBSyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUM7Z0JBQ3hDLElBQUksR0FB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AgICAgKHJlczogYW55KSA9PiB7XHJcbiAgICAgICAgXHJcbiAgICAgICAgaWYgKHRoaXMuZWwubmF0aXZlRWxlbWVudC5pZCA9PT0gcmVzLmlkKSB7XHJcbiAgICAgICAgICBpZiAocmVzLmRhdGE/LmRpc3BsYXkpIHtcclxuICAgICAgICAgICAgdGhpcy5lbC5uYXRpdmVFbGVtZW50LnN0eWxlLnNldFByb3BlcnR5KFwiYm9yZGVyLXJhZGl1c1wiLCAocmVzLmRhdGE/LnJhZGl1cyA/PyAwKSArIFwicHhcIik7XHJcbiAgICAgICAgICAgIGlmIChyZXMuZGF0YT8uZGlyZWN0aW9uPy5pbmNsdWRlcyhcIkFMTFwiKSkge1xyXG4gICAgICAgICAgICAgIHJlcy5kYXRhLmRpcmVjdGlvbiA9IFtcIkxFRlRcIiwgXCJSSUdIVFwiLCBcIlRPUFwiLCBcIkJPVFRPTVwiXVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGZvciAobGV0IGlkeCA9IDA7IGlkeCA8IChyZXMuZGF0YT8uZGlyZWN0aW9uPy5sZW5ndGggPz8gMCk7IGlkeCsrKSB7XHJcbiAgICAgICAgICAgICAgdGhpcy5lbC5uYXRpdmVFbGVtZW50LnN0eWxlLnNldFByb3BlcnR5KFxyXG4gICAgICAgICAgICAgICAgYGJvcmRlci1gICsgcmVzLmRhdGE/LmRpcmVjdGlvbj8uW2lkeF0/LnRvTG93ZXJDYXNlKCksXHJcbiAgICAgICAgICAgICAgICByZXMuZGF0YS50aGlja25lc3MgKyAncHgnICtcclxuICAgICAgICAgICAgICAgICcgJyArXHJcbiAgICAgICAgICAgICAgICByZXMuZGF0YS50eXBlICtcclxuICAgICAgICAgICAgICAgICcgJyArXHJcbiAgICAgICAgICAgICAgICByZXMuZGF0YS5jb2xvclxyXG4gICAgICAgICAgICAgICk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIH1cclxuICAgICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAg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G4gICAgICAgICAgaWYgKHJlcy5kYXRhPy5kaXNwbGF5KSB7XHJcbiAgICAgICAgICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC5zdHlsZS5zZXRQcm9wZXJ0eShcImJvcmRlci1yYWRpdXNcIiwgKHJlcy5kYXRhPy5yYWRpdXMgPz8gMCkgKyBcInB4XCIpO1xyXG4gICAgICAgICAgICBpZighcmVzPy5kYXRhPy5kaXJlY3Rpb24pIHtcclxuICAgICAgICAgICAgICByZXMuZGF0YS5kaXJlY3Rpb24gPSBbXCJCT1RUT01cIl1cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBpZiAocmVzLmRhdGE/LmRpcmVjdGlvbj8uaW5jbHVkZXMoXCJBTExcIikpIHtcclxuICAgICAgICAgICAgICByZXMuZGF0YS5kaXJlY3Rpb24gPSBbXCJMRUZUXCIsIFwiUklHSFRcIiwgXCJUT1BcIiwgXCJCT1RUT01cIl1cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBmb3IgKGxldCBpZHggPSAwOyBpZHggPCAocmVzLmRhdGE/LmRpcmVjdGlvbj8ubGVuZ3RoID8/IDApOyBpZHgrKykge1xyXG4gICAgICAgICAgICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC5zdHlsZS5zZXRQcm9wZXJ0eShcclxuICAgICAgICAgICAgICAgIGBib3JkZXItYCArIHJlcy5kYXRhPy5kaXJlY3Rpb24/LltpZHhdPy50b0xvd2VyQ2FzZSgpLFxyXG4gICAgICAgICAgICAgICAgcmVzLmRhdGEudGhpY2tuZXNzICsgJ3B4JyArXHJcbiAgICAgICAgICAgICAgICAnICcgK1xyXG4gICAgICAgICAgICAgICAgcmVzLmRhdGEudHlwZSArXHJcbiAgICAgICAgICAgICAgICAnICcgK1xyXG4gICAgICAgICAgICAgICAgcmVzLmRhdGEuY29sb3JcclxuICAgICAgICAgICAgICApO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgICBl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