ngwr 16.0.0 → 16.1.0
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/badge/styles/_tag.scss +8 -4
- package/button/styles/_index.scss +13 -7
- package/cascader/styles/_rules.scss +4 -2
- package/checkbox/styles/_index.scss +4 -2
- package/date-picker/styles/_index.scss +6 -2
- package/date-stamp/styles/_index.scss +38 -0
- package/dialog/styles/_index.scss +38 -0
- package/fesm2022/internal-CVLvP9b_.mjs +33 -0
- package/fesm2022/internal-CVLvP9b_.mjs.map +1 -0
- package/fesm2022/ngwr-alert.mjs +11 -7
- package/fesm2022/ngwr-alert.mjs.map +1 -1
- package/fesm2022/ngwr-avatar.mjs +11 -7
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +10 -6
- package/fesm2022/ngwr-back-top.mjs.map +1 -1
- package/fesm2022/ngwr-badge.mjs +18 -6
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +9 -6
- package/fesm2022/ngwr-burger.mjs.map +1 -1
- package/fesm2022/ngwr-button.mjs +8 -4
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +19 -8
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +9 -5
- package/fesm2022/ngwr-card.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +11 -5
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +5 -2
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox.mjs +10 -6
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-clipboard.mjs +2 -1
- package/fesm2022/ngwr-clipboard.mjs.map +1 -1
- package/fesm2022/ngwr-collapse.mjs +9 -5
- package/fesm2022/ngwr-collapse.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +4 -2
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-comment.mjs +13 -7
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +9 -3
- package/fesm2022/ngwr-compare.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +4 -2
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value.mjs +11 -6
- package/fesm2022/ngwr-copy-value.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +86 -30
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp-testing.mjs +34 -0
- package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -0
- package/fesm2022/ngwr-date-stamp.mjs +149 -0
- package/fesm2022/ngwr-date-stamp.mjs.map +1 -0
- package/fesm2022/ngwr-date.mjs +279 -50
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-descriptions.mjs +9 -5
- package/fesm2022/ngwr-descriptions.mjs.map +1 -1
- package/fesm2022/ngwr-dialog-testing.mjs +23 -2
- package/fesm2022/ngwr-dialog-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +45 -16
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +102 -11
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +4 -2
- package/fesm2022/ngwr-divider.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +29 -3
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +4 -2
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +5 -2
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-event-calendar.mjs +4 -2
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +9 -3
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +18 -6
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +2 -0
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +2 -0
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +2 -0
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +2 -0
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +2 -0
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +2 -0
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +2 -0
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +2 -0
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +2 -0
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +2 -0
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +2 -0
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +2 -0
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +2 -0
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +2 -0
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +2 -0
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +2 -0
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +2 -0
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +2 -0
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +2 -0
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +2 -0
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +2 -0
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +2 -0
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +34 -8
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +9 -3
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +4 -2
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +20 -10
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +9 -3
- package/fesm2022/ngwr-keyboard.mjs.map +1 -1
- package/fesm2022/ngwr-knob.mjs +9 -3
- package/fesm2022/ngwr-knob.mjs.map +1 -1
- package/fesm2022/ngwr-layout.mjs +13 -5
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +9 -5
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +13 -5
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +9 -5
- package/fesm2022/ngwr-load-state.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +84 -1
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +3 -2
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +21 -5
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +93 -4
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +4 -2
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +9 -5
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-rating.mjs +9 -3
- package/fesm2022/ngwr-rating.mjs.map +1 -1
- package/fesm2022/ngwr-resizable.mjs +503 -0
- package/fesm2022/ngwr-resizable.mjs.map +1 -0
- package/fesm2022/ngwr-result.mjs +9 -5
- package/fesm2022/ngwr-result.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +4 -2
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +13 -5
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-skeleton.mjs +4 -2
- package/fesm2022/ngwr-skeleton.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +4 -2
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +4 -2
- package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
- package/fesm2022/ngwr-spinner.mjs +4 -2
- package/fesm2022/ngwr-spinner.mjs.map +1 -1
- package/fesm2022/ngwr-splitter.mjs +17 -21
- package/fesm2022/ngwr-splitter.mjs.map +1 -1
- package/fesm2022/ngwr-stepper.mjs +9 -3
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +9 -5
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table-testing.mjs +5 -1
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +167 -10
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +9 -3
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-timeline.mjs +18 -8
- package/fesm2022/ngwr-timeline.mjs.map +1 -1
- package/fesm2022/ngwr-toast-testing.mjs +6 -1
- package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +529 -104
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +4 -2
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +4 -2
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +9 -3
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-utils-router.mjs +18 -2
- package/fesm2022/ngwr-utils-router.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +9 -2
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +7 -4
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/fesm2022/ngwr.mjs.map +1 -1
- package/i18n/ar.json +6 -0
- package/i18n/cs.json +6 -0
- package/i18n/de.json +6 -0
- package/i18n/en.json +6 -0
- package/i18n/es.json +6 -0
- package/i18n/fr.json +6 -0
- package/i18n/he.json +6 -0
- package/i18n/hi.json +6 -0
- package/i18n/id.json +6 -0
- package/i18n/it.json +6 -0
- package/i18n/ja.json +6 -0
- package/i18n/ko.json +6 -0
- package/i18n/nl.json +6 -0
- package/i18n/pl.json +6 -0
- package/i18n/pt.json +6 -0
- package/i18n/ru.json +6 -0
- package/i18n/sv.json +6 -0
- package/i18n/tr.json +6 -0
- package/i18n/uk.json +6 -0
- package/i18n/vi.json +6 -0
- package/i18n/zh-TW.json +6 -0
- package/i18n/zh.json +6 -0
- package/input/styles/_index.scss +10 -5
- package/input-number/styles/_index.scss +6 -3
- package/input-otp/styles/_index.scss +4 -2
- package/llms-full.txt +29 -10
- package/llms.txt +8 -4
- package/package.json +15 -1
- package/radio/styles/_index.scss +4 -2
- package/resizable/styles/_index.scss +154 -0
- package/schematics/use/rule.js +1 -0
- package/schematics/use/symbol-map.json +4 -0
- package/select/styles/_index.scss +6 -3
- package/skills/ngwr/SKILL.md +1 -1
- package/skills/ngwr/references/catalog.md +4 -1
- package/skills/ngwr/references/setup.md +3 -0
- package/switch/styles/_index.scss +4 -2
- package/table/styles/_index.scss +53 -0
- package/textarea/styles/_index.scss +4 -2
- package/theme/styles/_motion.scss +6 -0
- package/toast/styles/_index.scss +19 -0
- package/types/ngwr-burger.d.ts +0 -1
- package/types/ngwr-calendar.d.ts +7 -0
- package/types/ngwr-charts-calendar-heatmap.d.ts +2 -1
- package/types/ngwr-clipboard.d.ts +7 -0
- package/types/ngwr-date-picker.d.ts +9 -2
- package/types/ngwr-date-stamp-testing.d.ts +47 -0
- package/types/ngwr-date-stamp.d.ts +81 -0
- package/types/ngwr-date.d.ts +135 -24
- package/types/ngwr-dialog-testing.d.ts +10 -0
- package/types/ngwr-dialog.d.ts +72 -4
- package/types/ngwr-directives.d.ts +36 -1
- package/types/ngwr-drawer.d.ts +21 -0
- package/types/ngwr-i18n.d.ts +44 -14
- package/types/ngwr-overlay.d.ts +36 -0
- package/types/ngwr-pipes.d.ts +15 -0
- package/types/ngwr-popover.d.ts +39 -1
- package/types/ngwr-resizable.d.ts +228 -0
- package/types/ngwr-table-testing.d.ts +3 -1
- package/types/ngwr-table.d.ts +120 -4
- package/types/ngwr-toast-testing.d.ts +12 -1
- package/types/ngwr-toast.d.ts +215 -18
- package/types/ngwr-utils-router.d.ts +22 -0
- package/types/ngwr-utils.d.ts +8 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr.d.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-copy-value.mjs","names":[],"sources":["../../../projects/lib/copy-value/copy-value.ts","../../../projects/lib/copy-value/copy-value.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Component, DestroyRef, ViewEncapsulation, computed, inject, input, output, signal } from '@angular/core';\n\nimport { WrClipboard } from 'ngwr/clipboard';\nimport { useI18nText } from 'ngwr/i18n';\nimport { wrCheckStyles } from 'ngwr/utils';\n\n
|
|
1
|
+
{"version":3,"file":"ngwr-copy-value.mjs","names":[],"sources":["../../../projects/lib/copy-value/copy-value.ts","../../../projects/lib/copy-value/copy-value.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Component, DestroyRef, ViewEncapsulation, computed, inject, input, output, signal } from '@angular/core';\n\nimport { WR_COPIED_DURATION, WrClipboard } from 'ngwr/clipboard';\nimport { useI18nText } from 'ngwr/i18n';\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * A short value with a copy button beside it: an id, a serial number, an\n * address, a name in a table cell.\n *\n * The value truncates on one line and keeps the whole text in its `title`;\n * `wrap` lets it run over several lines instead. `null`, `undefined` and `''`\n * are empty: the component shows `emptyLabel` and no button. `0` is a value.\n *\n * The write goes through `WrClipboard`, so it also works on a plain `http://`\n * origin. After it succeeds the button shows a tick and the \"Copied\" text is\n * announced politely; a refused write changes nothing and emits `copyFailed`.\n *\n * @example\n * ```html\n * <wr-copy-value [value]=\"order.id\" />\n * <wr-copy-value [value]=\"user.fullName\" wrap (copied)=\"track($event)\" />\n * ```\n *\n * @see https://ngwr.dev/reference/components/copy-value\n */\n@Component({\n selector: 'wr-copy-value',\n templateUrl: './copy-value.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-copy-value', '[class]': 'classes()' },\n})\nexport class WrCopyValue {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('copy-value');\n inject(DestroyRef).onDestroy(() => {\n this.destroyed = true;\n this.clearTimer();\n });\n }\n\n /**\n * The value shown and copied. `null`, `undefined` and `''` are empty.\n *\n * @default null\n */\n readonly value = input<string | number | null | undefined>(null);\n\n /**\n * Let a long value wrap over several lines instead of truncating it.\n *\n * @default false\n */\n readonly wrap = input(false, { transform: coerceBooleanProperty });\n\n /** Accessible name and tooltip of the button. Falls back to `copyValue.copy`, then `'Copy'`. */\n readonly copyLabel = input<string | null>(null);\n\n /** Tooltip and announcement after a copy. Falls back to `copyValue.copied`, then `'Copied'`. */\n readonly copiedLabel = input<string | null>(null);\n\n /** What stands in for an empty value. Falls back to `copyValue.empty`, then `'-'`. */\n readonly emptyLabel = input<string | null>(null);\n\n /** Emitted with the text that reached the clipboard. */\n readonly copied = output<string>();\n\n /** Emitted when the browser refused the write. */\n readonly copyFailed = output<void>();\n\n protected readonly resolvedCopyLabel = useI18nText(this.copyLabel, 'copyValue.copy', 'Copy');\n protected readonly resolvedCopiedLabel = useI18nText(this.copiedLabel, 'copyValue.copied', 'Copied');\n protected readonly resolvedEmptyLabel = useI18nText(this.emptyLabel, 'copyValue.empty', '-');\n\n protected readonly text = computed(() => String(this.value() ?? ''));\n protected readonly empty = computed(() => this.text() === '');\n\n /** True for a moment after a successful copy. */\n protected readonly justCopied = signal(false);\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n if (this.wrap()) parts.push('wr-copy-value--wrap');\n if (this.empty()) parts.push('wr-copy-value--empty');\n if (this.justCopied()) parts.push('wr-copy-value--copied');\n return parts.join(' ');\n });\n\n private readonly clipboard = inject(WrClipboard);\n private destroyed = false;\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n /**\n * Copies the value, as a click on the button does. Resolves to whether the\n * text reached the clipboard; an empty value resolves to `false` and emits\n * nothing.\n */\n async copy(): Promise<boolean> {\n const text = this.text();\n if (text === '') return false;\n\n const written = await this.clipboard.write(text);\n // An output refuses to emit once its component is gone.\n if (this.destroyed) return written;\n\n if (!written) {\n this.copyFailed.emit();\n return false;\n }\n\n this.clearTimer();\n this.justCopied.set(true);\n this.timer = setTimeout(() => this.justCopied.set(false), WR_COPIED_DURATION);\n this.copied.emit(text);\n return true;\n }\n\n private clearTimer(): void {\n if (this.timer !== null) clearTimeout(this.timer);\n this.timer = null;\n }\n}\n","@if (empty()) {\n <span class=\"wr-copy-value__empty\">{{ resolvedEmptyLabel() }}</span>\n} @else {\n <span class=\"wr-copy-value__text\" [attr.title]=\"wrap() ? null : text()\">{{ text() }}</span>\n <button\n type=\"button\"\n class=\"wr-copy-value__button\"\n [attr.aria-label]=\"resolvedCopyLabel()\"\n [attr.title]=\"justCopied() ? resolvedCopiedLabel() : resolvedCopyLabel()\"\n (click)=\"copy()\"\n >\n <svg\n class=\"wr-copy-value__icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n @if (justCopied()) {\n <path d=\"M20 6 9 17l-5-5\" />\n } @else {\n <rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" />\n <path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />\n }\n </svg>\n </button>\n <!-- Rendered before the copy, empty: a live region announces a change to its\n content, and one inserted together with its text is often not read. -->\n <span class=\"wr-copy-value__status\" role=\"status\" aria-live=\"polite\">{{\n justCopied() ? resolvedCopiedLabel() : ''\n }}</span>\n}\n"],"mappings":"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"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { Component, DestroyRef, Directive, ElementRef, Injectable, Injector, ViewEncapsulation, afterNextRender, computed, effect, inject, input, model, output, signal, untracked, viewChild } from "@angular/core";
|
|
2
|
+
import { Component, DestroyRef, Directive, ElementRef, EnvironmentInjector, Injectable, Injector, ViewEncapsulation, afterNextRender, computed, effect, inject, input, model, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
3
|
import { coerceBooleanProperty, coerceNumberProperty } from "@angular/cdk/coercion";
|
|
4
4
|
import { wrCheckStyles, wrClamp, wrGetFocusableElements, wrToClassList } from "ngwr/utils";
|
|
5
5
|
import { useI18nFormatter, useI18nText, wrReadI18nText } from "ngwr/i18n";
|
|
6
6
|
import { Directionality } from "@angular/cdk/bidi";
|
|
7
|
-
import {
|
|
7
|
+
import { WrDateAdapter, wrDateLocale } from "ngwr/date";
|
|
8
8
|
import { ScrollStrategyOptions } from "@angular/cdk/overlay";
|
|
9
9
|
import { ComponentPortal } from "@angular/cdk/portal";
|
|
10
10
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
@@ -123,9 +123,12 @@ var WrTimePanel = class WrTimePanel {
|
|
|
123
123
|
});
|
|
124
124
|
adapter = inject(WrDateAdapter);
|
|
125
125
|
host = inject(ElementRef);
|
|
126
|
-
|
|
127
|
-
numerals = numeralsFor(this.locale);
|
|
128
|
-
|
|
126
|
+
dateLocale = wrDateLocale();
|
|
127
|
+
numerals = computed(() => numeralsFor(this.locale), ...ngDevMode ? [{ debugName: "numerals" }] : /* istanbul ignore next */ []);
|
|
128
|
+
get locale() {
|
|
129
|
+
return this.dateLocale();
|
|
130
|
+
}
|
|
131
|
+
separator = computed(() => timeSeparatorFor(this.locale), ...ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []);
|
|
129
132
|
value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
130
133
|
touch = output();
|
|
131
134
|
hours = signal(0, ...ngDevMode ? [{ debugName: "hours" }] : /* istanbul ignore next */ []);
|
|
@@ -187,7 +190,7 @@ var WrTimePanel = class WrTimePanel {
|
|
|
187
190
|
minutesDisplay = computed(() => padLocale(this.minutes(), this.locale), ...ngDevMode ? [{ debugName: "minutesDisplay" }] : /* istanbul ignore next */ []);
|
|
188
191
|
secondsDisplay = computed(() => padLocale(this.seconds(), this.locale), ...ngDevMode ? [{ debugName: "secondsDisplay" }] : /* istanbul ignore next */ []);
|
|
189
192
|
classes = computed(() => {
|
|
190
|
-
const parts = [
|
|
193
|
+
const parts = [];
|
|
191
194
|
if (this.is12h()) parts.push("wr-time-picker--12h");
|
|
192
195
|
if (this.showSeconds()) parts.push("wr-time-picker--with-seconds");
|
|
193
196
|
if (this.effectiveDisabled()) parts.push("wr-time-picker--disabled");
|
|
@@ -197,7 +200,7 @@ var WrTimePanel = class WrTimePanel {
|
|
|
197
200
|
onHoursInput(event) {
|
|
198
201
|
const raw = event.target.value;
|
|
199
202
|
if (!raw.trim()) return;
|
|
200
|
-
const n = readNumber(raw, this.numerals);
|
|
203
|
+
const n = readNumber(raw, this.numerals());
|
|
201
204
|
if (Number.isNaN(n)) return;
|
|
202
205
|
if (this.is12h()) {
|
|
203
206
|
if (Math.trunc(n) === 0) return;
|
|
@@ -209,7 +212,7 @@ var WrTimePanel = class WrTimePanel {
|
|
|
209
212
|
onMinutesInput(event) {
|
|
210
213
|
const raw = event.target.value;
|
|
211
214
|
if (!raw.trim()) return;
|
|
212
|
-
const n = readNumber(raw, this.numerals);
|
|
215
|
+
const n = readNumber(raw, this.numerals());
|
|
213
216
|
if (Number.isNaN(n)) return;
|
|
214
217
|
this.minutes.set(wrClamp(Math.trunc(n), 0, 59));
|
|
215
218
|
this.emit();
|
|
@@ -217,7 +220,7 @@ var WrTimePanel = class WrTimePanel {
|
|
|
217
220
|
onSecondsInput(event) {
|
|
218
221
|
const raw = event.target.value;
|
|
219
222
|
if (!raw.trim()) return;
|
|
220
|
-
const n = readNumber(raw, this.numerals);
|
|
223
|
+
const n = readNumber(raw, this.numerals());
|
|
221
224
|
if (Number.isNaN(n)) return;
|
|
222
225
|
this.seconds.set(wrClamp(Math.trunc(n), 0, 59));
|
|
223
226
|
this.emit();
|
|
@@ -320,9 +323,12 @@ var WrTimePanel = class WrTimePanel {
|
|
|
320
323
|
value: "valueChange",
|
|
321
324
|
touch: "touch"
|
|
322
325
|
},
|
|
323
|
-
host: {
|
|
326
|
+
host: {
|
|
327
|
+
properties: { "class": "classes()" },
|
|
328
|
+
classAttribute: "wr-time-picker"
|
|
329
|
+
},
|
|
324
330
|
ngImport: i0,
|
|
325
|
-
template: "<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m18 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"hoursLabel()\"\n [value]=\"hoursDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onHoursInput($event)\"\n (blur)=\"onBlur($event, hoursDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n<span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator }}</span>\n\n<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m18 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"minutesLabel()\"\n [value]=\"minutesDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onMinutesInput($event)\"\n (blur)=\"onBlur($event, minutesDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n@if (showSeconds()) {\n <span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator }}</span>\n\n <div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m18 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"secondsLabel()\"\n [value]=\"secondsDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onSecondsInput($event)\"\n (blur)=\"onBlur($event, secondsDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n\n@if (is12h()) {\n <div class=\"wr-time-picker__col wr-time-picker__col--ampm\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m18 15-6-6-6 6\" />\n </svg>\n </button>\n <span class=\"wr-time-picker__label\" aria-live=\"polite\">{{ amPmLabel() }}</span>\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n",
|
|
331
|
+
template: "<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m18 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"hoursLabel()\"\n [value]=\"hoursDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onHoursInput($event)\"\n (blur)=\"onBlur($event, hoursDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n<span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator() }}</span>\n\n<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m18 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"minutesLabel()\"\n [value]=\"minutesDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onMinutesInput($event)\"\n (blur)=\"onBlur($event, minutesDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n@if (showSeconds()) {\n <span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator() }}</span>\n\n <div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m18 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"secondsLabel()\"\n [value]=\"secondsDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onSecondsInput($event)\"\n (blur)=\"onBlur($event, secondsDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n\n@if (is12h()) {\n <div class=\"wr-time-picker__col wr-time-picker__col--ampm\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m18 15-6-6-6 6\" />\n </svg>\n </button>\n <span class=\"wr-time-picker__label\" aria-live=\"polite\">{{ amPmLabel() }}</span>\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n",
|
|
326
332
|
encapsulation: i0.ViewEncapsulation.None
|
|
327
333
|
});
|
|
328
334
|
};
|
|
@@ -336,8 +342,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
336
342
|
args: [{
|
|
337
343
|
selector: "wr-time-picker",
|
|
338
344
|
encapsulation: ViewEncapsulation.None,
|
|
339
|
-
host: {
|
|
340
|
-
|
|
345
|
+
host: {
|
|
346
|
+
class: "wr-time-picker",
|
|
347
|
+
"[class]": "classes()"
|
|
348
|
+
},
|
|
349
|
+
template: "<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m18 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"hoursLabel()\"\n [value]=\"hoursDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onHoursInput($event)\"\n (blur)=\"onBlur($event, hoursDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n<span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator() }}</span>\n\n<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m18 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"minutesLabel()\"\n [value]=\"minutesDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onMinutesInput($event)\"\n (blur)=\"onBlur($event, minutesDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n@if (showSeconds()) {\n <span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator() }}</span>\n\n <div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m18 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"secondsLabel()\"\n [value]=\"secondsDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onSecondsInput($event)\"\n (blur)=\"onBlur($event, secondsDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n\n@if (is12h()) {\n <div class=\"wr-time-picker__col wr-time-picker__col--ampm\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m18 15-6-6-6 6\" />\n </svg>\n </button>\n <span class=\"wr-time-picker__label\" aria-live=\"polite\">{{ amPmLabel() }}</span>\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n"
|
|
341
350
|
}]
|
|
342
351
|
}],
|
|
343
352
|
ctorParameters: () => [],
|
|
@@ -679,14 +688,16 @@ let statusUid = 0;
|
|
|
679
688
|
function orNothing(format) {
|
|
680
689
|
return (params) => format(params) || void 0;
|
|
681
690
|
}
|
|
682
|
-
function useDateInputRefusals() {
|
|
683
|
-
const
|
|
691
|
+
function useDateInputRefusals(pick) {
|
|
692
|
+
const injected = inject(WrDateAdapter);
|
|
693
|
+
const dates = pick ?? (() => injected);
|
|
684
694
|
const formatText = orNothing(useI18nFormatter("validation.dateFormat", ""));
|
|
685
695
|
const minText = orNothing(useI18nFormatter("validation.minDate", ""));
|
|
686
696
|
const maxText = orNothing(useI18nFormatter("validation.maxDate", ""));
|
|
687
697
|
const filterText = orNothing(useI18nFormatter("validation.dateFilter", ""));
|
|
688
698
|
return {
|
|
689
699
|
unreadable(format) {
|
|
700
|
+
const adapter = dates();
|
|
690
701
|
const reference = adapter.setTime(adapter.createDate(adapter.getYear(adapter.today()), 11, 31), 18, 45, 0);
|
|
691
702
|
const example = adapter.format(reference, format);
|
|
692
703
|
return {
|
|
@@ -696,6 +707,7 @@ function useDateInputRefusals() {
|
|
|
696
707
|
};
|
|
697
708
|
},
|
|
698
709
|
outOfBounds(date, { min, max, filter }) {
|
|
710
|
+
const adapter = dates();
|
|
699
711
|
if (min && adapter.compareDate(date, min) < 0) return {
|
|
700
712
|
kind: "minDate",
|
|
701
713
|
date,
|
|
@@ -821,6 +833,24 @@ function tabLeavesPane(pane, event) {
|
|
|
821
833
|
* Use of this source code is governed by an MIT-style license that can be
|
|
822
834
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
823
835
|
*/
|
|
836
|
+
function wrPickerAdapter(adapter, withTime) {
|
|
837
|
+
return withTime ? adapter.zoned() : adapter;
|
|
838
|
+
}
|
|
839
|
+
function wrPickerPanelInjector(parent, adapter) {
|
|
840
|
+
return Injector.create({
|
|
841
|
+
parent,
|
|
842
|
+
providers: [{
|
|
843
|
+
provide: WrDateAdapter,
|
|
844
|
+
useValue: adapter
|
|
845
|
+
}]
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* @license
|
|
850
|
+
*
|
|
851
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
852
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
853
|
+
*/
|
|
824
854
|
let panelUid = 0;
|
|
825
855
|
const SILENCE_MS$1 = 100;
|
|
826
856
|
var WrDatePicker = class WrDatePicker {
|
|
@@ -854,7 +884,11 @@ var WrDatePicker = class WrDatePicker {
|
|
|
854
884
|
...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
|
|
855
885
|
transform: coerceBooleanProperty
|
|
856
886
|
});
|
|
857
|
-
|
|
887
|
+
dayAdapter = inject(WrDateAdapter);
|
|
888
|
+
environment = inject(EnvironmentInjector);
|
|
889
|
+
get adapter() {
|
|
890
|
+
return wrPickerAdapter(this.dayAdapter, this.mode() !== "date");
|
|
891
|
+
}
|
|
858
892
|
overlay = inject(WR_OVERLAY);
|
|
859
893
|
outsideClick = inject(WrOutsideClick);
|
|
860
894
|
scrollStrategies = inject(ScrollStrategyOptions);
|
|
@@ -913,7 +947,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
913
947
|
if (m === "datetime") return this.panelLabelDateTime();
|
|
914
948
|
return this.panelLabelDate();
|
|
915
949
|
}, ...ngDevMode ? [{ debugName: "resolvedPanelLabel" }] : /* istanbul ignore next */ []);
|
|
916
|
-
refusals = useDateInputRefusals();
|
|
950
|
+
refusals = useDateInputRefusals(() => this.adapter);
|
|
917
951
|
reportToForm = useFormParseErrors(this.value, () => this.onFormReset());
|
|
918
952
|
inputField = inject(WrDateInputField);
|
|
919
953
|
refusal = signal(null, ...ngDevMode ? [{ debugName: "refusal" }] : /* istanbul ignore next */ []);
|
|
@@ -932,7 +966,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
932
966
|
labelledBy = computed(() => this.ariaLabel() ? null : this.inputField.outer?.labelId?.() ?? null, ...ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []);
|
|
933
967
|
nameLabel = computed(() => this.labelledBy() ? null : this.resolvedAriaLabel(), ...ngDevMode ? [{ debugName: "nameLabel" }] : /* istanbul ignore next */ []);
|
|
934
968
|
classes = computed(() => {
|
|
935
|
-
const parts = [
|
|
969
|
+
const parts = [`wr-date-picker--${this.mode()}`];
|
|
936
970
|
const size = this.size();
|
|
937
971
|
if (size !== "md") parts.push(`wr-date-picker--${size}`);
|
|
938
972
|
if (this.disabled()) parts.push("wr-date-picker--disabled");
|
|
@@ -946,6 +980,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
946
980
|
lastFromPanel = null;
|
|
947
981
|
lastValue = null;
|
|
948
982
|
lastFormat = null;
|
|
983
|
+
lastKey = null;
|
|
949
984
|
constructor() {
|
|
950
985
|
if (typeof ngDevMode === "undefined" || ngDevMode) wrCheckStyles("date-picker");
|
|
951
986
|
this.destroyRef.onDestroy(() => {
|
|
@@ -955,11 +990,13 @@ var WrDatePicker = class WrDatePicker {
|
|
|
955
990
|
effect(() => {
|
|
956
991
|
const v = this.value();
|
|
957
992
|
const fmt = this.resolvedFormat();
|
|
993
|
+
const key = this.adapter.displayKey();
|
|
958
994
|
untracked(() => {
|
|
959
995
|
const outside = v !== this.lastValue;
|
|
960
|
-
const echo = this.sameDate(v, this.lastValue) && fmt === this.lastFormat;
|
|
996
|
+
const echo = this.sameDate(v, this.lastValue) && fmt === this.lastFormat && key === this.lastKey;
|
|
961
997
|
this.lastValue = v;
|
|
962
998
|
this.lastFormat = fmt;
|
|
999
|
+
this.lastKey = key;
|
|
963
1000
|
if (echo && !(outside && this.refusal())) return;
|
|
964
1001
|
this.text.set(v && this.adapter.isValid(v) ? this.adapter.format(v, fmt) : "");
|
|
965
1002
|
this.refuse(null);
|
|
@@ -1201,6 +1238,9 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1201
1238
|
});
|
|
1202
1239
|
this.opened.emit();
|
|
1203
1240
|
}
|
|
1241
|
+
panelInjector() {
|
|
1242
|
+
return wrPickerPanelInjector(this.environment, this.adapter);
|
|
1243
|
+
}
|
|
1204
1244
|
attachDate() {
|
|
1205
1245
|
if (!this.overlayRef) return;
|
|
1206
1246
|
const ref = this.overlayRef.attach(new ComponentPortal(WrCalendar));
|
|
@@ -1218,7 +1258,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1218
1258
|
}
|
|
1219
1259
|
attachTime() {
|
|
1220
1260
|
if (!this.overlayRef) return;
|
|
1221
|
-
const ref = this.overlayRef.attach(new ComponentPortal(WrTimePanel));
|
|
1261
|
+
const ref = this.overlayRef.attach(new ComponentPortal(WrTimePanel, null, this.panelInjector()));
|
|
1222
1262
|
ref.setInput("format", this.timeFormat());
|
|
1223
1263
|
ref.setInput("showSeconds", this.showSeconds());
|
|
1224
1264
|
ref.setInput("step", this.step());
|
|
@@ -1234,7 +1274,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1234
1274
|
}
|
|
1235
1275
|
attachDateTime() {
|
|
1236
1276
|
if (!this.overlayRef) return;
|
|
1237
|
-
const ref = this.overlayRef.attach(new ComponentPortal(WrDateTimePanel));
|
|
1277
|
+
const ref = this.overlayRef.attach(new ComponentPortal(WrDateTimePanel, null, this.panelInjector()));
|
|
1238
1278
|
ref.setInput("value", this.value());
|
|
1239
1279
|
ref.setInput("min", this.min());
|
|
1240
1280
|
ref.setInput("max", this.max());
|
|
@@ -1444,7 +1484,10 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1444
1484
|
opened: "opened",
|
|
1445
1485
|
closed: "closed"
|
|
1446
1486
|
},
|
|
1447
|
-
host: {
|
|
1487
|
+
host: {
|
|
1488
|
+
properties: { "class": "classes()" },
|
|
1489
|
+
classAttribute: "wr-date-picker"
|
|
1490
|
+
},
|
|
1448
1491
|
providers: [WrDateInputField],
|
|
1449
1492
|
viewQueries: [{
|
|
1450
1493
|
propertyName: "inputEl",
|
|
@@ -1494,7 +1537,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1494
1537
|
args: [{
|
|
1495
1538
|
selector: "wr-date-picker",
|
|
1496
1539
|
encapsulation: ViewEncapsulation.None,
|
|
1497
|
-
host: {
|
|
1540
|
+
host: {
|
|
1541
|
+
class: "wr-date-picker",
|
|
1542
|
+
"[class]": "classes()"
|
|
1543
|
+
},
|
|
1498
1544
|
imports: [
|
|
1499
1545
|
WrInput,
|
|
1500
1546
|
WrInputGroup,
|
|
@@ -2051,7 +2097,11 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
2051
2097
|
...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
|
|
2052
2098
|
transform: coerceBooleanProperty
|
|
2053
2099
|
});
|
|
2054
|
-
|
|
2100
|
+
dayAdapter = inject(WrDateAdapter);
|
|
2101
|
+
environment = inject(EnvironmentInjector);
|
|
2102
|
+
get adapter() {
|
|
2103
|
+
return wrPickerAdapter(this.dayAdapter, this.mode() === "datetime");
|
|
2104
|
+
}
|
|
2055
2105
|
overlay = inject(WR_OVERLAY);
|
|
2056
2106
|
outsideClick = inject(WrOutsideClick);
|
|
2057
2107
|
scrollStrategies = inject(ScrollStrategyOptions);
|
|
@@ -2095,7 +2145,7 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
2095
2145
|
if (explicit) return explicit;
|
|
2096
2146
|
return this.isDateTime() ? this.panelLabelRangeDateTime() : this.panelLabelRange();
|
|
2097
2147
|
}, ...ngDevMode ? [{ debugName: "resolvedPanelLabel" }] : /* istanbul ignore next */ []);
|
|
2098
|
-
refusalBuilder = useDateInputRefusals();
|
|
2148
|
+
refusalBuilder = useDateInputRefusals(() => this.adapter);
|
|
2099
2149
|
reportToForm = useFormParseErrors(this.value, () => this.onFormReset());
|
|
2100
2150
|
inputField = inject(WrDateInputField);
|
|
2101
2151
|
refusals = signal([null, null], ...ngDevMode ? [{ debugName: "refusals" }] : /* istanbul ignore next */ []);
|
|
@@ -2135,7 +2185,7 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
2135
2185
|
startDescribedBy = computed(() => !this.inputField.outer && this.shownErrors()[0]?.message && this.announcement() ? this.statusId : null, ...ngDevMode ? [{ debugName: "startDescribedBy" }] : /* istanbul ignore next */ []);
|
|
2136
2186
|
endDescribedBy = computed(() => this.shownErrors()[1]?.message && this.announcement() ? this.statusId : null, ...ngDevMode ? [{ debugName: "endDescribedBy" }] : /* istanbul ignore next */ []);
|
|
2137
2187
|
classes = computed(() => {
|
|
2138
|
-
const parts = [
|
|
2188
|
+
const parts = [`wr-date-range-picker--${this.mode()}`];
|
|
2139
2189
|
const size = this.size();
|
|
2140
2190
|
if (size !== "md") parts.push(`wr-date-range-picker--${size}`);
|
|
2141
2191
|
if (this.disabled()) parts.push("wr-date-range-picker--disabled");
|
|
@@ -2155,7 +2205,7 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
2155
2205
|
this.inputField.describe(computed(() => this.shownErrors()[0]));
|
|
2156
2206
|
effect(() => {
|
|
2157
2207
|
const v = this.value();
|
|
2158
|
-
const fmt = this.resolvedFormat()
|
|
2208
|
+
const fmt = `${this.resolvedFormat()}|${this.adapter.displayKey()}`;
|
|
2159
2209
|
untracked(() => {
|
|
2160
2210
|
const formatMoved = this.lastFormat !== null && fmt !== this.lastFormat;
|
|
2161
2211
|
this.lastFormat = fmt;
|
|
@@ -2388,7 +2438,7 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
2388
2438
|
pane.setAttribute("aria-modal", "false");
|
|
2389
2439
|
pane.setAttribute("aria-label", this.resolvedPanelLabel());
|
|
2390
2440
|
pane.addEventListener("focusout", this.onPaneFocusOut);
|
|
2391
|
-
const ref = this.overlayRef.attach(new ComponentPortal(WrDateRangePanel));
|
|
2441
|
+
const ref = this.overlayRef.attach(new ComponentPortal(WrDateRangePanel, null, wrPickerPanelInjector(this.environment, this.adapter)));
|
|
2392
2442
|
ref.setInput("value", this.value() ?? [null, null]);
|
|
2393
2443
|
ref.setInput("autoFocus", this.autoFocusPanel);
|
|
2394
2444
|
this.panelRef.set(ref);
|
|
@@ -2647,7 +2697,10 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
2647
2697
|
opened: "opened",
|
|
2648
2698
|
closed: "closed"
|
|
2649
2699
|
},
|
|
2650
|
-
host: {
|
|
2700
|
+
host: {
|
|
2701
|
+
properties: { "class": "classes()" },
|
|
2702
|
+
classAttribute: "wr-date-range-picker"
|
|
2703
|
+
},
|
|
2651
2704
|
providers: [WrDateInputField],
|
|
2652
2705
|
viewQueries: [
|
|
2653
2706
|
{
|
|
@@ -2712,7 +2765,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2712
2765
|
args: [{
|
|
2713
2766
|
selector: "wr-date-range-picker",
|
|
2714
2767
|
encapsulation: ViewEncapsulation.None,
|
|
2715
|
-
host: {
|
|
2768
|
+
host: {
|
|
2769
|
+
class: "wr-date-range-picker",
|
|
2770
|
+
"[class]": "classes()"
|
|
2771
|
+
},
|
|
2716
2772
|
imports: [
|
|
2717
2773
|
WrDateRangeEndInput,
|
|
2718
2774
|
WrInput,
|