Skip to content

Commit

Permalink
docs: pipe add private #INFR-10725
Browse files Browse the repository at this point in the history
  • Loading branch information
Guoxiin committed Dec 5, 2023
1 parent 40fc0f3 commit e07b253
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 3 deletions.
9 changes: 9 additions & 0 deletions src/avatar/avatar.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ const UNIFIED_IDEOGRAPHS_REGEX = /^[\u4e00-\u9fa5]+$/;

const SET_OF_LETTERS_REGEX = /^[a-zA-Z\/ ]+$/;

/**
* @private
*/
@Pipe({
name: 'avatarShortName',
standalone: true
Expand All @@ -34,6 +37,9 @@ export class AvatarShortNamePipe implements PipeTransform {
}
}

/**
* @private
*/
@Pipe({
name: 'avatarBgColor',
standalone: true
Expand Down Expand Up @@ -61,6 +67,9 @@ export class AvatarBgColorPipe implements PipeTransform {
}
}

/**
* @private
*/
@Pipe({
name: 'thyAvatarSrc',
standalone: true
Expand Down
16 changes: 13 additions & 3 deletions src/date-picker/picker.pipes.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { Pipe, PipeTransform } from '@angular/core';
import { DateHelperService } from './date-helper.service';
import { CompatibleDate, DateEntry, ThyDateRangeEntry, ThyDateGranularity } from './standard-types';
import { getFlexibleAdvancedReadableValue, transformDateValue } from './picker.util';
import { TinyDate } from 'ngx-tethys/util';
import { DateHelperService } from './date-helper.service';
import { AdvancedSelectableCell } from './inner-types';
import { getFlexibleAdvancedReadableValue, transformDateValue } from './picker.util';
import { CompatibleDate, DateEntry, ThyDateGranularity, ThyDateRangeEntry } from './standard-types';

/**
* @private
*/
@Pipe({
name: 'thyDatePickerFormat',
standalone: true
Expand Down Expand Up @@ -32,6 +35,9 @@ export class ThyDatePickerFormatPipe implements PipeTransform {
}
}

/**
* @private
*/
@Pipe({
name: 'thyDatePickerFormatString',
standalone: true
Expand All @@ -45,6 +51,10 @@ export class ThyDatePickerFormatStringPipe implements PipeTransform {
return withTime ? 'yyyy-MM-dd HH:mm' : 'yyyy-MM-dd';
}
}

/**
* @private
*/
@Pipe({
name: 'showYearTip',
standalone: true
Expand Down
3 changes: 3 additions & 0 deletions src/nav/nav.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { Pipe, PipeTransform } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';

/**
* @private
*/
@Pipe({
name: 'bypassSecurityTrustHtml',
standalone: true
Expand Down
3 changes: 3 additions & 0 deletions src/pagination/pagination.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { Pipe, PipeTransform } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';

/**
* @private
*/
@Pipe({
name: 'paginationTotalPagesFormat',
standalone: true
Expand Down
3 changes: 3 additions & 0 deletions src/table/pipes/drag.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { SafeAny } from 'ngx-tethys/types';

import { Pipe, PipeTransform } from '@angular/core';

/**
* @private
*/
@Pipe({
name: 'tableRowDragDisabled',
standalone: true
Expand Down
3 changes: 3 additions & 0 deletions src/table/pipes/table.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Pipe, PipeTransform } from '@angular/core';

/**
* @private
*/
@Pipe({
name: 'isValidModelValue',
standalone: true
Expand Down
3 changes: 3 additions & 0 deletions src/tree/tree.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { Pipe, PipeTransform } from '@angular/core';
import { ThyTreeNode } from './tree-node.class';
import { ThyTreeBeforeDragStartContext } from './tree.class';

/**
* @private
*/
@Pipe({
name: 'treeNodeDraggable',
standalone: true
Expand Down

0 comments on commit e07b253

Please sign in to comment.