@devjuliovilla/jv-ui 1.5.5 → 1.5.6

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.
@@ -19383,6 +19383,97 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
19383
19383
  `, styles: [".jv-switch{display:inline-flex;align-items:center;gap:var(--jv-spacing-sm);min-height:var(--jv-density-control-height);color:var(--jv-color-foreground)}.jv-switch.is-disabled{opacity:.7}.jv-switch-input{position:absolute;opacity:0;pointer-events:none}.jv-switch-track{position:relative;display:inline-flex;align-items:center;width:2.75rem;height:1.6rem;padding:.15rem;border-radius:999px;background:var(--jv-color-border);transition:background-color .16s ease}.jv-switch-thumb{width:1.25rem;height:1.25rem;border-radius:999px;background:#fff;box-shadow:var(--jv-shadow-sm);transition:transform .16s ease}.jv-switch-input:checked+.jv-switch-track{background:var(--jv-color-primary)}.jv-switch-input:checked+.jv-switch-track .jv-switch-thumb{transform:translate(1.1rem)}\n"] }]
19384
19384
  }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], describedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "describedBy", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }] } });
19385
19385
 
19386
+ let textareaIdSequence = 0;
19387
+ class JvTextareaComponent {
19388
+ placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
19389
+ required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
19390
+ invalid = input(false, ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
19391
+ describedBy = input('', ...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
19392
+ readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []));
19393
+ rows = input(3, ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
19394
+ cols = input(undefined, ...(ngDevMode ? [{ debugName: "cols" }] : /* istanbul ignore next */ []));
19395
+ maxlength = input(undefined, ...(ngDevMode ? [{ debugName: "maxlength" }] : /* istanbul ignore next */ []));
19396
+ inputId = input(`jv-textarea-${++textareaIdSequence}`, ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
19397
+ value = '';
19398
+ disabled = false;
19399
+ onChange = () => undefined;
19400
+ onTouched = () => undefined;
19401
+ writeValue(value) {
19402
+ this.value = value ?? '';
19403
+ }
19404
+ registerOnChange(fn) {
19405
+ this.onChange = fn;
19406
+ }
19407
+ registerOnTouched(fn) {
19408
+ this.onTouched = fn;
19409
+ }
19410
+ setDisabledState(isDisabled) {
19411
+ this.disabled = isDisabled;
19412
+ }
19413
+ handleInput(event) {
19414
+ const nextValue = event.target.value;
19415
+ this.value = nextValue;
19416
+ this.onChange(nextValue);
19417
+ }
19418
+ handleBlur() {
19419
+ this.onTouched();
19420
+ }
19421
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: JvTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19422
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.17", type: JvTextareaComponent, isStandalone: true, selector: "jv-textarea", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, describedBy: { classPropertyName: "describedBy", publicName: "describedBy", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
19423
+ {
19424
+ provide: NG_VALUE_ACCESSOR,
19425
+ useExisting: forwardRef(() => JvTextareaComponent),
19426
+ multi: true,
19427
+ },
19428
+ ], ngImport: i0, template: `
19429
+ <textarea
19430
+ class="jv-textarea"
19431
+ [class.is-invalid]="invalid()"
19432
+ [id]="inputId()"
19433
+ [value]="value"
19434
+ [placeholder]="placeholder()"
19435
+ [required]="required()"
19436
+ [disabled]="disabled"
19437
+ [readonly]="readonly()"
19438
+ [rows]="rows()"
19439
+ [cols]="cols()"
19440
+ [attr.maxlength]="maxlength() ?? null"
19441
+ [attr.aria-invalid]="invalid() ? 'true' : null"
19442
+ [attr.aria-describedby]="describedBy() || null"
19443
+ (input)="handleInput($event)"
19444
+ (blur)="handleBlur()"
19445
+ ></textarea>
19446
+ `, isInline: true, styles: [".jv-textarea{width:100%;min-height:var(--jv-density-control-height);padding:var(--jv-spacing-sm) var(--jv-spacing-md);border:1px solid var(--jv-color-border);border-radius:var(--jv-radius-md);background:var(--jv-color-surface);color:var(--jv-color-foreground);resize:vertical;font-family:inherit;font-size:inherit;line-height:inherit;box-sizing:border-box}.jv-textarea::placeholder{color:var(--jv-color-foreground-muted)}.jv-textarea.is-invalid{border-color:var(--jv-color-danger)}.jv-textarea:disabled{opacity:.7;cursor:not-allowed}.jv-textarea:read-only{background:var(--jv-color-surface-muted);cursor:default}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
19447
+ }
19448
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: JvTextareaComponent, decorators: [{
19449
+ type: Component,
19450
+ args: [{ selector: 'jv-textarea', standalone: true, imports: [CommonModule], providers: [
19451
+ {
19452
+ provide: NG_VALUE_ACCESSOR,
19453
+ useExisting: forwardRef(() => JvTextareaComponent),
19454
+ multi: true,
19455
+ },
19456
+ ], template: `
19457
+ <textarea
19458
+ class="jv-textarea"
19459
+ [class.is-invalid]="invalid()"
19460
+ [id]="inputId()"
19461
+ [value]="value"
19462
+ [placeholder]="placeholder()"
19463
+ [required]="required()"
19464
+ [disabled]="disabled"
19465
+ [readonly]="readonly()"
19466
+ [rows]="rows()"
19467
+ [cols]="cols()"
19468
+ [attr.maxlength]="maxlength() ?? null"
19469
+ [attr.aria-invalid]="invalid() ? 'true' : null"
19470
+ [attr.aria-describedby]="describedBy() || null"
19471
+ (input)="handleInput($event)"
19472
+ (blur)="handleBlur()"
19473
+ ></textarea>
19474
+ `, styles: [".jv-textarea{width:100%;min-height:var(--jv-density-control-height);padding:var(--jv-spacing-sm) var(--jv-spacing-md);border:1px solid var(--jv-color-border);border-radius:var(--jv-radius-md);background:var(--jv-color-surface);color:var(--jv-color-foreground);resize:vertical;font-family:inherit;font-size:inherit;line-height:inherit;box-sizing:border-box}.jv-textarea::placeholder{color:var(--jv-color-foreground-muted)}.jv-textarea.is-invalid{border-color:var(--jv-color-danger)}.jv-textarea:disabled{opacity:.7;cursor:not-allowed}.jv-textarea:read-only{background:var(--jv-color-surface-muted);cursor:default}\n"] }]
19475
+ }], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], describedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "describedBy", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], cols: [{ type: i0.Input, args: [{ isSignal: true, alias: "cols", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }] } });
19476
+
19386
19477
  class JvDialogService {
19387
19478
  announcementService = inject(JvAnnouncementService);
19388
19479
  document = inject(DOCUMENT);
@@ -20966,7 +21057,7 @@ class JvGridComponent {
20966
21057
  [checked]="getCellValue(row, col) === true"
20967
21058
  (change)="commitEdit(row, col, $any($event.target).checked)"
20968
21059
  [attr.aria-label]="col.header"
20969
- />
21060
+ />
20970
21061
  } @else {
20971
21062
  <input
20972
21063
  class="jv-grid-edit-input"
@@ -21317,7 +21408,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
21317
21408
  [checked]="getCellValue(row, col) === true"
21318
21409
  (change)="commitEdit(row, col, $any($event.target).checked)"
21319
21410
  [attr.aria-label]="col.header"
21320
- />
21411
+ />
21321
21412
  } @else {
21322
21413
  <input
21323
21414
  class="jv-grid-edit-input"
@@ -21589,5 +21680,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
21589
21680
  * Generated bundle index. Do not edit.
21590
21681
  */
21591
21682
 
21592
- export { EN, ES, JV_DEFAULT_LOCALE, JV_FALLBACK_ICON_NAME, JV_GRID_DEFAULT_OPTIONS, JV_LOCALE_DICTIONARIES, JV_LUCIDE_ICON_REGISTRY, JV_UI_CONFIG, JV_UI_CONFIG_DEFAULTS, JV_UI_DEFAULT_CONFIG, JvAlertComponent, JvAnnouncementService, JvBadgeComponent, JvBreadcrumbComponent, JvButtonComponent, JvButtonGroupComponent, JvCardComponent, JvChangePasswordPageComponent, JvCheckboxComponent, JvConfirmDialogComponent, JvDashboardShellComponent, JvDialogComponent, JvDialogService, JvDividerComponent, JvForgotPasswordPageComponent, JvFormContainerComponent, JvGridComponent, JvIconButtonComponent, JvIconComponent, JvInputComponent, JvLoaderComponent, JvLoaderService, JvLoginPageComponent, JvPageComponent, JvPaginationComponent, JvRadioComponent, JvSectionComponent, JvSelectComponent, JvSidebarComponent, JvSwitchComponent, JvThemeService, JvToastComponent, JvToastService, JvTopbarComponent, JvTranslationService, provideJvUi };
21683
+ export { EN, ES, JV_DEFAULT_LOCALE, JV_FALLBACK_ICON_NAME, JV_GRID_DEFAULT_OPTIONS, JV_LOCALE_DICTIONARIES, JV_LUCIDE_ICON_REGISTRY, JV_UI_CONFIG, JV_UI_CONFIG_DEFAULTS, JV_UI_DEFAULT_CONFIG, JvAlertComponent, JvAnnouncementService, JvBadgeComponent, JvBreadcrumbComponent, JvButtonComponent, JvButtonGroupComponent, JvCardComponent, JvChangePasswordPageComponent, JvCheckboxComponent, JvConfirmDialogComponent, JvDashboardShellComponent, JvDialogComponent, JvDialogService, JvDividerComponent, JvForgotPasswordPageComponent, JvFormContainerComponent, JvGridComponent, JvIconButtonComponent, JvIconComponent, JvInputComponent, JvLoaderComponent, JvLoaderService, JvLoginPageComponent, JvPageComponent, JvPaginationComponent, JvRadioComponent, JvSectionComponent, JvSelectComponent, JvSidebarComponent, JvSwitchComponent, JvTextareaComponent, JvThemeService, JvToastComponent, JvToastService, JvTopbarComponent, JvTranslationService, provideJvUi };
21593
21684
  //# sourceMappingURL=devjuliovilla-jv-ui.mjs.map