sprintify-ui 0.6.4 → 0.6.5

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.
@@ -8,13 +8,6 @@ declare const _default: import("vue").DefineComponent<{
8
8
  type: import("vue").PropType<ActionItem[]>;
9
9
  default: undefined;
10
10
  };
11
- attributes: {
12
- type: import("vue").PropType<{
13
- icon: string;
14
- label: string;
15
- }[]>;
16
- default: undefined;
17
- };
18
11
  breadcrumbs: {
19
12
  type: import("vue").PropType<Breadcrumb[]>;
20
13
  default: undefined;
@@ -23,6 +16,13 @@ declare const _default: import("vue").DefineComponent<{
23
16
  type: import("vue").PropType<"default" | "compact">;
24
17
  default: string;
25
18
  };
19
+ attributes: {
20
+ type: import("vue").PropType<{
21
+ icon: string;
22
+ label: string;
23
+ }[]>;
24
+ default: undefined;
25
+ };
26
26
  subtitle: {
27
27
  type: import("vue").PropType<string>;
28
28
  default: undefined;
@@ -48,13 +48,6 @@ declare const _default: import("vue").DefineComponent<{
48
48
  type: import("vue").PropType<ActionItem[]>;
49
49
  default: undefined;
50
50
  };
51
- attributes: {
52
- type: import("vue").PropType<{
53
- icon: string;
54
- label: string;
55
- }[]>;
56
- default: undefined;
57
- };
58
51
  breadcrumbs: {
59
52
  type: import("vue").PropType<Breadcrumb[]>;
60
53
  default: undefined;
@@ -63,6 +56,13 @@ declare const _default: import("vue").DefineComponent<{
63
56
  type: import("vue").PropType<"default" | "compact">;
64
57
  default: string;
65
58
  };
59
+ attributes: {
60
+ type: import("vue").PropType<{
61
+ icon: string;
62
+ label: string;
63
+ }[]>;
64
+ default: undefined;
65
+ };
66
66
  subtitle: {
67
67
  type: import("vue").PropType<string>;
68
68
  default: undefined;
@@ -81,12 +81,12 @@ declare const _default: import("vue").DefineComponent<{
81
81
  };
82
82
  }>>, {
83
83
  actions: ActionItem[];
84
+ breadcrumbs: Breadcrumb[];
85
+ layout: 'default' | 'compact';
84
86
  attributes: {
85
87
  icon: string;
86
88
  label: string;
87
89
  }[];
88
- breadcrumbs: Breadcrumb[];
89
- layout: 'default' | 'compact';
90
90
  subtitle: string;
91
91
  badge: {
92
92
  icon: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -105,8 +105,6 @@ const { nameInternal, requiredInternal, hasErrorInternal, emitUpdate } =
105
105
  emit: emit,
106
106
  });
107
107
 
108
- const options = ref<HTMLOptionElement[]>([]);
109
-
110
108
  function isEmptyExternal(value: string | number | null | undefined) {
111
109
  if (value === undefined || value === EMPTY_VALUE_EXTERNAL) {
112
110
  return true;
@@ -132,46 +130,9 @@ const modelValueInternal = computed(() => {
132
130
  return EMPTY_VALUE_INTERNAL;
133
131
  }
134
132
 
135
- if (!checkIfModelValueIsValid()) {
136
- return EMPTY_VALUE_INTERNAL;
137
- }
138
-
139
133
  return props.modelValue;
140
134
  });
141
135
 
142
- /**
143
- * Checks if the current modelValue is valid
144
- */
145
- useMutationObserver(
146
- select,
147
- () => {
148
- options.value = getOptions();
149
- },
150
- { attributes: false, childList: true }
151
- );
152
-
153
- onMounted(() => {
154
- options.value = getOptions();
155
- });
156
-
157
- function getOptions(): HTMLOptionElement[] {
158
- return [...(select.value?.options ?? [])];
159
- }
160
-
161
- function checkIfModelValueIsValid(): boolean {
162
- if (props.modelValue === EMPTY_VALUE_EXTERNAL) {
163
- return true;
164
- }
165
-
166
- if (props.options && props.options.length) {
167
- return props.options.some((o) =>
168
- isEqual(o[props.valueKey as any], props.modelValue)
169
- );
170
- }
171
-
172
- return options.value.some((o) => isEqual(o.value, props.modelValue));
173
- }
174
-
175
136
  /**
176
137
  *
177
138
  * Emit change while mutating internal empty value ''