@xwiki/cristal-dsvuetify 1.5.0 → 1.6.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.
@@ -29,7 +29,7 @@ declare function __VLS_template(): {
29
29
  resetValidation: () => void;
30
30
  }) => import('vue').VNodeChild) | undefined;
31
31
  } | {
32
- $stable?: boolean | undefined;
32
+ $stable?: boolean;
33
33
  } | ((arg: {
34
34
  errors: import('vuetify/lib/composables/form.mjs').FieldValidationResult[];
35
35
  isDisabled: boolean;
@@ -41,7 +41,7 @@ declare function __VLS_template(): {
41
41
  reset: () => void;
42
42
  resetValidation: () => void;
43
43
  }) => import('vue').VNodeChild) | import('vue').VNodeChild;
44
- "v-slots"?: {
44
+ 'v-slots'?: {
45
45
  default?: false | ((arg: {
46
46
  errors: import('vuetify/lib/composables/form.mjs').FieldValidationResult[];
47
47
  isDisabled: boolean;
@@ -71,10 +71,10 @@ declare function __VLS_template(): {
71
71
  "onUpdate:modelValue"?: ((val: boolean | null) => any) | undefined;
72
72
  }, {
73
73
  errors: import('vue').Ref<{
74
- id: string | number;
74
+ id: number | string;
75
75
  errorMessages: string[];
76
76
  }[], import('vuetify/lib/composables/form.mjs').FieldValidationResult[] | {
77
- id: string | number;
77
+ id: number | string;
78
78
  errorMessages: string[];
79
79
  }[]>;
80
80
  isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
@@ -84,7 +84,7 @@ declare function __VLS_template(): {
84
84
  readonly externalValue: boolean | null;
85
85
  };
86
86
  items: import('vue').Ref<{
87
- id: string | number;
87
+ id: number | string;
88
88
  validate: () => Promise<string[]>;
89
89
  reset: () => Promise<void>;
90
90
  resetValidation: () => Promise<void>;
@@ -92,7 +92,7 @@ declare function __VLS_template(): {
92
92
  isValid: boolean | null;
93
93
  errorMessages: string[];
94
94
  }[], import('vuetify/lib/composables/form.mjs').FormField[] | {
95
- id: string | number;
95
+ id: number | string;
96
96
  validate: () => Promise<string[]>;
97
97
  reset: () => Promise<void>;
98
98
  resetValidation: () => Promise<void>;
@@ -103,7 +103,7 @@ declare function __VLS_template(): {
103
103
  validate: () => Promise<{
104
104
  valid: boolean;
105
105
  errors: {
106
- id: string | number;
106
+ id: number | string;
107
107
  errorMessages: string[];
108
108
  }[];
109
109
  }>;
@@ -112,10 +112,10 @@ declare function __VLS_template(): {
112
112
  } & HTMLFormElement & {
113
113
  _allExposed: {
114
114
  errors: import('vue').Ref<{
115
- id: string | number;
115
+ id: number | string;
116
116
  errorMessages: string[];
117
117
  }[], import('vuetify/lib/composables/form.mjs').FieldValidationResult[] | {
118
- id: string | number;
118
+ id: number | string;
119
119
  errorMessages: string[];
120
120
  }[]>;
121
121
  isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
@@ -125,7 +125,7 @@ declare function __VLS_template(): {
125
125
  readonly externalValue: boolean | null;
126
126
  };
127
127
  items: import('vue').Ref<{
128
- id: string | number;
128
+ id: number | string;
129
129
  validate: () => Promise<string[]>;
130
130
  reset: () => Promise<void>;
131
131
  resetValidation: () => Promise<void>;
@@ -133,7 +133,7 @@ declare function __VLS_template(): {
133
133
  isValid: boolean | null;
134
134
  errorMessages: string[];
135
135
  }[], import('vuetify/lib/composables/form.mjs').FormField[] | {
136
- id: string | number;
136
+ id: number | string;
137
137
  validate: () => Promise<string[]>;
138
138
  reset: () => Promise<void>;
139
139
  resetValidation: () => Promise<void>;
@@ -144,7 +144,7 @@ declare function __VLS_template(): {
144
144
  validate: () => Promise<{
145
145
  valid: boolean;
146
146
  errors: {
147
- id: string | number;
147
+ id: number | string;
148
148
  errorMessages: string[];
149
149
  }[];
150
150
  }>;
@@ -152,7 +152,7 @@ declare function __VLS_template(): {
152
152
  resetValidation: () => void;
153
153
  };
154
154
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
155
- "update:modelValue": (val: boolean | null) => true;
155
+ 'update:modelValue': (val: boolean | null) => true;
156
156
  submit: (e: import('vuetify/lib/types.mjs').SubmitEventPromise) => true;
157
157
  }, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, {
158
158
  style: import('vue').StyleValue;
@@ -205,7 +205,7 @@ declare function __VLS_template(): {
205
205
  resetValidation: () => void;
206
206
  }) => import('vue').VNodeChild) | undefined;
207
207
  } | {
208
- $stable?: boolean | undefined;
208
+ $stable?: boolean;
209
209
  } | ((arg: {
210
210
  errors: import('vuetify/lib/composables/form.mjs').FieldValidationResult[];
211
211
  isDisabled: boolean;
@@ -217,7 +217,7 @@ declare function __VLS_template(): {
217
217
  reset: () => void;
218
218
  resetValidation: () => void;
219
219
  }) => import('vue').VNodeChild) | import('vue').VNodeChild;
220
- "v-slots"?: {
220
+ 'v-slots'?: {
221
221
  default?: false | ((arg: {
222
222
  errors: import('vuetify/lib/composables/form.mjs').FieldValidationResult[];
223
223
  isDisabled: boolean;
@@ -247,10 +247,10 @@ declare function __VLS_template(): {
247
247
  "onUpdate:modelValue"?: ((val: boolean | null) => any) | undefined;
248
248
  }, {
249
249
  errors: import('vue').Ref<{
250
- id: string | number;
250
+ id: number | string;
251
251
  errorMessages: string[];
252
252
  }[], import('vuetify/lib/composables/form.mjs').FieldValidationResult[] | {
253
- id: string | number;
253
+ id: number | string;
254
254
  errorMessages: string[];
255
255
  }[]>;
256
256
  isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
@@ -260,7 +260,7 @@ declare function __VLS_template(): {
260
260
  readonly externalValue: boolean | null;
261
261
  };
262
262
  items: import('vue').Ref<{
263
- id: string | number;
263
+ id: number | string;
264
264
  validate: () => Promise<string[]>;
265
265
  reset: () => Promise<void>;
266
266
  resetValidation: () => Promise<void>;
@@ -268,7 +268,7 @@ declare function __VLS_template(): {
268
268
  isValid: boolean | null;
269
269
  errorMessages: string[];
270
270
  }[], import('vuetify/lib/composables/form.mjs').FormField[] | {
271
- id: string | number;
271
+ id: number | string;
272
272
  validate: () => Promise<string[]>;
273
273
  reset: () => Promise<void>;
274
274
  resetValidation: () => Promise<void>;
@@ -279,7 +279,7 @@ declare function __VLS_template(): {
279
279
  validate: () => Promise<{
280
280
  valid: boolean;
281
281
  errors: {
282
- id: string | number;
282
+ id: number | string;
283
283
  errorMessages: string[];
284
284
  }[];
285
285
  }>;
@@ -288,10 +288,10 @@ declare function __VLS_template(): {
288
288
  } & HTMLFormElement & {
289
289
  _allExposed: {
290
290
  errors: import('vue').Ref<{
291
- id: string | number;
291
+ id: number | string;
292
292
  errorMessages: string[];
293
293
  }[], import('vuetify/lib/composables/form.mjs').FieldValidationResult[] | {
294
- id: string | number;
294
+ id: number | string;
295
295
  errorMessages: string[];
296
296
  }[]>;
297
297
  isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
@@ -301,7 +301,7 @@ declare function __VLS_template(): {
301
301
  readonly externalValue: boolean | null;
302
302
  };
303
303
  items: import('vue').Ref<{
304
- id: string | number;
304
+ id: number | string;
305
305
  validate: () => Promise<string[]>;
306
306
  reset: () => Promise<void>;
307
307
  resetValidation: () => Promise<void>;
@@ -309,7 +309,7 @@ declare function __VLS_template(): {
309
309
  isValid: boolean | null;
310
310
  errorMessages: string[];
311
311
  }[], import('vuetify/lib/composables/form.mjs').FormField[] | {
312
- id: string | number;
312
+ id: number | string;
313
313
  validate: () => Promise<string[]>;
314
314
  reset: () => Promise<void>;
315
315
  resetValidation: () => Promise<void>;
@@ -320,7 +320,7 @@ declare function __VLS_template(): {
320
320
  validate: () => Promise<{
321
321
  valid: boolean;
322
322
  errors: {
323
- id: string | number;
323
+ id: number | string;
324
324
  errorMessages: string[];
325
325
  }[];
326
326
  }>;
@@ -369,7 +369,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
369
369
  resetValidation: () => void;
370
370
  }) => import('vue').VNodeChild) | undefined;
371
371
  } | {
372
- $stable?: boolean | undefined;
372
+ $stable?: boolean;
373
373
  } | ((arg: {
374
374
  errors: import('vuetify/lib/composables/form.mjs').FieldValidationResult[];
375
375
  isDisabled: boolean;
@@ -381,7 +381,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
381
381
  reset: () => void;
382
382
  resetValidation: () => void;
383
383
  }) => import('vue').VNodeChild) | import('vue').VNodeChild;
384
- "v-slots"?: {
384
+ 'v-slots'?: {
385
385
  default?: false | ((arg: {
386
386
  errors: import('vuetify/lib/composables/form.mjs').FieldValidationResult[];
387
387
  isDisabled: boolean;
@@ -411,10 +411,10 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
411
411
  "onUpdate:modelValue"?: ((val: boolean | null) => any) | undefined;
412
412
  }, {
413
413
  errors: import('vue').Ref<{
414
- id: string | number;
414
+ id: number | string;
415
415
  errorMessages: string[];
416
416
  }[], import('vuetify/lib/composables/form.mjs').FieldValidationResult[] | {
417
- id: string | number;
417
+ id: number | string;
418
418
  errorMessages: string[];
419
419
  }[]>;
420
420
  isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
@@ -424,7 +424,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
424
424
  readonly externalValue: boolean | null;
425
425
  };
426
426
  items: import('vue').Ref<{
427
- id: string | number;
427
+ id: number | string;
428
428
  validate: () => Promise<string[]>;
429
429
  reset: () => Promise<void>;
430
430
  resetValidation: () => Promise<void>;
@@ -432,7 +432,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
432
432
  isValid: boolean | null;
433
433
  errorMessages: string[];
434
434
  }[], import('vuetify/lib/composables/form.mjs').FormField[] | {
435
- id: string | number;
435
+ id: number | string;
436
436
  validate: () => Promise<string[]>;
437
437
  reset: () => Promise<void>;
438
438
  resetValidation: () => Promise<void>;
@@ -443,7 +443,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
443
443
  validate: () => Promise<{
444
444
  valid: boolean;
445
445
  errors: {
446
- id: string | number;
446
+ id: number | string;
447
447
  errorMessages: string[];
448
448
  }[];
449
449
  }>;
@@ -452,10 +452,10 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
452
452
  } & HTMLFormElement & {
453
453
  _allExposed: {
454
454
  errors: import('vue').Ref<{
455
- id: string | number;
455
+ id: number | string;
456
456
  errorMessages: string[];
457
457
  }[], import('vuetify/lib/composables/form.mjs').FieldValidationResult[] | {
458
- id: string | number;
458
+ id: number | string;
459
459
  errorMessages: string[];
460
460
  }[]>;
461
461
  isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
@@ -465,7 +465,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
465
465
  readonly externalValue: boolean | null;
466
466
  };
467
467
  items: import('vue').Ref<{
468
- id: string | number;
468
+ id: number | string;
469
469
  validate: () => Promise<string[]>;
470
470
  reset: () => Promise<void>;
471
471
  resetValidation: () => Promise<void>;
@@ -473,7 +473,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
473
473
  isValid: boolean | null;
474
474
  errorMessages: string[];
475
475
  }[], import('vuetify/lib/composables/form.mjs').FormField[] | {
476
- id: string | number;
476
+ id: number | string;
477
477
  validate: () => Promise<string[]>;
478
478
  reset: () => Promise<void>;
479
479
  resetValidation: () => Promise<void>;
@@ -484,7 +484,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
484
484
  validate: () => Promise<{
485
485
  valid: boolean;
486
486
  errors: {
487
- id: string | number;
487
+ id: number | string;
488
488
  errorMessages: string[];
489
489
  }[];
490
490
  }>;
@@ -492,7 +492,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
492
492
  resetValidation: () => void;
493
493
  };
494
494
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
495
- "update:modelValue": (val: boolean | null) => true;
495
+ 'update:modelValue': (val: boolean | null) => true;
496
496
  submit: (e: import('vuetify/lib/types.mjs').SubmitEventPromise) => true;
497
497
  }, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, {
498
498
  style: import('vue').StyleValue;
@@ -545,7 +545,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
545
545
  resetValidation: () => void;
546
546
  }) => import('vue').VNodeChild) | undefined;
547
547
  } | {
548
- $stable?: boolean | undefined;
548
+ $stable?: boolean;
549
549
  } | ((arg: {
550
550
  errors: import('vuetify/lib/composables/form.mjs').FieldValidationResult[];
551
551
  isDisabled: boolean;
@@ -557,7 +557,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
557
557
  reset: () => void;
558
558
  resetValidation: () => void;
559
559
  }) => import('vue').VNodeChild) | import('vue').VNodeChild;
560
- "v-slots"?: {
560
+ 'v-slots'?: {
561
561
  default?: false | ((arg: {
562
562
  errors: import('vuetify/lib/composables/form.mjs').FieldValidationResult[];
563
563
  isDisabled: boolean;
@@ -587,10 +587,10 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
587
587
  "onUpdate:modelValue"?: ((val: boolean | null) => any) | undefined;
588
588
  }, {
589
589
  errors: import('vue').Ref<{
590
- id: string | number;
590
+ id: number | string;
591
591
  errorMessages: string[];
592
592
  }[], import('vuetify/lib/composables/form.mjs').FieldValidationResult[] | {
593
- id: string | number;
593
+ id: number | string;
594
594
  errorMessages: string[];
595
595
  }[]>;
596
596
  isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
@@ -600,7 +600,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
600
600
  readonly externalValue: boolean | null;
601
601
  };
602
602
  items: import('vue').Ref<{
603
- id: string | number;
603
+ id: number | string;
604
604
  validate: () => Promise<string[]>;
605
605
  reset: () => Promise<void>;
606
606
  resetValidation: () => Promise<void>;
@@ -608,7 +608,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
608
608
  isValid: boolean | null;
609
609
  errorMessages: string[];
610
610
  }[], import('vuetify/lib/composables/form.mjs').FormField[] | {
611
- id: string | number;
611
+ id: number | string;
612
612
  validate: () => Promise<string[]>;
613
613
  reset: () => Promise<void>;
614
614
  resetValidation: () => Promise<void>;
@@ -619,7 +619,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
619
619
  validate: () => Promise<{
620
620
  valid: boolean;
621
621
  errors: {
622
- id: string | number;
622
+ id: number | string;
623
623
  errorMessages: string[];
624
624
  }[];
625
625
  }>;
@@ -628,10 +628,10 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
628
628
  } & HTMLFormElement & {
629
629
  _allExposed: {
630
630
  errors: import('vue').Ref<{
631
- id: string | number;
631
+ id: number | string;
632
632
  errorMessages: string[];
633
633
  }[], import('vuetify/lib/composables/form.mjs').FieldValidationResult[] | {
634
- id: string | number;
634
+ id: number | string;
635
635
  errorMessages: string[];
636
636
  }[]>;
637
637
  isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
@@ -641,7 +641,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
641
641
  readonly externalValue: boolean | null;
642
642
  };
643
643
  items: import('vue').Ref<{
644
- id: string | number;
644
+ id: number | string;
645
645
  validate: () => Promise<string[]>;
646
646
  reset: () => Promise<void>;
647
647
  resetValidation: () => Promise<void>;
@@ -649,7 +649,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
649
649
  isValid: boolean | null;
650
650
  errorMessages: string[];
651
651
  }[], import('vuetify/lib/composables/form.mjs').FormField[] | {
652
- id: string | number;
652
+ id: number | string;
653
653
  validate: () => Promise<string[]>;
654
654
  reset: () => Promise<void>;
655
655
  resetValidation: () => Promise<void>;
@@ -660,7 +660,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
660
660
  validate: () => Promise<{
661
661
  valid: boolean;
662
662
  errors: {
663
- id: string | number;
663
+ id: number | string;
664
664
  errorMessages: string[];
665
665
  }[];
666
666
  }>;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, useModel as t, openBlock as u, createBlock as d, unref as n, mergeModels as s } from "vue";
2
- import { c } from "./index-B9wTHR2i.js";
2
+ import { c } from "./index-CXc6lLQs.js";
3
3
  const V = /* @__PURE__ */ m({
4
4
  __name: "x-checkbox",
5
5
  props: /* @__PURE__ */ s({
@@ -25,4 +25,4 @@ const V = /* @__PURE__ */ m({
25
25
  export {
26
26
  V as default
27
27
  };
28
- //# sourceMappingURL=x-checkbox-VBFZ0UJs.js.map
28
+ //# sourceMappingURL=x-checkbox-CiXToUGv.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-checkbox-VBFZ0UJs.js","sources":["../src/vue/form/x-checkbox.vue"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script lang=\"ts\" setup>\nimport { VCheckbox } from \"vuetify/components/VCheckbox\";\nimport type { CheckboxProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<CheckboxProps>();\n\nconst checked = defineModel<boolean | null>();\n</script>\n<template>\n <v-checkbox\n v-model=\"checked\"\n :label=\"label\"\n :messages=\"help\"\n density=\"compact\"\n ></v-checkbox>\n</template>\n"],"names":["checked","_useModel","_createBlock","_unref","VCheckbox","$event","__props"],"mappings":";;;;;;;;;;;;;;AAyBA,UAAMA,IAAUC,iBAA4B;2BAG1CC,EAKcC,EAAAC,CAAA,GAAA;AAAA,kBAJHJ,EAAA;AAAA,oDAAAA,EAAO,QAAAK;AAAA,MACf,OAAOC,EAAA;AAAA,MACP,UAAUA,EAAA;AAAA,MACX,SAAQ;AAAA,IAAA;;;"}
1
+ {"version":3,"file":"x-checkbox-CiXToUGv.js","sources":["../src/vue/form/x-checkbox.vue"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script lang=\"ts\" setup>\nimport { VCheckbox } from \"vuetify/components/VCheckbox\";\nimport type { CheckboxProps } from \"@xwiki/platform-dsapi\";\n\ndefineProps<CheckboxProps>();\n\nconst checked = defineModel<boolean | null>();\n</script>\n<template>\n <v-checkbox\n v-model=\"checked\"\n :label=\"label\"\n :messages=\"help\"\n density=\"compact\"\n ></v-checkbox>\n</template>\n"],"names":["checked","_useModel","_createBlock","_unref","VCheckbox","$event","__props"],"mappings":";;;;;;;;;;;;;;AAyBA,UAAMA,IAAUC,iBAA4B;2BAG1CC,EAKcC,EAAAC,CAAA,GAAA;AAAA,kBAJHJ,EAAA;AAAA,oDAAAA,EAAO,QAAAK;AAAA,MACf,OAAOC,EAAA;AAAA,MACP,UAAUA,EAAA;AAAA,MACX,SAAQ;AAAA,IAAA;;;"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as m, useModel as s, computed as d, openBlock as i, createBlock as p, unref as f, mergeModels as c } from "vue";
2
2
  import { t as V } from "./translations-CXVK8zyA.js";
3
3
  import { useI18n as y } from "vue-i18n";
4
- import { b } from "./index-B9wTHR2i.js";
4
+ import { b } from "./index-CXc6lLQs.js";
5
5
  const g = /* @__PURE__ */ m({
6
6
  __name: "x-file-input",
7
7
  props: /* @__PURE__ */ c({
@@ -37,4 +37,4 @@ const g = /* @__PURE__ */ m({
37
37
  export {
38
38
  g as default
39
39
  };
40
- //# sourceMappingURL=x-file-input-CML5cvDd.js.map
40
+ //# sourceMappingURL=x-file-input-DhBfxlD0.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-file-input-CML5cvDd.js","sources":["../src/vue/form/x-file-input.vue"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport messages from \"../../translations\";\nimport { computed } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VFileInput } from \"vuetify/components/VFileInput\";\nimport type { FileInputModel, TextFieldProps } from \"@xwiki/platform-dsapi\";\n\nconst { t } = useI18n({\n messages,\n});\n\nconst model = defineModel<FileInputModel>();\nconst props = defineProps<TextFieldProps>();\n\nconst rules = computed(() => {\n const rulesList = [];\n if (props.required) {\n rulesList.push((value: unknown) => {\n if (value) {\n return true;\n } else {\n return t(\"vuetify.file.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n\n<template>\n <v-file-input\n v-model=\"model\"\n :label=\"label\"\n :name=\"name\"\n :rules=\"rules\"\n ></v-file-input>\n</template>\n\n<style scoped></style>\n"],"names":["t","useI18n","messages","model","_useModel","props","__props","rules","computed","rulesList","value","_createBlock","_unref","VFileInput","$event"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,EAAE,GAAAA,EAAA,IAAMC,EAAQ;AAAA,MAAA,UACpBC;AAAAA,IAAA,CACD,GAEKC,IAAQC,iBAA4B,GACpCC,IAAQC,GAERC,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAA;AAClB,aAAIJ,EAAM,YACRI,EAAU,KAAK,CAACC,MACVA,IACK,KAEAV,EAAE,8BAA8B,CAE1C,GAEIS;AAAA,IACT,CAAC;2BAICE,EAKgBC,EAAAC,CAAA,GAAA;AAAA,kBAJLV,EAAA;AAAA,oDAAAA,EAAK,QAAAW;AAAA,MACb,OAAOR,EAAA;AAAA,MACP,MAAMA,EAAA;AAAA,MACN,OAAOC,EAAA;AAAA,IAAA;;;"}
1
+ {"version":3,"file":"x-file-input-DhBfxlD0.js","sources":["../src/vue/form/x-file-input.vue"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport messages from \"../../translations\";\nimport { computed } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VFileInput } from \"vuetify/components/VFileInput\";\nimport type { FileInputModel, TextFieldProps } from \"@xwiki/platform-dsapi\";\n\nconst { t } = useI18n({\n messages,\n});\n\nconst model = defineModel<FileInputModel>();\nconst props = defineProps<TextFieldProps>();\n\nconst rules = computed(() => {\n const rulesList = [];\n if (props.required) {\n rulesList.push((value: unknown) => {\n if (value) {\n return true;\n } else {\n return t(\"vuetify.file.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n\n<template>\n <v-file-input\n v-model=\"model\"\n :label=\"label\"\n :name=\"name\"\n :rules=\"rules\"\n ></v-file-input>\n</template>\n\n<style scoped></style>\n"],"names":["t","useI18n","messages","model","_useModel","props","__props","rules","computed","rulesList","value","_createBlock","_unref","VFileInput","$event"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,EAAE,GAAAA,EAAA,IAAMC,EAAQ;AAAA,MAAA,UACpBC;AAAAA,IAAA,CACD,GAEKC,IAAQC,iBAA4B,GACpCC,IAAQC,GAERC,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAA;AAClB,aAAIJ,EAAM,YACRI,EAAU,KAAK,CAACC,MACVA,IACK,KAEAV,EAAE,8BAA8B,CAE1C,GAEIS;AAAA,IACT,CAAC;2BAICE,EAKgBC,EAAAC,CAAA,GAAA;AAAA,kBAJLV,EAAA;AAAA,oDAAAA,EAAK,QAAAW;AAAA,MACb,OAAOR,EAAA;AAAA,MACP,MAAMA,EAAA;AAAA,MACN,OAAOC,EAAA;AAAA,IAAA;;;"}
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, ref as m, openBlock as f, createBlock as c, unref as u, withModifiers as d, withCtx as _, renderSlot as l } from "vue";
2
- import { V as p } from "./index-B9wTHR2i.js";
2
+ import { V as p } from "./index-CXc6lLQs.js";
3
3
  import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const x = /* @__PURE__ */ s({
5
5
  __name: "x-form",
@@ -30,4 +30,4 @@ const x = /* @__PURE__ */ s({
30
30
  export {
31
31
  y as default
32
32
  };
33
- //# sourceMappingURL=x-form-D-VwfKfq.js.map
33
+ //# sourceMappingURL=x-form-DVxY24K1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-form-D-VwfKfq.js","sources":["../src/vue/form/x-form.vue"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport { ref } from \"vue\";\nimport { VForm } from \"vuetify/components/VForm\";\nimport type { Ref } from \"vue\";\n\nconst form: Ref<VForm | undefined> = ref(undefined);\nconst emits = defineEmits([\"formSubmit\"]);\n\ndefineExpose({\n reset,\n});\n\nasync function reset() {\n form.value?.reset();\n}\n\nasync function submit() {\n const validation = await form.value?.validate();\n if (validation?.valid) {\n emits(\"formSubmit\");\n }\n}\n</script>\n\n<template>\n <v-form ref=\"form\" @submit.prevent=\"submit\">\n <slot></slot>\n </v-form>\n</template>\n\n<style scoped>\n.v-form {\n display: flex;\n flex-direction: column;\n gap: var(--cr-spacing-x-small);\n}\n</style>\n"],"names":["form","ref","emits","__emit","__expose","reset","submit","_createBlock","_unref","VForm","_renderSlot","_ctx"],"mappings":";;;;;;;AAwBA,UAAMA,IAA+BC,EAAI,MAAS,GAC5CC,IAAQC;AAEd,IAAAC,EAAa;AAAA,MACX,OAAAC;AAAA,IAAA,CACD;AAED,mBAAeA,IAAQ;AACrB,MAAAL,EAAK,OAAO,MAAA;AAAA,IACd;AAEA,mBAAeM,IAAS;AAEtB,OADmB,MAAMN,EAAK,OAAO,SAAA,IACrB,SACdE,EAAM,YAAY;AAAA,IAEtB;2BAIEK,EAESC,EAAAC,CAAA,GAAA;AAAA,eAFG;AAAA,MAAJ,KAAIT;AAAA,MAAQ,YAAgBM,GAAM,CAAA,SAAA,CAAA;AAAA,IAAA;iBACxC,MAAa;AAAA,QAAbI,EAAaC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA,MAAA;;;;;"}
1
+ {"version":3,"file":"x-form-DVxY24K1.js","sources":["../src/vue/form/x-form.vue"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport { ref } from \"vue\";\nimport { VForm } from \"vuetify/components/VForm\";\nimport type { Ref } from \"vue\";\n\nconst form: Ref<VForm | undefined> = ref(undefined);\nconst emits = defineEmits([\"formSubmit\"]);\n\ndefineExpose({\n reset,\n});\n\nasync function reset() {\n form.value?.reset();\n}\n\nasync function submit() {\n const validation = await form.value?.validate();\n if (validation?.valid) {\n emits(\"formSubmit\");\n }\n}\n</script>\n\n<template>\n <v-form ref=\"form\" @submit.prevent=\"submit\">\n <slot></slot>\n </v-form>\n</template>\n\n<style scoped>\n.v-form {\n display: flex;\n flex-direction: column;\n gap: var(--cr-spacing-x-small);\n}\n</style>\n"],"names":["form","ref","emits","__emit","__expose","reset","submit","_createBlock","_unref","VForm","_renderSlot","_ctx"],"mappings":";;;;;;;AAwBA,UAAMA,IAA+BC,EAAI,MAAS,GAC5CC,IAAQC;AAEd,IAAAC,EAAa;AAAA,MACX,OAAAC;AAAA,IAAA,CACD;AAED,mBAAeA,IAAQ;AACrB,MAAAL,EAAK,OAAO,MAAA;AAAA,IACd;AAEA,mBAAeM,IAAS;AAEtB,OADmB,MAAMN,EAAK,OAAO,SAAA,IACrB,SACdE,EAAM,YAAY;AAAA,IAEtB;2BAIEK,EAESC,EAAAC,CAAA,GAAA;AAAA,eAFG;AAAA,MAAJ,KAAIT;AAAA,MAAQ,YAAgBM,GAAM,CAAA,SAAA,CAAA;AAAA,IAAA;iBACxC,MAAa;AAAA,QAAbI,EAAaC,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA,MAAA;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as m, useModel as n, computed as d, openBlock as i, createBlock as c, unref as f, mergeModels as p } from "vue";
2
2
  import { t as V } from "./translations-CXVK8zyA.js";
3
3
  import { useI18n as b } from "vue-i18n";
4
- import { d as g } from "./index-B9wTHR2i.js";
4
+ import { d as g } from "./index-CXc6lLQs.js";
5
5
  const B = /* @__PURE__ */ m({
6
6
  __name: "x-select",
7
7
  props: /* @__PURE__ */ p({
@@ -36,4 +36,4 @@ const B = /* @__PURE__ */ m({
36
36
  export {
37
37
  B as default
38
38
  };
39
- //# sourceMappingURL=x-select-CR6Sivdt.js.map
39
+ //# sourceMappingURL=x-select-D3sY51DP.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-select-CR6Sivdt.js","sources":["../src/vue/form/x-select.vue"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script lang=\"ts\" setup>\nimport messages from \"../../translations\";\nimport { computed } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VSelect } from \"vuetify/components/VSelect\";\nimport type { SelectProps } from \"@xwiki/platform-dsapi\";\n\nconst props = defineProps<SelectProps>();\nconst selected = defineModel<string>();\n\nconst { t } = useI18n({\n messages,\n});\n\nconst rules = computed(() => {\n const rulesList = [];\n if (props.required) {\n rulesList.push((value: unknown) => {\n if (value) {\n return true;\n } else {\n return t(\"vuetify.select.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n<template>\n <v-select\n v-model=\"selected\"\n :label=\"label\"\n :messages=\"help\"\n :items=\"items\"\n :rules=\"rules\"\n :clearable=\"!required\"\n ></v-select>\n</template>\n"],"names":["props","__props","selected","_useModel","t","useI18n","messages","rules","computed","rulesList","value","_createBlock","_unref","VSelect","$event"],"mappings":";;;;;;;;;;;;;;;;;;AA0BA,UAAMA,IAAQC,GACRC,IAAWC,EAAmBF,GAAA,YAAC,GAE/B,EAAE,GAAAG,EAAA,IAAMC,EAAQ;AAAA,MAAA,UACpBC;AAAAA,IAAA,CACD,GAEKC,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAA;AAClB,aAAIT,EAAM,YACRS,EAAU,KAAK,CAACC,MACVA,IACK,KAEAN,EAAE,gCAAgC,CAE5C,GAEIK;AAAA,IACT,CAAC;2BAGCE,EAOYC,EAAAC,CAAA,GAAA;AAAA,kBANDX,EAAA;AAAA,oDAAAA,EAAQ,QAAAY;AAAA,MAChB,OAAOb,EAAA;AAAA,MACP,UAAUA,EAAA;AAAA,MACV,OAAOA,EAAA;AAAA,MACP,OAAOM,EAAA;AAAA,MACP,YAAYN,EAAA;AAAA,IAAA;;;"}
1
+ {"version":3,"file":"x-select-D3sY51DP.js","sources":["../src/vue/form/x-select.vue"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script lang=\"ts\" setup>\nimport messages from \"../../translations\";\nimport { computed } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VSelect } from \"vuetify/components/VSelect\";\nimport type { SelectProps } from \"@xwiki/platform-dsapi\";\n\nconst props = defineProps<SelectProps>();\nconst selected = defineModel<string>();\n\nconst { t } = useI18n({\n messages,\n});\n\nconst rules = computed(() => {\n const rulesList = [];\n if (props.required) {\n rulesList.push((value: unknown) => {\n if (value) {\n return true;\n } else {\n return t(\"vuetify.select.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n<template>\n <v-select\n v-model=\"selected\"\n :label=\"label\"\n :messages=\"help\"\n :items=\"items\"\n :rules=\"rules\"\n :clearable=\"!required\"\n ></v-select>\n</template>\n"],"names":["props","__props","selected","_useModel","t","useI18n","messages","rules","computed","rulesList","value","_createBlock","_unref","VSelect","$event"],"mappings":";;;;;;;;;;;;;;;;;;AA0BA,UAAMA,IAAQC,GACRC,IAAWC,EAAmBF,GAAA,YAAC,GAE/B,EAAE,GAAAG,EAAA,IAAMC,EAAQ;AAAA,MAAA,UACpBC;AAAAA,IAAA,CACD,GAEKC,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAA;AAClB,aAAIT,EAAM,YACRS,EAAU,KAAK,CAACC,MACVA,IACK,KAEAN,EAAE,gCAAgC,CAE5C,GAEIK;AAAA,IACT,CAAC;2BAGCE,EAOYC,EAAAC,CAAA,GAAA;AAAA,kBANDX,EAAA;AAAA,oDAAAA,EAAQ,QAAAY;AAAA,MAChB,OAAOb,EAAA;AAAA,MACP,UAAUA,EAAA;AAAA,MACV,OAAOA,EAAA;AAAA,MACP,OAAOM,EAAA;AAAA,MACP,YAAYN,EAAA;AAAA,IAAA;;;"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as s, useModel as d, computed as i, openBlock as m, createBlock as f, unref as p, withCtx as c, renderSlot as y, mergeModels as h } from "vue";
2
2
  import { t as V } from "./translations-CXVK8zyA.js";
3
3
  import { useI18n as x } from "vue-i18n";
4
- import { a as v } from "./index-B9wTHR2i.js";
4
+ import { a as v } from "./index-CXc6lLQs.js";
5
5
  const k = /* @__PURE__ */ s({
6
6
  __name: "x-text-field",
7
7
  props: /* @__PURE__ */ h({
@@ -47,4 +47,4 @@ const k = /* @__PURE__ */ s({
47
47
  export {
48
48
  k as default
49
49
  };
50
- //# sourceMappingURL=x-text-field-Jry4xfl_.js.map
50
+ //# sourceMappingURL=x-text-field-DDwIefcf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-text-field-Jry4xfl_.js","sources":["../src/vue/form/x-text-field.vue"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport messages from \"../../translations\";\nimport { computed } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VTextField } from \"vuetify/components/VTextField\";\nimport type { TextFieldProps } from \"@xwiki/platform-dsapi\";\n\nconst { t } = useI18n({\n messages,\n});\nconst props = defineProps<TextFieldProps>();\nconst input = defineModel<string>();\n\nconst rules = computed(() => {\n const rulesList = [];\n if (props.required) {\n rulesList.push((value: unknown) => {\n if (value) {\n return true;\n } else {\n return t(\"vuetify.text.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n\n<template>\n <v-text-field\n v-model=\"input\"\n :label=\"label\"\n :name=\"name\"\n :autofocus=\"autofocus\"\n :hint=\"help\"\n :persistent-hint=\"help !== undefined\"\n :rules=\"rules\"\n :readonly=\"readonly\"\n :type=\"type ?? 'text'\"\n >\n <template #default>\n <slot name=\"default\" />\n </template>\n </v-text-field>\n</template>\n\n<style scoped></style>\n"],"names":["t","useI18n","messages","props","__props","input","_useModel","rules","computed","rulesList","value","_createBlock","_unref","VTextField","$event","_renderSlot","_ctx"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,EAAE,GAAAA,EAAA,IAAMC,EAAQ;AAAA,MAAA,UACpBC;AAAAA,IAAA,CACD,GACKC,IAAQC,GACRC,IAAQC,EAAmBF,GAAA,YAAC,GAE5BG,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAA;AAClB,aAAIN,EAAM,YACRM,EAAU,KAAK,CAACC,MACVA,IACK,KAEAV,EAAE,8BAA8B,CAE1C,GAEIS;AAAA,IACT,CAAC;2BAICE,EAceC,EAAAC,CAAA,GAAA;AAAA,kBAbJR,EAAA;AAAA,oDAAAA,EAAK,QAAAS;AAAA,MACb,OAAOV,EAAA;AAAA,MACP,MAAMA,EAAA;AAAA,MACN,WAAWA,EAAA;AAAA,MACX,MAAMA,EAAA;AAAA,MACN,mBAAiBA,EAAA,SAAS;AAAA,MAC1B,OAAOG,EAAA;AAAA,MACP,UAAUH,EAAA;AAAA,MACV,MAAMA,EAAA,QAAI;AAAA,IAAA;MAEA,WACT,MAAuB;AAAA,QAAvBW,EAAuBC,EAAA,QAAA,SAAA;AAAA,MAAA;;;;;"}
1
+ {"version":3,"file":"x-text-field-DDwIefcf.js","sources":["../src/vue/form/x-text-field.vue"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\">\nimport messages from \"../../translations\";\nimport { computed } from \"vue\";\nimport { useI18n } from \"vue-i18n\";\nimport { VTextField } from \"vuetify/components/VTextField\";\nimport type { TextFieldProps } from \"@xwiki/platform-dsapi\";\n\nconst { t } = useI18n({\n messages,\n});\nconst props = defineProps<TextFieldProps>();\nconst input = defineModel<string>();\n\nconst rules = computed(() => {\n const rulesList = [];\n if (props.required) {\n rulesList.push((value: unknown) => {\n if (value) {\n return true;\n } else {\n return t(\"vuetify.text.input.mandatory\");\n }\n });\n }\n return rulesList;\n});\n</script>\n\n<template>\n <v-text-field\n v-model=\"input\"\n :label=\"label\"\n :name=\"name\"\n :autofocus=\"autofocus\"\n :hint=\"help\"\n :persistent-hint=\"help !== undefined\"\n :rules=\"rules\"\n :readonly=\"readonly\"\n :type=\"type ?? 'text'\"\n >\n <template #default>\n <slot name=\"default\" />\n </template>\n </v-text-field>\n</template>\n\n<style scoped></style>\n"],"names":["t","useI18n","messages","props","__props","input","_useModel","rules","computed","rulesList","value","_createBlock","_unref","VTextField","$event","_renderSlot","_ctx"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,EAAE,GAAAA,EAAA,IAAMC,EAAQ;AAAA,MAAA,UACpBC;AAAAA,IAAA,CACD,GACKC,IAAQC,GACRC,IAAQC,EAAmBF,GAAA,YAAC,GAE5BG,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAAY,CAAA;AAClB,aAAIN,EAAM,YACRM,EAAU,KAAK,CAACC,MACVA,IACK,KAEAV,EAAE,8BAA8B,CAE1C,GAEIS;AAAA,IACT,CAAC;2BAICE,EAceC,EAAAC,CAAA,GAAA;AAAA,kBAbJR,EAAA;AAAA,oDAAAA,EAAK,QAAAS;AAAA,MACb,OAAOV,EAAA;AAAA,MACP,MAAMA,EAAA;AAAA,MACN,WAAWA,EAAA;AAAA,MACX,MAAMA,EAAA;AAAA,MACN,mBAAiBA,EAAA,SAAS;AAAA,MAC1B,OAAOG,EAAA;AAAA,MACP,UAAUH,EAAA;AAAA,MACV,MAAMA,EAAA,QAAI;AAAA,IAAA;MAEA,WACT,MAAuB;AAAA,QAAvBW,EAAuBC,EAAA,QAAA,SAAA;AAAA,MAAA;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, useModel as s, ref as h, watch as C, openBlock as i, createBlock as k, unref as m, withCtx as b, createElementBlock as v, withModifiers as w, toDisplayString as u, mergeModels as x } from "vue";
2
- import { e as A } from "./index-B9wTHR2i.js";
2
+ import { e as A } from "./index-CXc6lLQs.js";
3
3
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const N = ["href", "onClick"], z = ["href", "onClick"], B = /* @__PURE__ */ y({
5
5
  __name: "x-tree",
@@ -67,4 +67,4 @@ const N = ["href", "onClick"], z = ["href", "onClick"], B = /* @__PURE__ */ y({
67
67
  export {
68
68
  T as default
69
69
  };
70
- //# sourceMappingURL=x-tree-CA7EaSo8.js.map
70
+ //# sourceMappingURL=x-tree-BDJznk7Y.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-tree-CA7EaSo8.js","sources":["../src/vue/x-tree.vue"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\" generic=\"T extends DisplayableTreeNode\">\nimport { ref, watch } from \"vue\";\nimport { VTreeview } from \"vuetify/components/VTreeview\";\nimport type { DisplayableTreeNode, TreeProps } from \"@xwiki/platform-dsapi\";\nimport type { Ref } from \"vue\";\n\nconst props = defineProps<TreeProps<T>>();\nconst opened = defineModel(\"opened\", { default: [], type: Array<string> });\nconst activated = defineModel<string | undefined>(\"activated\");\n\nconst activatedNodes: Ref<Array<string>> = ref([]);\n\nwatch(activated, resetActivated, { immediate: true });\n\nfunction resetActivated() {\n // Clicking on a node would activate it and this can't be disabled easily.\n // With this listener, we ensure that only the node we want stays active.\n activatedNodes.value = activated.value ? [activated.value] : [];\n}\n\nfunction updateActivated(newActivatedNode: DisplayableTreeNode) {\n if (newActivatedNode.activatable) {\n activated.value = newActivatedNode.id;\n }\n}\n\nasync function lazyLoadChildrenWrapper(node: unknown) {\n // We need this wrapper because our props are more specific than Vuetify's.\n await props.lazyLoadChildren!(node as T);\n}\n</script>\n\n<template>\n <v-treeview\n density=\"compact\"\n :activated=\"activatedNodes\"\n :items=\"showRootNode ? [rootNode] : rootNode.children\"\n :load-children=\"lazyLoadChildren ? lazyLoadChildrenWrapper : undefined\"\n activatable\n active-strategy=\"independent\"\n item-value=\"id\"\n v-model:opened=\"opened as string[]\"\n @update:opened=\"($event: string[]) => (opened = $event)\"\n @update:activated=\"resetActivated\"\n >\n <template #title=\"{ item }\">\n <a\n v-if=\"nodeClickAction\"\n :href=\"item.url\"\n @click.prevent=\"\n async () => {\n updateActivated(item);\n await nodeClickAction!(item as T);\n }\n \"\n >{{ item.label }}</a\n >\n <a v-else :href=\"item.url\" @click=\"updateActivated(item)\">{{\n item.label\n }}</a>\n </template>\n </v-treeview>\n</template>\n\n<style scoped>\n/* Remove the background color from the root div element. */\n.v-list {\n background: none;\n}\n:deep(a) {\n text-decoration: none;\n color: var(--cr-base-text-color);\n}\n/* Disable hover on items. */\n:deep(.v-list-item__overlay) {\n --v-hover-opacity: 0;\n}\n/* Disable hand cursor on items, since we disable the default click action. */\n:deep(.v-list-item--link) {\n cursor: default;\n}\n</style>\n"],"names":["props","__props","opened","_useModel","activated","activatedNodes","ref","watch","resetActivated","updateActivated","newActivatedNode","lazyLoadChildrenWrapper","node","_createBlock","_unref","VTreeview","$event","_withCtx","item","_createElementBlock","_withModifiers","_toDisplayString","_hoisted_1","_hoisted_2"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyBA,UAAMA,IAAQC,GACRC,IAASC,EAAWF,GAAC,QAA8C,GACnEG,IAAYD,KAAgC,WAAW,GAEvDE,IAAqCC,EAAI,EAAE;AAEjD,IAAAC,EAAMH,GAAWI,GAAgB,EAAE,WAAW,IAAM;AAEpD,aAASA,IAAiB;AAGxB,MAAAH,EAAe,QAAQD,EAAU,QAAQ,CAACA,EAAU,KAAK,IAAI,CAAA;AAAA,IAC/D;AAEA,aAASK,EAAgBC,GAAuC;AAC9D,MAAIA,EAAiB,gBACnBN,EAAU,QAAQM,EAAiB;AAAA,IAEvC;AAEA,mBAAeC,EAAwBC,GAAe;AAEpD,YAAMZ,EAAM,iBAAkBY,CAAS;AAAA,IACzC;2BAIEC,EA4BaC,EAAAC,CAAA,GAAA;AAAA,MA3BX,SAAQ;AAAA,MACP,WAAWV,EAAA;AAAA,MACX,OAAOJ,EAAA,eAAY,CAAIA,UAAQ,IAAIA,EAAA,SAAS;AAAA,MAC5C,iBAAeA,EAAA,mBAAmBU,IAA0B;AAAA,MAC7D,aAAA;AAAA,MACA,mBAAgB;AAAA,MAChB,cAAW;AAAA,MACH,QAAQT,EAAA;AAAA;+BAAAA,EAAA,QAAMc;AAAA,yBACLA,MAAsBd,EAAA,QAASc;AAAA,MAAA;AAAA,MAC/C,sBAAkBR;AAAA,IAAA;MAER,OAAKS,EACd,CAUC,EAXiB,MAAAC,QAAI;AAAA,QAEdjB,EAAA,wBADRkB,EAUC,KAAA;AAAA;UARE,MAAMD,EAAK;AAAA,UACX,SAAKE;AAAAA;AAA+C,cAAAX,EAAgBS,CAAI,GAAqB,MAAAjB,EAAA,gBAAiBiB,CAAI;AAAA;;;WAM/GG,EAAAH,EAAK,KAAK,GAAA,GAAAI,CAAA,WAEhBH,EAEM,KAAA;AAAA;UAFK,MAAMD,EAAK;AAAA,UAAM,SAAK,CAAAF,MAAEP,EAAgBS,CAAI;AAAA,QAAA,GACrDG,EAAAH,EAAK,KAAK,GAAA,GAAAK,CAAA;AAAA,MAAA;;;;;"}
1
+ {"version":3,"file":"x-tree-BDJznk7Y.js","sources":["../src/vue/x-tree.vue"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n<script setup lang=\"ts\" generic=\"T extends DisplayableTreeNode\">\nimport { ref, watch } from \"vue\";\nimport { VTreeview } from \"vuetify/components/VTreeview\";\nimport type { DisplayableTreeNode, TreeProps } from \"@xwiki/platform-dsapi\";\nimport type { Ref } from \"vue\";\n\nconst props = defineProps<TreeProps<T>>();\nconst opened = defineModel(\"opened\", { default: [], type: Array<string> });\nconst activated = defineModel<string | undefined>(\"activated\");\n\nconst activatedNodes: Ref<Array<string>> = ref([]);\n\nwatch(activated, resetActivated, { immediate: true });\n\nfunction resetActivated() {\n // Clicking on a node would activate it and this can't be disabled easily.\n // With this listener, we ensure that only the node we want stays active.\n activatedNodes.value = activated.value ? [activated.value] : [];\n}\n\nfunction updateActivated(newActivatedNode: DisplayableTreeNode) {\n if (newActivatedNode.activatable) {\n activated.value = newActivatedNode.id;\n }\n}\n\nasync function lazyLoadChildrenWrapper(node: unknown) {\n // We need this wrapper because our props are more specific than Vuetify's.\n await props.lazyLoadChildren!(node as T);\n}\n</script>\n\n<template>\n <v-treeview\n density=\"compact\"\n :activated=\"activatedNodes\"\n :items=\"showRootNode ? [rootNode] : rootNode.children\"\n :load-children=\"lazyLoadChildren ? lazyLoadChildrenWrapper : undefined\"\n activatable\n active-strategy=\"independent\"\n item-value=\"id\"\n v-model:opened=\"opened as string[]\"\n @update:opened=\"($event: string[]) => (opened = $event)\"\n @update:activated=\"resetActivated\"\n >\n <template #title=\"{ item }\">\n <a\n v-if=\"nodeClickAction\"\n :href=\"item.url\"\n @click.prevent=\"\n async () => {\n updateActivated(item);\n await nodeClickAction!(item as T);\n }\n \"\n >{{ item.label }}</a\n >\n <a v-else :href=\"item.url\" @click=\"updateActivated(item)\">{{\n item.label\n }}</a>\n </template>\n </v-treeview>\n</template>\n\n<style scoped>\n/* Remove the background color from the root div element. */\n.v-list {\n background: none;\n}\n:deep(a) {\n text-decoration: none;\n color: var(--cr-base-text-color);\n}\n/* Disable hover on items. */\n:deep(.v-list-item__overlay) {\n --v-hover-opacity: 0;\n}\n/* Disable hand cursor on items, since we disable the default click action. */\n:deep(.v-list-item--link) {\n cursor: default;\n}\n</style>\n"],"names":["props","__props","opened","_useModel","activated","activatedNodes","ref","watch","resetActivated","updateActivated","newActivatedNode","lazyLoadChildrenWrapper","node","_createBlock","_unref","VTreeview","$event","_withCtx","item","_createElementBlock","_withModifiers","_toDisplayString","_hoisted_1","_hoisted_2"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyBA,UAAMA,IAAQC,GACRC,IAASC,EAAWF,GAAC,QAA8C,GACnEG,IAAYD,KAAgC,WAAW,GAEvDE,IAAqCC,EAAI,EAAE;AAEjD,IAAAC,EAAMH,GAAWI,GAAgB,EAAE,WAAW,IAAM;AAEpD,aAASA,IAAiB;AAGxB,MAAAH,EAAe,QAAQD,EAAU,QAAQ,CAACA,EAAU,KAAK,IAAI,CAAA;AAAA,IAC/D;AAEA,aAASK,EAAgBC,GAAuC;AAC9D,MAAIA,EAAiB,gBACnBN,EAAU,QAAQM,EAAiB;AAAA,IAEvC;AAEA,mBAAeC,EAAwBC,GAAe;AAEpD,YAAMZ,EAAM,iBAAkBY,CAAS;AAAA,IACzC;2BAIEC,EA4BaC,EAAAC,CAAA,GAAA;AAAA,MA3BX,SAAQ;AAAA,MACP,WAAWV,EAAA;AAAA,MACX,OAAOJ,EAAA,eAAY,CAAIA,UAAQ,IAAIA,EAAA,SAAS;AAAA,MAC5C,iBAAeA,EAAA,mBAAmBU,IAA0B;AAAA,MAC7D,aAAA;AAAA,MACA,mBAAgB;AAAA,MAChB,cAAW;AAAA,MACH,QAAQT,EAAA;AAAA;+BAAAA,EAAA,QAAMc;AAAA,yBACLA,MAAsBd,EAAA,QAASc;AAAA,MAAA;AAAA,MAC/C,sBAAkBR;AAAA,IAAA;MAER,OAAKS,EACd,CAUC,EAXiB,MAAAC,QAAI;AAAA,QAEdjB,EAAA,wBADRkB,EAUC,KAAA;AAAA;UARE,MAAMD,EAAK;AAAA,UACX,SAAKE;AAAAA;AAA+C,cAAAX,EAAgBS,CAAI,GAAqB,MAAAjB,EAAA,gBAAiBiB,CAAI;AAAA;;;WAM/GG,EAAAH,EAAK,KAAK,GAAA,GAAAI,CAAA,WAEhBH,EAEM,KAAA;AAAA;UAFK,MAAMD,EAAK;AAAA,UAAM,SAAK,CAAAF,MAAEP,EAAgBS,CAAI;AAAA,QAAA,GACrDG,EAAAH,EAAK,KAAK,GAAA,GAAAK,CAAA;AAAA,MAAA;;;;;"}
@@ -0,0 +1,5 @@
1
+ {
2
+ "vuetify.file.input.mandatory": "Обов'язкове поле",
3
+ "vuetify.select.input.mandatory": "Обов'язкове поле",
4
+ "vuetify.text.input.mandatory": "Обов'язкове поле"
5
+ }