@contena/meteor-component-library 5.6.2 → 5.7.0

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 (270) hide show
  1. package/dist/{channel-c0a7f238.mjs → channel-24cdec8b.mjs} +1 -1
  2. package/dist/{channel-c7fd2abb.js → channel-41ddc4ca.js} +1 -1
  3. package/dist/common/MtActionMenuItem.d.ts +1 -1
  4. package/dist/common/MtBadge.d.ts +1 -1
  5. package/dist/common/MtBanner.d.ts +1 -1
  6. package/dist/common/MtBaseField.d.ts +2 -2
  7. package/dist/common/MtBaseField.js +1 -1
  8. package/dist/common/MtButton.d.ts +35 -32
  9. package/dist/common/MtButton.js +6 -3
  10. package/dist/common/MtCard.js +2 -2
  11. package/dist/common/MtCheckbox.d.ts +2 -2
  12. package/dist/common/MtCheckbox.js +1 -1
  13. package/dist/common/MtColorpicker.d.ts +9 -3
  14. package/dist/common/MtColorpicker.js +2 -2
  15. package/dist/common/MtContextButton.js +2 -2
  16. package/dist/common/MtContextMenuItem.d.ts +2 -2
  17. package/dist/common/MtContextMenuItem.js +1 -1
  18. package/dist/common/MtDataTable.d.ts +58 -47
  19. package/dist/common/MtDataTable.js +3 -3
  20. package/dist/common/MtDataTableBadgeRenderer.d.ts +3 -3
  21. package/dist/common/MtDataTableFilter.js +2 -2
  22. package/dist/common/MtDataTableSettings.d.ts +11 -8
  23. package/dist/common/MtDataTableSettings.js +2 -2
  24. package/dist/common/MtDatepicker.d.ts +24 -1
  25. package/dist/common/MtDatepicker.js +2 -1
  26. package/dist/common/MtEmailField.d.ts +1 -0
  27. package/dist/common/MtEmailField.js +5 -3
  28. package/dist/common/MtEntityDataTable.js +4 -4
  29. package/dist/common/MtEntitySelect.js +3 -3
  30. package/dist/common/MtFieldCopyable.js +1 -1
  31. package/dist/common/MtFieldHint.d.ts +5 -0
  32. package/dist/common/MtFieldHint.js +19 -13
  33. package/dist/common/MtFloatingUi.js +1 -1
  34. package/dist/common/MtGrantPermissionServiceBanner.d.ts +14 -1
  35. package/dist/common/MtGrantPermissionServiceBanner.js +11 -149
  36. package/dist/common/MtNumberField.d.ts +26 -3
  37. package/dist/common/MtNumberField.js +5 -4
  38. package/dist/common/MtPasswordField.d.ts +3 -1
  39. package/dist/common/MtPasswordField.js +6 -4
  40. package/dist/common/MtPopover.d.ts +4 -4
  41. package/dist/common/MtPopover.js +2 -2
  42. package/dist/common/MtPopoverItem.d.ts +2 -2
  43. package/dist/common/MtPopoverItem.js +1 -1
  44. package/dist/common/MtPopoverItemResult.d.ts +5 -2
  45. package/dist/common/MtPopoverItemResult.js +1 -1
  46. package/dist/common/MtSearch.d.ts +2 -0
  47. package/dist/common/MtSearch.js +12 -7
  48. package/dist/common/MtSegmentedControl.d.ts +6 -6
  49. package/dist/common/MtSegmentedControl.js +2 -2
  50. package/dist/common/MtSelect.d.ts +30 -20
  51. package/dist/common/MtSelect.js +20 -3
  52. package/dist/common/MtSelectBase.d.ts +4 -4
  53. package/dist/common/MtSelectBase.js +2 -2
  54. package/dist/common/MtSelectResult.d.ts +0 -16
  55. package/dist/common/MtSelectResult.js +2 -22
  56. package/dist/common/MtSelectSelectionList.js +4 -0
  57. package/dist/common/MtSlider.d.ts +36 -7
  58. package/dist/common/MtSlider.js +3 -1
  59. package/dist/common/MtSnackbarNotification.js +2 -6
  60. package/dist/common/MtTabs.d.ts +2 -2
  61. package/dist/common/MtTabs.js +9 -8
  62. package/dist/common/MtTextEditor.js +4 -4
  63. package/dist/common/MtTextEditorToolbar.js +2 -2
  64. package/dist/common/MtTextEditorToolbarButton.js +1 -1
  65. package/dist/common/MtTextEditorToolbarButtonColor.js +2 -2
  66. package/dist/common/MtTextEditorToolbarButtonLink.js +1 -1
  67. package/dist/common/MtTextEditorToolbarButtonTable.js +10 -10
  68. package/dist/common/MtTextField.d.ts +28 -3
  69. package/dist/common/MtTextField.js +12 -2
  70. package/dist/common/MtTextarea.d.ts +1 -0
  71. package/dist/common/MtTextarea.js +10 -8
  72. package/dist/common/MtThemeSelect.js +2 -2
  73. package/dist/common/MtUnitField.js +3 -3
  74. package/dist/common/MtUnitSelect.js +4 -4
  75. package/dist/common/MtUnitSelectResult.js +2 -2
  76. package/dist/common/MtUrlField.d.ts +2 -0
  77. package/dist/common/MtUrlField.js +5 -3
  78. package/dist/common/components/mt-snackbar/composables/use-snackbar.d.ts +1 -1
  79. package/dist/common/composables/useServicePermission.d.ts +15 -0
  80. package/dist/common/index.d.ts +2 -1
  81. package/dist/common/index.js +13 -12
  82. package/dist/common/mixins/validation.mixin.d.ts +2 -2
  83. package/dist/esm/MtActionMenuItem.d.ts +1 -1
  84. package/dist/esm/MtBadge.d.ts +1 -1
  85. package/dist/esm/MtBanner.d.ts +1 -1
  86. package/dist/esm/MtBaseField.d.ts +2 -2
  87. package/dist/esm/MtBaseField.js +1 -1
  88. package/dist/esm/MtButton.d.ts +35 -32
  89. package/dist/esm/MtButton.js +6 -3
  90. package/dist/esm/MtCard.js +2 -2
  91. package/dist/esm/MtCheckbox.d.ts +2 -2
  92. package/dist/esm/MtCheckbox.js +1 -1
  93. package/dist/esm/MtColorpicker.d.ts +9 -3
  94. package/dist/esm/MtColorpicker.js +2 -2
  95. package/dist/esm/MtContextButton.js +2 -2
  96. package/dist/esm/MtContextMenuItem.d.ts +2 -2
  97. package/dist/esm/MtContextMenuItem.js +1 -1
  98. package/dist/esm/MtDataTable.d.ts +58 -47
  99. package/dist/esm/MtDataTable.js +3 -3
  100. package/dist/esm/MtDataTableBadgeRenderer.d.ts +3 -3
  101. package/dist/esm/MtDataTableFilter.js +2 -2
  102. package/dist/esm/MtDataTableSettings.d.ts +11 -8
  103. package/dist/esm/MtDataTableSettings.js +2 -2
  104. package/dist/esm/MtDatepicker.d.ts +24 -1
  105. package/dist/esm/MtDatepicker.js +2 -1
  106. package/dist/esm/MtEmailField.d.ts +1 -0
  107. package/dist/esm/MtEmailField.js +5 -3
  108. package/dist/esm/MtEntityDataTable.js +4 -4
  109. package/dist/esm/MtEntitySelect.js +3 -3
  110. package/dist/esm/MtFieldCopyable.js +1 -1
  111. package/dist/esm/MtFieldHint.d.ts +5 -0
  112. package/dist/esm/MtFieldHint.js +20 -14
  113. package/dist/esm/MtFloatingUi.js +1 -1
  114. package/dist/esm/MtGrantPermissionServiceBanner.d.ts +14 -1
  115. package/dist/esm/MtGrantPermissionServiceBanner.js +11 -149
  116. package/dist/esm/MtNumberField.d.ts +26 -3
  117. package/dist/esm/MtNumberField.js +5 -4
  118. package/dist/esm/MtPasswordField.d.ts +3 -1
  119. package/dist/esm/MtPasswordField.js +6 -4
  120. package/dist/esm/MtPopover.d.ts +4 -4
  121. package/dist/esm/MtPopover.js +2 -2
  122. package/dist/esm/MtPopoverItem.d.ts +2 -2
  123. package/dist/esm/MtPopoverItem.js +1 -1
  124. package/dist/esm/MtPopoverItemResult.d.ts +5 -2
  125. package/dist/esm/MtPopoverItemResult.js +1 -1
  126. package/dist/esm/MtSearch.d.ts +2 -0
  127. package/dist/esm/MtSearch.js +12 -7
  128. package/dist/esm/MtSegmentedControl.d.ts +6 -6
  129. package/dist/esm/MtSegmentedControl.js +2 -2
  130. package/dist/esm/MtSelect.d.ts +30 -20
  131. package/dist/esm/MtSelect.js +20 -3
  132. package/dist/esm/MtSelectBase.d.ts +4 -4
  133. package/dist/esm/MtSelectBase.js +2 -2
  134. package/dist/esm/MtSelectResult.d.ts +0 -16
  135. package/dist/esm/MtSelectResult.js +2 -22
  136. package/dist/esm/MtSelectSelectionList.js +4 -0
  137. package/dist/esm/MtSlider.d.ts +36 -7
  138. package/dist/esm/MtSlider.js +3 -1
  139. package/dist/esm/MtSnackbarNotification.js +2 -6
  140. package/dist/esm/MtTabs.d.ts +2 -2
  141. package/dist/esm/MtTabs.js +10 -9
  142. package/dist/esm/MtTextEditor.js +4 -4
  143. package/dist/esm/MtTextEditorToolbar.js +2 -2
  144. package/dist/esm/MtTextEditorToolbarButton.js +1 -1
  145. package/dist/esm/MtTextEditorToolbarButtonColor.js +2 -2
  146. package/dist/esm/MtTextEditorToolbarButtonLink.js +1 -1
  147. package/dist/esm/MtTextEditorToolbarButtonTable.js +10 -10
  148. package/dist/esm/MtTextField.d.ts +28 -3
  149. package/dist/esm/MtTextField.js +12 -2
  150. package/dist/esm/MtTextarea.d.ts +1 -0
  151. package/dist/esm/MtTextarea.js +10 -8
  152. package/dist/esm/MtThemeSelect.js +2 -2
  153. package/dist/esm/MtUnitField.js +3 -3
  154. package/dist/esm/MtUnitSelect.js +4 -4
  155. package/dist/esm/MtUnitSelectResult.js +2 -2
  156. package/dist/esm/MtUrlField.d.ts +2 -0
  157. package/dist/esm/MtUrlField.js +5 -3
  158. package/dist/esm/components/mt-snackbar/composables/use-snackbar.d.ts +1 -1
  159. package/dist/esm/composables/useServicePermission.d.ts +15 -0
  160. package/dist/esm/index.d.ts +2 -1
  161. package/dist/esm/index.js +62 -61
  162. package/dist/esm/mixins/validation.mixin.d.ts +2 -2
  163. package/dist/example-radio-option.css +1 -107
  164. package/dist/{index-26e65048.mjs → index-1e353711.mjs} +1 -1
  165. package/dist/{index-2cb63874.js → index-269e5194.js} +3 -3
  166. package/dist/{index-ddce4e37.mjs → index-b57e37f8.mjs} +3 -3
  167. package/dist/{index-f8d7f486.js → index-fab01d0b.js} +1 -1
  168. package/dist/index.css +1 -1012
  169. package/dist/mt-action-menu-group.css +1 -23
  170. package/dist/mt-action-menu-item.css +1 -68
  171. package/dist/mt-action-menu.css +1 -28
  172. package/dist/mt-avatar.css +1 -66
  173. package/dist/mt-badge.css +1 -51
  174. package/dist/mt-banner.css +1 -95
  175. package/dist/mt-base-field.css +1 -206
  176. package/dist/mt-button.css +1 -249
  177. package/dist/mt-card.css +1 -210
  178. package/dist/mt-chart.css +1 -37
  179. package/dist/mt-checkbox.css +1 -176
  180. package/dist/mt-collapsible-content.css +1 -32
  181. package/dist/mt-colorpicker.css +1 -355
  182. package/dist/mt-context-button.css +1 -22
  183. package/dist/mt-data-table-filter.css +1 -71
  184. package/dist/mt-data-table-number-renderer.css +1 -8
  185. package/dist/mt-data-table-price-renderer.css +1 -8
  186. package/dist/mt-data-table-reset-filter-button.css +1 -14
  187. package/dist/mt-data-table-text-renderer.css +1 -33
  188. package/dist/mt-data-table.css +1 -653
  189. package/dist/mt-datepicker.css +1 -293
  190. package/dist/{mt-datepicker.vue_vue_type_style_index_0_lang-2db831f0.mjs → mt-datepicker.vue_vue_type_style_index_0_lang-5edbea9c.mjs} +21 -14
  191. package/dist/{mt-datepicker.vue_vue_type_style_index_0_lang-d200a30e.js → mt-datepicker.vue_vue_type_style_index_0_lang-81316ad9.js} +21 -14
  192. package/dist/mt-email-field.css +1 -97
  193. package/dist/mt-empty-state.css +1 -37
  194. package/dist/mt-entity-data-table.css +1 -43
  195. package/dist/{mt-entity-data-table.vue_vue_type_style_index_0_lang-84494335.js → mt-entity-data-table.vue_vue_type_style_index_0_lang-063ce600.js} +2 -2
  196. package/dist/{mt-entity-data-table.vue_vue_type_style_index_0_lang-20da6e77.mjs → mt-entity-data-table.vue_vue_type_style_index_0_lang-24a26788.mjs} +2 -2
  197. package/dist/{mt-entity-select.vue_vue_type_script_setup_true_lang-2cdffea0.js → mt-entity-select.vue_vue_type_script_setup_true_lang-eb9894c1.js} +1 -1
  198. package/dist/{mt-entity-select.vue_vue_type_script_setup_true_lang-f3c35d00.mjs → mt-entity-select.vue_vue_type_script_setup_true_lang-f94e984f.mjs} +1 -1
  199. package/dist/mt-field-affix.css +1 -23
  200. package/dist/mt-field-copyable.css +1 -4
  201. package/dist/mt-field-error.css +1 -8
  202. package/dist/mt-field-hint.css +1 -24
  203. package/dist/mt-field-label.css +1 -31
  204. package/dist/mt-floating-ui.css +1 -87
  205. package/dist/{mt-floating-ui.vue_vue_type_style_index_0_lang-90b9d50a.mjs → mt-floating-ui.vue_vue_type_style_index_0_lang-1e4e0347.mjs} +15 -7
  206. package/dist/{mt-floating-ui.vue_vue_type_style_index_0_lang-2ea8a18a.js → mt-floating-ui.vue_vue_type_style_index_0_lang-f48de489.js} +14 -6
  207. package/dist/mt-grant-permission-service-banner-62995d3a.mjs +191 -0
  208. package/dist/mt-grant-permission-service-banner-dc1f0940.js +190 -0
  209. package/dist/mt-grant-permission-service-banner.css +1 -88
  210. package/dist/mt-help-text.css +1 -33
  211. package/dist/mt-highlight-text.css +1 -5
  212. package/dist/mt-icon.css +1 -3697
  213. package/dist/mt-inheritance-switch.css +1 -12
  214. package/dist/mt-inset.css +1 -7
  215. package/dist/mt-label.css +1 -71
  216. package/dist/mt-link.css +1 -38
  217. package/dist/mt-loader.css +1 -76
  218. package/dist/mt-modal-root.css +1 -20
  219. package/dist/mt-modal.css +1 -160
  220. package/dist/mt-number-field.css +1 -71
  221. package/dist/mt-pagination.css +1 -78
  222. package/dist/mt-password-field.css +1 -27
  223. package/dist/mt-popover-deprecated.css +1 -7
  224. package/dist/mt-popover-item-result.css +1 -135
  225. package/dist/mt-popover-item.css +1 -175
  226. package/dist/mt-popover.css +1 -99
  227. package/dist/mt-progress-bar.css +1 -26
  228. package/dist/mt-promo-badge.css +1 -4
  229. package/dist/mt-radio-group-indicator.css +1 -47
  230. package/dist/mt-radio-group-item.css +1 -25
  231. package/dist/mt-radio-group-list.css +1 -6
  232. package/dist/mt-radio-group-root.css +1 -33
  233. package/dist/mt-search.css +1 -61
  234. package/dist/mt-segmented-control.css +1 -146
  235. package/dist/mt-select-base.css +1 -121
  236. package/dist/mt-select-result-list.css +1 -120
  237. package/dist/mt-select-result.css +1 -114
  238. package/dist/mt-select-selection-list.css +1 -127
  239. package/dist/mt-skeleton-bar.css +1 -33
  240. package/dist/mt-slider.css +1 -152
  241. package/dist/mt-snackbar-notification.css +1 -63
  242. package/dist/mt-snackbar.css +1 -58
  243. package/dist/mt-status-dot.css +1 -58
  244. package/dist/mt-switch.css +1 -94
  245. package/dist/mt-tabs.css +1 -111
  246. package/dist/mt-text-editor-diff-modal.css +3 -696
  247. package/dist/mt-text-editor-toolbar-button-color.css +1 -19
  248. package/dist/mt-text-editor-toolbar-button-link.css +1 -6
  249. package/dist/mt-text-editor-toolbar-button-table.css +1 -6
  250. package/dist/mt-text-editor-toolbar-button.css +1 -26
  251. package/dist/mt-text-editor-toolbar.css +1 -36
  252. package/dist/mt-text-editor.css +1 -338
  253. package/dist/mt-text.css +1 -53
  254. package/dist/mt-textarea.css +1 -62
  255. package/dist/{mt-theme-select.vue_vue_type_script_setup_true_lang-42a2e3c8.js → mt-theme-select.vue_vue_type_script_setup_true_lang-b8126f05.js} +1 -0
  256. package/dist/{mt-theme-select.vue_vue_type_script_setup_true_lang-6ecf0bcb.mjs → mt-theme-select.vue_vue_type_script_setup_true_lang-f57bd5cc.mjs} +1 -0
  257. package/dist/mt-toast-notification.css +1 -161
  258. package/dist/mt-toast.css +1 -101
  259. package/dist/mt-tooltip.css +1 -47
  260. package/dist/mt-unit-field.css +1 -12
  261. package/dist/mt-unit-select-result.css +1 -34
  262. package/dist/mt-unit-select.css +1 -44
  263. package/dist/mt-url-field.css +1 -147
  264. package/dist/{repository-e7884115.mjs → repository-2316b912.mjs} +1 -1
  265. package/dist/{repository-9c56cf7b.js → repository-3d192939.js} +1 -1
  266. package/dist/{tooltip.directive-4ea0fee9.js → tooltip.directive-7b51326d.js} +23 -0
  267. package/dist/{tooltip.directive-f216b7fb.mjs → tooltip.directive-a5042569.mjs} +23 -0
  268. package/dist/{useRepository-6804d3b6.js → useRepository-86f5a789.js} +1 -1
  269. package/dist/{useRepository-28dfccf5.mjs → useRepository-f3e9ffc6.mjs} +1 -1
  270. package/package.json +5 -9
@@ -70,6 +70,11 @@ type __VLS_Props = {
70
70
  * Help text for the date picker.
71
71
  */
72
72
  helpText?: string;
73
+ /**
74
+ * Optional caption below the field. The `#hint` slot takes precedence when provided.
75
+ * When set, it replaces the time zone hint that datetime pickers show by default.
76
+ */
77
+ hint?: string | null;
73
78
  /**
74
79
  * The minimum selectable date. Can be a Date object or an ISO string.
75
80
  * Any date before this will be disabled in the calendar.
@@ -108,7 +113,18 @@ type __VLS_Props = {
108
113
  */
109
114
  disableInheritanceToggle?: boolean;
110
115
  };
111
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
116
+ declare function __VLS_template(): {
117
+ attrs: Partial<{}>;
118
+ slots: Readonly<{
119
+ hint?(): void;
120
+ }> & {
121
+ hint?(): void;
122
+ };
123
+ refs: {};
124
+ rootEl: any;
125
+ };
126
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
127
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
112
128
  "inheritance-remove": () => any;
113
129
  "inheritance-restore": () => any;
114
130
  "update:modelValue": (value: string | string[] | (string | null)[] | null) => any;
@@ -135,6 +151,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
135
151
  is24: boolean;
136
152
  range: boolean;
137
153
  helpText: string;
154
+ hint: string | null;
138
155
  minDate: Date | string;
139
156
  hourIncrement: number;
140
157
  minuteIncrement: number;
@@ -143,4 +160,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
143
160
  isInheritanceField: boolean;
144
161
  disableInheritanceToggle: boolean;
145
162
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
163
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
146
164
  export default _default;
165
+ type __VLS_WithTemplateSlots<T, S> = T & {
166
+ new (): {
167
+ $slots: S;
168
+ };
169
+ };
@@ -1,6 +1,6 @@
1
1
  import '../mt-datepicker.css';
2
2
  "use strict";
3
- const mtDatepicker_vue_vue_type_style_index_0_lang = require("../mt-datepicker.vue_vue_type_style_index_0_lang-d200a30e.js");
3
+ const mtDatepicker_vue_vue_type_style_index_0_lang = require("../mt-datepicker.vue_vue_type_style_index_0_lang-81316ad9.js");
4
4
  require("vue");
5
5
  require("../mt-icon.vue_vue_type_style_index_0_lang-228a1bb5.js");
6
6
  require("./MtHelpText.js");
@@ -13,6 +13,7 @@ require("../_plugin-vue_export-helper-9c783a34.js");
13
13
  require("./MtFieldLabel.js");
14
14
  require("./MtInheritanceSwitch.js");
15
15
  require("vue-i18n");
16
+ require("./MtFieldHint.js");
16
17
  require("./MtFieldError.js");
17
18
  require("./MtText.js");
18
19
  module.exports = mtDatepicker_vue_vue_type_style_index_0_lang._sfc_main;
@@ -4,6 +4,7 @@ type __VLS_Props = {
4
4
  required?: boolean;
5
5
  modelValue?: string;
6
6
  name?: string;
7
+ autocomplete?: string;
7
8
  label?: string;
8
9
  error?: {
9
10
  detail: string;
@@ -18,7 +18,7 @@ require("../floating-ui.vue-48d5c774.js");
18
18
  require("../floating-ui.dom-fe395b67.js");
19
19
  require("../useIsInsideTooltip-f4674e27.js");
20
20
  require("../index-efdf1622.js");
21
- const _hoisted_1 = ["id", "required", "disabled", "name", "placeholder", "aria-invalid", "aria-describedby"];
21
+ const _hoisted_1 = ["id", "required", "disabled", "name", "autocomplete", "placeholder", "aria-invalid", "aria-describedby"];
22
22
  const _hoisted_2 = ["aria-label"];
23
23
  const _hoisted_3 = {
24
24
  key: 3,
@@ -32,6 +32,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
32
32
  required: { type: Boolean },
33
33
  modelValue: {},
34
34
  name: {},
35
+ autocomplete: {},
35
36
  label: {},
36
37
  error: {},
37
38
  helpText: {},
@@ -150,6 +151,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
150
151
  required: _ctx.required,
151
152
  disabled: _ctx.disabled || _ctx.isInherited,
152
153
  name: _ctx.name,
154
+ autocomplete: _ctx.autocomplete,
153
155
  placeholder: _ctx.placeholder,
154
156
  "aria-invalid": !!errorMessage.value || !!_ctx.error,
155
157
  "aria-describedby": !!errorMessage.value || !!_ctx.error ? vue.unref(errorId) : void 0,
@@ -216,6 +218,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
216
218
  };
217
219
  }
218
220
  });
219
- const mtEmailField_vue_vue_type_style_index_0_scoped_c043a5b7_lang = "";
220
- const mtEmailField = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-c043a5b7"]]);
221
+ const mtEmailField_vue_vue_type_style_index_0_scoped_21c2f7bb_lang = "";
222
+ const mtEmailField = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-21c2f7bb"]]);
221
223
  module.exports = mtEmailField;
@@ -1,9 +1,9 @@
1
1
  import '../mt-entity-data-table.css';
2
2
  "use strict";
3
- const mtEntityDataTable_vue_vue_type_style_index_0_lang = require("../mt-entity-data-table.vue_vue_type_style_index_0_lang-84494335.js");
3
+ const mtEntityDataTable_vue_vue_type_style_index_0_lang = require("../mt-entity-data-table.vue_vue_type_style_index_0_lang-063ce600.js");
4
4
  require("vue");
5
5
  require("../Criteria-86968a69.js");
6
- require("../useRepository-6804d3b6.js");
6
+ require("../useRepository-86f5a789.js");
7
7
  require("./MtDataTable.js");
8
8
  require("./MtCard.js");
9
9
  require("../mt-context-button.vue_vue_type_style_index_0_lang-fda7578e.js");
@@ -20,7 +20,7 @@ require("../index-efdf1622.js");
20
20
  require("../_plugin-vue_export-helper-9c783a34.js");
21
21
  require("vue-i18n");
22
22
  require("./MtFieldCopyable.js");
23
- require("../tooltip.directive-4ea0fee9.js");
23
+ require("../tooltip.directive-7b51326d.js");
24
24
  require("../id-8e80f112.js");
25
25
  require("./MtHelpText.js");
26
26
  require("../useFutureFlags-bd0f8e37.js");
@@ -33,7 +33,7 @@ require("./MtButton.js");
33
33
  require("./MtLoader.js");
34
34
  require("./MtSmoothReflow.js");
35
35
  require("../_commonjsHelpers-2cbbddc8.js");
36
- require("../mt-floating-ui.vue_vue_type_style_index_0_lang-2ea8a18a.js");
36
+ require("../mt-floating-ui.vue_vue_type_style_index_0_lang-f48de489.js");
37
37
  require("./MtSelect.js");
38
38
  require("../debounce-77fa4677.js");
39
39
  require("../object-deb13c0b.js");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const mtEntitySelect_vue_vue_type_script_setup_true_lang = require("../mt-entity-select.vue_vue_type_script_setup_true_lang-2cdffea0.js");
2
+ const mtEntitySelect_vue_vue_type_script_setup_true_lang = require("../mt-entity-select.vue_vue_type_script_setup_true_lang-eb9894c1.js");
3
3
  require("vue");
4
4
  require("./MtSelect.js");
5
5
  require("../debounce-77fa4677.js");
@@ -17,7 +17,7 @@ require("../useIsInsideTooltip-f4674e27.js");
17
17
  require("../index-efdf1622.js");
18
18
  require("vue-i18n");
19
19
  require("./MtFieldCopyable.js");
20
- require("../tooltip.directive-4ea0fee9.js");
20
+ require("../tooltip.directive-7b51326d.js");
21
21
  require("../id-8e80f112.js");
22
22
  require("./MtHelpText.js");
23
23
  require("../useFutureFlags-bd0f8e37.js");
@@ -33,5 +33,5 @@ require("../mt-label.vue_vue_type_style_index_0_lang-cdaf52a6.js");
33
33
  require("./MtButton.js");
34
34
  require("../mt-highlight-text.vue_vue_type_style_index_0_lang-a463da9a.js");
35
35
  require("../Criteria-86968a69.js");
36
- require("../useRepository-6804d3b6.js");
36
+ require("../useRepository-86f5a789.js");
37
37
  module.exports = mtEntitySelect_vue_vue_type_script_setup_true_lang._sfc_main;
@@ -2,7 +2,7 @@ import '../mt-field-copyable.css';
2
2
  "use strict";
3
3
  const vue = require("vue");
4
4
  const mtIcon_vue_vue_type_style_index_0_lang = require("../mt-icon.vue_vue_type_style_index_0_lang-228a1bb5.js");
5
- const tooltip_directive = require("../tooltip.directive-4ea0fee9.js");
5
+ const tooltip_directive = require("../tooltip.directive-7b51326d.js");
6
6
  const vueI18n = require("vue-i18n");
7
7
  const _pluginVue_exportHelper = require("../_plugin-vue_export-helper-9c783a34.js");
8
8
  require("../id-8e80f112.js");
@@ -4,6 +4,10 @@ type __VLS_Props = {
4
4
  * (e.g. provided via the `#hint` slot with its own icon).
5
5
  */
6
6
  hideIcon?: boolean;
7
+ /**
8
+ * Icon shown in front of the hint text.
9
+ */
10
+ icon?: string;
7
11
  };
8
12
  declare function __VLS_template(): {
9
13
  attrs: Partial<{}>;
@@ -16,6 +20,7 @@ declare function __VLS_template(): {
16
20
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
21
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
18
22
  hideIcon: boolean;
23
+ icon: string;
19
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
20
25
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
26
  export default _default;
@@ -4,30 +4,36 @@ const vue = require("vue");
4
4
  const mtIcon_vue_vue_type_style_index_0_lang = require("../mt-icon.vue_vue_type_style_index_0_lang-228a1bb5.js");
5
5
  const _pluginVue_exportHelper = require("../_plugin-vue_export-helper-9c783a34.js");
6
6
  const _hoisted_1 = { class: "mt-field-hint" };
7
- const _hoisted_2 = { class: "mt-field-hint__text" };
7
+ const _hoisted_2 = {
8
+ key: 0,
9
+ class: "mt-field-hint__icon-wrapper"
10
+ };
11
+ const _hoisted_3 = { class: "mt-field-hint__text" };
8
12
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
9
13
  __name: "mt-field-hint",
10
14
  props: {
11
- hideIcon: { type: Boolean, default: false }
15
+ hideIcon: { type: Boolean, default: false },
16
+ icon: { default: "solid-info-circle" }
12
17
  },
13
18
  setup(__props) {
14
19
  return (_ctx, _cache) => {
15
20
  return vue.openBlock(), vue.createElementBlock("span", _hoisted_1, [
16
- !_ctx.hideIcon ? (vue.openBlock(), vue.createBlock(mtIcon_vue_vue_type_style_index_0_lang._sfc_main, {
17
- key: 0,
18
- class: "mt-field-hint__icon",
19
- name: "solid-info-circle",
20
- size: "var(--scale-size-12)",
21
- color: "var(--color-icon-secondary-default)",
22
- decorative: ""
23
- })) : vue.createCommentVNode("", true),
24
- vue.createElementVNode("span", _hoisted_2, [
21
+ !_ctx.hideIcon ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, [
22
+ vue.createVNode(mtIcon_vue_vue_type_style_index_0_lang._sfc_main, {
23
+ class: "mt-field-hint__icon",
24
+ name: _ctx.icon,
25
+ size: "var(--scale-size-12)",
26
+ color: "var(--color-icon-secondary-default)",
27
+ decorative: ""
28
+ }, null, 8, ["name"])
29
+ ])) : vue.createCommentVNode("", true),
30
+ vue.createElementVNode("span", _hoisted_3, [
25
31
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
26
32
  ])
27
33
  ]);
28
34
  };
29
35
  }
30
36
  });
31
- const mtFieldHint_vue_vue_type_style_index_0_scoped_e5d87355_lang = "";
32
- const MtFieldHint = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-e5d87355"]]);
37
+ const mtFieldHint_vue_vue_type_style_index_0_scoped_10dc0393_lang = "";
38
+ const MtFieldHint = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-10dc0393"]]);
33
39
  module.exports = MtFieldHint;
@@ -1,6 +1,6 @@
1
1
  import '../mt-floating-ui.css';
2
2
  "use strict";
3
- const mtFloatingUi_vue_vue_type_style_index_0_lang = require("../mt-floating-ui.vue_vue_type_style_index_0_lang-2ea8a18a.js");
3
+ const mtFloatingUi_vue_vue_type_style_index_0_lang = require("../mt-floating-ui.vue_vue_type_style_index_0_lang-f48de489.js");
4
4
  require("vue");
5
5
  require("../floating-ui.dom-fe395b67.js");
6
6
  module.exports = mtFloatingUi_vue_vue_type_style_index_0_lang._sfc_main;
@@ -1,2 +1,15 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ /**
2
+ * For internal Contena Services only.
3
+ *
4
+ * Displays a permission grant section for Contena Services.
5
+ */
6
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "grant-success": () => any;
8
+ "grant-error": (error: unknown) => any;
9
+ "more-info": () => any;
10
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
11
+ "onGrant-success"?: (() => any) | undefined;
12
+ "onGrant-error"?: ((error: unknown) => any) | undefined;
13
+ "onMore-info"?: (() => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
15
  export default _default;
@@ -1,155 +1,17 @@
1
1
  import '../mt-grant-permission-service-banner.css';
2
2
  "use strict";
3
- const vue = require("vue");
4
- const index = require("../index-e582fef8.js");
5
- const vueI18n = require("vue-i18n");
6
- const mtIcon_vue_vue_type_style_index_0_lang = require("../mt-icon.vue_vue_type_style_index_0_lang-228a1bb5.js");
7
- const MtText = require("./MtText.js");
8
- const MtButton = require("./MtButton.js");
9
- const index$1 = require("../index-f8d7f486.js");
10
- const channel = require("../channel-c7fd2abb.js");
11
- const _pluginVue_exportHelper = require("../_plugin-vue_export-helper-9c783a34.js");
3
+ const MtGrantPermissionServiceBanner = require("../mt-grant-permission-service-banner-dc1f0940.js");
4
+ require("../_plugin-vue_export-helper-9c783a34.js");
5
+ require("vue");
6
+ require("../index-e582fef8.js");
12
7
  require("../index-efdf1622.js");
8
+ require("vue-i18n");
9
+ require("../mt-icon.vue_vue_type_style_index_0_lang-228a1bb5.js");
10
+ require("./MtText.js");
11
+ require("./MtButton.js");
13
12
  require("../useIsInsideTooltip-f4674e27.js");
14
13
  require("./MtLoader.js");
14
+ require("../channel-41ddc4ca.js");
15
15
  require("../Criteria-86968a69.js");
16
- const dispatch = channel.createSender("telemetryDispatch");
17
- const isService = channel.createSender("contextIsService", {});
18
- const grant = channel.createSender("servicePermissionGrant", {});
19
- const isGranted = channel.createSender("servicePermissionIsGranted", {});
20
- const _hoisted_1 = {
21
- key: 0,
22
- class: "mt-grant-permission-service-banner__container"
23
- };
24
- const _hoisted_2 = ["aria-labelledby"];
25
- const _hoisted_3 = { class: "mt-grant-permission-service-banner__body" };
26
- const _hoisted_4 = { class: "mt-grant-permission-service-banner__actions" };
27
- const _hoisted_5 = { class: "mt-grant-permission-service-banner__label--short" };
28
- const _hoisted_6 = { class: "mt-grant-permission-service-banner__label--long" };
29
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
30
- __name: "mt-grant-permission-service-banner",
31
- setup(__props) {
32
- const { t } = vueI18n.useI18n({
33
- messages: {
34
- en: {
35
- title: "Grant permissions to activate this service.",
36
- description: "Only the data needed to function will be accessed.",
37
- grantLabel: "Grant permissions",
38
- grantLongLabel: "Grant permissions and activate",
39
- moreInfo: "More info",
40
- moreInfoUrl: "https://developer.contena.cn/docs/"
41
- },
42
- zh: {
43
- title: "授予权限以启用此服务。",
44
- description: "仅访问此功能运行所需的数据。",
45
- grantLabel: "授予权限",
46
- grantLongLabel: "授予权限并启用",
47
- moreInfo: "了解更多",
48
- moreInfoUrl: "https://developer.contena.cn/docs/"
49
- }
50
- }
51
- });
52
- const titleId = vue.useId();
53
- const isLoading = vue.ref(false);
54
- const isShowUI = index.computedAsync(async () => {
55
- return await isService() && !await isGranted();
56
- }, false);
57
- const appInfo = index.computedAsync(async () => {
58
- return await index$1.getAppInformation();
59
- }, null);
60
- function track(event, data) {
61
- dispatch({ event, data }).catch(() => void 0);
62
- }
63
- async function handleGrantPermission() {
64
- var _a, _b;
65
- track(`${(_a = appInfo.value) == null ? void 0 : _a.name}_grant_permission_clicked`, {
66
- contena_version: (_b = appInfo.value) == null ? void 0 : _b.version
67
- });
68
- if (isLoading.value) {
69
- return;
70
- }
71
- isLoading.value = true;
72
- try {
73
- await grant();
74
- } catch (error) {
75
- console.error("Error granting permission:", error);
76
- } finally {
77
- isLoading.value = false;
78
- }
79
- }
80
- function handleClickMoreInfo() {
81
- var _a;
82
- track(`${(_a = appInfo.value) == null ? void 0 : _a.name}_grant_permission_more_info`);
83
- }
84
- return (_ctx, _cache) => {
85
- return vue.unref(isShowUI) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
86
- vue.createElementVNode("section", {
87
- class: "mt-grant-permission-service-banner",
88
- "aria-labelledby": vue.unref(titleId)
89
- }, [
90
- vue.createVNode(mtIcon_vue_vue_type_style_index_0_lang._sfc_main, {
91
- class: "mt-grant-permission-service-banner__icon",
92
- name: "regular-trust",
93
- size: "32",
94
- decorative: ""
95
- }),
96
- vue.createElementVNode("div", _hoisted_3, [
97
- vue.createVNode(MtText, {
98
- id: vue.unref(titleId),
99
- as: "h3",
100
- weight: "bold",
101
- size: "xs",
102
- class: "mt-grant-permission-service-banner__title"
103
- }, {
104
- default: vue.withCtx(() => [
105
- vue.createTextVNode(vue.toDisplayString(vue.unref(t)("title")), 1)
106
- ]),
107
- _: 1
108
- }, 8, ["id"]),
109
- vue.createVNode(MtText, {
110
- size: "2xs",
111
- color: "color-text-secondary-default",
112
- class: "mt-grant-permission-service-banner__description"
113
- }, {
114
- default: vue.withCtx(() => [
115
- vue.createTextVNode(vue.toDisplayString(vue.unref(t)("description")), 1)
116
- ]),
117
- _: 1
118
- })
119
- ]),
120
- vue.createElementVNode("div", _hoisted_4, [
121
- vue.createVNode(MtButton, {
122
- variant: "primary",
123
- class: "mt-grant-permission-service-banner__grant",
124
- "is-loading": isLoading.value,
125
- onClick: handleGrantPermission
126
- }, {
127
- default: vue.withCtx(() => [
128
- vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(vue.unref(t)("grantLabel")), 1),
129
- vue.createElementVNode("span", _hoisted_6, vue.toDisplayString(vue.unref(t)("grantLongLabel")), 1)
130
- ]),
131
- _: 1
132
- }, 8, ["is-loading"]),
133
- vue.createVNode(MtButton, {
134
- is: "a",
135
- variant: "secondary",
136
- class: "mt-grant-permission-service-banner__more-info",
137
- href: vue.unref(t)("moreInfoUrl"),
138
- target: "_blank",
139
- rel: "noopener noreferrer",
140
- onClick: handleClickMoreInfo
141
- }, {
142
- default: vue.withCtx(() => [
143
- vue.createTextVNode(vue.toDisplayString(vue.unref(t)("moreInfo")), 1)
144
- ]),
145
- _: 1
146
- }, 8, ["href"])
147
- ])
148
- ], 8, _hoisted_2)
149
- ])) : vue.createCommentVNode("", true);
150
- };
151
- }
152
- });
153
- const mtGrantPermissionServiceBanner_vue_vue_type_style_index_0_scoped_95188d4f_lang = "";
154
- const mtGrantPermissionServiceBanner = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-95188d4f"]]);
155
- module.exports = mtGrantPermissionServiceBanner;
16
+ require("../index-fab01d0b.js");
17
+ module.exports = MtGrantPermissionServiceBanner.mtGrantPermissionServiceBanner;
@@ -145,6 +145,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
145
145
  required: false;
146
146
  default: string;
147
147
  };
148
+ autocomplete: {
149
+ type: StringConstructor;
150
+ required: false;
151
+ default: undefined;
152
+ };
148
153
  label: {
149
154
  type: StringConstructor;
150
155
  required: false;
@@ -247,6 +252,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
247
252
  required: false;
248
253
  default: string;
249
254
  };
255
+ autocomplete: {
256
+ type: StringConstructor;
257
+ required: false;
258
+ default: undefined;
259
+ };
250
260
  label: {
251
261
  type: StringConstructor;
252
262
  required: false;
@@ -341,9 +351,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
341
351
  modelValue: string | number;
342
352
  placeholder: string;
343
353
  helpText: string;
354
+ hint: string | null;
344
355
  isInheritanceField: boolean;
345
356
  disableInheritanceToggle: boolean;
346
- hint: string | null;
357
+ autocomplete: string;
347
358
  copyable: boolean;
348
359
  copyableTooltip: boolean;
349
360
  maxLength: number;
@@ -436,7 +447,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
436
447
  hasError(): boolean;
437
448
  }, {}, import('vue').DefineComponent<import('vue').ExtractPropTypes<{
438
449
  validation: {
439
- type: (BooleanConstructor | ObjectConstructor | ArrayConstructor | StringConstructor)[];
450
+ type: (BooleanConstructor | ObjectConstructor | StringConstructor | ArrayConstructor)[];
440
451
  required: false;
441
452
  default: null;
442
453
  };
@@ -447,7 +458,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
447
458
  validateRule(value: unknown, rule: string): boolean;
448
459
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
449
460
  validation: {
450
- type: (BooleanConstructor | ObjectConstructor | ArrayConstructor | StringConstructor)[];
461
+ type: (BooleanConstructor | ObjectConstructor | StringConstructor | ArrayConstructor)[];
451
462
  required: false;
452
463
  default: null;
453
464
  };
@@ -649,8 +660,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
649
660
  "mt-field-hint": {
650
661
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
651
662
  hideIcon?: boolean;
663
+ icon?: string;
652
664
  }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
653
665
  hideIcon: boolean;
666
+ icon: string;
654
667
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
655
668
  P: {};
656
669
  B: {};
@@ -660,16 +673,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
660
673
  Defaults: {};
661
674
  }, Readonly<{
662
675
  hideIcon?: boolean;
676
+ icon?: string;
663
677
  }> & Readonly<{}>, {}, {}, {}, {}, {
664
678
  hideIcon: boolean;
679
+ icon: string;
665
680
  }>;
666
681
  __isFragment?: never;
667
682
  __isTeleport?: never;
668
683
  __isSuspense?: never;
669
684
  } & import('vue').ComponentOptionsBase<Readonly<{
670
685
  hideIcon?: boolean;
686
+ icon?: string;
671
687
  }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
672
688
  hideIcon: boolean;
689
+ icon: string;
673
690
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
674
691
  $slots: {
675
692
  default?(_: {}): any;
@@ -810,8 +827,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
810
827
  "mt-field-hint": {
811
828
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
812
829
  hideIcon?: boolean;
830
+ icon?: string;
813
831
  }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
814
832
  hideIcon: boolean;
833
+ icon: string;
815
834
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
816
835
  P: {};
817
836
  B: {};
@@ -821,16 +840,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
821
840
  Defaults: {};
822
841
  }, Readonly<{
823
842
  hideIcon?: boolean;
843
+ icon?: string;
824
844
  }> & Readonly<{}>, {}, {}, {}, {}, {
825
845
  hideIcon: boolean;
846
+ icon: string;
826
847
  }>;
827
848
  __isFragment?: never;
828
849
  __isTeleport?: never;
829
850
  __isSuspense?: never;
830
851
  } & import('vue').ComponentOptionsBase<Readonly<{
831
852
  hideIcon?: boolean;
853
+ icon?: string;
832
854
  }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
833
855
  hideIcon: boolean;
856
+ icon: string;
834
857
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
835
858
  $slots: {
836
859
  default?(_: {}): any;
@@ -14,7 +14,7 @@ require("../floating-ui.dom-fe395b67.js");
14
14
  require("../useIsInsideTooltip-f4674e27.js");
15
15
  require("../index-efdf1622.js");
16
16
  require("./MtFieldCopyable.js");
17
- require("../tooltip.directive-4ea0fee9.js");
17
+ require("../tooltip.directive-7b51326d.js");
18
18
  require("../id-8e80f112.js");
19
19
  require("./MtHelpText.js");
20
20
  require("../useFutureFlags-bd0f8e37.js");
@@ -375,9 +375,9 @@ const _sfc_main = vue.defineComponent({
375
375
  }
376
376
  }
377
377
  });
378
- const mtNumberField_vue_vue_type_style_index_0_scoped_eab3c285_lang = "";
378
+ const mtNumberField_vue_vue_type_style_index_0_scoped_e0ff2b1d_lang = "";
379
379
  const mtNumberField_vue_vue_type_style_index_1_lang = "";
380
- const _hoisted_1 = ["id", "name", "disabled", "value", "placeholder"];
380
+ const _hoisted_1 = ["id", "name", "autocomplete", "disabled", "value", "placeholder"];
381
381
  const _hoisted_2 = ["disabled", "aria-label"];
382
382
  const _hoisted_3 = ["disabled", "aria-label"];
383
383
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -413,6 +413,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
413
413
  id: _ctx.createInputId(identification),
414
414
  type: "text",
415
415
  name: identification,
416
+ autocomplete: _ctx.autocomplete,
416
417
  disabled: _ctx.disabled || _ctx.isInherited,
417
418
  value: _ctx.stringRepresentation,
418
419
  placeholder: _ctx.placeholder,
@@ -486,5 +487,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
486
487
  _: 3
487
488
  }, 8, ["class", "disabled", "required", "is-inherited", "is-inheritance-field", "disable-inheritance-toggle", "copyable", "copyable-tooltip", "copyable-text", "has-focus", "help-text", "name", "size"]);
488
489
  }
489
- const MtNumberField = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-eab3c285"]]);
490
+ const MtNumberField = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e0ff2b1d"]]);
490
491
  module.exports = MtNumberField;
@@ -9,6 +9,7 @@ type __VLS_Props = {
9
9
  hint?: string | null;
10
10
  toggable?: boolean;
11
11
  name?: string | undefined;
12
+ autocomplete?: string;
12
13
  required?: boolean;
13
14
  helpText?: string;
14
15
  size?: "small" | "default";
@@ -48,9 +49,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
48
49
  } | null;
49
50
  placeholder: string;
50
51
  helpText: string;
52
+ hint: string | null;
51
53
  isInheritanceField: boolean;
52
54
  disableInheritanceToggle: boolean;
53
- hint: string | null;
55
+ autocomplete: string;
54
56
  idSuffix: string;
55
57
  toggable: boolean;
56
58
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -14,12 +14,12 @@ require("../floating-ui.dom-fe395b67.js");
14
14
  require("../useIsInsideTooltip-f4674e27.js");
15
15
  require("../index-efdf1622.js");
16
16
  require("./MtFieldCopyable.js");
17
- require("../tooltip.directive-4ea0fee9.js");
17
+ require("../tooltip.directive-7b51326d.js");
18
18
  require("../id-8e80f112.js");
19
19
  require("./MtHelpText.js");
20
20
  require("../useFutureFlags-bd0f8e37.js");
21
21
  require("./MtText.js");
22
- const _hoisted_1 = ["id", "type", "name", "placeholder", "disabled", "value", "aria-label"];
22
+ const _hoisted_1 = ["id", "type", "name", "autocomplete", "placeholder", "disabled", "value", "aria-label"];
23
23
  const _hoisted_2 = ["aria-label", "disabled"];
24
24
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
25
25
  __name: "mt-password-field",
@@ -31,6 +31,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
31
31
  hint: { default: null },
32
32
  toggable: { type: Boolean, default: true },
33
33
  name: { default: void 0 },
34
+ autocomplete: { default: void 0 },
34
35
  required: { type: Boolean, default: false },
35
36
  helpText: { default: "" },
36
37
  size: { default: "default" },
@@ -111,6 +112,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
111
112
  id: createInputId(identification),
112
113
  type: showPassword.value ? "text" : "password",
113
114
  name: identification,
115
+ autocomplete: _ctx.autocomplete,
114
116
  placeholder: _ctx.placeholder,
115
117
  disabled: _ctx.disabled || _ctx.isInherited,
116
118
  value: model.value ?? "",
@@ -164,6 +166,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
164
166
  };
165
167
  }
166
168
  });
167
- const mtPasswordField_vue_vue_type_style_index_0_scoped_3e0be26d_lang = "";
168
- const mtPasswordField = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-3e0be26d"]]);
169
+ const mtPasswordField_vue_vue_type_style_index_0_scoped_77fb09c0_lang = "";
170
+ const mtPasswordField = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-77fb09c0"]]);
169
171
  module.exports = mtPasswordField;