@club-employes/utopia 4.358.0 → 4.360.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,8 @@
1
+ import { CustomCriterionValueType, CustomCriterionVProps } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<CustomCriterionVProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
+ "update:type": (value: CustomCriterionValueType | undefined) => any;
5
+ }, string, PublicProps, Readonly<CustomCriterionVProps> & Readonly<{
6
+ "onUpdate:type"?: ((value: CustomCriterionValueType | undefined) => any) | undefined;
7
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { CustomCriterionValueType } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface CustomCriterionValuePreviewProps {
4
+ type?: CustomCriterionValueType;
5
+ }
6
+ declare const _default: DefineComponent<CustomCriterionValuePreviewProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<CustomCriterionValuePreviewProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export { default as CustomCriterionV } from './CustomCriterionV';
2
+ export { default as CustomCriterionValuePreview } from './CustomCriterionValuePreview';
3
+ export type { CustomCriterionVProps, CustomCriterionValueType } from './types';
@@ -0,0 +1,4 @@
1
+ export type CustomCriterionValueType = 'text' | 'numberRange' | 'dateRange' | 'boolean';
2
+ export interface CustomCriterionVProps {
3
+ type?: CustomCriterionValueType;
4
+ }
@@ -52,6 +52,7 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, Comp
52
52
  resizableColumns: boolean;
53
53
  columnResizeMode: "fit" | "expand";
54
54
  reorderableColumns: boolean;
55
+ rowReorderable: boolean;
55
56
  doSelection: boolean;
56
57
  compareSelectionBy: "equals" | "deepEquals";
57
58
  metaKeySelection: boolean;
@@ -158,6 +158,15 @@ export interface ColumnType {
158
158
  * Si `false`, désactive la réorganisation même si `reorderableColumns` est `true` sur le tableau.
159
159
  */
160
160
  reorderableColumn?: boolean;
161
+ /**
162
+ * Affiche le handle de glisser-déposer pour la réorganisation des lignes sur cette colonne.
163
+ * Utile uniquement lorsque `rowReorderable` est `true` sur le tableau et qu'on veut intégrer
164
+ * le handle dans une colonne existante plutôt que dans la colonne auto-générée.
165
+ * @default false
166
+ */
167
+ rowReorder?: boolean;
168
+ /** Icône personnalisée pour le handle de réorganisation des lignes. */
169
+ rowReorderIcon?: string;
161
170
  filterMatchModeOptions?: ColumnFilterMatchModeOptions[];
162
171
  /**
163
172
  * Délai de debounce (ms) pour les filtres de type input (TEXT, EMAIL, NUMBER).
@@ -212,8 +221,6 @@ export interface ColumnType {
212
221
  maxConstraints?: number;
213
222
  selectionMode?: 'single' | 'multiple';
214
223
  expander?: boolean;
215
- rowReorder?: boolean;
216
- rowReorderIcon?: string;
217
224
  colspan?: number;
218
225
  rowspan?: number;
219
226
  exportable?: boolean;
@@ -351,6 +358,13 @@ export interface TableProps<T = Record<string, any>> {
351
358
  * @default true
352
359
  */
353
360
  reorderableColumns?: boolean;
361
+ /**
362
+ * Autorise la réorganisation des lignes par glisser-déposer.
363
+ * Ajoute automatiquement une colonne avec le handle de déplacement en tête du tableau.
364
+ * Émet l'événement `row-reorder` avec `{ dragIndex, dropIndex, value }`.
365
+ * @default false
366
+ */
367
+ rowReorderable?: boolean;
354
368
  /**
355
369
  * si c'est le mode de vérification des données CSV ou non.
356
370
  * @default false
@@ -36,3 +36,5 @@ export { DeliveryMethodSelector } from './DeliveryMethodSelector';
36
36
  export type { DeliveryMethodSelectorProps, DeliveryMethodProductRecap, DeliveryMethod } from './DeliveryMethodSelector';
37
37
  export { CustomCriteriaSection } from './CustomCriteriaSection';
38
38
  export type { CustomCriteriaSectionProps } from './CustomCriteriaSection';
39
+ export { CustomCriterionV, CustomCriterionValuePreview } from './CustomCriterionV';
40
+ export type { CustomCriterionVProps, CustomCriterionValueType } from './CustomCriterionV';
package/dist/index.d.ts CHANGED
@@ -100,6 +100,8 @@ export type { OrderRecapProps, OrderRecapMessage } from './components/organisms/
100
100
  export type { SummaryMetricCardProps } from './components/organisms/SummaryMetricCard/types';
101
101
  export type { DeliveryMethodSelectorProps, DeliveryMethodProductRecap, DeliveryMethod } from './components/organisms/DeliveryMethodSelector/types';
102
102
  export type { CustomCriteriaSectionProps, CustomCriterion } from './components/organisms/CustomCriteriaSection/types';
103
+ export type { CustomCriterionVProps, CustomCriterionValueType } from './components/organisms/CustomCriterionV/types';
104
+ export { CustomCriterionV, CustomCriterionValuePreview } from './components/organisms/CustomCriterionV';
103
105
  export { CustomCriteriaSection } from './components/organisms/CustomCriteriaSection';
104
106
  export type { AddressFormProps, AddressFormSchema, AddressFormSection } from './components/organisms/AddressForm/types';
105
107
  export type { CartPreviewProps, CartPreviewPrice, CartPreviewPriceLine } from './components/organisms/CartPreview/types';