@nexxtmove/ui 1.50.0 → 1.51.0

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.
@@ -0,0 +1,103 @@
1
+ /** The horizontal part of an anchor point. */
2
+ export type EditorAnchorX = 'left' | 'center' | 'right';
3
+ /** The vertical part of an anchor point. */
4
+ export type EditorAnchorY = 'top' | 'center' | 'bottom';
5
+ /** The point something is anchored to: a corner, an edge or the middle. */
6
+ export interface EditorAnchorValue {
7
+ x: EditorAnchorX;
8
+ y: EditorAnchorY;
9
+ }
10
+ /**
11
+ * The nine cells, in reading order: row by row from the top, left to right.
12
+ * The labels are not in here; they arrive through `messages`.
13
+ */
14
+ export declare const EDITOR_ANCHOR_OPTIONS: readonly [{
15
+ readonly x: "left";
16
+ readonly y: "top";
17
+ }, {
18
+ readonly x: "center";
19
+ readonly y: "top";
20
+ }, {
21
+ readonly x: "right";
22
+ readonly y: "top";
23
+ }, {
24
+ readonly x: "left";
25
+ readonly y: "center";
26
+ }, {
27
+ readonly x: "center";
28
+ readonly y: "center";
29
+ }, {
30
+ readonly x: "right";
31
+ readonly y: "center";
32
+ }, {
33
+ readonly x: "left";
34
+ readonly y: "bottom";
35
+ }, {
36
+ readonly x: "center";
37
+ readonly y: "bottom";
38
+ }, {
39
+ readonly x: "right";
40
+ readonly y: "bottom";
41
+ }];
42
+ /** Overridable copy for the nine cells. Every key is optional. */
43
+ export interface EditorAnchorMessages {
44
+ /** Name of the top left cell. Defaults to `'Linksboven'`. */
45
+ topLeft?: string;
46
+ /** Name of the top cell. Defaults to `'Boven'`. */
47
+ top?: string;
48
+ /** Name of the top right cell. Defaults to `'Rechtsboven'`. */
49
+ topRight?: string;
50
+ /** Name of the left cell. Defaults to `'Links'`. */
51
+ left?: string;
52
+ /** Name of the middle cell. Defaults to `'Midden'`. */
53
+ center?: string;
54
+ /** Name of the right cell. Defaults to `'Rechts'`. */
55
+ right?: string;
56
+ /** Name of the bottom left cell. Defaults to `'Linksonder'`. */
57
+ bottomLeft?: string;
58
+ /** Name of the bottom cell. Defaults to `'Onder'`. */
59
+ bottom?: string;
60
+ /** Name of the bottom right cell. Defaults to `'Rechtsonder'`. */
61
+ bottomRight?: string;
62
+ }
63
+ export interface NexxtEditorAnchorProps {
64
+ /**
65
+ * Accessible name of the radiogroup. Defaults to the Dutch
66
+ * `'Plek van de afbeelding'`; the library has no i18n layer, so a consumer
67
+ * in another language passes its own copy in. Only shown when `showLabel`
68
+ * is set.
69
+ */
70
+ label?: string;
71
+ /**
72
+ * Show `label` as a header above the grid. Off by default: the editor puts
73
+ * the name of the setting next to the grid itself.
74
+ */
75
+ showLabel?: boolean;
76
+ /**
77
+ * Names of the nine cells. Defaults are Dutch and are merged per key, so
78
+ * overriding one keeps the defaults of the others. Copy is never translated
79
+ * inside the component.
80
+ */
81
+ messages?: EditorAnchorMessages;
82
+ /** Block every interaction: no cell can be focused or chosen. */
83
+ disabled?: boolean;
84
+ }
85
+ declare const _default: typeof __VLS_export;
86
+ export default _default;
87
+ declare const __VLS_export: import('vue').DefineComponent<NexxtEditorAnchorProps & {
88
+ /**
89
+ * The chosen cell. `null` while none is, e.g. for a stored position that no
90
+ * cell stands for.
91
+ */
92
+ modelValue: EditorAnchorValue | null;
93
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
94
+ "update:modelValue": (value: EditorAnchorValue | null) => any;
95
+ }, string, import('vue').PublicProps, Readonly<NexxtEditorAnchorProps & {
96
+ /**
97
+ * The chosen cell. `null` while none is, e.g. for a stored position that no
98
+ * cell stands for.
99
+ */
100
+ modelValue: EditorAnchorValue | null;
101
+ }> & Readonly<{
102
+ "onUpdate:modelValue"?: ((value: EditorAnchorValue | null) => any) | undefined;
103
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -38,6 +38,18 @@ export interface NexxtEditorBackgroundSizeProps {
38
38
  * others. Copy is never translated inside the component.
39
39
  */
40
40
  messages?: EditorBackgroundSizeMessages;
41
+ /**
42
+ * The options to offer, as a subset of the three. They are always shown in
43
+ * the order of `EDITOR_BACKGROUND_SIZE_OPTIONS`, whatever order this list is
44
+ * in; a duplicate or unknown value is ignored. Defaults to all three.
45
+ */
46
+ options?: EditorBackgroundSizeValue[];
47
+ /**
48
+ * Render only the options, without the settings block and its header, for a
49
+ * consumer that puts the control in a block of its own. `label` then names
50
+ * the options toolbar only and is not shown.
51
+ */
52
+ bare?: boolean;
41
53
  }
42
54
  declare const _default: typeof __VLS_export;
43
55
  export default _default;
@@ -29,12 +29,12 @@ declare const __VLS_export: import('vue').DefineComponent<IconPickerGridProps, I
29
29
  focus: () => any;
30
30
  blur: () => any;
31
31
  keydown: (event: KeyboardEvent) => any;
32
- hover: (position: GridPosition) => any;
33
32
  choose: (icon: NexxtIconPickerIcon) => any;
33
+ hover: (position: GridPosition) => any;
34
34
  }, string, import('vue').PublicProps, Readonly<IconPickerGridProps> & Readonly<{
35
35
  onFocus?: (() => any) | undefined;
36
36
  onBlur?: (() => any) | undefined;
37
37
  onKeydown?: ((event: KeyboardEvent) => any) | undefined;
38
- onHover?: ((position: GridPosition) => any) | undefined;
39
38
  onChoose?: ((icon: NexxtIconPickerIcon) => any) | undefined;
39
+ onHover?: ((position: GridPosition) => any) | undefined;
40
40
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
package/dist/index.d.ts CHANGED
@@ -13,6 +13,8 @@ export type { NexxtTreeMove, NexxtTreeNode, NexxtTreeProps, NexxtTreeSlots, } fr
13
13
  export type { NexxtPlaceholderGroup, NexxtPlaceholderInputMessages, NexxtPlaceholderInputProps, } from './components/molecules/PlaceholderInput/PlaceholderInput.vue';
14
14
  export { EDITOR_ALIGN_ITEMS_OPTIONS } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
15
15
  export type { EditorAlignItemsMessages, EditorAlignItemsValue, } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
16
+ export { EDITOR_ANCHOR_OPTIONS } from './components/editor/molecules/EditorAnchor/EditorAnchor.vue';
17
+ export type { EditorAnchorMessages, EditorAnchorValue, EditorAnchorX, EditorAnchorY, } from './components/editor/molecules/EditorAnchor/EditorAnchor.vue';
16
18
  export { EDITOR_BACKGROUND_SIZE_OPTIONS } from './components/editor/molecules/EditorBackgroundSize/EditorBackgroundSize.vue';
17
19
  export type { EditorBackgroundSizeMessages, EditorBackgroundSizeValue, } from './components/editor/molecules/EditorBackgroundSize/EditorBackgroundSize.vue';
18
20
  export { EDITOR_FLEX_DIRECTION_OPTIONS } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
@@ -76,6 +78,7 @@ export { default as NexxtDatePicker } from './components/organisms/DatePicker/Da
76
78
  export { default as NexxtDoughnutChart } from './components/molecules/DoughnutChart/DoughnutChart.vue';
77
79
  export { default as NexxtDropdownButton } from './components/organisms/DropdownButton/DropdownButton.vue';
78
80
  export { default as NexxtEditorAlignItems } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
81
+ export { default as NexxtEditorAnchor } from './components/editor/molecules/EditorAnchor/EditorAnchor.vue';
79
82
  export { default as NexxtEditorBackgroundSize } from './components/editor/molecules/EditorBackgroundSize/EditorBackgroundSize.vue';
80
83
  export { default as NexxtEditorBorder } from './components/editor/molecules/EditorBorder/EditorBorder.vue';
81
84
  export { default as NexxtEditorColor } from './components/editor/molecules/EditorColor/EditorColor.vue';