@dynamicforms/vuetify-inputs 0.10.0 → 0.10.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/dist/index.d.ts CHANGED
@@ -456,6 +456,28 @@ declare interface DfFileProps extends BaseProps {
456
456
  comms: FileComms;
457
457
  }
458
458
 
459
+ export declare const DfImage: DefineComponent<DfImageProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
460
+ "update:modelValue": (value: any) => any;
461
+ "click:clear": () => any;
462
+ }, string, PublicProps, Readonly<DfImageProps> & Readonly<{
463
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
464
+ "onClick:clear"?: (() => any) | undefined;
465
+ }>, {
466
+ enabled: boolean;
467
+ clearable: boolean;
468
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
469
+ fileInputRef: HTMLInputElement;
470
+ }, any>;
471
+
472
+ /**
473
+ * `comms.upload` must resolve to a value directly usable as an `<img>` src (typically the URL your backend
474
+ * serves the image from): the component has no separate lookup for turning an identifier into a display URL,
475
+ * so it renders `modelValue` itself as the preview once a file has been uploaded.
476
+ */
477
+ declare interface DfImageProps extends BaseProps {
478
+ comms: FileComms;
479
+ }
480
+
459
481
  export declare const DfInput: DefineComponent<DfInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
460
482
  "update:modelValue": (value: any) => any;
461
483
  "click:clear": () => any;
@@ -479,6 +501,7 @@ export declare namespace DfInputComponentProps {
479
501
  DfColorProps,
480
502
  DfDateTimeProps,
481
503
  DfFileProps,
504
+ DfImageProps,
482
505
  DfInputProps,
483
506
  DfInputHintProps,
484
507
  DfLabelProps,
@@ -495,6 +518,7 @@ export declare namespace DfInputComponents {
495
518
  DfColor,
496
519
  DfDateTime,
497
520
  DfFile,
521
+ DfImage,
498
522
  DfInput,
499
523
  DfInputHint,
500
524
  DfLabel,
@@ -564,6 +588,18 @@ export declare const dfInputComponentsByTag: {
564
588
  enabled: boolean;
565
589
  clearable: boolean;
566
590
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
591
+ readonly 'df-image': DefineComponent<DfImageProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
592
+ "update:modelValue": (value: any) => any;
593
+ "click:clear": () => any;
594
+ }, string, PublicProps, Readonly<DfImageProps> & Readonly<{
595
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
596
+ "onClick:clear"?: (() => any) | undefined;
597
+ }>, {
598
+ enabled: boolean;
599
+ clearable: boolean;
600
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
601
+ fileInputRef: HTMLInputElement;
602
+ }, any>;
567
603
  readonly 'df-input': DefineComponent<DfInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
568
604
  "update:modelValue": (value: any) => any;
569
605
  "click:clear": () => any;
@@ -962,6 +998,8 @@ export declare const translatableStrings: {
962
998
  ImageUrl: string;
963
999
  ImageUpload: string;
964
1000
  ImageInsert: string;
1001
+ ImageDropHint: string;
1002
+ ImageReplace: string;
965
1003
  Table: string;
966
1004
  TableInsert: string;
967
1005
  TableAddRowAbove: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dynamicforms/vuetify-inputs",
3
3
  "private": false,
4
- "version": "0.10.0",
4
+ "version": "0.10.1",
5
5
  "type": "module",
6
6
  "description": "Vuetify input components with guaranteed visual consistency across all form fields — unified density/variant system, globally configurable, with inline mode for table cells. Built for @dynamicforms/vue-forms.",
7
7
  "author": "Jure Erznožnik",