@arbocollab/arbo-web-scene 0.26.5-alpha.44 → 0.26.5-alpha.46

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/es/index.es.js CHANGED
@@ -51370,11 +51370,11 @@ const bgn = {
51370
51370
  (s = (a = e == null ? void 0 : e.config) == null ? void 0 : a.globalProperties) == null || s.setStoreValue("scene", "setCurrentSceneTabId", o);
51371
51371
  }
51372
51372
  return e.config.globalProperties.setStoreValue = r, e.config.globalProperties.handleSetTab = i, { handleSetTab: i };
51373
- }, Egn = "0.26.5-alpha.44", xgn = {
51373
+ }, Egn = "0.26.5-alpha.46", xgn = {
51374
51374
  "@arbocollab/arbo-chart-component": "1.0.1",
51375
51375
  "@arbocollab/arbo-comment-utils": "1.0.1",
51376
51376
  "@arbocollab/arbo-common-utils": "npm:@arbocollab/arbo-common-utils@0.0.12-alpha.0",
51377
- "@arbocollab/arbo-media-player-component": "0.0.8",
51377
+ "@arbocollab/arbo-media-player-component": "0.0.9",
51378
51378
  "@arbocollab/arbo-table-component": "1.0.1",
51379
51379
  "@arbocollab/arbo-ui-components": "npm:@arbocollab/arbo-ui-components-beta@0.0.376-alpha.109",
51380
51380
  "@arbocollab/arbo-calendar-component": "0.0.38",
@@ -204085,11 +204085,11 @@ const OLr = /* @__PURE__ */ pi(DLr, [["render", ALr], ["__scopeId", "data-v-4a44
204085
204085
  return kft(C, "white") ? "#f3f5f8" : "white";
204086
204086
  }), w = async (C) => {
204087
204087
  var x, E, T;
204088
- if (C == a.value || C == null || !g.value) {
204089
- c.value = (x = o.value) == null ? void 0 : x.find((O) => O.id === a.value);
204088
+ if (console.log("nextStatus", C), C.id == a.value || C == null || !g.value) {
204089
+ c.value = (x = o.value) == null ? void 0 : x.find((O) => O.id === a.value), console.log("status not changed or no permission,", C, a.value, g.value);
204090
204090
  return;
204091
204091
  }
204092
- const y = (E = o == null ? void 0 : o.value) == null ? void 0 : E.find((O) => O.id === C);
204092
+ const y = (E = o == null ? void 0 : o.value) == null ? void 0 : E.find((O) => O.id === C.id);
204093
204093
  y && (f.value = !0, (await d({ template_flow_status_id: y.id })).success ? (c.value = y, await i(), s.value === "home" && m()) : c.value = (T = o.value) == null ? void 0 : T.find((A) => A.id === a.value), f.value = !1);
204094
204094
  };
204095
204095
  gt(a, () => {
@@ -204111,15 +204111,12 @@ function RLr(e, t, n, r, i, o) {
204111
204111
  class: $e(["arbo-status-button", { "status-disabled": !r.canUpdate }]),
204112
204112
  style: pn({ borderColor: r.borderColor }),
204113
204113
  disable: !r.canUpdate || r.props.disabled,
204114
- modelValue: r._status,
204115
- "onUpdate:modelValue": [
204116
- t[0] || (t[0] = (a) => r._status = a),
204117
- r.handleUpdateStatus
204118
- ],
204114
+ "model-value": r._status,
204119
204115
  options: r.allStatus,
204116
+ "onUpdate:modelValue": r.handleUpdateStatus,
204120
204117
  withNextBtn: !0,
204121
204118
  loading: r.isUpdating
204122
- }, null, 8, ["style", "class", "disable", "modelValue", "options", "loading"]);
204119
+ }, null, 8, ["style", "class", "disable", "model-value", "options", "loading"]);
204123
204120
  }
204124
204121
  const $Lr = /* @__PURE__ */ pi(ILr, [["render", RLr], ["__scopeId", "data-v-c28bbc90"], ["__file", "/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-footer/SceneFooter.vue"]]), XDt = () => {
204125
204122
  const e = wd(), t = Eo(), {
@@ -205029,31 +205026,31 @@ const rFr = /* @__PURE__ */ pi(qLr, [["render", nFr], ["__scopeId", "data-v-b99b
205029
205026
  emits: ["addFile"],
205030
205027
  setup(e, { expose: t, emit: n }) {
205031
205028
  t();
205032
- const r = {
205033
- SIZE: "File exceeds 5MB.",
205034
- TYPE: "File format not supported.",
205035
- DIFF: "Mixed file formats are not supported."
205036
- }, i = e, o = n, a = (h, f) => {
205037
- if (i.canDrop && h) {
205038
- const g = Tft({
205039
- files: h,
205040
- allowedTypes: i.fileType,
205041
- sizeLimit: i.sizeLimit,
205042
- allowMixedFileType: i.allowMixedFileType,
205043
- isRenditionFile: i.isRenditionFile
205029
+ const r = e, i = n, o = (d, h) => {
205030
+ if (console.log("onDropFile", d, h), !!r.canDrop && d) {
205031
+ const f = Tft({
205032
+ files: d,
205033
+ allowedTypes: r.fileType,
205034
+ sizeLimit: r.sizeLimit,
205035
+ allowMixedFileType: r.allowMixedFileType,
205036
+ isRenditionFile: r.isRenditionFile
205044
205037
  });
205045
- let m = [];
205046
- Object.keys(g.errors).forEach((b) => {
205047
- m.push(...g.errors[b]);
205048
- }), m.length > 0 && (m = Array.from(new Set(m)), m.forEach((b) => {
205049
- Eo().showMessage(i.errorMessage[b], "error");
205050
- })), o("addFile", g.resultFiles, f);
205051
- }
205052
- }, s = G(() => i.canDrop ? i.fileType : []), l = K(), { isOverDropZone: u } = F1n(l, {
205053
- onDrop: a,
205054
- dataTypes: s.value
205055
- }), c = G(() => u.value == !0 || i.showDropZone == !0), d = { errorMessageComment: r, props: i, emits: o, onDropFile: a, computedDataTypes: s, dropZoneRef: l, isOverDropZoneComment: u, isShowDropZone: c };
205056
- return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
205038
+ let g = [];
205039
+ Object.keys(f.errors).forEach((m) => {
205040
+ g.push(...f.errors[m]);
205041
+ }), g.length > 0 && (g = Array.from(new Set(g)), g.forEach((m) => {
205042
+ Eo().showMessage(r.errorMessage[m], "error");
205043
+ })), i("addFile", f.resultFiles, h);
205044
+ }
205045
+ }, a = G(() => r.canDrop ? r.fileType : []), s = K(), { isOverDropZone: l } = F1n(s, {
205046
+ onDrop: o,
205047
+ dataTypes: a.value
205048
+ }), u = G(() => l.value == !0 || r.showDropZone == !0);
205049
+ yn(() => {
205050
+ console.log("DropArea props", { props: r, computedDataTypes: a });
205051
+ });
205052
+ const c = { props: r, emits: i, onDropFile: o, computedDataTypes: a, dropZoneRef: s, isOverDropZoneComment: l, isShowDropZone: u };
205053
+ return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
205057
205054
  }
205058
205055
  }), oFr = { class: "icon" }, aFr = { class: "text" };
205059
205056
  function sFr(e, t, n, r, i, o) {
@@ -324077,9 +324074,9 @@ var rCi = {
324077
324074
  E(A.value.src, A.value.name);
324078
324075
  }, h = K(), f = K(!1), g = function() {
324079
324076
  var F = h.value;
324080
- F && (f.value ? document.exitFullscreen().then(function() {
324081
- f.value = !1;
324082
- }) : (f.value = !0, F.requestFullscreen()));
324077
+ console.log("Toggling fullscreen for player:", document.fullscreenElement), F && (document.fullscreenElement ? document.exitFullscreen().catch(function() {
324078
+ }) : F.requestFullscreen().catch(function() {
324079
+ }));
324083
324080
  }, m = function() {
324084
324081
  u();
324085
324082
  }, b = function() {
@@ -324202,6 +324199,11 @@ var rCi = {
324202
324199
  index: s.value,
324203
324200
  state: tO({}, A.value)
324204
324201
  });
324202
+ }), yn(function() {
324203
+ document.addEventListener("fullscreenchange", function() {
324204
+ var B = !!document.fullscreenElement;
324205
+ f.value = B;
324206
+ });
324205
324207
  }), function(B, F) {
324206
324208
  var z = us("arbo-tooltip");
324207
324209
  return j(), se(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arbocollab/arbo-web-scene",
3
3
  "description": "Arbo Web Scene",
4
- "version": "0.26.5-alpha.44",
4
+ "version": "0.26.5-alpha.46",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "scripts": {