yukit-web 0.10.6 → 0.10.7
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/fesm2022/yukit-web-chart.mjs +807 -552
- package/fesm2022/yukit-web-chart.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
- package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
- package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert.mjs +199 -91
- package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
- package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
- package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
- package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-badge.mjs +78 -44
- package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
- package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
- package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
- package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button.mjs +137 -67
- package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
- package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-card.mjs +318 -136
- package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
- package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
- package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
- package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
- package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-command.mjs +752 -260
- package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
- package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
- package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
- package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
- package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-empty.mjs +280 -121
- package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-field.mjs +670 -301
- package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
- package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
- package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
- package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input.mjs +62 -30
- package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-item.mjs +545 -227
- package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
- package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-label.mjs +60 -28
- package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-marker.mjs +165 -74
- package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
- package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-message.mjs +277 -112
- package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
- package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
- package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
- package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-popover.mjs +358 -133
- package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-progress.mjs +126 -58
- package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
- package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
- package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
- package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-select.mjs +1059 -351
- package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-separator.mjs +61 -31
- package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
- package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
- package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
- package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-slider.mjs +139 -59
- package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
- package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
- package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-switch.mjs +326 -94
- package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-table.mjs +374 -177
- package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
- package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
- package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
- package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
- package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
- package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-typography.mjs +461 -202
- package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-utils.mjs +131 -253
- package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
- package/fesm2022/yukit-web.mjs +24457 -9670
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +9 -9
- package/types/yukit-web-chart.d.ts +184 -125
- package/types/yukit-web-helm-accordion.d.ts +49 -28
- package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
- package/types/yukit-web-helm-alert.d.ts +30 -32
- package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
- package/types/yukit-web-helm-attachment.d.ts +97 -69
- package/types/yukit-web-helm-autocomplete.d.ts +205 -79
- package/types/yukit-web-helm-avatar.d.ts +44 -39
- package/types/yukit-web-helm-badge.d.ts +18 -17
- package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
- package/types/yukit-web-helm-bubble.d.ts +54 -40
- package/types/yukit-web-helm-button-group.d.ts +29 -22
- package/types/yukit-web-helm-button.d.ts +41 -31
- package/types/yukit-web-helm-calendar.d.ts +157 -85
- package/types/yukit-web-helm-card.d.ts +38 -42
- package/types/yukit-web-helm-carousel.d.ts +105 -73
- package/types/yukit-web-helm-checkbox.d.ts +117 -58
- package/types/yukit-web-helm-collapsible.d.ts +34 -19
- package/types/yukit-web-helm-combobox.d.ts +355 -150
- package/types/yukit-web-helm-command.d.ts +140 -73
- package/types/yukit-web-helm-context-menu.d.ts +48 -27
- package/types/yukit-web-helm-date-picker.d.ts +852 -556
- package/types/yukit-web-helm-dialog.d.ts +106 -78
- package/types/yukit-web-helm-drawer.d.ts +90 -61
- package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
- package/types/yukit-web-helm-empty.d.ts +38 -42
- package/types/yukit-web-helm-field.d.ts +122 -91
- package/types/yukit-web-helm-hover-card.d.ts +39 -27
- package/types/yukit-web-helm-input-group.d.ts +63 -41
- package/types/yukit-web-helm-input-otp.d.ts +38 -35
- package/types/yukit-web-helm-input.d.ts +19 -12
- package/types/yukit-web-helm-item.d.ts +90 -82
- package/types/yukit-web-helm-kbd.d.ts +10 -15
- package/types/yukit-web-helm-label.d.ts +14 -11
- package/types/yukit-web-helm-marker.d.ts +26 -27
- package/types/yukit-web-helm-menubar.d.ts +61 -32
- package/types/yukit-web-helm-message.d.ts +34 -38
- package/types/yukit-web-helm-native-select.d.ts +102 -61
- package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
- package/types/yukit-web-helm-pagination.d.ts +344 -166
- package/types/yukit-web-helm-popover.d.ts +62 -42
- package/types/yukit-web-helm-progress.d.ts +27 -20
- package/types/yukit-web-helm-radio-group.d.ts +121 -63
- package/types/yukit-web-helm-resizable.d.ts +46 -24
- package/types/yukit-web-helm-scroll-area.d.ts +6 -10
- package/types/yukit-web-helm-select.d.ts +231 -114
- package/types/yukit-web-helm-separator.d.ts +15 -12
- package/types/yukit-web-helm-sheet.d.ts +94 -65
- package/types/yukit-web-helm-sidebar.d.ts +322 -232
- package/types/yukit-web-helm-skeleton.d.ts +6 -10
- package/types/yukit-web-helm-slider.d.ts +33 -13
- package/types/yukit-web-helm-sonner.d.ts +112 -51
- package/types/yukit-web-helm-spinner.d.ts +24 -17
- package/types/yukit-web-helm-switch.d.ts +89 -51
- package/types/yukit-web-helm-table.d.ts +38 -42
- package/types/yukit-web-helm-tabs.d.ts +116 -60
- package/types/yukit-web-helm-textarea.d.ts +19 -12
- package/types/yukit-web-helm-toggle-group.d.ts +81 -32
- package/types/yukit-web-helm-toggle.d.ts +39 -21
- package/types/yukit-web-helm-tooltip.d.ts +21 -16
- package/types/yukit-web-helm-typography.d.ts +62 -77
- package/types/yukit-web-helm-utils.d.ts +8 -11
- package/types/yukit-web.d.ts +5092 -2351
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yukit-web-helm-command.mjs","sources":["../../../projects/yukit-web/helm/command/src/lib/hlm-command.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-dialog.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-empty.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-empty-state.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-group.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-group-label.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-input.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-item.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-list.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-separator.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-shortcut.ts","../../../projects/yukit-web/helm/command/src/index.ts","../../../projects/yukit-web/helm/command/src/yukit-web-helm-command.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnCommand } from '@spartan-ng/brain/command';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommand],hlm-command',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnCommand,\n\t\t\tinputs: ['id', 'filter', 'search', 'disabled'],\n\t\t\toutputs: ['valueChange', 'searchChange'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'command',\n\t},\n})\nexport class HlmCommand {\n\tconstructor() {\n\t\tclasses(() => 'bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden');\n\t}\n}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tinput,\n\tlinkedSignal,\n\toutput,\n} from '@angular/core';\nimport { BrnDialogState } from '@spartan-ng/brain/dialog';\nimport { HlmDialogImports } from 'yukit-web/helm/dialog';\nimport { hlm } from 'yukit-web/helm/utils';\nimport { ClassValue } from 'clsx';\n\n@Component({\n\tselector: 'hlm-command-dialog',\n\timports: [HlmDialogImports],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<hlm-dialog [state]=\"_state()\" (stateChanged)=\"stateChanged($event)\">\n\t\t\t<hlm-dialog-content\n\t\t\t\t*hlmDialogPortal=\"let ctx\"\n\t\t\t\t[class]=\"_computedDialogContentClass()\"\n\t\t\t\t[showCloseButton]=\"showCloseButton()\"\n\t\t\t>\n\t\t\t\t<hlm-dialog-header class=\"sr-only\">\n\t\t\t\t\t<h2 hlmDialogTitle>{{ title() }}</h2>\n\t\t\t\t\t<p hlmDialogDescription>{{ description() }}</p>\n\t\t\t\t</hlm-dialog-header>\n\t\t\t\t<ng-content />\n\t\t\t</hlm-dialog-content>\n\t\t</hlm-dialog>\n\t`,\n})\nexport class HlmCommandDialog {\n\tpublic readonly title = input<string>('Command Palette');\n\tpublic readonly description = input<string>('Search for a command to run...');\n\n\tpublic readonly state = input<BrnDialogState>('closed');\n\tprotected readonly _state = linkedSignal(this.state);\n\n\tpublic readonly showCloseButton = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\tpublic readonly dialogContentClass = input<ClassValue>('');\n\tprotected readonly _computedDialogContentClass = computed(() => hlm('w-96 p-0', this.dialogContentClass()));\n\n\tpublic readonly stateChange = output<BrnDialogState>();\n\n\tprotected stateChanged(state: BrnDialogState) {\n\t\tthis.stateChange.emit(state);\n\t\tthis._state.set(state);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommandEmpty]',\n\thost: {\n\t\t'data-slot': 'command-empty',\n\t},\n})\nexport class HlmCommandEmpty {\n\tconstructor() {\n\t\tclasses(() => 'py-6 text-center text-sm');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnCommandEmpty } from '@spartan-ng/brain/command';\n\n@Directive({\n\tselector: '[hlmCommandEmptyState]',\n\thostDirectives: [BrnCommandEmpty],\n})\nexport class HlmCommandEmptyState {}\n","import { Directive } from '@angular/core';\nimport { BrnCommandGroup } from '@spartan-ng/brain/command';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommandGroup],hlm-command-group',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnCommandGroup,\n\t\t\tinputs: ['id'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'command-group',\n\t},\n})\nexport class HlmCommandGroup {\n\tconstructor() {\n\t\tclasses(() => 'text-foreground **:data-[slot=command-group-label]:text-muted-foreground overflow-hidden p-1 **:data-[slot=command-group-label]:px-2 **:data-[slot=command-group-label]:py-1.5 **:data-[slot=command-group-label]:text-xs **:data-[slot=command-group-label]:font-medium block data-hidden:hidden');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommandGroupLabel],hlm-command-group-label',\n\thost: {\n\t\t'data-slot': 'command-group-label',\n\t\trole: 'presentation',\n\t},\n})\nexport class HlmCommandGroupLabel {\n\tconstructor() {\n\t\tclasses(() => 'inline-block');\n\t}\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideSearch } from '@ng-icons/lucide';\nimport { BrnCommandInput } from '@spartan-ng/brain/command';\nimport { HlmInputGroupImports } from 'yukit-web/helm/input-group';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-command-input',\n\timports: [HlmInputGroupImports, NgIcon, BrnCommandInput],\n\tproviders: [provideIcons({ lucideSearch })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'command-input-wrapper',\n\t},\n\ttemplate: `\n\t\t<hlm-input-group class=\"bg-input/30 border-input/30 h-8! rounded-lg! shadow-none! *:data-[slot=input-group-addon]:ps-2!\">\n\t\t\t<input\n\t\t\t\tbrnCommandInput\n\t\t\t\tdata-slot=\"command-input\"\n\t\t\t\tclass=\"w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50\"\n\t\t\t\t[id]=\"inputId()\"\n\t\t\t\t[placeholder]=\"placeholder()\"\n\t\t\t/>\n\n\t\t\t<hlm-input-group-addon>\n\t\t\t\t<ng-icon name=\"lucideSearch\" class=\"shrink-0 text-[length:--spacing(4)] opacity-50\" />\n\t\t\t</hlm-input-group-addon>\n\t\t</hlm-input-group>\n\t`,\n})\nexport class HlmCommandInput {\n\tpublic readonly inputId = input<string | undefined>();\n\tpublic readonly placeholder = input<string>('');\n\n\tconstructor() {\n\t\tclasses(() => 'p-1 pb-0');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnCommandItem } from '@spartan-ng/brain/command';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'button[hlmCommandItem],button[hlm-command-item]',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnCommandItem,\n\t\t\tinputs: ['value', 'disabled', 'id'],\n\t\t\toutputs: ['selected'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'command-item',\n\t},\n})\nexport class HlmCommandItem {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t\"data-selected:bg-muted data-selected:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] group/command-item w-full data-disabled:pointer-events-none data-disabled:opacity-50 data-hidden:hidden [&>ng-icon]:pointer-events-none [&>ng-icon]:shrink-0\",\n\t\t);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnCommandList } from '@spartan-ng/brain/command';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommandList],hlm-command-list',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnCommandList,\n\t\t\tinputs: ['id'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'command-list',\n\t},\n})\nexport class HlmCommandList {\n\tconstructor() {\n\t\tclasses(() => 'no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnCommandSeparator } from '@spartan-ng/brain/command';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommandSeparator],hlm-command-separator',\n\thostDirectives: [BrnCommandSeparator],\n\thost: {\n\t\t'data-slot': 'command-separator',\n\t},\n})\nexport class HlmCommandSeparator {\n\tconstructor() {\n\t\tclasses(() => 'bg-border -mx-1 h-px block data-hidden:hidden');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommandShortcut],hlm-command-shortcut',\n\thost: {\n\t\t'data-slot': 'command-shortcut',\n\t},\n})\nexport class HlmCommandShortcut {\n\tconstructor() {\n\t\tclasses(() => 'text-muted-foreground group-data-[selected]/command-item:text-foreground ms-auto text-xs tracking-widest');\n\t}\n}\n","import { HlmCommand } from './lib/hlm-command';\nimport { HlmCommandDialog } from './lib/hlm-command-dialog';\nimport { HlmCommandEmpty } from './lib/hlm-command-empty';\nimport { HlmCommandEmptyState } from './lib/hlm-command-empty-state';\nimport { HlmCommandGroup } from './lib/hlm-command-group';\nimport { HlmCommandGroupLabel } from './lib/hlm-command-group-label';\nimport { HlmCommandInput } from './lib/hlm-command-input';\nimport { HlmCommandItem } from './lib/hlm-command-item';\nimport { HlmCommandList } from './lib/hlm-command-list';\nimport { HlmCommandSeparator } from './lib/hlm-command-separator';\nimport { HlmCommandShortcut } from './lib/hlm-command-shortcut';\n\nexport * from './lib/hlm-command';\nexport * from './lib/hlm-command-dialog';\nexport * from './lib/hlm-command-empty';\nexport * from './lib/hlm-command-empty-state';\nexport * from './lib/hlm-command-group';\nexport * from './lib/hlm-command-group-label';\nexport * from './lib/hlm-command-input';\nexport * from './lib/hlm-command-item';\nexport * from './lib/hlm-command-list';\nexport * from './lib/hlm-command-separator';\nexport * from './lib/hlm-command-shortcut';\n\nexport const HlmCommandImports = [\n\tHlmCommand,\n\tHlmCommandDialog,\n\tHlmCommandEmpty,\n\tHlmCommandEmptyState,\n\tHlmCommandGroup,\n\tHlmCommandGroupLabel,\n\tHlmCommandInput,\n\tHlmCommandItem,\n\tHlmCommandList,\n\tHlmCommandSeparator,\n\tHlmCommandShortcut,\n] as const;\n","/**\n * Generated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A,WAAW,EAAE,mBAAmB;AAChC,qBAAA;AACD,iBAAA;;;MCDY,kBAAkB,CAAA;AAC9B,IAAA,WAAA,GAAA;AACC,QAAA,OAAO,CAAC,MAAM,0GAA0G,CAAC;IAC1H;+GAHY,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,kBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,2CAA2C;AACrD,oBAAA,IAAI,EAAE;AACL,wBAAA,WAAW,EAAE,kBAAkB;AAC/B,qBAAA;AACD,iBAAA;;;ACgBM,MAAM,iBAAiB,GAAG;IAChC,UAAU;IACV,gBAAgB;IAChB,eAAe;IACf,oBAAoB;IACpB,eAAe;IACf,oBAAoB;IACpB,eAAe;IACf,cAAc;IACd,cAAc;IACd,mBAAmB;IACnB,kBAAkB;;;ACnCnB;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-command.mjs","names":["i1","i1","i1","i1","i1","i1","i1"],"sources":["../../../projects/yukit-web/helm/command/src/lib/hlm-command.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-dialog.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-empty.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-empty-state.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-group.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-group-label.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-input.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-item.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-list.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-separator.ts","../../../projects/yukit-web/helm/command/src/lib/hlm-command-shortcut.ts","../../../projects/yukit-web/helm/command/src/index.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnCommand } from '@spartan-ng/brain/command';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommand],hlm-command',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnCommand,\n\t\t\tinputs: ['id', 'filter', 'search', 'disabled'],\n\t\t\toutputs: ['valueChange', 'searchChange'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'command',\n\t},\n})\nexport class HlmCommand {\n\tconstructor() {\n\t\tclasses(() => 'bg-popover text-popover-foreground rounded-xl p-1 flex size-full flex-col overflow-hidden');\n\t}\n}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tinput,\n\tlinkedSignal,\n\toutput,\n} from '@angular/core';\nimport { BrnDialogState } from '@spartan-ng/brain/dialog';\nimport { HlmDialogImports } from 'yukit-web/helm/dialog';\nimport { hlm } from 'yukit-web/helm/utils';\nimport { ClassValue } from 'clsx';\n\n@Component({\n\tselector: 'hlm-command-dialog',\n\timports: [HlmDialogImports],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<hlm-dialog [state]=\"_state()\" (stateChanged)=\"stateChanged($event)\">\n\t\t\t<hlm-dialog-content\n\t\t\t\t*hlmDialogPortal=\"let ctx\"\n\t\t\t\t[class]=\"_computedDialogContentClass()\"\n\t\t\t\t[showCloseButton]=\"showCloseButton()\"\n\t\t\t>\n\t\t\t\t<hlm-dialog-header class=\"sr-only\">\n\t\t\t\t\t<h2 hlmDialogTitle>{{ title() }}</h2>\n\t\t\t\t\t<p hlmDialogDescription>{{ description() }}</p>\n\t\t\t\t</hlm-dialog-header>\n\t\t\t\t<ng-content />\n\t\t\t</hlm-dialog-content>\n\t\t</hlm-dialog>\n\t`,\n})\nexport class HlmCommandDialog {\n\tpublic readonly title = input<string>('Command Palette');\n\tpublic readonly description = input<string>('Search for a command to run...');\n\n\tpublic readonly state = input<BrnDialogState>('closed');\n\tprotected readonly _state = linkedSignal(this.state);\n\n\tpublic readonly showCloseButton = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\tpublic readonly dialogContentClass = input<ClassValue>('');\n\tprotected readonly _computedDialogContentClass = computed(() => hlm('w-96 p-0', this.dialogContentClass()));\n\n\tpublic readonly stateChange = output<BrnDialogState>();\n\n\tprotected stateChanged(state: BrnDialogState) {\n\t\tthis.stateChange.emit(state);\n\t\tthis._state.set(state);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommandEmpty]',\n\thost: {\n\t\t'data-slot': 'command-empty',\n\t},\n})\nexport class HlmCommandEmpty {\n\tconstructor() {\n\t\tclasses(() => 'py-6 text-center text-sm');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnCommandEmpty } from '@spartan-ng/brain/command';\n\n@Directive({\n\tselector: '[hlmCommandEmptyState]',\n\thostDirectives: [BrnCommandEmpty],\n})\nexport class HlmCommandEmptyState {}\n","import { Directive } from '@angular/core';\nimport { BrnCommandGroup } from '@spartan-ng/brain/command';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommandGroup],hlm-command-group',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnCommandGroup,\n\t\t\tinputs: ['id'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'command-group',\n\t},\n})\nexport class HlmCommandGroup {\n\tconstructor() {\n\t\tclasses(() => 'text-foreground **:data-[slot=command-group-label]:text-muted-foreground overflow-hidden p-1 **:data-[slot=command-group-label]:px-2 **:data-[slot=command-group-label]:py-1.5 **:data-[slot=command-group-label]:text-xs **:data-[slot=command-group-label]:font-medium block data-hidden:hidden');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommandGroupLabel],hlm-command-group-label',\n\thost: {\n\t\t'data-slot': 'command-group-label',\n\t\trole: 'presentation',\n\t},\n})\nexport class HlmCommandGroupLabel {\n\tconstructor() {\n\t\tclasses(() => 'inline-block');\n\t}\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideSearch } from '@ng-icons/lucide';\nimport { BrnCommandInput } from '@spartan-ng/brain/command';\nimport { HlmInputGroupImports } from 'yukit-web/helm/input-group';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-command-input',\n\timports: [HlmInputGroupImports, NgIcon, BrnCommandInput],\n\tproviders: [provideIcons({ lucideSearch })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'command-input-wrapper',\n\t},\n\ttemplate: `\n\t\t<hlm-input-group class=\"bg-input/30 border-input/30 h-8! rounded-lg! shadow-none! *:data-[slot=input-group-addon]:ps-2!\">\n\t\t\t<input\n\t\t\t\tbrnCommandInput\n\t\t\t\tdata-slot=\"command-input\"\n\t\t\t\tclass=\"w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50\"\n\t\t\t\t[id]=\"inputId()\"\n\t\t\t\t[placeholder]=\"placeholder()\"\n\t\t\t/>\n\n\t\t\t<hlm-input-group-addon>\n\t\t\t\t<ng-icon name=\"lucideSearch\" class=\"shrink-0 text-[length:--spacing(4)] opacity-50\" />\n\t\t\t</hlm-input-group-addon>\n\t\t</hlm-input-group>\n\t`,\n})\nexport class HlmCommandInput {\n\tpublic readonly inputId = input<string | undefined>();\n\tpublic readonly placeholder = input<string>('');\n\n\tconstructor() {\n\t\tclasses(() => 'p-1 pb-0');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnCommandItem } from '@spartan-ng/brain/command';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'button[hlmCommandItem],button[hlm-command-item]',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnCommandItem,\n\t\t\tinputs: ['value', 'disabled', 'id'],\n\t\t\toutputs: ['selected'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'command-item',\n\t},\n})\nexport class HlmCommandItem {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t\"data-selected:bg-muted data-selected:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] group/command-item w-full data-disabled:pointer-events-none data-disabled:opacity-50 data-hidden:hidden [&>ng-icon]:pointer-events-none [&>ng-icon]:shrink-0\",\n\t\t);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnCommandList } from '@spartan-ng/brain/command';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommandList],hlm-command-list',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnCommandList,\n\t\t\tinputs: ['id'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'command-list',\n\t},\n})\nexport class HlmCommandList {\n\tconstructor() {\n\t\tclasses(() => 'no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnCommandSeparator } from '@spartan-ng/brain/command';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommandSeparator],hlm-command-separator',\n\thostDirectives: [BrnCommandSeparator],\n\thost: {\n\t\t'data-slot': 'command-separator',\n\t},\n})\nexport class HlmCommandSeparator {\n\tconstructor() {\n\t\tclasses(() => 'bg-border -mx-1 h-px block data-hidden:hidden');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCommandShortcut],hlm-command-shortcut',\n\thost: {\n\t\t'data-slot': 'command-shortcut',\n\t},\n})\nexport class HlmCommandShortcut {\n\tconstructor() {\n\t\tclasses(() => 'text-muted-foreground group-data-[selected]/command-item:text-foreground ms-auto text-xs tracking-widest');\n\t}\n}\n","import { HlmCommand } from './lib/hlm-command';\nimport { HlmCommandDialog } from './lib/hlm-command-dialog';\nimport { HlmCommandEmpty } from './lib/hlm-command-empty';\nimport { HlmCommandEmptyState } from './lib/hlm-command-empty-state';\nimport { HlmCommandGroup } from './lib/hlm-command-group';\nimport { HlmCommandGroupLabel } from './lib/hlm-command-group-label';\nimport { HlmCommandInput } from './lib/hlm-command-input';\nimport { HlmCommandItem } from './lib/hlm-command-item';\nimport { HlmCommandList } from './lib/hlm-command-list';\nimport { HlmCommandSeparator } from './lib/hlm-command-separator';\nimport { HlmCommandShortcut } from './lib/hlm-command-shortcut';\n\nexport * from './lib/hlm-command';\nexport * from './lib/hlm-command-dialog';\nexport * from './lib/hlm-command-empty';\nexport * from './lib/hlm-command-empty-state';\nexport * from './lib/hlm-command-group';\nexport * from './lib/hlm-command-group-label';\nexport * from './lib/hlm-command-input';\nexport * from './lib/hlm-command-item';\nexport * from './lib/hlm-command-list';\nexport * from './lib/hlm-command-separator';\nexport * from './lib/hlm-command-shortcut';\n\nexport const HlmCommandImports = [\n\tHlmCommand,\n\tHlmCommandDialog,\n\tHlmCommandEmpty,\n\tHlmCommandEmptyState,\n\tHlmCommandGroup,\n\tHlmCommandGroupLabel,\n\tHlmCommandInput,\n\tHlmCommandItem,\n\tHlmCommandList,\n\tHlmCommandSeparator,\n\tHlmCommandShortcut,\n] as const;\n"],"mappings":";;;;;;;;;;;AAiBA,IAAa,aAAb,MAAa,WAAU;CACtB,cAAA;EACC,cAAc,2FAA2F;CAC1G;CAHY;EAAA,KAAA,OAAA,GAAA,mB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1,169 @@
|
|
|
1
|
-
import * as i1 from
|
|
2
|
-
import { CdkContextMenuTrigger } from
|
|
3
|
-
import * as i0 from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { classes } from
|
|
7
|
-
|
|
1
|
+
import * as i1 from "@angular/cdk/menu";
|
|
2
|
+
import { CdkContextMenuTrigger } from "@angular/cdk/menu";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import { Directive, InjectionToken, booleanAttribute, computed, effect, forwardRef, inject, input } from "@angular/core";
|
|
5
|
+
import { MENU_SIDE, createMenuPosition } from "@spartan-ng/brain/core";
|
|
6
|
+
import { classes } from "yukit-web/helm/utils";
|
|
8
7
|
const defaultConfig = {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
align: "start",
|
|
9
|
+
side: "bottom"
|
|
11
10
|
};
|
|
12
|
-
const HlmContextMenuConfigToken = new InjectionToken(
|
|
11
|
+
const HlmContextMenuConfigToken = new InjectionToken("HlmContextMenuConfig");
|
|
13
12
|
function provideHlmContextMenuConfig(config) {
|
|
14
|
-
|
|
13
|
+
return {
|
|
14
|
+
provide: HlmContextMenuConfigToken,
|
|
15
|
+
useValue: {
|
|
16
|
+
...defaultConfig,
|
|
17
|
+
...config
|
|
18
|
+
}
|
|
19
|
+
};
|
|
15
20
|
}
|
|
16
21
|
function injectHlmContextMenuConfig() {
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
class HlmContextMenuTrigger {
|
|
21
|
-
constructor() {
|
|
22
|
-
this._cdkTrigger = inject(CdkContextMenuTrigger, { host: true });
|
|
23
|
-
this._config = injectHlmContextMenuConfig();
|
|
24
|
-
this.disabled = input(this._cdkTrigger.disabled, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
25
|
-
this.align = input(this._config.align, ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
26
|
-
this.side = input(this._config.side, ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
|
|
27
|
-
this._menuPosition = computed(() => createMenuPosition(this.align(), this.side()), ...(ngDevMode ? [{ debugName: "_menuPosition" }] : /* istanbul ignore next */ []));
|
|
28
|
-
// CDK sets transform-origin on the menu content (a shared hlm-dropdown-menu) from the resolved
|
|
29
|
-
// position; the content reads it to animate from the anchored corner and to derive its data-side.
|
|
30
|
-
// Cast tolerates @angular/cdk < 21.2 (we still support >=21.0), where the property is absent and
|
|
31
|
-
// the assignment is a harmless no-op.
|
|
32
|
-
this._cdkTrigger.transformOriginSelector = '[data-slot="dropdown-menu"]';
|
|
33
|
-
effect(() => {
|
|
34
|
-
this._cdkTrigger.menuPosition = this._menuPosition();
|
|
35
|
-
});
|
|
36
|
-
classes(() => 'select-none');
|
|
37
|
-
}
|
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmContextMenuTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
39
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmContextMenuTrigger, isStandalone: true, selector: "[hlmContextMenuTrigger]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "context-menu-trigger" }, properties: { "attr.data-disabled": "disabled() ? \"\" : null" } }, providers: [{ provide: MENU_SIDE, useExisting: forwardRef(() => HlmContextMenuTrigger) }], hostDirectives: [{ directive: i1.CdkContextMenuTrigger, inputs: ["cdkContextMenuTriggerFor", "hlmContextMenuTrigger", "cdkContextMenuTriggerData", "hlmContextMenuTriggerData", "cdkContextMenuDisabled", "disabled"], outputs: ["cdkContextMenuOpened", "hlmContextMenuOpened", "cdkContextMenuClosed", "hlmContextMenuClosed"] }], ngImport: i0 }); }
|
|
22
|
+
return inject(HlmContextMenuConfigToken, { optional: true }) ?? defaultConfig;
|
|
40
23
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
24
|
+
var HlmContextMenuTrigger = class HlmContextMenuTrigger {
|
|
25
|
+
constructor() {
|
|
26
|
+
this._cdkTrigger = inject(CdkContextMenuTrigger, { host: true });
|
|
27
|
+
this._config = injectHlmContextMenuConfig();
|
|
28
|
+
this.disabled = input(this._cdkTrigger.disabled, {
|
|
29
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
30
|
+
transform: booleanAttribute
|
|
31
|
+
});
|
|
32
|
+
this.align = input(this._config.align, ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
|
|
33
|
+
this.side = input(this._config.side, ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
|
|
34
|
+
this._menuPosition = computed(() => createMenuPosition(this.align(), this.side()), ...ngDevMode ? [{ debugName: "_menuPosition" }] : /* istanbul ignore next */ []);
|
|
35
|
+
this._cdkTrigger.transformOriginSelector = "[data-slot=\"dropdown-menu\"]";
|
|
36
|
+
effect(() => {
|
|
37
|
+
this._cdkTrigger.menuPosition = this._menuPosition();
|
|
38
|
+
});
|
|
39
|
+
classes(() => "select-none");
|
|
40
|
+
}
|
|
41
|
+
static {
|
|
42
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
43
|
+
minVersion: "12.0.0",
|
|
44
|
+
version: "22.2.4",
|
|
45
|
+
ngImport: i0,
|
|
46
|
+
type: HlmContextMenuTrigger,
|
|
47
|
+
deps: [],
|
|
48
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
static {
|
|
52
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
53
|
+
minVersion: "17.1.0",
|
|
54
|
+
version: "22.2.4",
|
|
55
|
+
type: HlmContextMenuTrigger,
|
|
56
|
+
isStandalone: true,
|
|
57
|
+
selector: "[hlmContextMenuTrigger]",
|
|
58
|
+
inputs: {
|
|
59
|
+
disabled: {
|
|
60
|
+
classPropertyName: "disabled",
|
|
61
|
+
publicName: "disabled",
|
|
62
|
+
isSignal: true,
|
|
63
|
+
isRequired: false,
|
|
64
|
+
transformFunction: null
|
|
65
|
+
},
|
|
66
|
+
align: {
|
|
67
|
+
classPropertyName: "align",
|
|
68
|
+
publicName: "align",
|
|
69
|
+
isSignal: true,
|
|
70
|
+
isRequired: false,
|
|
71
|
+
transformFunction: null
|
|
72
|
+
},
|
|
73
|
+
side: {
|
|
74
|
+
classPropertyName: "side",
|
|
75
|
+
publicName: "side",
|
|
76
|
+
isSignal: true,
|
|
77
|
+
isRequired: false,
|
|
78
|
+
transformFunction: null
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
host: {
|
|
82
|
+
attributes: { "data-slot": "context-menu-trigger" },
|
|
83
|
+
properties: { "attr.data-disabled": "disabled() ? \"\" : null" }
|
|
84
|
+
},
|
|
85
|
+
providers: [{
|
|
86
|
+
provide: MENU_SIDE,
|
|
87
|
+
useExisting: forwardRef(() => HlmContextMenuTrigger)
|
|
88
|
+
}],
|
|
89
|
+
hostDirectives: [{
|
|
90
|
+
directive: i1.CdkContextMenuTrigger,
|
|
91
|
+
inputs: [
|
|
92
|
+
"cdkContextMenuTriggerFor",
|
|
93
|
+
"hlmContextMenuTrigger",
|
|
94
|
+
"cdkContextMenuTriggerData",
|
|
95
|
+
"hlmContextMenuTriggerData",
|
|
96
|
+
"cdkContextMenuDisabled",
|
|
97
|
+
"disabled"
|
|
98
|
+
],
|
|
99
|
+
outputs: [
|
|
100
|
+
"cdkContextMenuOpened",
|
|
101
|
+
"hlmContextMenuOpened",
|
|
102
|
+
"cdkContextMenuClosed",
|
|
103
|
+
"hlmContextMenuClosed"
|
|
104
|
+
]
|
|
105
|
+
}],
|
|
106
|
+
ngImport: i0
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
111
|
+
minVersion: "12.0.0",
|
|
112
|
+
version: "22.2.4",
|
|
113
|
+
ngImport: i0,
|
|
114
|
+
type: HlmContextMenuTrigger,
|
|
115
|
+
decorators: [{
|
|
116
|
+
type: Directive,
|
|
117
|
+
args: [{
|
|
118
|
+
selector: "[hlmContextMenuTrigger]",
|
|
119
|
+
providers: [{
|
|
120
|
+
provide: MENU_SIDE,
|
|
121
|
+
useExisting: forwardRef(() => HlmContextMenuTrigger)
|
|
122
|
+
}],
|
|
123
|
+
hostDirectives: [{
|
|
124
|
+
directive: CdkContextMenuTrigger,
|
|
125
|
+
inputs: [
|
|
126
|
+
"cdkContextMenuTriggerFor: hlmContextMenuTrigger",
|
|
127
|
+
"cdkContextMenuTriggerData: hlmContextMenuTriggerData",
|
|
128
|
+
"cdkContextMenuDisabled: disabled"
|
|
129
|
+
],
|
|
130
|
+
outputs: ["cdkContextMenuOpened: hlmContextMenuOpened", "cdkContextMenuClosed: hlmContextMenuClosed"]
|
|
131
|
+
}],
|
|
132
|
+
host: {
|
|
133
|
+
"data-slot": "context-menu-trigger",
|
|
134
|
+
"[attr.data-disabled]": "disabled() ? \"\" : null"
|
|
135
|
+
}
|
|
136
|
+
}]
|
|
137
|
+
}],
|
|
138
|
+
ctorParameters: () => [],
|
|
139
|
+
propDecorators: {
|
|
140
|
+
disabled: [{
|
|
141
|
+
type: i0.Input,
|
|
142
|
+
args: [{
|
|
143
|
+
isSignal: true,
|
|
144
|
+
alias: "disabled",
|
|
145
|
+
required: false
|
|
146
|
+
}]
|
|
147
|
+
}],
|
|
148
|
+
align: [{
|
|
149
|
+
type: i0.Input,
|
|
150
|
+
args: [{
|
|
151
|
+
isSignal: true,
|
|
152
|
+
alias: "align",
|
|
153
|
+
required: false
|
|
154
|
+
}]
|
|
155
|
+
}],
|
|
156
|
+
side: [{
|
|
157
|
+
type: i0.Input,
|
|
158
|
+
args: [{
|
|
159
|
+
isSignal: true,
|
|
160
|
+
alias: "side",
|
|
161
|
+
required: false
|
|
162
|
+
}]
|
|
163
|
+
}]
|
|
164
|
+
}
|
|
165
|
+
});
|
|
64
166
|
const HlmContextMenuImports = [HlmContextMenuTrigger];
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Generated bundle index. Do not edit.
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
167
|
export { HlmContextMenuImports, HlmContextMenuTrigger, injectHlmContextMenuConfig, provideHlmContextMenuConfig };
|
|
71
|
-
|
|
168
|
+
|
|
169
|
+
//# sourceMappingURL=yukit-web-helm-context-menu.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yukit-web-helm-context-menu.mjs","sources":["../../../projects/yukit-web/helm/context-menu/src/lib/hlm-context-menu-token.ts","../../../projects/yukit-web/helm/context-menu/src/lib/hlm-context-menu-trigger.ts","../../../projects/yukit-web/helm/context-menu/src/index.ts"
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-context-menu.mjs","names":[],"sources":["../../../projects/yukit-web/helm/context-menu/src/lib/hlm-context-menu-token.ts","../../../projects/yukit-web/helm/context-menu/src/lib/hlm-context-menu-trigger.ts","../../../projects/yukit-web/helm/context-menu/src/index.ts"],"sourcesContent":["import { InjectionToken, type ValueProvider, inject } from '@angular/core';\nimport { type MenuAlign, type MenuSide } from '@spartan-ng/brain/core';\n\nexport interface HlmContextMenuConfig {\n\talign: MenuAlign;\n\tside: MenuSide;\n}\n\nconst defaultConfig: HlmContextMenuConfig = {\n\talign: 'start',\n\tside: 'bottom',\n};\n\nconst HlmContextMenuConfigToken = new InjectionToken<HlmContextMenuConfig>('HlmContextMenuConfig');\n\nexport function provideHlmContextMenuConfig(config: Partial<HlmContextMenuConfig>): ValueProvider {\n\treturn { provide: HlmContextMenuConfigToken, useValue: { ...defaultConfig, ...config } };\n}\n\nexport function injectHlmContextMenuConfig(): HlmContextMenuConfig {\n\treturn inject(HlmContextMenuConfigToken, { optional: true }) ?? defaultConfig;\n}\n","import { type BooleanInput } from '@angular/cdk/coercion';\nimport { CdkContextMenuTrigger } from '@angular/cdk/menu';\nimport { booleanAttribute, computed, Directive, effect, forwardRef, inject, input } from '@angular/core';\nimport { createMenuPosition, MENU_SIDE, type MenuAlign, type MenuSide } from '@spartan-ng/brain/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { injectHlmContextMenuConfig } from './hlm-context-menu-token';\n\n@Directive({\n\tselector: '[hlmContextMenuTrigger]',\n\tproviders: [{ provide: MENU_SIDE, useExisting: forwardRef(() => HlmContextMenuTrigger) }],\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: CdkContextMenuTrigger,\n\t\t\tinputs: [\n\t\t\t\t'cdkContextMenuTriggerFor: hlmContextMenuTrigger',\n\t\t\t\t'cdkContextMenuTriggerData: hlmContextMenuTriggerData',\n\t\t\t\t'cdkContextMenuDisabled: disabled',\n\t\t\t],\n\t\t\toutputs: ['cdkContextMenuOpened: hlmContextMenuOpened', 'cdkContextMenuClosed: hlmContextMenuClosed'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'context-menu-trigger',\n\t\t'[attr.data-disabled]': 'disabled() ? \"\" : null',\n\t},\n})\nexport class HlmContextMenuTrigger {\n\tprivate readonly _cdkTrigger = inject(CdkContextMenuTrigger, { host: true });\n\tprivate readonly _config = injectHlmContextMenuConfig();\n\n\tpublic readonly disabled = input<boolean, BooleanInput>(this._cdkTrigger.disabled, { transform: booleanAttribute });\n\n\tpublic readonly align = input<MenuAlign>(this._config.align);\n\tpublic readonly side = input<MenuSide>(this._config.side);\n\n\tprivate readonly _menuPosition = computed(() => createMenuPosition(this.align(), this.side()));\n\n\tconstructor() {\n\t\t// CDK sets transform-origin on the menu content (a shared hlm-dropdown-menu) from the resolved\n\t\t// position; the content reads it to animate from the anchored corner and to derive its data-side.\n\t\t// Cast tolerates @angular/cdk < 21.2 (we still support >=21.0), where the property is absent and\n\t\t// the assignment is a harmless no-op.\n\t\t(this._cdkTrigger as { transformOriginSelector?: string }).transformOriginSelector = '[data-slot=\"dropdown-menu\"]';\n\n\t\teffect(() => {\n\t\t\tthis._cdkTrigger.menuPosition = this._menuPosition();\n\t\t});\n\n\t\tclasses(() => 'select-none');\n\t}\n}\n","import { HlmContextMenuTrigger } from './lib/hlm-context-menu-trigger';\n\nexport * from './lib/hlm-context-menu-token';\nexport * from './lib/hlm-context-menu-trigger';\n\nexport const HlmContextMenuImports = [HlmContextMenuTrigger] as const;\n"],"mappings":";;;;;;AAQA,MAAM,gBAAsC;CAC3C,OAAO;CACP,MAAM;AACN;AAED,MAAM,4BAA4B,IAAI,eAAqC,sBAAsB;AAEjG,SAAgB,4BAA4B,QAAqC;CAChF,OAAO;EAAE,SAAS;EAA2B,UAAU;GAAE,GAAG;GAAe,GAAG;EAAM;CAAE;AACvF;AAEA,SAAgB,6BAA0B;CACzC,OAAO,OAAO,2BAA2B,EAAE,UAAU,KAAI,CAAE,KAAK;AACjE;ACKA,IAAa,wBAAb,MAAa,sBAAqB;CAWjC,cAAA;EAViB,KAAA,cAAc,OAAO,uBAAuB,EAAE,MAAM,KAAI,CAAE;EAC1D,KAAA,UAAU,2BAA0B;EAErC,KAAA,WAAW,MAA6B,KAAK,YAAY,UAAQ;GAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;GAAI,WAAW;EAAgB,CAAA;EAEhG,KAAA,QAAQ,MAAiB,KAAK,QAAQ,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BA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