How to use the @covalent/core.TdDataTableSortingOrder.Ascending function in @covalent/core

To help you get started, we’ve selected a few @covalent/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github viadee / sonarQuest / sonarQuest-frontend / src / app / pages / gamemaster-page / components / gamemaster-quest / gamemaster-quest.component.ts View on Github external
{ name: 'participants', label: 'Spieler' },
    { name: 'edit', label: '' }
  ];

  swalOptionsConfirmDelete: {}
  swalOptionsDeleteSuccess: {}
  // Sort / Filter / Paginate variables
  filteredData: any[] = this.data;
  filteredTotal: number = this.data.length;
  searchTerm = '';
  fromRow = 1;
  currentPage = 1;
  pageSize = 5;
  sortBy = 'title';
  selectedRows: any[] = [];
  sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;

  constructor(
    private questService: QuestService,
    private taskService: TaskService,
    private worldService: WorldService,
    private _dataTableService: TdDataTableService,
    private translateService: TranslateService,
    private dialog: MatDialog) {
      this.initSweetAlert();
  }

  ngOnInit() {
    this.translateTable();
    this.init();
    this.worldService.onWorldChange().subscribe(() => this.init());
    this.initSweetAlert();
github viadee / sonarQuest / sonarQuest-frontend / src / app / pages / gamemaster-page / components / gamemaster-adventure / gamemaster-adventure.component.ts View on Github external
{name: 'xp', label: 'XP'},
    {name: 'story', label: 'Story'},
    {name: 'status', label: 'Status'},
    {name: 'edit', label: '', width: 70}
  ]

  // Sort / Filter / Paginate variables
  filteredData: any[] = this.data
  filteredTotal: number = this.data.length
  searchTerm = '';
  fromRow = 1;
  currentPage = 1;
  pageSize = 5;
  sortBy = 'title';
  selectedRows: any[] = [];
  sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;
  freeQuestsAvailable: boolean;

  constructor(private _dataTableService: TdDataTableService,
              private questService: QuestService,
              private worldService: WorldService,
              private translateService: TranslateService,
              private dialog: MatDialog,
              private taskService: TaskService,
              private adventureService: AdventureService) {
  }

  ngOnInit() {
    this.translateTable();
    this.init();
    this.worldService.onWorldChange().subscribe(() => this.init());
  }
github viadee / sonarQuest / sonarQuest-frontend / src / app / pages / gamemaster-page / components / gamemaster-marketplace / components / gamemaster-artefact-edit / gamemaster-artefact-edit.component.ts View on Github external
{name: 'name', label: 'Name', width: {min: 80}},
    {name: 'type', label: 'Type', width: {min: 40}},
    {name: 'value', label: 'Value', width: {min: 40}},
    {name: 'action', label: ''}
  ];

  // Sort / Filter / Paginate variables
  filteredSkills: Skill[];
  filteredTotal: number
  searchTerm = '';
  fromRow = 1;
  currentPage = 1;
  pageSize = 5;
  sortBy = 'name';
  selectedRows: any[] = [];
  sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;

  constructor(
    private dialogRef: MatDialogRef,
    private dialog: MatDialog,
    private artefactService: ArtefactService,
    private skillService: SkillService,
    @Inject(MAT_DIALOG_DATA) public artefact: Artefact,
    private _dataTableService: TdDataTableService  ) {
  }

  ngOnInit() {
    this.skillService.getSkillsForArtefact(this.artefact).then(skills => {
      this.skills = skills;
      this.filter();
    });
    this.name = this.artefact.name;
github viadee / sonarQuest / sonarQuest-frontend / src / app / pages / gamemaster-page / components / gamemaster-marketplace / components / gamemaster-artefact-create / gamemaster-artefact-create.component.ts View on Github external
{name: 'name', label: 'Name', width: {min: 80}},
    {name: 'type', label: 'Type', width: {min: 40}},
    {name: 'value', label: 'Value', width: {min: 40}},
    {name: 'action', label: ''}
  ];

  // Sort / Filter / Paginate variables
  filteredSkills: Skill[];
  filteredTotal: number
  searchTerm = '';
  fromRow = 1;
  currentPage = 1;
  pageSize = 5;
  sortBy = 'name';
  selectedRows: any[] = [];
  sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;

  constructor(
    private dialogRef: MatDialogRef,
    private artefactService: ArtefactService,
    private dialog: MatDialog,
    private skillService: SkillService,
    private _dataTableService: TdDataTableService) {
  }

  ngOnInit() {
    this.filter()
  }

  removeSkill(skill: Skill) {
    if (typeof skill.id !== 'undefined') {
      this.skillService.deleteSkill(skill).then();
github viadee / sonarQuest / sonarQuest-frontend / src / app / pages / gamemaster-page / components / gamemaster-task / components / gamemaster-special-task / gamemaster-special-task.component.ts View on Github external
{name: 'message', label: 'Mission'},
    {name: 'quest.title', label: 'Quest'},
    {name: 'status', label: 'Status'},
    {name: 'edit', label: ''}
  ];

  // Sort / Filter / Paginate variables
  filteredData: any[] = this.data;
  filteredTotal: number = this.data.length;
  searchTerm = '';
  fromRow = 1;
  currentPage = 1;
  pageSize = 5;
  sortBy = 'id';
  selectedRows: any[] = [];
  sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;

  constructor(
    private specialTaskService: SpecialTaskService,
    private questService: QuestService,
    private adventureService: AdventureService,
    private _dataTableService: TdDataTableService,
    private worldService: WorldService,
    private translateService: TranslateService,
    private dialog: MatDialog) {
  }

  ngOnInit() {
    this.translateTable();
    this.worldService.currentWorld$.subscribe(world => {
      this.currentWorld = world
      this.loadTasks();
github viadee / sonarQuest / sonarQuest-frontend / src / app / pages / admin-page / components / admin-world / admin-world.component.ts View on Github external
{ name: 'project', label: 'Project', width: { min: 300 } },
    { name: 'active', label: 'Active' },
    { name: 'usequestcards', label: 'Questcards' },
    { name: 'edit', label: '' }
  ];

  // Sort / Filter / Paginate variables
  filteredData: any[];
  filteredTotal: number;
  searchTerm = '';
  fromRow = 1;
  currentPage = 1;
  pageSize = 5;
  sortBy = 'id';
  selectedRows: any[];
  sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;

  constructor(private worldService: WorldService,
    private _dataTableService: TdDataTableService,
    private translateService: TranslateService,
    private dialog: MatDialog,
    private loadingService: LoadingService,
    private userService: UserService) {
  }

  ngOnInit() {
    this.translateTable();

    this.userService.user$.subscribe(user => {
      this.user = user
      if (this.user.role.name.toLocaleUpperCase() === 'ADMIN') {
        this.loadWorlds();
github viadee / sonarQuest / sonarQuest-frontend / src / app / pages / gamemaster-page / components / gamemaster-task / components / gamemaster-standard-task / gamemaster-standard-task.component.ts View on Github external
{name: 'severity', label: 'Severity'},
    {name: 'quest.title', label: 'Quest'},
    {name: 'status', label: 'Status'},
    {name: 'edit', label: ''}
  ];

  // Sort / Filter / Paginate variables
  filteredData: any[] = this.data;
  filteredTotal: number = this.data.length;
  searchTerm = '';
  fromRow = 1;
  currentPage = 1;
  pageSize = 5;
  sortBy = 'id';
  selectedRows: any[] = [];
  sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;

  currentWorld: World;

  constructor(
    private standardTaskService: StandardTaskService,
    private taskService: TaskService,
    private questService: QuestService,
    private adventureService: AdventureService,
    private _dataTableService: TdDataTableService,
    private worldService: WorldService,
    private translateService: TranslateService,
    private dialog: MatDialog,
    private loadingService: LoadingService) {
  }

  ngOnInit() {
github saurabh1e / open-pos / src / app / inventory / tag / tag.component.ts View on Github external
columns: ITdDataTableColumn[] = [
    {name: 'id', label: 'id' },
    {name: 'name', label: 'Name' },
    {name: 'retail_shop.name', 'label': 'Shop'}
  ];

  filteredData: any[] = this.data;
  filteredTotal: number = this.data.length;
  shops: number[];
  title: string;
  searchTerm: string = '';
  fromRow: number = 1;
  currentPage: number = 1;
  pageSize: number = 50;
  sortBy: string = 'id';
  sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;

  constructor(
    private _titleService: Title,
    private _loadingService: TdLoadingService,
    private _tagService: TagsService,
    private _userService: UsersService) {
    this._loadingService.create({
      name: 'products',
      type: LoadingType.Circular,
      mode: LoadingMode.Indeterminate,
      color: 'warn',
    });
  }

  ngAfterViewInit(): void {
    this._titleService.setTitle('Product');
github viadee / sonarQuest / sonarQuest-frontend / src / app / components / choose-current-world / choose-current-world / choose-current-world.component.ts View on Github external
templateUrl: './choose-current-world.component.html',
  styleUrls: ['./choose-current-world.component.css']
})
export class ChooseCurrentWorldComponent implements OnInit {

  worlds: World[];

  filteredData: any[];
  filteredTotal: number;
  searchTerm = '';
  fromRow = 1;
  currentPage = 1;
  pageSize = 5;
  sortBy = 'name';
  selectedRows: any[] = [];
  sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;

  columns: ITdDataTableColumn[] = [
    {name: 'name', label: 'Name'},
    {name: 'project', label: 'Project'},
    {name: 'choose', label: '', width: 70, sortable: false}
  ];

  constructor(
    private dialogRef: MatDialogRef,
    public worldService: WorldService,
    private _dataTableService: TdDataTableService
  ) {
  }

  ngOnInit() {
    this.worldService.getActiveWorlds().subscribe(worlds => {
github saurabh1e / open-pos / src / app / inventory / salt / salt.component.ts View on Github external
columns: ITdDataTableColumn[] = [
    {name: 'id', label: 'id' },
    {name: 'name', label: 'Name' },
    {name: 'retail_shop.name', 'label': 'Shop'}
  ];

  filteredData: any[] = this.data;
  filteredTotal: number = this.data.length;
  shops: number[];
  title: string;
  searchTerm: string = '';
  fromRow: number = 1;
  currentPage: number = 1;
  pageSize: number = 50;
  sortBy: string = 'id';
  sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;

  constructor(
    private _titleService: Title,
    private _loadingService: TdLoadingService,
    private _saltService: SaltsService,
    private _userService: UsersService) {
    this._loadingService.create({
      name: 'products',
      type: LoadingType.Circular,
      mode: LoadingMode.Indeterminate,
      color: 'warn',
    });
  }

  ngAfterViewInit(): void {
    this._titleService.setTitle('Product');