@nexxtmove/ui 1.43.0 → 1.45.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.
@@ -58,7 +58,12 @@ export interface NexxtEditorDimensionFieldProps {
58
58
  declare const _default: typeof __VLS_export;
59
59
  export default _default;
60
60
  declare const __VLS_export: import('vue').DefineComponent<NexxtEditorDimensionFieldProps & {
61
- /** The dimension, or `null` for none. */
61
+ /**
62
+ * The dimension, or `null` for none. A `null` from outside -- another element
63
+ * selected, an undo -- resets the unit to the first of `units`; a field the
64
+ * user emptied keeps the unit picked in it. A value from outside brings its
65
+ * own unit.
66
+ */
62
67
  modelValue?: EditorDimensionValue | null;
63
68
  }, {
64
69
  /**
@@ -71,7 +76,12 @@ declare const __VLS_export: import('vue').DefineComponent<NexxtEditorDimensionFi
71
76
  "update:modelValue": (value: EditorDimensionValue | null) => any;
72
77
  commit: () => any;
73
78
  }, string, import('vue').PublicProps, Readonly<NexxtEditorDimensionFieldProps & {
74
- /** The dimension, or `null` for none. */
79
+ /**
80
+ * The dimension, or `null` for none. A `null` from outside -- another element
81
+ * selected, an undo -- resets the unit to the first of `units`; a field the
82
+ * user emptied keeps the unit picked in it. A value from outside brings its
83
+ * own unit.
84
+ */
75
85
  modelValue?: EditorDimensionValue | null;
76
86
  }> & Readonly<{
77
87
  "onUpdate:modelValue"?: ((value: EditorDimensionValue | null) => any) | undefined;
@@ -54,6 +54,12 @@ export interface EditorMaxWidthMessages {
54
54
  */
55
55
  unit?: string;
56
56
  }
57
+ /**
58
+ * Sets a width on Tailwind's `max-w-*` steps, stored as the class.
59
+ *
60
+ * @deprecated Use `NexxtEditorSizeLimit`: a free maximum in px or % that can
61
+ * be none.
62
+ */
57
63
  export interface NexxtEditorMaxWidthProps {
58
64
  /**
59
65
  * Header text of the settings block. Defaults to the Dutch
@@ -16,7 +16,9 @@ export interface EditorSizeValue {
16
16
  mode: EditorSizeMode;
17
17
  /**
18
18
  * The fixed dimension. Kept when another mode is picked, so switching back
19
- * to `'fixed'` restores it; it only applies while `mode` is `'fixed'`.
19
+ * to `'fixed'` restores it; it only applies while `mode` is `'fixed'`. The
20
+ * app always fills it with the measured size of the element, so picking
21
+ * `'fixed'` starts from that size.
20
22
  */
21
23
  fixed?: EditorDimensionValue;
22
24
  }
@@ -76,9 +78,10 @@ declare const _default: typeof __VLS_export;
76
78
  export default _default;
77
79
  declare const __VLS_export: import('vue').DefineComponent<NexxtEditorSizeProps & {
78
80
  /**
79
- * The size. Picking `'fixed'` without a `fixed` dimension leaves the field
80
- * empty until a value is entered; seed `fixed` -- with the measured size, say
81
- * -- to start from there instead.
81
+ * The size. Fill `fixed` with the measured size of the element, as the app
82
+ * always does. Without it, picking `'fixed'` writes `{ mode: 'fixed' }` and
83
+ * commits straight away, leaving a fixed mode without a size until a value is
84
+ * typed; with the measured size, that state does not come up.
82
85
  */
83
86
  modelValue: EditorSizeValue;
84
87
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -86,9 +89,10 @@ declare const __VLS_export: import('vue').DefineComponent<NexxtEditorSizeProps &
86
89
  commit: () => any;
87
90
  }, string, import('vue').PublicProps, Readonly<NexxtEditorSizeProps & {
88
91
  /**
89
- * The size. Picking `'fixed'` without a `fixed` dimension leaves the field
90
- * empty until a value is entered; seed `fixed` -- with the measured size, say
91
- * -- to start from there instead.
92
+ * The size. Fill `fixed` with the measured size of the element, as the app
93
+ * always does. Without it, picking `'fixed'` writes `{ mode: 'fixed' }` and
94
+ * commits straight away, leaving a fixed mode without a size until a value is
95
+ * typed; with the measured size, that state does not come up.
92
96
  */
93
97
  modelValue: EditorSizeValue;
94
98
  }> & Readonly<{
@@ -1,6 +1,11 @@
1
1
  import { EditorDimensionValue, EditorDimensionFieldMessages, EditorDimensionUnit } from '../../atoms/EditorDimensionField/EditorDimensionField.vue';
2
2
  /** Overridable copy of the field. Every key is optional. */
3
3
  export type EditorSizeLimitMessages = EditorDimensionFieldMessages;
4
+ /**
5
+ * A free minimum or maximum of an element's size, in px or %, that can be
6
+ * none. Replaces the deprecated `NexxtEditorMaxWidth`, which offers only
7
+ * Tailwind's `max-w-*` steps.
8
+ */
4
9
  export interface NexxtEditorSizeLimitProps {
5
10
  /** Visible label above the field, and its accessible name, as in `'Maximale breedte'`. */
6
11
  label: string;