@salla.sa/twilight-components 2.14.295 → 2.14.296

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 (158) hide show
  1. package/dist/cjs/{filepond-CEfkKwxm.js → filepond-E7NOvLwV.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-U5caDeXK.js → filepond-plugin-file-poster-D3bKYBq5.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-5eUt8fIA.js → filepond-plugin-file-validate-size-D4sJa2nT.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-BdNoSu6e.js → filepond-plugin-file-validate-type-DDz99ei0.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-DFm7eyxh.js → filepond-plugin-image-edit-yDHuyk0R.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-BfH19uNR.js → filepond-plugin-image-exif-orientation-hj89JJI_.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-BCQL6DBC.js → filepond-plugin-image-preview-UoTioUkG.js} +1 -1
  8. package/dist/cjs/{index-TCPzRuQa.js → index-BZQAN2JT.js} +1 -1
  9. package/dist/cjs/{index-CMFmTYR8.js → index-BfEIQrIk.js} +6 -2
  10. package/dist/cjs/interfaces-CX9-6aLf.js +24 -0
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/salla-accordion_62.cjs.entry.js +65 -116
  13. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-cart-item-offers.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-custom-fields.cjs.entry.js +135 -0
  20. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-reviews-page.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-reviews.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  46. package/dist/cjs/twilight.cjs.js +2 -2
  47. package/dist/collection/collection-manifest.json +1 -0
  48. package/dist/collection/components/salla-custom-fields/salla-custom-fields.css +3 -0
  49. package/dist/collection/components/salla-custom-fields/salla-custom-fields.js +313 -0
  50. package/dist/collection/components/salla-file-upload/salla-file-upload.js +36 -3
  51. package/dist/collection/components/salla-user-menu/salla-user-menu.js +25 -14
  52. package/dist/collection/components/salla-user-profile/salla-user-profile.js +15 -132
  53. package/dist/components/index.js +2 -2
  54. package/dist/components/interfaces.js +15 -0
  55. package/dist/components/salla-custom-fields.d.ts +11 -0
  56. package/dist/components/salla-custom-fields.js +174 -0
  57. package/dist/components/salla-file-upload2.js +13 -3
  58. package/dist/components/salla-user-menu.js +31 -14
  59. package/dist/components/salla-user-profile.js +19 -97
  60. package/dist/esm/{filepond-vl78959W.js → filepond-BEN4Pt87.js} +1 -1
  61. package/dist/esm/{filepond-plugin-file-poster-CqR_Dwed.js → filepond-plugin-file-poster-B7t9aVVy.js} +1 -1
  62. package/dist/esm/{filepond-plugin-file-validate-size-B6Dk56YE.js → filepond-plugin-file-validate-size-DFkfdHfo.js} +1 -1
  63. package/dist/esm/{filepond-plugin-file-validate-type-P-_BDRkR.js → filepond-plugin-file-validate-type-CU-RnplM.js} +1 -1
  64. package/dist/esm/{filepond-plugin-image-edit-DWNUa3R3.js → filepond-plugin-image-edit-Dz3oYXef.js} +1 -1
  65. package/dist/esm/{filepond-plugin-image-exif-orientation-dnXbnCGP.js → filepond-plugin-image-exif-orientation-DJrUnj97.js} +1 -1
  66. package/dist/esm/{filepond-plugin-image-preview-CGT6aBAl.js → filepond-plugin-image-preview-BCWlifYd.js} +1 -1
  67. package/dist/esm/{index-Ziat6EbF.js → index-bXg2F_NN.js} +6 -2
  68. package/dist/esm/{index-DvtO64lP.js → index-fxSENfiU.js} +1 -1
  69. package/dist/esm/interfaces-CBT_Nxny.js +22 -0
  70. package/dist/esm/loader.js +3 -3
  71. package/dist/esm/salla-accordion_62.entry.js +64 -115
  72. package/dist/esm/salla-advertisement.entry.js +1 -1
  73. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  74. package/dist/esm/salla-apps-icons.entry.js +1 -1
  75. package/dist/esm/salla-cart-item-offers.entry.js +1 -1
  76. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  77. package/dist/esm/salla-contacts.entry.js +1 -1
  78. package/dist/esm/salla-custom-fields.entry.js +133 -0
  79. package/dist/esm/salla-filters-widget.entry.js +1 -1
  80. package/dist/esm/salla-filters.entry.js +1 -1
  81. package/dist/esm/salla-installment.entry.js +1 -1
  82. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  83. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  84. package/dist/esm/salla-metadata.entry.js +1 -1
  85. package/dist/esm/salla-notification-item.entry.js +1 -1
  86. package/dist/esm/salla-notifications.entry.js +1 -1
  87. package/dist/esm/salla-offer.entry.js +1 -1
  88. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  89. package/dist/esm/salla-order-details-options.entry.js +1 -1
  90. package/dist/esm/salla-order-details.entry.js +1 -1
  91. package/dist/esm/salla-order-summary.entry.js +1 -1
  92. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  93. package/dist/esm/salla-orders.entry.js +1 -1
  94. package/dist/esm/salla-payments.entry.js +1 -1
  95. package/dist/esm/salla-price-range.entry.js +1 -1
  96. package/dist/esm/salla-review-card.entry.js +1 -1
  97. package/dist/esm/salla-reviews-page.entry.js +1 -1
  98. package/dist/esm/salla-reviews.entry.js +1 -1
  99. package/dist/esm/salla-social.entry.js +1 -1
  100. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  101. package/dist/esm/salla-tooltip.entry.js +1 -1
  102. package/dist/esm/salla-trust-badges.entry.js +1 -1
  103. package/dist/esm/salla-verify.entry.js +1 -1
  104. package/dist/esm/salla-wallet.entry.js +1 -1
  105. package/dist/esm/twilight.js +3 -3
  106. package/dist/twilight/{p-9c51b8d3.entry.js → p-0645c8e3.entry.js} +1 -1
  107. package/dist/twilight/{p-a328c3d1.entry.js → p-0b970445.entry.js} +1 -1
  108. package/dist/twilight/{p-2a2a02d6.entry.js → p-193bea42.entry.js} +1 -1
  109. package/dist/twilight/{p-Ez0e1PVX.js → p-1Xk7fjpB.js} +1 -1
  110. package/dist/twilight/{p-1287dd6d.entry.js → p-1b7cfbae.entry.js} +1 -1
  111. package/dist/twilight/{p-3d19d1d8.entry.js → p-22f479da.entry.js} +1 -1
  112. package/dist/twilight/{p-5f9bc177.entry.js → p-32512487.entry.js} +1 -1
  113. package/dist/twilight/{p-745e8f76.entry.js → p-4dd68813.entry.js} +1 -1
  114. package/dist/twilight/{p-ca431a2c.entry.js → p-4fb7f400.entry.js} +1 -1
  115. package/dist/twilight/{p-c9109a79.entry.js → p-51ef83f7.entry.js} +1 -1
  116. package/dist/twilight/{p-8cfd00b9.entry.js → p-56dde07a.entry.js} +1 -1
  117. package/dist/twilight/p-5dd1b37c.entry.js +4 -0
  118. package/dist/twilight/{p-f5a11fd5.entry.js → p-5f247331.entry.js} +1 -1
  119. package/dist/twilight/{p-ab6a475b.entry.js → p-67ed25a4.entry.js} +1 -1
  120. package/dist/twilight/{p-64d30453.entry.js → p-7012bda9.entry.js} +1 -1
  121. package/dist/twilight/{p-415cf3e3.entry.js → p-732c5190.entry.js} +1 -1
  122. package/dist/twilight/{p-f38b2e17.entry.js → p-76657684.entry.js} +1 -1
  123. package/dist/twilight/{p-a9da8a2e.entry.js → p-8220b125.entry.js} +1 -1
  124. package/dist/twilight/{p-66ab7e17.entry.js → p-8d3f2028.entry.js} +1 -1
  125. package/dist/twilight/{p-6822a113.entry.js → p-988ea6cb.entry.js} +1 -1
  126. package/dist/twilight/{p-b3fafad2.entry.js → p-9f42e27b.entry.js} +1 -1
  127. package/dist/twilight/{p-BBY0-pTD.js → p-BIRmkG1d.js} +1 -1
  128. package/dist/twilight/{p-7wg_fRFs.js → p-BW8LVXVp.js} +2 -2
  129. package/dist/twilight/p-CBT_Nxny.js +4 -0
  130. package/dist/twilight/{p-C0j6-TqH.js → p-CD5i_50p.js} +1 -1
  131. package/dist/twilight/{p-BXOeDpV2.js → p-CP2LDZCD.js} +1 -1
  132. package/dist/twilight/{p-BX_7gR2g.js → p-CWkLySV3.js} +1 -1
  133. package/dist/twilight/{p-ZreQEa1A.js → p-CoLlt5es.js} +1 -1
  134. package/dist/twilight/{p-cd7e4279.entry.js → p-a6ebba30.entry.js} +1 -1
  135. package/dist/twilight/{p-Ziat6EbF.js → p-bXg2F_NN.js} +2 -2
  136. package/dist/twilight/{p-d107dc1a.entry.js → p-c5afe02a.entry.js} +1 -1
  137. package/dist/twilight/{p-e79994cc.entry.js → p-c691fd39.entry.js} +1 -1
  138. package/dist/twilight/{p-917e7e9e.entry.js → p-c848e1d3.entry.js} +1 -1
  139. package/dist/twilight/{p-15d9e580.entry.js → p-c88d32f0.entry.js} +1 -1
  140. package/dist/twilight/p-d08cedb0.entry.js +11 -0
  141. package/dist/twilight/{p-9b480b59.entry.js → p-dcd9e688.entry.js} +1 -1
  142. package/dist/twilight/{p-a9c627f1.entry.js → p-dd84065f.entry.js} +1 -1
  143. package/dist/twilight/{p-93a27904.entry.js → p-e4418e6f.entry.js} +1 -1
  144. package/dist/twilight/{p-67038367.entry.js → p-ef3a4d3e.entry.js} +1 -1
  145. package/dist/twilight/{p-30edc8e4.entry.js → p-ef9ac6cb.entry.js} +1 -1
  146. package/dist/twilight/{p-4edf534b.entry.js → p-f4549e2e.entry.js} +1 -1
  147. package/dist/twilight/{p-bf70d878.entry.js → p-fa379f1e.entry.js} +1 -1
  148. package/dist/twilight/{p-2b8846ae.entry.js → p-fcd1344e.entry.js} +1 -1
  149. package/dist/twilight/{p-hVSNpsuQ.js → p-k3nBgoPC.js} +1 -1
  150. package/dist/twilight/twilight.esm.js +1 -1
  151. package/dist/types/components/salla-custom-fields/salla-custom-fields.d.ts +39 -0
  152. package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +4 -0
  153. package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +4 -1
  154. package/dist/types/components/salla-user-profile/interfaces.d.ts +1 -0
  155. package/dist/types/components/salla-user-profile/salla-user-profile.d.ts +1 -20
  156. package/dist/types/components.d.ts +74 -25
  157. package/package.json +5 -5
  158. package/dist/twilight/p-c6d04437.entry.js +0 -11
@@ -8,6 +8,7 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { Option } from "./components/salla-booking-field/interfaces";
9
9
  import { Color, Options } from "./components/salla-color-picker/interfaces";
10
10
  import { Comment, CommentType } from "./components/salla-comments/interfaces";
11
+ import { CustomField } from "./components/salla-user-profile/interfaces";
11
12
  import { DateLimit, DateOption, LocaleKey } from "./components/salla-datetime-picker/interfaces";
12
13
  import { FilePondFile } from "./components/salla-file-upload/interfaces";
13
14
  import { FilePondErrorDescription } from "filepond/types/index";
@@ -22,10 +23,10 @@ import { Donation, Option as Option1 } from "./components/salla-product-options/
22
23
  import { Review } from "./components/salla-review-card/interfaces";
23
24
  import { ReviewType, SortingOption, Source } from "./components/salla-reviews/interfaces";
24
25
  import { Phone } from "./components/salla-tel-input/interfaces";
25
- import { CustomField } from "./components/salla-user-profile/interfaces";
26
26
  export { Option } from "./components/salla-booking-field/interfaces";
27
27
  export { Color, Options } from "./components/salla-color-picker/interfaces";
28
28
  export { Comment, CommentType } from "./components/salla-comments/interfaces";
29
+ export { CustomField } from "./components/salla-user-profile/interfaces";
29
30
  export { DateLimit, DateOption, LocaleKey } from "./components/salla-datetime-picker/interfaces";
30
31
  export { FilePondFile } from "./components/salla-file-upload/interfaces";
31
32
  export { FilePondErrorDescription } from "filepond/types/index";
@@ -40,7 +41,6 @@ export { Donation, Option as Option1 } from "./components/salla-product-options/
40
41
  export { Review } from "./components/salla-review-card/interfaces";
41
42
  export { ReviewType, SortingOption, Source } from "./components/salla-reviews/interfaces";
42
43
  export { Phone } from "./components/salla-tel-input/interfaces";
43
- export { CustomField } from "./components/salla-user-profile/interfaces";
44
44
  export namespace Components {
45
45
  /**
46
46
  * @salla /ui-components
@@ -531,6 +531,17 @@ export namespace Components {
531
531
  */
532
532
  "size": 'sm' | 'md' | 'lg';
533
533
  }
534
+ interface SallaCustomFields {
535
+ "fields": string | CustomField[];
536
+ "fileUploadUrl": string;
537
+ "getFieldValues": () => Promise<{ [key: string]: unknown; }>;
538
+ /**
539
+ * @default true
540
+ */
541
+ "isEditable": boolean;
542
+ "setFields": (fields: CustomField[]) => Promise<void>;
543
+ "validateFields": () => Promise<boolean>;
544
+ }
534
545
  interface SallaDatetimePicker {
535
546
  /**
536
547
  * Allows the user to enter a date directly into the input field. By default, direct entry is disabled.
@@ -1059,6 +1070,11 @@ export namespace Components {
1059
1070
  * File input name in the request payload
1060
1071
  */
1061
1072
  "payloadName": string;
1073
+ /**
1074
+ * Allow to pass extra params to be sent with the upload request
1075
+ * @default {}
1076
+ */
1077
+ "payloadParams"?: Record<string,unknown>;
1062
1078
  /**
1063
1079
  * Set the component to be profile image uploader with a preview and a circular shape
1064
1080
  * @default false
@@ -2719,8 +2735,6 @@ export namespace Components {
2719
2735
  * customizable fields, and seamless integration with the Salla API.
2720
2736
  * It dynamically fetches translated strings for labels and messages from the
2721
2737
  * Salla localization object, allowing for a multilingual user interface. Users
2722
- * can extend the default form with custom fields through the `customFields`
2723
- * property and the setCustomFields method. The component manages user data
2724
2738
  * retrieval from the Salla configuration and includes fields for first name,
2725
2739
  * last name, birthday, gender, email, mobile, and custom additions. Form
2726
2740
  * validation and submission are handled through various event handlers, ensuring
@@ -2732,21 +2746,11 @@ export namespace Components {
2732
2746
  * rich set of features and customization options.
2733
2747
  */
2734
2748
  interface SallaUserProfile {
2735
- /**
2736
- * Custome fields to be rendered in addition to the default ones.
2737
- */
2738
- "customFields": string;
2739
2749
  /**
2740
2750
  * The minimum allowed age for a user. Users with a birthdate indicating an age less than this value will be considered invalid. Defaults to 10.
2741
- * @type {number}
2742
2751
  * @default 10
2743
2752
  */
2744
2753
  "minAge": number;
2745
- /**
2746
- * Sets custom fields for the component. Can be handy for non HTML usage.
2747
- * @param fields - An array of custom fields.
2748
- */
2749
- "setCustomFields": (fields: CustomField[]) => Promise<void>;
2750
2754
  }
2751
2755
  interface SallaUserSettings {
2752
2756
  }
@@ -2801,6 +2805,10 @@ export interface SallaColorPickerCustomEvent<T> extends CustomEvent<T> {
2801
2805
  detail: T;
2802
2806
  target: HTMLSallaColorPickerElement;
2803
2807
  }
2808
+ export interface SallaCustomFieldsCustomEvent<T> extends CustomEvent<T> {
2809
+ detail: T;
2810
+ target: HTMLSallaCustomFieldsElement;
2811
+ }
2804
2812
  export interface SallaDatetimePickerCustomEvent<T> extends CustomEvent<T> {
2805
2813
  detail: T;
2806
2814
  target: HTMLSallaDatetimePickerElement;
@@ -3082,6 +3090,32 @@ declare global {
3082
3090
  prototype: HTMLSallaCountDownElement;
3083
3091
  new (): HTMLSallaCountDownElement;
3084
3092
  };
3093
+ interface HTMLSallaCustomFieldsElementEventMap {
3094
+ "fieldChanged": {
3095
+ fieldId: string | number;
3096
+ value: unknown;
3097
+ isValid: boolean;
3098
+ };
3099
+ "fileUploaded": {
3100
+ fieldId: string | number;
3101
+ file: File;
3102
+ isValid: boolean;
3103
+ };
3104
+ }
3105
+ interface HTMLSallaCustomFieldsElement extends Components.SallaCustomFields, HTMLStencilElement {
3106
+ addEventListener<K extends keyof HTMLSallaCustomFieldsElementEventMap>(type: K, listener: (this: HTMLSallaCustomFieldsElement, ev: SallaCustomFieldsCustomEvent<HTMLSallaCustomFieldsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
3107
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3108
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3109
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
3110
+ removeEventListener<K extends keyof HTMLSallaCustomFieldsElementEventMap>(type: K, listener: (this: HTMLSallaCustomFieldsElement, ev: SallaCustomFieldsCustomEvent<HTMLSallaCustomFieldsElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
3111
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3112
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3113
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
3114
+ }
3115
+ var HTMLSallaCustomFieldsElement: {
3116
+ prototype: HTMLSallaCustomFieldsElement;
3117
+ new (): HTMLSallaCustomFieldsElement;
3118
+ };
3085
3119
  interface HTMLSallaDatetimePickerElementEventMap {
3086
3120
  "picked": any;
3087
3121
  "invalidInput": any;
@@ -3770,8 +3804,6 @@ declare global {
3770
3804
  * customizable fields, and seamless integration with the Salla API.
3771
3805
  * It dynamically fetches translated strings for labels and messages from the
3772
3806
  * Salla localization object, allowing for a multilingual user interface. Users
3773
- * can extend the default form with custom fields through the `customFields`
3774
- * property and the setCustomFields method. The component manages user data
3775
3807
  * retrieval from the Salla configuration and includes fields for first name,
3776
3808
  * last name, birthday, gender, email, mobile, and custom additions. Form
3777
3809
  * validation and submission are handled through various event handlers, ensuring
@@ -3840,6 +3872,7 @@ declare global {
3840
3872
  "salla-conditional-offer": HTMLSallaConditionalOfferElement;
3841
3873
  "salla-contacts": HTMLSallaContactsElement;
3842
3874
  "salla-count-down": HTMLSallaCountDownElement;
3875
+ "salla-custom-fields": HTMLSallaCustomFieldsElement;
3843
3876
  "salla-datetime-picker": HTMLSallaDatetimePickerElement;
3844
3877
  "salla-drawer": HTMLSallaDrawerElement;
3845
3878
  "salla-file-upload": HTMLSallaFileUploadElement;
@@ -4381,6 +4414,24 @@ declare namespace LocalJSX {
4381
4414
  */
4382
4415
  "size"?: 'sm' | 'md' | 'lg';
4383
4416
  }
4417
+ interface SallaCustomFields {
4418
+ "fields"?: string | CustomField[];
4419
+ "fileUploadUrl"?: string;
4420
+ /**
4421
+ * @default true
4422
+ */
4423
+ "isEditable"?: boolean;
4424
+ "onFieldChanged"?: (event: SallaCustomFieldsCustomEvent<{
4425
+ fieldId: string | number;
4426
+ value: unknown;
4427
+ isValid: boolean;
4428
+ }>) => void;
4429
+ "onFileUploaded"?: (event: SallaCustomFieldsCustomEvent<{
4430
+ fieldId: string | number;
4431
+ file: File;
4432
+ isValid: boolean;
4433
+ }>) => void;
4434
+ }
4384
4435
  interface SallaDatetimePicker {
4385
4436
  /**
4386
4437
  * Allows the user to enter a date directly into the input field. By default, direct entry is disabled.
@@ -4916,6 +4967,11 @@ declare namespace LocalJSX {
4916
4967
  * File input name in the request payload
4917
4968
  */
4918
4969
  "payloadName"?: string;
4970
+ /**
4971
+ * Allow to pass extra params to be sent with the upload request
4972
+ * @default {}
4973
+ */
4974
+ "payloadParams"?: Record<string,unknown>;
4919
4975
  /**
4920
4976
  * Set the component to be profile image uploader with a preview and a circular shape
4921
4977
  * @default false
@@ -6358,8 +6414,6 @@ declare namespace LocalJSX {
6358
6414
  * customizable fields, and seamless integration with the Salla API.
6359
6415
  * It dynamically fetches translated strings for labels and messages from the
6360
6416
  * Salla localization object, allowing for a multilingual user interface. Users
6361
- * can extend the default form with custom fields through the `customFields`
6362
- * property and the setCustomFields method. The component manages user data
6363
6417
  * retrieval from the Salla configuration and includes fields for first name,
6364
6418
  * last name, birthday, gender, email, mobile, and custom additions. Form
6365
6419
  * validation and submission are handled through various event handlers, ensuring
@@ -6371,13 +6425,8 @@ declare namespace LocalJSX {
6371
6425
  * rich set of features and customization options.
6372
6426
  */
6373
6427
  interface SallaUserProfile {
6374
- /**
6375
- * Custome fields to be rendered in addition to the default ones.
6376
- */
6377
- "customFields"?: string;
6378
6428
  /**
6379
6429
  * The minimum allowed age for a user. Users with a birthdate indicating an age less than this value will be considered invalid. Defaults to 10.
6380
- * @type {number}
6381
6430
  * @default 10
6382
6431
  */
6383
6432
  "minAge"?: number;
@@ -6435,6 +6484,7 @@ declare namespace LocalJSX {
6435
6484
  "salla-conditional-offer": SallaConditionalOffer;
6436
6485
  "salla-contacts": SallaContacts;
6437
6486
  "salla-count-down": SallaCountDown;
6487
+ "salla-custom-fields": SallaCustomFields;
6438
6488
  "salla-datetime-picker": SallaDatetimePicker;
6439
6489
  "salla-drawer": SallaDrawer;
6440
6490
  "salla-file-upload": SallaFileUpload;
@@ -6562,6 +6612,7 @@ declare module "@stencil/core" {
6562
6612
  "salla-conditional-offer": LocalJSX.SallaConditionalOffer & JSXBase.HTMLAttributes<HTMLSallaConditionalOfferElement>;
6563
6613
  "salla-contacts": LocalJSX.SallaContacts & JSXBase.HTMLAttributes<HTMLSallaContactsElement>;
6564
6614
  "salla-count-down": LocalJSX.SallaCountDown & JSXBase.HTMLAttributes<HTMLSallaCountDownElement>;
6615
+ "salla-custom-fields": LocalJSX.SallaCustomFields & JSXBase.HTMLAttributes<HTMLSallaCustomFieldsElement>;
6565
6616
  "salla-datetime-picker": LocalJSX.SallaDatetimePicker & JSXBase.HTMLAttributes<HTMLSallaDatetimePickerElement>;
6566
6617
  "salla-drawer": LocalJSX.SallaDrawer & JSXBase.HTMLAttributes<HTMLSallaDrawerElement>;
6567
6618
  "salla-file-upload": LocalJSX.SallaFileUpload & JSXBase.HTMLAttributes<HTMLSallaFileUploadElement>;
@@ -6686,8 +6737,6 @@ declare module "@stencil/core" {
6686
6737
  * customizable fields, and seamless integration with the Salla API.
6687
6738
  * It dynamically fetches translated strings for labels and messages from the
6688
6739
  * Salla localization object, allowing for a multilingual user interface. Users
6689
- * can extend the default form with custom fields through the `customFields`
6690
- * property and the setCustomFields method. The component manages user data
6691
6740
  * retrieval from the Salla configuration and includes fields for first name,
6692
6741
  * last name, birthday, gender, email, mobile, and custom additions. Form
6693
6742
  * validation and submission are handled through various event handlers, ensuring
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight-components",
3
- "version": "2.14.295",
3
+ "version": "2.14.296",
4
4
  "license": "GPL-3.0",
5
5
  "author": "Salla Team <support@salla.dev> (https://salla.dev)",
6
6
  "bugs": {
@@ -80,9 +80,9 @@
80
80
  "typescript": "^5.4.5"
81
81
  },
82
82
  "dependencies": {
83
- "@salla.sa/applepay": "2.14.295",
84
- "@salla.sa/twilight": "2.14.295",
85
- "@salla.sa/twilight-tailwind-theme": "2.14.295",
83
+ "@salla.sa/applepay": "2.14.296",
84
+ "@salla.sa/twilight": "2.14.296",
85
+ "@salla.sa/twilight-tailwind-theme": "2.14.296",
86
86
  "@types/node": "^20.4.8",
87
87
  "animejs": "^3.2.2",
88
88
  "filepond": "^4.30.6",
@@ -100,5 +100,5 @@
100
100
  "vanilla-lazyload": "^17.8.5",
101
101
  "vanilla-picker": "^2.12.2"
102
102
  },
103
- "gitHead": "d21bdbd99cac9545cd42a71bd9033e8ebe87fcef"
103
+ "gitHead": "5e2bf652182c2fc925892a6fe9ddeb27bac620e0"
104
104
  }