ablok-components 0.3.134 → 0.3.136

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.
@@ -2,6 +2,6 @@ import e from "../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "./base-camera.vue_vue_type_script_setup_true_lang.js";
3
3
  /* empty css */
4
4
  //#region src/components/molecules/base-camera/base-camera.vue
5
- var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-6eb2389c"]]);
5
+ var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-67efb17e"]]);
6
6
  //#endregion
7
7
  export { n as default };
@@ -119,6 +119,10 @@ declare const __VLS_export: import('../../../../vue/dist/vue.esm-bundler.js').De
119
119
  type: StringConstructor;
120
120
  default: string;
121
121
  };
122
+ screenFlashFullscreen: {
123
+ type: BooleanConstructor;
124
+ default: boolean;
125
+ };
122
126
  enableShutterAnimation: {
123
127
  type: BooleanConstructor;
124
128
  default: boolean;
@@ -279,6 +283,10 @@ declare const __VLS_export: import('../../../../vue/dist/vue.esm-bundler.js').De
279
283
  type: StringConstructor;
280
284
  default: string;
281
285
  };
286
+ screenFlashFullscreen: {
287
+ type: BooleanConstructor;
288
+ default: boolean;
289
+ };
282
290
  enableShutterAnimation: {
283
291
  type: BooleanConstructor;
284
292
  default: boolean;
@@ -309,6 +317,7 @@ declare const __VLS_export: import('../../../../vue/dist/vue.esm-bundler.js').De
309
317
  enableControls: boolean;
310
318
  enableScreenFlash: boolean;
311
319
  screenFlashColor: string;
320
+ screenFlashFullscreen: boolean;
312
321
  enableShutterAnimation: boolean;
313
322
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, any>;
314
323
  declare const _default: typeof __VLS_export;
@@ -3,50 +3,50 @@ import t from "../input-dropdown/input-dropdown.js";
3
3
  import { captureFrame as n, exportCanvas as r } from "../../../utilities/camera/capture.js";
4
4
  import { useCamera as i } from "../../../composables/useCamera.js";
5
5
  import a from "../camera-preview/camera-preview.js";
6
- import ee from "../../atoms/zoom-slider/zoom-slider.js";
7
- import o from "../../../assets/img/guide.js";
8
- import { Transition as te, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, normalizeStyle as ne, onMounted as m, onScopeDispose as re, openBlock as h, ref as g, toDisplayString as _, unref as v, watch as y, withCtx as b } from "vue";
6
+ import o from "../../atoms/zoom-slider/zoom-slider.js";
7
+ import s from "../../../assets/img/guide.js";
8
+ import { Teleport as ee, Transition as te, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, normalizeStyle as g, onMounted as _, onScopeDispose as ne, openBlock as v, ref as y, toDisplayString as b, unref as x, watch as S, withCtx as C } from "vue";
9
9
  //#region src/components/molecules/base-camera/base-camera.vue?vue&type=script&setup=true&lang.ts
10
- var ie = {
10
+ var re = {
11
11
  class: "base-camera position-relative w-100 user-select-none",
12
12
  "data-bs-theme": "dark"
13
- }, ae = ["src"], oe = { class: "position-absolute top-0 start-0 end-0 d-flex justify-content-between align-items-start p-2 gap-2" }, se = { key: 1 }, ce = ["disabled"], le = {
13
+ }, ie = ["src"], ae = { class: "position-absolute top-0 start-0 end-0 d-flex align-items-start p-2 gap-2 base-camera__top-bar" }, oe = { class: "base-camera__select-col" }, se = { key: 1 }, ce = { class: "d-flex align-items-center ms-auto gap-2" }, le = ["aria-label"], ue = ["disabled"], de = {
14
14
  key: 1,
15
15
  class: "position-absolute top-0 start-0 w-100 h-100 d-flex flex-column align-items-center justify-content-center text-center p-3 bg-black bg-opacity-50"
16
- }, ue = {
16
+ }, fe = {
17
17
  key: 0,
18
18
  class: "spinner-border text-light",
19
19
  role: "status"
20
- }, de = {
20
+ }, pe = {
21
21
  key: 1,
22
22
  class: "alert alert-danger py-2 px-3 mb-0 small"
23
- }, fe = { class: "mb-2" }, pe = { class: "position-absolute bottom-0 start-0 end-0 p-3 d-flex flex-column gap-2 align-items-center" }, me = {
23
+ }, me = { class: "mb-2" }, he = { class: "position-absolute bottom-0 start-0 end-0 p-3 d-flex flex-column gap-2 align-items-center" }, ge = {
24
24
  key: 0,
25
25
  class: "d-flex align-items-center justify-content-center gap-4 w-100"
26
- }, he = ["disabled", "aria-label"], ge = {
26
+ }, w = ["disabled", "aria-label"], _e = {
27
27
  key: 0,
28
28
  viewBox: "0 0 24 24",
29
29
  width: "22",
30
30
  height: "22",
31
31
  fill: "currentColor",
32
32
  "aria-hidden": "true"
33
- }, _e = {
33
+ }, ve = {
34
34
  key: 1,
35
35
  viewBox: "0 0 24 24",
36
36
  width: "22",
37
37
  height: "22",
38
38
  fill: "currentColor",
39
39
  "aria-hidden": "true"
40
- }, ve = ["disabled"], ye = ["aria-label"], be = {
40
+ }, ye = ["disabled"], be = {
41
41
  key: 2,
42
42
  class: "base-camera__countdown-overlay",
43
43
  role: "status",
44
44
  "aria-live": "polite",
45
45
  "aria-atomic": "true"
46
- }, x = ["data-countdown"], S = {
46
+ }, xe = ["data-countdown"], Se = {
47
47
  key: 0,
48
48
  class: "base-camera__zoom"
49
- }, C = /*@__PURE__*/ p({
49
+ }, T = /*@__PURE__*/ m({
50
50
  __name: "base-camera",
51
51
  props: {
52
52
  modelValue: { type: null },
@@ -154,7 +154,7 @@ var ie = {
154
154
  },
155
155
  guideSrc: {
156
156
  type: String,
157
- default: o
157
+ default: s
158
158
  },
159
159
  enableControls: {
160
160
  type: Boolean,
@@ -168,6 +168,10 @@ var ie = {
168
168
  type: String,
169
169
  default: "#FFFFFF"
170
170
  },
171
+ screenFlashFullscreen: {
172
+ type: Boolean,
173
+ default: !1
174
+ },
171
175
  enableShutterAnimation: {
172
176
  type: Boolean,
173
177
  default: !0
@@ -180,226 +184,240 @@ var ie = {
180
184
  "error",
181
185
  "state"
182
186
  ],
183
- setup(o, { expose: p, emit: C }) {
184
- let w = o, T = C, E = g(null), D = s(() => E.value?.videoEl ?? null), O = s(() => w.resolutions[w.ratio] ?? {
187
+ setup(s, { expose: m, emit: T }) {
188
+ let E = s, D = T, O = y(null), k = c(() => O.value?.videoEl ?? null), A = c(() => E.resolutions[E.ratio] ?? {
185
189
  width: 720,
186
190
  height: 960
187
- }), k = i({
188
- preferredFacing: w.defaultRearCamera ? "environment" : "user",
189
- resolution: O.value,
190
- videoRef: D,
191
- onWarning: (e) => T("error", e)
192
- }), A = s(() => w.enableMirrorCamera && k.activeFacing.value !== "environment"), j = s(() => w.enableSelectDevice && k.devices.value.length > 1), M = s(() => w.enableSwitchCamera && k.canSwitch.value), N = s(() => w.enableZoomSlider && k.zoomCapability.value !== null), P = s(() => k.isLive.value || k.isPaused.value), F = g(!1), I = g(0), L = g(!1), R = g(0), z = g(!1), B = g(0), V = g(w.enableScreenFlash);
193
- y(() => w.enableScreenFlash, (e) => {
194
- V.value = e;
191
+ }), j = i({
192
+ preferredFacing: E.defaultRearCamera ? "environment" : "user",
193
+ resolution: A.value,
194
+ videoRef: k,
195
+ onWarning: (e) => D("error", e)
196
+ }), M = c(() => E.enableMirrorCamera && j.activeFacing.value !== "environment"), Ce = c(() => E.enableSelectDevice && j.devices.value.length > 1), we = c(() => E.enableSwitchCamera && j.canSwitch.value), Te = c(() => E.enableZoomSlider && j.zoomCapability.value !== null), N = c(() => j.isLive.value || j.isPaused.value), P = y(!1), F = y(0), I = y(!1), L = y(0), R = y(!1), z = y(0), B = y(E.enableScreenFlash);
197
+ S(() => E.enableScreenFlash, (e) => {
198
+ B.value = e;
195
199
  });
196
- let H = null, U = null, W = null, G = null, K = null, q = null, J = null, Y = !1, X = g(w.zoom);
197
- y(() => w.zoom, (e) => {
200
+ let V = null, H = null, U = null, W = null, G = null, K = null, q = null, J = null, Y = !1, X = y(E.zoom);
201
+ S(() => E.zoom, (e) => {
198
202
  X.value = e;
199
- }), y(X, (e) => {
200
- k.setZoom(e), e !== w.zoom && T("update:zoom", e);
201
- }), y(k.zoom, (e) => {
202
- k.zoomCapability.value && e !== X.value && (X.value = e);
203
- }), y(k.zoomCapability, (e) => {
204
- e && k.setZoom(X.value);
205
- }), y(k.state, (e) => T("state", e)), y(k.error, (e) => {
206
- e && T("error", e);
207
- }), y(O, (e) => void k.setResolution(e)), m(() => {
208
- w.autoStart && k.start();
209
- }), re(() => {
210
- Y = !0, U && clearTimeout(U), W && clearTimeout(W), G && clearTimeout(G), U = null, W = null, G = null, J?.(!1), J = null, Z(), I.value = 0, L.value = !1, z.value = !1;
203
+ }), S(X, (e) => {
204
+ j.setZoom(e), e !== E.zoom && D("update:zoom", e);
205
+ }), S(j.zoom, (e) => {
206
+ j.zoomCapability.value && e !== X.value && (X.value = e);
207
+ }), S(j.zoomCapability, (e) => {
208
+ e && j.setZoom(X.value);
209
+ }), S(j.state, (e) => D("state", e)), S(j.error, (e) => {
210
+ e && D("error", e);
211
+ }), S(A, (e) => void j.setResolution(e)), _(() => {
212
+ E.autoStart && j.start();
213
+ }), ne(() => {
214
+ Y = !0, H && clearTimeout(H), U && clearTimeout(U), G && clearTimeout(G), H = null, U = null, G = null, J?.(!1), J = null, Z(), Q(), F.value = 0, I.value = !1, R.value = !1;
211
215
  });
212
- function xe() {
213
- w.enableShutterAnimation && (W && clearTimeout(W), R.value++, L.value = !0, W = setTimeout(() => {
214
- W = null, L.value = !1;
215
- }, 650));
216
- }
217
216
  function Z() {
218
- K && clearTimeout(K), K = null, q?.(), q = null;
217
+ U && clearTimeout(U), U = null, I.value = !1, W?.(), W = null;
218
+ }
219
+ function Ee() {
220
+ if (!E.enableShutterAnimation) return Promise.resolve();
221
+ Z(), L.value++, I.value = !0;
222
+ let e = new Promise((e) => {
223
+ W = e;
224
+ });
225
+ return U = setTimeout(Z, 650), e;
219
226
  }
220
227
  function Q() {
221
- if (!V.value) return {
228
+ K && clearTimeout(K), K = null, q?.(), q = null;
229
+ }
230
+ function De() {
231
+ if (!B.value) return {
222
232
  peak: Promise.resolve(),
223
233
  faded: Promise.resolve()
224
234
  };
225
- G && clearTimeout(G), Z(), B.value++, z.value = !0;
235
+ G && clearTimeout(G), Q(), z.value++, R.value = !0;
226
236
  let e = new Promise((e) => {
227
237
  q = e;
228
238
  });
229
239
  return G = setTimeout(() => {
230
- G = null, z.value = !1, K = setTimeout(Z, 400);
240
+ G = null, R.value = !1, K = setTimeout(Q, 400);
231
241
  }, 350), {
232
242
  peak: new Promise((e) => setTimeout(e, 120)),
233
243
  faded: e
234
244
  };
235
245
  }
236
- async function Se() {
237
- let e = D.value;
238
- if (!e || !P.value || F.value) return null;
239
- F.value = !0;
246
+ async function Oe() {
247
+ let e = k.value;
248
+ if (!e || !N.value || P.value) return null;
249
+ P.value = !0;
240
250
  try {
241
- let t = Q();
242
- if (await t.peak, Y || !P.value) return null;
251
+ let t = De();
252
+ if (await t.peak, Y || !N.value) return null;
243
253
  let i = n(e, {
244
- width: O.value.width,
245
- height: O.value.height,
246
- mirror: A.value,
247
- filter: w.filter,
248
- tintColor: w.tintColor,
249
- tintIntensity: w.tintIntensity
250
- });
251
- xe();
252
- let a = await r(i, { asBlob: w.emitBlob });
253
- return await t.faded, Y ? null : (T("update:modelValue", a), T("capture", a, i), a);
254
+ width: A.value.width,
255
+ height: A.value.height,
256
+ mirror: M.value,
257
+ filter: E.filter,
258
+ tintColor: E.tintColor,
259
+ tintIntensity: E.tintIntensity
260
+ }), a = Ee(), o = await r(i, { asBlob: E.emitBlob });
261
+ return await Promise.all([t.faded, a]), Y ? null : (D("update:modelValue", o), D("capture", o, i), o);
254
262
  } finally {
255
- F.value = !1;
263
+ P.value = !1;
256
264
  }
257
265
  }
258
- function Ce() {
266
+ function ke() {
259
267
  return new Promise((e) => {
260
- J = e, U = setTimeout(() => {
261
- U = null, J = null, e(!0);
268
+ J = e, H = setTimeout(() => {
269
+ H = null, J = null, e(!0);
262
270
  }, 1e3);
263
271
  });
264
272
  }
265
- async function we() {
266
- let e = Number.isFinite(w.countdown) ? Math.max(0, Math.floor(w.countdown)) : 0;
267
- for (let t = e; t > 0; t--) if (I.value = t, !await Ce()) return null;
268
- return I.value = 0, Y ? null : Se();
273
+ async function Ae() {
274
+ let e = Number.isFinite(E.countdown) ? Math.max(0, Math.floor(E.countdown)) : 0;
275
+ for (let t = e; t > 0; t--) if (F.value = t, !await ke()) return null;
276
+ return F.value = 0, Y ? null : Oe();
269
277
  }
270
278
  function $() {
271
- return H || (!D.value || !P.value ? Promise.resolve(null) : (H = we().finally(() => {
272
- I.value = 0, H = null;
273
- }), H));
279
+ return V || (!k.value || !N.value ? Promise.resolve(null) : (V = Ae().finally(() => {
280
+ F.value = 0, V = null;
281
+ }), V));
274
282
  }
275
- function Te(e) {
283
+ function je(e) {
276
284
  let t = e.target.value;
277
- t && k.selectDevice(t);
285
+ t && j.selectDevice(t);
278
286
  }
279
- function Ee(e, t) {
287
+ function Me(e, t) {
280
288
  if (e.label) return e.label;
281
289
  let n = e.facing === "user" ? "Front" : e.facing === "environment" ? "Back" : "";
282
290
  return n ? `${n} camera` : `Camera ${t + 1}`;
283
291
  }
284
- return p({
292
+ return m({
285
293
  onCapture: $,
286
- camera: k,
294
+ camera: j,
287
295
  zoom: X
288
- }), (n, r) => (h(), u("div", ie, [f(a, {
296
+ }), (n, r) => (v(), d("div", re, [p(a, {
289
297
  ref_key: "previewRef",
290
- ref: E,
291
- ratio: o.ratio,
292
- resolutions: o.resolutions,
293
- mirror: A.value,
294
- filter: o.filter,
295
- "tint-color": o.tintColor,
296
- "tint-intensity": o.tintIntensity
298
+ ref: O,
299
+ ratio: s.ratio,
300
+ resolutions: s.resolutions,
301
+ mirror: M.value,
302
+ filter: s.filter,
303
+ "tint-color": s.tintColor,
304
+ "tint-intensity": s.tintIntensity
297
305
  }, {
298
- default: b(() => [
299
- o.enableGuide && o.guideSrc ? (h(), u("img", {
306
+ default: C(() => [
307
+ s.enableGuide && s.guideSrc ? (v(), d("img", {
300
308
  key: 0,
301
- src: o.guideSrc,
309
+ src: s.guideSrc,
302
310
  class: "position-absolute top-0 start-0 w-100 h-100 base-camera__guide",
303
311
  alt: "",
304
312
  "aria-hidden": "true"
305
- }, null, 8, ae)) : l("", !0),
306
- d("div", oe, [j.value && v(k).activeDeviceId ? (h(), c(t, {
313
+ }, null, 8, ie)) : u("", !0),
314
+ f("div", ae, [f("div", oe, [Ce.value && x(j).activeDeviceId ? (v(), l(t, {
307
315
  key: 0,
308
316
  class: "base-camera__select",
309
- modelValue: v(k).activeDeviceId.value,
310
- "onUpdate:modelValue": r[0] ||= (e) => v(k).activeDeviceId.value = e,
311
- disabled: v(k).isStarting.value,
317
+ modelValue: x(j).activeDeviceId.value,
318
+ "onUpdate:modelValue": r[0] ||= (e) => x(j).activeDeviceId.value = e,
319
+ disabled: x(j).isStarting.value,
312
320
  "aria-label": "Select camera",
313
- onChange: Te,
314
- options: v(k).devices.value.map((e, t) => ({
321
+ onChange: je,
322
+ options: x(j).devices.value.map((e, t) => ({
315
323
  value: e.deviceId,
316
- text: Ee(e, t)
317
- }))
324
+ text: Me(e, t)
325
+ })),
326
+ variant: "dark"
318
327
  }, null, 8, [
319
328
  "modelValue",
320
329
  "disabled",
321
330
  "options"
322
- ])) : (h(), u("span", se)), M.value ? (h(), u("button", {
323
- key: 2,
331
+ ])) : (v(), d("span", se))]), f("div", ce, [s.enableScreenFlash ? (v(), d("button", {
332
+ key: 0,
333
+ type: "button",
334
+ class: "btn btn-dark bg-opacity-50 base-camera__icon-btn",
335
+ "aria-label": B.value ? "Flash On" : "Flash Off",
336
+ onClick: r[1] ||= (e) => B.value = !B.value
337
+ }, [B.value ? (v(), l(e, {
338
+ key: 0,
339
+ symbol: "zap"
340
+ })) : (v(), l(e, {
341
+ key: 1,
342
+ symbol: "zap-off"
343
+ }))], 8, le)) : u("", !0), we.value ? (v(), d("button", {
344
+ key: 1,
324
345
  type: "button",
325
- class: "btn d-grid place-content-center px-2",
326
- disabled: v(k).isStarting.value,
346
+ class: "btn btn-dark bg-opacity-50 base-camera__icon-btn",
347
+ disabled: x(j).isStarting.value,
327
348
  "aria-label": "Switch camera",
328
- onClick: r[1] ||= (e) => v(k).switchCamera()
329
- }, [f(e, { symbol: "switch-camera" })], 8, ce)) : l("", !0)]),
330
- v(k).isStarting.value || v(k).state.value === "error" || v(k).state.value === "idle" && !o.autoStart ? (h(), u("div", le, [v(k).isStarting.value ? (h(), u("div", ue, [...r[8] ||= [d("span", { class: "visually-hidden" }, "Starting camera…", -1)]])) : v(k).state.value === "error" ? (h(), u("div", de, [d("div", fe, _(v(k).error.value?.message ?? "Camera error"), 1), v(k).error.value?.code !== "not-allowed" && v(k).error.value?.code !== "unsupported" ? (h(), u("button", {
349
+ onClick: r[2] ||= (e) => x(j).switchCamera()
350
+ }, [p(e, { symbol: "switch-camera" })], 8, ue)) : u("", !0)])]),
351
+ x(j).isStarting.value || x(j).state.value === "error" || x(j).state.value === "idle" && !s.autoStart ? (v(), d("div", de, [x(j).isStarting.value ? (v(), d("div", fe, [...r[9] ||= [f("span", { class: "visually-hidden" }, "Starting camera…", -1)]])) : x(j).state.value === "error" ? (v(), d("div", pe, [f("div", me, b(x(j).error.value?.message ?? "Camera error"), 1), x(j).error.value?.code !== "not-allowed" && x(j).error.value?.code !== "unsupported" ? (v(), d("button", {
331
352
  key: 0,
332
353
  type: "button",
333
354
  class: "btn btn-sm btn-outline-light",
334
- onClick: r[2] ||= (e) => v(k).start()
335
- }, " Retry ")) : l("", !0)])) : (h(), u("button", {
355
+ onClick: r[3] ||= (e) => x(j).start()
356
+ }, " Retry ")) : u("", !0)])) : (v(), d("button", {
336
357
  key: 2,
337
358
  type: "button",
338
359
  class: "btn btn-light",
339
- onClick: r[3] ||= (e) => v(k).start()
340
- }, "Start camera"))])) : l("", !0),
341
- d("div", pe, [o.enableControls ? (h(), u("div", me, [
342
- d("button", {
360
+ onClick: r[4] ||= (e) => x(j).start()
361
+ }, "Start camera"))])) : u("", !0),
362
+ f("div", he, [s.enableControls ? (v(), d("div", ge, [
363
+ f("button", {
343
364
  type: "button",
344
365
  class: "btn btn-dark bg-opacity-50 rounded-circle base-camera__icon-btn",
345
- disabled: v(k).isStarting.value,
346
- "aria-label": v(k).isLive.value ? "Pause" : "Start",
347
- onClick: r[4] ||= (e) => v(k).toggle()
348
- }, [v(k).isLive.value ? (h(), u("svg", ge, [...r[9] ||= [d("rect", {
366
+ disabled: x(j).isStarting.value,
367
+ "aria-label": x(j).isLive.value ? "Pause" : "Start",
368
+ onClick: r[5] ||= (e) => x(j).toggle()
369
+ }, [x(j).isLive.value ? (v(), d("svg", _e, [...r[10] ||= [f("rect", {
349
370
  x: "6",
350
371
  y: "5",
351
372
  width: "4",
352
373
  height: "14",
353
374
  rx: "1"
354
- }, null, -1), d("rect", {
375
+ }, null, -1), f("rect", {
355
376
  x: "14",
356
377
  y: "5",
357
378
  width: "4",
358
379
  height: "14",
359
380
  rx: "1"
360
- }, null, -1)]])) : (h(), u("svg", _e, [...r[10] ||= [d("path", { d: "M8 5v14l11-7z" }, null, -1)]]))], 8, he),
361
- d("button", {
381
+ }, null, -1)]])) : (v(), d("svg", ve, [...r[11] ||= [f("path", { d: "M8 5v14l11-7z" }, null, -1)]]))], 8, w),
382
+ f("button", {
362
383
  type: "button",
363
384
  class: "btn btn-light rounded-circle base-camera__shutter",
364
- disabled: !P.value || F.value || I.value > 0,
385
+ disabled: !N.value || P.value || F.value > 0,
365
386
  "aria-label": "Capture photo",
366
- onClick: r[5] ||= (e) => $()
367
- }, [...r[11] ||= [d("span", { class: "base-camera__shutter-inner" }, null, -1)]], 8, ve),
368
- d("button", {
387
+ onClick: r[6] ||= (e) => $()
388
+ }, [...r[12] ||= [f("span", { class: "base-camera__shutter-inner" }, null, -1)]], 8, ye),
389
+ f("button", {
369
390
  type: "button",
370
391
  class: "btn btn-dark bg-opacity-50 rounded-circle base-camera__icon-btn",
371
- "aria-label": V.value ? "Flash On" : "Flash Off",
372
- onClick: r[6] ||= (e) => V.value = !V.value
373
- }, [V.value ? (h(), c(e, {
374
- key: 0,
375
- symbol: "zap"
376
- })) : (h(), c(e, {
377
- key: 1,
378
- symbol: "zap-off"
379
- }))], 8, ye)
380
- ])) : l("", !0)]),
381
- I.value ? (h(), u("div", be, [(h(), u("p", {
382
- key: I.value,
392
+ "aria-label": "Stop camera",
393
+ onClick: r[7] ||= (e) => x(j).stop()
394
+ }, [p(e, { symbol: "x" })])
395
+ ])) : u("", !0)]),
396
+ F.value ? (v(), d("div", be, [(v(), d("p", {
397
+ key: F.value,
383
398
  class: "base-camera__countdown",
384
- "data-countdown": I.value
385
- }, _(I.value), 9, x))])) : l("", !0),
386
- L.value ? (h(), u("div", {
387
- key: R.value,
399
+ "data-countdown": F.value
400
+ }, b(F.value), 9, xe))])) : u("", !0),
401
+ I.value ? (v(), d("div", {
402
+ key: L.value,
388
403
  class: "base-camera__shutter-effect",
389
404
  "aria-hidden": "true"
390
- }, [...r[12] ||= [d("span", { class: "base-camera__shutter-aperture" }, null, -1)]])) : l("", !0),
391
- f(te, {
405
+ }, [...r[13] ||= [f("span", { class: "base-camera__shutter-aperture" }, null, -1)]])) : u("", !0),
406
+ (v(), l(ee, {
407
+ to: "body",
408
+ disabled: !s.screenFlashFullscreen
409
+ }, [p(te, {
392
410
  name: "base-camera-flash",
393
- onAfterLeave: Z
411
+ onAfterLeave: Q
394
412
  }, {
395
- default: b(() => [z.value ? (h(), u("div", {
396
- key: B.value,
397
- class: "base-camera__screen-flash",
398
- style: ne({ background: o.screenFlashColor }),
413
+ default: C(() => [R.value ? (v(), d("div", {
414
+ key: z.value,
415
+ class: h(["base-camera__screen-flash", { "base-camera__screen-flash--fullscreen": s.screenFlashFullscreen }]),
416
+ style: g({ background: s.screenFlashColor }),
399
417
  "aria-hidden": "true"
400
- }, null, 4)) : l("", !0)]),
418
+ }, null, 6)) : u("", !0)]),
401
419
  _: 1
402
- })
420
+ })], 8, ["disabled"]))
403
421
  ]),
404
422
  _: 1
405
423
  }, 8, [
@@ -409,19 +427,19 @@ var ie = {
409
427
  "filter",
410
428
  "tint-color",
411
429
  "tint-intensity"
412
- ]), N.value ? (h(), u("div", S, [f(ee, {
430
+ ]), Te.value ? (v(), d("div", Se, [p(o, {
413
431
  modelValue: X.value,
414
- "onUpdate:modelValue": r[7] ||= (e) => X.value = e,
415
- min: v(k).zoomCapability.value.min,
416
- max: v(k).zoomCapability.value.max,
417
- step: v(k).zoomCapability.value.step
432
+ "onUpdate:modelValue": r[8] ||= (e) => X.value = e,
433
+ min: x(j).zoomCapability.value.min,
434
+ max: x(j).zoomCapability.value.max,
435
+ step: x(j).zoomCapability.value.step
418
436
  }, null, 8, [
419
437
  "modelValue",
420
438
  "min",
421
439
  "max",
422
440
  "step"
423
- ])])) : l("", !0)]));
441
+ ])])) : u("", !0)]));
424
442
  }
425
443
  });
426
444
  //#endregion
427
- export { C as default };
445
+ export { T as default };
@@ -116,7 +116,7 @@ var b = ["id"], x = ["for", "innerHTML"], S = { class: "dropdown" }, C = { class
116
116
  role: "button",
117
117
  type: "button",
118
118
  title: L.value,
119
- class: "btn dropdown-toggle",
119
+ class: u(["btn dropdown-toggle", { [`btn-${e.variant}`]: e.variant }]),
120
120
  color: e.color,
121
121
  outlined: e.outlined,
122
122
  disabled: e.disabled
@@ -133,6 +133,7 @@ var b = ["id"], x = ["for", "innerHTML"], S = { class: "dropdown" }, C = { class
133
133
  }, 8, [
134
134
  "id",
135
135
  "title",
136
+ "class",
136
137
  "color",
137
138
  "outlined",
138
139
  "disabled"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ablok-components",
3
3
  "private": false,
4
- "version": "0.3.134",
4
+ "version": "0.3.136",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "@tiptap/core": "^3.30.0",