yukit-web 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.npm/_logs/2026-08-20T08_40_55_706Z-debug-0.log +38 -0
- package/.npm/_logs/2026-08-20T08_40_56_280Z-debug-0.log +14 -0
- package/README.md +1465 -0
- package/fesm2022/yukit-web-helm-accordion.mjs +141 -0
- package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-alert-dialog.mjs +250 -0
- package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-alert.mjs +94 -0
- package/fesm2022/yukit-web-helm-alert.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs +47 -0
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-attachment.mjs +211 -0
- package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-autocomplete.mjs +361 -0
- package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-avatar.mjs +152 -0
- package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-badge.mjs +47 -0
- package/fesm2022/yukit-web-helm-badge.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-breadcrumb.mjs +196 -0
- package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-bubble.mjs +121 -0
- package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-button-group.mjs +86 -0
- package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-button.mjs +77 -0
- package/fesm2022/yukit-web-helm-button.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-calendar.mjs +937 -0
- package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-card.mjs +141 -0
- package/fesm2022/yukit-web-helm-card.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-carousel.mjs +270 -0
- package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-checkbox.mjs +147 -0
- package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-collapsible.mjs +62 -0
- package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-combobox.mjs +624 -0
- package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-command.mjs +315 -0
- package/fesm2022/yukit-web-helm-command.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-context-menu.mjs +71 -0
- package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-date-picker.mjs +1517 -0
- package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-dialog.mjs +271 -0
- package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-drawer.mjs +233 -0
- package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs +508 -0
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-empty.mjs +125 -0
- package/fesm2022/yukit-web-helm-empty.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-field.mjs +325 -0
- package/fesm2022/yukit-web-helm-field.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-hover-card.mjs +102 -0
- package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-input-group.mjs +171 -0
- package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-input-otp.mjs +127 -0
- package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-input.mjs +32 -0
- package/fesm2022/yukit-web-helm-input.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-item.mjs +242 -0
- package/fesm2022/yukit-web-helm-item.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-kbd.mjs +46 -0
- package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-label.mjs +30 -0
- package/fesm2022/yukit-web-helm-label.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-marker.mjs +77 -0
- package/fesm2022/yukit-web-helm-marker.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-menubar.mjs +90 -0
- package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-message.mjs +115 -0
- package/fesm2022/yukit-web-helm-message.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-native-select.mjs +180 -0
- package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-navigation-menu.mjs +173 -0
- package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-pagination.mjs +745 -0
- package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-popover.mjs +136 -0
- package/fesm2022/yukit-web-helm-popover.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-progress.mjs +60 -0
- package/fesm2022/yukit-web-helm-progress.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-radio-group.mjs +185 -0
- package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-resizable.mjs +98 -0
- package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-scroll-area.mjs +36 -0
- package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-select.mjs +412 -0
- package/fesm2022/yukit-web-helm-select.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-separator.mjs +33 -0
- package/fesm2022/yukit-web-helm-separator.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-sheet.mjs +254 -0
- package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-sidebar.mjs +857 -0
- package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-skeleton.mjs +29 -0
- package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-slider.mjs +123 -0
- package/fesm2022/yukit-web-helm-slider.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-sonner.mjs +126 -0
- package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-spinner.mjs +48 -0
- package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-switch.mjs +126 -0
- package/fesm2022/yukit-web-helm-switch.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-table.mjs +180 -0
- package/fesm2022/yukit-web-helm-table.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-tabs.mjs +251 -0
- package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-textarea.mjs +32 -0
- package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-toggle-group.mjs +95 -0
- package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-toggle.mjs +61 -0
- package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-tooltip.mjs +57 -0
- package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-typography.mjs +205 -0
- package/fesm2022/yukit-web-helm-typography.mjs.map +1 -0
- package/fesm2022/yukit-web-helm-utils.mjs +272 -0
- package/fesm2022/yukit-web-helm-utils.mjs.map +1 -0
- package/fesm2022/yukit-web.mjs +3592 -0
- package/fesm2022/yukit-web.mjs.map +1 -0
- package/package.json +291 -0
- package/src/lib/theme/spartan-overwrites/accordion.css +4 -0
- package/src/lib/theme/theme.css +161 -0
- package/src/lib/theme/tokens/color.css +356 -0
- package/src/lib/theme/tokens/component-colors.css +167 -0
- package/src/lib/theme/tokens/radius.css +18 -0
- package/src/lib/theme/tokens/typography.css +201 -0
- package/types/yukit-web-helm-accordion.d.ts +32 -0
- package/types/yukit-web-helm-alert-dialog.d.ts +85 -0
- package/types/yukit-web-helm-alert.d.ts +37 -0
- package/types/yukit-web-helm-aspect-ratio.d.ts +16 -0
- package/types/yukit-web-helm-attachment.d.ts +80 -0
- package/types/yukit-web-helm-autocomplete.d.ts +91 -0
- package/types/yukit-web-helm-avatar.d.ts +45 -0
- package/types/yukit-web-helm-badge.d.ts +19 -0
- package/types/yukit-web-helm-breadcrumb.d.ts +52 -0
- package/types/yukit-web-helm-bubble.d.ts +46 -0
- package/types/yukit-web-helm-button-group.d.ts +25 -0
- package/types/yukit-web-helm-button.d.ts +33 -0
- package/types/yukit-web-helm-calendar.d.ts +89 -0
- package/types/yukit-web-helm-card.d.ts +49 -0
- package/types/yukit-web-helm-carousel.d.ts +79 -0
- package/types/yukit-web-helm-checkbox.d.ts +60 -0
- package/types/yukit-web-helm-collapsible.d.ts +22 -0
- package/types/yukit-web-helm-combobox.d.ts +150 -0
- package/types/yukit-web-helm-command.d.ts +84 -0
- package/types/yukit-web-helm-context-menu.d.ts +29 -0
- package/types/yukit-web-helm-date-picker.d.ts +574 -0
- package/types/yukit-web-helm-dialog.d.ts +90 -0
- package/types/yukit-web-helm-drawer.d.ts +71 -0
- package/types/yukit-web-helm-dropdown-menu.d.ts +171 -0
- package/types/yukit-web-helm-empty.d.ts +49 -0
- package/types/yukit-web-helm-field.d.ts +102 -0
- package/types/yukit-web-helm-hover-card.d.ts +31 -0
- package/types/yukit-web-helm-input-group.d.ts +47 -0
- package/types/yukit-web-helm-input-otp.d.ts +40 -0
- package/types/yukit-web-helm-input.d.ts +13 -0
- package/types/yukit-web-helm-item.d.ts +96 -0
- package/types/yukit-web-helm-kbd.d.ts +17 -0
- package/types/yukit-web-helm-label.d.ts +12 -0
- package/types/yukit-web-helm-marker.d.ts +31 -0
- package/types/yukit-web-helm-menubar.d.ts +35 -0
- package/types/yukit-web-helm-message.d.ts +44 -0
- package/types/yukit-web-helm-native-select.d.ts +65 -0
- package/types/yukit-web-helm-navigation-menu.d.ts +49 -0
- package/types/yukit-web-helm-pagination.d.ts +187 -0
- package/types/yukit-web-helm-popover.d.ts +49 -0
- package/types/yukit-web-helm-progress.d.ts +22 -0
- package/types/yukit-web-helm-radio-group.d.ts +66 -0
- package/types/yukit-web-helm-resizable.d.ts +27 -0
- package/types/yukit-web-helm-scroll-area.d.ts +11 -0
- package/types/yukit-web-helm-select.d.ts +114 -0
- package/types/yukit-web-helm-separator.d.ts +13 -0
- package/types/yukit-web-helm-sheet.d.ts +75 -0
- package/types/yukit-web-helm-sidebar.d.ts +232 -0
- package/types/yukit-web-helm-skeleton.d.ts +11 -0
- package/types/yukit-web-helm-slider.d.ts +14 -0
- package/types/yukit-web-helm-sonner.d.ts +52 -0
- package/types/yukit-web-helm-spinner.d.ts +18 -0
- package/types/yukit-web-helm-switch.d.ts +54 -0
- package/types/yukit-web-helm-table.d.ts +82 -0
- package/types/yukit-web-helm-tabs.d.ts +66 -0
- package/types/yukit-web-helm-textarea.d.ts +13 -0
- package/types/yukit-web-helm-toggle-group.d.ts +34 -0
- package/types/yukit-web-helm-toggle.d.ts +22 -0
- package/types/yukit-web-helm-tooltip.d.ts +17 -0
- package/types/yukit-web-helm-typography.d.ts +89 -0
- package/types/yukit-web-helm-utils.d.ts +44 -0
- package/types/yukit-web.d.ts +2426 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-field.mjs","sources":["../../../projects/yukit-web/helm/field/src/lib/hlm-field.ts","../../../projects/yukit-web/helm/field/src/lib/hlm-field-content.ts","../../../projects/yukit-web/helm/field/src/lib/hlm-field-description.ts","../../../projects/yukit-web/helm/field/src/lib/hlm-field-error.ts","../../../projects/yukit-web/helm/field/src/lib/hlm-field-group.ts","../../../projects/yukit-web/helm/field/src/lib/hlm-field-label.ts","../../../projects/yukit-web/helm/field/src/lib/hlm-field-legend.ts","../../../projects/yukit-web/helm/field/src/lib/hlm-field-separator.ts","../../../projects/yukit-web/helm/field/src/lib/hlm-field-set.ts","../../../projects/yukit-web/helm/field/src/lib/hlm-field-title.ts","../../../projects/yukit-web/helm/field/src/index.ts","../../../projects/yukit-web/helm/field/src/yukit-web-helm-field.ts"],"sourcesContent":["import { Directive, input } from '@angular/core';\nimport { BrnField } from '@spartan-ng/brain/field';\nimport { classes } from 'yukit-web/helm/utils';\nimport { cva, VariantProps } from 'class-variance-authority';\n\nconst fieldVariants = cva('data-[matches-spartan-invalid=true]:text-destructive gap-2 group/field flex w-full', {\n\tvariants: {\n\t\torientation: {\n\t\t\tvertical: 'flex-col *:w-full [&>.sr-only]:w-auto',\n\t\t\thorizontal: [\n\t\t\t\t'flex-row items-center',\n\t\t\t\t'*:data-[slot=field-label]:flex-auto',\n\t\t\t\t'has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',\n\t\t\t],\n\t\t\tresponsive: [\n\t\t\t\t'flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto [&>.sr-only]:w-auto',\n\t\t\t\t'@md/field-group:*:data-[slot=field-label]:flex-auto',\n\t\t\t\t'@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',\n\t\t\t],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\torientation: 'vertical',\n\t},\n});\n\nexport type FieldVariants = VariantProps<typeof fieldVariants>;\n\n@Directive({\n\tselector: '[hlmField],hlm-field',\n\thostDirectives: [{ directive: BrnField, inputs: ['data-invalid', 'forceInvalid'] }],\n\thost: {\n\t\trole: 'group',\n\t\t'data-slot': 'field',\n\t\t'[attr.data-orientation]': 'orientation()',\n\t},\n})\nexport class HlmField {\n\tpublic readonly orientation = input<FieldVariants['orientation']>('vertical');\n\n\tconstructor() {\n\t\tclasses(() => fieldVariants({ orientation: this.orientation() }));\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmFieldContent],hlm-field-content',\n\thost: { 'data-slot': 'field-content' },\n})\nexport class HlmFieldContent {\n\tconstructor() {\n\t\tclasses(() => 'gap-0.5 group/field-content flex flex-1 flex-col leading-snug');\n\t}\n}\n","import { Directive, effect, EffectRef, inject, input, OnDestroy } from '@angular/core';\nimport { BrnFieldA11yService } from '@spartan-ng/brain/field';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmFieldDescription],hlm-field-description',\n\thost: {\n\t\t'data-slot': 'field-description',\n\t\t'[attr.id]': 'id()',\n\t},\n})\nexport class HlmFieldDescription implements OnDestroy {\n\tprivate static _id = 0;\n\n\tprivate readonly _a11y = inject(BrnFieldA11yService, { optional: true, host: true });\n\n\tpublic readonly id = input<string>(`hlm-field-description-${HlmFieldDescription._id++}`);\n\n\tprivate _registeredId?: string;\n\n\tprivate readonly _cleanup: EffectRef | null = this._a11y\n\t\t? effect(() => {\n\t\t\tconst a11y = this._a11y;\n\t\t\tif (!a11y) return;\n\n\t\t\tconst id = this.id();\n\t\t\tif (this._registeredId && this._registeredId !== id) {\n\t\t\t\ta11y.unregisterDescription(this._registeredId);\n\t\t\t}\n\n\t\t\tif (this._registeredId !== id) {\n\t\t\t\ta11y.registerDescription(id);\n\t\t\t\tthis._registeredId = id;\n\t\t\t}\n\t\t})\n\t\t: null;\n\n\tconstructor() {\n\t\tclasses(() => [\n\t\t\t'text-muted-foreground text-start text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-data-horizontal/field:text-balance',\n\t\t\t'last:mt-0 nth-last-2:-mt-1',\n\t\t\t'[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',\n\t\t]);\n\t}\n\n\tngOnDestroy() {\n\t\tthis._cleanup?.destroy();\n\n\t\tif (this._registeredId) {\n\t\t\tthis._a11y?.unregisterDescription(this._registeredId);\n\t\t}\n\t}\n}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\teffect,\n\tEffectRef,\n\tinject,\n\tinput,\n\tOnDestroy,\n} from '@angular/core';\nimport { BrnField, BrnFieldA11yService } from '@spartan-ng/brain/field';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-field-error',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\trole: 'alert',\n\t\t'data-slot': 'field-error',\n\t\t'[attr.id]': 'id()',\n\t\t'[hidden]': '!_display()',\n\t},\n\ttemplate: `\n\t\t@if (_display()) {\n\t\t\t<ng-content />\n\t\t}\n\t`,\n})\nexport class HlmFieldError implements OnDestroy {\n\tprivate static _id = 0;\n\n\tprivate readonly _field = inject(BrnField, { optional: true });\n\tprivate readonly _a11y = inject(BrnFieldA11yService, { optional: true, host: true });\n\n\tprivate _registeredId?: string | undefined;\n\n\tprivate readonly _hasParentField = !!this._field;\n\n\t/** The unique ID for the field error. If none is supplied, it will be auto-generated. */\n\tpublic readonly id = input<string>(`hlm-field-error-${HlmFieldError._id++}`);\n\n\t/**\n\t * The name of the specific validator error key to match (e.g. 'required').\n\t * When omitted, the error is shown if any validation error is present.\n\t */\n\tpublic readonly validator = input<string>();\n\n\t/** Forces the error message to be visible regardless of the control's validation state. */\n\tpublic readonly forceShow = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\tprotected readonly _display = computed(() => !this._hasParentField || this.forceShow() || this._hasError());\n\n\tprotected readonly _hasError = computed(() => {\n\t\tconst errors = this._field?.errors();\n\t\tif (!errors) return false;\n\n\t\tconst validator = this.validator();\n\t\tconst spartanInvalid = this._field?.controlState()?.spartanInvalid;\n\n\t\tif (!spartanInvalid) return false;\n\n\t\treturn validator ? validator in errors : Object.keys(errors).length > 0;\n\t});\n\n\tprivate readonly _cleanup: EffectRef | null = this._a11y\n\t\t? effect(() => {\n\t\t\tconst a11y = this._a11y;\n\t\t\tif (!a11y) return;\n\n\t\t\tconst id = this.id();\n\t\t\tconst hasError = this._hasError();\n\n\t\t\tif (this._registeredId && (this._registeredId !== id || !hasError)) {\n\t\t\t\ta11y.unregisterError(this._registeredId);\n\t\t\t\tthis._registeredId = undefined;\n\t\t\t}\n\n\t\t\tif (hasError && this._registeredId !== id) {\n\t\t\t\ta11y.registerError(id);\n\t\t\t\tthis._registeredId = id;\n\t\t\t}\n\t\t})\n\t\t: null;\n\n\tconstructor() {\n\t\tclasses(() => 'text-destructive text-sm font-normal');\n\t}\n\n\tngOnDestroy() {\n\t\tthis._cleanup?.destroy();\n\n\t\tif (this._registeredId) {\n\t\t\tthis._a11y?.unregisterError(this._registeredId);\n\t\t}\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmFieldGroup],hlm-field-group',\n\thost: { 'data-slot': 'field-group' },\n})\nexport class HlmFieldGroup {\n\tconstructor() {\n\t\tclasses(() => 'gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4 group/field-group @container/field-group flex w-full flex-col');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { HlmLabel } from 'yukit-web/helm/label';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmFieldLabel],hlm-field-label',\n\thostDirectives: [HlmLabel],\n\thost: { 'data-slot': 'field-label' },\n})\nexport class HlmFieldLabel {\n\tconstructor() {\n\t\tclasses(() => [\n\t\t\t'has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 group/field-label peer/field-label flex w-fit',\n\t\t\t'has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col',\n\t\t]);\n\t}\n}\n","import { Directive, input } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'legend[hlmFieldLegend]',\n\thost: {\n\t\t'data-slot': 'field-legend',\n\t\t'[attr.data-variant]': 'variant()',\n\t},\n})\nexport class HlmFieldLegend {\n\tpublic readonly variant = input<'label' | 'legend'>('legend');\n\n\tconstructor() {\n\t\tclasses(() => 'mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base');\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { HlmSeparator } from 'yukit-web/helm/separator';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-field-separator',\n\timports: [HlmSeparator],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: { 'data-slot': 'field-separator' },\n\ttemplate: `\n\t\t<hlm-separator class=\"absolute inset-0 top-1/2\" />\n\t\t<span\n\t\t\tdata-slot=\"field-separator-content\"\n\t\t\tclass=\"text-muted-foreground px-2 bg-background relative mx-auto block w-fit\"\n\t\t>\n\t\t\t<ng-content />\n\t\t</span>\n\t`,\n})\nexport class HlmFieldSeparator {\n\tconstructor() {\n\t\tclasses(() => '-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'fieldset[hlmFieldSet]',\n\thost: { 'data-slot': 'field-set' },\n})\nexport class HlmFieldSet {\n\tconstructor() {\n\t\tclasses(() => 'gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmFieldTitle],hlm-field-title',\n\thost: { 'data-slot': 'field-label' },\n})\nexport class HlmFieldTitle {\n\tconstructor() {\n\t\tclasses(() => 'gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center');\n\t}\n}\n","import { HlmField } from './lib/hlm-field';\nimport { HlmFieldContent } from './lib/hlm-field-content';\nimport { HlmFieldDescription } from './lib/hlm-field-description';\nimport { HlmFieldError } from './lib/hlm-field-error';\nimport { HlmFieldGroup } from './lib/hlm-field-group';\nimport { HlmFieldLabel } from './lib/hlm-field-label';\nimport { HlmFieldLegend } from './lib/hlm-field-legend';\nimport { HlmFieldSeparator } from './lib/hlm-field-separator';\nimport { HlmFieldSet } from './lib/hlm-field-set';\nimport { HlmFieldTitle } from './lib/hlm-field-title';\n\nexport * from './lib/hlm-field';\nexport * from './lib/hlm-field-content';\nexport * from './lib/hlm-field-description';\nexport * from './lib/hlm-field-error';\nexport * from './lib/hlm-field-group';\nexport * from './lib/hlm-field-label';\nexport * from './lib/hlm-field-legend';\nexport * from './lib/hlm-field-separator';\nexport * from './lib/hlm-field-set';\nexport * from './lib/hlm-field-title';\n\nexport const HlmFieldImports = [\n\tHlmField,\n\tHlmFieldContent,\n\tHlmFieldDescription,\n\tHlmFieldError,\n\tHlmFieldGroup,\n\tHlmFieldLabel,\n\tHlmFieldLegend,\n\tHlmFieldSeparator,\n\tHlmFieldSet,\n\tHlmFieldTitle,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAKA,MAAM,aAAa,GAAG,GAAG,CAAC,oFAAoF,EAAE;AAC/G,IAAA,QAAQ,EAAE;AACT,QAAA,WAAW,EAAE;AACZ,YAAA,QAAQ,EAAE,uCAAuC;AACjD,YAAA,UAAU,EAAE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AM,eAAe,GAAG;IAC9B,QAAQ;IACR,eAAe;IACf,mBAAmB;IACnB,aAAa;IACb,aAAa;IACb,aAAa;IACb,cAAc;IACd,iBAAiB;IACjB,WAAW;IACX,aAAa;;;AChCd;;AAEG;;;;"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, inject, Renderer2, ElementRef, signal, effect } from '@angular/core';
|
|
3
|
+
import * as i1 from '@spartan-ng/brain/hover-card';
|
|
4
|
+
import { BrnHoverCard, BrnHoverCardContent, BrnHoverCardTrigger } from '@spartan-ng/brain/hover-card';
|
|
5
|
+
import { injectExposesStateProvider, injectExposedSideProvider } from '@spartan-ng/brain/core';
|
|
6
|
+
import { classes } from 'yukit-web/helm/utils';
|
|
7
|
+
|
|
8
|
+
class HlmHoverCard {
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmHoverCard, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
10
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmHoverCard, isStandalone: true, selector: "[hlmHoverCard],hlm-hover-card", host: { attributes: { "data-slot": "hover-card" } }, hostDirectives: [{ directive: i1.BrnHoverCard }], ngImport: i0 }); }
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmHoverCard, decorators: [{
|
|
13
|
+
type: Directive,
|
|
14
|
+
args: [{
|
|
15
|
+
selector: '[hlmHoverCard],hlm-hover-card',
|
|
16
|
+
hostDirectives: [BrnHoverCard],
|
|
17
|
+
host: {
|
|
18
|
+
'data-slot': 'hover-card',
|
|
19
|
+
},
|
|
20
|
+
}]
|
|
21
|
+
}] });
|
|
22
|
+
|
|
23
|
+
class HlmHoverCardContent {
|
|
24
|
+
constructor() {
|
|
25
|
+
this._renderer = inject(Renderer2);
|
|
26
|
+
this._element = inject(ElementRef);
|
|
27
|
+
this.state = injectExposesStateProvider({ host: true }).state ?? signal('closed').asReadonly();
|
|
28
|
+
this.side = injectExposedSideProvider({ host: true }).side ?? signal('bottom').asReadonly();
|
|
29
|
+
effect(() => {
|
|
30
|
+
this._renderer.setAttribute(this._element.nativeElement, 'data-state', this.state());
|
|
31
|
+
this._renderer.setAttribute(this._element.nativeElement, 'data-side', this.side());
|
|
32
|
+
});
|
|
33
|
+
classes(() => [
|
|
34
|
+
'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground w-64 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100 z-50 outline-none',
|
|
35
|
+
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmHoverCardContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
39
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmHoverCardContent, isStandalone: true, selector: "[hlmHoverCardContent],hlm-hover-card-content", host: { attributes: { "data-slot": "hover-card-content" } }, ngImport: i0 }); }
|
|
40
|
+
}
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmHoverCardContent, decorators: [{
|
|
42
|
+
type: Directive,
|
|
43
|
+
args: [{
|
|
44
|
+
selector: '[hlmHoverCardContent],hlm-hover-card-content',
|
|
45
|
+
host: {
|
|
46
|
+
'data-slot': 'hover-card-content',
|
|
47
|
+
},
|
|
48
|
+
}]
|
|
49
|
+
}], ctorParameters: () => [] });
|
|
50
|
+
|
|
51
|
+
class HlmHoverCardPortal {
|
|
52
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmHoverCardPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
53
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmHoverCardPortal, isStandalone: true, selector: "[hlmHoverCardPortal],hlm-hover-card-portal", hostDirectives: [{ directive: i1.BrnHoverCardContent }], ngImport: i0 }); }
|
|
54
|
+
}
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmHoverCardPortal, decorators: [{
|
|
56
|
+
type: Directive,
|
|
57
|
+
args: [{
|
|
58
|
+
selector: '[hlmHoverCardPortal],hlm-hover-card-portal',
|
|
59
|
+
hostDirectives: [BrnHoverCardContent],
|
|
60
|
+
}]
|
|
61
|
+
}] });
|
|
62
|
+
|
|
63
|
+
class HlmHoverCardTrigger {
|
|
64
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmHoverCardTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
65
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmHoverCardTrigger, isStandalone: true, selector: "[hlmHoverCardTrigger]", host: { attributes: { "data-slot": "hover-card-trigger" } }, hostDirectives: [{ directive: i1.BrnHoverCardTrigger, inputs: ["showDelay", "showDelay", "hideDelay", "hideDelay", "animationDelay", "animationDelay", "sideOffset", "sideOffset", "align", "align", "brnHoverCardTriggerFor", "hlmHoverCardTriggerFor"] }], ngImport: i0 }); }
|
|
66
|
+
}
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmHoverCardTrigger, decorators: [{
|
|
68
|
+
type: Directive,
|
|
69
|
+
args: [{
|
|
70
|
+
selector: '[hlmHoverCardTrigger]',
|
|
71
|
+
hostDirectives: [
|
|
72
|
+
{
|
|
73
|
+
directive: BrnHoverCardTrigger,
|
|
74
|
+
inputs: [
|
|
75
|
+
'showDelay',
|
|
76
|
+
'hideDelay',
|
|
77
|
+
'animationDelay',
|
|
78
|
+
'sideOffset',
|
|
79
|
+
'align',
|
|
80
|
+
'brnHoverCardTriggerFor: hlmHoverCardTriggerFor',
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
host: {
|
|
85
|
+
'data-slot': 'hover-card-trigger',
|
|
86
|
+
},
|
|
87
|
+
}]
|
|
88
|
+
}] });
|
|
89
|
+
|
|
90
|
+
const HlmHoverCardImports = [
|
|
91
|
+
HlmHoverCardContent,
|
|
92
|
+
HlmHoverCardPortal,
|
|
93
|
+
HlmHoverCard,
|
|
94
|
+
HlmHoverCardTrigger,
|
|
95
|
+
];
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Generated bundle index. Do not edit.
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
export { HlmHoverCard, HlmHoverCardContent, HlmHoverCardImports, HlmHoverCardPortal, HlmHoverCardTrigger };
|
|
102
|
+
//# sourceMappingURL=yukit-web-helm-hover-card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-hover-card.mjs","sources":["../../../projects/yukit-web/helm/hover-card/src/lib/hlm-hover-card.ts","../../../projects/yukit-web/helm/hover-card/src/lib/hlm-hover-card-content.ts","../../../projects/yukit-web/helm/hover-card/src/lib/hlm-hover-card-portal.ts","../../../projects/yukit-web/helm/hover-card/src/lib/hlm-hover-card-trigger.ts","../../../projects/yukit-web/helm/hover-card/src/index.ts","../../../projects/yukit-web/helm/hover-card/src/yukit-web-helm-hover-card.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnHoverCard } from '@spartan-ng/brain/hover-card';\n\n@Directive({\n\tselector: '[hlmHoverCard],hlm-hover-card',\n\thostDirectives: [BrnHoverCard],\n\thost: {\n\t\t'data-slot': 'hover-card',\n\t},\n})\nexport class HlmHoverCard {}\n","import { Directive, ElementRef, Renderer2, effect, inject, signal } from '@angular/core';\nimport { injectExposedSideProvider, injectExposesStateProvider } from '@spartan-ng/brain/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmHoverCardContent],hlm-hover-card-content',\n\thost: {\n\t\t'data-slot': 'hover-card-content',\n\t},\n})\nexport class HlmHoverCardContent {\n\tprivate readonly _renderer = inject(Renderer2);\n\tprivate readonly _element = inject(ElementRef);\n\n\tpublic readonly state = injectExposesStateProvider({ host: true }).state ?? signal('closed').asReadonly();\n\tpublic readonly side = injectExposedSideProvider({ host: true }).side ?? signal('bottom').asReadonly();\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tthis._renderer.setAttribute(this._element.nativeElement, 'data-state', this.state());\n\t\t\tthis._renderer.setAttribute(this._element.nativeElement, 'data-side', this.side());\n\t\t});\n\n\t\tclasses(() => [\n\t\t\t'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground w-64 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100 z-50 outline-none',\n\t\t\t'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n\t\t]);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnHoverCardContent } from '@spartan-ng/brain/hover-card';\n\n@Directive({\n\tselector: '[hlmHoverCardPortal],hlm-hover-card-portal',\n\thostDirectives: [BrnHoverCardContent],\n})\nexport class HlmHoverCardPortal {}\n","import { Directive } from '@angular/core';\nimport { BrnHoverCardTrigger } from '@spartan-ng/brain/hover-card';\n\n@Directive({\n\tselector: '[hlmHoverCardTrigger]',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnHoverCardTrigger,\n\t\t\tinputs: [\n\t\t\t\t'showDelay',\n\t\t\t\t'hideDelay',\n\t\t\t\t'animationDelay',\n\t\t\t\t'sideOffset',\n\t\t\t\t'align',\n\t\t\t\t'brnHoverCardTriggerFor: hlmHoverCardTriggerFor',\n\t\t\t],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'hover-card-trigger',\n\t},\n})\nexport class HlmHoverCardTrigger {}\n","import { HlmHoverCard } from './lib/hlm-hover-card';\nimport { HlmHoverCardContent } from './lib/hlm-hover-card-content';\nimport { HlmHoverCardPortal } from './lib/hlm-hover-card-portal';\nimport { HlmHoverCardTrigger } from './lib/hlm-hover-card-trigger';\n\nexport { HlmHoverCard } from './lib/hlm-hover-card';\nexport { HlmHoverCardContent } from './lib/hlm-hover-card-content';\nexport { HlmHoverCardPortal } from './lib/hlm-hover-card-portal';\nexport { HlmHoverCardTrigger } from './lib/hlm-hover-card-trigger';\n\nexport const HlmHoverCardImports = [\n\tHlmHoverCardContent,\n\tHlmHoverCardPortal,\n\tHlmHoverCard,\n\tHlmHoverCardTrigger,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mapp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A;8GAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,WAAA,EAAA,WAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,YAAA,EAAA,OAAA,EAAA,OAAA,EAAA,wBAAA,EAAA,wBAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAnB/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,cAAc,EAAE;AACf,wBAAA;AACC,4BAAA,SAAS,EAAE,mBAAmB;AAC9B,4BAAA,MAAM,EAAE;gCACP,WAAW;gCACX,WAAW;gCACX,gBAAgB;gCAChB,YAAY;gCACZ,OAAO;gCACP,gDAAgD;AAChD,6BAAA;AACD,yBAAA;AACD,qBAAA;AACD,oBAAA,IAAI,EAAE;AACL,wBAAA,WAAW,EAAE,oBAAoB;AACjC,qBAAA;AACD,iBAAA;;;ACXM,MAAM,mBAAmB,GAAG;IAClC,mBAAmB;IACnB,kBAAkB;IAClB,YAAY;IACZ,mBAAmB;;;ACdpB;;AAEG;;;;"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, input } from '@angular/core';
|
|
3
|
+
import { classes } from 'yukit-web/helm/utils';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import * as i1 from 'yukit-web/helm/button';
|
|
6
|
+
import { provideBrnButtonConfig, HlmButton } from 'yukit-web/helm/button';
|
|
7
|
+
import * as i1$1 from 'yukit-web/helm/input';
|
|
8
|
+
import { HlmInput } from 'yukit-web/helm/input';
|
|
9
|
+
import * as i1$2 from 'yukit-web/helm/textarea';
|
|
10
|
+
import { HlmTextarea } from 'yukit-web/helm/textarea';
|
|
11
|
+
|
|
12
|
+
class HlmInputGroup {
|
|
13
|
+
constructor() {
|
|
14
|
+
classes(() => 'border-input dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][data-matches-spartan-invalid=true]]:ring-destructive/20 has-[[data-slot][data-matches-spartan-invalid=true]]:border-destructive dark:has-[[data-slot][data-matches-spartan-invalid=true]]:ring-destructive/40 has-[[data-slot=input-group-control]:disabled]:bg-input/50 dark:has-[[data-slot=input-group-control]:disabled]:bg-input/80 h-8 rounded-lg border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:disabled]:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][data-matches-spartan-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto');
|
|
15
|
+
}
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
17
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmInputGroup, isStandalone: true, selector: "[hlmInputGroup],hlm-input-group", host: { attributes: { "data-slot": "input-group", "role": "group" } }, ngImport: i0 }); }
|
|
18
|
+
}
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputGroup, decorators: [{
|
|
20
|
+
type: Directive,
|
|
21
|
+
args: [{
|
|
22
|
+
selector: '[hlmInputGroup],hlm-input-group',
|
|
23
|
+
host: {
|
|
24
|
+
'data-slot': 'input-group',
|
|
25
|
+
role: 'group',
|
|
26
|
+
},
|
|
27
|
+
}]
|
|
28
|
+
}], ctorParameters: () => [] });
|
|
29
|
+
|
|
30
|
+
const inputGroupAddonVariants$1 = cva("text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex cursor-text items-center justify-center select-none", {
|
|
31
|
+
variants: {
|
|
32
|
+
align: {
|
|
33
|
+
'inline-start': 'ps-2 has-[>button]:ms-[-0.3rem] has-[>kbd]:ms-[-0.15rem] order-first',
|
|
34
|
+
'inline-end': 'pe-2 has-[>button]:me-[-0.3rem] has-[>kbd]:me-[-0.15rem] order-last',
|
|
35
|
+
'block-start': 'px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start',
|
|
36
|
+
'block-end': 'px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
align: 'inline-start',
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
class HlmInputGroupAddon {
|
|
44
|
+
constructor() {
|
|
45
|
+
this.align = input('inline-start', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
46
|
+
classes(() => inputGroupAddonVariants$1({ align: this.align() }));
|
|
47
|
+
}
|
|
48
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputGroupAddon, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
49
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.8", type: HlmInputGroupAddon, isStandalone: true, selector: "[hlmInputGroupAddon],hlm-input-group-addon", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group", "data-slot": "input-group-addon" }, properties: { "attr.data-align": "align()" } }, ngImport: i0 }); }
|
|
50
|
+
}
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputGroupAddon, decorators: [{
|
|
52
|
+
type: Directive,
|
|
53
|
+
args: [{
|
|
54
|
+
selector: '[hlmInputGroupAddon],hlm-input-group-addon',
|
|
55
|
+
host: {
|
|
56
|
+
role: 'group',
|
|
57
|
+
'data-slot': 'input-group-addon',
|
|
58
|
+
'[attr.data-align]': 'align()',
|
|
59
|
+
},
|
|
60
|
+
}]
|
|
61
|
+
}], ctorParameters: () => [], propDecorators: { align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }] } });
|
|
62
|
+
|
|
63
|
+
const inputGroupAddonVariants = cva('gap-2 text-sm flex items-center shadow-none', {
|
|
64
|
+
variants: {
|
|
65
|
+
size: {
|
|
66
|
+
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>ng-icon:not([class*='text-'])]:text-[length:--spacing(3.5)]",
|
|
67
|
+
sm: '',
|
|
68
|
+
'icon-xs': 'size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>ng-icon]:p-0',
|
|
69
|
+
'icon-sm': 'size-8 p-0 has-[>ng-icon]:p-0',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
defaultVariants: {
|
|
73
|
+
size: 'xs',
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
class HlmInputGroupButton {
|
|
77
|
+
constructor() {
|
|
78
|
+
this.size = input('xs', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
79
|
+
this.type = input('button', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
80
|
+
classes(() => inputGroupAddonVariants({ size: this.size() }));
|
|
81
|
+
}
|
|
82
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputGroupButton, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
83
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.8", type: HlmInputGroupButton, isStandalone: true, selector: "button[hlmInputGroupButton]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-size": "size()", "type": "type()" } }, providers: [
|
|
84
|
+
provideBrnButtonConfig({
|
|
85
|
+
variant: 'ghost',
|
|
86
|
+
}),
|
|
87
|
+
], hostDirectives: [{ directive: i1.HlmButton, inputs: ["variant", "variant"] }], ngImport: i0 }); }
|
|
88
|
+
}
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputGroupButton, decorators: [{
|
|
90
|
+
type: Directive,
|
|
91
|
+
args: [{
|
|
92
|
+
selector: 'button[hlmInputGroupButton]',
|
|
93
|
+
providers: [
|
|
94
|
+
provideBrnButtonConfig({
|
|
95
|
+
variant: 'ghost',
|
|
96
|
+
}),
|
|
97
|
+
],
|
|
98
|
+
hostDirectives: [
|
|
99
|
+
{
|
|
100
|
+
directive: HlmButton,
|
|
101
|
+
inputs: ['variant'],
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
host: {
|
|
105
|
+
'[attr.data-size]': 'size()',
|
|
106
|
+
'[type]': 'type()',
|
|
107
|
+
},
|
|
108
|
+
}]
|
|
109
|
+
}], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
|
|
110
|
+
|
|
111
|
+
class HlmInputGroupInput {
|
|
112
|
+
constructor() {
|
|
113
|
+
classes(() => `rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent data-[matches-spartan-invalid=true]:ring-0 dark:bg-transparent dark:disabled:bg-transparent flex-1`);
|
|
114
|
+
}
|
|
115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputGroupInput, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
116
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmInputGroupInput, isStandalone: true, selector: "input[hlmInputGroupInput]", host: { attributes: { "data-slot": "input-group-control" } }, hostDirectives: [{ directive: i1$1.HlmInput }], ngImport: i0 }); }
|
|
117
|
+
}
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputGroupInput, decorators: [{
|
|
119
|
+
type: Directive,
|
|
120
|
+
args: [{
|
|
121
|
+
selector: 'input[hlmInputGroupInput]',
|
|
122
|
+
hostDirectives: [HlmInput],
|
|
123
|
+
host: { 'data-slot': 'input-group-control' },
|
|
124
|
+
}]
|
|
125
|
+
}], ctorParameters: () => [] });
|
|
126
|
+
|
|
127
|
+
class HlmInputGroupText {
|
|
128
|
+
constructor() {
|
|
129
|
+
classes(() => "text-muted-foreground gap-2 text-sm [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center [&_ng-icon]:pointer-events-none");
|
|
130
|
+
}
|
|
131
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputGroupText, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
132
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmInputGroupText, isStandalone: true, selector: "[hlmInputGroupText],hlm-input-group-text", ngImport: i0 }); }
|
|
133
|
+
}
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputGroupText, decorators: [{
|
|
135
|
+
type: Directive,
|
|
136
|
+
args: [{
|
|
137
|
+
selector: '[hlmInputGroupText],hlm-input-group-text',
|
|
138
|
+
}]
|
|
139
|
+
}], ctorParameters: () => [] });
|
|
140
|
+
|
|
141
|
+
class HlmInputGroupTextarea {
|
|
142
|
+
constructor() {
|
|
143
|
+
classes(() => 'rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent data-[matches-spartan-invalid=true]:ring-0 dark:bg-transparent dark:disabled:bg-transparent flex-1 resize-none');
|
|
144
|
+
}
|
|
145
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputGroupTextarea, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
146
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmInputGroupTextarea, isStandalone: true, selector: "textarea[hlmInputGroupTextarea]", host: { attributes: { "data-slot": "input-group-control" } }, hostDirectives: [{ directive: i1$2.HlmTextarea }], ngImport: i0 }); }
|
|
147
|
+
}
|
|
148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputGroupTextarea, decorators: [{
|
|
149
|
+
type: Directive,
|
|
150
|
+
args: [{
|
|
151
|
+
selector: 'textarea[hlmInputGroupTextarea]',
|
|
152
|
+
hostDirectives: [HlmTextarea],
|
|
153
|
+
host: { 'data-slot': 'input-group-control' },
|
|
154
|
+
}]
|
|
155
|
+
}], ctorParameters: () => [] });
|
|
156
|
+
|
|
157
|
+
const HlmInputGroupImports = [
|
|
158
|
+
HlmInputGroup,
|
|
159
|
+
HlmInputGroupAddon,
|
|
160
|
+
HlmInputGroupButton,
|
|
161
|
+
HlmInputGroupInput,
|
|
162
|
+
HlmInputGroupText,
|
|
163
|
+
HlmInputGroupTextarea,
|
|
164
|
+
];
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Generated bundle index. Do not edit.
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
export { HlmInputGroup, HlmInputGroupAddon, HlmInputGroupButton, HlmInputGroupImports, HlmInputGroupInput, HlmInputGroupText, HlmInputGroupTextarea };
|
|
171
|
+
//# sourceMappingURL=yukit-web-helm-input-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-input-group.mjs","sources":["../../../projects/yukit-web/helm/input-group/src/lib/hlm-input-group.ts","../../../projects/yukit-web/helm/input-group/src/lib/hlm-input-group-addon.ts","../../../projects/yukit-web/helm/input-group/src/lib/hlm-input-group-button.ts","../../../projects/yukit-web/helm/input-group/src/lib/hlm-input-group-input.ts","../../../projects/yukit-web/helm/input-group/src/lib/hlm-input-group-text.ts","../../../projects/yukit-web/helm/input-group/src/lib/hlm-input-group-textarea.ts","../../../projects/yukit-web/helm/input-group/src/index.ts","../../../projects/yukit-web/helm/input-group/src/yukit-web-helm-input-group.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmInputGroup],hlm-input-group',\n\thost: {\n\t\t'data-slot': 'input-group',\n\t\trole: 'group',\n\t},\n})\nexport class HlmInputGroup {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'border-input dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][data-matches-spartan-invalid=true]]:ring-destructive/20 has-[[data-slot][data-matches-spartan-invalid=true]]:border-destructive dark:has-[[data-slot][data-matches-spartan-invalid=true]]:ring-destructive/40 has-[[data-slot=input-group-control]:disabled]:bg-input/50 dark:has-[[data-slot=input-group-control]:disabled]:bg-input/80 h-8 rounded-lg border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:disabled]:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][data-matches-spartan-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto',\n\t\t);\n\t}\n}\n","import { Directive, input } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nconst inputGroupAddonVariants = cva(\n\t\"text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex cursor-text items-center justify-center select-none\",\n\t{\n\t\tvariants: {\n\t\t\talign: {\n\t\t\t\t'inline-start': 'ps-2 has-[>button]:ms-[-0.3rem] has-[>kbd]:ms-[-0.15rem] order-first',\n\t\t\t\t'inline-end': 'pe-2 has-[>button]:me-[-0.3rem] has-[>kbd]:me-[-0.15rem] order-last',\n\t\t\t\t'block-start': 'px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start',\n\t\t\t\t'block-end': 'px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\talign: 'inline-start',\n\t\t},\n\t},\n);\n\ntype InputGroupAddonVariants = VariantProps<typeof inputGroupAddonVariants>;\n\n@Directive({\n\tselector: '[hlmInputGroupAddon],hlm-input-group-addon',\n\thost: {\n\t\trole: 'group',\n\t\t'data-slot': 'input-group-addon',\n\t\t'[attr.data-align]': 'align()',\n\t},\n})\nexport class HlmInputGroupAddon {\n\tpublic readonly align = input<InputGroupAddonVariants['align']>('inline-start');\n\n\tconstructor() {\n\t\tclasses(() => inputGroupAddonVariants({ align: this.align() }));\n\t}\n}\n","import { Directive, input } from '@angular/core';\nimport { HlmButton, provideBrnButtonConfig } from 'yukit-web/helm/button';\nimport { classes } from 'yukit-web/helm/utils';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nconst inputGroupAddonVariants = cva('gap-2 text-sm flex items-center shadow-none', {\n\tvariants: {\n\t\tsize: {\n\t\t\txs: \"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>ng-icon:not([class*='text-'])]:text-[length:--spacing(3.5)]\",\n\t\t\tsm: '',\n\t\t\t'icon-xs': 'size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>ng-icon]:p-0',\n\t\t\t'icon-sm': 'size-8 p-0 has-[>ng-icon]:p-0',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tsize: 'xs',\n\t},\n});\n\ntype InputGroupAddonVariants = VariantProps<typeof inputGroupAddonVariants>;\n\n@Directive({\n\tselector: 'button[hlmInputGroupButton]',\n\tproviders: [\n\t\tprovideBrnButtonConfig({\n\t\t\tvariant: 'ghost',\n\t\t}),\n\t],\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: HlmButton,\n\t\t\tinputs: ['variant'],\n\t\t},\n\t],\n\thost: {\n\t\t'[attr.data-size]': 'size()',\n\t\t'[type]': 'type()',\n\t},\n})\nexport class HlmInputGroupButton {\n\tpublic readonly size = input<InputGroupAddonVariants['size']>('xs');\n\tpublic readonly type = input<'button' | 'submit' | 'reset'>('button');\n\n\tconstructor() {\n\t\tclasses(() => inputGroupAddonVariants({ size: this.size() }));\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { HlmInput } from 'yukit-web/helm/input';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'input[hlmInputGroupInput]',\n\thostDirectives: [HlmInput],\n\thost: { 'data-slot': 'input-group-control' },\n})\nexport class HlmInputGroupInput {\n\tconstructor() {\n\t\tclasses(() => `rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent data-[matches-spartan-invalid=true]:ring-0 dark:bg-transparent dark:disabled:bg-transparent flex-1`);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmInputGroupText],hlm-input-group-text',\n})\nexport class HlmInputGroupText {\n\tconstructor() {\n\t\tclasses(() => \"text-muted-foreground gap-2 text-sm [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center [&_ng-icon]:pointer-events-none\");\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { HlmTextarea } from 'yukit-web/helm/textarea';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'textarea[hlmInputGroupTextarea]',\n\thostDirectives: [HlmTextarea],\n\thost: { 'data-slot': 'input-group-control' },\n})\nexport class HlmInputGroupTextarea {\n\tconstructor() {\n\t\tclasses(() => 'rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent data-[matches-spartan-invalid=true]:ring-0 dark:bg-transparent dark:disabled:bg-transparent flex-1 resize-none');\n\t}\n}\n","import { HlmInputGroup } from './lib/hlm-input-group';\nimport { HlmInputGroupAddon } from './lib/hlm-input-group-addon';\nimport { HlmInputGroupButton } from './lib/hlm-input-group-button';\nimport { HlmInputGroupInput } from './lib/hlm-input-group-input';\nimport { HlmInputGroupText } from './lib/hlm-input-group-text';\nimport { HlmInputGroupTextarea } from './lib/hlm-input-group-textarea';\n\nexport * from './lib/hlm-input-group';\nexport * from './lib/hlm-input-group-addon';\nexport * from './lib/hlm-input-group-button';\nexport * from './lib/hlm-input-group-input';\nexport * from './lib/hlm-input-group-text';\nexport * from './lib/hlm-input-group-textarea';\n\nexport const HlmInputGroupImports = [\n\tHlmInputGroup,\n\tHlmInputGroupAddon,\n\tHlmInputGroupButton,\n\tHlmInputGroupInput,\n\tHlmInputGroupText,\n\tHlmInputGroupTextarea,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["inputGroupAddonVariants","i1"],"mappings":";;;;;;;;;;;MAUa,aAAa,CAAA;AACzB,IAAA,WAAA,GAAA;AACC,QAAA,OAAO,CACN,MACC,6vCAA6vC,CAC9vC;IACF;8GANY,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iCAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,MAAA,EAAA,OAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,iCAAiC;AAC3C,oBAAA,IAAI,EAAE;AACL,wBAAA,WAAW,EAAE,aAAa;AAC1B,wBAAA,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EAAA,WAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAA,IAAA,CAAA,WAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,iCAAiC;oBAC3C,cAAc,EAAE,CAAC,WAAW,CAAC;AAC7B,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE;AAC5C,iBAAA;;;ACMM,MAAM,oBAAoB,GAAG;IACnC,aAAa;IACb,kBAAkB;IAClB,mBAAmB;IACnB,kBAAkB;IAClB,iBAAiB;IACjB,qBAAqB;;;ACpBtB;;AAEG;;;;"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, ChangeDetectionStrategy, Component, input, numberAttribute, booleanAttribute } from '@angular/core';
|
|
3
|
+
import { classes } from 'yukit-web/helm/utils';
|
|
4
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
5
|
+
import { lucideMinus } from '@ng-icons/lucide';
|
|
6
|
+
import { BrnInputOtpSlot } from '@spartan-ng/brain/input-otp';
|
|
7
|
+
|
|
8
|
+
class HlmInputOtp {
|
|
9
|
+
constructor() {
|
|
10
|
+
classes(() => 'gap-2 flex items-center has-disabled:opacity-50');
|
|
11
|
+
}
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputOtp, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
13
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmInputOtp, isStandalone: true, selector: "brn-input-otp[hlmInputOtp], brn-input-otp[hlm]", host: { attributes: { "data-slot": "input-otp" } }, ngImport: i0 }); }
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputOtp, decorators: [{
|
|
16
|
+
type: Directive,
|
|
17
|
+
args: [{
|
|
18
|
+
selector: 'brn-input-otp[hlmInputOtp], brn-input-otp[hlm]',
|
|
19
|
+
host: { 'data-slot': 'input-otp' },
|
|
20
|
+
}]
|
|
21
|
+
}], ctorParameters: () => [] });
|
|
22
|
+
|
|
23
|
+
class HlmInputOtpFakeCaret {
|
|
24
|
+
constructor() {
|
|
25
|
+
classes(() => 'pointer-events-none absolute inset-0 flex items-center justify-center');
|
|
26
|
+
}
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputOtpFakeCaret, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
28
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", type: HlmInputOtpFakeCaret, isStandalone: true, selector: "hlm-input-otp-fake-caret", ngImport: i0, template: `
|
|
29
|
+
<div class="animate-caret-blink bg-foreground h-4 w-px duration-1000"></div>
|
|
30
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
31
|
+
}
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputOtpFakeCaret, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{
|
|
35
|
+
selector: 'hlm-input-otp-fake-caret',
|
|
36
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
37
|
+
template: `
|
|
38
|
+
<div class="animate-caret-blink bg-foreground h-4 w-px duration-1000"></div>
|
|
39
|
+
`,
|
|
40
|
+
}]
|
|
41
|
+
}], ctorParameters: () => [] });
|
|
42
|
+
|
|
43
|
+
class HlmInputOtpGroup {
|
|
44
|
+
constructor() {
|
|
45
|
+
classes(() => 'has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive rounded-lg has-data-[matches-spartan-invalid=true]:ring-3 flex items-center');
|
|
46
|
+
}
|
|
47
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputOtpGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
48
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmInputOtpGroup, isStandalone: true, selector: "[hlmInputOtpGroup],hlm-input-otp-group", host: { attributes: { "data-slot": "input-otp-group" } }, ngImport: i0 }); }
|
|
49
|
+
}
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputOtpGroup, decorators: [{
|
|
51
|
+
type: Directive,
|
|
52
|
+
args: [{
|
|
53
|
+
selector: '[hlmInputOtpGroup],hlm-input-otp-group',
|
|
54
|
+
host: { 'data-slot': 'input-otp-group' },
|
|
55
|
+
}]
|
|
56
|
+
}], ctorParameters: () => [] });
|
|
57
|
+
|
|
58
|
+
class HlmInputOtpSeparator {
|
|
59
|
+
constructor() {
|
|
60
|
+
classes(() => "[&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center");
|
|
61
|
+
}
|
|
62
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputOtpSeparator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
63
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", type: HlmInputOtpSeparator, isStandalone: true, selector: "hlm-input-otp-separator", host: { attributes: { "role": "separator", "data-slot": "input-otp-separator" } }, providers: [provideIcons({ lucideMinus })], ngImport: i0, template: `
|
|
64
|
+
<ng-icon name="lucideMinus" />
|
|
65
|
+
`, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
66
|
+
}
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputOtpSeparator, decorators: [{
|
|
68
|
+
type: Component,
|
|
69
|
+
args: [{
|
|
70
|
+
selector: 'hlm-input-otp-separator',
|
|
71
|
+
imports: [NgIcon],
|
|
72
|
+
providers: [provideIcons({ lucideMinus })],
|
|
73
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
74
|
+
host: {
|
|
75
|
+
role: 'separator',
|
|
76
|
+
'data-slot': 'input-otp-separator',
|
|
77
|
+
},
|
|
78
|
+
template: `
|
|
79
|
+
<ng-icon name="lucideMinus" />
|
|
80
|
+
`,
|
|
81
|
+
}]
|
|
82
|
+
}], ctorParameters: () => [] });
|
|
83
|
+
|
|
84
|
+
class HlmInputOtpSlot {
|
|
85
|
+
constructor() {
|
|
86
|
+
/** The index of the slot to render the char or a fake caret */
|
|
87
|
+
this.index = input.required({ ...(ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
88
|
+
/** Whether to force the input into an invalid state. */
|
|
89
|
+
this.forceInvalid = input(false, { ...(ngDevMode ? { debugName: "forceInvalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
90
|
+
classes(() => 'dark:bg-input/30 border-input has-[brn-input-otp-slot[data-active="true"]]:border-ring has-[brn-input-otp-slot[data-active="true"]]:ring-ring/50 has-[brn-input-otp-slot[data-active="true"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-[brn-input-otp-slot[data-active="true"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive has-[brn-input-otp-slot[data-active="true"]]:has-data-[matches-spartan-invalid=true]:border-destructive size-8 border-y border-e text-sm transition-all outline-none first:rounded-s-lg first:border-s last:rounded-e-lg has-[brn-input-otp-slot[data-active="true"]]:ring-3 relative flex items-center justify-center has-[brn-input-otp-slot[data-active="true"]]:z-10');
|
|
91
|
+
}
|
|
92
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputOtpSlot, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
93
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: HlmInputOtpSlot, isStandalone: true, selector: "hlm-input-otp-slot", inputs: { index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, forceInvalid: { classPropertyName: "forceInvalid", publicName: "forceInvalid", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "input-otp-slot" } }, ngImport: i0, template: `
|
|
94
|
+
<brn-input-otp-slot [index]="index()" [forceInvalid]="forceInvalid()">
|
|
95
|
+
<hlm-input-otp-fake-caret />
|
|
96
|
+
</brn-input-otp-slot>
|
|
97
|
+
`, isInline: true, dependencies: [{ kind: "component", type: BrnInputOtpSlot, selector: "brn-input-otp-slot", inputs: ["index", "forceInvalid"] }, { kind: "component", type: HlmInputOtpFakeCaret, selector: "hlm-input-otp-fake-caret" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
98
|
+
}
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInputOtpSlot, decorators: [{
|
|
100
|
+
type: Component,
|
|
101
|
+
args: [{
|
|
102
|
+
selector: 'hlm-input-otp-slot',
|
|
103
|
+
imports: [BrnInputOtpSlot, HlmInputOtpFakeCaret],
|
|
104
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
105
|
+
host: { 'data-slot': 'input-otp-slot' },
|
|
106
|
+
template: `
|
|
107
|
+
<brn-input-otp-slot [index]="index()" [forceInvalid]="forceInvalid()">
|
|
108
|
+
<hlm-input-otp-fake-caret />
|
|
109
|
+
</brn-input-otp-slot>
|
|
110
|
+
`,
|
|
111
|
+
}]
|
|
112
|
+
}], ctorParameters: () => [], propDecorators: { index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: true }] }], forceInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceInvalid", required: false }] }] } });
|
|
113
|
+
|
|
114
|
+
const HlmInputOtpImports = [
|
|
115
|
+
HlmInputOtp,
|
|
116
|
+
HlmInputOtpGroup,
|
|
117
|
+
HlmInputOtpSeparator,
|
|
118
|
+
HlmInputOtpSlot,
|
|
119
|
+
HlmInputOtpFakeCaret,
|
|
120
|
+
];
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Generated bundle index. Do not edit.
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
export { HlmInputOtp, HlmInputOtpFakeCaret, HlmInputOtpGroup, HlmInputOtpImports, HlmInputOtpSeparator, HlmInputOtpSlot };
|
|
127
|
+
//# sourceMappingURL=yukit-web-helm-input-otp.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-input-otp.mjs","sources":["../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-fake-caret.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-group.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-separator.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-slot.ts","../../../projects/yukit-web/helm/input-otp/src/index.ts","../../../projects/yukit-web/helm/input-otp/src/yukit-web-helm-input-otp.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'brn-input-otp[hlmInputOtp], brn-input-otp[hlm]',\n\thost: { 'data-slot': 'input-otp' },\n})\nexport class HlmInputOtp {\n\tconstructor() {\n\t\tclasses(() => 'gap-2 flex items-center has-disabled:opacity-50');\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-input-otp-fake-caret',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<div class=\"animate-caret-blink bg-foreground h-4 w-px duration-1000\"></div>\n\t`,\n})\nexport class HlmInputOtpFakeCaret {\n\tconstructor() {\n\t\tclasses(() => 'pointer-events-none absolute inset-0 flex items-center justify-center');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmInputOtpGroup],hlm-input-otp-group',\n\thost: { 'data-slot': 'input-otp-group' },\n})\nexport class HlmInputOtpGroup {\n\tconstructor() {\n\t\tclasses(() => 'has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive rounded-lg has-data-[matches-spartan-invalid=true]:ring-3 flex items-center');\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideMinus } from '@ng-icons/lucide';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-input-otp-separator',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideMinus })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\trole: 'separator',\n\t\t'data-slot': 'input-otp-separator',\n\t},\n\ttemplate: `\n\t\t<ng-icon name=\"lucideMinus\" />\n\t`,\n})\nexport class HlmInputOtpSeparator {\n\tconstructor() {\n\t\tclasses(() => \"[&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center\");\n\t}\n}\n","import type { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, input, numberAttribute } from '@angular/core';\nimport { BrnInputOtpSlot } from '@spartan-ng/brain/input-otp';\nimport { classes } from 'yukit-web/helm/utils';\nimport { HlmInputOtpFakeCaret } from './hlm-input-otp-fake-caret';\n\n@Component({\n\tselector: 'hlm-input-otp-slot',\n\timports: [BrnInputOtpSlot, HlmInputOtpFakeCaret],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: { 'data-slot': 'input-otp-slot' },\n\ttemplate: `\n\t\t<brn-input-otp-slot [index]=\"index()\" [forceInvalid]=\"forceInvalid()\">\n\t\t\t<hlm-input-otp-fake-caret />\n\t\t</brn-input-otp-slot>\n\t`,\n})\nexport class HlmInputOtpSlot {\n\t/** The index of the slot to render the char or a fake caret */\n\tpublic readonly index = input.required<number, NumberInput>({ transform: numberAttribute });\n\n\t/** Whether to force the input into an invalid state. */\n\tpublic readonly forceInvalid = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'dark:bg-input/30 border-input has-[brn-input-otp-slot[data-active=\"true\"]]:border-ring has-[brn-input-otp-slot[data-active=\"true\"]]:ring-ring/50 has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:border-destructive size-8 border-y border-e text-sm transition-all outline-none first:rounded-s-lg first:border-s last:rounded-e-lg has-[brn-input-otp-slot[data-active=\"true\"]]:ring-3 relative flex items-center justify-center has-[brn-input-otp-slot[data-active=\"true\"]]:z-10',\n\t\t);\n\t}\n}\n","import { HlmInputOtp } from './lib/hlm-input-otp';\nimport { HlmInputOtpFakeCaret } from './lib/hlm-input-otp-fake-caret';\nimport { HlmInputOtpGroup } from './lib/hlm-input-otp-group';\nimport { HlmInputOtpSeparator } from './lib/hlm-input-otp-separator';\nimport { HlmInputOtpSlot } from './lib/hlm-input-otp-slot';\n\nexport * from './lib/hlm-input-otp';\nexport * from './lib/hlm-input-otp-fake-caret';\nexport * from './lib/hlm-input-otp-group';\nexport * from './lib/hlm-input-otp-separator';\nexport * from './lib/hlm-input-otp-slot';\n\nexport const HlmInputOtpImports = [\n\tHlmInputOtp,\n\tHlmInputOtpGroup,\n\tHlmInputOtpSeparator,\n\tHlmInputOtpSlot,\n\tHlmInputOtpFakeCaret,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAOa,WAAW,CAAA;AACvB,IAAA,WAAA,GAAA;AACC,QAAA,OAAO,CAAC,MAAM,iDAAiD,CAAC;IACjE;8GAHY,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gDAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,WAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBAJvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,gDAAgD;AAC1D,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE;AAClC,iBAAA;;;MCIY,oBAAoB,CAAA;AAChC,IAAA,WAAA,GAAA;AACC,QAAA,OAAO,CAAC,MAAM,uEAAuE,CAAC;IACvF;8GAHY,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,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oB;AAC9B,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,oBAAoB,CAAC;oBAChD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE;AACvC,oBAAA,QAAQ,EAAE;;;;AAIT,CAAA,CAAA;AACD,iBAAA;;;ACJM,MAAM,kBAAkB,GAAG;IACjC,WAAW;IACX,gBAAgB;IAChB,oBAAoB;IACpB,eAAe;IACf,oBAAoB;;;ACjBrB;;AAEG;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive } from '@angular/core';
|
|
3
|
+
import * as i2 from '@spartan-ng/brain/field';
|
|
4
|
+
import { BrnFieldControlDescribedBy } from '@spartan-ng/brain/field';
|
|
5
|
+
import * as i1 from '@spartan-ng/brain/input';
|
|
6
|
+
import { BrnInput } from '@spartan-ng/brain/input';
|
|
7
|
+
import { classes } from 'yukit-web/helm/utils';
|
|
8
|
+
|
|
9
|
+
class HlmInput {
|
|
10
|
+
constructor() {
|
|
11
|
+
classes(() => 'dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50');
|
|
12
|
+
}
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInput, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
14
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmInput, isStandalone: true, selector: "[hlmInput]", host: { attributes: { "data-slot": "input" } }, hostDirectives: [{ directive: i1.BrnInput, inputs: ["id", "id", "forceInvalid", "forceInvalid"] }, { directive: i2.BrnFieldControlDescribedBy }], ngImport: i0 }); }
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmInput, decorators: [{
|
|
17
|
+
type: Directive,
|
|
18
|
+
args: [{
|
|
19
|
+
selector: '[hlmInput]',
|
|
20
|
+
hostDirectives: [{ directive: BrnInput, inputs: ['id', 'forceInvalid'] }, BrnFieldControlDescribedBy],
|
|
21
|
+
host: { 'data-slot': 'input' },
|
|
22
|
+
}]
|
|
23
|
+
}], ctorParameters: () => [] });
|
|
24
|
+
|
|
25
|
+
const HlmInputImports = [HlmInput];
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Generated bundle index. Do not edit.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
export { HlmInput, HlmInputImports };
|
|
32
|
+
//# sourceMappingURL=yukit-web-helm-input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-input.mjs","sources":["../../../projects/yukit-web/helm/input/src/lib/hlm-input.ts","../../../projects/yukit-web/helm/input/src/index.ts","../../../projects/yukit-web/helm/input/src/yukit-web-helm-input.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnFieldControlDescribedBy } from '@spartan-ng/brain/field';\nimport { BrnInput } from '@spartan-ng/brain/input';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmInput]',\n\thostDirectives: [{ directive: BrnInput, inputs: ['id', 'forceInvalid'] }, BrnFieldControlDescribedBy],\n\thost: { 'data-slot': 'input' },\n})\nexport class HlmInput {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',\n\t\t);\n\t}\n}\n","import { HlmInput } from './lib/hlm-input';\n\nexport * from './lib/hlm-input';\n\nexport const HlmInputImports = [HlmInput] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAUa,QAAQ,CAAA;AACpB,IAAA,WAAA,GAAA;AACC,QAAA,OAAO,CACN,MACC,gwBAAgwB,CACjwB;IACF;8GANY,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAR,QAAQ,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,OAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,QAAA,EAAA,MAAA,EAAA,CAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,cAAA,CAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAR,QAAQ,EAAA,UAAA,EAAA,CAAA;kBALpB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,cAAc,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,EAAE,EAAE,0BAA0B,CAAC;AACrG,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE;AAC9B,iBAAA;;;ACLM,MAAM,eAAe,GAAG,CAAC,QAAQ;;ACJxC;;AAEG;;;;"}
|