sprintify-ui 0.9.6 → 0.9.7

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.
@@ -9373,90 +9373,27 @@ const T_ = {
9373
9373
  }), $_ = /* @__PURE__ */ oe({
9374
9374
  __name: "BaseBelongsToFetch",
9375
9375
  props: {
9376
- modelValue: {
9377
- default: void 0,
9378
- type: [String, Number, null]
9379
- },
9380
- url: {
9381
- required: !0,
9382
- type: String
9383
- },
9384
- showRouteUrl: {
9385
- default: void 0,
9386
- type: Function
9387
- },
9388
- primaryKey: {
9389
- default: "id",
9390
- type: String
9391
- },
9392
- field: {
9393
- required: !0,
9394
- type: String
9395
- },
9396
- required: {
9397
- default: !1,
9398
- type: Boolean
9399
- },
9400
- disabled: {
9401
- default: !1,
9402
- type: Boolean
9403
- },
9404
- name: {
9405
- default: void 0,
9406
- type: String
9407
- },
9408
- placeholder: {
9409
- default: void 0,
9410
- type: String
9411
- },
9412
- currentModel: {
9413
- default: void 0,
9414
- type: [Object, null, void 0]
9415
- },
9416
- hasError: {
9417
- default: !1,
9418
- type: Boolean
9419
- },
9420
- inline: {
9421
- default: !1,
9422
- type: Boolean
9423
- },
9424
- size: {
9425
- default: void 0,
9426
- type: String
9427
- },
9428
- dropdownShow: {
9429
- default: "focus",
9430
- type: String
9431
- },
9432
- showModelValue: {
9433
- default: !0,
9434
- type: Boolean
9435
- },
9436
- visibleFocus: {
9437
- default: !0,
9438
- type: Boolean
9439
- },
9440
- focusOnMount: {
9441
- default: !1,
9442
- type: Boolean
9443
- },
9444
- showEmptyOption: {
9445
- default: !1,
9446
- type: Boolean
9447
- },
9448
- showRemoveButton: {
9449
- default: !0,
9450
- type: Boolean
9451
- },
9452
- emptyOptionLabel: {
9453
- default: void 0,
9454
- type: String
9455
- },
9456
- select: {
9457
- default: void 0,
9458
- type: Object
9459
- }
9376
+ modelValue: { default: void 0 },
9377
+ url: {},
9378
+ showRouteUrl: { type: Function, default: void 0 },
9379
+ primaryKey: { default: "id" },
9380
+ field: {},
9381
+ required: { type: Boolean, default: !1 },
9382
+ disabled: { type: Boolean, default: !1 },
9383
+ name: { default: void 0 },
9384
+ placeholder: { default: void 0 },
9385
+ currentModel: { default: void 0 },
9386
+ hasError: { type: Boolean, default: !1 },
9387
+ inline: { type: Boolean, default: !1 },
9388
+ size: { default: void 0 },
9389
+ dropdownShow: { default: "focus" },
9390
+ showModelValue: { type: Boolean, default: !0 },
9391
+ visibleFocus: { type: Boolean, default: !0 },
9392
+ focusOnMount: { type: Boolean, default: !1 },
9393
+ showEmptyOption: { type: Boolean, default: !1 },
9394
+ showRemoveButton: { type: Boolean, default: !0 },
9395
+ emptyOptionLabel: { default: void 0 },
9396
+ select: { default: void 0 }
9460
9397
  },
9461
9398
  emits: ["update:modelValue"],
9462
9399
  setup(n, { expose: e, emit: t }) {
@@ -9522,24 +9459,24 @@ const T_ = {
9522
9459
  ref_key: "autocompleteFetch",
9523
9460
  ref: o,
9524
9461
  "model-value": b(l),
9525
- url: n.url,
9526
- disabled: n.disabled,
9527
- name: n.name,
9528
- placeholder: n.placeholder,
9529
- required: n.required,
9530
- "value-key": n.primaryKey,
9531
- "label-key": n.field,
9532
- "has-error": n.hasError,
9533
- inline: n.inline,
9534
- size: n.size,
9535
- "dropdown-show": n.dropdownShow,
9536
- "show-model-value": n.showModelValue,
9537
- "show-empty-option": n.showEmptyOption,
9538
- "show-remove-button": n.showRemoveButton,
9539
- "empty-option-label": n.emptyOptionLabel,
9540
- "visible-focus": n.visibleFocus,
9541
- "focus-on-mount": n.focusOnMount,
9542
- select: n.select,
9462
+ url: f.url,
9463
+ disabled: f.disabled,
9464
+ name: f.name,
9465
+ placeholder: f.placeholder,
9466
+ required: f.required,
9467
+ "value-key": f.primaryKey,
9468
+ "label-key": f.field,
9469
+ "has-error": f.hasError,
9470
+ inline: f.inline,
9471
+ size: f.size,
9472
+ "dropdown-show": f.dropdownShow,
9473
+ "show-model-value": f.showModelValue,
9474
+ "show-empty-option": f.showEmptyOption,
9475
+ "show-remove-button": f.showRemoveButton,
9476
+ "empty-option-label": f.emptyOptionLabel,
9477
+ "visible-focus": f.visibleFocus,
9478
+ "focus-on-mount": f.focusOnMount,
9479
+ select: f.select,
9543
9480
  "onUpdate:modelValue": u
9544
9481
  }, {
9545
9482
  option: te((p) => [
@@ -33864,7 +33801,7 @@ const KL = ["onClick"], QL = { class: "px-2 flex items-center" }, ZL = { class:
33864
33801
  ]])
33865
33802
  }, [
33866
33803
  (T(!0), $(qe, null, ot(u.attributes, (f) => (T(), ue(Go, {
33867
- key: f.label,
33804
+ key: f.label + f.icon,
33868
33805
  class: "flex items-center gap-1.5",
33869
33806
  visible: !!f.tooltip,
33870
33807
  text: f.tooltip,
@@ -387,92 +387,29 @@ declare function __VLS_template(): {
387
387
  attrs: Partial<{}>;
388
388
  };
389
389
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
390
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
391
- modelValue: {
392
- default: undefined;
393
- type: PropType<string | number | null | undefined>;
394
- };
395
- url: {
396
- required: true;
397
- type: StringConstructor;
398
- };
399
- showRouteUrl: {
400
- default: undefined;
401
- type: PropType<((id: string | number) => string) | undefined>;
402
- };
403
- primaryKey: {
404
- default: string;
405
- type: StringConstructor;
406
- };
407
- field: {
408
- required: true;
409
- type: StringConstructor;
410
- };
411
- required: {
412
- default: boolean;
413
- type: BooleanConstructor;
414
- };
415
- disabled: {
416
- default: boolean;
417
- type: BooleanConstructor;
418
- };
419
- name: {
420
- default: undefined;
421
- type: StringConstructor;
422
- };
423
- placeholder: {
424
- default: undefined;
425
- type: StringConstructor;
426
- };
427
- currentModel: {
428
- default: undefined;
429
- type: PropType<RawOption | null | undefined>;
430
- };
431
- hasError: {
432
- default: boolean;
433
- type: BooleanConstructor;
434
- };
435
- inline: {
436
- default: boolean;
437
- type: BooleanConstructor;
438
- };
439
- size: {
440
- default: undefined;
441
- type: PropType<Size>;
442
- };
443
- dropdownShow: {
444
- default: string;
445
- type: PropType<"focus" | "always">;
446
- };
447
- showModelValue: {
448
- default: boolean;
449
- type: BooleanConstructor;
450
- };
451
- visibleFocus: {
452
- default: boolean;
453
- type: BooleanConstructor;
454
- };
455
- focusOnMount: {
456
- default: boolean;
457
- type: BooleanConstructor;
458
- };
459
- showEmptyOption: {
460
- default: boolean;
461
- type: BooleanConstructor;
462
- };
463
- showRemoveButton: {
464
- default: boolean;
465
- type: BooleanConstructor;
466
- };
467
- emptyOptionLabel: {
468
- default: undefined;
469
- type: StringConstructor;
470
- };
471
- select: {
472
- default: undefined;
473
- type: PropType<SelectConfiguration | undefined>;
474
- };
475
- }>, {
390
+ declare const __VLS_component: import("vue").DefineComponent<{
391
+ modelValue?: string | number | null;
392
+ url: string;
393
+ showRouteUrl?: (id: string | number) => string;
394
+ primaryKey?: string;
395
+ field: string;
396
+ required?: boolean;
397
+ disabled?: boolean;
398
+ name?: string;
399
+ placeholder?: string;
400
+ currentModel?: RawOption | null | undefined;
401
+ hasError?: boolean;
402
+ inline?: boolean;
403
+ size?: Size;
404
+ dropdownShow?: "focus" | "always";
405
+ showModelValue?: boolean;
406
+ visibleFocus?: boolean;
407
+ focusOnMount?: boolean;
408
+ showEmptyOption?: boolean;
409
+ showRemoveButton?: boolean;
410
+ emptyOptionLabel?: string;
411
+ select?: SelectConfiguration;
412
+ }, {
476
413
  focus: () => void | undefined;
477
414
  blur: () => void | undefined;
478
415
  open: () => void | undefined;
@@ -480,114 +417,51 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
480
417
  setKeywords: (input: string) => void | undefined;
481
418
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
482
419
  "update:modelValue": (...args: any[]) => void;
483
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
484
- modelValue: {
485
- default: undefined;
486
- type: PropType<string | number | null | undefined>;
487
- };
488
- url: {
489
- required: true;
490
- type: StringConstructor;
491
- };
492
- showRouteUrl: {
493
- default: undefined;
494
- type: PropType<((id: string | number) => string) | undefined>;
495
- };
496
- primaryKey: {
497
- default: string;
498
- type: StringConstructor;
499
- };
500
- field: {
501
- required: true;
502
- type: StringConstructor;
503
- };
504
- required: {
505
- default: boolean;
506
- type: BooleanConstructor;
507
- };
508
- disabled: {
509
- default: boolean;
510
- type: BooleanConstructor;
511
- };
512
- name: {
513
- default: undefined;
514
- type: StringConstructor;
515
- };
516
- placeholder: {
517
- default: undefined;
518
- type: StringConstructor;
519
- };
520
- currentModel: {
521
- default: undefined;
522
- type: PropType<RawOption | null | undefined>;
523
- };
524
- hasError: {
525
- default: boolean;
526
- type: BooleanConstructor;
527
- };
528
- inline: {
529
- default: boolean;
530
- type: BooleanConstructor;
531
- };
532
- size: {
533
- default: undefined;
534
- type: PropType<Size>;
535
- };
536
- dropdownShow: {
537
- default: string;
538
- type: PropType<"focus" | "always">;
539
- };
540
- showModelValue: {
541
- default: boolean;
542
- type: BooleanConstructor;
543
- };
544
- visibleFocus: {
545
- default: boolean;
546
- type: BooleanConstructor;
547
- };
548
- focusOnMount: {
549
- default: boolean;
550
- type: BooleanConstructor;
551
- };
552
- showEmptyOption: {
553
- default: boolean;
554
- type: BooleanConstructor;
555
- };
556
- showRemoveButton: {
557
- default: boolean;
558
- type: BooleanConstructor;
559
- };
560
- emptyOptionLabel: {
561
- default: undefined;
562
- type: StringConstructor;
563
- };
564
- select: {
565
- default: undefined;
566
- type: PropType<SelectConfiguration | undefined>;
567
- };
568
- }>> & Readonly<{
420
+ }, string, import("vue").PublicProps, Readonly<{
421
+ modelValue?: string | number | null;
422
+ url: string;
423
+ showRouteUrl?: (id: string | number) => string;
424
+ primaryKey?: string;
425
+ field: string;
426
+ required?: boolean;
427
+ disabled?: boolean;
428
+ name?: string;
429
+ placeholder?: string;
430
+ currentModel?: RawOption | null | undefined;
431
+ hasError?: boolean;
432
+ inline?: boolean;
433
+ size?: Size;
434
+ dropdownShow?: "focus" | "always";
435
+ showModelValue?: boolean;
436
+ visibleFocus?: boolean;
437
+ focusOnMount?: boolean;
438
+ showEmptyOption?: boolean;
439
+ showRemoveButton?: boolean;
440
+ emptyOptionLabel?: string;
441
+ select?: SelectConfiguration;
442
+ }> & Readonly<{
569
443
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
570
444
  }>, {
571
- select: SelectConfiguration | undefined;
445
+ select: SelectConfiguration;
572
446
  required: boolean;
573
- size: "xs" | "sm" | "md" | "lg" | "xl";
447
+ size: Size;
574
448
  name: string;
575
449
  disabled: boolean;
576
450
  inline: boolean;
577
- modelValue: string | number | null | undefined;
451
+ modelValue: string | number | null;
578
452
  placeholder: string;
579
453
  hasError: boolean;
580
454
  visibleFocus: boolean;
581
- dropdownShow: "always" | "focus";
455
+ dropdownShow: "focus" | "always";
582
456
  showModelValue: boolean;
583
457
  focusOnMount: boolean;
584
458
  showEmptyOption: boolean;
585
459
  showRemoveButton: boolean;
586
460
  emptyOptionLabel: string;
587
461
  primaryKey: string;
588
- showRouteUrl: ((id: string | number) => string) | undefined;
589
- currentModel: RawOption | null | undefined;
590
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
462
+ showRouteUrl: (id: string | number) => string;
463
+ currentModel: RawOption | null;
464
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
591
465
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
592
466
  export default _default;
593
467
  type __VLS_WithTemplateSlots<T, S> = T & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && vue-tsc && vite build",
@@ -52,94 +52,52 @@ import { RawOption, SelectConfiguration } from '@/types';
52
52
  import { Size } from '@/utils/sizes';
53
53
  import { debounce, isObject } from 'lodash';
54
54
 
55
- const props = defineProps({
56
- modelValue: {
57
- default: undefined,
58
- type: [String, Number, null] as PropType<
59
- string | number | null | undefined
60
- >,
61
- },
62
- url: {
63
- required: true,
64
- type: String,
65
- },
66
- showRouteUrl: {
67
- default: undefined,
68
- type: Function as PropType<((id: string | number) => string) | undefined>,
69
- },
70
- primaryKey: {
71
- default: 'id',
72
- type: String,
73
- },
74
- field: {
75
- required: true,
76
- type: String,
77
- },
78
- required: {
79
- default: false,
80
- type: Boolean,
81
- },
82
- disabled: {
83
- default: false,
84
- type: Boolean,
85
- },
86
- name: {
87
- default: undefined,
88
- type: String,
89
- },
90
- placeholder: {
91
- default: undefined,
92
- type: String,
93
- },
94
- currentModel: {
95
- default: undefined,
96
- type: [Object, null, undefined] as PropType<RawOption | null | undefined>,
97
- },
98
- hasError: {
99
- default: false,
100
- type: Boolean,
101
- },
102
- inline: {
103
- default: false,
104
- type: Boolean,
105
- },
106
- size: {
107
- default: undefined,
108
- type: String as PropType<Size>,
109
- },
110
- dropdownShow: {
111
- default: 'focus',
112
- type: String as PropType<'focus' | 'always'>,
113
- },
114
- showModelValue: {
115
- default: true,
116
- type: Boolean,
117
- },
118
- visibleFocus: {
119
- default: true,
120
- type: Boolean,
121
- },
122
- focusOnMount: {
123
- default: false,
124
- type: Boolean,
125
- },
126
- showEmptyOption: {
127
- default: false,
128
- type: Boolean,
129
- },
130
- showRemoveButton: {
131
- default: true,
132
- type: Boolean,
133
- },
134
- emptyOptionLabel: {
135
- default: undefined,
136
- type: String,
137
- },
138
- select: {
139
- default: undefined,
140
- type: Object as PropType<SelectConfiguration | undefined>,
141
- },
142
- });
55
+ const props = withDefaults(
56
+ defineProps<{
57
+ modelValue?: string | number | null;
58
+ url: string;
59
+ showRouteUrl?: (id: string | number) => string;
60
+ primaryKey?: string;
61
+ field: string;
62
+ required?: boolean;
63
+ disabled?: boolean;
64
+ name?: string;
65
+ placeholder?: string;
66
+ currentModel?: RawOption | null | undefined;
67
+ hasError?: boolean;
68
+ inline?: boolean;
69
+ size?: Size;
70
+ dropdownShow?: 'focus' | 'always';
71
+ showModelValue?: boolean;
72
+ visibleFocus?: boolean;
73
+ focusOnMount?: boolean;
74
+ showEmptyOption?: boolean;
75
+ showRemoveButton?: boolean;
76
+ emptyOptionLabel?: string;
77
+ select?: SelectConfiguration;
78
+ }>(),
79
+ {
80
+ modelValue: undefined,
81
+ showRouteUrl: undefined,
82
+ primaryKey: 'id',
83
+ required: false,
84
+ disabled: false,
85
+ name: undefined,
86
+ placeholder: undefined,
87
+ currentModel: undefined,
88
+ hasError: false,
89
+ inline: false,
90
+ size: undefined,
91
+ dropdownShow: 'focus',
92
+ showModelValue: true,
93
+ visibleFocus: true,
94
+ focusOnMount: false,
95
+ showEmptyOption: false,
96
+ showRemoveButton: true,
97
+ emptyOptionLabel: undefined,
98
+ select: undefined,
99
+ }
100
+ );
143
101
 
144
102
  const http = config.http;
145
103
 
@@ -43,7 +43,7 @@
43
43
  >
44
44
  <BaseTooltip
45
45
  v-for="attribute in attributes"
46
- :key="attribute.label"
46
+ :key="attribute.label + attribute.icon"
47
47
  class="flex items-center gap-1.5"
48
48
  :visible="!!attribute.tooltip"
49
49
  :text="attribute.tooltip"