comand-component-library 4.1.69 → 4.1.71

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,10 @@ const jl = {
1291
1291
  type: Array,
1292
1292
  required: !0
1293
1293
  },
1294
+ allowEditComponent: {
1295
+ type: Boolean,
1296
+ default: !0
1297
+ },
1294
1298
  allowAddComponent: {
1295
1299
  type: Boolean
1296
1300
  },
@@ -1553,7 +1557,7 @@ function ls(e, n, t, s, i, o) {
1553
1557
  h(d, { iconClass: "icon-trash" })
1554
1558
  ], 10, es)
1555
1559
  ]),
1556
- o.isOuterComponent ? m("", !0) : (l(), r("li", ts, [
1560
+ t.allowEditComponent ? (l(), r("li", ts, [
1557
1561
  a("a", {
1558
1562
  class: _(["icon-hexagon use-icon-as-background button cancel", { disabled: !o.editing }]),
1559
1563
  href: "#",
@@ -1562,8 +1566,8 @@ function ls(e, n, t, s, i, o) {
1562
1566
  }, [
1563
1567
  h(d, { iconClass: "icon-cancel" })
1564
1568
  ], 2)
1565
- ])),
1566
- o.isOuterComponent ? m("", !0) : (l(), r("li", ns, [
1569
+ ])) : m("", !0),
1570
+ t.allowEditComponent ? (l(), r("li", ns, [
1567
1571
  o.editing ? (l(), r("a", {
1568
1572
  key: 0,
1569
1573
  class: "icon-hexagon use-icon-as-background button confirm",
@@ -1581,7 +1585,7 @@ function ls(e, n, t, s, i, o) {
1581
1585
  }, [
1582
1586
  h(d, { iconClass: "icon-edit" })
1583
1587
  ], 10, os))
1584
- ]))
1588
+ ])) : m("", !0)
1585
1589
  ], 40, Ql), [
1586
1590
  [be, o.active]
1587
1591
  ])
@@ -18556,7 +18560,7 @@ function c1(e, n, t, s, i, o) {
18556
18560
  })
18557
18561
  ], 64);
18558
18562
  }
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 = {
18563
+ const bo = /* @__PURE__ */ P(e1, [["render", c1]]), u1 = "comand-component-library", m1 = "4.1.71", h1 = "GPL-3.0-only", p1 = "CoManD-UI", f1 = "module", g1 = {
18560
18564
  prepublishOnly: "npm run build-lib",
18561
18565
  dev: "vite",
18562
18566
  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.71",
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,10 @@ export default {
177
177
  type: Array,
178
178
  required: true
179
179
  },
180
+ allowEditComponent: {
181
+ type: Boolean,
182
+ default: true
183
+ },
180
184
  allowAddComponent: {
181
185
  type: Boolean
182
186
  },