@alauda/ui 6.1.6-beta.0 → 6.1.6-beta.1

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.
@@ -513,7 +513,7 @@
513
513
  });
514
514
  this.themeChanged();
515
515
  }
516
- ThemeService.prototype.changeThemeMode = function (mode) {
516
+ ThemeService.prototype.setThemeMode = function (mode) {
517
517
  this.htmlEl.setAttribute('aui-theme-mode', mode);
518
518
  this.themeMode = mode;
519
519
  this.themeChanged();
@@ -532,8 +532,8 @@
532
532
  ];
533
533
  ThemeService.ctorParameters = function () { return []; };
534
534
 
535
- var ThemePipe = /** @class */ (function () {
536
- function ThemePipe(themeService, cdr) {
535
+ var ThemePickerPipe = /** @class */ (function () {
536
+ function ThemePickerPipe(themeService, cdr) {
537
537
  var _this = this;
538
538
  this.destroy$$ = new rxjs.Subject();
539
539
  themeService.currentTheme$
@@ -543,22 +543,22 @@
543
543
  cdr.markForCheck();
544
544
  });
545
545
  }
546
- ThemePipe.prototype.transform = function (v) {
546
+ ThemePickerPipe.prototype.transform = function (v) {
547
547
  if (v instanceof Function) {
548
548
  return v(this.currentTheme);
549
549
  }
550
550
  return v[this.currentTheme];
551
551
  };
552
- ThemePipe.prototype.ngOnDestroy = function () {
552
+ ThemePickerPipe.prototype.ngOnDestroy = function () {
553
553
  this.destroy$$.next();
554
554
  this.destroy$$.complete();
555
555
  };
556
- return ThemePipe;
556
+ return ThemePickerPipe;
557
557
  }());
558
- ThemePipe.decorators = [
559
- { type: i0.Pipe, args: [{ name: 'auiTheme', pure: false },] }
558
+ ThemePickerPipe.decorators = [
559
+ { type: i0.Pipe, args: [{ name: 'auiThemePicker', pure: false },] }
560
560
  ];
561
- ThemePipe.ctorParameters = function () { return [
561
+ ThemePickerPipe.ctorParameters = function () { return [
562
562
  { type: ThemeService },
563
563
  { type: i0.ChangeDetectorRef }
564
564
  ]; };
@@ -571,8 +571,8 @@
571
571
  ThemeModule.decorators = [
572
572
  { type: i0.NgModule, args: [{
573
573
  imports: [common.CommonModule],
574
- declarations: [ThemePipe],
575
- exports: [ThemePipe],
574
+ declarations: [ThemePickerPipe],
575
+ exports: [ThemePickerPipe],
576
576
  },] }
577
577
  ];
578
578
 
@@ -683,7 +683,7 @@
683
683
  IconComponent.decorators = [
684
684
  { type: i0.Component, args: [{
685
685
  selector: 'aui-icon',
686
- template: "<svg\n *ngIf=\"icon === 'spinner'; else icons\"\n [attr.class]=\"getClass('aui-icon-spinner')\"\n [style.fill]=\"color\"\n [style.width]=\"getWidth()\"\n [style.height]=\"getHeight()\"\n viewBox=\"0 0 200 200\"\n>\n <defs>\n <linearGradient\n [attr.id]=\"'right-' + id\"\n gradientUnits=\"userSpaceOnUse\"\n x1=\"150\"\n y1=\"20\"\n x2=\"150\"\n y2=\"180\"\n >\n <stop offset=\"0\" style=\"stop-color: #000\" />\n <stop offset=\"1\" style=\"stop-color: #808080\" />\n </linearGradient>\n <linearGradient\n [attr.id]=\"'left-' + id\"\n gradientUnits=\"userSpaceOnUse\"\n x1=\"50\"\n y1=\"0\"\n x2=\"50\"\n y2=\"180\"\n >\n <stop offset=\"0\" style=\"stop-color: #fff\" />\n <stop offset=\"1\" style=\"stop-color: #808080\" />\n </linearGradient>\n <mask [attr.id]=\"'mask-' + id\">\n <g>\n <path\n [attr.fill]=\"'url(#right-' + id + ')'\"\n d=\"M100,0v20c44.1,0,80,35.9,80,80c0,44.1-35.9,80-80,80v20c55.2,0,100-44.8,100-100S155.2,0,100,0z\"\n />\n <path\n [attr.fill]=\"'url(#left-' + id + ')'\"\n d=\"M20,100c0-44.1,35.9-80,80-80V0C44.8,0,0,44.8,0,100s44.8,100,100,100v-20C55.9,180,20,144.1,20,100z\"\n />\n </g>\n </mask>\n </defs>\n <rect\n x=\"0\"\n y=\"0\"\n width=\"200\"\n height=\"200\"\n [attr.mask]=\"'url(#mask-' + id + ')'\"\n />\n</svg>\n\n<ng-template #icons>\n <svg\n *ngIf=\"\n getIconId(\n icon ? icon : ({ light: light, dark: dark } | auiTheme)\n ) as iconId\n \"\n [attr.class]=\"getClass(iconId)\"\n [style.fill]=\"color\"\n [style.width]=\"getWidth()\"\n [style.height]=\"getHeight()\"\n >\n <use [attr.xlink:href]=\"link + '#' + iconId\"></use>\n </svg>\n</ng-template>\n",
686
+ template: "<svg\n *ngIf=\"icon === 'spinner'; else icons\"\n [attr.class]=\"getClass('aui-icon-spinner')\"\n [style.fill]=\"color\"\n [style.width]=\"getWidth()\"\n [style.height]=\"getHeight()\"\n viewBox=\"0 0 200 200\"\n>\n <defs>\n <linearGradient\n [attr.id]=\"'right-' + id\"\n gradientUnits=\"userSpaceOnUse\"\n x1=\"150\"\n y1=\"20\"\n x2=\"150\"\n y2=\"180\"\n >\n <stop offset=\"0\" style=\"stop-color: #000\" />\n <stop offset=\"1\" style=\"stop-color: #808080\" />\n </linearGradient>\n <linearGradient\n [attr.id]=\"'left-' + id\"\n gradientUnits=\"userSpaceOnUse\"\n x1=\"50\"\n y1=\"0\"\n x2=\"50\"\n y2=\"180\"\n >\n <stop offset=\"0\" style=\"stop-color: #fff\" />\n <stop offset=\"1\" style=\"stop-color: #808080\" />\n </linearGradient>\n <mask [attr.id]=\"'mask-' + id\">\n <g>\n <path\n [attr.fill]=\"'url(#right-' + id + ')'\"\n d=\"M100,0v20c44.1,0,80,35.9,80,80c0,44.1-35.9,80-80,80v20c55.2,0,100-44.8,100-100S155.2,0,100,0z\"\n />\n <path\n [attr.fill]=\"'url(#left-' + id + ')'\"\n d=\"M20,100c0-44.1,35.9-80,80-80V0C44.8,0,0,44.8,0,100s44.8,100,100,100v-20C55.9,180,20,144.1,20,100z\"\n />\n </g>\n </mask>\n </defs>\n <rect\n x=\"0\"\n y=\"0\"\n width=\"200\"\n height=\"200\"\n [attr.mask]=\"'url(#mask-' + id + ')'\"\n />\n</svg>\n\n<ng-template #icons>\n <svg\n *ngIf=\"\n getIconId(\n icon ? icon : ({ light: light, dark: dark } | auiThemePicker)\n ) as iconId\n \"\n [attr.class]=\"getClass(iconId)\"\n [style.fill]=\"color\"\n [style.width]=\"getWidth()\"\n [style.height]=\"getHeight()\"\n >\n <use [attr.xlink:href]=\"link + '#' + iconId\"></use>\n </svg>\n</ng-template>\n",
687
687
  encapsulation: i0.ViewEncapsulation.None,
688
688
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
689
689
  preserveWhitespaces: false,
@@ -12684,7 +12684,7 @@
12684
12684
  exports.TagType = TagType;
12685
12685
  exports.TagsInputComponent = TagsInputComponent;
12686
12686
  exports.ThemeModule = ThemeModule;
12687
- exports.ThemePipe = ThemePipe;
12687
+ exports.ThemePickerPipe = ThemePickerPipe;
12688
12688
  exports.ThemeService = ThemeService;
12689
12689
  exports.TimePickerComponent = TimePickerComponent;
12690
12690
  exports.TimePickerModule = TimePickerModule;