@nexdom/uimed-vue 1.1.0-beta.2 → 1.1.0-beta.3
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.
- package/dist/components.d.ts +131 -10
- package/dist/components.js +77 -6
- package/package.json +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -22,11 +22,11 @@ type RootProps = {
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/root | Root Guide}
|
|
24
24
|
*/
|
|
25
|
-
declare const _default$
|
|
26
|
-
declare const __VLS_export$
|
|
25
|
+
declare const _default$3: typeof __VLS_export$5;
|
|
26
|
+
declare const __VLS_export$5: __VLS_WithSlots$4<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<RootProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<RootProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
27
27
|
default?: (props: {}) => any;
|
|
28
28
|
}>;
|
|
29
|
-
type __VLS_WithSlots$
|
|
29
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
30
30
|
new (): {
|
|
31
31
|
$slots: S;
|
|
32
32
|
};
|
|
@@ -80,15 +80,15 @@ type BtnProps = {
|
|
|
80
80
|
*
|
|
81
81
|
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/btn | Btn Guide}
|
|
82
82
|
*/
|
|
83
|
-
declare const _default: typeof __VLS_export$
|
|
84
|
-
declare const __VLS_export$
|
|
83
|
+
declare const _default: typeof __VLS_export$4;
|
|
84
|
+
declare const __VLS_export$4: __VLS_WithSlots$3<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<BtnProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
|
|
85
85
|
click: (event: MouseEvent) => any;
|
|
86
86
|
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<BtnProps> & Readonly<{
|
|
87
87
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
88
88
|
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
89
89
|
default?: (props: {}) => any;
|
|
90
90
|
}>;
|
|
91
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
91
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
92
92
|
new (): {
|
|
93
93
|
$slots: S;
|
|
94
94
|
};
|
|
@@ -164,8 +164,8 @@ type TextFieldProps = {
|
|
|
164
164
|
*
|
|
165
165
|
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/text-field | TextField Guide}
|
|
166
166
|
*/
|
|
167
|
-
declare const _default$
|
|
168
|
-
declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<TextFieldProps & {
|
|
167
|
+
declare const _default$5: typeof __VLS_export$3;
|
|
168
|
+
declare const __VLS_export$3: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<TextFieldProps & {
|
|
169
169
|
modelValue?: string;
|
|
170
170
|
}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
|
|
171
171
|
"update:modelValue": (value: string) => any;
|
|
@@ -173,6 +173,127 @@ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import"
|
|
|
173
173
|
modelValue?: string;
|
|
174
174
|
}> & Readonly<{
|
|
175
175
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
176
|
-
}>, {
|
|
176
|
+
}>, {
|
|
177
|
+
clearable: boolean;
|
|
178
|
+
}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/components/grid/container/types.d.ts
|
|
181
|
+
/**
|
|
182
|
+
* Props exposed by the {@link Container} component.
|
|
183
|
+
*/
|
|
184
|
+
type ContainerProps = {
|
|
185
|
+
/**
|
|
186
|
+
* Component id to use on automated tests.
|
|
187
|
+
*/
|
|
188
|
+
dataTestid?: string;
|
|
189
|
+
};
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region src/components/grid/container/container.vue.d.ts
|
|
192
|
+
/**
|
|
193
|
+
* Container component to be placed at the top of the component tree.
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```vue
|
|
197
|
+
* <container>
|
|
198
|
+
* <!-- uimed-components -->
|
|
199
|
+
* </container>
|
|
200
|
+
* ```
|
|
201
|
+
*
|
|
202
|
+
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/layout | Container Guide}
|
|
203
|
+
*/
|
|
204
|
+
declare const _default$2: typeof __VLS_export$2;
|
|
205
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<ContainerProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
206
|
+
default?: (props: {}) => any;
|
|
207
|
+
}>;
|
|
208
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
209
|
+
new (): {
|
|
210
|
+
$slots: S;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region src/components/grid/row/types.d.ts
|
|
215
|
+
/**
|
|
216
|
+
* Props exposed by the {@link Row} component.
|
|
217
|
+
*/
|
|
218
|
+
type RowProps = {
|
|
219
|
+
/**
|
|
220
|
+
* Component id to use on automated tests.
|
|
221
|
+
*/
|
|
222
|
+
dataTestid?: string;
|
|
223
|
+
};
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region src/components/grid/row/row.vue.d.ts
|
|
226
|
+
/**
|
|
227
|
+
* Row component to be placed within a container.
|
|
228
|
+
*
|
|
229
|
+
* @example
|
|
230
|
+
* ```vue
|
|
231
|
+
* <container>
|
|
232
|
+
* <row>
|
|
233
|
+
* <!-- uimed-column -->
|
|
234
|
+
* </row>
|
|
235
|
+
* </container>
|
|
236
|
+
* ```
|
|
237
|
+
*
|
|
238
|
+
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/layout | Row Guide}
|
|
239
|
+
*/
|
|
240
|
+
declare const _default$4: typeof __VLS_export$1;
|
|
241
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<RowProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<RowProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
242
|
+
default?: (props: {}) => any;
|
|
243
|
+
}>;
|
|
244
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
245
|
+
new (): {
|
|
246
|
+
$slots: S;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region src/components/grid/column/types.d.ts
|
|
251
|
+
/**
|
|
252
|
+
* Props exposed by the {@link Col} component.
|
|
253
|
+
*/
|
|
254
|
+
type ColumnProps = {
|
|
255
|
+
/**
|
|
256
|
+
* Number of columns to stretch the component.
|
|
257
|
+
* Available options are:
|
|
258
|
+
* - `"auto"`: which won't try to stretch the component
|
|
259
|
+
* - `"1"` to `"12"`.
|
|
260
|
+
* @default "12"
|
|
261
|
+
*/
|
|
262
|
+
cols?: Cols;
|
|
263
|
+
/**
|
|
264
|
+
* Component id to use on automated tests.
|
|
265
|
+
*/
|
|
266
|
+
dataTestid?: string;
|
|
267
|
+
};
|
|
268
|
+
type Cols = "auto" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
|
|
269
|
+
//#endregion
|
|
270
|
+
//#region src/components/grid/column/column.vue.d.ts
|
|
271
|
+
/**
|
|
272
|
+
* Column component to be placed within a row.
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* ```vue
|
|
276
|
+
* <container>
|
|
277
|
+
* <row>
|
|
278
|
+
* <col>
|
|
279
|
+
* <!-- uimed-components -->
|
|
280
|
+
* </col>
|
|
281
|
+
* </row>
|
|
282
|
+
* </container>
|
|
283
|
+
* ```
|
|
284
|
+
*
|
|
285
|
+
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/layout | Column Guide}
|
|
286
|
+
*/
|
|
287
|
+
declare const _default$1: typeof __VLS_export;
|
|
288
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<ColumnProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<ColumnProps> & Readonly<{}>, {
|
|
289
|
+
cols: "12" | "auto" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11";
|
|
290
|
+
}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
291
|
+
default?: (props: {}) => any;
|
|
292
|
+
}>;
|
|
293
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
294
|
+
new (): {
|
|
295
|
+
$slots: S;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
177
298
|
//#endregion
|
|
178
|
-
export { _default as Btn, _default$1 as
|
|
299
|
+
export { _default as Btn, _default$1 as Column, _default$2 as Container, _default$3 as Root, _default$4 as Row, _default$5 as TextField };
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed, createBlock,
|
|
2
|
-
import { VApp, VBtn, VTextField } from "vuetify/components";
|
|
1
|
+
import { computed, createBlock, defineComponent, mergeModels, openBlock, renderSlot, toValue, unref, useModel, withCtx } from "vue";
|
|
2
|
+
import { VApp, VBtn, VCol, VContainer, VRow, VTextField } from "vuetify/components";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/components/root/root.vue
|
|
5
5
|
var root_default = /* @__PURE__ */ defineComponent({
|
|
@@ -154,7 +154,7 @@ var text_field_default = /* @__PURE__ */ defineComponent({
|
|
|
154
154
|
clearable: {
|
|
155
155
|
type: Boolean,
|
|
156
156
|
required: false,
|
|
157
|
-
default:
|
|
157
|
+
default: void 0
|
|
158
158
|
},
|
|
159
159
|
readonly: {
|
|
160
160
|
type: Boolean,
|
|
@@ -186,10 +186,10 @@ var text_field_default = /* @__PURE__ */ defineComponent({
|
|
|
186
186
|
emits: ["update:modelValue"],
|
|
187
187
|
setup(__props) {
|
|
188
188
|
const modelValue = useModel(__props, "modelValue");
|
|
189
|
-
const props =
|
|
189
|
+
const props = __props;
|
|
190
190
|
const vuetifyVariant = useTextFieldVariant(() => props.variant);
|
|
191
191
|
const vuetifyType = useTextFieldType(() => props.type);
|
|
192
|
-
const computedClearable = computed(() =>
|
|
192
|
+
const computedClearable = computed(() => props.clearable ?? props.type === "search");
|
|
193
193
|
return (_ctx, _cache) => {
|
|
194
194
|
return openBlock(), createBlock(unref(VTextField), {
|
|
195
195
|
modelValue: modelValue.value,
|
|
@@ -221,4 +221,75 @@ var text_field_default = /* @__PURE__ */ defineComponent({
|
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
//#endregion
|
|
224
|
-
|
|
224
|
+
//#region src/components/grid/container/container.vue
|
|
225
|
+
var container_default = /* @__PURE__ */ defineComponent({
|
|
226
|
+
inheritAttrs: false,
|
|
227
|
+
__name: "container",
|
|
228
|
+
props: { dataTestid: {
|
|
229
|
+
type: String,
|
|
230
|
+
required: false
|
|
231
|
+
} },
|
|
232
|
+
setup(__props) {
|
|
233
|
+
const props = __props;
|
|
234
|
+
return (_ctx, _cache) => {
|
|
235
|
+
return openBlock(), createBlock(unref(VContainer), {
|
|
236
|
+
"data-testid": props.dataTestid,
|
|
237
|
+
fluid: ""
|
|
238
|
+
}, {
|
|
239
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
240
|
+
_: 3
|
|
241
|
+
}, 8, ["data-testid"]);
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region src/components/grid/row/row.vue
|
|
247
|
+
var row_default = /* @__PURE__ */ defineComponent({
|
|
248
|
+
inheritAttrs: false,
|
|
249
|
+
__name: "row",
|
|
250
|
+
props: { dataTestid: {
|
|
251
|
+
type: String,
|
|
252
|
+
required: false
|
|
253
|
+
} },
|
|
254
|
+
setup(__props) {
|
|
255
|
+
const props = __props;
|
|
256
|
+
return (_ctx, _cache) => {
|
|
257
|
+
return openBlock(), createBlock(unref(VRow), { "data-testid": props.dataTestid }, {
|
|
258
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
259
|
+
_: 3
|
|
260
|
+
}, 8, ["data-testid"]);
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region src/components/grid/column/column.vue
|
|
266
|
+
var column_default = /* @__PURE__ */ defineComponent({
|
|
267
|
+
inheritAttrs: false,
|
|
268
|
+
__name: "column",
|
|
269
|
+
props: {
|
|
270
|
+
cols: {
|
|
271
|
+
type: String,
|
|
272
|
+
required: false,
|
|
273
|
+
default: "12"
|
|
274
|
+
},
|
|
275
|
+
dataTestid: {
|
|
276
|
+
type: String,
|
|
277
|
+
required: false
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
setup(__props) {
|
|
281
|
+
const props = __props;
|
|
282
|
+
return (_ctx, _cache) => {
|
|
283
|
+
return openBlock(), createBlock(unref(VCol), {
|
|
284
|
+
cols: "12",
|
|
285
|
+
sm: props.cols,
|
|
286
|
+
"data-testid": props.dataTestid
|
|
287
|
+
}, {
|
|
288
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
289
|
+
_: 3
|
|
290
|
+
}, 8, ["sm", "data-testid"]);
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
//#endregion
|
|
295
|
+
export { btn_default as Btn, column_default as Column, container_default as Container, root_default as Root, row_default as Row, text_field_default as TextField };
|