@m3ui-vue/m3ui-vue 1.6.0 → 1.6.1

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 (151) 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/{MDialog-X50At1Gk.js → MDialog-DYMnaBlt.js} +3 -3
  5. package/dist/{MDialog-X50At1Gk.js.map → MDialog-DYMnaBlt.js.map} +1 -1
  6. package/dist/{MListItem-DVi1j1QI.js → MListItem-D2cNUyzP.js} +211 -168
  7. package/dist/MListItem-D2cNUyzP.js.map +1 -0
  8. package/dist/{MLoadingIndicator-vooA3110.js → MLoadingIndicator-DWUj0BAB.js} +2 -2
  9. package/dist/{MLoadingIndicator-vooA3110.js.map → MLoadingIndicator-DWUj0BAB.js.map} +1 -1
  10. package/dist/{MMenuItem-CRNZkVVr.js → MMenuItem-BuxYoASE.js} +133 -151
  11. package/dist/MMenuItem-BuxYoASE.js.map +1 -0
  12. package/dist/{MSeekBar-BL2W5_rD.js → MSeekBar-C4cn9RIF.js} +2 -2
  13. package/dist/{MSeekBar-BL2W5_rD.js.map → MSeekBar-C4cn9RIF.js.map} +1 -1
  14. package/dist/{MSlider-B9NcKTmZ.js → MSlider-BIkA6DiE.js} +2 -2
  15. package/dist/{MSlider-B9NcKTmZ.js.map → MSlider-BIkA6DiE.js.map} +1 -1
  16. package/dist/{MSpinner-_XpTRkAg.js → MSpinner-DZkXZJpc.js} +2 -2
  17. package/dist/{MSpinner-_XpTRkAg.js.map → MSpinner-DZkXZJpc.js.map} +1 -1
  18. package/dist/{MTextField-DpcPmR5B.js → MTextField-CNH-byir.js} +2 -2
  19. package/dist/{MTextField-DpcPmR5B.js.map → MTextField-CNH-byir.js.map} +1 -1
  20. package/dist/{MTooltip-BL3jPYPT.js → MTooltip-Dd5g2zhh.js} +4 -4
  21. package/dist/{MTooltip-BL3jPYPT.js.map → MTooltip-Dd5g2zhh.js.map} +1 -1
  22. package/dist/{_useEscapeStack-C5-BYr8y.js → _popupPosition-nL8SVKPK.js} +20 -2
  23. package/dist/_popupPosition-nL8SVKPK.js.map +1 -0
  24. package/dist/api.json +1 -1
  25. package/dist/code-editor.js +1 -1
  26. package/dist/components/MAddressField.vue.d.ts +54 -0
  27. package/dist/components/MAudioPlayer.vue.d.ts +1 -1
  28. package/dist/components/MAudioRecorder.vue.d.ts +51 -0
  29. package/dist/components/MAvailabilityCalendar.vue.d.ts +1 -1
  30. package/dist/components/MCameraCapture.vue.d.ts +51 -0
  31. package/dist/components/MCollapse.vue.d.ts +32 -0
  32. package/dist/components/MCountrySelect.vue.d.ts +41 -0
  33. package/dist/components/MCronField.vue.d.ts +26 -0
  34. package/dist/components/MDashboardGrid.vue.d.ts +65 -0
  35. package/dist/components/MDiffViewer.vue.d.ts +56 -0
  36. package/dist/components/MExpansionPanel.vue.d.ts +26 -3
  37. package/dist/components/MFilterBuilder.vue.d.ts +22 -0
  38. package/dist/components/MFlex.vue.d.ts +1 -1
  39. package/dist/components/MMapCluster.vue.d.ts +80 -0
  40. package/dist/components/MMapDraw.vue.d.ts +79 -0
  41. package/dist/components/MMentionField.vue.d.ts +102 -0
  42. package/dist/components/MNotificationCenter.vue.d.ts +57 -0
  43. package/dist/components/MQRScanner.vue.d.ts +52 -0
  44. package/dist/components/MQuiz.vue.d.ts +1 -1
  45. package/dist/components/MSimpleCarousel.vue.d.ts +1 -1
  46. package/dist/components/MStack.vue.d.ts +1 -1
  47. package/dist/components/MTimezoneSelect.vue.d.ts +39 -0
  48. package/dist/components/MToolbar.vue.d.ts +1 -1
  49. package/dist/components/MVideoPlayer.vue.d.ts +1 -1
  50. package/dist/components/_MFilterGroup.vue.d.ts +17 -0
  51. package/dist/composables/_caretPosition.d.ts +6 -0
  52. package/dist/composables/_useCamera.d.ts +16 -0
  53. package/dist/composables/_useFollowAnchor.d.ts +15 -0
  54. package/dist/composables/cron.d.ts +29 -0
  55. package/dist/composables/dashboardLayout.d.ts +28 -0
  56. package/dist/composables/filterBuilder.d.ts +55 -0
  57. package/dist/composables/mapAdapters.d.ts +6 -1
  58. package/dist/composables/mapSearch.d.ts +1 -0
  59. package/dist/composables/textDiff.d.ts +24 -0
  60. package/dist/composables/useLocale.d.ts +108 -0
  61. package/dist/draw.js +3 -3
  62. package/dist/flow.js +1 -1
  63. package/dist/gantt.js +1 -1
  64. package/dist/index.d.ts +25 -0
  65. package/dist/locales/index.js +749 -0
  66. package/dist/locales/index.js.map +1 -1
  67. package/dist/m3ui-vue.css +1 -1
  68. package/dist/m3ui.js +9888 -6940
  69. package/dist/m3ui.js.map +1 -1
  70. package/dist/map.d.ts +5 -0
  71. package/dist/map.js +1462 -576
  72. package/dist/map.js.map +1 -1
  73. package/dist/media.js +5 -5
  74. package/dist/pdf.js +5 -5
  75. package/dist/rich-text-editor.js +5 -5
  76. package/dist/styles.css +1 -1
  77. package/dist/{useLocale-COav9m8C.js → useLocale-DaVSTdm0.js} +108 -1
  78. package/dist/useLocale-DaVSTdm0.js.map +1 -0
  79. package/package.json +1 -1
  80. package/src/__tests__/MAddressField.test.ts +149 -0
  81. package/src/__tests__/MAudioRecorder.test.ts +125 -0
  82. package/src/__tests__/MCameraCapture.test.ts +154 -0
  83. package/src/__tests__/MCountrySelect.test.ts +67 -0
  84. package/src/__tests__/MCronField.test.ts +100 -0
  85. package/src/__tests__/MDashboardGrid.test.ts +122 -0
  86. package/src/__tests__/MDiffViewer.test.ts +68 -0
  87. package/src/__tests__/MExpansionPanel.test.ts +107 -0
  88. package/src/__tests__/MFilterBuilder.test.ts +130 -0
  89. package/src/__tests__/MMapCluster.test.ts +127 -0
  90. package/src/__tests__/MMapDraw.test.ts +188 -0
  91. package/src/__tests__/MMapLayers.test.ts +56 -0
  92. package/src/__tests__/MMentionField.test.ts +163 -0
  93. package/src/__tests__/MNotificationCenter.test.ts +94 -0
  94. package/src/__tests__/_fakeMaplibre.ts +14 -3
  95. package/src/__tests__/attrsFallthrough.test.ts +4 -0
  96. package/src/__tests__/cron.test.ts +68 -0
  97. package/src/__tests__/dashboardLayout.test.ts +45 -0
  98. package/src/__tests__/filterBuilder.test.ts +91 -0
  99. package/src/__tests__/followAnchor.test.ts +162 -0
  100. package/src/__tests__/ssr.test.ts +3 -0
  101. package/src/__tests__/textDiff.test.ts +37 -0
  102. package/src/components/MAddressField.vue +301 -0
  103. package/src/components/MAudioRecorder.vue +334 -0
  104. package/src/components/MAutocomplete.vue +3 -7
  105. package/src/components/MCameraCapture.vue +156 -0
  106. package/src/components/MCollapse.vue +91 -0
  107. package/src/components/MColorPicker.vue +4 -8
  108. package/src/components/MCountrySelect.vue +89 -0
  109. package/src/components/MCronField.vue +251 -0
  110. package/src/components/MDashboardGrid.vue +382 -0
  111. package/src/components/MDatePicker.vue +10 -7
  112. package/src/components/MDateRangePicker.vue +10 -7
  113. package/src/components/MDiffViewer.vue +234 -0
  114. package/src/components/MExpansionPanel.vue +56 -48
  115. package/src/components/MFilterBuilder.vue +47 -0
  116. package/src/components/MMapCluster.vue +295 -0
  117. package/src/components/MMapDraw.vue +601 -0
  118. package/src/components/MMapSearch.vue +1 -9
  119. package/src/components/MMentionField.vue +373 -0
  120. package/src/components/MMultiAutocomplete.vue +3 -7
  121. package/src/components/MMultiSelect.vue +3 -7
  122. package/src/components/MNotificationCenter.vue +252 -0
  123. package/src/components/MPhoneInput.vue +3 -10
  124. package/src/components/MQRScanner.vue +177 -0
  125. package/src/components/MSelect.vue +3 -7
  126. package/src/components/MTimePicker.vue +10 -7
  127. package/src/components/MTimezoneSelect.vue +116 -0
  128. package/src/components/_MFilterGroup.vue +210 -0
  129. package/src/composables/_caretPosition.ts +44 -0
  130. package/src/composables/_useCamera.ts +66 -0
  131. package/src/composables/_useFollowAnchor.ts +109 -0
  132. package/src/composables/cron.ts +179 -0
  133. package/src/composables/dashboardLayout.ts +94 -0
  134. package/src/composables/filterBuilder.ts +195 -0
  135. package/src/composables/mapAdapters.ts +29 -15
  136. package/src/composables/mapSearch.ts +10 -0
  137. package/src/composables/textDiff.ts +106 -0
  138. package/src/composables/useLocale.ts +215 -0
  139. package/src/index.ts +25 -0
  140. package/src/locales/de.ts +107 -0
  141. package/src/locales/es.ts +107 -0
  142. package/src/locales/fr.ts +107 -0
  143. package/src/locales/ja.ts +107 -0
  144. package/src/locales/ko.ts +107 -0
  145. package/src/locales/pt.ts +107 -0
  146. package/src/locales/zh.ts +107 -0
  147. package/src/map.ts +5 -0
  148. package/dist/MListItem-DVi1j1QI.js.map +0 -1
  149. package/dist/MMenuItem-CRNZkVVr.js.map +0 -1
  150. package/dist/_useEscapeStack-C5-BYr8y.js.map +0 -1
  151. 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,7 @@
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 { n as i, t as a } from "./MTooltip-Dd5g2zhh.js";
5
5
  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
6
  // src/composables/drawGeometry.ts
7
7
  var N = 0, oe = () => `d${Date.now().toString(36)}${(N++).toString(36)}`, se = {
package/dist/flow.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./flowPaths-BaH7yaUM.js";
2
2
  import { r as d, t as f, u as p } from "./MIconButton-BBggVwBV.js";
3
- import { i as m } from "./useLocale-COav9m8C.js";
3
+ import { i as m } from "./useLocale-DaVSTdm0.js";
4
4
  import { Fragment as h, Transition as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as S, createVNode as C, defineComponent as w, inject as T, mergeProps as ee, nextTick as E, normalizeClass as D, normalizeStyle as O, onBeforeUnmount as te, onMounted as ne, openBlock as k, provide as re, reactive as ie, ref as A, renderList as ae, renderSlot as oe, shallowReactive as se, shallowRef as ce, toDisplayString as le, toRaw as ue, unref as j, useSlots as de, vShow as fe, watch as pe, withCtx as me, withDirectives as M, withModifiers as he } from "vue";
5
5
  // src/composables/useFlow.ts
6
6
  var ge = Symbol("m3-flow"), _e = Symbol("m3-flow-node");
package/dist/gantt.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./flowPaths-BaH7yaUM.js";
2
2
  import { f as t, l as n, t as r, u as i } from "./MIconButton-BBggVwBV.js";
3
- import { i as a } from "./useLocale-COav9m8C.js";
3
+ import { i as a } from "./useLocale-DaVSTdm0.js";
4
4
  import { t as o } from "./MSegmentedButton-BEB4gXLA.js";
5
5
  import { Fragment as s, Teleport as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, inject as _, nextTick as v, normalizeClass as y, normalizeStyle as b, onBeforeUnmount as ee, onBeforeUpdate as te, onMounted as ne, onUpdated as re, openBlock as x, provide as ie, ref as S, renderList as C, renderSlot as ae, shallowRef as oe, toDisplayString as w, toRaw as se, unref as T, useSlots as ce, vModelText as le, watch as E, withDirectives as ue, withKeys as de, withModifiers as fe } from "vue";
6
6
  // src/composables/useGantt.ts
package/dist/index.d.ts CHANGED
@@ -120,6 +120,7 @@ export { default as MEmojiButton } from './components/MEmojiButton.vue';
120
120
  export { default as MEmojiSelector } from './components/MEmojiSelector.vue';
121
121
  export { default as MEmptyState } from './components/MEmptyState.vue';
122
122
  export { default as MExpansionPanel } from './components/MExpansionPanel.vue';
123
+ export { default as MCollapse } from './components/MCollapse.vue';
123
124
  export { default as MExportButton } from './components/MExportButton.vue';
124
125
  export { default as MFab } from './components/MFab.vue';
125
126
  export { default as MFabMenu } from './components/MFabMenu.vue';
@@ -158,6 +159,27 @@ export { default as MMenu } from './components/MMenu.vue';
158
159
  export { default as MMenuDivider } from './components/MMenuDivider.vue';
159
160
  export { default as MMenuItem } from './components/MMenuItem.vue';
160
161
  export { default as MMaskField } from './components/MMaskField.vue';
162
+ export { default as MMentionField } from './components/MMentionField.vue';
163
+ export type { MentionItem, MentionSource, MentionRef } from './components/MMentionField.vue';
164
+ export { default as MCronField } from './components/MCronField.vue';
165
+ export { parseCron, isValidCron, describeCron, nextCronRuns } from './composables/cron';
166
+ export type { CronSchedule, CronStrings } from './composables/cron';
167
+ export { default as MCountrySelect } from './components/MCountrySelect.vue';
168
+ export { default as MTimezoneSelect } from './components/MTimezoneSelect.vue';
169
+ export { default as MCameraCapture } from './components/MCameraCapture.vue';
170
+ export type { CameraPhoto } from './components/MCameraCapture.vue';
171
+ export { default as MQRScanner } from './components/MQRScanner.vue';
172
+ export type { ScanResult, ScanDetector } from './components/MQRScanner.vue';
173
+ export { default as MAudioRecorder } from './components/MAudioRecorder.vue';
174
+ export type { AudioRecording } from './components/MAudioRecorder.vue';
175
+ export { default as MDashboardGrid } from './components/MDashboardGrid.vue';
176
+ export { moveItem, compactLayout, normalizeLayout, clampItem, layoutRows } from './composables/dashboardLayout';
177
+ export type { DashboardItem } from './composables/dashboardLayout';
178
+ export { default as MDiffViewer } from './components/MDiffViewer.vue';
179
+ export { diffLines, diffWords, diffStats } from './composables/textDiff';
180
+ export type { DiffLine, DiffPart, DiffOp } from './composables/textDiff';
181
+ export { default as MNotificationCenter } from './components/MNotificationCenter.vue';
182
+ export type { InboxNotification } from './components/MNotificationCenter.vue';
161
183
  export type { MaskPreset } from './components/MMaskField.vue';
162
184
  export { default as MMultiAutocomplete } from './components/MMultiAutocomplete.vue';
163
185
  export { default as MMultiSelect } from './components/MMultiSelect.vue';
@@ -289,6 +311,9 @@ export type { Placement } from './components/MAbsolute.vue';
289
311
  export type { BadgePosition, BadgeOverlap } from './components/MBadge.vue';
290
312
  export type { CalendarEvent } from './components/MCalendar.vue';
291
313
  export type { DataTableColumn, DataTableFetchParams } from './components/MDataTable.vue';
314
+ export { default as MFilterBuilder } from './components/MFilterBuilder.vue';
315
+ export { filterRows, matchesFilter, createFilter, createRule, createGroup, operatorsFor, countRules, isComplete, FILTER_OPERATORS } from './composables/filterBuilder';
316
+ export type { FilterField, FilterFieldType, FilterOperator, FilterRule, FilterGroup } from './composables/filterBuilder';
292
317
  export type { DateRange } from './components/MDateRangePicker.vue';
293
318
  export type { DragDropItem } from './components/MDragDropList.vue';
294
319
  export type { UploadFile } from './components/MFileUpload.vue';