@fastkit/vui 0.12.9 → 0.12.10

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.
Files changed (33) hide show
  1. package/dist/vui.css +138 -409
  2. package/dist/vui.css.map +1 -1
  3. package/dist/vui.d.ts +97 -409
  4. package/dist/vui.mjs +167 -1125
  5. package/dist/vui.mjs.map +1 -1
  6. package/package.json +18 -40
  7. package/src/components/index.ts +3 -1
  8. package/src/injections.ts +1 -1
  9. package/src/components/VWysiwygEditor/VWysiwygEditor.scss +0 -68
  10. package/src/components/VWysiwygEditor/VWysiwygEditor.tsx +0 -354
  11. package/src/components/VWysiwygEditor/extensions/color.ts +0 -72
  12. package/src/components/VWysiwygEditor/extensions/index.ts +0 -2
  13. package/src/components/VWysiwygEditor/extensions/linter/Linter.scss +0 -139
  14. package/src/components/VWysiwygEditor/extensions/linter/Linter.tsx +0 -210
  15. package/src/components/VWysiwygEditor/extensions/linter/LinterPlugin.ts +0 -65
  16. package/src/components/VWysiwygEditor/extensions/linter/index.ts +0 -5
  17. package/src/components/VWysiwygEditor/extensions/linter/plugins/BadWords.tsx +0 -50
  18. package/src/components/VWysiwygEditor/extensions/linter/plugins/HeadingLevel.ts +0 -39
  19. package/src/components/VWysiwygEditor/extensions/linter/plugins/Punctuation.ts +0 -49
  20. package/src/components/VWysiwygEditor/extensions/linter/plugins/index.ts +0 -3
  21. package/src/components/VWysiwygEditor/extensions/linter/utils.ts +0 -28
  22. package/src/components/VWysiwygEditor/index.ts +0 -4
  23. package/src/components/VWysiwygEditor/schemes.ts +0 -251
  24. package/src/components/VWysiwygEditor/tools/bullet-list.ts +0 -18
  25. package/src/components/VWysiwygEditor/tools/color.scss +0 -134
  26. package/src/components/VWysiwygEditor/tools/color.tsx +0 -90
  27. package/src/components/VWysiwygEditor/tools/format-bold.ts +0 -19
  28. package/src/components/VWysiwygEditor/tools/format-italic.ts +0 -18
  29. package/src/components/VWysiwygEditor/tools/format-underline.ts +0 -18
  30. package/src/components/VWysiwygEditor/tools/history.ts +0 -26
  31. package/src/components/VWysiwygEditor/tools/index.ts +0 -8
  32. package/src/components/VWysiwygEditor/tools/link.ts +0 -57
  33. package/src/components/VWysiwygEditor/tools/ordered-list.ts +0 -21
package/dist/vui.d.ts CHANGED
@@ -24,21 +24,9 @@ export * from '@fastkit/vue-loading';
24
24
  import * as vue from 'vue';
25
25
  import { PropType, ExtractPropTypes, ComputedRef, VNodeChild, InjectionKey, VNodeProps, UnwrapNestedRefs, ImgHTMLAttributes, HTMLAttributes, Ref, App } from 'vue';
26
26
  import { ScopeName, ColorVariant , ThemeName, PaletteName } from '@fastkit/color-scheme';
27
- import { Extension as Extension$1 } from '@tiptap/core';
28
27
  import { useLink, Router, UseLinkOptions, RouteLocationRaw } from 'vue-router';
29
28
  import * as _fastkit_vue_utils__ from '@fastkit/vue-utils/.';
30
29
  import * as _fastkit_vue_form_control__ from '@fastkit/vue-form-control/.';
31
- import * as _tiptap_vue_3 from '@tiptap/vue-3';
32
- import { EditorOptions, Editor, Extension, Node, Mark, AnyExtension, Extensions, FocusPosition } from '@tiptap/vue-3';
33
- import { Node as Node$1 } from 'prosemirror-model';
34
- import { EditorView } from 'prosemirror-view';
35
- import { BulletListOptions } from '@tiptap/extension-bullet-list';
36
- import { BoldOptions } from '@tiptap/extension-bold';
37
- import { ItalicOptions } from '@tiptap/extension-italic';
38
- import { UnderlineOptions } from '@tiptap/extension-underline';
39
- import { HistoryOptions } from '@tiptap/extension-history';
40
- import { LinkOptions } from '@tiptap/extension-link';
41
- import { OrderedListOptions } from '@tiptap/extension-ordered-list';
42
30
 
43
31
  declare const CONTROL_SIZES: readonly ["sm", "md", "lg"];
44
32
  type ControlSize = (typeof CONTROL_SIZES)[number];
@@ -343,7 +331,6 @@ declare const VuiControlFieldInjectionKey: InjectionKey<ControlFieldProvider>;
343
331
  declare const VuiColorProviderInjectionKey: InjectionKey<VuiColorProvider>;
344
332
  declare const VUI_TEXT_FIELD_SYMBOL = "vui-text-field";
345
333
  declare const VUI_TEXTAREA_SYMBOL = "vui-textarea";
346
- declare const VUI_WYSIWYG_EDITOR_SYMBOL = "vui-wysiwyg-editor";
347
334
  declare const VUI_SELECT_SYMBOL = "vui-select";
348
335
  declare const VUI_OPTION_SYMBOL = "vui-option";
349
336
  declare const VUI_CHECKBOX_GROUP_SYMBOL = "vui-checkbox-group";
@@ -394,11 +381,86 @@ declare const VIcon: vue.DefineComponent<{
394
381
  onClick?: ((ev: MouseEvent) => any) | undefined;
395
382
  }, {}>;
396
383
 
384
+ declare const ADORNMENT_POSITIONS: readonly ["start", "end"];
385
+ type AdornmentPosition = (typeof ADORNMENT_POSITIONS)[number];
386
+ declare function createControlFieldProps(): {
387
+ size: {
388
+ type: PropType<"sm" | "md" | "lg">;
389
+ validator: (value: any) => boolean;
390
+ };
391
+ loading: BooleanConstructor;
392
+ variant: {
393
+ type: PropType<"outlined" | "filled" | "flat">;
394
+ validator: (value: any) => boolean;
395
+ };
396
+ startAdornment: PropType<VNodeChildOrSlot>;
397
+ endAdornment: PropType<VNodeChildOrSlot>;
398
+ tabindex: {
399
+ type: (StringConstructor | NumberConstructor)[];
400
+ default: number;
401
+ };
402
+ };
397
403
  interface InputBoxSlots {
398
404
  default: void;
399
405
  startAdornment: void;
400
406
  endAdornment: void;
401
407
  }
408
+ declare const VControlField: vue.DefineComponent<{
409
+ error: BooleanConstructor;
410
+ 'v-slots': PropType<_fastkit_vue_utils.ResolveRawSlots<InputBoxSlots>>;
411
+ focused: BooleanConstructor;
412
+ autoHeight: BooleanConstructor;
413
+ size: {
414
+ type: PropType<"sm" | "md" | "lg">;
415
+ validator: (value: any) => boolean;
416
+ };
417
+ loading: BooleanConstructor;
418
+ variant: {
419
+ type: PropType<"outlined" | "filled" | "flat">;
420
+ validator: (value: any) => boolean;
421
+ };
422
+ startAdornment: PropType<VNodeChildOrSlot>;
423
+ endAdornment: PropType<VNodeChildOrSlot>;
424
+ tabindex: {
425
+ type: (StringConstructor | NumberConstructor)[];
426
+ default: number;
427
+ };
428
+ }, {
429
+ classes: vue.ComputedRef<any[]>;
430
+ renderAdornment: (position: AdornmentPosition) => JSX.Element | undefined;
431
+ hostElRef: () => vue.Ref<HTMLElement | null>;
432
+ handleClick: (ev: MouseEvent) => void;
433
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
434
+ click: (ev: MouseEvent) => boolean;
435
+ }, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
436
+ error: BooleanConstructor;
437
+ 'v-slots': PropType<_fastkit_vue_utils.ResolveRawSlots<InputBoxSlots>>;
438
+ focused: BooleanConstructor;
439
+ autoHeight: BooleanConstructor;
440
+ size: {
441
+ type: PropType<"sm" | "md" | "lg">;
442
+ validator: (value: any) => boolean;
443
+ };
444
+ loading: BooleanConstructor;
445
+ variant: {
446
+ type: PropType<"outlined" | "filled" | "flat">;
447
+ validator: (value: any) => boolean;
448
+ };
449
+ startAdornment: PropType<VNodeChildOrSlot>;
450
+ endAdornment: PropType<VNodeChildOrSlot>;
451
+ tabindex: {
452
+ type: (StringConstructor | NumberConstructor)[];
453
+ default: number;
454
+ };
455
+ }>> & {
456
+ onClick?: ((ev: MouseEvent) => any) | undefined;
457
+ }, {
458
+ loading: boolean;
459
+ tabindex: string | number;
460
+ error: boolean;
461
+ focused: boolean;
462
+ autoHeight: boolean;
463
+ }>;
402
464
 
403
465
  declare function createTextFieldProps(): {
404
466
  'v-slots': vue.PropType<_fastkit_vue_utils.ResolveRawSlots<FormControlSlots & InputBoxSlots>>;
@@ -5565,6 +5627,26 @@ declare const VNavigation: vue.DefineComponent<{
5565
5627
  startIconEmptySpace: boolean;
5566
5628
  }>;
5567
5629
 
5630
+ declare const VTextCounter: vue.DefineComponent<{
5631
+ length: {
5632
+ type: NumberConstructor;
5633
+ required: true;
5634
+ };
5635
+ maxlength: {
5636
+ type: NumberConstructor;
5637
+ required: true;
5638
+ };
5639
+ }, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
5640
+ length: {
5641
+ type: NumberConstructor;
5642
+ required: true;
5643
+ };
5644
+ maxlength: {
5645
+ type: NumberConstructor;
5646
+ required: true;
5647
+ };
5648
+ }>>, {}>;
5649
+
5568
5650
  declare function createRequiredChipRenderer(required: () => boolean, props: {
5569
5651
  requiredChip?: RequiredChipSource;
5570
5652
  }, vui?: VuiService): () => VNodeChild;
@@ -7591,400 +7673,6 @@ declare const VTextarea: vue.DefineComponent<{
7591
7673
  rows: _fastkit_vue_utils.Numberish;
7592
7674
  }>;
7593
7675
 
7594
- declare const EDITOR_EVENTS: readonly ["beforeCreate", "create", "update", "selectionUpdate", "transaction", "focus", "blur", "destroy"];
7595
- type PrefixedEventName<S extends string> = `on${Capitalize<S>}`;
7596
- type WysiwygEditorEvent = (typeof EDITOR_EVENTS)[number];
7597
- type WysiwygEditorPrefixedEvent = PrefixedEventName<WysiwygEditorEvent>;
7598
- interface WysiwygEditorEventsOptions extends Partial<Pick<EditorOptions, WysiwygEditorPrefixedEvent>> {
7599
- }
7600
- type WysiwygEditorEventsBucket = {
7601
- [EV in WysiwygEditorEvent]: NonNullable<WysiwygEditorEventsOptions[PrefixedEventName<EV>]>[];
7602
- };
7603
- declare class WysiwygEditorInitializeContext {
7604
- readonly listeners: WysiwygEditorEventsBucket;
7605
- private readonly _vui;
7606
- get vui(): VuiService;
7607
- constructor(vuiGetter: () => VuiService, opts?: WysiwygEditorEventsOptions);
7608
- on<EV extends WysiwygEditorEvent>(ev: EV, handler: NonNullable<WysiwygEditorEventsOptions[PrefixedEventName<EV>]>): () => void;
7609
- off<EV extends WysiwygEditorEvent>(ev: EV, handler: NonNullable<WysiwygEditorEventsOptions[PrefixedEventName<EV>]>): void;
7610
- editorOptions(): WysiwygEditorEventsOptions;
7611
- }
7612
- interface WysiwygEditorContext {
7613
- editor: Editor;
7614
- vui: VuiService;
7615
- }
7616
- type WysiwygExtensionFactory<Options = any, Storage = any> = (ctx: WysiwygEditorInitializeContext) => Extension<Options, Storage> | Node<Options, Storage> | Mark<Options, Storage>;
7617
- interface CreatedWysiwygExtension<Options = any, Storage = any> {
7618
- __isCreatedWysiwygExtension: true;
7619
- _configs: Partial<Options>[];
7620
- configure(options?: Partial<Options>): CreatedWysiwygExtension<Options, Storage>;
7621
- raw: WysiwygExtensionSource<Options, Storage>;
7622
- }
7623
- type WysiwygExtensionSource<Options = any, Storage = any> = Extension<Options, Storage> | Node<Options, Storage> | Mark<Options, Storage> | WysiwygExtensionFactory<Options, Storage>;
7624
- type RawWysiwygExtension<Options = any, Storage = any> = WysiwygExtensionSource<Options, Storage> | CreatedWysiwygExtension<Options, Storage>;
7625
- declare function createWysiwygExtension<Options = any, Storage = any>(extension: WysiwygExtensionSource<Options, Storage>): CreatedWysiwygExtension<Options, Storage>;
7626
- declare function resolveRawWysiwygExtensions(raws: RawWysiwygExtension[], ctx: WysiwygEditorInitializeContext): AnyExtension[];
7627
- interface WysiwygEditorTool {
7628
- key: string;
7629
- icon: IconName | ((ctx: WysiwygEditorContext) => IconName | (() => VNodeChild));
7630
- active?: boolean | ((ctx: WysiwygEditorContext) => boolean);
7631
- disabled?: boolean | ((ctx: WysiwygEditorContext) => boolean);
7632
- onClick: (ctx: WysiwygEditorContext, ev: MouseEvent) => any;
7633
- floating?: boolean;
7634
- extensions?: Extensions;
7635
- }
7636
- type WysiwygEditorToolFactory<Options = void> = (vui: VuiService, options?: Options) => WysiwygEditorTool | WysiwygEditorTool[];
7637
- type RawWysiwygEditorTool = WysiwygEditorTool | WysiwygEditorToolFactory<any>;
7638
- interface ResolvedWysiwygEditorSettings {
7639
- tools: WysiwygEditorTool[];
7640
- extensions: Extensions;
7641
- }
7642
- declare function resolveRawWysiwygEditorTools(rawTools: RawWysiwygEditorTool[], vui: VuiService): ResolvedWysiwygEditorSettings;
7643
-
7644
- declare const VWysiwygEditor: vue.DefineComponent<{
7645
- extensions: {
7646
- type: PropType<RawWysiwygExtension[]>;
7647
- default: () => never[];
7648
- };
7649
- tools: {
7650
- type: PropType<RawWysiwygEditorTool[]>;
7651
- default: () => never[];
7652
- };
7653
- floatingToolbar: BooleanConstructor;
7654
- disabledMinHeight: BooleanConstructor;
7655
- disabledMaxHeight: BooleanConstructor;
7656
- 'v-slots': PropType<_fastkit_vue_utils.ResolveRawSlots<FormControlSlots & InputBoxSlots>>;
7657
- size: {
7658
- type: PropType<"sm" | "md" | "lg">;
7659
- validator: (value: any) => boolean;
7660
- };
7661
- loading: BooleanConstructor;
7662
- variant: {
7663
- type: PropType<"outlined" | "filled" | "flat">;
7664
- validator: (value: any) => boolean;
7665
- };
7666
- startAdornment: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
7667
- endAdornment: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
7668
- tabindex: {
7669
- type: (StringConstructor | NumberConstructor)[];
7670
- default: number;
7671
- };
7672
- nodeControl: PropType<_fastkit_vue_form_control.FormNodeControl<any, any>>;
7673
- label: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
7674
- hint: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
7675
- hinttip: PropType<_fastkit_vue_form_control.FormControlHinttip>;
7676
- hinttipDelay: PropType<_fastkit_vue_form_control.FormControlHinttipDelay>;
7677
- infoAppends: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
7678
- validating: BooleanConstructor;
7679
- pending: BooleanConstructor;
7680
- focused: BooleanConstructor;
7681
- dirty: BooleanConstructor;
7682
- pristine: BooleanConstructor;
7683
- errors: {
7684
- type: PropType<_fastkit_vue_form_control.FormNodeError[]>;
7685
- default: () => _fastkit_vue_form_control.FormNodeError[];
7686
- };
7687
- disabled: BooleanConstructor;
7688
- readonly: BooleanConstructor;
7689
- touched: BooleanConstructor;
7690
- untouched: BooleanConstructor;
7691
- required: BooleanConstructor;
7692
- invalid: BooleanConstructor;
7693
- valid: BooleanConstructor;
7694
- hiddenInfo: BooleanConstructor;
7695
- requiredChip: PropType<_fastkit_vue_form_control.RequiredChipSource>;
7696
- minlength: (StringConstructor | NumberConstructor)[];
7697
- maxlength: (StringConstructor | NumberConstructor)[];
7698
- pattern: (StringConstructor | RegExpConstructor)[];
7699
- placeholder: StringConstructor;
7700
- autocapitalize: PropType<_fastkit_vue_form_control.FormAutoCapitalize>;
7701
- finishings: PropType<_fastkit_vue_form_control.RawTextableFinishingProp>;
7702
- counter: PropType<string | number | boolean>;
7703
- counterValue: PropType<(value: string) => number>;
7704
- limit: BooleanConstructor;
7705
- autocomplete: PropType<boolean | "name" | "off" | "on" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo">;
7706
- name: StringConstructor;
7707
- modelValue: vue.Prop<string, string>;
7708
- autofocus: BooleanConstructor;
7709
- spellcheck: BooleanConstructor;
7710
- viewonly: BooleanConstructor;
7711
- clearable: BooleanConstructor;
7712
- validateTiming: {
7713
- type: PropType<_fastkit_vue_form_control.ValidateTiming>;
7714
- default: _fastkit_vue_form_control.ValidateTiming;
7715
- };
7716
- rules: {
7717
- type: PropType<_fastkit_vue_form_control.RecursiveValidatableRule>;
7718
- default: () => never[];
7719
- };
7720
- validationDeps: PropType<(nodeControl: _fastkit_vue_form_control.FormNodeControl<any, any>) => any>;
7721
- error: BooleanConstructor;
7722
- errorMessages: PropType<string | string[]>;
7723
- }, {
7724
- focus: (position?: FocusPosition, options?: {
7725
- scrollIntoView?: boolean | undefined;
7726
- }) => _tiptap_vue_3.ChainedCommands | undefined;
7727
- blur: () => _tiptap_vue_3.ChainedCommands | undefined;
7728
- createTools: (bubbleMenu?: boolean) => JSX.Element;
7729
- parentControl: ControlProvider | null;
7730
- size: vue.ComputedRef<"sm" | "md" | "lg">;
7731
- classes: vue.ComputedRef<any>;
7732
- computedMinlength: vue.ComputedRef<number | undefined>;
7733
- computedMaxlength: vue.ComputedRef<number | undefined>;
7734
- computedPattern: vue.ComputedRef<string | RegExp | undefined>;
7735
- computedPlaceholder: vue.ComputedRef<string | undefined>;
7736
- computedAutocapitalize: vue.ComputedRef<_fastkit_vue_form_control.FormAutoCapitalize | undefined>;
7737
- counterSettings: vue.ComputedRef<_fastkit_vue_form_control.TextableCounterSettings | undefined>;
7738
- counterResult: vue.ComputedRef<_fastkit_vue_form_control.TextableCounterResult | undefined>;
7739
- computedAutocomplete: vue.ComputedRef<"name" | "off" | "on" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo" | undefined>;
7740
- nodeControl: _fastkit_vue_form_control.FormNodeControl<any, any>;
7741
- currentValue: vue.WritableComputedRef<string>;
7742
- computedTabindex: vue.ComputedRef<number>;
7743
- validating: vue.Ref<boolean>;
7744
- autofocus: boolean;
7745
- pending: vue.ComputedRef<boolean>;
7746
- focused: vue.ComputedRef<boolean>;
7747
- initialValue: vue.Ref<string>;
7748
- dirty: vue.ComputedRef<boolean>;
7749
- pristine: vue.ComputedRef<boolean>;
7750
- propRules: vue.ComputedRef<_fastkit_vue_form_control.RecursiveValidatableRule>;
7751
- isRequired: vue.ComputedRef<boolean>;
7752
- errors: vue.ComputedRef<_fastkit_vue_form_control.FormNodeError[]>;
7753
- firstError: vue.ComputedRef<_fastkit_vue_form_control.FormNodeError | undefined>;
7754
- hasMyError: vue.ComputedRef<boolean>;
7755
- hasError: vue.ComputedRef<boolean>;
7756
- isDisabled: vue.ComputedRef<boolean>;
7757
- isReadonly: vue.ComputedRef<boolean>;
7758
- canOperation: vue.ComputedRef<boolean>;
7759
- touched: vue.ComputedRef<boolean>;
7760
- untouched: vue.ComputedRef<boolean>;
7761
- isDestroyed: vue.ComputedRef<boolean>;
7762
- invalid: vue.ComputedRef<boolean>;
7763
- valid: vue.ComputedRef<boolean>;
7764
- shouldValidate: vue.ComputedRef<boolean>;
7765
- spellcheck: vue.ComputedRef<boolean>;
7766
- submiting: vue.ComputedRef<boolean>;
7767
- validateSelf: (force?: boolean | undefined) => Promise<_fastkit_vue_form_control.ValidationResult>;
7768
- validate: () => Promise<boolean>;
7769
- editor: vue.ShallowRef<_tiptap_vue_3.Editor | undefined>;
7770
- }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
7771
- 'update:modelValue': (value: string) => boolean;
7772
- 'update:errors': (errors: _fastkit_vue_form_control.FormNodeError[]) => boolean;
7773
- change: (value: string) => boolean;
7774
- focus: (ev: FocusEvent) => boolean;
7775
- blur: (ev: FocusEvent) => boolean;
7776
- }, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
7777
- extensions: {
7778
- type: PropType<RawWysiwygExtension[]>;
7779
- default: () => never[];
7780
- };
7781
- tools: {
7782
- type: PropType<RawWysiwygEditorTool[]>;
7783
- default: () => never[];
7784
- };
7785
- floatingToolbar: BooleanConstructor;
7786
- disabledMinHeight: BooleanConstructor;
7787
- disabledMaxHeight: BooleanConstructor;
7788
- 'v-slots': PropType<_fastkit_vue_utils.ResolveRawSlots<FormControlSlots & InputBoxSlots>>;
7789
- size: {
7790
- type: PropType<"sm" | "md" | "lg">;
7791
- validator: (value: any) => boolean;
7792
- };
7793
- loading: BooleanConstructor;
7794
- variant: {
7795
- type: PropType<"outlined" | "filled" | "flat">;
7796
- validator: (value: any) => boolean;
7797
- };
7798
- startAdornment: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
7799
- endAdornment: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
7800
- tabindex: {
7801
- type: (StringConstructor | NumberConstructor)[];
7802
- default: number;
7803
- };
7804
- nodeControl: PropType<_fastkit_vue_form_control.FormNodeControl<any, any>>;
7805
- label: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
7806
- hint: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
7807
- hinttip: PropType<_fastkit_vue_form_control.FormControlHinttip>;
7808
- hinttipDelay: PropType<_fastkit_vue_form_control.FormControlHinttipDelay>;
7809
- infoAppends: PropType<_fastkit_vue_utils.VNodeChildOrSlot>;
7810
- validating: BooleanConstructor;
7811
- pending: BooleanConstructor;
7812
- focused: BooleanConstructor;
7813
- dirty: BooleanConstructor;
7814
- pristine: BooleanConstructor;
7815
- errors: {
7816
- type: PropType<_fastkit_vue_form_control.FormNodeError[]>;
7817
- default: () => _fastkit_vue_form_control.FormNodeError[];
7818
- };
7819
- disabled: BooleanConstructor;
7820
- readonly: BooleanConstructor;
7821
- touched: BooleanConstructor;
7822
- untouched: BooleanConstructor;
7823
- required: BooleanConstructor;
7824
- invalid: BooleanConstructor;
7825
- valid: BooleanConstructor;
7826
- hiddenInfo: BooleanConstructor;
7827
- requiredChip: PropType<_fastkit_vue_form_control.RequiredChipSource>;
7828
- minlength: (StringConstructor | NumberConstructor)[];
7829
- maxlength: (StringConstructor | NumberConstructor)[];
7830
- pattern: (StringConstructor | RegExpConstructor)[];
7831
- placeholder: StringConstructor;
7832
- autocapitalize: PropType<_fastkit_vue_form_control.FormAutoCapitalize>;
7833
- finishings: PropType<_fastkit_vue_form_control.RawTextableFinishingProp>;
7834
- counter: PropType<string | number | boolean>;
7835
- counterValue: PropType<(value: string) => number>;
7836
- limit: BooleanConstructor;
7837
- autocomplete: PropType<boolean | "name" | "off" | "on" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo">;
7838
- name: StringConstructor;
7839
- modelValue: vue.Prop<string, string>;
7840
- autofocus: BooleanConstructor;
7841
- spellcheck: BooleanConstructor;
7842
- viewonly: BooleanConstructor;
7843
- clearable: BooleanConstructor;
7844
- validateTiming: {
7845
- type: PropType<_fastkit_vue_form_control.ValidateTiming>;
7846
- default: _fastkit_vue_form_control.ValidateTiming;
7847
- };
7848
- rules: {
7849
- type: PropType<_fastkit_vue_form_control.RecursiveValidatableRule>;
7850
- default: () => never[];
7851
- };
7852
- validationDeps: PropType<(nodeControl: _fastkit_vue_form_control.FormNodeControl<any, any>) => any>;
7853
- error: BooleanConstructor;
7854
- errorMessages: PropType<string | string[]>;
7855
- }>> & {
7856
- onFocus?: ((ev: FocusEvent) => any) | undefined;
7857
- onBlur?: ((ev: FocusEvent) => any) | undefined;
7858
- onChange?: ((value: string) => any) | undefined;
7859
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
7860
- "onUpdate:errors"?: ((errors: _fastkit_vue_form_control.FormNodeError[]) => any) | undefined;
7861
- }, {
7862
- required: boolean;
7863
- loading: boolean;
7864
- tabindex: string | number;
7865
- autofocus: boolean;
7866
- disabled: boolean;
7867
- readonly: boolean;
7868
- spellcheck: boolean;
7869
- viewonly: boolean;
7870
- clearable: boolean;
7871
- validateTiming: _fastkit_vue_form_control.ValidateTiming;
7872
- rules: _fastkit_vue_form_control.RecursiveValidatableRule;
7873
- error: boolean;
7874
- validating: boolean;
7875
- pending: boolean;
7876
- focused: boolean;
7877
- dirty: boolean;
7878
- pristine: boolean;
7879
- errors: _fastkit_vue_form_control.FormNodeError[];
7880
- touched: boolean;
7881
- untouched: boolean;
7882
- invalid: boolean;
7883
- valid: boolean;
7884
- hiddenInfo: boolean;
7885
- limit: boolean;
7886
- extensions: RawWysiwygExtension[];
7887
- tools: RawWysiwygEditorTool[];
7888
- floatingToolbar: boolean;
7889
- disabledMinHeight: boolean;
7890
- disabledMaxHeight: boolean;
7891
- }>;
7892
-
7893
- type WysiwygLinterFixFn = (view: EditorView, issue: WysiwygLinterResult) => any;
7894
- type WysiwygLinterFixMessage = string | (() => VNodeChild);
7895
- interface WysiwygLinterFixer {
7896
- message: WysiwygLinterFixMessage;
7897
- handler: WysiwygLinterFixFn;
7898
- }
7899
- type WysiwygLinterResultLevel = 'warning' | 'error';
7900
- interface WysiwygLinterResult {
7901
- id: string;
7902
- icon: boolean;
7903
- level: WysiwygLinterResultLevel;
7904
- message: WysiwygLinterFixMessage;
7905
- from: number;
7906
- to: number;
7907
- fix: WysiwygLinterFixer[];
7908
- }
7909
- interface RawLinterResult extends Omit<WysiwygLinterResult, 'level' | 'fix' | 'id' | 'icon'> {
7910
- level?: WysiwygLinterResultLevel;
7911
- icon?: boolean;
7912
- fix?: WysiwygLinterFixer | WysiwygLinterFixer[];
7913
- }
7914
- declare class WysiwygLinterPlugin {
7915
- protected doc: Node$1;
7916
- private results;
7917
- constructor(doc: Node$1);
7918
- record(result: RawLinterResult): void;
7919
- scan(): this;
7920
- getResults(): WysiwygLinterResult[];
7921
- }
7922
-
7923
- interface WysiwygLinterOptions {
7924
- plugins: Array<typeof WysiwygLinterPlugin>;
7925
- }
7926
- interface WysiwygLinterStorage {
7927
- issues: WysiwygLinterResult[];
7928
- }
7929
- declare const WysiwygLinter: CreatedWysiwygExtension<WysiwygLinterOptions, WysiwygLinterStorage>;
7930
-
7931
- declare function WysiwygLinterBadWords(words: string[]): typeof WysiwygLinterPlugin;
7932
-
7933
- declare class WysiwygLinterHeadingLevel extends WysiwygLinterPlugin {
7934
- fixHeader(level: number): ({ state, dispatch }: EditorView, issue: WysiwygLinterResult) => void;
7935
- scan(): this;
7936
- }
7937
-
7938
- declare class WysiwygLinterPunctuation extends WysiwygLinterPlugin {
7939
- regex: RegExp;
7940
- fix(replacement: any): ({ state, dispatch }: EditorView, issue: WysiwygLinterResult) => void;
7941
- scan(): this;
7942
- }
7943
-
7944
- type WysiwygColorOptions = {
7945
- types: string[];
7946
- };
7947
- declare module '@tiptap/core' {
7948
- interface Commands<ReturnType> {
7949
- color: {
7950
- /**
7951
- * Set the text color
7952
- */
7953
- setColor: (color: string) => ReturnType;
7954
- /**
7955
- * Unset the text color
7956
- */
7957
- unsetColor: () => ReturnType;
7958
- };
7959
- }
7960
- }
7961
- declare const WysiwygColorExtension: Extension$1<WysiwygColorOptions, any>;
7962
-
7963
- declare const WysiwygBulletListTool: WysiwygEditorToolFactory<BulletListOptions>;
7964
-
7965
- declare const WysiwygFormatBoldTool: WysiwygEditorToolFactory<BoldOptions>;
7966
-
7967
- declare const WysiwygFormatItalicTool: WysiwygEditorToolFactory<ItalicOptions>;
7968
-
7969
- declare const WysiwygFormatUnderlineTool: WysiwygEditorToolFactory<UnderlineOptions>;
7970
-
7971
- declare const WysiwygHistoryTool: WysiwygEditorToolFactory<HistoryOptions>;
7972
-
7973
- declare const WysiwygLinkTool: WysiwygEditorToolFactory<LinkOptions>;
7974
-
7975
- declare const WysiwygOrderedListTool: WysiwygEditorToolFactory<OrderedListOptions>;
7976
-
7977
- interface WysiwygColorItem {
7978
- key?: string | number;
7979
- name?: VNodeChild | ((vui: VuiService) => VNodeChild);
7980
- color: string | null;
7981
- }
7982
- interface CreateWysiwygColorToolOptions {
7983
- items: WysiwygColorItem[];
7984
- withLabel?: boolean;
7985
- }
7986
- declare function createWysiwygColorTool(opts: CreateWysiwygColorToolOptions): WysiwygEditorToolFactory;
7987
-
7988
7676
  interface VFormSlots {
7989
7677
  default: VueForm;
7990
7678
  }
@@ -8546,7 +8234,6 @@ declare const VDataTable: vue.DefineComponent<{
8546
8234
  }, {
8547
8235
  modelValue: string[];
8548
8236
  items: DataTableItem[];
8549
- selectable: boolean;
8550
8237
  itemKey: string;
8551
8238
  pageQuery: string;
8552
8239
  sortQuery: string;
@@ -8560,6 +8247,7 @@ declare const VDataTable: vue.DefineComponent<{
8560
8247
  contorolThreshold: number;
8561
8248
  searchQuery: string | string[];
8562
8249
  total: number;
8250
+ selectable: boolean;
8563
8251
  fixedHeader: boolean;
8564
8252
  }>;
8565
8253
 
@@ -9069,4 +8757,4 @@ declare class VuiPlugin {
9069
8757
  }
9070
8758
  declare function installVuiPlugin(app: App, opts: VuiPluginOptions): App<any>;
9071
8759
 
9072
- export { ARROW_KEY_TYPES, AVATAR_SIZES, AvatarSize, BUTTON_ALIGNS, BreadcrumbsItem, BusyImageLoadState, BusyImageRect, BusyImageRects, BusyImageSizeValue, CHIP_SIZES, CHOICE_KEY_TYPES, CONTROL_FIELD_VARIANTS, CONTROL_LOADING_SPINNER_SIZES, CONTROL_SIZES, ChipSize, ContentSwitcherSeeTopOptions, ControlFieldProvider, ControlFieldProviderProps, ControlFieldVariant, ControlProps, ControlProvider, ControlSize, CreateWysiwygColorToolOptions, CreatedWysiwygExtension, DataTableCellSlotPayload, DataTableDefaults, DataTableHeader, DataTableHeaderAlign, DataTableItem, DataTableItemSlotPayload, DataTableRowSettings, DataTableRowSettingsFn, DefineFormSelectorComponentOptions, ElevationProps, GridContainerAlignContentValue, GridContainerDirectionValue, GridContainerJustifyContentValue, GridContainerSpacingValue, GridContainerWrapValue, GridItemAlignValue, GridItemJustifyValue, GridItemNumberSizeValue, GridItemSizeValue, ImgHTMLAttributesPropOptions, KEYBORD_EVENT_TYPES, NavigationInput, NavigationItemInput, PAGINATION_ALIGNS, RawBreadcrumbsItem, RawDataTableRowSettings, RawIconProp, RawVButtonIcon, RawVButtonSpacer, RawVChipIcon, RawVuiPluginOptions, RawVuiPromptOptions, RawVuiServiceIconSettings, RawVuiServiceOptions, RawVuiServiceUISettings, RawWysiwygEditorTool, RawWysiwygExtension, ResolvedWysiwygEditorSettings, TextFieldEmits, TextFieldInput, TextFieldPropsOptions, UseControlFieldProviderOptions, UseControlProviderOptions, UseElevationOptions, UseLinkResult, VApp, VAvatar, VBreadcrumbs, VBusyImage, VButton, VButtonAlign, VButtonGroup, VButtonIcon, VButtonProps, VButtonResolvedProps, VButtonSpacer, VCard, VCardActions, VCardContent, VCheckbox, VCheckboxGroup, VChip, VChipIcon, VContentSwitcher, VDataTable, VDrawerLayout, VForm, VFormControl, VFormSlots, VGridContainer, VGridItem, VHero, VIcon, VListTile, VNavigation, VNavigationItem, VNumberField, VOption, VOptionGroup, VPagination, VPaginationAlign, VPaginationGuard, VPaper, VRadio, VRadioGroup, VSelect, VSkeltonLoaderBone, VSwitch, VSwitchGroup, VTabs, VTabsGuard, VTabsItem, VTabsItemLabelSlot, VTabsItemLabelSlotCtx, VTabsRouterHandler, VTextField, VTextarea, VToolbar, VToolbarEdge, VToolbarEdgeEdge, VToolbarMenu, VToolbarMenuEdge, VToolbarTitle, VUI_CHECKBOX_GROUP_SYMBOL, VUI_CHECKBOX_SYMBOL, VUI_FORM_SYMBOL, VUI_OPTION_SYMBOL, VUI_RADIO_GROUP_SYMBOL, VUI_RADIO_SYMBOL, VUI_SELECT_SYMBOL, VUI_SWITCH_GROUP_SYMBOL, VUI_SWITCH_SYMBOL, VUI_TEXTAREA_SYMBOL, VUI_TEXT_FIELD_SYMBOL, VUI_WYSIWYG_EDITOR_SYMBOL, VWysiwygEditor, VuiColorProvider, VuiColorProviderInjectionKey, VuiControlFieldInjectionKey, VuiControlInjectionKey, VuiElevationValue, VuiFormPromptSettings, VuiInjectionKey, VuiPlugin, VuiPluginOptions, VuiPluginStackOptions, VuiPromptOptions, VuiService, VuiServiceIconSettings, VuiServiceOptions, VuiServiceUISettings, VuiVNodeResolver, WysiwygBulletListTool, WysiwygColorExtension, WysiwygColorItem, WysiwygColorOptions, WysiwygEditorContext, WysiwygEditorEvent, WysiwygEditorEventsBucket, WysiwygEditorEventsOptions, WysiwygEditorInitializeContext, WysiwygEditorPrefixedEvent, WysiwygEditorTool, WysiwygEditorToolFactory, WysiwygExtensionFactory, WysiwygExtensionSource, WysiwygFormatBoldTool, WysiwygFormatItalicTool, WysiwygFormatUnderlineTool, WysiwygHistoryTool, WysiwygLinkTool, WysiwygLinter, WysiwygLinterBadWords, WysiwygLinterHeadingLevel, WysiwygLinterOptions, WysiwygLinterPlugin, WysiwygLinterPunctuation, WysiwygOrderedListTool, configureDataTableDefaults, createAvatarProps, createCardProps, createChipProps, createControlFieldProviderProps, createControlProps, createElevationProps, createListTileProps, createNavigationItemProps, createNavigationProps, createPaperBaseProps, createPaperProps, createRequiredChipRenderer, createVFormProps, createWysiwygColorTool, createWysiwygExtension, defineFormSelectorComponent, iconProps, installVuiPlugin, listTileEmits, mergeVuiPluginOptions, mergeVuiServiceIconSettings, mergeVuiServiceOptions, mergeVuiServiceUISettings, paginationProps, rawIconProp, renderNavigationItemInput, resolveNavigationItemInput, resolveRawIconProp, resolveRawWysiwygEditorTools, resolveRawWysiwygExtensions, splitAttrs, useControl, useControlField, useElevation, useVui, useVuiColorProvider, vueButtonProps };
8760
+ export { ARROW_KEY_TYPES, AVATAR_SIZES, AdornmentPosition, AvatarSize, BUTTON_ALIGNS, BreadcrumbsItem, BusyImageLoadState, BusyImageRect, BusyImageRects, BusyImageSizeValue, CHIP_SIZES, CHOICE_KEY_TYPES, CONTROL_FIELD_VARIANTS, CONTROL_LOADING_SPINNER_SIZES, CONTROL_SIZES, ChipSize, ContentSwitcherSeeTopOptions, ControlFieldProvider, ControlFieldProviderProps, ControlFieldVariant, ControlProps, ControlProvider, ControlSize, DataTableCellSlotPayload, DataTableDefaults, DataTableHeader, DataTableHeaderAlign, DataTableItem, DataTableItemSlotPayload, DataTableRowSettings, DataTableRowSettingsFn, DefineFormSelectorComponentOptions, ElevationProps, GridContainerAlignContentValue, GridContainerDirectionValue, GridContainerJustifyContentValue, GridContainerSpacingValue, GridContainerWrapValue, GridItemAlignValue, GridItemJustifyValue, GridItemNumberSizeValue, GridItemSizeValue, ImgHTMLAttributesPropOptions, InputBoxSlots, KEYBORD_EVENT_TYPES, NavigationInput, NavigationItemInput, PAGINATION_ALIGNS, RawBreadcrumbsItem, RawDataTableRowSettings, RawIconProp, RawVButtonIcon, RawVButtonSpacer, RawVChipIcon, RawVuiPluginOptions, RawVuiPromptOptions, RawVuiServiceIconSettings, RawVuiServiceOptions, RawVuiServiceUISettings, TextFieldEmits, TextFieldInput, TextFieldPropsOptions, UseControlFieldProviderOptions, UseControlProviderOptions, UseElevationOptions, UseLinkResult, VApp, VAvatar, VBreadcrumbs, VBusyImage, VButton, VButtonAlign, VButtonGroup, VButtonIcon, VButtonProps, VButtonResolvedProps, VButtonSpacer, VCard, VCardActions, VCardContent, VCheckbox, VCheckboxGroup, VChip, VChipIcon, VContentSwitcher, VControlField, VDataTable, VDrawerLayout, VForm, VFormControl, VFormSlots, VGridContainer, VGridItem, VHero, VIcon, VListTile, VNavigation, VNavigationItem, VNumberField, VOption, VOptionGroup, VPagination, VPaginationAlign, VPaginationGuard, VPaper, VRadio, VRadioGroup, VSelect, VSkeltonLoaderBone, VSwitch, VSwitchGroup, VTabs, VTabsGuard, VTabsItem, VTabsItemLabelSlot, VTabsItemLabelSlotCtx, VTabsRouterHandler, VTextCounter, VTextField, VTextarea, VToolbar, VToolbarEdge, VToolbarEdgeEdge, VToolbarMenu, VToolbarMenuEdge, VToolbarTitle, VUI_CHECKBOX_GROUP_SYMBOL, VUI_CHECKBOX_SYMBOL, VUI_FORM_SYMBOL, VUI_OPTION_SYMBOL, VUI_RADIO_GROUP_SYMBOL, VUI_RADIO_SYMBOL, VUI_SELECT_SYMBOL, VUI_SWITCH_GROUP_SYMBOL, VUI_SWITCH_SYMBOL, VUI_TEXTAREA_SYMBOL, VUI_TEXT_FIELD_SYMBOL, VuiColorProvider, VuiColorProviderInjectionKey, VuiControlFieldInjectionKey, VuiControlInjectionKey, VuiElevationValue, VuiFormPromptSettings, VuiInjectionKey, VuiPlugin, VuiPluginOptions, VuiPluginStackOptions, VuiPromptOptions, VuiService, VuiServiceIconSettings, VuiServiceOptions, VuiServiceUISettings, VuiVNodeResolver, configureDataTableDefaults, createAvatarProps, createCardProps, createChipProps, createControlFieldProps, createControlFieldProviderProps, createControlProps, createElevationProps, createListTileProps, createNavigationItemProps, createNavigationProps, createPaperBaseProps, createPaperProps, createRequiredChipRenderer, createVFormProps, defineFormSelectorComponent, iconProps, installVuiPlugin, listTileEmits, mergeVuiPluginOptions, mergeVuiServiceIconSettings, mergeVuiServiceOptions, mergeVuiServiceUISettings, paginationProps, rawIconProp, renderNavigationItemInput, resolveNavigationItemInput, resolveRawIconProp, splitAttrs, useControl, useControlField, useElevation, useVui, useVuiColorProvider, vueButtonProps };