@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.
- package/dist/{channel-c0a7f238.mjs → channel-24cdec8b.mjs} +1 -1
- package/dist/{channel-c7fd2abb.js → channel-41ddc4ca.js} +1 -1
- package/dist/common/MtActionMenuItem.d.ts +1 -1
- package/dist/common/MtBadge.d.ts +1 -1
- package/dist/common/MtBanner.d.ts +1 -1
- package/dist/common/MtBaseField.d.ts +2 -2
- package/dist/common/MtBaseField.js +1 -1
- package/dist/common/MtButton.d.ts +35 -32
- package/dist/common/MtButton.js +6 -3
- package/dist/common/MtCard.js +2 -2
- package/dist/common/MtCheckbox.d.ts +2 -2
- package/dist/common/MtCheckbox.js +1 -1
- package/dist/common/MtColorpicker.d.ts +9 -3
- package/dist/common/MtColorpicker.js +2 -2
- package/dist/common/MtContextButton.js +2 -2
- package/dist/common/MtContextMenuItem.d.ts +2 -2
- package/dist/common/MtContextMenuItem.js +1 -1
- package/dist/common/MtDataTable.d.ts +58 -47
- package/dist/common/MtDataTable.js +3 -3
- package/dist/common/MtDataTableBadgeRenderer.d.ts +3 -3
- package/dist/common/MtDataTableFilter.js +2 -2
- package/dist/common/MtDataTableSettings.d.ts +11 -8
- package/dist/common/MtDataTableSettings.js +2 -2
- package/dist/common/MtDatepicker.d.ts +24 -1
- package/dist/common/MtDatepicker.js +2 -1
- package/dist/common/MtEmailField.d.ts +1 -0
- package/dist/common/MtEmailField.js +5 -3
- package/dist/common/MtEntityDataTable.js +4 -4
- package/dist/common/MtEntitySelect.js +3 -3
- package/dist/common/MtFieldCopyable.js +1 -1
- package/dist/common/MtFieldHint.d.ts +5 -0
- package/dist/common/MtFieldHint.js +19 -13
- package/dist/common/MtFloatingUi.js +1 -1
- package/dist/common/MtGrantPermissionServiceBanner.d.ts +14 -1
- package/dist/common/MtGrantPermissionServiceBanner.js +11 -149
- package/dist/common/MtNumberField.d.ts +26 -3
- package/dist/common/MtNumberField.js +5 -4
- package/dist/common/MtPasswordField.d.ts +3 -1
- package/dist/common/MtPasswordField.js +6 -4
- package/dist/common/MtPopover.d.ts +4 -4
- package/dist/common/MtPopover.js +2 -2
- package/dist/common/MtPopoverItem.d.ts +2 -2
- package/dist/common/MtPopoverItem.js +1 -1
- package/dist/common/MtPopoverItemResult.d.ts +5 -2
- package/dist/common/MtPopoverItemResult.js +1 -1
- package/dist/common/MtSearch.d.ts +2 -0
- package/dist/common/MtSearch.js +12 -7
- package/dist/common/MtSegmentedControl.d.ts +6 -6
- package/dist/common/MtSegmentedControl.js +2 -2
- package/dist/common/MtSelect.d.ts +30 -20
- package/dist/common/MtSelect.js +20 -3
- package/dist/common/MtSelectBase.d.ts +4 -4
- package/dist/common/MtSelectBase.js +2 -2
- package/dist/common/MtSelectResult.d.ts +0 -16
- package/dist/common/MtSelectResult.js +2 -22
- package/dist/common/MtSelectSelectionList.js +4 -0
- package/dist/common/MtSlider.d.ts +36 -7
- package/dist/common/MtSlider.js +3 -1
- package/dist/common/MtSnackbarNotification.js +2 -6
- package/dist/common/MtTabs.d.ts +2 -2
- package/dist/common/MtTabs.js +9 -8
- package/dist/common/MtTextEditor.js +4 -4
- package/dist/common/MtTextEditorToolbar.js +2 -2
- package/dist/common/MtTextEditorToolbarButton.js +1 -1
- package/dist/common/MtTextEditorToolbarButtonColor.js +2 -2
- package/dist/common/MtTextEditorToolbarButtonLink.js +1 -1
- package/dist/common/MtTextEditorToolbarButtonTable.js +10 -10
- package/dist/common/MtTextField.d.ts +28 -3
- package/dist/common/MtTextField.js +12 -2
- package/dist/common/MtTextarea.d.ts +1 -0
- package/dist/common/MtTextarea.js +10 -8
- package/dist/common/MtThemeSelect.js +2 -2
- package/dist/common/MtUnitField.js +3 -3
- package/dist/common/MtUnitSelect.js +4 -4
- package/dist/common/MtUnitSelectResult.js +2 -2
- package/dist/common/MtUrlField.d.ts +2 -0
- package/dist/common/MtUrlField.js +5 -3
- package/dist/common/components/mt-snackbar/composables/use-snackbar.d.ts +1 -1
- package/dist/common/composables/useServicePermission.d.ts +15 -0
- package/dist/common/index.d.ts +2 -1
- package/dist/common/index.js +13 -12
- package/dist/common/mixins/validation.mixin.d.ts +2 -2
- package/dist/esm/MtActionMenuItem.d.ts +1 -1
- package/dist/esm/MtBadge.d.ts +1 -1
- package/dist/esm/MtBanner.d.ts +1 -1
- package/dist/esm/MtBaseField.d.ts +2 -2
- package/dist/esm/MtBaseField.js +1 -1
- package/dist/esm/MtButton.d.ts +35 -32
- package/dist/esm/MtButton.js +6 -3
- package/dist/esm/MtCard.js +2 -2
- package/dist/esm/MtCheckbox.d.ts +2 -2
- package/dist/esm/MtCheckbox.js +1 -1
- package/dist/esm/MtColorpicker.d.ts +9 -3
- package/dist/esm/MtColorpicker.js +2 -2
- package/dist/esm/MtContextButton.js +2 -2
- package/dist/esm/MtContextMenuItem.d.ts +2 -2
- package/dist/esm/MtContextMenuItem.js +1 -1
- package/dist/esm/MtDataTable.d.ts +58 -47
- package/dist/esm/MtDataTable.js +3 -3
- package/dist/esm/MtDataTableBadgeRenderer.d.ts +3 -3
- package/dist/esm/MtDataTableFilter.js +2 -2
- package/dist/esm/MtDataTableSettings.d.ts +11 -8
- package/dist/esm/MtDataTableSettings.js +2 -2
- package/dist/esm/MtDatepicker.d.ts +24 -1
- package/dist/esm/MtDatepicker.js +2 -1
- package/dist/esm/MtEmailField.d.ts +1 -0
- package/dist/esm/MtEmailField.js +5 -3
- package/dist/esm/MtEntityDataTable.js +4 -4
- package/dist/esm/MtEntitySelect.js +3 -3
- package/dist/esm/MtFieldCopyable.js +1 -1
- package/dist/esm/MtFieldHint.d.ts +5 -0
- package/dist/esm/MtFieldHint.js +20 -14
- package/dist/esm/MtFloatingUi.js +1 -1
- package/dist/esm/MtGrantPermissionServiceBanner.d.ts +14 -1
- package/dist/esm/MtGrantPermissionServiceBanner.js +11 -149
- package/dist/esm/MtNumberField.d.ts +26 -3
- package/dist/esm/MtNumberField.js +5 -4
- package/dist/esm/MtPasswordField.d.ts +3 -1
- package/dist/esm/MtPasswordField.js +6 -4
- package/dist/esm/MtPopover.d.ts +4 -4
- package/dist/esm/MtPopover.js +2 -2
- package/dist/esm/MtPopoverItem.d.ts +2 -2
- package/dist/esm/MtPopoverItem.js +1 -1
- package/dist/esm/MtPopoverItemResult.d.ts +5 -2
- package/dist/esm/MtPopoverItemResult.js +1 -1
- package/dist/esm/MtSearch.d.ts +2 -0
- package/dist/esm/MtSearch.js +12 -7
- package/dist/esm/MtSegmentedControl.d.ts +6 -6
- package/dist/esm/MtSegmentedControl.js +2 -2
- package/dist/esm/MtSelect.d.ts +30 -20
- package/dist/esm/MtSelect.js +20 -3
- package/dist/esm/MtSelectBase.d.ts +4 -4
- package/dist/esm/MtSelectBase.js +2 -2
- package/dist/esm/MtSelectResult.d.ts +0 -16
- package/dist/esm/MtSelectResult.js +2 -22
- package/dist/esm/MtSelectSelectionList.js +4 -0
- package/dist/esm/MtSlider.d.ts +36 -7
- package/dist/esm/MtSlider.js +3 -1
- package/dist/esm/MtSnackbarNotification.js +2 -6
- package/dist/esm/MtTabs.d.ts +2 -2
- package/dist/esm/MtTabs.js +10 -9
- package/dist/esm/MtTextEditor.js +4 -4
- package/dist/esm/MtTextEditorToolbar.js +2 -2
- package/dist/esm/MtTextEditorToolbarButton.js +1 -1
- package/dist/esm/MtTextEditorToolbarButtonColor.js +2 -2
- package/dist/esm/MtTextEditorToolbarButtonLink.js +1 -1
- package/dist/esm/MtTextEditorToolbarButtonTable.js +10 -10
- package/dist/esm/MtTextField.d.ts +28 -3
- package/dist/esm/MtTextField.js +12 -2
- package/dist/esm/MtTextarea.d.ts +1 -0
- package/dist/esm/MtTextarea.js +10 -8
- package/dist/esm/MtThemeSelect.js +2 -2
- package/dist/esm/MtUnitField.js +3 -3
- package/dist/esm/MtUnitSelect.js +4 -4
- package/dist/esm/MtUnitSelectResult.js +2 -2
- package/dist/esm/MtUrlField.d.ts +2 -0
- package/dist/esm/MtUrlField.js +5 -3
- package/dist/esm/components/mt-snackbar/composables/use-snackbar.d.ts +1 -1
- package/dist/esm/composables/useServicePermission.d.ts +15 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +62 -61
- package/dist/esm/mixins/validation.mixin.d.ts +2 -2
- package/dist/example-radio-option.css +1 -107
- package/dist/{index-26e65048.mjs → index-1e353711.mjs} +1 -1
- package/dist/{index-2cb63874.js → index-269e5194.js} +3 -3
- package/dist/{index-ddce4e37.mjs → index-b57e37f8.mjs} +3 -3
- package/dist/{index-f8d7f486.js → index-fab01d0b.js} +1 -1
- package/dist/index.css +1 -1012
- package/dist/mt-action-menu-group.css +1 -23
- package/dist/mt-action-menu-item.css +1 -68
- package/dist/mt-action-menu.css +1 -28
- package/dist/mt-avatar.css +1 -66
- package/dist/mt-badge.css +1 -51
- package/dist/mt-banner.css +1 -95
- package/dist/mt-base-field.css +1 -206
- package/dist/mt-button.css +1 -249
- package/dist/mt-card.css +1 -210
- package/dist/mt-chart.css +1 -37
- package/dist/mt-checkbox.css +1 -176
- package/dist/mt-collapsible-content.css +1 -32
- package/dist/mt-colorpicker.css +1 -355
- package/dist/mt-context-button.css +1 -22
- package/dist/mt-data-table-filter.css +1 -71
- package/dist/mt-data-table-number-renderer.css +1 -8
- package/dist/mt-data-table-price-renderer.css +1 -8
- package/dist/mt-data-table-reset-filter-button.css +1 -14
- package/dist/mt-data-table-text-renderer.css +1 -33
- package/dist/mt-data-table.css +1 -653
- package/dist/mt-datepicker.css +1 -293
- 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
- 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
- package/dist/mt-email-field.css +1 -97
- package/dist/mt-empty-state.css +1 -37
- package/dist/mt-entity-data-table.css +1 -43
- 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
- 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
- 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
- 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
- package/dist/mt-field-affix.css +1 -23
- package/dist/mt-field-copyable.css +1 -4
- package/dist/mt-field-error.css +1 -8
- package/dist/mt-field-hint.css +1 -24
- package/dist/mt-field-label.css +1 -31
- package/dist/mt-floating-ui.css +1 -87
- 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
- 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
- package/dist/mt-grant-permission-service-banner-62995d3a.mjs +191 -0
- package/dist/mt-grant-permission-service-banner-dc1f0940.js +190 -0
- package/dist/mt-grant-permission-service-banner.css +1 -88
- package/dist/mt-help-text.css +1 -33
- package/dist/mt-highlight-text.css +1 -5
- package/dist/mt-icon.css +1 -3697
- package/dist/mt-inheritance-switch.css +1 -12
- package/dist/mt-inset.css +1 -7
- package/dist/mt-label.css +1 -71
- package/dist/mt-link.css +1 -38
- package/dist/mt-loader.css +1 -76
- package/dist/mt-modal-root.css +1 -20
- package/dist/mt-modal.css +1 -160
- package/dist/mt-number-field.css +1 -71
- package/dist/mt-pagination.css +1 -78
- package/dist/mt-password-field.css +1 -27
- package/dist/mt-popover-deprecated.css +1 -7
- package/dist/mt-popover-item-result.css +1 -135
- package/dist/mt-popover-item.css +1 -175
- package/dist/mt-popover.css +1 -99
- package/dist/mt-progress-bar.css +1 -26
- package/dist/mt-promo-badge.css +1 -4
- package/dist/mt-radio-group-indicator.css +1 -47
- package/dist/mt-radio-group-item.css +1 -25
- package/dist/mt-radio-group-list.css +1 -6
- package/dist/mt-radio-group-root.css +1 -33
- package/dist/mt-search.css +1 -61
- package/dist/mt-segmented-control.css +1 -146
- package/dist/mt-select-base.css +1 -121
- package/dist/mt-select-result-list.css +1 -120
- package/dist/mt-select-result.css +1 -114
- package/dist/mt-select-selection-list.css +1 -127
- package/dist/mt-skeleton-bar.css +1 -33
- package/dist/mt-slider.css +1 -152
- package/dist/mt-snackbar-notification.css +1 -63
- package/dist/mt-snackbar.css +1 -58
- package/dist/mt-status-dot.css +1 -58
- package/dist/mt-switch.css +1 -94
- package/dist/mt-tabs.css +1 -111
- package/dist/mt-text-editor-diff-modal.css +3 -696
- package/dist/mt-text-editor-toolbar-button-color.css +1 -19
- package/dist/mt-text-editor-toolbar-button-link.css +1 -6
- package/dist/mt-text-editor-toolbar-button-table.css +1 -6
- package/dist/mt-text-editor-toolbar-button.css +1 -26
- package/dist/mt-text-editor-toolbar.css +1 -36
- package/dist/mt-text-editor.css +1 -338
- package/dist/mt-text.css +1 -53
- package/dist/mt-textarea.css +1 -62
- 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
- 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
- package/dist/mt-toast-notification.css +1 -161
- package/dist/mt-toast.css +1 -101
- package/dist/mt-tooltip.css +1 -47
- package/dist/mt-unit-field.css +1 -12
- package/dist/mt-unit-select-result.css +1 -34
- package/dist/mt-unit-select.css +1 -44
- package/dist/mt-url-field.css +1 -147
- package/dist/{repository-e7884115.mjs → repository-2316b912.mjs} +1 -1
- package/dist/{repository-9c56cf7b.js → repository-3d192939.js} +1 -1
- package/dist/{tooltip.directive-4ea0fee9.js → tooltip.directive-7b51326d.js} +23 -0
- package/dist/{tooltip.directive-f216b7fb.mjs → tooltip.directive-a5042569.mjs} +23 -0
- package/dist/{useRepository-6804d3b6.js → useRepository-86f5a789.js} +1 -1
- package/dist/{useRepository-28dfccf5.mjs → useRepository-f3e9ffc6.mjs} +1 -1
- package/package.json +5 -9
|
@@ -637,7 +637,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
637
637
|
hasError(): boolean;
|
|
638
638
|
}, {}, import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
639
639
|
validation: {
|
|
640
|
-
type: (BooleanConstructor | ObjectConstructor |
|
|
640
|
+
type: (BooleanConstructor | ObjectConstructor | StringConstructor | ArrayConstructor)[];
|
|
641
641
|
required: false;
|
|
642
642
|
default: null;
|
|
643
643
|
};
|
|
@@ -648,7 +648,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
648
648
|
validateRule(value: unknown, rule: string): boolean;
|
|
649
649
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
650
650
|
validation: {
|
|
651
|
-
type: (BooleanConstructor | ObjectConstructor |
|
|
651
|
+
type: (BooleanConstructor | ObjectConstructor | StringConstructor | ArrayConstructor)[];
|
|
652
652
|
required: false;
|
|
653
653
|
default: null;
|
|
654
654
|
};
|
|
@@ -1474,7 +1474,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1474
1474
|
hasError(): boolean;
|
|
1475
1475
|
}, {}, import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1476
1476
|
validation: {
|
|
1477
|
-
type: (BooleanConstructor | ObjectConstructor |
|
|
1477
|
+
type: (BooleanConstructor | ObjectConstructor | StringConstructor | ArrayConstructor)[];
|
|
1478
1478
|
required: false;
|
|
1479
1479
|
default: null;
|
|
1480
1480
|
};
|
|
@@ -1485,7 +1485,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1485
1485
|
validateRule(value: unknown, rule: string): boolean;
|
|
1486
1486
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1487
1487
|
validation: {
|
|
1488
|
-
type: (BooleanConstructor | ObjectConstructor |
|
|
1488
|
+
type: (BooleanConstructor | ObjectConstructor | StringConstructor | ArrayConstructor)[];
|
|
1489
1489
|
required: false;
|
|
1490
1490
|
default: null;
|
|
1491
1491
|
};
|
|
@@ -2457,7 +2457,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2457
2457
|
hasError(): boolean;
|
|
2458
2458
|
}, {}, import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2459
2459
|
validation: {
|
|
2460
|
-
type: (BooleanConstructor | ObjectConstructor |
|
|
2460
|
+
type: (BooleanConstructor | ObjectConstructor | StringConstructor | ArrayConstructor)[];
|
|
2461
2461
|
required: false;
|
|
2462
2462
|
default: null;
|
|
2463
2463
|
};
|
|
@@ -2468,7 +2468,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2468
2468
|
validateRule(value: unknown, rule: string): boolean;
|
|
2469
2469
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
2470
2470
|
validation: {
|
|
2471
|
-
type: (BooleanConstructor | ObjectConstructor |
|
|
2471
|
+
type: (BooleanConstructor | ObjectConstructor | StringConstructor | ArrayConstructor)[];
|
|
2472
2472
|
required: false;
|
|
2473
2473
|
default: null;
|
|
2474
2474
|
};
|
|
@@ -2861,6 +2861,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2861
2861
|
placeholder?: string;
|
|
2862
2862
|
size?: "small" | "default";
|
|
2863
2863
|
disabled?: boolean;
|
|
2864
|
+
autocomplete?: string;
|
|
2864
2865
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
2865
2866
|
"update:modelValue": (value: string) => any;
|
|
2866
2867
|
change: (value: string) => any;
|
|
@@ -2869,11 +2870,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2869
2870
|
placeholder?: string;
|
|
2870
2871
|
size?: "small" | "default";
|
|
2871
2872
|
disabled?: boolean;
|
|
2873
|
+
autocomplete?: string;
|
|
2872
2874
|
}> & Readonly<{
|
|
2873
2875
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
2874
2876
|
onChange?: ((value: string) => any) | undefined;
|
|
2875
2877
|
}>, {
|
|
2876
2878
|
size: "small" | "default";
|
|
2879
|
+
autocomplete: string;
|
|
2877
2880
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2878
2881
|
"mt-popover-item": import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2879
2882
|
label: {
|
|
@@ -3435,7 +3438,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
3435
3438
|
hasError(): boolean;
|
|
3436
3439
|
}, {}, import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3437
3440
|
validation: {
|
|
3438
|
-
type: (BooleanConstructor | ObjectConstructor |
|
|
3441
|
+
type: (BooleanConstructor | ObjectConstructor | StringConstructor | ArrayConstructor)[];
|
|
3439
3442
|
required: false;
|
|
3440
3443
|
default: null;
|
|
3441
3444
|
};
|
|
@@ -3446,7 +3449,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
3446
3449
|
validateRule(value: unknown, rule: string): boolean;
|
|
3447
3450
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
3448
3451
|
validation: {
|
|
3449
|
-
type: (BooleanConstructor | ObjectConstructor |
|
|
3452
|
+
type: (BooleanConstructor | ObjectConstructor | StringConstructor | ArrayConstructor)[];
|
|
3450
3453
|
required: false;
|
|
3451
3454
|
default: null;
|
|
3452
3455
|
};
|
|
@@ -4,7 +4,7 @@ import { _ as _sfc_main$1 } from "../mt-icon.vue_vue_type_style_index_0_lang-c90
|
|
|
4
4
|
import mtPopover from "./MtPopover.js";
|
|
5
5
|
import mtPopoverItem from "./MtPopoverItem.js";
|
|
6
6
|
import { M as MtPopoverItemResult } from "../mt-popover-item-result-c0214b39.mjs";
|
|
7
|
-
import { v as vTooltip } from "../tooltip.directive-
|
|
7
|
+
import { v as vTooltip } from "../tooltip.directive-a5042569.mjs";
|
|
8
8
|
import { useI18n } from "vue-i18n";
|
|
9
9
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.mjs";
|
|
10
10
|
import "../useIsInsideTooltip-0c3bd290.mjs";
|
|
@@ -26,7 +26,7 @@ import "../mt-switch.vue_vue_type_style_index_0_lang-4d293db9.mjs";
|
|
|
26
26
|
import "./MtFieldLabel.js";
|
|
27
27
|
import "./MtSmoothReflow.js";
|
|
28
28
|
import "../_commonjsHelpers-7a77ea84.mjs";
|
|
29
|
-
import "../mt-floating-ui.vue_vue_type_style_index_0_lang-
|
|
29
|
+
import "../mt-floating-ui.vue_vue_type_style_index_0_lang-1e4e0347.mjs";
|
|
30
30
|
import "./MtSearch.js";
|
|
31
31
|
const _sfc_main = defineComponent({
|
|
32
32
|
name: "MtDataTableSettings",
|
|
@@ -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
|
|
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
|
+
};
|
package/dist/esm/MtDatepicker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../mt-datepicker.css';
|
|
2
|
-
import { _ as _sfc_main } from "../mt-datepicker.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as _sfc_main } from "../mt-datepicker.vue_vue_type_style_index_0_lang-5edbea9c.mjs";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "../mt-icon.vue_vue_type_style_index_0_lang-c90dc25b.mjs";
|
|
5
5
|
import "./MtHelpText.js";
|
|
@@ -12,6 +12,7 @@ import "../_plugin-vue_export-helper-cc2b3d55.mjs";
|
|
|
12
12
|
import "./MtFieldLabel.js";
|
|
13
13
|
import "./MtInheritanceSwitch.js";
|
|
14
14
|
import "vue-i18n";
|
|
15
|
+
import "./MtFieldHint.js";
|
|
15
16
|
import "./MtFieldError.js";
|
|
16
17
|
import "./MtText.js";
|
|
17
18
|
export {
|
package/dist/esm/MtEmailField.js
CHANGED
|
@@ -17,7 +17,7 @@ import "../floating-ui.vue-61aa2b7b.mjs";
|
|
|
17
17
|
import "../floating-ui.dom-3a2ca2f5.mjs";
|
|
18
18
|
import "../useIsInsideTooltip-0c3bd290.mjs";
|
|
19
19
|
import "../index-431c2592.mjs";
|
|
20
|
-
const _hoisted_1 = ["id", "required", "disabled", "name", "placeholder", "aria-invalid", "aria-describedby"];
|
|
20
|
+
const _hoisted_1 = ["id", "required", "disabled", "name", "autocomplete", "placeholder", "aria-invalid", "aria-describedby"];
|
|
21
21
|
const _hoisted_2 = ["aria-label"];
|
|
22
22
|
const _hoisted_3 = {
|
|
23
23
|
key: 3,
|
|
@@ -31,6 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
required: { type: Boolean },
|
|
32
32
|
modelValue: {},
|
|
33
33
|
name: {},
|
|
34
|
+
autocomplete: {},
|
|
34
35
|
label: {},
|
|
35
36
|
error: {},
|
|
36
37
|
helpText: {},
|
|
@@ -149,6 +150,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
150
|
required: _ctx.required,
|
|
150
151
|
disabled: _ctx.disabled || _ctx.isInherited,
|
|
151
152
|
name: _ctx.name,
|
|
153
|
+
autocomplete: _ctx.autocomplete,
|
|
152
154
|
placeholder: _ctx.placeholder,
|
|
153
155
|
"aria-invalid": !!errorMessage.value || !!_ctx.error,
|
|
154
156
|
"aria-describedby": !!errorMessage.value || !!_ctx.error ? unref(errorId) : void 0,
|
|
@@ -215,8 +217,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
215
217
|
};
|
|
216
218
|
}
|
|
217
219
|
});
|
|
218
|
-
const
|
|
219
|
-
const mtEmailField = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
220
|
+
const mtEmailField_vue_vue_type_style_index_0_scoped_21c2f7bb_lang = "";
|
|
221
|
+
const mtEmailField = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-21c2f7bb"]]);
|
|
220
222
|
export {
|
|
221
223
|
mtEmailField as default
|
|
222
224
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../mt-entity-data-table.css';
|
|
2
|
-
import { _ as _sfc_main } from "../mt-entity-data-table.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as _sfc_main } from "../mt-entity-data-table.vue_vue_type_style_index_0_lang-24a26788.mjs";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "../Criteria-dda62b10.mjs";
|
|
5
|
-
import "../useRepository-
|
|
5
|
+
import "../useRepository-f3e9ffc6.mjs";
|
|
6
6
|
import "./MtDataTable.js";
|
|
7
7
|
import "./MtCard.js";
|
|
8
8
|
import "../mt-context-button.vue_vue_type_style_index_0_lang-c4b5d005.mjs";
|
|
@@ -19,7 +19,7 @@ import "../index-431c2592.mjs";
|
|
|
19
19
|
import "../_plugin-vue_export-helper-cc2b3d55.mjs";
|
|
20
20
|
import "vue-i18n";
|
|
21
21
|
import "./MtFieldCopyable.js";
|
|
22
|
-
import "../tooltip.directive-
|
|
22
|
+
import "../tooltip.directive-a5042569.mjs";
|
|
23
23
|
import "../id-1e5b8276.mjs";
|
|
24
24
|
import "./MtHelpText.js";
|
|
25
25
|
import "../useFutureFlags-af867fe7.mjs";
|
|
@@ -32,7 +32,7 @@ import "./MtButton.js";
|
|
|
32
32
|
import "./MtLoader.js";
|
|
33
33
|
import "./MtSmoothReflow.js";
|
|
34
34
|
import "../_commonjsHelpers-7a77ea84.mjs";
|
|
35
|
-
import "../mt-floating-ui.vue_vue_type_style_index_0_lang-
|
|
35
|
+
import "../mt-floating-ui.vue_vue_type_style_index_0_lang-1e4e0347.mjs";
|
|
36
36
|
import "./MtSelect.js";
|
|
37
37
|
import "../debounce-b18437e2.mjs";
|
|
38
38
|
import "../object-e11d5dd3.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _sfc_main } from "../mt-entity-select.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as _sfc_main } from "../mt-entity-select.vue_vue_type_script_setup_true_lang-f94e984f.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "./MtSelect.js";
|
|
4
4
|
import "../debounce-b18437e2.mjs";
|
|
@@ -16,7 +16,7 @@ import "../useIsInsideTooltip-0c3bd290.mjs";
|
|
|
16
16
|
import "../index-431c2592.mjs";
|
|
17
17
|
import "vue-i18n";
|
|
18
18
|
import "./MtFieldCopyable.js";
|
|
19
|
-
import "../tooltip.directive-
|
|
19
|
+
import "../tooltip.directive-a5042569.mjs";
|
|
20
20
|
import "../id-1e5b8276.mjs";
|
|
21
21
|
import "./MtHelpText.js";
|
|
22
22
|
import "../useFutureFlags-af867fe7.mjs";
|
|
@@ -32,7 +32,7 @@ import "../mt-label.vue_vue_type_style_index_0_lang-3ceffd12.mjs";
|
|
|
32
32
|
import "./MtButton.js";
|
|
33
33
|
import "../mt-highlight-text.vue_vue_type_style_index_0_lang-550f3bfe.mjs";
|
|
34
34
|
import "../Criteria-dda62b10.mjs";
|
|
35
|
-
import "../useRepository-
|
|
35
|
+
import "../useRepository-f3e9ffc6.mjs";
|
|
36
36
|
export {
|
|
37
37
|
_sfc_main as default
|
|
38
38
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../mt-field-copyable.css';
|
|
2
2
|
import { defineComponent, ref, computed, resolveComponent, resolveDirective, openBlock, createElementBlock, withDirectives, createVNode } from "vue";
|
|
3
3
|
import { _ as _sfc_main$1 } from "../mt-icon.vue_vue_type_style_index_0_lang-c90dc25b.mjs";
|
|
4
|
-
import { v as vTooltip } from "../tooltip.directive-
|
|
4
|
+
import { v as vTooltip } from "../tooltip.directive-a5042569.mjs";
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.mjs";
|
|
7
7
|
import "../id-1e5b8276.mjs";
|
|
@@ -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;
|
package/dist/esm/MtFieldHint.js
CHANGED
|
@@ -1,34 +1,40 @@
|
|
|
1
1
|
import '../mt-field-hint.css';
|
|
2
|
-
import { defineComponent, openBlock, createElementBlock,
|
|
2
|
+
import { defineComponent, openBlock, createElementBlock, createVNode, createCommentVNode, createElementVNode, renderSlot } from "vue";
|
|
3
3
|
import { _ as _sfc_main$1 } from "../mt-icon.vue_vue_type_style_index_0_lang-c90dc25b.mjs";
|
|
4
4
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.mjs";
|
|
5
5
|
const _hoisted_1 = { class: "mt-field-hint" };
|
|
6
|
-
const _hoisted_2 = {
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "mt-field-hint__icon-wrapper"
|
|
9
|
+
};
|
|
10
|
+
const _hoisted_3 = { class: "mt-field-hint__text" };
|
|
7
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
12
|
__name: "mt-field-hint",
|
|
9
13
|
props: {
|
|
10
|
-
hideIcon: { type: Boolean, default: false }
|
|
14
|
+
hideIcon: { type: Boolean, default: false },
|
|
15
|
+
icon: { default: "solid-info-circle" }
|
|
11
16
|
},
|
|
12
17
|
setup(__props) {
|
|
13
18
|
return (_ctx, _cache) => {
|
|
14
19
|
return openBlock(), createElementBlock("span", _hoisted_1, [
|
|
15
|
-
!_ctx.hideIcon ? (openBlock(),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
!_ctx.hideIcon ? (openBlock(), createElementBlock("span", _hoisted_2, [
|
|
21
|
+
createVNode(_sfc_main$1, {
|
|
22
|
+
class: "mt-field-hint__icon",
|
|
23
|
+
name: _ctx.icon,
|
|
24
|
+
size: "var(--scale-size-12)",
|
|
25
|
+
color: "var(--color-icon-secondary-default)",
|
|
26
|
+
decorative: ""
|
|
27
|
+
}, null, 8, ["name"])
|
|
28
|
+
])) : createCommentVNode("", true),
|
|
29
|
+
createElementVNode("span", _hoisted_3, [
|
|
24
30
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
25
31
|
])
|
|
26
32
|
]);
|
|
27
33
|
};
|
|
28
34
|
}
|
|
29
35
|
});
|
|
30
|
-
const
|
|
31
|
-
const MtFieldHint = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
36
|
+
const mtFieldHint_vue_vue_type_style_index_0_scoped_10dc0393_lang = "";
|
|
37
|
+
const MtFieldHint = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-10dc0393"]]);
|
|
32
38
|
export {
|
|
33
39
|
MtFieldHint as default
|
|
34
40
|
};
|
package/dist/esm/MtFloatingUi.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../mt-floating-ui.css';
|
|
2
|
-
import { _ as _sfc_main } from "../mt-floating-ui.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as _sfc_main } from "../mt-floating-ui.vue_vue_type_style_index_0_lang-1e4e0347.mjs";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "../floating-ui.dom-3a2ca2f5.mjs";
|
|
5
5
|
export {
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
|
|
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,156 +1,18 @@
|
|
|
1
1
|
import '../mt-grant-permission-service-banner.css';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import MtText from "./MtText.js";
|
|
7
|
-
import MtButton from "./MtButton.js";
|
|
8
|
-
import { g as getAppInformation } from "../index-26e65048.mjs";
|
|
9
|
-
import { c as createSender } from "../channel-c0a7f238.mjs";
|
|
10
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.mjs";
|
|
2
|
+
import { m } from "../mt-grant-permission-service-banner-62995d3a.mjs";
|
|
3
|
+
import "../_plugin-vue_export-helper-cc2b3d55.mjs";
|
|
4
|
+
import "vue";
|
|
5
|
+
import "../index-03602e2a.mjs";
|
|
11
6
|
import "../index-431c2592.mjs";
|
|
7
|
+
import "vue-i18n";
|
|
8
|
+
import "../mt-icon.vue_vue_type_style_index_0_lang-c90dc25b.mjs";
|
|
9
|
+
import "./MtText.js";
|
|
10
|
+
import "./MtButton.js";
|
|
12
11
|
import "../useIsInsideTooltip-0c3bd290.mjs";
|
|
13
12
|
import "./MtLoader.js";
|
|
13
|
+
import "../channel-24cdec8b.mjs";
|
|
14
14
|
import "../Criteria-dda62b10.mjs";
|
|
15
|
-
|
|
16
|
-
const isService = createSender("contextIsService", {});
|
|
17
|
-
const grant = createSender("servicePermissionGrant", {});
|
|
18
|
-
const isGranted = createSender("servicePermissionIsGranted", {});
|
|
19
|
-
const _hoisted_1 = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "mt-grant-permission-service-banner__container"
|
|
22
|
-
};
|
|
23
|
-
const _hoisted_2 = ["aria-labelledby"];
|
|
24
|
-
const _hoisted_3 = { class: "mt-grant-permission-service-banner__body" };
|
|
25
|
-
const _hoisted_4 = { class: "mt-grant-permission-service-banner__actions" };
|
|
26
|
-
const _hoisted_5 = { class: "mt-grant-permission-service-banner__label--short" };
|
|
27
|
-
const _hoisted_6 = { class: "mt-grant-permission-service-banner__label--long" };
|
|
28
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29
|
-
__name: "mt-grant-permission-service-banner",
|
|
30
|
-
setup(__props) {
|
|
31
|
-
const { t } = useI18n({
|
|
32
|
-
messages: {
|
|
33
|
-
en: {
|
|
34
|
-
title: "Grant permissions to activate this service.",
|
|
35
|
-
description: "Only the data needed to function will be accessed.",
|
|
36
|
-
grantLabel: "Grant permissions",
|
|
37
|
-
grantLongLabel: "Grant permissions and activate",
|
|
38
|
-
moreInfo: "More info",
|
|
39
|
-
moreInfoUrl: "https://developer.contena.cn/docs/"
|
|
40
|
-
},
|
|
41
|
-
zh: {
|
|
42
|
-
title: "授予权限以启用此服务。",
|
|
43
|
-
description: "仅访问此功能运行所需的数据。",
|
|
44
|
-
grantLabel: "授予权限",
|
|
45
|
-
grantLongLabel: "授予权限并启用",
|
|
46
|
-
moreInfo: "了解更多",
|
|
47
|
-
moreInfoUrl: "https://developer.contena.cn/docs/"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
const titleId = useId();
|
|
52
|
-
const isLoading = ref(false);
|
|
53
|
-
const isShowUI = computedAsync(async () => {
|
|
54
|
-
return await isService() && !await isGranted();
|
|
55
|
-
}, false);
|
|
56
|
-
const appInfo = computedAsync(async () => {
|
|
57
|
-
return await getAppInformation();
|
|
58
|
-
}, null);
|
|
59
|
-
function track(event, data) {
|
|
60
|
-
dispatch({ event, data }).catch(() => void 0);
|
|
61
|
-
}
|
|
62
|
-
async function handleGrantPermission() {
|
|
63
|
-
var _a, _b;
|
|
64
|
-
track(`${(_a = appInfo.value) == null ? void 0 : _a.name}_grant_permission_clicked`, {
|
|
65
|
-
contena_version: (_b = appInfo.value) == null ? void 0 : _b.version
|
|
66
|
-
});
|
|
67
|
-
if (isLoading.value) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
isLoading.value = true;
|
|
71
|
-
try {
|
|
72
|
-
await grant();
|
|
73
|
-
} catch (error) {
|
|
74
|
-
console.error("Error granting permission:", error);
|
|
75
|
-
} finally {
|
|
76
|
-
isLoading.value = false;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
function handleClickMoreInfo() {
|
|
80
|
-
var _a;
|
|
81
|
-
track(`${(_a = appInfo.value) == null ? void 0 : _a.name}_grant_permission_more_info`);
|
|
82
|
-
}
|
|
83
|
-
return (_ctx, _cache) => {
|
|
84
|
-
return unref(isShowUI) ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
85
|
-
createElementVNode("section", {
|
|
86
|
-
class: "mt-grant-permission-service-banner",
|
|
87
|
-
"aria-labelledby": unref(titleId)
|
|
88
|
-
}, [
|
|
89
|
-
createVNode(_sfc_main$1, {
|
|
90
|
-
class: "mt-grant-permission-service-banner__icon",
|
|
91
|
-
name: "regular-trust",
|
|
92
|
-
size: "32",
|
|
93
|
-
decorative: ""
|
|
94
|
-
}),
|
|
95
|
-
createElementVNode("div", _hoisted_3, [
|
|
96
|
-
createVNode(MtText, {
|
|
97
|
-
id: unref(titleId),
|
|
98
|
-
as: "h3",
|
|
99
|
-
weight: "bold",
|
|
100
|
-
size: "xs",
|
|
101
|
-
class: "mt-grant-permission-service-banner__title"
|
|
102
|
-
}, {
|
|
103
|
-
default: withCtx(() => [
|
|
104
|
-
createTextVNode(toDisplayString(unref(t)("title")), 1)
|
|
105
|
-
]),
|
|
106
|
-
_: 1
|
|
107
|
-
}, 8, ["id"]),
|
|
108
|
-
createVNode(MtText, {
|
|
109
|
-
size: "2xs",
|
|
110
|
-
color: "color-text-secondary-default",
|
|
111
|
-
class: "mt-grant-permission-service-banner__description"
|
|
112
|
-
}, {
|
|
113
|
-
default: withCtx(() => [
|
|
114
|
-
createTextVNode(toDisplayString(unref(t)("description")), 1)
|
|
115
|
-
]),
|
|
116
|
-
_: 1
|
|
117
|
-
})
|
|
118
|
-
]),
|
|
119
|
-
createElementVNode("div", _hoisted_4, [
|
|
120
|
-
createVNode(MtButton, {
|
|
121
|
-
variant: "primary",
|
|
122
|
-
class: "mt-grant-permission-service-banner__grant",
|
|
123
|
-
"is-loading": isLoading.value,
|
|
124
|
-
onClick: handleGrantPermission
|
|
125
|
-
}, {
|
|
126
|
-
default: withCtx(() => [
|
|
127
|
-
createElementVNode("span", _hoisted_5, toDisplayString(unref(t)("grantLabel")), 1),
|
|
128
|
-
createElementVNode("span", _hoisted_6, toDisplayString(unref(t)("grantLongLabel")), 1)
|
|
129
|
-
]),
|
|
130
|
-
_: 1
|
|
131
|
-
}, 8, ["is-loading"]),
|
|
132
|
-
createVNode(MtButton, {
|
|
133
|
-
is: "a",
|
|
134
|
-
variant: "secondary",
|
|
135
|
-
class: "mt-grant-permission-service-banner__more-info",
|
|
136
|
-
href: unref(t)("moreInfoUrl"),
|
|
137
|
-
target: "_blank",
|
|
138
|
-
rel: "noopener noreferrer",
|
|
139
|
-
onClick: handleClickMoreInfo
|
|
140
|
-
}, {
|
|
141
|
-
default: withCtx(() => [
|
|
142
|
-
createTextVNode(toDisplayString(unref(t)("moreInfo")), 1)
|
|
143
|
-
]),
|
|
144
|
-
_: 1
|
|
145
|
-
}, 8, ["href"])
|
|
146
|
-
])
|
|
147
|
-
], 8, _hoisted_2)
|
|
148
|
-
])) : createCommentVNode("", true);
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
const mtGrantPermissionServiceBanner_vue_vue_type_style_index_0_scoped_95188d4f_lang = "";
|
|
153
|
-
const mtGrantPermissionServiceBanner = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-95188d4f"]]);
|
|
15
|
+
import "../index-1e353711.mjs";
|
|
154
16
|
export {
|
|
155
|
-
|
|
17
|
+
m as default
|
|
156
18
|
};
|