@nexdom/uimed-vue 2.0.0-beta.60 → 2.0.0-beta.61

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.
@@ -35,7 +35,9 @@ export type DataSetProps<T extends object> = {
35
35
  /**
36
36
  * List of actions about the whole list, such as creating a record, displayed
37
37
  * as buttons at the start of the bar above the records, before the search
38
- * field. Same shape as `USection`'s actions.
38
+ * field. Same shape as `USection`'s actions, but an action without `variant`
39
+ * is `secondary`, not `primary`, so it doesn't compete with the actions of the
40
+ * records; an action that sets `variant` keeps it.
39
41
  *
40
42
  * With the search field, the actions take the first half of the bar,
41
43
  * wrapping within it, or a line of their own when the data set isn't wide
@@ -45,18 +45,25 @@ var data_set_bar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
45
45
  cols: props.searchable ? props.cols : "12"
46
46
  }, {
47
47
  default: withCtx(() => [createVNode(row_default, null, {
48
- default: withCtx(() => [createCommentVNode(" Each action takes the full width of its column, which only stretches it below sm "), (openBlock(true), createElementBlock(Fragment, null, renderList(props.actions, ({ label, onClick, ...action }, index) => {
49
- return openBlock(), createBlock(column_default, {
50
- key: index,
51
- cols: "auto"
52
- }, {
53
- default: withCtx(() => [createVNode(button_default, mergeProps({ "full-width": "" }, { ref_for: true }, action, { onClick }), {
54
- default: withCtx(() => [createTextVNode(toDisplayString(label), 1)]),
48
+ default: withCtx(() => [
49
+ createCommentVNode(" Each action takes the full width of its column, which only stretches it below sm "),
50
+ createCommentVNode(" The list's actions are secondary unless they set a variant, so they don't compete with\n the actions of the records and of the sections "),
51
+ (openBlock(true), createElementBlock(Fragment, null, renderList(props.actions, ({ label, onClick, variant = "secondary", ...action }, index) => {
52
+ return openBlock(), createBlock(column_default, {
53
+ key: index,
54
+ cols: "auto"
55
+ }, {
56
+ default: withCtx(() => [createVNode(button_default, mergeProps({
57
+ "full-width": "",
58
+ variant
59
+ }, { ref_for: true }, action, { onClick }), {
60
+ default: withCtx(() => [createTextVNode(toDisplayString(label), 1)]),
61
+ _: 2
62
+ }, 1040, ["variant", "onClick"])]),
55
63
  _: 2
56
- }, 1040, ["onClick"])]),
57
- _: 2
58
- }, 1024);
59
- }), 128))]),
64
+ }, 1024);
65
+ }), 128))
66
+ ]),
60
67
  _: 1
61
68
  })]),
62
69
  _: 1
@@ -23,8 +23,8 @@ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import"
23
23
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
24
24
  }>, {
25
25
  variant: TextFieldVariant;
26
- clearable: boolean;
27
26
  type: TextFieldType;
27
+ clearable: boolean;
28
28
  }, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
29
29
  //#endregion
30
30
  export { _default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexdom/uimed-vue",
3
- "version": "2.0.0-beta.60",
3
+ "version": "2.0.0-beta.61",
4
4
  "description": "A ui framework for NEXDOM applications.",
5
5
  "keywords": [
6
6
  "lib",