@italia/popover 1.0.0-alpha.7 → 1.0.0-alpha.9

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.
@@ -257,7 +257,7 @@
257
257
  {
258
258
  "kind": "variable",
259
259
  "name": "meta",
260
- "default": "{ title: 'Componenti/Popover', component: 'it-popover', tags: ['new', 'web-component', 'a11y-ok'], args: { placement: 'right', }, argTypes: { placement: { control: 'select', options: [ 'top', 'right', 'bottom', 'left', 'top-start', 'top-end', 'right-start', 'right-end', 'bottom-start', 'bottom-end', 'left-start', 'left-end', ], table: { defaultValue: { summary: 'bottom-start' }, }, }, }, parameters: { layout: 'padded', }, } satisfies Meta<PopoverProps>"
260
+ "default": "{ title: 'Componenti/Popover', component: 'it-popover', tags: ['web-component', 'a11y-ok'], args: { placement: 'right', }, argTypes: { placement: { control: 'select', options: [ 'top', 'right', 'bottom', 'left', 'top-start', 'top-end', 'right-start', 'right-end', 'bottom-start', 'bottom-end', 'left-start', 'left-end', ], description: 'Posizione del Popover rispetto al suo elemento trigger', table: { defaultValue: { summary: 'bottom-start' }, }, }, }, parameters: { layout: 'padded', }, } satisfies Meta<PopoverProps>"
261
261
  },
262
262
  {
263
263
  "kind": "variable",
@@ -471,6 +471,14 @@ class FormControlController {
471
471
  case 'it-toggle-group':
472
472
  // non settare valori in formData, perchè ogni singola checkbox setta il suo valore
473
473
  break;
474
+ case 'it-upload':
475
+ // value is File[] — append each File object directly (not as string)
476
+ if (Array.isArray(value)) {
477
+ value.forEach((file) => {
478
+ event.formData.append(name, file);
479
+ });
480
+ }
481
+ break;
474
482
  default:
475
483
  if (Array.isArray(value)) {
476
484
  value.forEach((val) => {
@@ -1080,7 +1088,7 @@ if (typeof window !== 'undefined') {
1080
1088
  window._itAnalytics = window._itAnalytics || {};
1081
1089
  window._itAnalytics = {
1082
1090
  ...window._itAnalytics,
1083
- version: '1.0.0-alpha.7',
1091
+ version: '1.0.0-alpha.9',
1084
1092
  };
1085
1093
  }
1086
1094