comand-component-library 4.1.69 → 4.1.70

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.
@@ -1291,6 +1291,9 @@ const jl = {
1291
1291
  type: Array,
1292
1292
  required: !0
1293
1293
  },
1294
+ allowEditComponent: {
1295
+ type: Boolean
1296
+ },
1294
1297
  allowAddComponent: {
1295
1298
  type: Boolean
1296
1299
  },
@@ -1553,7 +1556,7 @@ function ls(e, n, t, s, i, o) {
1553
1556
  h(d, { iconClass: "icon-trash" })
1554
1557
  ], 10, es)
1555
1558
  ]),
1556
- o.isOuterComponent ? m("", !0) : (l(), r("li", ts, [
1559
+ t.allowEditComponent ? (l(), r("li", ts, [
1557
1560
  a("a", {
1558
1561
  class: _(["icon-hexagon use-icon-as-background button cancel", { disabled: !o.editing }]),
1559
1562
  href: "#",
@@ -1562,8 +1565,8 @@ function ls(e, n, t, s, i, o) {
1562
1565
  }, [
1563
1566
  h(d, { iconClass: "icon-cancel" })
1564
1567
  ], 2)
1565
- ])),
1566
- o.isOuterComponent ? m("", !0) : (l(), r("li", ns, [
1568
+ ])) : m("", !0),
1569
+ t.allowEditComponent ? (l(), r("li", ns, [
1567
1570
  o.editing ? (l(), r("a", {
1568
1571
  key: 0,
1569
1572
  class: "icon-hexagon use-icon-as-background button confirm",
@@ -1581,7 +1584,7 @@ function ls(e, n, t, s, i, o) {
1581
1584
  }, [
1582
1585
  h(d, { iconClass: "icon-edit" })
1583
1586
  ], 10, os))
1584
- ]))
1587
+ ])) : m("", !0)
1585
1588
  ], 40, Ql), [
1586
1589
  [be, o.active]
1587
1590
  ])
@@ -18556,7 +18559,7 @@ function c1(e, n, t, s, i, o) {
18556
18559
  })
18557
18560
  ], 64);
18558
18561
  }
18559
- const bo = /* @__PURE__ */ P(e1, [["render", c1]]), u1 = "comand-component-library", m1 = "4.1.69", h1 = "GPL-3.0-only", p1 = "CoManD-UI", f1 = "module", g1 = {
18562
+ const bo = /* @__PURE__ */ P(e1, [["render", c1]]), u1 = "comand-component-library", m1 = "4.1.70", h1 = "GPL-3.0-only", p1 = "CoManD-UI", f1 = "module", g1 = {
18560
18563
  prepublishOnly: "npm run build-lib",
18561
18564
  dev: "vite",
18562
18565
  build: "vite build",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.1.69",
3
+ "version": "4.1.70",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
@@ -117,7 +117,7 @@
117
117
  <!-- end delete -->
118
118
 
119
119
  <!-- begin edit/save -->
120
- <li v-if="!isOuterComponent">
120
+ <li v-if="allowEditComponent">
121
121
  <a :class="['icon-hexagon use-icon-as-background button cancel', {disabled: !editing}]"
122
122
  href="#"
123
123
  @click.prevent="cancelComponent"
@@ -125,7 +125,7 @@
125
125
  <CmdIcon iconClass="icon-cancel"/>
126
126
  </a>
127
127
  </li>
128
- <li v-if="!isOuterComponent">
128
+ <li v-if="allowEditComponent">
129
129
  <a v-if="editing"
130
130
  class="icon-hexagon use-icon-as-background button confirm" href="#"
131
131
  @click.prevent="saveComponent"
@@ -177,6 +177,9 @@ export default {
177
177
  type: Array,
178
178
  required: true
179
179
  },
180
+ allowEditComponent: {
181
+ type: Boolean
182
+ },
180
183
  allowAddComponent: {
181
184
  type: Boolean
182
185
  },