@weni/unnnic-system 3.1.0 → 3.1.2-alpha.1

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 (42) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -2
  3. package/dist/components/DropArea/DropArea.vue.d.ts +2 -0
  4. package/dist/components/DropArea/DropArea.vue.d.ts.map +1 -1
  5. package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts +3 -3
  6. package/dist/components/ModalDialog/ModalDialog.vue.d.ts +1 -1
  7. package/dist/components/ModalDialog/ModalDialog.vue.d.ts.map +1 -1
  8. package/dist/components/ModalUpload/ModalUpload.vue.d.ts +6 -0
  9. package/dist/components/SelectSmart/SelectSmart.vue.d.ts +18 -0
  10. package/dist/components/SelectSmart/SelectSmart.vue.d.ts.map +1 -1
  11. package/dist/components/SelectSmart/SelectSmartOption.vue.d.ts +9 -0
  12. package/dist/components/SelectSmart/SelectSmartOption.vue.d.ts.map +1 -1
  13. package/dist/components/TemplatePreview/TemplatePreview.vue.d.ts +9 -0
  14. package/dist/components/TemplatePreview/TemplatePreview.vue.d.ts.map +1 -0
  15. package/dist/components/TemplatePreview/TemplatePreviewModal.vue.d.ts +15 -0
  16. package/dist/components/TemplatePreview/TemplatePreviewModal.vue.d.ts.map +1 -0
  17. package/dist/components/UploadArea/UploadArea.vue.d.ts +6 -0
  18. package/dist/{es-8ee8b336.mjs → es-a3fefe6b.mjs} +1 -1
  19. package/dist/{index-a9c4dc3e.mjs → index-5b99e353.mjs} +9151 -8978
  20. package/dist/{pt-br-1b500883.mjs → pt-br-8aded404.mjs} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/unnnic.mjs +26 -24
  23. package/dist/unnnic.umd.js +44 -43
  24. package/package.json +2 -2
  25. package/src/assets/img/previews/doc-preview.png +0 -0
  26. package/src/assets/img/previews/image-preview.png +0 -0
  27. package/src/assets/img/previews/video-preview.png +0 -0
  28. package/src/components/DropArea/DropArea.vue +17 -0
  29. package/src/components/ModalDialog/ModalDialog.vue +27 -29
  30. package/src/components/ModalDialog/__tests__/__snapshots__/ModalDialog.spec.js.snap +1 -1
  31. package/src/components/SelectSmart/SelectSmart.vue +22 -1
  32. package/src/components/SelectSmart/SelectSmartMultipleHeader.vue +1 -1
  33. package/src/components/SelectSmart/SelectSmartOption.vue +5 -0
  34. package/src/components/TemplatePreview/TemplatePreview.vue +249 -0
  35. package/src/components/TemplatePreview/TemplatePreviewModal.vue +51 -0
  36. package/src/components/TemplatePreview/types.d.ts +16 -0
  37. package/src/components/index.ts +8 -2
  38. package/src/stories/SelectSmart.stories.js +1 -1
  39. package/src/stories/TemplatePreview.stories.js +94 -0
  40. package/src/stories/TemplatePreviewModal.stories.js +110 -0
  41. package/dist/components/index.d.ts +0 -40344
  42. package/dist/components/index.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 3.1.1 (2025-08-29)
9
+
10
+ ### Added
11
+
12
+ - **SelectSmart**: Added `multipleLimit` props to limit items selection
13
+ - **SelectSmart**: Added `disableRemove` option attribute to disable remove selected items
14
+
8
15
  ## 3.1.0 (2025-08-29)
9
16
 
10
17
  ### Added
@@ -75,8 +75,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
75
75
  }, {
76
76
  openMonths(): string[];
77
77
  value(): {
78
- startDate: any;
79
- endDate: any;
78
+ startDate: string;
79
+ endDate: string;
80
80
  };
81
81
  i18nLocale(): string;
82
82
  monthsLocale(): any;
@@ -5,6 +5,7 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
5
5
  });
6
6
  declare const __VLS_component: import('vue').DefineComponent<{}, {
7
7
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
8
+ disabled: boolean;
8
9
  subtitle: string;
9
10
  acceptMultiple: boolean;
10
11
  supportedFormats: string;
@@ -13,6 +14,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
13
14
  maximumUploads: number;
14
15
  maxFileSize?: number | undefined;
15
16
  $props: {
17
+ readonly disabled?: boolean | undefined;
16
18
  readonly subtitle?: string | undefined;
17
19
  readonly acceptMultiple?: boolean | undefined;
18
20
  readonly supportedFormats?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"DropArea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DropArea/DropArea.vue"],"names":[],"mappings":"AAgEA;wBAisBqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAbjC;;;;;;;;;;;;;;;;;;;;;gBAUG"}
1
+ {"version":3,"file":"DropArea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DropArea/DropArea.vue"],"names":[],"mappings":"AAgEA;wBAmuBqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAbjC;;;;;;;;;;;;;;;;;;;;;;;gBAUG"}
@@ -72,7 +72,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
72
72
  showCalendarFilter: boolean;
73
73
  overwrittenValue: string;
74
74
  }, {
75
- filterText(): any;
75
+ filterText(): string;
76
76
  initialStartDate(): string | null;
77
77
  initialEndDate(): string | null;
78
78
  }, {
@@ -665,8 +665,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
665
665
  }, {
666
666
  openMonths(): string[];
667
667
  value(): {
668
- startDate: any;
669
- endDate: any;
668
+ startDate: string;
669
+ endDate: string;
670
670
  };
671
671
  i18nLocale(): string;
672
672
  monthsLocale(): any;
@@ -52,7 +52,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
52
52
  }>, {}, {
53
53
  defaultTranslations: {
54
54
  cancel: {
55
- 'pt-br': string;
55
+ "pt-br": string;
56
56
  en: string;
57
57
  es: string;
58
58
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ModalDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ModalDialog/ModalDialog.vue"],"names":[],"mappings":"AAkGA;"}
1
+ {"version":3,"file":"ModalDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ModalDialog/ModalDialog.vue"],"names":[],"mappings":"AAgGA;"}
@@ -237,6 +237,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
237
237
  UnnnicDropArea: {
238
238
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
239
239
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
240
+ disabled: boolean;
240
241
  subtitle: string;
241
242
  acceptMultiple: boolean;
242
243
  supportedFormats: string;
@@ -245,6 +246,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
245
246
  maximumUploads: number;
246
247
  maxFileSize?: number | undefined;
247
248
  $props: {
249
+ readonly disabled?: boolean | undefined;
248
250
  readonly subtitle?: string | undefined;
249
251
  readonly acceptMultiple?: boolean | undefined;
250
252
  readonly supportedFormats?: string | undefined;
@@ -265,6 +267,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
265
267
  Defaults: {};
266
268
  }, Readonly<{}> & Readonly<{}>, {
267
269
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
270
+ disabled: boolean;
268
271
  subtitle: string;
269
272
  acceptMultiple: boolean;
270
273
  supportedFormats: string;
@@ -273,6 +276,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
273
276
  maximumUploads: number;
274
277
  maxFileSize?: number | undefined;
275
278
  $props: {
279
+ readonly disabled?: boolean | undefined;
276
280
  readonly subtitle?: string | undefined;
277
281
  readonly acceptMultiple?: boolean | undefined;
278
282
  readonly supportedFormats?: string | undefined;
@@ -287,6 +291,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
287
291
  __isSuspense?: never;
288
292
  } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
289
293
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
294
+ disabled: boolean;
290
295
  subtitle: string;
291
296
  acceptMultiple: boolean;
292
297
  supportedFormats: string;
@@ -295,6 +300,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
295
300
  maximumUploads: number;
296
301
  maxFileSize?: number | undefined;
297
302
  $props: {
303
+ readonly disabled?: boolean | undefined;
298
304
  readonly subtitle?: string | undefined;
299
305
  readonly acceptMultiple?: boolean | undefined;
300
306
  readonly supportedFormats?: string | undefined;
@@ -64,6 +64,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
64
64
  type: BooleanConstructor;
65
65
  default: boolean;
66
66
  };
67
+ multipleLimit: {
68
+ type: (NumberConstructor | null)[];
69
+ default: null;
70
+ };
67
71
  }>, {}, {
68
72
  active: boolean;
69
73
  status: string;
@@ -173,6 +177,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
173
177
  type: BooleanConstructor;
174
178
  default: boolean;
175
179
  };
180
+ multipleLimit: {
181
+ type: (NumberConstructor | null)[];
182
+ default: null;
183
+ };
176
184
  }>> & Readonly<{
177
185
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
178
186
  onOnChange?: ((...args: any[]) => any) | undefined;
@@ -193,6 +201,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
193
201
  selectFirst: boolean;
194
202
  isLoading: boolean;
195
203
  enableSearchByValue: boolean;
204
+ multipleLimit: number | null;
196
205
  }, {}, {
197
206
  TextInput: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
198
207
  placeholder: {
@@ -498,6 +507,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
498
507
  type: BooleanConstructor;
499
508
  default: null;
500
509
  };
510
+ disabled: {
511
+ type: BooleanConstructor;
512
+ default: boolean;
513
+ };
501
514
  allowCheckbox: {
502
515
  type: BooleanConstructor;
503
516
  default: boolean;
@@ -537,6 +550,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
537
550
  type: BooleanConstructor;
538
551
  default: null;
539
552
  };
553
+ disabled: {
554
+ type: BooleanConstructor;
555
+ default: boolean;
556
+ };
540
557
  allowCheckbox: {
541
558
  type: BooleanConstructor;
542
559
  default: boolean;
@@ -550,6 +567,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
550
567
  }>> & Readonly<{}>, {
551
568
  label: string;
552
569
  size: string;
570
+ disabled: boolean;
553
571
  description: string;
554
572
  active: boolean;
555
573
  isMultiple: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectSmart.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SelectSmart/SelectSmart.vue"],"names":[],"mappings":"AA0GA;"}
1
+ {"version":3,"file":"SelectSmart.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SelectSmart/SelectSmart.vue"],"names":[],"mappings":"AA2GA;"}
@@ -26,6 +26,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
26
26
  type: BooleanConstructor;
27
27
  default: null;
28
28
  };
29
+ disabled: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
29
33
  allowCheckbox: {
30
34
  type: BooleanConstructor;
31
35
  default: boolean;
@@ -65,6 +69,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
65
69
  type: BooleanConstructor;
66
70
  default: null;
67
71
  };
72
+ disabled: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
68
76
  allowCheckbox: {
69
77
  type: BooleanConstructor;
70
78
  default: boolean;
@@ -78,6 +86,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
78
86
  }>> & Readonly<{}>, {
79
87
  label: string;
80
88
  size: string;
89
+ disabled: boolean;
81
90
  description: string;
82
91
  active: boolean;
83
92
  isMultiple: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectSmartOption.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SelectSmart/SelectSmartOption.vue"],"names":[],"mappings":"AA4CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAgL8B,sBAAsB"}
1
+ {"version":3,"file":"SelectSmartOption.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SelectSmart/SelectSmartOption.vue"],"names":[],"mappings":"AA6CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAqL8B,sBAAsB"}
@@ -0,0 +1,9 @@
1
+ import { Template } from './types';
2
+ interface Props {
3
+ template?: Template | null;
4
+ }
5
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
6
+ template: Template | null;
7
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
8
+ export default _default;
9
+ //# sourceMappingURL=TemplatePreview.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemplatePreview.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TemplatePreview/TemplatePreview.vue"],"names":[],"mappings":"AAgGA;AA6PA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAQxC,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;CAC5B;;cADY,QAAQ,GAAG,IAAI;;AAkN5B,wBAQG"}
@@ -0,0 +1,15 @@
1
+ import { Template } from './types';
2
+ interface Props {
3
+ locale?: string;
4
+ template: Template;
5
+ modelValue: boolean;
6
+ }
7
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ close: () => any;
9
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
10
+ onClose?: (() => any) | undefined;
11
+ }>, {
12
+ locale: string;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
15
+ //# sourceMappingURL=TemplatePreviewModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemplatePreviewModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TemplatePreview/TemplatePreviewModal.vue"],"names":[],"mappings":"AAWA;AAwDA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAUxC,UAAU,KAAK;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACrB;;;;;;YAHU,MAAM;;AAgGjB,wBASG"}
@@ -114,6 +114,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
114
114
  UnnnicDropArea: {
115
115
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
116
116
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
117
+ disabled: boolean;
117
118
  subtitle: string;
118
119
  acceptMultiple: boolean;
119
120
  supportedFormats: string;
@@ -122,6 +123,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
122
123
  maximumUploads: number;
123
124
  maxFileSize?: number | undefined;
124
125
  $props: {
126
+ readonly disabled?: boolean | undefined;
125
127
  readonly subtitle?: string | undefined;
126
128
  readonly acceptMultiple?: boolean | undefined;
127
129
  readonly supportedFormats?: string | undefined;
@@ -142,6 +144,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
142
144
  Defaults: {};
143
145
  }, Readonly<{}> & Readonly<{}>, {
144
146
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
147
+ disabled: boolean;
145
148
  subtitle: string;
146
149
  acceptMultiple: boolean;
147
150
  supportedFormats: string;
@@ -150,6 +153,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
150
153
  maximumUploads: number;
151
154
  maxFileSize?: number | undefined;
152
155
  $props: {
156
+ readonly disabled?: boolean | undefined;
153
157
  readonly subtitle?: string | undefined;
154
158
  readonly acceptMultiple?: boolean | undefined;
155
159
  readonly supportedFormats?: string | undefined;
@@ -164,6 +168,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
164
168
  __isSuspense?: never;
165
169
  } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
166
170
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
171
+ disabled: boolean;
167
172
  subtitle: string;
168
173
  acceptMultiple: boolean;
169
174
  supportedFormats: string;
@@ -172,6 +177,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
172
177
  maximumUploads: number;
173
178
  maxFileSize?: number | undefined;
174
179
  $props: {
180
+ readonly disabled?: boolean | undefined;
175
181
  readonly subtitle?: string | undefined;
176
182
  readonly acceptMultiple?: boolean | undefined;
177
183
  readonly supportedFormats?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { h as n } from "./index-a9c4dc3e.mjs";
1
+ import { h as n } from "./index-5b99e353.mjs";
2
2
  import "vue";
3
3
  //! moment.js locale configuration
4
4
  //! locale : Spanish [es]