ablok-components 0.3.133 → 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-3ebd93f1"]]);
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;
@@ -5,48 +5,48 @@ import { useCamera as i } from "../../../composables/useCamera.js";
5
5
  import a from "../camera-preview/camera-preview.js";
6
6
  import o from "../../atoms/zoom-slider/zoom-slider.js";
7
7
  import s from "../../../assets/img/guide.js";
8
- import { Transition as ee, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, normalizeStyle as te, onMounted as ne, onScopeDispose as re, openBlock as h, ref as g, toDisplayString as _, unref as v, watch as y, withCtx as b } from "vue";
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 x = {
10
+ var re = {
11
11
  class: "base-camera position-relative w-100 user-select-none",
12
12
  "data-bs-theme": "dark"
13
- }, ie = ["src"], ae = { class: "position-absolute top-0 start-0 end-0 d-flex justify-content-between align-items-start p-2 gap-2" }, oe = { key: 1 }, se = ["disabled"], ce = {
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
- }, le = {
16
+ }, fe = {
17
17
  key: 0,
18
18
  class: "spinner-border text-light",
19
19
  role: "status"
20
- }, ue = {
20
+ }, pe = {
21
21
  key: 1,
22
22
  class: "alert alert-danger py-2 px-3 mb-0 small"
23
- }, S = { class: "mb-2" }, C = { class: "position-absolute bottom-0 start-0 end-0 p-3 d-flex flex-column gap-2 align-items-center" }, w = {
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
- }, T = ["disabled", "aria-label"], E = {
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
- }, de = {
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
- }, fe = ["disabled"], pe = ["aria-label"], me = {
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
- }, he = ["data-countdown"], ge = {
46
+ }, xe = ["data-countdown"], Se = {
47
47
  key: 0,
48
48
  class: "base-camera__zoom"
49
- }, D = /*@__PURE__*/ m({
49
+ }, T = /*@__PURE__*/ m({
50
50
  __name: "base-camera",
51
51
  props: {
52
52
  modelValue: { type: null },
@@ -168,6 +168,10 @@ var x = {
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,158 +184,189 @@ var x = {
180
184
  "error",
181
185
  "state"
182
186
  ],
183
- setup(s, { expose: m, emit: D }) {
184
- let O = s, k = D, A = g(null), j = c(() => A.value?.videoEl ?? null), M = c(() => O.resolutions[O.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
- }), N = i({
188
- preferredFacing: O.defaultRearCamera ? "environment" : "user",
189
- resolution: M.value,
190
- videoRef: j,
191
- onWarning: (e) => k("error", e)
192
- }), P = c(() => O.enableMirrorCamera && N.activeFacing.value !== "environment"), F = c(() => O.enableSelectDevice && N.devices.value.length > 1), I = c(() => O.enableSwitchCamera && N.canSwitch.value), L = c(() => O.enableZoomSlider && N.zoomCapability.value !== null), R = c(() => N.isLive.value || N.isPaused.value), z = g(!1), B = g(0), V = g(!1), H = g(0), U = g(!1), W = g(0), G = g(O.enableScreenFlash);
193
- y(() => O.enableScreenFlash, (e) => {
194
- G.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 K = null, q = null, J = null, Y = null, X = null, Z = !1, Q = g(O.zoom);
197
- y(() => O.zoom, (e) => {
198
- Q.value = e;
199
- }), y(Q, (e) => {
200
- N.setZoom(e), e !== O.zoom && k("update:zoom", e);
201
- }), y(N.zoom, (e) => {
202
- N.zoomCapability.value && e !== Q.value && (Q.value = e);
203
- }), y(N.zoomCapability, (e) => {
204
- e && N.setZoom(Q.value);
205
- }), y(N.state, (e) => k("state", e)), y(N.error, (e) => {
206
- e && k("error", e);
207
- }), y(M, (e) => void N.setResolution(e)), ne(() => {
208
- O.autoStart && N.start();
209
- }), re(() => {
210
- Z = !0, q && clearTimeout(q), J && clearTimeout(J), Y && clearTimeout(Y), q = null, J = null, Y = null, X?.(!1), X = null, B.value = 0, V.value = !1, U.value = !1;
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) => {
202
+ X.value = e;
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 _e() {
213
- O.enableShutterAnimation && (J && clearTimeout(J), H.value++, V.value = !0, J = setTimeout(() => {
214
- J = null, V.value = !1;
215
- }, 650));
216
+ function Z() {
217
+ U && clearTimeout(U), U = null, I.value = !1, W?.(), W = null;
216
218
  }
217
- function ve() {
218
- return G.value ? (Y && clearTimeout(Y), W.value++, U.value = !0, new Promise((e) => {
219
- Y = setTimeout(() => {
220
- Y = null, U.value = !1, e();
221
- }, 350);
222
- })) : Promise.resolve();
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;
226
+ }
227
+ function Q() {
228
+ K && clearTimeout(K), K = null, q?.(), q = null;
223
229
  }
224
- async function ye() {
225
- let e = j.value;
226
- if (!e || !R.value || z.value) return null;
227
- z.value = !0;
230
+ function De() {
231
+ if (!B.value) return {
232
+ peak: Promise.resolve(),
233
+ faded: Promise.resolve()
234
+ };
235
+ G && clearTimeout(G), Q(), z.value++, R.value = !0;
236
+ let e = new Promise((e) => {
237
+ q = e;
238
+ });
239
+ return G = setTimeout(() => {
240
+ G = null, R.value = !1, K = setTimeout(Q, 400);
241
+ }, 350), {
242
+ peak: new Promise((e) => setTimeout(e, 120)),
243
+ faded: e
244
+ };
245
+ }
246
+ async function Oe() {
247
+ let e = k.value;
248
+ if (!e || !N.value || P.value) return null;
249
+ P.value = !0;
228
250
  try {
229
- let t = n(e, {
230
- width: M.value.width,
231
- height: M.value.height,
232
- mirror: P.value,
233
- filter: O.filter,
234
- tintColor: O.tintColor,
235
- tintIntensity: O.tintIntensity
236
- });
237
- G.value && await ve(), _e();
238
- let i = await r(t, { asBlob: O.emitBlob });
239
- return k("update:modelValue", i), k("capture", i, t), i;
251
+ let t = De();
252
+ if (await t.peak, Y || !N.value) return null;
253
+ let i = n(e, {
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);
240
262
  } finally {
241
- z.value = !1;
263
+ P.value = !1;
242
264
  }
243
265
  }
244
- function be() {
266
+ function ke() {
245
267
  return new Promise((e) => {
246
- X = e, q = setTimeout(() => {
247
- q = null, X = null, e(!0);
268
+ J = e, H = setTimeout(() => {
269
+ H = null, J = null, e(!0);
248
270
  }, 1e3);
249
271
  });
250
272
  }
251
- async function xe() {
252
- let e = Number.isFinite(O.countdown) ? Math.max(0, Math.floor(O.countdown)) : 0;
253
- for (let t = e; t > 0; t--) if (B.value = t, !await be()) return null;
254
- return B.value = 0, Z ? null : ye();
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();
255
277
  }
256
278
  function $() {
257
- return K || (!j.value || !R.value ? Promise.resolve(null) : (K = xe().finally(() => {
258
- B.value = 0, K = null;
259
- }), K));
279
+ return V || (!k.value || !N.value ? Promise.resolve(null) : (V = Ae().finally(() => {
280
+ F.value = 0, V = null;
281
+ }), V));
260
282
  }
261
- function Se(e) {
283
+ function je(e) {
262
284
  let t = e.target.value;
263
- t && N.selectDevice(t);
285
+ t && j.selectDevice(t);
264
286
  }
265
- function Ce(e, t) {
287
+ function Me(e, t) {
266
288
  if (e.label) return e.label;
267
289
  let n = e.facing === "user" ? "Front" : e.facing === "environment" ? "Back" : "";
268
290
  return n ? `${n} camera` : `Camera ${t + 1}`;
269
291
  }
270
292
  return m({
271
293
  onCapture: $,
272
- camera: N,
273
- zoom: Q
274
- }), (n, r) => (h(), d("div", x, [p(a, {
294
+ camera: j,
295
+ zoom: X
296
+ }), (n, r) => (v(), d("div", re, [p(a, {
275
297
  ref_key: "previewRef",
276
- ref: A,
298
+ ref: O,
277
299
  ratio: s.ratio,
278
300
  resolutions: s.resolutions,
279
- mirror: P.value,
301
+ mirror: M.value,
280
302
  filter: s.filter,
281
303
  "tint-color": s.tintColor,
282
304
  "tint-intensity": s.tintIntensity
283
305
  }, {
284
- default: b(() => [
285
- s.enableGuide && s.guideSrc ? (h(), d("img", {
306
+ default: C(() => [
307
+ s.enableGuide && s.guideSrc ? (v(), d("img", {
286
308
  key: 0,
287
309
  src: s.guideSrc,
288
310
  class: "position-absolute top-0 start-0 w-100 h-100 base-camera__guide",
289
311
  alt: "",
290
312
  "aria-hidden": "true"
291
313
  }, null, 8, ie)) : u("", !0),
292
- f("div", ae, [F.value && v(N).activeDeviceId ? (h(), l(t, {
314
+ f("div", ae, [f("div", oe, [Ce.value && x(j).activeDeviceId ? (v(), l(t, {
293
315
  key: 0,
294
316
  class: "base-camera__select",
295
- modelValue: v(N).activeDeviceId.value,
296
- "onUpdate:modelValue": r[0] ||= (e) => v(N).activeDeviceId.value = e,
297
- disabled: v(N).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,
298
320
  "aria-label": "Select camera",
299
- onChange: Se,
300
- options: v(N).devices.value.map((e, t) => ({
321
+ onChange: je,
322
+ options: x(j).devices.value.map((e, t) => ({
301
323
  value: e.deviceId,
302
- text: Ce(e, t)
303
- }))
324
+ text: Me(e, t)
325
+ })),
326
+ variant: "dark"
304
327
  }, null, 8, [
305
328
  "modelValue",
306
329
  "disabled",
307
330
  "options"
308
- ])) : (h(), d("span", oe)), I.value ? (h(), d("button", {
309
- 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,
310
345
  type: "button",
311
- class: "btn d-grid place-content-center px-2",
312
- disabled: v(N).isStarting.value,
346
+ class: "btn btn-dark bg-opacity-50 base-camera__icon-btn",
347
+ disabled: x(j).isStarting.value,
313
348
  "aria-label": "Switch camera",
314
- onClick: r[1] ||= (e) => v(N).switchCamera()
315
- }, [p(e, { symbol: "switch-camera" })], 8, se)) : u("", !0)]),
316
- v(N).isStarting.value || v(N).state.value === "error" || v(N).state.value === "idle" && !s.autoStart ? (h(), d("div", ce, [v(N).isStarting.value ? (h(), d("div", le, [...r[8] ||= [f("span", { class: "visually-hidden" }, "Starting camera…", -1)]])) : v(N).state.value === "error" ? (h(), d("div", ue, [f("div", S, _(v(N).error.value?.message ?? "Camera error"), 1), v(N).error.value?.code !== "not-allowed" && v(N).error.value?.code !== "unsupported" ? (h(), d("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", {
317
352
  key: 0,
318
353
  type: "button",
319
354
  class: "btn btn-sm btn-outline-light",
320
- onClick: r[2] ||= (e) => v(N).start()
321
- }, " Retry ")) : u("", !0)])) : (h(), d("button", {
355
+ onClick: r[3] ||= (e) => x(j).start()
356
+ }, " Retry ")) : u("", !0)])) : (v(), d("button", {
322
357
  key: 2,
323
358
  type: "button",
324
359
  class: "btn btn-light",
325
- onClick: r[3] ||= (e) => v(N).start()
360
+ onClick: r[4] ||= (e) => x(j).start()
326
361
  }, "Start camera"))])) : u("", !0),
327
- f("div", C, [s.enableControls ? (h(), d("div", w, [
362
+ f("div", he, [s.enableControls ? (v(), d("div", ge, [
328
363
  f("button", {
329
364
  type: "button",
330
365
  class: "btn btn-dark bg-opacity-50 rounded-circle base-camera__icon-btn",
331
- disabled: v(N).isStarting.value,
332
- "aria-label": v(N).isLive.value ? "Pause" : "Start",
333
- onClick: r[4] ||= (e) => v(N).toggle()
334
- }, [v(N).isLive.value ? (h(), d("svg", E, [...r[9] ||= [f("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", {
335
370
  x: "6",
336
371
  y: "5",
337
372
  width: "4",
@@ -343,46 +378,46 @@ var x = {
343
378
  width: "4",
344
379
  height: "14",
345
380
  rx: "1"
346
- }, null, -1)]])) : (h(), d("svg", de, [...r[10] ||= [f("path", { d: "M8 5v14l11-7z" }, null, -1)]]))], 8, T),
381
+ }, null, -1)]])) : (v(), d("svg", ve, [...r[11] ||= [f("path", { d: "M8 5v14l11-7z" }, null, -1)]]))], 8, w),
347
382
  f("button", {
348
383
  type: "button",
349
384
  class: "btn btn-light rounded-circle base-camera__shutter",
350
- disabled: !R.value || z.value || B.value > 0,
385
+ disabled: !N.value || P.value || F.value > 0,
351
386
  "aria-label": "Capture photo",
352
- onClick: r[5] ||= (e) => $()
353
- }, [...r[11] ||= [f("span", { class: "base-camera__shutter-inner" }, null, -1)]], 8, fe),
387
+ onClick: r[6] ||= (e) => $()
388
+ }, [...r[12] ||= [f("span", { class: "base-camera__shutter-inner" }, null, -1)]], 8, ye),
354
389
  f("button", {
355
390
  type: "button",
356
391
  class: "btn btn-dark bg-opacity-50 rounded-circle base-camera__icon-btn",
357
- "aria-label": G.value ? "Flash On" : "Flash Off",
358
- onClick: r[6] ||= (e) => G.value = !G.value
359
- }, [G.value ? (h(), l(e, {
360
- key: 0,
361
- symbol: "zap"
362
- })) : (h(), l(e, {
363
- key: 1,
364
- symbol: "zap-off"
365
- }))], 8, pe)
392
+ "aria-label": "Stop camera",
393
+ onClick: r[7] ||= (e) => x(j).stop()
394
+ }, [p(e, { symbol: "x" })])
366
395
  ])) : u("", !0)]),
367
- B.value ? (h(), d("div", me, [(h(), d("p", {
368
- key: B.value,
396
+ F.value ? (v(), d("div", be, [(v(), d("p", {
397
+ key: F.value,
369
398
  class: "base-camera__countdown",
370
- "data-countdown": B.value
371
- }, _(B.value), 9, he))])) : u("", !0),
372
- V.value ? (h(), d("div", {
373
- key: H.value,
399
+ "data-countdown": F.value
400
+ }, b(F.value), 9, xe))])) : u("", !0),
401
+ I.value ? (v(), d("div", {
402
+ key: L.value,
374
403
  class: "base-camera__shutter-effect",
375
404
  "aria-hidden": "true"
376
- }, [...r[12] ||= [f("span", { class: "base-camera__shutter-aperture" }, null, -1)]])) : u("", !0),
377
- p(ee, { name: "base-camera-flash" }, {
378
- default: b(() => [U.value ? (h(), d("div", {
379
- key: W.value,
380
- class: "base-camera__screen-flash",
381
- style: te({ background: s.screenFlashColor }),
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, {
410
+ name: "base-camera-flash",
411
+ onAfterLeave: Q
412
+ }, {
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 }),
382
417
  "aria-hidden": "true"
383
- }, null, 4)) : u("", !0)]),
418
+ }, null, 6)) : u("", !0)]),
384
419
  _: 1
385
- })
420
+ })], 8, ["disabled"]))
386
421
  ]),
387
422
  _: 1
388
423
  }, 8, [
@@ -392,12 +427,12 @@ var x = {
392
427
  "filter",
393
428
  "tint-color",
394
429
  "tint-intensity"
395
- ]), L.value ? (h(), d("div", ge, [p(o, {
396
- modelValue: Q.value,
397
- "onUpdate:modelValue": r[7] ||= (e) => Q.value = e,
398
- min: v(N).zoomCapability.value.min,
399
- max: v(N).zoomCapability.value.max,
400
- step: v(N).zoomCapability.value.step
430
+ ]), Te.value ? (v(), d("div", Se, [p(o, {
431
+ modelValue: X.value,
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
401
436
  }, null, 8, [
402
437
  "modelValue",
403
438
  "min",
@@ -407,4 +442,4 @@ var x = {
407
442
  }
408
443
  });
409
444
  //#endregion
410
- export { D 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.133",
4
+ "version": "0.3.136",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "@tiptap/core": "^3.30.0",