@m3ui-vue/m3ui-vue 1.6.0 → 1.6.2

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.
Files changed (158) hide show
  1. package/dist/API.md +940 -33
  2. package/dist/{MButton-CPghlKb0.js → MButton-OQ4wIERQ.js} +2 -2
  3. package/dist/{MButton-CPghlKb0.js.map → MButton-OQ4wIERQ.js.map} +1 -1
  4. package/dist/MColorPickerModal-NtkihoK6.js +577 -0
  5. package/dist/MColorPickerModal-NtkihoK6.js.map +1 -0
  6. package/dist/{MDialog-X50At1Gk.js → MDialog-DYMnaBlt.js} +3 -3
  7. package/dist/{MDialog-X50At1Gk.js.map → MDialog-DYMnaBlt.js.map} +1 -1
  8. package/dist/{MListItem-DVi1j1QI.js → MListItem-D2cNUyzP.js} +211 -168
  9. package/dist/MListItem-D2cNUyzP.js.map +1 -0
  10. package/dist/{MLoadingIndicator-vooA3110.js → MLoadingIndicator-DWUj0BAB.js} +2 -2
  11. package/dist/{MLoadingIndicator-vooA3110.js.map → MLoadingIndicator-DWUj0BAB.js.map} +1 -1
  12. package/dist/{MMenuItem-CRNZkVVr.js → MMenuItem-BuxYoASE.js} +133 -151
  13. package/dist/MMenuItem-BuxYoASE.js.map +1 -0
  14. package/dist/{MSeekBar-BL2W5_rD.js → MSeekBar-C4cn9RIF.js} +2 -2
  15. package/dist/{MSeekBar-BL2W5_rD.js.map → MSeekBar-C4cn9RIF.js.map} +1 -1
  16. package/dist/{MSlider-B9NcKTmZ.js → MSlider-BIkA6DiE.js} +2 -2
  17. package/dist/{MSlider-B9NcKTmZ.js.map → MSlider-BIkA6DiE.js.map} +1 -1
  18. package/dist/{MSpinner-_XpTRkAg.js → MSpinner-DZkXZJpc.js} +2 -2
  19. package/dist/{MSpinner-_XpTRkAg.js.map → MSpinner-DZkXZJpc.js.map} +1 -1
  20. package/dist/{MTextField-DpcPmR5B.js → MTextField-CNH-byir.js} +2 -2
  21. package/dist/{MTextField-DpcPmR5B.js.map → MTextField-CNH-byir.js.map} +1 -1
  22. package/dist/MTooltip-CK39Zon4.js +183 -0
  23. package/dist/MTooltip-CK39Zon4.js.map +1 -0
  24. package/dist/{_useEscapeStack-C5-BYr8y.js → _popupPosition-nL8SVKPK.js} +20 -2
  25. package/dist/_popupPosition-nL8SVKPK.js.map +1 -0
  26. package/dist/api.json +1 -1
  27. package/dist/code-editor.js +1 -1
  28. package/dist/components/MAddressField.vue.d.ts +54 -0
  29. package/dist/components/MAudioPlayer.vue.d.ts +1 -1
  30. package/dist/components/MAudioRecorder.vue.d.ts +51 -0
  31. package/dist/components/MAvailabilityCalendar.vue.d.ts +1 -1
  32. package/dist/components/MCameraCapture.vue.d.ts +51 -0
  33. package/dist/components/MCollapse.vue.d.ts +32 -0
  34. package/dist/components/MCountrySelect.vue.d.ts +41 -0
  35. package/dist/components/MCronField.vue.d.ts +26 -0
  36. package/dist/components/MDashboardGrid.vue.d.ts +65 -0
  37. package/dist/components/MDiffViewer.vue.d.ts +56 -0
  38. package/dist/components/MExpansionPanel.vue.d.ts +26 -3
  39. package/dist/components/MFilterBuilder.vue.d.ts +22 -0
  40. package/dist/components/MFlex.vue.d.ts +1 -1
  41. package/dist/components/MMapCluster.vue.d.ts +80 -0
  42. package/dist/components/MMapDraw.vue.d.ts +79 -0
  43. package/dist/components/MMentionField.vue.d.ts +102 -0
  44. package/dist/components/MNotificationCenter.vue.d.ts +57 -0
  45. package/dist/components/MQRScanner.vue.d.ts +52 -0
  46. package/dist/components/MQuiz.vue.d.ts +1 -1
  47. package/dist/components/MSimpleCarousel.vue.d.ts +1 -1
  48. package/dist/components/MStack.vue.d.ts +1 -1
  49. package/dist/components/MTimezoneSelect.vue.d.ts +39 -0
  50. package/dist/components/MToolbar.vue.d.ts +1 -1
  51. package/dist/components/MVideoPlayer.vue.d.ts +1 -1
  52. package/dist/components/_MFilterGroup.vue.d.ts +17 -0
  53. package/dist/composables/_caretPosition.d.ts +6 -0
  54. package/dist/composables/_useCamera.d.ts +16 -0
  55. package/dist/composables/_useFollowAnchor.d.ts +15 -0
  56. package/dist/composables/cron.d.ts +29 -0
  57. package/dist/composables/dashboardLayout.d.ts +28 -0
  58. package/dist/composables/filterBuilder.d.ts +55 -0
  59. package/dist/composables/mapAdapters.d.ts +6 -1
  60. package/dist/composables/mapSearch.d.ts +1 -0
  61. package/dist/composables/textDiff.d.ts +24 -0
  62. package/dist/composables/useLocale.d.ts +108 -0
  63. package/dist/draw.js +28 -27
  64. package/dist/draw.js.map +1 -1
  65. package/dist/flow.js +1 -1
  66. package/dist/gantt.js +1 -1
  67. package/dist/index.d.ts +25 -0
  68. package/dist/locales/index.js +749 -0
  69. package/dist/locales/index.js.map +1 -1
  70. package/dist/m3ui-vue.css +1 -1
  71. package/dist/m3ui.js +10444 -7495
  72. package/dist/m3ui.js.map +1 -1
  73. package/dist/map.d.ts +5 -0
  74. package/dist/map.js +1509 -617
  75. package/dist/map.js.map +1 -1
  76. package/dist/media.js +5 -5
  77. package/dist/pdf.js +5 -5
  78. package/dist/rich-text-editor.js +5 -5
  79. package/dist/styles.css +1 -1
  80. package/dist/{useLocale-COav9m8C.js → useLocale-DaVSTdm0.js} +108 -1
  81. package/dist/useLocale-DaVSTdm0.js.map +1 -0
  82. package/package.json +1 -1
  83. package/src/__tests__/MAddressField.test.ts +149 -0
  84. package/src/__tests__/MAudioRecorder.test.ts +125 -0
  85. package/src/__tests__/MCameraCapture.test.ts +154 -0
  86. package/src/__tests__/MCountrySelect.test.ts +67 -0
  87. package/src/__tests__/MCronField.test.ts +100 -0
  88. package/src/__tests__/MDashboardGrid.test.ts +122 -0
  89. package/src/__tests__/MDiffViewer.test.ts +68 -0
  90. package/src/__tests__/MExpansionPanel.test.ts +107 -0
  91. package/src/__tests__/MFilterBuilder.test.ts +130 -0
  92. package/src/__tests__/MMapCluster.test.ts +127 -0
  93. package/src/__tests__/MMapDraw.test.ts +188 -0
  94. package/src/__tests__/MMapLayers.test.ts +56 -0
  95. package/src/__tests__/MMentionField.test.ts +163 -0
  96. package/src/__tests__/MNotificationCenter.test.ts +94 -0
  97. package/src/__tests__/_fakeMaplibre.ts +14 -3
  98. package/src/__tests__/attrsFallthrough.test.ts +4 -0
  99. package/src/__tests__/cron.test.ts +68 -0
  100. package/src/__tests__/dashboardLayout.test.ts +45 -0
  101. package/src/__tests__/filterBuilder.test.ts +91 -0
  102. package/src/__tests__/followAnchor.test.ts +162 -0
  103. package/src/__tests__/ssr.test.ts +3 -0
  104. package/src/__tests__/textDiff.test.ts +37 -0
  105. package/src/components/MAddressField.vue +301 -0
  106. package/src/components/MAudioRecorder.vue +334 -0
  107. package/src/components/MAutocomplete.vue +3 -7
  108. package/src/components/MCameraCapture.vue +156 -0
  109. package/src/components/MCollapse.vue +91 -0
  110. package/src/components/MColorPicker.vue +4 -8
  111. package/src/components/MCountrySelect.vue +89 -0
  112. package/src/components/MCronField.vue +251 -0
  113. package/src/components/MDashboardGrid.vue +382 -0
  114. package/src/components/MDatePicker.vue +10 -7
  115. package/src/components/MDateRangePicker.vue +10 -7
  116. package/src/components/MDiffViewer.vue +234 -0
  117. package/src/components/MExpansionPanel.vue +56 -48
  118. package/src/components/MFilterBuilder.vue +47 -0
  119. package/src/components/MMapBaseLayers.vue +29 -28
  120. package/src/components/MMapCluster.vue +295 -0
  121. package/src/components/MMapDraw.vue +601 -0
  122. package/src/components/MMapMeasure.vue +1 -1
  123. package/src/components/MMapSearch.vue +1 -9
  124. package/src/components/MMentionField.vue +373 -0
  125. package/src/components/MMultiAutocomplete.vue +3 -7
  126. package/src/components/MMultiSelect.vue +3 -7
  127. package/src/components/MNotificationCenter.vue +252 -0
  128. package/src/components/MPhoneInput.vue +3 -10
  129. package/src/components/MQRScanner.vue +177 -0
  130. package/src/components/MSelect.vue +3 -7
  131. package/src/components/MTimePicker.vue +10 -7
  132. package/src/components/MTimezoneSelect.vue +116 -0
  133. package/src/components/_MFilterGroup.vue +210 -0
  134. package/src/composables/_caretPosition.ts +44 -0
  135. package/src/composables/_useCamera.ts +66 -0
  136. package/src/composables/_useFollowAnchor.ts +109 -0
  137. package/src/composables/cron.ts +179 -0
  138. package/src/composables/dashboardLayout.ts +94 -0
  139. package/src/composables/filterBuilder.ts +195 -0
  140. package/src/composables/mapAdapters.ts +29 -15
  141. package/src/composables/mapSearch.ts +10 -0
  142. package/src/composables/textDiff.ts +106 -0
  143. package/src/composables/useLocale.ts +215 -0
  144. package/src/index.ts +25 -0
  145. package/src/locales/de.ts +107 -0
  146. package/src/locales/es.ts +107 -0
  147. package/src/locales/fr.ts +107 -0
  148. package/src/locales/ja.ts +107 -0
  149. package/src/locales/ko.ts +107 -0
  150. package/src/locales/pt.ts +107 -0
  151. package/src/locales/zh.ts +107 -0
  152. package/src/map.ts +5 -0
  153. package/dist/MListItem-DVi1j1QI.js.map +0 -1
  154. package/dist/MMenuItem-CRNZkVVr.js.map +0 -1
  155. package/dist/MTooltip-BL3jPYPT.js +0 -754
  156. package/dist/MTooltip-BL3jPYPT.js.map +0 -1
  157. package/dist/_useEscapeStack-C5-BYr8y.js.map +0 -1
  158. package/dist/useLocale-COav9m8C.js.map +0 -1
@@ -201,6 +201,8 @@ export interface M3Locale {
201
201
  mapShowLayer: string;
202
202
  mapHideLayer: string;
203
203
  mapOpacity: string;
204
+ /** MMapCluster's bubble: `{count}` points under it; a click zooms in */
205
+ mapClusterZoom: string;
204
206
  mapDownload: string;
205
207
  mapNoBaseLayer: string;
206
208
  mapHoverInfo: string;
@@ -209,8 +211,114 @@ export interface M3Locale {
209
211
  mapMeasureArea: string;
210
212
  mapClearMeasurements: string;
211
213
  mapDeleteMeasurement: string;
214
+ mapDrawPoint: string;
215
+ mapDrawLine: string;
216
+ mapDrawPolygon: string;
217
+ mapDeleteFeature: string;
212
218
  mapTotal: string;
213
219
  mapSearchPlaces: string;
220
+ mapAddress: string;
221
+ mapPressEnterToSearch: string;
222
+ mapSearching: string;
223
+ mapNoPlaces: string;
224
+ filterMatchAll: string;
225
+ filterMatchAny: string;
226
+ filterAddCondition: string;
227
+ filterAddGroup: string;
228
+ filterRemoveCondition: string;
229
+ filterRemoveGroup: string;
230
+ filterField: string;
231
+ filterOperator: string;
232
+ filterValue: string;
233
+ filterFrom: string;
234
+ filterTo: string;
235
+ filterNoConditions: string;
236
+ filterOpContains: string;
237
+ filterOpNotContains: string;
238
+ filterOpEquals: string;
239
+ filterOpNotEquals: string;
240
+ filterOpStartsWith: string;
241
+ filterOpEndsWith: string;
242
+ filterOpGt: string;
243
+ filterOpGte: string;
244
+ filterOpLt: string;
245
+ filterOpLte: string;
246
+ filterOpBetween: string;
247
+ filterOpIn: string;
248
+ filterOpNotIn: string;
249
+ filterOpIsTrue: string;
250
+ filterOpIsFalse: string;
251
+ filterOpIsEmpty: string;
252
+ filterOpIsNotEmpty: string;
253
+ filterOpAfter: string;
254
+ filterOpBefore: string;
255
+ cronExpression: string;
256
+ cronInvalid: string;
257
+ cronNextRuns: string;
258
+ cronFreqMinutes: string;
259
+ cronFreqHourly: string;
260
+ cronFreqDaily: string;
261
+ cronFreqWeekly: string;
262
+ cronFreqMonthly: string;
263
+ cronFreqCustom: string;
264
+ cronEvery: string;
265
+ cronMinute: string;
266
+ cronTime: string;
267
+ cronDayOfMonth: string;
268
+ cronEveryMinute: string;
269
+ cronEveryNMinutes: string;
270
+ cronHourlyAt: string;
271
+ cronAt: string;
272
+ cronEveryNHoursAt: string;
273
+ cronMinutesOfHours: string;
274
+ cronOnDaysOfMonth: string;
275
+ cronInMonths: string;
276
+ cronRange: string;
277
+ country: string;
278
+ timeZone: string;
279
+ cameraStart: string;
280
+ cameraStarting: string;
281
+ cameraCapture: string;
282
+ cameraRetake: string;
283
+ cameraUsePhoto: string;
284
+ cameraSwitch: string;
285
+ cameraDenied: string;
286
+ cameraUnavailable: string;
287
+ cameraUnsupported: string;
288
+ cameraFailed: string;
289
+ qrHint: string;
290
+ qrUnsupported: string;
291
+ recorderStart: string;
292
+ recorderStop: string;
293
+ recorderPause: string;
294
+ recorderResume: string;
295
+ recorderDiscard: string;
296
+ recorderUse: string;
297
+ recorderPlay: string;
298
+ recorderPausePlayback: string;
299
+ recorderRecording: string;
300
+ micDenied: string;
301
+ micUnavailable: string;
302
+ micUnsupported: string;
303
+ dashGrabbed: string;
304
+ dashPlaced: string;
305
+ dashDropped: string;
306
+ dashCancelled: string;
307
+ dashResize: string;
308
+ diffUnchanged: string;
309
+ diffSplit: string;
310
+ diffUnified: string;
311
+ diffNoChanges: string;
312
+ notifTitle: string;
313
+ notifMarkAllRead: string;
314
+ notifAll: string;
315
+ notifUnread: string;
316
+ notifEmpty: string;
317
+ notifToday: string;
318
+ notifYesterday: string;
319
+ notifDismiss: string;
320
+ notifMarkRead: string;
321
+ notifMarkUnread: string;
214
322
  /** MTimeline's button past `limit`; `{count}` is how many entries are hidden */
215
323
  timelineShowMore: string;
216
324
  timelineShowLess: string;
package/dist/draw.js CHANGED
@@ -1,7 +1,8 @@
1
- import { i as e } from "./useLocale-COav9m8C.js";
1
+ import { i as e } from "./useLocale-DaVSTdm0.js";
2
2
  import { t } from "./MIconButton-BBggVwBV.js";
3
- import { n, t as r } from "./MMenuItem-CRNZkVVr.js";
4
- import { n as i, t as a } from "./MTooltip-BL3jPYPT.js";
3
+ import { n, t as r } from "./MMenuItem-BuxYoASE.js";
4
+ import { t as i } from "./MTooltip-CK39Zon4.js";
5
+ import { t as a } from "./MColorPickerModal-NtkihoK6.js";
5
6
  import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, inject as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, openBlock as C, provide as ee, ref as w, renderList as T, renderSlot as E, shallowRef as D, toDisplayString as te, unref as O, useId as ne, useModel as k, vModelText as re, watch as ie, withCtx as A, withDirectives as j, withKeys as ae, withModifiers as M } from "vue";
6
7
  // src/composables/drawGeometry.ts
7
8
  var N = 0, oe = () => `d${Date.now().toString(36)}${(N++).toString(36)}`, se = {
@@ -1365,7 +1366,7 @@ var De = ["aria-label"], Oe = [
1365
1366
  "aria-label": O(x).drawTools
1366
1367
  }, [
1367
1368
  E(e.$slots, "default"),
1368
- (C(!0), u(o, null, T(D.value, (e, i) => (C(), u(o, { key: i }, [e.length === 1 ? (C(), c(a, {
1369
+ (C(!0), u(o, null, T(D.value, (e, a) => (C(), u(o, { key: a }, [e.length === 1 ? (C(), c(i, {
1369
1370
  key: 0,
1370
1371
  text: j(e[0]),
1371
1372
  placement: "top"
@@ -1384,16 +1385,16 @@ var De = ["aria-label"], Oe = [
1384
1385
  "onClick"
1385
1386
  ])]),
1386
1387
  _: 2
1387
- }, 1032, ["text"])) : (C(), u("div", st, [p(a, {
1388
- text: j(k(e, i)),
1388
+ }, 1032, ["text"])) : (C(), u("div", st, [p(i, {
1389
+ text: j(k(e, a)),
1389
1390
  placement: "top"
1390
1391
  }, {
1391
1392
  default: A(() => [p(t, {
1392
- icon: S[k(e, i)].icon,
1393
- label: j(k(e, i)),
1393
+ icon: S[k(e, a)].icon,
1394
+ label: j(k(e, a)),
1394
1395
  variant: e.includes(O(v).tool.value) ? "filled" : "standard",
1395
1396
  "aria-pressed": e.includes(O(v).tool.value),
1396
- onClick: (t) => O(v).tool.value = k(e, i)
1397
+ onClick: (t) => O(v).tool.value = k(e, a)
1397
1398
  }, null, 8, [
1398
1399
  "icon",
1399
1400
  "label",
@@ -1426,7 +1427,7 @@ var De = ["aria-label"], Oe = [
1426
1427
  ]))), 128))]),
1427
1428
  _: 2
1428
1429
  }, 1024)]))], 64))), 128)),
1429
- re.value ? (C(), c(a, {
1430
+ re.value ? (C(), c(i, {
1430
1431
  key: 0,
1431
1432
  text: O(x).drawFill,
1432
1433
  placement: "top"
@@ -1454,7 +1455,7 @@ var De = ["aria-label"], Oe = [
1454
1455
  "aria-pressed": O(v).color.value.toLowerCase() === e.toLowerCase(),
1455
1456
  onClick: (t) => O(v).color.value = e
1456
1457
  }, null, 14, B))), 128)),
1457
- m.customColor ? (C(), c(a, {
1458
+ m.customColor ? (C(), c(i, {
1458
1459
  key: 1,
1459
1460
  text: O(x).drawCustomColor,
1460
1461
  placement: "top"
@@ -1469,7 +1470,7 @@ var De = ["aria-label"], Oe = [
1469
1470
  }, [M.value ? l("", !0) : (C(), u("span", V, "add"))], 14, lt)]),
1470
1471
  _: 1
1471
1472
  }, 8, ["text"])) : l("", !0),
1472
- m.customColor ? (C(), c(i, {
1473
+ m.customColor ? (C(), c(a, {
1473
1474
  key: 2,
1474
1475
  modelValue: O(v).color.value,
1475
1476
  "onUpdate:modelValue": s[2] ||= (e) => O(v).color.value = e,
@@ -1493,7 +1494,7 @@ var De = ["aria-label"], Oe = [
1493
1494
  }, null, 4)], 10, H))), 128)),
1494
1495
  m.history ? (C(), u(o, { key: 3 }, [
1495
1496
  s[8] ||= d("span", { class: "mx-1 h-6 w-px shrink-0 bg-outline-variant" }, null, -1),
1496
- p(a, {
1497
+ p(i, {
1497
1498
  text: O(x).drawUndo,
1498
1499
  placement: "top"
1499
1500
  }, {
@@ -1505,7 +1506,7 @@ var De = ["aria-label"], Oe = [
1505
1506
  }, null, 8, ["label", "disabled"])]),
1506
1507
  _: 1
1507
1508
  }, 8, ["text"]),
1508
- p(a, {
1509
+ p(i, {
1509
1510
  text: O(x).drawRedo,
1510
1511
  placement: "top"
1511
1512
  }, {
@@ -1518,7 +1519,7 @@ var De = ["aria-label"], Oe = [
1518
1519
  _: 1
1519
1520
  }, 8, ["text"])
1520
1521
  ], 64)) : l("", !0),
1521
- O(v).selection.value.length ? (C(), c(a, {
1522
+ O(v).selection.value.length ? (C(), c(i, {
1522
1523
  key: 4,
1523
1524
  text: O(x).drawDelete,
1524
1525
  placement: "top"
@@ -1547,10 +1548,10 @@ var De = ["aria-label"], Oe = [
1547
1548
  setup(n) {
1548
1549
  let r = h(Te, null);
1549
1550
  if (!r) throw Error("MDrawLayers must be inside <MDrawCanvas>");
1550
- let i = r, f = e(), m = s(() => i.layers.value.length ? i.layers.value : [{
1551
+ let a = r, f = e(), m = s(() => a.layers.value.length ? a.layers.value : [{
1551
1552
  id: "layer-1",
1552
1553
  name: f.drawLayer.replace("{n}", "1")
1553
- }]), g = s(() => m.value.slice().reverse()), _ = (e) => i.setLayers(e), b = (e, t) => _(m.value.map((n) => n.id === e ? {
1554
+ }]), g = s(() => m.value.slice().reverse()), _ = (e) => a.setLayers(e), b = (e, t) => _(m.value.map((n) => n.id === e ? {
1554
1555
  ...n,
1555
1556
  ...t
1556
1557
  } : n));
@@ -1559,14 +1560,14 @@ var De = ["aria-label"], Oe = [
1559
1560
  id: oe(),
1560
1561
  name: f.drawLayer.replace("{n}", String(m.value.length + 1))
1561
1562
  };
1562
- _([...m.value, e]), i.layer.value = e.id;
1563
+ _([...m.value, e]), a.layer.value = e.id;
1563
1564
  }
1564
1565
  function S(e) {
1565
1566
  if (m.value.length < 2) return;
1566
- let t = m.value[0].id, n = i.items.value.filter((n) => (n.layer ?? t) === e).map((e) => e.id);
1567
- n.length && (i.selection.value = n, i.deleteSelection());
1567
+ let t = m.value[0].id, n = a.items.value.filter((n) => (n.layer ?? t) === e).map((e) => e.id);
1568
+ n.length && (a.selection.value = n, a.deleteSelection());
1568
1569
  let r = m.value.filter((t) => t.id !== e);
1569
- _(r), i.layer.value === e && (i.layer.value = r[r.length - 1].id);
1570
+ _(r), a.layer.value === e && (a.layer.value = r[r.length - 1].id);
1570
1571
  }
1571
1572
  function ee(e, t) {
1572
1573
  let n = m.value.findIndex((t) => t.id === e), r = n + t;
@@ -1585,7 +1586,7 @@ var De = ["aria-label"], Oe = [
1585
1586
  class: "m3-draw-layers flex w-64 flex-col rounded-xl bg-surface-container p-2 text-on-surface shadow-elevation-2",
1586
1587
  role: "group",
1587
1588
  "aria-label": O(f).drawLayers
1588
- }, [d("div", dt, [d("span", ft, te(O(f).drawLayers), 1), p(a, {
1589
+ }, [d("div", dt, [d("span", ft, te(O(f).drawLayers), 1), p(i, {
1589
1590
  text: O(f).drawAddLayer,
1590
1591
  placement: "left"
1591
1592
  }, {
@@ -1598,7 +1599,7 @@ var De = ["aria-label"], Oe = [
1598
1599
  _: 1
1599
1600
  }, 8, ["text"])]), (C(!0), u(o, null, T(g.value, (e) => (C(), u("div", {
1600
1601
  key: e.id,
1601
- class: y(["group flex h-10 items-center gap-1 rounded-full pr-1 pl-3 text-body-medium", O(i).layer.value === e.id ? "bg-secondary-container text-on-secondary-container" : "hover:bg-on-surface/8"])
1602
+ class: y(["group flex h-10 items-center gap-1 rounded-full pr-1 pl-3 text-body-medium", O(a).layer.value === e.id ? "bg-secondary-container text-on-secondary-container" : "hover:bg-on-surface/8"])
1602
1603
  }, [
1603
1604
  E.value === e.id ? (C(), u("input", {
1604
1605
  key: 0,
@@ -1614,11 +1615,11 @@ var De = ["aria-label"], Oe = [
1614
1615
  key: 1,
1615
1616
  type: "button",
1616
1617
  class: y(["min-w-0 flex-1 truncate text-left outline-none", e.visible === !1 && "opacity-50"]),
1617
- "aria-pressed": O(i).layer.value === e.id,
1618
- onClick: (t) => O(i).layer.value = e.id,
1618
+ "aria-pressed": O(a).layer.value === e.id,
1619
+ onClick: (t) => O(a).layer.value = e.id,
1619
1620
  onDblclick: (t) => ne(e.id)
1620
1621
  }, te(e.name), 43, W)),
1621
- p(a, {
1622
+ p(i, {
1622
1623
  text: e.visible === !1 ? O(f).drawShowLayer : O(f).drawHideLayer,
1623
1624
  placement: "left"
1624
1625
  }, {
@@ -1634,7 +1635,7 @@ var De = ["aria-label"], Oe = [
1634
1635
  ])]),
1635
1636
  _: 2
1636
1637
  }, 1032, ["text"]),
1637
- p(a, {
1638
+ p(i, {
1638
1639
  text: e.locked ? O(f).drawUnlockLayer : O(f).drawLockLayer,
1639
1640
  placement: "left"
1640
1641
  }, {