@4sh/ui-kit 0.11.0 → 0.12.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.
- package/README.md +5 -0
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +3 -3
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +3 -3
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +3 -3
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +3 -3
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +6 -6
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +6 -6
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +118 -15
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +24 -11
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +6 -6
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +3 -3
- package/fesm2022/4sh-ui-kit-forms.mjs +6 -6
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +12 -12
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +9 -9
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +17 -17
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +6 -6
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +12 -12
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +15 -15
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +3 -3
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +3 -3
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +3 -3
- package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +9 -9
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +5 -5
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +9 -9
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +18 -18
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +15 -15
- package/fesm2022/4sh-ui-kit-ripple.mjs +9 -9
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +3 -3
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +33 -33
- package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
- package/mcp/data/text-search-docs.json +6 -6
- package/mcp/data/ui-config.json +6 -6
- package/mcp/package.json +1 -1
- package/package.json +1 -1
- package/styles/component-vars.scss +2 -2
- package/styles/generated/_tokens-responsive.scss +27 -3
- package/styles.css +1 -1
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +5 -1
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +2 -1
- package/types/4sh-ui-kit-informative-ui-toast.d.ts +1 -1
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +1 -1
- package/types/4sh-ui-kit-ripple.d.ts +1 -1
- package/types/4sh-ui-kit-theming.d.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-forms-ui-file-upload.mjs","sources":["../../../projects/ui-kit/forms/ui-file-upload/src/lib/ui-file-upload.model.ts","../../../projects/ui-kit/forms/ui-file-upload/src/lib/ui-file-upload-list.ts","../../../projects/ui-kit/forms/ui-file-upload/src/lib/ui-file-upload-list.html","../../../projects/ui-kit/forms/ui-file-upload/src/lib/ui-file-upload.ts","../../../projects/ui-kit/forms/ui-file-upload/src/lib/ui-file-upload.html","../../../projects/ui-kit/forms/ui-file-upload/src/public-api.ts","../../../projects/ui-kit/forms/ui-file-upload/src/4sh-ui-kit-forms-ui-file-upload.ts"],"sourcesContent":["// =====================================================================\n// Shared model for ui-file-upload and its file-row (ui-file-upload-list).\n// =====================================================================\n\n/** Lifecycle of a selected file. */\nexport type UiUploadStatus = 'pending' | 'uploading' | 'completed' | 'error';\n\n/** A file selected in the uploader, plus its upload/validation state. */\nexport interface UiUploadFile {\n /** Stable id for tracking (kept across re-renders). */\n readonly id: string;\n /** The underlying browser File. */\n readonly file: File;\n /** File name (from the File, exposed for template convenience). */\n readonly name: string;\n /** Size in bytes. */\n readonly size: number;\n /** MIME type reported by the browser. */\n readonly type: string;\n /** Current lifecycle state. */\n status: UiUploadStatus;\n /** Upload progress, 0–100 (meaningful while `status === 'uploading'`). */\n progress: number;\n /** Object URL for image previews — MUST be revoked when the file is removed. */\n objectUrl?: string;\n /** Validation or upload error message, when `status === 'error'`. */\n error?: string;\n}\n\n/** Payload for the custom upload handler (customUpload = true). */\nexport interface UiUploadHandlerEvent {\n /** Files awaiting upload (status `pending`). */\n files: UiUploadFile[];\n /** Marks a file as uploaded (sets status `completed`, progress 100). */\n markUploaded: (file: UiUploadFile) => void;\n /** Marks a file as failed with an optional message. */\n markError: (file: UiUploadFile, message?: string) => void;\n /** Updates a file's progress (0–100). */\n setProgress: (file: UiUploadFile, progress: number) => void;\n}\n\n/** Emitted when files finish uploading (built-in uploader). */\nexport interface UiUploadEvent {\n files: UiUploadFile[];\n /** Raw XHR of the last request (built-in uploader only). */\n xhr?: XMLHttpRequest;\n}\n\n/** Emitted on a validation or upload error. */\nexport interface UiUploadErrorEvent {\n file: UiUploadFile;\n /** 'type' | 'size' | 'limit' | 'upload'. */\n reason: 'type' | 'size' | 'limit' | 'upload';\n message: string;\n}\n\n/** Human-readable file size (e.g. \"2.5 MB\"). Base-1024. */\nexport function formatFileSize(bytes: number): string {\n if (!bytes || bytes < 0) return '0 B';\n const k = 1024;\n const units = ['B', 'KB', 'MB', 'GB', 'TB'];\n const i = Math.min(Math.floor(Math.log(bytes) / Math.log(k)), units.length - 1);\n const value = bytes / Math.pow(k, i);\n const rounded = Math.round(value * 10) / 10;\n return `${rounded} ${units[i]}`;\n}\n\n/**\n * Whether a File matches an `accept` string (e.g. \"image/*,.pdf\").\n * Empty/absent accept means everything is allowed.\n */\nexport function isFileTypeAccepted(file: File, accept: string | undefined): boolean {\n if (!accept) return true;\n const patterns = accept\n .split(',')\n .map((t) => t.trim().toLowerCase())\n .filter(Boolean);\n if (!patterns.length) return true;\n\n const name = file.name.toLowerCase();\n const mime = (file.type || '').toLowerCase();\n\n return patterns.some((pattern) => {\n if (pattern.startsWith('.')) return name.endsWith(pattern); // extension\n if (pattern.endsWith('/*')) return mime.startsWith(pattern.slice(0, -1)); // \"image/\"\n return mime === pattern; // exact mime\n });\n}\n\n/** Whether a File is a previewable image. */\nexport function isImageFile(file: File): boolean {\n return /^image\\//.test(file.type);\n}\n","import { booleanAttribute, Component, computed, input, output } from '@angular/core';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiSpinner } from '@4sh/ui-kit/informative/ui-spinner';\nimport { formatFileSize, UiUploadFile } from './ui-file-upload.model';\nimport { formatLabel } from '@4sh/ui-kit/forms';\n\nexport type UiFileUploadListSize = 'default' | 'small';\n\n/**\n * ui-file-upload-list — a single file row (the repeatable unit of an upload list).\n *\n * Presentational: shows a leading thumbnail (for images) or file icon, the file\n * name + size/status, and a remove button. While the file is uploading it swaps\n * the leading icon for a `ui-spinner` and reveals a slim progress bar.\n *\n * Named to mirror the Figma component; the uploader stacks one row per file.\n */\n@Component({\n selector: 'ui-file-upload-list',\n imports: [UiIcon, UiSpinner],\n templateUrl: './ui-file-upload-list.html',\n styleUrl: './ui-file-upload-list.scss',\n})\nexport class UiFileUploadList {\n /** The file to display (name/size/status/progress/preview). */\n file = input.required<UiUploadFile>();\n size = input<UiFileUploadListSize>('default');\n /** FontAwesome icon for non-image files. */\n icon = input<string>('file');\n /** Whether the remove button is shown. */\n removable = input(true, { transform: booleanAttribute });\n /** Accessible name of the remove button (raw text — the file name is appended in the template). */\n removeAriaLabel = input<string>('Supprimer le fichier');\n /** Fallback error text when the file carries no message. */\n failedLabel = input<string>('Échec');\n /** Accessible name of the upload spinner — `{0}` is the file name. */\n uploadingLabel = input<string>('Téléversement de {0}');\n /** Accessible name of the progress bar — `{0}` is the file name. */\n progressLabel = input<string>('Progression du téléversement de {0}');\n\n /** Emitted when the remove button is activated. */\n remove = output<UiUploadFile>();\n\n /** @ignore Formatted size (e.g. \"2.5 MB\"). */\n protected readonly sizeLabel = computed(() => formatFileSize(this.file().size));\n\n /** @ignore Accessible name of the upload spinner (`{0}` filled with the file name). */\n protected readonly uploadingAriaLabel = computed(() =>\n formatLabel(this.uploadingLabel(), this.file().name),\n );\n\n /** @ignore Accessible name of the progress bar (`{0}` filled with the file name). */\n protected readonly progressAriaLabel = computed(() =>\n formatLabel(this.progressLabel(), this.file().name),\n );\n\n /** @ignore Uploading in progress → show the spinner + progress bar. */\n protected readonly isUploading = computed(() => this.file().status === 'uploading');\n\n /** @ignore Error state → surface the message + error styling. */\n protected readonly isError = computed(() => this.file().status === 'error');\n\n /** @ignore Image with a usable preview URL → render a thumbnail. */\n protected readonly thumbnail = computed(() => this.file().objectUrl ?? null);\n\n /** @ignore Secondary line: error message, else size (+ status hint). */\n protected readonly infoLabel = computed(() => {\n const f = this.file();\n if (f.status === 'error') return f.error ?? this.failedLabel();\n if (f.status === 'uploading') return `${this.sizeLabel()} · ${Math.round(f.progress)} %`;\n return this.sizeLabel();\n });\n\n /** @ignore */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-file-upload-list'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isError()) c.push('_error');\n if (this.thumbnail()) c.push('_has-thumb');\n return c.join(' ');\n });\n\n /** @ignore */\n protected onRemove(): void {\n this.remove.emit(this.file());\n }\n}\n","<div [class]=\"classes()\">\n <div class=\"ui-file-upload-list-file\">\n <span class=\"ui-file-upload-list-media\">\n @if (isUploading()) {\n <ui-spinner size=\"small\" [ariaLabel]=\"uploadingAriaLabel()\" />\n } @else if (thumbnail(); as src) {\n <img class=\"ui-file-upload-list-thumb\" [src]=\"src\" alt=\"\" />\n } @else {\n <ui-icon [name]=\"isError() ? 'triangle-exclamation' : icon()\" [size]=\"iconSize()\" />\n }\n </span>\n\n <span class=\"ui-file-upload-list-infos\">\n <span class=\"ui-file-upload-list-name\" [title]=\"file().name\">{{ file().name }}</span>\n <span class=\"ui-file-upload-list-meta\">{{ infoLabel() }}</span>\n </span>\n </div>\n\n @if (removable()) {\n <button\n type=\"button\"\n class=\"ui-file-upload-list-remove\"\n [attr.aria-label]=\"removeAriaLabel() + ' : ' + file().name\"\n (click)=\"onRemove()\"\n >\n <ui-icon name=\"trash\" [size]=\"iconSize()\" />\n </button>\n }\n\n @if (isUploading()) {\n <div\n class=\"ui-file-upload-list-progress\"\n role=\"progressbar\"\n [attr.aria-valuenow]=\"file().progress\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-label]=\"progressAriaLabel()\"\n >\n <span class=\"ui-file-upload-list-progress-bar\" [style.width.%]=\"file().progress\"></span>\n </div>\n }\n</div>\n","import {\n booleanAttribute,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n isDevMode,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { UiButton } from '@4sh/ui-kit/actions/ui-button';\nimport { UiFileUploadList } from './ui-file-upload-list';\nimport { formatLabel } from '@4sh/ui-kit/forms';\nimport {\n isFileTypeAccepted,\n isImageFile,\n UiUploadErrorEvent,\n UiUploadEvent,\n UiUploadFile,\n UiUploadHandlerEvent,\n} from './ui-file-upload.model';\n\nexport type UiFileUploadMode = 'field' | 'drag';\nexport type UiFileUploadSize = 'default' | 'small';\n\nlet nextUploadId = 0;\nlet nextInstanceId = 0;\n\n/**\n * ui-file-upload — headless file uploader (field + drag-and-drop).\n *\n * A native `<input type=\"file\">` (visually hidden) drives selection, so the OS\n * picker, keyboard and screen readers work natively; the whole component is also\n * a drop target. Selection is validated client-side (type / size / count) and\n * files can be uploaded automatically (`auto`), on demand, or via a custom\n * handler (`customUpload`). Progress is tracked with `XMLHttpRequest` so no\n * global HTTP provider is required.\n *\n * Security notes: client-side validation is a UX convenience — always re-validate\n * server-side. Image previews use object URLs that are revoked on removal/clear.\n */\n@Component({\n selector: 'ui-file-upload',\n imports: [NgTemplateOutlet, UiIcon, UiButton, UiFileUploadList],\n templateUrl: './ui-file-upload.html',\n styleUrl: './ui-file-upload.scss',\n})\nexport class UiFileUpload {\n // --- Layout ----------------------------------------------------------\n /** `field` = compact input + Browse button; `drag` = full drop zone. */\n mode = input<UiFileUploadMode>('field');\n size = input<UiFileUploadSize>('default');\n\n // --- Selection -------------------------------------------------------\n /** Native input `name` (submitted with a surrounding form). */\n name = input<string>();\n /** Allow selecting more than one file. */\n multiple = input(false, { transform: booleanAttribute });\n /** Ripple Effect */\n ripple = input(true, { transform: booleanAttribute });\n /** Native `accept` filter, e.g. \"image/*,.pdf\". Also enforced on drop. */\n accept = input<string>();\n /** Max size per file, in bytes. */\n maxFileSize = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Max number of files kept at once. */\n fileLimit = input<number, unknown>(undefined, { transform: numberAttribute });\n disabled = input(false, { transform: booleanAttribute });\n\n // --- Upload behaviour ------------------------------------------------\n /** Upload each file as soon as it is selected. */\n auto = input(false, { transform: booleanAttribute });\n /** Delegate uploading to the `uploadHandler` output instead of the built-in XHR. */\n customUpload = input(false, { transform: booleanAttribute });\n /** Endpoint for the built-in uploader. */\n url = input<string>();\n /** HTTP method for the built-in uploader. */\n method = input<'post' | 'put'>('post');\n /** Field name used for each file in the multipart body. */\n fieldName = input<string>('files');\n /** Send credentials (cookies) with the built-in upload request. */\n withCredentials = input(false, { transform: booleanAttribute });\n\n // --- Presentation / labels ------------------------------------------\n /** Show the file list under the control. */\n showFileList = input(true, { transform: booleanAttribute });\n /** Show the Upload/Cancel toolbar buttons (drag mode). */\n showControls = input(true, { transform: booleanAttribute });\n browseLabel = input<string>('Parcourir');\n /** Placeholder shown in field mode before any selection. */\n chooseLabel = input<string>('Choisir un fichier…');\n uploadLabel = input<string>('Téléverser');\n cancelLabel = input<string>('Effacer');\n /** Drag-zone link + prompt. */\n dragLinkLabel = input<string>('Cliquer pour téléverser');\n dragPromptLabel = input<string>('ou glisser-déposer les fichiers ici');\n /** Small hint under the drag prompt (e.g. \"JPG, PNG (max 5 MB)\"). */\n hint = input<string>();\n /** Accessible name for the whole control. */\n // Composite widget (dropzone + file list), not a single-value CVA control: unlike the other\n // form components it doesn't extend BaseFieldControl, so it redeclares its own `ariaLabel`\n // here — with a non-undefined default, since the dropzone always needs an accessible name.\n ariaLabel = input<string>('Téléversement de fichiers');\n /** Multi-file summary in field mode — `{0}` is replaced by the file count. */\n filesSummaryLabel = input<string>('{0} fichiers');\n /** Rejection message: file type not accepted — `{0}` is the file name. */\n invalidTypeMessage = input<string>('Type de fichier non autorisé : {0}');\n /** Rejection message: file too large — `{0}` is the file name. */\n invalidSizeMessage = input<string>('Fichier trop volumineux : {0}');\n /** Rejection message: `fileLimit` reached — `{0}` is the limit. */\n limitReachedMessage = input<string>('Nombre maximum de fichiers atteint ({0}).');\n /** Error shown when an upload fails without a server message. */\n uploadErrorMessage = input<string>('Échec du téléversement');\n /** Error shown when the upload request fails at the network level. */\n networkErrorMessage = input<string>('Erreur réseau');\n /** Error shown on a non-2xx response — `{0}` is the HTTP status. */\n httpErrorMessage = input<string>('Erreur {0}');\n\n // --- Templates (drag/advanced) --------------------------------------\n /** Overrides a single file row (context: `{ $implicit: UiUploadFile, remove }`). */\n fileTemplate = input<TemplateRef<unknown>>();\n /** Overrides the content section (context: `{ $implicit: UiUploadFile[], remove, clear }`). */\n contentTemplate = input<TemplateRef<unknown>>();\n /** Custom toolbar content (context: `{ $implicit: UiUploadFile[], choose, upload, clear }`). */\n toolbarTemplate = input<TemplateRef<unknown>>();\n\n // --- Outputs ---------------------------------------------------------\n /** Files added to the selection (validated). */\n selected = output<UiUploadFile[]>();\n /** The full current selection changed. */\n filesChange = output<UiUploadFile[]>();\n /** A custom upload was requested (customUpload = true). */\n uploadHandler = output<UiUploadHandlerEvent>();\n /** Built-in upload completed for a batch. */\n uploaded = output<UiUploadEvent>();\n /** A file failed validation or upload. */\n uploadError = output<UiUploadErrorEvent>();\n /** A file was removed. */\n removed = output<UiUploadFile>();\n /** The selection was cleared. */\n cleared = output<void>();\n\n /** @ignore Stable id linking the visible label(s) to the native input. */\n protected readonly inputId = `ui-file-upload-${nextInstanceId++}`;\n\n private readonly host = inject(ElementRef<HTMLElement>);\n private readonly destroyRef = inject(DestroyRef);\n private readonly fileInput = viewChild.required<ElementRef<HTMLInputElement>>('fileInput');\n\n /** In-flight requests, keyed by file id, so we can abort. */\n private readonly requests = new Map<string, XMLHttpRequest>();\n\n /** @ignore Current selection. */\n private readonly selection = signal<UiUploadFile[]>([]);\n /** Read-only view of the current files. */\n readonly files = this.selection.asReadonly();\n\n /** @ignore Drop-zone highlight while dragging over. */\n protected readonly dragging = signal(false);\n /** @ignore Transient validation messages (rendered in a live region). */\n protected readonly messages = signal<string[]>([]);\n\n constructor() {\n // Revoke every object URL when the component is destroyed (no leaks).\n this.destroyRef.onDestroy(() => {\n for (const f of this.selection()) this.revoke(f);\n for (const xhr of this.requests.values()) xhr.abort();\n });\n\n // A11y safeguard: the control needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (!this.ariaLabel()) {\n console.warn('[ui-file-upload] Provide `ariaLabel` to name the control.');\n }\n });\n }\n }\n\n /** @ignore */\n protected readonly hasFiles = computed(() => this.selection().length > 0);\n /** @ignore */\n protected readonly pending = computed(() =>\n this.selection().filter((f) => f.status === 'pending'),\n );\n /** @ignore Single-file summary shown in field mode. */\n protected readonly fieldSummary = computed(() => {\n const files = this.selection();\n if (!files.length) return this.chooseLabel();\n if (files.length === 1) return files[0].name;\n return formatLabel(this.filesSummaryLabel(), files.length);\n });\n /** @ignore */\n protected readonly canUpload = computed(\n () => !this.disabled() && this.pending().length > 0 && (this.customUpload() || !!this.url()),\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-file-upload', `_${this.mode()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.dragging()) c.push('_dragging');\n if (this.disabled()) c.push('_disabled');\n return c.join(' ');\n });\n\n // --- Bound refs for custom templates (stable identities) -------------\n /** @ignore */ protected readonly removeFn = (f: UiUploadFile): void => this.remove(f);\n /** @ignore */ protected readonly clearFn = (): void => this.clear();\n /** @ignore */ protected readonly chooseFn = (): void => this.choose();\n /** @ignore */ protected readonly uploadFn = (): void => this.upload();\n\n // --- Public API ------------------------------------------------------\n\n /** Opens the native file picker. */\n choose(): void {\n if (this.disabled()) return;\n this.fileInput().nativeElement.click();\n }\n\n /** Uploads all pending files (built-in XHR, or emits `uploadHandler`). */\n upload(): void {\n const pending = this.pending();\n if (!pending.length) return;\n\n if (this.customUpload()) {\n this.emitCustomUpload(pending);\n return;\n }\n const endpoint = this.url();\n if (!endpoint) return;\n for (const f of pending) this.xhrUpload(f, endpoint);\n }\n\n /** Removes a file (aborts its upload, revokes its preview). */\n remove(target: UiUploadFile): void {\n this.requests.get(target.id)?.abort();\n this.requests.delete(target.id);\n this.revoke(target);\n this.selection.update((files) => files.filter((f) => f.id !== target.id));\n this.removed.emit(target);\n this.filesChange.emit(this.selection());\n }\n\n /** Clears the whole selection. */\n clear(): void {\n for (const xhr of this.requests.values()) xhr.abort();\n this.requests.clear();\n for (const f of this.selection()) this.revoke(f);\n this.selection.set([]);\n this.messages.set([]);\n this.resetInput();\n this.cleared.emit();\n this.filesChange.emit([]);\n }\n\n // --- Native input / drop --------------------------------------------\n\n /** @ignore */\n protected onInputChange(event: Event): void {\n const input = event.target as HTMLInputElement;\n this.ingest(input.files);\n // Reset so selecting the same file again re-triggers `change`.\n this.resetInput();\n }\n\n /** @ignore */\n protected onDragOver(event: DragEvent): void {\n if (this.disabled()) return;\n event.preventDefault();\n event.stopPropagation();\n this.dragging.set(true);\n }\n\n /** @ignore */\n protected onDragLeave(event: DragEvent): void {\n if (this.disabled()) return;\n event.preventDefault();\n // Ignore leave events bubbling from children still inside the zone.\n if (this.host.nativeElement.contains(event.relatedTarget as Node)) return;\n this.dragging.set(false);\n }\n\n /** @ignore */\n protected onDrop(event: DragEvent): void {\n if (this.disabled()) return;\n event.preventDefault();\n event.stopPropagation();\n this.dragging.set(false);\n this.ingest(event.dataTransfer?.files ?? null);\n }\n\n // --- Internals -------------------------------------------------------\n\n /** Validate + add a FileList to the selection. */\n private ingest(list: FileList | null): void {\n if (!list || !list.length || this.disabled()) return;\n\n const incoming = Array.from(list);\n const added: UiUploadFile[] = [];\n const newMessages: string[] = [];\n const limit = this.fileLimit();\n const maxSize = this.maxFileSize();\n\n for (const file of incoming) {\n // Single-file mode: the new file replaces the current one, so only cap the incoming batch.\n if (!this.multiple() && added.length >= 1) break;\n\n const item = this.toUploadFile(file);\n\n if (!isFileTypeAccepted(file, this.accept())) {\n this.fail(item, 'type', formatLabel(this.invalidTypeMessage(), file.name), newMessages);\n continue;\n }\n if (maxSize != null && file.size > maxSize) {\n this.fail(item, 'size', formatLabel(this.invalidSizeMessage(), file.name), newMessages);\n continue;\n }\n if (\n limit != null &&\n (this.multiple() ? this.selection().length : 0) + added.length >= limit\n ) {\n this.fail(item, 'limit', formatLabel(this.limitReachedMessage(), limit), newMessages);\n continue;\n }\n added.push(item);\n }\n\n this.messages.set(newMessages);\n if (!added.length) return;\n\n if (!this.multiple()) {\n // Replacement: release resources held by the previous selection.\n for (const previous of this.selection()) {\n this.requests.get(previous.id)?.abort();\n this.requests.delete(previous.id);\n this.revoke(previous);\n }\n }\n this.selection.update((files) => (this.multiple() ? [...files, ...added] : added));\n this.selected.emit(added);\n this.filesChange.emit(this.selection());\n\n if (this.auto()) this.upload();\n }\n\n private toUploadFile(file: File): UiUploadFile {\n return {\n id: `uifu-${nextUploadId++}`,\n file,\n name: file.name,\n size: file.size,\n type: file.type,\n status: 'pending',\n progress: 0,\n objectUrl: isImageFile(file) ? URL.createObjectURL(file) : undefined,\n };\n }\n\n private fail(\n item: UiUploadFile,\n reason: UiUploadErrorEvent['reason'],\n message: string,\n sink: string[],\n ): void {\n this.revoke(item);\n sink.push(message);\n this.uploadError.emit({ file: { ...item, status: 'error', error: message }, reason, message });\n }\n\n /** Mutates one file in place (immutably) and pushes a new array reference. */\n private patch(id: string, changes: Partial<UiUploadFile>): void {\n this.selection.update((files) => files.map((f) => (f.id === id ? { ...f, ...changes } : f)));\n }\n\n private emitCustomUpload(pending: UiUploadFile[]): void {\n for (const f of pending) this.patch(f.id, { status: 'uploading', progress: 0 });\n this.uploadHandler.emit({\n files: pending,\n setProgress: (file, progress) =>\n this.patch(file.id, {\n status: 'uploading',\n progress: Math.max(0, Math.min(100, progress)),\n }),\n markUploaded: (file) => {\n this.patch(file.id, { status: 'completed', progress: 100 });\n this.filesChange.emit(this.selection());\n },\n markError: (file, msg) => {\n this.patch(file.id, { status: 'error', error: msg ?? this.uploadErrorMessage() });\n this.uploadError.emit({\n file,\n reason: 'upload',\n message: msg ?? this.uploadErrorMessage(),\n });\n },\n });\n }\n\n private xhrUpload(item: UiUploadFile, endpoint: string): void {\n const xhr = new XMLHttpRequest();\n this.requests.set(item.id, xhr);\n this.patch(item.id, { status: 'uploading', progress: 0 });\n\n const body = new FormData();\n body.append(this.fieldName(), item.file, item.name);\n\n xhr.upload.addEventListener('progress', (e) => {\n if (e.lengthComputable)\n this.patch(item.id, { progress: Math.round((e.loaded / e.total) * 100) });\n });\n xhr.addEventListener('load', () => {\n this.requests.delete(item.id);\n if (xhr.status >= 200 && xhr.status < 300) {\n this.patch(item.id, { status: 'completed', progress: 100 });\n this.uploaded.emit({ files: [item], xhr });\n this.filesChange.emit(this.selection());\n } else {\n this.uploadFailed(item, formatLabel(this.httpErrorMessage(), xhr.status));\n }\n });\n xhr.addEventListener('error', () => this.uploadFailed(item, this.networkErrorMessage()));\n xhr.addEventListener('abort', () => this.requests.delete(item.id));\n\n xhr.open(this.method().toUpperCase(), endpoint, true);\n xhr.withCredentials = this.withCredentials();\n xhr.send(body);\n }\n\n private uploadFailed(item: UiUploadFile, message: string): void {\n this.requests.delete(item.id);\n this.patch(item.id, { status: 'error', error: message });\n this.uploadError.emit({ file: item, reason: 'upload', message });\n }\n\n private revoke(file: UiUploadFile): void {\n if (file.objectUrl) URL.revokeObjectURL(file.objectUrl);\n }\n\n private resetInput(): void {\n const el = this.fileInput().nativeElement;\n if (el) el.value = '';\n }\n}\n","<div\n [class]=\"classes()\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (drop)=\"onDrop($event)\"\n>\n <!-- Real native control (visually hidden, keeps keyboard + screen-reader support) -->\n <input\n #fileInput\n class=\"ui-file-upload-input\"\n type=\"file\"\n [id]=\"inputId\"\n [attr.name]=\"name()\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (change)=\"onInputChange($event)\"\n />\n\n @if (mode() === 'field') {\n <!-- Field mode: compact summary + Browse trigger (whole label opens picker) -->\n <label class=\"ui-file-upload-field\" [attr.for]=\"inputId\" [attr.data-ripple]=\"ripple() ? 'on' : 'off'\">\n <span class=\"ui-file-upload-field-text\" [class._placeholder]=\"!hasFiles()\">{{\n fieldSummary()\n }}</span>\n <span class=\"ui-file-upload-browse\" aria-hidden=\"true\">{{ browseLabel() }}</span>\n </label>\n } @else {\n <!-- Drag mode: full drop zone -->\n <label class=\"ui-file-upload-zone\" [attr.for]=\"inputId\" [attr.data-ripple]=\"ripple() ? 'on' : 'off'\">\n <ui-icon class=\"ui-file-upload-zone-icon\" name=\"cloud-arrow-up\" size=\"lg\" />\n <span class=\"ui-file-upload-zone-content\">\n <span class=\"ui-file-upload-zone-title\">\n <span class=\"ui-file-upload-zone-link\">{{ dragLinkLabel() }}</span>\n <span class=\"ui-file-upload-zone-prompt\">{{ dragPromptLabel() }}</span>\n </span>\n @if (hint(); as h) {\n <span class=\"ui-file-upload-zone-hint\">{{ h }}</span>\n }\n </span>\n </label>\n\n <!-- Toolbar (custom, or default Upload/Clear actions) -->\n @if (toolbarTemplate(); as tpl) {\n <div class=\"ui-file-upload-toolbar\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: files(),\n choose: chooseFn,\n upload: uploadFn,\n clear: clearFn,\n }\"\n />\n </div>\n } @else if (showControls() && hasFiles()) {\n <div class=\"ui-file-upload-toolbar\">\n @if (!auto()) {\n <ui-button\n [ripple]=\"ripple()\"\n [label]=\"uploadLabel()\"\n [size]=\"size() === 'small' ? 'small' : 'default'\"\n icon=\"cloud-arrow-up\"\n [disabled]=\"!canUpload()\"\n (buttonClick)=\"upload()\"\n />\n }\n <ui-button\n [ripple]=\"ripple()\"\n [label]=\"cancelLabel()\"\n level=\"low\"\n [size]=\"size() === 'small' ? 'small' : 'default'\"\n icon=\"xmark\"\n (buttonClick)=\"clear()\"\n />\n </div>\n }\n }\n\n <!-- Content section: the file list -->\n @if (contentTemplate(); as tpl) {\n <div class=\"ui-file-upload-content\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: files(), remove: removeFn, clear: clearFn }\"\n />\n </div>\n } @else if (showFileList() && hasFiles()) {\n <ul class=\"ui-file-upload-content\" role=\"list\">\n @for (f of files(); track f.id) {\n <li>\n @if (fileTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: f, remove: removeFn }\"\n />\n } @else {\n <ui-file-upload-list [file]=\"f\" [size]=\"size()\" (remove)=\"remove($event)\" />\n }\n </li>\n }\n </ul>\n }\n\n <!-- Validation messages (assertive live region) -->\n @if (messages().length) {\n <div class=\"ui-file-upload-messages\" role=\"alert\" aria-live=\"assertive\">\n @for (msg of messages(); track msg) {\n <p class=\"ui-file-upload-message\">{{ msg }}</p>\n }\n </div>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-file-upload\n *\n * Includes `ui-file-upload-list`: it renders the upload's own file model,\n * so the two live in one entry point (a separate one would be a cycle).\n */\n\nexport * from './lib/ui-file-upload-list';\nexport * from './lib/ui-file-upload.model';\nexport * from './lib/ui-file-upload';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AACA;AAsDA;AACM,SAAU,cAAc,CAAC,KAAa,EAAA;AAC1C,IAAA,IAAI,CAAC,KAAK,IAAI,KAAK,GAAG,CAAC;AAAE,QAAA,OAAO,KAAK;IACrC,MAAM,CAAC,GAAG,IAAI;AACd,IAAA,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;AAC3C,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAA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CAAC,EAAA,QAAA,EAAA,q4HAAA,EAAA,MAAA,EAAA,CAAA,y7PAAA,CAAA,EAAA;w9HAuGe,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1J3F;;;;;AAKG;;ACLH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-forms-ui-file-upload.mjs","sources":["../../../projects/ui-kit/forms/ui-file-upload/src/lib/ui-file-upload.model.ts","../../../projects/ui-kit/forms/ui-file-upload/src/lib/ui-file-upload-list.ts","../../../projects/ui-kit/forms/ui-file-upload/src/lib/ui-file-upload-list.html","../../../projects/ui-kit/forms/ui-file-upload/src/lib/ui-file-upload.ts","../../../projects/ui-kit/forms/ui-file-upload/src/lib/ui-file-upload.html","../../../projects/ui-kit/forms/ui-file-upload/src/public-api.ts","../../../projects/ui-kit/forms/ui-file-upload/src/4sh-ui-kit-forms-ui-file-upload.ts"],"sourcesContent":["// =====================================================================\n// Shared model for ui-file-upload and its file-row (ui-file-upload-list).\n// =====================================================================\n\n/** Lifecycle of a selected file. */\nexport type UiUploadStatus = 'pending' | 'uploading' | 'completed' | 'error';\n\n/** A file selected in the uploader, plus its upload/validation state. */\nexport interface UiUploadFile {\n /** Stable id for tracking (kept across re-renders). */\n readonly id: string;\n /** The underlying browser File. */\n readonly file: File;\n /** File name (from the File, exposed for template convenience). */\n readonly name: string;\n /** Size in bytes. */\n readonly size: number;\n /** MIME type reported by the browser. */\n readonly type: string;\n /** Current lifecycle state. */\n status: UiUploadStatus;\n /** Upload progress, 0–100 (meaningful while `status === 'uploading'`). */\n progress: number;\n /** Object URL for image previews — MUST be revoked when the file is removed. */\n objectUrl?: string;\n /** Validation or upload error message, when `status === 'error'`. */\n error?: string;\n}\n\n/** Payload for the custom upload handler (customUpload = true). */\nexport interface UiUploadHandlerEvent {\n /** Files awaiting upload (status `pending`). */\n files: UiUploadFile[];\n /** Marks a file as uploaded (sets status `completed`, progress 100). */\n markUploaded: (file: UiUploadFile) => void;\n /** Marks a file as failed with an optional message. */\n markError: (file: UiUploadFile, message?: string) => void;\n /** Updates a file's progress (0–100). */\n setProgress: (file: UiUploadFile, progress: number) => void;\n}\n\n/** Emitted when files finish uploading (built-in uploader). */\nexport interface UiUploadEvent {\n files: UiUploadFile[];\n /** Raw XHR of the last request (built-in uploader only). */\n xhr?: XMLHttpRequest;\n}\n\n/** Emitted on a validation or upload error. */\nexport interface UiUploadErrorEvent {\n file: UiUploadFile;\n /** 'type' | 'size' | 'limit' | 'upload'. */\n reason: 'type' | 'size' | 'limit' | 'upload';\n message: string;\n}\n\n/** Human-readable file size (e.g. \"2.5 MB\"). Base-1024. */\nexport function formatFileSize(bytes: number): string {\n if (!bytes || bytes < 0) return '0 B';\n const k = 1024;\n const units = ['B', 'KB', 'MB', 'GB', 'TB'];\n const i = Math.min(Math.floor(Math.log(bytes) / Math.log(k)), units.length - 1);\n const value = bytes / Math.pow(k, i);\n const rounded = Math.round(value * 10) / 10;\n return `${rounded} ${units[i]}`;\n}\n\n/**\n * Whether a File matches an `accept` string (e.g. \"image/*,.pdf\").\n * Empty/absent accept means everything is allowed.\n */\nexport function isFileTypeAccepted(file: File, accept: string | undefined): boolean {\n if (!accept) return true;\n const patterns = accept\n .split(',')\n .map((t) => t.trim().toLowerCase())\n .filter(Boolean);\n if (!patterns.length) return true;\n\n const name = file.name.toLowerCase();\n const mime = (file.type || '').toLowerCase();\n\n return patterns.some((pattern) => {\n if (pattern.startsWith('.')) return name.endsWith(pattern); // extension\n if (pattern.endsWith('/*')) return mime.startsWith(pattern.slice(0, -1)); // \"image/\"\n return mime === pattern; // exact mime\n });\n}\n\n/** Whether a File is a previewable image. */\nexport function isImageFile(file: File): boolean {\n return /^image\\//.test(file.type);\n}\n","import { booleanAttribute, Component, computed, input, output } from '@angular/core';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiSpinner } from '@4sh/ui-kit/informative/ui-spinner';\nimport { formatFileSize, UiUploadFile } from './ui-file-upload.model';\nimport { formatLabel } from '@4sh/ui-kit/forms';\n\nexport type UiFileUploadListSize = 'default' | 'small';\n\n/**\n * ui-file-upload-list — a single file row (the repeatable unit of an upload list).\n *\n * Presentational: shows a leading thumbnail (for images) or file icon, the file\n * name + size/status, and a remove button. While the file is uploading it swaps\n * the leading icon for a `ui-spinner` and reveals a slim progress bar.\n *\n * Named to mirror the Figma component; the uploader stacks one row per file.\n */\n@Component({\n selector: 'ui-file-upload-list',\n imports: [UiIcon, UiSpinner],\n templateUrl: './ui-file-upload-list.html',\n styleUrl: './ui-file-upload-list.scss',\n})\nexport class UiFileUploadList {\n /** The file to display (name/size/status/progress/preview). */\n file = input.required<UiUploadFile>();\n size = input<UiFileUploadListSize>('default');\n /** FontAwesome icon for non-image files. */\n icon = input<string>('file');\n /** Whether the remove button is shown. */\n removable = input(true, { transform: booleanAttribute });\n /** Accessible name of the remove button (raw text — the file name is appended in the template). */\n removeAriaLabel = input<string>('Supprimer le fichier');\n /** Fallback error text when the file carries no message. */\n failedLabel = input<string>('Échec');\n /** Accessible name of the upload spinner — `{0}` is the file name. */\n uploadingLabel = input<string>('Téléversement de {0}');\n /** Accessible name of the progress bar — `{0}` is the file name. */\n progressLabel = input<string>('Progression du téléversement de {0}');\n\n /** Emitted when the remove button is activated. */\n remove = output<UiUploadFile>();\n\n /** @ignore Formatted size (e.g. \"2.5 MB\"). */\n protected readonly sizeLabel = computed(() => formatFileSize(this.file().size));\n\n /** @ignore Accessible name of the upload spinner (`{0}` filled with the file name). */\n protected readonly uploadingAriaLabel = computed(() =>\n formatLabel(this.uploadingLabel(), this.file().name),\n );\n\n /** @ignore Accessible name of the progress bar (`{0}` filled with the file name). */\n protected readonly progressAriaLabel = computed(() =>\n formatLabel(this.progressLabel(), this.file().name),\n );\n\n /** @ignore Uploading in progress → show the spinner + progress bar. */\n protected readonly isUploading = computed(() => this.file().status === 'uploading');\n\n /** @ignore Error state → surface the message + error styling. */\n protected readonly isError = computed(() => this.file().status === 'error');\n\n /** @ignore Image with a usable preview URL → render a thumbnail. */\n protected readonly thumbnail = computed(() => this.file().objectUrl ?? null);\n\n /** @ignore Secondary line: error message, else size (+ status hint). */\n protected readonly infoLabel = computed(() => {\n const f = this.file();\n if (f.status === 'error') return f.error ?? this.failedLabel();\n if (f.status === 'uploading') return `${this.sizeLabel()} · ${Math.round(f.progress)} %`;\n return this.sizeLabel();\n });\n\n /** @ignore */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-file-upload-list'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isError()) c.push('_error');\n if (this.thumbnail()) c.push('_has-thumb');\n return c.join(' ');\n });\n\n /** @ignore */\n protected onRemove(): void {\n this.remove.emit(this.file());\n }\n}\n","<div [class]=\"classes()\">\n <div class=\"ui-file-upload-list-file\">\n <span class=\"ui-file-upload-list-media\">\n @if (isUploading()) {\n <ui-spinner size=\"small\" [ariaLabel]=\"uploadingAriaLabel()\" />\n } @else if (thumbnail(); as src) {\n <img class=\"ui-file-upload-list-thumb\" [src]=\"src\" alt=\"\" />\n } @else {\n <ui-icon [name]=\"isError() ? 'triangle-exclamation' : icon()\" [size]=\"iconSize()\" />\n }\n </span>\n\n <span class=\"ui-file-upload-list-infos\">\n <span class=\"ui-file-upload-list-name\" [title]=\"file().name\">{{ file().name }}</span>\n <span class=\"ui-file-upload-list-meta\">{{ infoLabel() }}</span>\n </span>\n </div>\n\n @if (removable()) {\n <button\n type=\"button\"\n class=\"ui-file-upload-list-remove\"\n [attr.aria-label]=\"removeAriaLabel() + ' : ' + file().name\"\n (click)=\"onRemove()\"\n >\n <ui-icon name=\"trash\" [size]=\"iconSize()\" />\n </button>\n }\n\n @if (isUploading()) {\n <div\n class=\"ui-file-upload-list-progress\"\n role=\"progressbar\"\n [attr.aria-valuenow]=\"file().progress\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-label]=\"progressAriaLabel()\"\n >\n <span class=\"ui-file-upload-list-progress-bar\" [style.width.%]=\"file().progress\"></span>\n </div>\n }\n</div>\n","import {\n booleanAttribute,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n isDevMode,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { UiButton } from '@4sh/ui-kit/actions/ui-button';\nimport { UiFileUploadList } from './ui-file-upload-list';\nimport { formatLabel } from '@4sh/ui-kit/forms';\nimport {\n isFileTypeAccepted,\n isImageFile,\n UiUploadErrorEvent,\n UiUploadEvent,\n UiUploadFile,\n UiUploadHandlerEvent,\n} from './ui-file-upload.model';\n\nexport type UiFileUploadMode = 'field' | 'drag';\nexport type UiFileUploadSize = 'default' | 'small';\n\nlet nextUploadId = 0;\nlet nextInstanceId = 0;\n\n/**\n * ui-file-upload — headless file uploader (field + drag-and-drop).\n *\n * A native `<input type=\"file\">` (visually hidden) drives selection, so the OS\n * picker, keyboard and screen readers work natively; the whole component is also\n * a drop target. Selection is validated client-side (type / size / count) and\n * files can be uploaded automatically (`auto`), on demand, or via a custom\n * handler (`customUpload`). Progress is tracked with `XMLHttpRequest` so no\n * global HTTP provider is required.\n *\n * Security notes: client-side validation is a UX convenience — always re-validate\n * server-side. Image previews use object URLs that are revoked on removal/clear.\n */\n@Component({\n selector: 'ui-file-upload',\n imports: [NgTemplateOutlet, UiIcon, UiButton, UiFileUploadList],\n templateUrl: './ui-file-upload.html',\n styleUrl: './ui-file-upload.scss',\n})\nexport class UiFileUpload {\n // --- Layout ----------------------------------------------------------\n /** `field` = compact input + Browse button; `drag` = full drop zone. */\n mode = input<UiFileUploadMode>('field');\n size = input<UiFileUploadSize>('default');\n\n // --- Selection -------------------------------------------------------\n /** Native `name`: a surrounding `<form>` submits the current selection under it. */\n name = input<string>();\n /** Allow selecting more than one file. */\n multiple = input(false, { transform: booleanAttribute });\n /** Ripple Effect */\n ripple = input(true, { transform: booleanAttribute });\n /** Native `accept` filter, e.g. \"image/*,.pdf\". Also enforced on drop. */\n accept = input<string>();\n /** Max size per file, in bytes. */\n maxFileSize = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Max number of files kept at once. */\n fileLimit = input<number, unknown>(undefined, { transform: numberAttribute });\n disabled = input(false, { transform: booleanAttribute });\n\n // --- Upload behaviour ------------------------------------------------\n /** Upload each file as soon as it is selected. */\n auto = input(false, { transform: booleanAttribute });\n /** Delegate uploading to the `uploadHandler` output instead of the built-in XHR. */\n customUpload = input(false, { transform: booleanAttribute });\n /** Endpoint for the built-in uploader. */\n url = input<string>();\n /** HTTP method for the built-in uploader. */\n method = input<'post' | 'put'>('post');\n /** Field name used for each file in the multipart body. */\n fieldName = input<string>('files');\n /** Send credentials (cookies) with the built-in upload request. */\n withCredentials = input(false, { transform: booleanAttribute });\n\n // --- Presentation / labels ------------------------------------------\n /** Show the file list under the control. */\n showFileList = input(true, { transform: booleanAttribute });\n /** Show the Upload/Cancel toolbar buttons (drag mode). */\n showControls = input(true, { transform: booleanAttribute });\n browseLabel = input<string>('Parcourir');\n /** Placeholder shown in field mode before any selection. */\n chooseLabel = input<string>('Choisir un fichier…');\n uploadLabel = input<string>('Téléverser');\n cancelLabel = input<string>('Effacer');\n /** Drag-zone link + prompt. */\n dragLinkLabel = input<string>('Cliquer pour téléverser');\n dragPromptLabel = input<string>('ou glisser-déposer les fichiers ici');\n /** Small hint under the drag prompt (e.g. \"JPG, PNG (max 5 MB)\"). */\n hint = input<string>();\n /** Accessible name for the whole control. */\n // Composite widget (dropzone + file list), not a single-value CVA control: unlike the other\n // form components it doesn't extend BaseFieldControl, so it redeclares its own `ariaLabel`\n // here — with a non-undefined default, since the dropzone always needs an accessible name.\n ariaLabel = input<string>('Téléversement de fichiers');\n /** Multi-file summary in field mode — `{0}` is replaced by the file count. */\n filesSummaryLabel = input<string>('{0} fichiers');\n /** Rejection message: file type not accepted — `{0}` is the file name. */\n invalidTypeMessage = input<string>('Type de fichier non autorisé : {0}');\n /** Rejection message: file too large — `{0}` is the file name. */\n invalidSizeMessage = input<string>('Fichier trop volumineux : {0}');\n /** Rejection message: `fileLimit` reached — `{0}` is the limit. */\n limitReachedMessage = input<string>('Nombre maximum de fichiers atteint ({0}).');\n /** Error shown when an upload fails without a server message. */\n uploadErrorMessage = input<string>('Échec du téléversement');\n /** Error shown when the upload request fails at the network level. */\n networkErrorMessage = input<string>('Erreur réseau');\n /** Error shown on a non-2xx response — `{0}` is the HTTP status. */\n httpErrorMessage = input<string>('Erreur {0}');\n\n // --- Templates (drag/advanced) --------------------------------------\n /** Overrides a single file row (context: `{ $implicit: UiUploadFile, remove }`). */\n fileTemplate = input<TemplateRef<unknown>>();\n /** Overrides the content section (context: `{ $implicit: UiUploadFile[], remove, clear }`). */\n contentTemplate = input<TemplateRef<unknown>>();\n /** Custom toolbar content (context: `{ $implicit: UiUploadFile[], choose, upload, clear }`). */\n toolbarTemplate = input<TemplateRef<unknown>>();\n\n // --- Outputs ---------------------------------------------------------\n /** Files added to the selection (validated). */\n selected = output<UiUploadFile[]>();\n /** The full current selection changed. */\n filesChange = output<UiUploadFile[]>();\n /** A custom upload was requested (customUpload = true). */\n uploadHandler = output<UiUploadHandlerEvent>();\n /** Built-in upload completed for a batch. */\n uploaded = output<UiUploadEvent>();\n /** A file failed validation or upload. */\n uploadError = output<UiUploadErrorEvent>();\n /** A file was removed. */\n removed = output<UiUploadFile>();\n /** The selection was cleared. */\n cleared = output<void>();\n\n /** @ignore Stable id linking the visible label(s) to the native input. */\n protected readonly inputId = `ui-file-upload-${nextInstanceId++}`;\n\n private readonly host = inject(ElementRef<HTMLElement>);\n private readonly destroyRef = inject(DestroyRef);\n private readonly fileInput = viewChild.required<ElementRef<HTMLInputElement>>('fileInput');\n private readonly formValueInput = viewChild<ElementRef<HTMLInputElement>>('formValue');\n\n /** In-flight requests, keyed by file id, so we can abort. */\n private readonly requests = new Map<string, XMLHttpRequest>();\n\n /** @ignore Current selection. */\n private readonly selection = signal<UiUploadFile[]>([]);\n /** Read-only view of the current files. */\n readonly files = this.selection.asReadonly();\n\n /** @ignore Drop-zone highlight while dragging over. */\n protected readonly dragging = signal(false);\n /** @ignore Transient validation messages (rendered in a live region). */\n protected readonly messages = signal<string[]>([]);\n\n constructor() {\n // Revoke every object URL when the component is destroyed (no leaks).\n this.destroyRef.onDestroy(() => {\n for (const f of this.selection()) this.revoke(f);\n for (const xhr of this.requests.values()) xhr.abort();\n });\n\n // The picker is emptied after each choice: the hidden field carries the selection.\n effect(() => {\n const el = this.formValueInput()?.nativeElement;\n const files = this.selection();\n if (!el || typeof DataTransfer === 'undefined') return;\n const data = new DataTransfer();\n for (const f of files) data.items.add(f.file);\n el.files = data.files;\n });\n\n // A11y safeguard: the control needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (!this.ariaLabel()) {\n console.warn('[ui-file-upload] Provide `ariaLabel` to name the control.');\n }\n });\n }\n }\n\n /** @ignore */\n protected readonly hasFiles = computed(() => this.selection().length > 0);\n /** @ignore */\n protected readonly pending = computed(() =>\n this.selection().filter((f) => f.status === 'pending'),\n );\n /** @ignore Single-file summary shown in field mode. */\n protected readonly fieldSummary = computed(() => {\n const files = this.selection();\n if (!files.length) return this.chooseLabel();\n if (files.length === 1) return files[0].name;\n return formatLabel(this.filesSummaryLabel(), files.length);\n });\n /** @ignore */\n protected readonly canUpload = computed(\n () => !this.disabled() && this.pending().length > 0 && (this.customUpload() || !!this.url()),\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-file-upload', `_${this.mode()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.dragging()) c.push('_dragging');\n if (this.disabled()) c.push('_disabled');\n return c.join(' ');\n });\n\n // --- Bound refs for custom templates (stable identities) -------------\n /** @ignore */ protected readonly removeFn = (f: UiUploadFile): void => this.remove(f);\n /** @ignore */ protected readonly clearFn = (): void => this.clear();\n /** @ignore */ protected readonly chooseFn = (): void => this.choose();\n /** @ignore */ protected readonly uploadFn = (): void => this.upload();\n\n // --- Public API ------------------------------------------------------\n\n /** Opens the native file picker. */\n choose(): void {\n if (this.disabled()) return;\n this.fileInput().nativeElement.click();\n }\n\n /** Uploads all pending files (built-in XHR, or emits `uploadHandler`). */\n upload(): void {\n const pending = this.pending();\n if (!pending.length) return;\n\n if (this.customUpload()) {\n this.emitCustomUpload(pending);\n return;\n }\n const endpoint = this.url();\n if (!endpoint) return;\n for (const f of pending) this.xhrUpload(f, endpoint);\n }\n\n /** Removes a file (aborts its upload, revokes its preview). */\n remove(target: UiUploadFile): void {\n this.requests.get(target.id)?.abort();\n this.requests.delete(target.id);\n this.revoke(target);\n this.selection.update((files) => files.filter((f) => f.id !== target.id));\n this.removed.emit(target);\n this.filesChange.emit(this.selection());\n }\n\n /** Clears the whole selection. */\n clear(): void {\n for (const xhr of this.requests.values()) xhr.abort();\n this.requests.clear();\n for (const f of this.selection()) this.revoke(f);\n this.selection.set([]);\n this.messages.set([]);\n this.resetInput();\n this.cleared.emit();\n this.filesChange.emit([]);\n }\n\n // --- Native input / drop --------------------------------------------\n\n /** @ignore */\n protected onInputChange(event: Event): void {\n const input = event.target as HTMLInputElement;\n this.ingest(input.files);\n // Reset so selecting the same file again re-triggers `change`.\n this.resetInput();\n }\n\n /** @ignore */\n protected onDragOver(event: DragEvent): void {\n if (this.disabled()) return;\n event.preventDefault();\n event.stopPropagation();\n this.dragging.set(true);\n }\n\n /** @ignore */\n protected onDragLeave(event: DragEvent): void {\n if (this.disabled()) return;\n event.preventDefault();\n // Ignore leave events bubbling from children still inside the zone.\n if (this.host.nativeElement.contains(event.relatedTarget as Node)) return;\n this.dragging.set(false);\n }\n\n /** @ignore */\n protected onDrop(event: DragEvent): void {\n if (this.disabled()) return;\n event.preventDefault();\n event.stopPropagation();\n this.dragging.set(false);\n this.ingest(event.dataTransfer?.files ?? null);\n }\n\n // --- Internals -------------------------------------------------------\n\n /** Validate + add a FileList to the selection. */\n private ingest(list: FileList | null): void {\n if (!list || !list.length || this.disabled()) return;\n\n const incoming = Array.from(list);\n const added: UiUploadFile[] = [];\n const newMessages: string[] = [];\n const limit = this.fileLimit();\n const maxSize = this.maxFileSize();\n\n for (const file of incoming) {\n // Single-file mode: the new file replaces the current one, so only cap the incoming batch.\n if (!this.multiple() && added.length >= 1) break;\n\n const item = this.toUploadFile(file);\n\n if (!isFileTypeAccepted(file, this.accept())) {\n this.fail(item, 'type', formatLabel(this.invalidTypeMessage(), file.name), newMessages);\n continue;\n }\n if (maxSize != null && file.size > maxSize) {\n this.fail(item, 'size', formatLabel(this.invalidSizeMessage(), file.name), newMessages);\n continue;\n }\n if (\n limit != null &&\n (this.multiple() ? this.selection().length : 0) + added.length >= limit\n ) {\n this.fail(item, 'limit', formatLabel(this.limitReachedMessage(), limit), newMessages);\n continue;\n }\n added.push(item);\n }\n\n this.messages.set(newMessages);\n if (!added.length) return;\n\n if (!this.multiple()) {\n // Replacement: release resources held by the previous selection.\n for (const previous of this.selection()) {\n this.requests.get(previous.id)?.abort();\n this.requests.delete(previous.id);\n this.revoke(previous);\n }\n }\n this.selection.update((files) => (this.multiple() ? [...files, ...added] : added));\n this.selected.emit(added);\n this.filesChange.emit(this.selection());\n\n if (this.auto()) this.upload();\n }\n\n private toUploadFile(file: File): UiUploadFile {\n return {\n id: `uifu-${nextUploadId++}`,\n file,\n name: file.name,\n size: file.size,\n type: file.type,\n status: 'pending',\n progress: 0,\n objectUrl: isImageFile(file) ? URL.createObjectURL(file) : undefined,\n };\n }\n\n private fail(\n item: UiUploadFile,\n reason: UiUploadErrorEvent['reason'],\n message: string,\n sink: string[],\n ): void {\n this.revoke(item);\n sink.push(message);\n this.uploadError.emit({ file: { ...item, status: 'error', error: message }, reason, message });\n }\n\n /** Mutates one file in place (immutably) and pushes a new array reference. */\n private patch(id: string, changes: Partial<UiUploadFile>): void {\n this.selection.update((files) => files.map((f) => (f.id === id ? { ...f, ...changes } : f)));\n }\n\n private emitCustomUpload(pending: UiUploadFile[]): void {\n for (const f of pending) this.patch(f.id, { status: 'uploading', progress: 0 });\n this.uploadHandler.emit({\n files: pending,\n setProgress: (file, progress) =>\n this.patch(file.id, {\n status: 'uploading',\n progress: Math.max(0, Math.min(100, progress)),\n }),\n markUploaded: (file) => {\n this.patch(file.id, { status: 'completed', progress: 100 });\n this.filesChange.emit(this.selection());\n },\n markError: (file, msg) => {\n this.patch(file.id, { status: 'error', error: msg ?? this.uploadErrorMessage() });\n this.uploadError.emit({\n file,\n reason: 'upload',\n message: msg ?? this.uploadErrorMessage(),\n });\n },\n });\n }\n\n private xhrUpload(item: UiUploadFile, endpoint: string): void {\n const xhr = new XMLHttpRequest();\n this.requests.set(item.id, xhr);\n this.patch(item.id, { status: 'uploading', progress: 0 });\n\n const body = new FormData();\n body.append(this.fieldName(), item.file, item.name);\n\n xhr.upload.addEventListener('progress', (e) => {\n if (e.lengthComputable)\n this.patch(item.id, { progress: Math.round((e.loaded / e.total) * 100) });\n });\n xhr.addEventListener('load', () => {\n this.requests.delete(item.id);\n if (xhr.status >= 200 && xhr.status < 300) {\n this.patch(item.id, { status: 'completed', progress: 100 });\n this.uploaded.emit({ files: [item], xhr });\n this.filesChange.emit(this.selection());\n } else {\n this.uploadFailed(item, formatLabel(this.httpErrorMessage(), xhr.status));\n }\n });\n xhr.addEventListener('error', () => this.uploadFailed(item, this.networkErrorMessage()));\n xhr.addEventListener('abort', () => this.requests.delete(item.id));\n\n xhr.open(this.method().toUpperCase(), endpoint, true);\n xhr.withCredentials = this.withCredentials();\n xhr.send(body);\n }\n\n private uploadFailed(item: UiUploadFile, message: string): void {\n this.requests.delete(item.id);\n this.patch(item.id, { status: 'error', error: message });\n this.uploadError.emit({ file: item, reason: 'upload', message });\n }\n\n private revoke(file: UiUploadFile): void {\n if (file.objectUrl) URL.revokeObjectURL(file.objectUrl);\n }\n\n private resetInput(): void {\n const el = this.fileInput().nativeElement;\n if (el) el.value = '';\n }\n}\n","<div\n [class]=\"classes()\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (drop)=\"onDrop($event)\"\n>\n <!-- Real native control (visually hidden, keeps keyboard + screen-reader support) -->\n <input\n #fileInput\n class=\"ui-file-upload-input\"\n type=\"file\"\n [id]=\"inputId\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n (change)=\"onInputChange($event)\"\n />\n @if (name()) {\n <input\n #formValue\n type=\"file\"\n hidden\n [attr.name]=\"name()\"\n [multiple]=\"multiple()\"\n [disabled]=\"disabled()\"\n />\n }\n\n @if (mode() === 'field') {\n <!-- Field mode: compact summary + Browse trigger (whole label opens picker) -->\n <label class=\"ui-file-upload-field\" [attr.for]=\"inputId\" [attr.data-ripple]=\"ripple() ? 'on' : 'off'\">\n <span class=\"ui-file-upload-field-text\" [class._placeholder]=\"!hasFiles()\">{{\n fieldSummary()\n }}</span>\n <span class=\"ui-file-upload-browse\" aria-hidden=\"true\">{{ browseLabel() }}</span>\n </label>\n } @else {\n <!-- Drag mode: full drop zone -->\n <label class=\"ui-file-upload-zone\" [attr.for]=\"inputId\" [attr.data-ripple]=\"ripple() ? 'on' : 'off'\">\n <ui-icon class=\"ui-file-upload-zone-icon\" name=\"cloud-arrow-up\" size=\"lg\" />\n <span class=\"ui-file-upload-zone-content\">\n <span class=\"ui-file-upload-zone-title\">\n <span class=\"ui-file-upload-zone-link\">{{ dragLinkLabel() }}</span>\n <span class=\"ui-file-upload-zone-prompt\">{{ dragPromptLabel() }}</span>\n </span>\n @if (hint(); as h) {\n <span class=\"ui-file-upload-zone-hint\">{{ h }}</span>\n }\n </span>\n </label>\n\n <!-- Toolbar (custom, or default Upload/Clear actions) -->\n @if (toolbarTemplate(); as tpl) {\n <div class=\"ui-file-upload-toolbar\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: files(),\n choose: chooseFn,\n upload: uploadFn,\n clear: clearFn,\n }\"\n />\n </div>\n } @else if (showControls() && hasFiles()) {\n <div class=\"ui-file-upload-toolbar\">\n @if (!auto()) {\n <ui-button\n [ripple]=\"ripple()\"\n [label]=\"uploadLabel()\"\n [size]=\"size() === 'small' ? 'small' : 'default'\"\n icon=\"cloud-arrow-up\"\n [disabled]=\"!canUpload()\"\n (buttonClick)=\"upload()\"\n />\n }\n <ui-button\n [ripple]=\"ripple()\"\n [label]=\"cancelLabel()\"\n level=\"low\"\n [size]=\"size() === 'small' ? 'small' : 'default'\"\n icon=\"xmark\"\n (buttonClick)=\"clear()\"\n />\n </div>\n }\n }\n\n <!-- Content section: the file list -->\n @if (contentTemplate(); as tpl) {\n <div class=\"ui-file-upload-content\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: files(), remove: removeFn, clear: clearFn }\"\n />\n </div>\n } @else if (showFileList() && hasFiles()) {\n <ul class=\"ui-file-upload-content\" role=\"list\">\n @for (f of files(); track f.id) {\n <li>\n @if (fileTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: f, remove: removeFn }\"\n />\n } @else {\n <ui-file-upload-list [file]=\"f\" [size]=\"size()\" (remove)=\"remove($event)\" />\n }\n </li>\n }\n </ul>\n }\n\n <!-- Validation messages (assertive live region) -->\n @if (messages().length) {\n <div class=\"ui-file-upload-messages\" role=\"alert\" aria-live=\"assertive\">\n @for (msg of messages(); track msg) {\n <p class=\"ui-file-upload-message\">{{ msg }}</p>\n }\n </div>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-file-upload\n *\n * Includes `ui-file-upload-list`: it renders the upload's own file model,\n * so the two live in one entry point (a separate one would be a cycle).\n */\n\nexport * from './lib/ui-file-upload-list';\nexport * from './lib/ui-file-upload.model';\nexport * from './lib/ui-file-upload';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AACA;AAsDA;AACM,SAAU,cAAc,CAAC,KAAa,EAAA;AAC1C,IAAA,IAAI,CAAC,KAAK,IAAI,KAAK,GAAG,CAAC;AAAE,QAAA,OAAO,KAAK;IACrC,MAAM,CAAC,GAAG,IAAI;AACd,IAAA,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;AAC3C,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;AAC/E,IAAA,MAAM,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AACpC,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC,GAAG,EAAE;IAC3C,OAAO,CAAA,EAAG,OAAO,CAAA,CAAA,EAAI,KAAK,CAAC,CAAC,CAAC,EAAE;AACjC;AAEA;;;AAGG;AACG,SAAU,kBAAkB,CAAC,IAAU,EAAE,MAA0B,EAAA;AACvE,IAAA,IAAI,CAAC,MAAM;AAAE,QAAA,OAAO,IAAI;IACxB,MAAM,QAAQ,GAAG;SACd,KAAK,CAAC,GAAG;AACT,SAAA,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE;SACjC,MAAM,CAAC,OAAO,CAAC;IAClB,IAAI,CAAC,QAAQ,CAAC,MAAM;AAAE,QAAA,OAAO,IAAI;IAEjC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC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ound;
|
|
203
203
|
}
|
|
204
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
205
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
204
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputDate, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
205
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiInputDate, isStandalone: true, selector: "ui-input-date", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, valueType: { classPropertyName: "valueType", publicName: "valueType", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, iconAriaLabel: { classPropertyName: "iconAriaLabel", publicName: "iconAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, iconTemplate: { classPropertyName: "iconTemplate", publicName: "iconTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [
|
|
206
206
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputDate), multi: true },
|
|
207
207
|
], queries: [{ propertyName: "iconTemplateContent", first: true, predicate: ["icon"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"true\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n <!-- `filled` is hard-coded above, and it is not a shortcut: the browser draws its own\n `jj/mm/aaaa` template in the box, so this field is never visually empty. A floating\n label at rest would sit on top of that template. -->\n <input\n #inputEl\n class=\"ui-input-date-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"nativeType()\"\n [id]=\"resolvedId()\"\n [value]=\"nativeValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.min]=\"nativeMin()\"\n [attr.max]=\"nativeMax()\"\n [attr.step]=\"step() ?? null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"resolvedAriaDescribedBy()\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (showIcon()) {\n <button\n uiFieldSuffix\n type=\"button\"\n tabindex=\"-1\"\n class=\"ui-input-date-action\"\n [attr.aria-label]=\"resolvedIconAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"openPicker()\"\n >\n @if (resolvedIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"iconContext()\" />\n } @else {\n <ui-icon [name]=\"resolvedIcon()\" [size]=\"iconSize()\" />\n }\n </button>\n }\n</ui-field>\n", styles: [".ui-input-date-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-input-date-native:first-child{padding-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-date-native:last-child{padding-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-date-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-date-native::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-date-native:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-date-native._small{font-size:var(--ui-input-date-font-size-small, var(--size-typography-text-md))}.ui-input-date-native{-webkit-appearance:none;appearance:none}.ui-input-date-native::-webkit-date-and-time-value{text-align:left;margin:0}.ui-input-date-native::-webkit-calendar-picker-indicator{display:none}.ui-input-date-native{margin-inline-end:-2.5rem;clip-path:inset(0 2.5rem 0 0)}.ui-input-date-action{display:flex;align-items:center;justify-content:center;align-self:stretch;aspect-ratio:1;flex-shrink:0;padding:0;border:none;background:none;border-radius:0 calc(var(--ui-form-field-radius, var(--radius-sm)) - var(--ui-control-stroke-width, var(--stroke-default))) calc(var(--ui-form-field-radius, var(--radius-sm)) - var(--ui-control-stroke-width, var(--stroke-default))) 0;color:var(--ui-form-field-action-color, var(--form-low-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-date-action:hover:not(:disabled){color:var(--ui-form-field-action-color-hover, var(--form-high-content-hover));background-color:var(--ui-form-field-action-surface-hover, var(--form-high-surface-hover))}.ui-input-date-action:focus-visible{outline:none;color:var(--ui-form-field-action-color-focus, var(--form-high-content-focused));background-color:var(--ui-form-field-action-surface-focus, var(--form-high-surface-focused))}.ui-input-date-action:disabled{cursor:not-allowed;color:var(--ui-form-field-action-color-disabled, var(--form-high-content-disabled))}:host-context([dir=rtl]) .ui-input-date-native{clip-path:inset(0 0 0 2.5rem)}:host-context([data-theme=dark]) .ui-input-date-native{color-scheme:dark}\n"], dependencies: [{ kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "floatLabel", "filled", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "showMessageIcon", "messageIcon", "hasFooter", "hasPrefix"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
208
208
|
}
|
|
209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputDate, decorators: [{
|
|
210
210
|
type: Component,
|
|
211
211
|
args: [{ selector: 'ui-input-date', imports: [UiField, UiIcon, NgTemplateOutlet], providers: [
|
|
212
212
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputDate), multi: true },
|
|
@@ -67,10 +67,10 @@ class UiInputGroup {
|
|
|
67
67
|
for (const el of this.items())
|
|
68
68
|
el.style.zIndex = '';
|
|
69
69
|
}
|
|
70
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
71
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.
|
|
70
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
71
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", type: UiInputGroup, isStandalone: true, selector: "ui-input-group", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focusin": "onFocusIn($event)", "focusout": "onFocusOut()" } }, viewQueries: [{ propertyName: "row", first: true, predicate: ["row"], descendants: true, isSignal: true }], ngImport: i0, template: "<div #row class=\"ui-input-group\">\n <ng-content />\n</div>\n", styles: [":host{display:block}.ui-input-group{--_radius: var(--ui-input-group-radius, var(--ui-form-field-radius, var(--radius-sm)));--_overlap: calc(-1 * var(--ui-input-group-overlap, var(--ui-control-stroke-width, var(--stroke-default))));display:flex;align-items:stretch;width:100%}\n"] }); }
|
|
72
72
|
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputGroup, decorators: [{
|
|
74
74
|
type: Component,
|
|
75
75
|
args: [{ selector: 'ui-input-group', host: {
|
|
76
76
|
'(focusin)': 'onFocusIn($event)',
|
|
@@ -99,10 +99,10 @@ class UiInputGroupAddon {
|
|
|
99
99
|
}, /* @ts-ignore */
|
|
100
100
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
101
101
|
}
|
|
102
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
103
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.
|
|
102
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputGroupAddon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
103
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: UiInputGroupAddon, isStandalone: true, selector: "ui-input-group-addon", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"classes()\">\n <ng-content />\n</div>\n", styles: [":host{display:flex}.ui-input-group-addon{display:flex;align-items:center;justify-content:center;gap:var(--ui-input-group-addon-gap, var(--ui-form-field-gap, var(--units-sm)));box-sizing:border-box;min-width:var(--ui-input-group-addon-height, var(--ui-form-field-height, var(--size-components-default)));min-height:var(--ui-input-group-addon-height, var(--ui-form-field-height, var(--size-components-default)));padding:0 var(--ui-input-group-addon-padding-x, var(--ui-form-field-padding-x, var(--units-md)));border:var(--ui-input-group-addon-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--ui-input-group-addon-stroke, var(--form-high-stroke-default));border-radius:var(--ui-input-group-item-radius, var(--ui-form-field-radius, var(--radius-sm)));background-color:var(--ui-input-group-addon-surface, var(--global-background-muted));color:var(--ui-input-group-addon-color, var(--global-text-muted));font-family:var(--ui-input-group-font-family, var(--fontfamily-base));font-size:var(--ui-input-group-addon-font-size, var(--size-typography-text-default));line-height:1.2;white-space:nowrap;-webkit-user-select:none;user-select:none}.ui-input-group-addon._small{min-width:var(--ui-input-group-addon-height-small, var(--ui-form-field-height-small, var(--size-components-sm)));min-height:var(--ui-input-group-addon-height-small, var(--ui-form-field-height-small, var(--size-components-sm)));font-size:var(--ui-input-group-addon-font-size-small, var(--size-typography-text-md))}\n"] }); }
|
|
104
104
|
}
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputGroupAddon, decorators: [{
|
|
106
106
|
type: Component,
|
|
107
107
|
args: [{ selector: 'ui-input-group-addon', template: "<div [class]=\"classes()\">\n <ng-content />\n</div>\n", styles: [":host{display:flex}.ui-input-group-addon{display:flex;align-items:center;justify-content:center;gap:var(--ui-input-group-addon-gap, var(--ui-form-field-gap, var(--units-sm)));box-sizing:border-box;min-width:var(--ui-input-group-addon-height, var(--ui-form-field-height, var(--size-components-default)));min-height:var(--ui-input-group-addon-height, var(--ui-form-field-height, var(--size-components-default)));padding:0 var(--ui-input-group-addon-padding-x, var(--ui-form-field-padding-x, var(--units-md)));border:var(--ui-input-group-addon-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--ui-input-group-addon-stroke, var(--form-high-stroke-default));border-radius:var(--ui-input-group-item-radius, var(--ui-form-field-radius, var(--radius-sm)));background-color:var(--ui-input-group-addon-surface, var(--global-background-muted));color:var(--ui-input-group-addon-color, var(--global-text-muted));font-family:var(--ui-input-group-font-family, var(--fontfamily-base));font-size:var(--ui-input-group-addon-font-size, var(--size-typography-text-default));line-height:1.2;white-space:nowrap;-webkit-user-select:none;user-select:none}.ui-input-group-addon._small{min-width:var(--ui-input-group-addon-height-small, var(--ui-form-field-height-small, var(--size-components-sm)));min-height:var(--ui-input-group-addon-height-small, var(--ui-form-field-height-small, var(--size-components-sm)));font-size:var(--ui-input-group-addon-font-size-small, var(--size-typography-text-md))}\n"] }]
|
|
108
108
|
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
@@ -107,12 +107,12 @@ class UiInputMask extends BaseFormField {
|
|
|
107
107
|
emitValue(built) {
|
|
108
108
|
return this.unmask() ? built.data : built.masked;
|
|
109
109
|
}
|
|
110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
111
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputMask, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
111
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiInputMask, isStandalone: true, selector: "ui-input-mask", inputs: { mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: true, transformFunction: null }, ranges: { classPropertyName: "ranges", publicName: "ranges", isSignal: true, isRequired: false, transformFunction: null }, slotChar: { classPropertyName: "slotChar", publicName: "slotChar", isSignal: true, isRequired: false, transformFunction: null }, unmask: { classPropertyName: "unmask", publicName: "unmask", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", inputBlur: "inputBlur" }, providers: [
|
|
112
112
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputMask), multi: true },
|
|
113
113
|
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"isFilled()\"\n [hasPrefix]=\"!!iconLeft()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n @if (iconLeft(); as name) {\n <ui-icon\n uiFieldPrefix\n class=\"ui-input-mask-icon\"\n [class._disabled]=\"isDisabled()\"\n [name]=\"name\"\n [size]=\"iconSize()\"\n />\n }\n\n <input\n #inputEl\n class=\"ui-input-mask-native\"\n [class._small]=\"size() === 'small'\"\n type=\"text\"\n [id]=\"resolvedId()\"\n [value]=\"text()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (blur)=\"onBlur($event)\"\n />\n</ui-field>\n", styles: [".ui-input-mask-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-input-mask-native:first-child{padding-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-mask-native:last-child{padding-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-mask-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-mask-native::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-mask-native:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-mask-native._small{font-size:var(--ui-input-mask-font-size-small, var(--size-typography-text-md))}.ui-input-mask-icon{flex-shrink:0;color:var(--ui-form-field-affix-color, var(--form-low-content-default))}.ui-input-mask-icon:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-mask-icon:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-mask-icon._disabled{color:var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled))}\n"], dependencies: [{ kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "floatLabel", "filled", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "showMessageIcon", "messageIcon", "hasFooter", "hasPrefix"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
114
114
|
}
|
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputMask, decorators: [{
|
|
116
116
|
type: Component,
|
|
117
117
|
args: [{ selector: 'ui-input-mask', imports: [UiField, UiIcon], providers: [
|
|
118
118
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputMask), multi: true },
|
|
@@ -223,12 +223,12 @@ class UiInputNumber extends BaseFormField {
|
|
|
223
223
|
options.maximumFractionDigits = this.maxFractionDigits();
|
|
224
224
|
return new Intl.NumberFormat(this.locale(), options).format(value);
|
|
225
225
|
}
|
|
226
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
227
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
226
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
227
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiInputNumber, isStandalone: true, selector: "ui-input-number", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, allowDecimals: { classPropertyName: "allowDecimals", publicName: "allowDecimals", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, showButtons: { classPropertyName: "showButtons", publicName: "showButtons", isSignal: true, isRequired: false, transformFunction: null }, incrementAriaLabel: { classPropertyName: "incrementAriaLabel", publicName: "incrementAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, decrementAriaLabel: { classPropertyName: "decrementAriaLabel", publicName: "decrementAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, useGrouping: { classPropertyName: "useGrouping", publicName: "useGrouping", isSignal: true, isRequired: false, transformFunction: null }, minFractionDigits: { classPropertyName: "minFractionDigits", publicName: "minFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, maxFractionDigits: { classPropertyName: "maxFractionDigits", publicName: "maxFractionDigits", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [
|
|
228
228
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputNumber), multi: true },
|
|
229
229
|
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"isFilled()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n>\n <input\n #inputEl\n class=\"ui-input-number-native\"\n [class._small]=\"size() === 'small'\"\n type=\"text\"\n inputmode=\"decimal\"\n [id]=\"resolvedId()\"\n [value]=\"text()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n role=\"spinbutton\"\n [attr.aria-valuenow]=\"modelValue() ?? null\"\n [attr.aria-valuemin]=\"ariaValueMin()\"\n [attr.aria-valuemax]=\"ariaValueMax()\"\n (input)=\"onInput()\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (displayUnit(); as u) {\n <span\n uiFieldSuffix\n class=\"ui-input-number-unit\"\n [class._small]=\"unitSmall()\"\n [class._disabled]=\"isDisabled()\"\n >{{ u }}</span\n >\n }\n\n @if (showButtons()) {\n <span uiFieldSuffix class=\"ui-input-number-spinner\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"incrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMax()\"\n (click)=\"stepBy(1)\"\n >\n <ui-icon name=\"angle-up\" size=\"sm\" />\n </button>\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"decrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMin()\"\n (click)=\"stepBy(-1)\"\n >\n <ui-icon name=\"angle-down\" size=\"sm\" />\n </button>\n </span>\n }\n</ui-field>\n", styles: [".ui-input-number-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-input-number-native:first-child{padding-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-native:last-child{padding-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-native{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-number-native::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-number-native:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-number-native._small{font-size:var(--ui-input-number-font-size-small, var(--size-typography-text-md))}.ui-input-number-unit{flex-shrink:0;color:var(--ui-form-field-affix-color, var(--form-low-content-default))}.ui-input-number-unit:first-child{margin-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-unit:last-child{margin-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-number-unit._disabled{color:var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled))}.ui-input-number-unit{font-family:var(--ui-input-number-font-family, var(--fontfamily-base));font-size:var(--ui-input-number-unit-font-size, var(--size-typography-text-default));white-space:nowrap;-webkit-user-select:none;user-select:none}.ui-input-number-unit._small{font-size:var(--ui-input-number-font-size-small, var(--size-typography-text-md))}.ui-input-number-spinner{display:flex;flex-direction:column;align-self:stretch;flex-shrink:0;width:var(--ui-input-number-spinner-width, 1.875rem);border-left:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-form-field-spinner-stroke, var(--form-high-stroke-default));border-radius:0 var(--ui-form-field-radius, var(--radius-sm)) var(--ui-form-field-radius, var(--radius-sm)) 0;overflow:hidden}.ui-input-number-spinner button{display:flex;flex:1 1 50%;align-items:center;justify-content:center;min-height:0;padding:0;border:none;background:none;line-height:0;color:var(--ui-form-field-spinner-color, var(--form-low-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-number-spinner button:hover:not(:disabled){color:var(--ui-form-field-spinner-color-hover, var(--form-high-content-hover));background-color:var(--ui-form-field-spinner-surface-hover, var(--form-high-surface-hover))}.ui-input-number-spinner button:disabled{cursor:not-allowed;color:var(--ui-form-field-spinner-color-disabled, var(--form-high-content-disabled))}.ui-input-number-spinner button+button{border-top:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-form-field-spinner-stroke, var(--form-high-stroke-default))}\n"], dependencies: [{ kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "floatLabel", "filled", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "showMessageIcon", "messageIcon", "hasFooter", "hasPrefix"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
230
230
|
}
|
|
231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputNumber, decorators: [{
|
|
232
232
|
type: Component,
|
|
233
233
|
args: [{ selector: 'ui-input-number', imports: [UiField, UiIcon], providers: [
|
|
234
234
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputNumber), multi: true },
|
|
@@ -255,12 +255,12 @@ class UiInputOtp extends BaseFieldControl {
|
|
|
255
255
|
sanitize(value) {
|
|
256
256
|
return this.integerOnly() ? value.replace(/\D/g, '') : value;
|
|
257
257
|
}
|
|
258
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
259
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
258
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputOtp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
259
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiInputOtp, isStandalone: true, selector: "ui-input-otp", inputs: { length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, integerOnly: { classPropertyName: "integerOnly", publicName: "integerOnly", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, charAriaLabel: { classPropertyName: "charAriaLabel", publicName: "charAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", completed: "completed" }, host: { attributes: { "role": "group" }, listeners: { "focusout": "onFocusOut($event)" }, properties: { "class._small": "size() === 'small'", "class._large": "size() === 'large'", "class._disabled": "isDisabled()", "class._readonly": "readonly()", "class._invalid": "isInvalid()", "attr.aria-label": "ariaLabel() || null", "attr.aria-labelledby": "ariaLabelledBy() || null", "attr.aria-invalid": "isInvalid() ? 'true' : null", "attr.aria-disabled": "isDisabled() ? 'true' : null" }, classAttribute: "ui-input-otp" }, providers: [
|
|
260
260
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputOtp), multi: true },
|
|
261
261
|
], queries: [{ propertyName: "inputTemplate", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@for (cell of cells(); track cell.index) {\n @if (inputTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell.value,\n value: cell.value,\n index: cell.index,\n events: cellEvents(cell.index),\n tabindex: tabindexFor(cell.index),\n }\"\n />\n } @else {\n <input\n class=\"ui-input-otp-cell\"\n [id]=\"cell.id\"\n [type]=\"inputType()\"\n [value]=\"cell.value\"\n maxlength=\"1\"\n autocomplete=\"one-time-code\"\n [attr.inputmode]=\"inputMode()\"\n [attr.name]=\"name() ? name() + '-' + cell.index : null\"\n [attr.tabindex]=\"tabindexFor(cell.index)\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"(ariaLabel() || charAriaLabel()) + ' ' + (cell.index + 1)\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (input)=\"onInput($event, cell.index)\"\n (keydown)=\"onKeydown($event, cell.index)\"\n (focus)=\"onFocus($event, cell.index)\"\n (paste)=\"onPaste($event, cell.index)\"\n />\n }\n}\n", styles: [":host{display:inline-flex;align-items:center;gap:var(--ui-input-otp-gap, var(--units-sm));font-family:var(--ui-input-otp-font-family, var(--fontfamily-base))}:host .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size, var(--size-components-default));block-size:var(--ui-input-otp-cell-size, var(--size-components-default));font-size:var(--ui-input-otp-font-size, var(--size-typography-text-default))}:host._small .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size-small, var(--size-components-sm));block-size:var(--ui-input-otp-cell-size-small, var(--size-components-sm));font-size:var(--ui-input-otp-font-size-small, var(--size-typography-text-md))}:host._large .ui-input-otp-cell{inline-size:var(--ui-input-otp-cell-size-large, var(--size-components-xl));block-size:var(--ui-input-otp-cell-size-large, var(--size-components-xl));font-size:var(--ui-input-otp-font-size-large, var(--size-typography-text-lg))}.ui-input-otp-cell{--_stroke: var(--ui-input-otp-cell-stroke, var(--form-high-stroke-default));--_stroke-hover: var(--ui-input-otp-cell-stroke-hover, var(--form-high-stroke-hover));--_stroke-focus: var(--ui-input-otp-cell-stroke-focus, var(--form-high-stroke-focused));box-sizing:border-box;min-inline-size:0;margin:0;padding:0;border:var(--ui-input-otp-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-input-otp-radius, var(--ui-form-field-radius, var(--radius-sm)));background-color:var(--ui-input-otp-cell-surface, var(--form-high-surface-default));color:var(--ui-input-otp-cell-color, var(--form-high-content-default));font-family:inherit;font-weight:var(--ui-input-otp-weight, var(--weight-bold));text-align:center;caret-color:var(--ui-input-otp-cell-color, var(--form-high-content-default));transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-otp-cell:hover:not(:disabled):not(:focus){border-color:var(--_stroke-hover)}.ui-input-otp-cell:focus,.ui-input-otp-cell:focus-visible{outline:none;border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--ui-input-otp-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--_stroke-focus) r g b/50%)}.ui-input-otp-cell:disabled{border-color:var(--ui-input-otp-cell-stroke-disabled, var(--form-high-stroke-disabled));background-color:var(--ui-input-otp-cell-surface-disabled, var(--form-high-surface-disabled));color:var(--ui-input-otp-cell-color-disabled, var(--form-high-content-disabled));cursor:not-allowed}:host._readonly .ui-input-otp-cell{cursor:default}:host._invalid .ui-input-otp-cell{--_stroke: var(--ui-input-otp-cell-stroke-invalid, var(--form-error-stroke-default));--_stroke-hover: var(--ui-input-otp-cell-stroke-hover-invalid, var(--form-error-stroke-hover));--_stroke-focus: var(--ui-input-otp-cell-stroke-focus-invalid, var(--form-error-stroke-focused))}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
262
262
|
}
|
|
263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputOtp, decorators: [{
|
|
264
264
|
type: Component,
|
|
265
265
|
args: [{ selector: 'ui-input-otp', imports: [NgTemplateOutlet], providers: [
|
|
266
266
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputOtp), multi: true },
|
|
@@ -674,12 +674,12 @@ class UiInputTags extends BaseFormField {
|
|
|
674
674
|
return [text];
|
|
675
675
|
return text.split(d);
|
|
676
676
|
}
|
|
677
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
678
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
677
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputTags, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
678
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiInputTags, isStandalone: true, selector: "ui-input-tags", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, delimiter: { classPropertyName: "delimiter", publicName: "delimiter", isSignal: true, isRequired: false, transformFunction: null }, allowDuplicate: { classPropertyName: "allowDuplicate", publicName: "allowDuplicate", isSignal: true, isRequired: false, transformFunction: null }, addOnBlur: { classPropertyName: "addOnBlur", publicName: "addOnBlur", isSignal: true, isRequired: false, transformFunction: null }, addOnTab: { classPropertyName: "addOnTab", publicName: "addOnTab", isSignal: true, isRequired: false, transformFunction: null }, addOnPaste: { classPropertyName: "addOnPaste", publicName: "addOnPaste", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, chipLevel: { classPropertyName: "chipLevel", publicName: "chipLevel", isSignal: true, isRequired: false, transformFunction: null }, chipSubLevel: { classPropertyName: "chipSubLevel", publicName: "chipSubLevel", isSignal: true, isRequired: false, transformFunction: null }, chipRounded: { classPropertyName: "chipRounded", publicName: "chipRounded", isSignal: true, isRequired: false, transformFunction: null }, typeahead: { classPropertyName: "typeahead", publicName: "typeahead", isSignal: true, isRequired: false, transformFunction: null }, suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, completeOnFocus: { classPropertyName: "completeOnFocus", publicName: "completeOnFocus", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, removeTagLabel: { classPropertyName: "removeTagLabel", publicName: "removeTagLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { tagAdd: "tagAdd", tagRemove: "tagRemove", valueChange: "valueChange", completeMethod: "completeMethod", optionSelect: "optionSelect", opened: "opened", closed: "closed", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [
|
|
679
679
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputTags), multi: true },
|
|
680
680
|
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "optionTemplate", first: true, predicate: ["option"], descendants: true, isSignal: true }, { propertyName: "groupTemplate", first: true, predicate: ["group"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["container"], descendants: true, isSignal: true }, { propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }, { propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "tagEls", predicate: ["tagEl"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<!-- One suggestion row (typeahead): group header or option. -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-input-tags-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\"\n />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-input-tags-option\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._present]=\"row.present\"\n [class._focused]=\"row.index === focusedOption()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.present\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: row.entry.original,\n option: row.entry.original,\n index: row.index,\n }\"\n />\n } @else {\n <span class=\"ui-input-tags-option-label\">{{ row.entry.label }}</span>\n }\n @if (row.present) {\n <ui-icon class=\"ui-input-tags-option-check\" name=\"check\" [size]=\"iconSize()\" />\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay, typeahead). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-input-tags-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n <div\n class=\"ui-input-tags-scroller\"\n [class._small]=\"size() === 'small'\"\n [style.max-height]=\"scrollHeight() || null\"\n >\n <ul\n class=\"ui-input-tags-list\"\n role=\"listbox\"\n [attr.id]=\"panelListId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container\n [ngTemplateOutlet]=\"rowTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row }\"\n />\n } @empty {\n <li class=\"ui-input-tags-empty\" role=\"presentation\">{{ emptyMessage() }}</li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<!-- Field shell: label + box (tags listbox + input) + helper. -->\n<div #container class=\"ui-input-tags\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"isFilled()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [autoHeight]=\"true\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n >\n <div class=\"ui-input-tags-control\" (mousedown)=\"onBoxMousedown($event)\">\n <!-- The listbox wraps ONLY the option tags (a listbox may not contain a textbox);\n `display: contents` keeps tags and input flowing on the same wrapped lines. -->\n <div\n class=\"ui-input-tags-list\"\n role=\"listbox\"\n aria-orientation=\"horizontal\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"ariaLabelledBy() ? null : ariaLabel() || label() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n >\n @for (tag of tagRows(); track $index) {\n @if (itemTemplate(); as tpl) {\n <!-- Template mode: a bare option wrapper hosts the custom tag content. -->\n <span\n #tagEl\n class=\"ui-input-tags-tag _custom\"\n [class._disabled]=\"isDisabled()\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : focusedTag() === tag.index ? 0 : -1\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: tag.value,\n value: tag.value,\n label: tag.label,\n index: tag.index,\n onRemove: removeAt.bind(this, tag.index),\n }\"\n />\n </span>\n } @else {\n <!-- Default mode: the tag is a ui-chip that IS the roving option. -->\n <ui-chip\n #tagEl\n class=\"ui-input-tags-tag\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n [level]=\"chipLevel()\"\n [subLevel]=\"chipSubLevel()\"\n size=\"small\"\n [rounded]=\"chipRounded()\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : focusedTag() === tag.index ? 0 : -1\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index, $event)\"\n />\n }\n }\n </div>\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-input-tags-input\"\n [class._small]=\"size() === 'small'\"\n autocomplete=\"off\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly() || isFull()\"\n [attr.name]=\"name() || null\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.role]=\"typeahead() ? 'combobox' : null\"\n [attr.aria-autocomplete]=\"typeahead() ? 'list' : null\"\n [attr.aria-haspopup]=\"typeahead() ? 'listbox' : null\"\n [attr.aria-expanded]=\"typeahead() ? panelOpen() : null\"\n [attr.aria-controls]=\"typeahead() && panelOpen() ? panelListId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (paste)=\"onPaste($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n </ui-field>\n</div>\n\n@if (typeahead()) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n >\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n </ng-template>\n}\n", styles: [".ui-input-tags{display:block;--ui-field-box-cursor: text}.ui-input-tags-control{display:flex;align-items:center;align-self:stretch;flex:1 1 auto;flex-wrap:wrap;gap:var(--ui-input-tags-tag-gap, var(--units-xs));min-width:0}.ui-input-tags-control:first-child{padding-inline-start:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-tags-control:last-child{padding-inline-end:var(--ui-form-field-padding-x, var(--units-md))}.ui-input-tags-control{padding-block-start:calc(0px + var(--_field-inset-block-start, 0px))}.ui-input-tags-list{display:contents}.ui-input-tags-tag{display:inline-flex;align-items:center;max-width:100%;border-radius:var(--ui-input-tags-tag-radius, var(--radius-full));transition:box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-tags-tag:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-input-tags-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-input-tags-tag-focus-ring-color, var(--form-high-stroke-focused)) r g b/50%)}.ui-input-tags-tag._custom{gap:var(--ui-input-tags-tag-gap-custom, var(--units-2xs));min-height:var(--ui-input-tags-tag-height, 1.5rem);color:var(--ui-input-tags-tag-color, var(--form-high-content-default));font-family:var(--ui-input-tags-font-family, var(--fontfamily-base));font-size:var(--ui-input-tags-tag-font-size, var(--size-typography-text-md))}.ui-input-tags-input{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-input-tags-input::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-input-tags-input:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-input-tags-input{flex:1 1 var(--ui-input-tags-input-min-width, 5rem);min-width:var(--ui-input-tags-input-min-width, 5rem);width:auto}.ui-input-tags-input._small{font-size:var(--ui-input-tags-font-size-small, var(--size-typography-text-md))}.ui-input-tags-panel{border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--ui-input-tags-panel-stroke, var(--form-high-stroke-default)));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-input-tags-panel-surface, var(--form-high-surface-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));display:flex;flex-direction:column;box-sizing:border-box;max-width:var(--ui-input-tags-panel-max-width, calc(100vw - var(--units-lg)));padding:var(--ui-input-tags-panel-padding, var(--units-xs))}.ui-input-tags-panel .ui-input-tags-scroller{overflow:auto;max-height:var(--ui-input-tags-scroller-max-height, 12.5rem)}.ui-input-tags-panel .ui-input-tags-scroller._small{max-height:var(--ui-input-tags-scroller-max-height-small, 11.25rem)}.ui-input-tags-panel .ui-input-tags-list{display:flex;flex-direction:column;gap:var(--ui-input-tags-panel-gap, var(--units-xs));margin:0;padding:0;list-style:none}.ui-input-tags-panel .ui-input-tags-option{display:flex;align-items:center;gap:var(--ui-input-tags-option-gap, var(--units-sm));box-sizing:border-box;height:var(--ui-input-tags-option-height, 2.5rem);flex-shrink:0;padding:0 var(--ui-input-tags-option-padding-x, var(--units-default));border-radius:var(--ui-input-tags-option-radius, var(--radius-sm));font-family:var(--ui-input-tags-font-family, var(--fontfamily-base));font-size:var(--ui-input-tags-font-size, var(--size-typography-text-default));color:var(--ui-input-tags-option-color, var(--form-high-content-default));cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-input-tags-panel .ui-input-tags-option._small{height:var(--ui-input-tags-option-height-small, 2rem);padding:0 var(--ui-input-tags-option-padding-x-small, var(--units-md));font-size:var(--ui-input-tags-font-size-small, var(--size-typography-text-md))}.ui-input-tags-panel .ui-input-tags-option._focused,.ui-input-tags-panel .ui-input-tags-option:hover:not(._disabled){background-color:var(--ui-input-tags-option-surface-hover, var(--global-background-default-hover))}.ui-input-tags-panel .ui-input-tags-option._present{color:var(--ui-input-tags-option-color-selected, var(--form-high-content-checked))}.ui-input-tags-panel .ui-input-tags-option._disabled{color:var(--ui-input-tags-option-color-disabled, var(--form-high-content-disabled));cursor:not-allowed}.ui-input-tags-panel .ui-input-tags-option-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-input-tags-panel .ui-input-tags-option-check{flex-shrink:0;margin-left:auto;color:var(--ui-input-tags-option-check-color, var(--form-high-content-checked))}.ui-input-tags-panel .ui-input-tags-group{display:flex;align-items:center;box-sizing:border-box;height:var(--ui-input-tags-group-height, 2rem);flex-shrink:0;padding:0 var(--ui-input-tags-option-padding-x, var(--units-default));font-family:var(--ui-input-tags-font-family, var(--fontfamily-base));font-size:var(--ui-input-tags-group-font-size, var(--size-typography-text-md));font-weight:var(--ui-input-tags-weight, var(--weight-bold));color:var(--ui-input-tags-group-color, var(--form-low-content-default))}.ui-input-tags-panel .ui-input-tags-group._small{padding:0 var(--ui-input-tags-option-padding-x-small, var(--units-md))}.ui-input-tags-panel .ui-input-tags-empty{display:flex;align-items:center;box-sizing:border-box;min-height:var(--ui-input-tags-option-height, 2.5rem);padding:0 var(--ui-input-tags-option-padding-x, var(--units-default));font-family:var(--ui-input-tags-font-family, var(--fontfamily-base));font-size:var(--ui-input-tags-font-size, var(--size-typography-text-default));color:var(--ui-input-tags-empty-color, var(--form-low-content-default))}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "floatLabel", "filled", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "showMessageIcon", "messageIcon", "hasFooter", "hasPrefix"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiChip, selector: "ui-chip", inputs: ["label", "level", "subLevel", "size", "icon", "image", "alt", "rounded", "removable", "removeIcon", "disabled", "selectable", "selected", "selectedIcon", "ariaLabel", "ariaLabelledBy", "removeAriaLabel", "removeTabindex"], outputs: ["selectedChange", "remove", "chipClick", "imageError"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
|
|
681
681
|
}
|
|
682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiInputTags, decorators: [{
|
|
683
683
|
type: Component,
|
|
684
684
|
args: [{ selector: 'ui-input-tags', imports: [NgTemplateOutlet, OverlayModule, UiField, UiIcon, UiChip, UiMotion], providers: [
|
|
685
685
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputTags), multi: true },
|