@rettangoli/ui 1.7.0 → 1.7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rettangoli/ui",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "A UI component library for building web interfaces.",
5
5
  "main": "dist/rettangoli-esm.min.js",
6
6
  "type": "module",
@@ -273,7 +273,7 @@ export const selectViewData = ({ state, props }) => {
273
273
  showAddOption: true,
274
274
  addOptionLabel: props.addOption?.label || "Add tag",
275
275
  hasDraftChanges,
276
- submitDisabled: isDisabled || !hasDraftChanges,
276
+ submitDisabled: isDisabled,
277
277
  submitLabel: "Save",
278
278
  };
279
279
  };
@@ -38,7 +38,7 @@ template:
38
38
  - 'rtgl-tag#tag${tag.selectionIndex} data-selection-index=${tag.selectionIndex} pre=${tag.icon} data-testid=${tag.testId} v=mu style="${triggerTagStyle}"':
39
39
  ${tag.label}
40
40
  - 'div#${popoverKey} style="display: contents;"':
41
- - rtgl-popover#popover ?open=${isOpen} x=${position.x} y=${position.y} place=bs content-w=${position.w} content-g=sm content-sv=true content-pv=sm:
41
+ - rtgl-popover#popover ?open=${isOpen} x=${position.x} y=${position.y} place=bs content-w=${position.w} content-g=sm content-sv=true content-ph=md content-pv=md:
42
42
  - $if !hasSelectableOptions:
43
43
  - rtgl-text s=sm c=mu-fg: No tags available
44
44
  - rtgl-view d=h wrap g=sm w=f:
@@ -136,6 +136,7 @@ class RettangoliPopoverElement extends HTMLElement {
136
136
  "content-wh",
137
137
  "content-g",
138
138
  "content-sv",
139
+ "content-ph",
139
140
  "content-pv",
140
141
  "content-bgc",
141
142
  "content-style",
@@ -232,7 +233,7 @@ class RettangoliPopoverElement extends HTMLElement {
232
233
  }
233
234
 
234
235
  wrapper.setAttribute("bgc", this.getAttribute("content-bgc") || "su");
235
- wrapper.setAttribute("ph", "sm");
236
+ wrapper.setAttribute("ph", this.getAttribute("content-ph") || "sm");
236
237
  wrapper.setAttribute("pv", this.getAttribute("content-pv") || "sm");
237
238
 
238
239
  const contentStyle = this.getAttribute("content-style");