@pageboard/html 0.15.9 → 0.15.11

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/elements/card.js CHANGED
@@ -4,9 +4,6 @@ exports.cards = {
4
4
  icon: '<i class="icon address card outline"></i>',
5
5
  group: "block",
6
6
  contents: "(card|cardlink)+",
7
- upgrade: {
8
- 'data.columnCount' : 'data.columns'
9
- },
10
7
  properties: {
11
8
  columns: {
12
9
  title: 'Column count',
@@ -16,9 +16,6 @@ exports.consent_form = {
16
16
  id: "content",
17
17
  nodes: "block+"
18
18
  },
19
- upgrade: {
20
- 'content.': 'content.content'
21
- },
22
19
  html: `<form is="element-consent" class="ui form" data-transient="[transient]">
23
20
  <x[transient|alt:template:div|at:-] block-content="content"></x[transient|alt:template:div|at:-]>
24
21
  </form>`,
@@ -32,9 +32,6 @@ exports.units = {
32
32
  exports.layout = {
33
33
  title: "Layout",
34
34
  icon: '<i class="icon move"></i>',
35
- upgrade: {
36
- 'data.invert': 'data.background.invert'
37
- },
38
35
  properties: {
39
36
  horizontal: {
40
37
  title: 'Horizontal',
package/elements/menu.js CHANGED
@@ -2,9 +2,6 @@ exports.menu = {
2
2
  title: "Menu",
3
3
  icon: '<b class="icon">Menu</b>',
4
4
  menu: "link",
5
- upgrade: {
6
- 'content.items': 'content.'
7
- },
8
5
  contents: "(menu_item|menu_group)+",
9
6
  properties: {
10
7
  direction: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pageboard/html",
3
- "version": "0.15.9",
3
+ "version": "0.15.11",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "repository": {
package/ui/image.js CHANGED
@@ -86,8 +86,8 @@ const HTMLElementImageConstructor = Superclass => class extends Superclass {
86
86
  }
87
87
  d.width ??= constructor.defaultWidth || "";
88
88
  d.height ??= constructor.defaultHeight || "";
89
- if (w) image.width = w || d.width;
90
- if (h) image.height = h || d.height;
89
+ image.width = w || d.width;
90
+ image.height = h || d.height;
91
91
  image.alt = d.alt ?? "";
92
92
  const cur = currentSrc;
93
93
  if (!cur) {
package/ui/textarea.js CHANGED
@@ -1,18 +1,15 @@
1
1
  class HTMLElementTextArea extends Page.create(HTMLTextAreaElement) {
2
- handleChange(e, state) {
3
- this.#resize(state);
2
+ set value(str) {
3
+ super.value = str;
4
+ this.#resize();
4
5
  }
5
- handleInput(e, state) {
6
- this.#resize(state);
6
+ handleInput() {
7
+ this.#resize();
7
8
  }
8
- setup(state) {
9
- this.#resize(state);
9
+ setup() {
10
+ this.#resize();
10
11
  }
11
- #resize(state) {
12
- if (state.scope.$write) {
13
- delete this.style.height;
14
- return;
15
- }
12
+ #resize() {
16
13
  requestAnimationFrame(() => {
17
14
  this.style.height = 0;
18
15
  this.style.height = `calc(${this.scrollHeight}px + 1em)`;