Skip to content
Snippets Groups Projects
Select Git revision
  • 15b43573810a8127c7a7c124130681ab89356e2d
  • master default protected
  • add-frequency-to-form
  • dev protected
  • ckan-2.11.0
  • add-package-custom-fields
  • fix-adding-datasets-for-users-and-editors
  • add-auth-subroute
  • 71-migrate-custom-fields-to-ckanext-scheming
  • add-author-maintainer-information
  • fix-inline-flex-btns
  • fix-known-spatial-uri-validation
  • py3
  • 47-aktuelle-resource-einer-collection-wird-nicht-mehr-gefunden
  • 10-eingabe-der-dct-accrualperiodicity-in-weboberflache
  • v1.3
  • 2.5.3
  • 2.5.2
  • 2.5.1
  • 2.5.0
  • 2.4.7
  • 2.4.6
  • 2.4.5
  • 2.4.4
  • 2.4.3
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3.1
  • 2.3.0
  • 2.2.0
  • 2.1.0
  • 2.0.0
  • 1.4.3
  • 1.4.2
  • 1.4.1
36 results

test_validation.py

Blame
  • attachment.component.ts 1.20 KiB
    import { CommonModule } from '@angular/common';
    import { Component, Input } from '@angular/core';
    
    import { FileIconComponent } from '../icons/file-icon/file-icon.component';
    import { SpinnerIconComponent } from '../icons/spinner-icon/spinner-icon.component';
    
    @Component({
      selector: 'ods-attachment',
      standalone: true,
      imports: [CommonModule, SpinnerIconComponent, FileIconComponent],
      styles: [':host {@apply flex border-b border-black/25 last:border-b-0}'],
      template: `<button
        class="relative flex w-full gap-3 rounded-md border bg-background-100 px-3 py-2 last:border-none hover:bg-ozggray-200"
      >
        <div class="flex-shrink">
          <ods-file-icon *ngIf="!isLoading" [fileType]="fileType" size="large" />
          <ods-spinner-icon *ngIf="isLoading" size="lg" />
        </div>
        <div class="flex grow flex-col items-start break-all text-text">
          <p class="text-start text-sm">{{ documentName }}</p>
          <p class="text-xs text-ozggray-600">{{ description }}</p>
        </div>
        <ng-content select="[close]"></ng-content>
      </button>`,
    })
    export class AttachmentComponent {
      @Input() documentName!: string;
      @Input() description = '';
      @Input() fileType!: string;
      @Input() isLoading: boolean = false;
    }