@xleddyl/443-components-vue 0.0.0 → 0.2.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/README.md +81 -20
- package/dist/chart/BarChart.vue.d.ts +6 -6
- package/dist/chart/ChartLegend.vue.d.ts +16 -16
- package/dist/chart/ChartPanel.vue +10 -6
- package/dist/chart/ChartPanel.vue.d.ts +6 -8
- package/dist/chart/ChartSummary.vue.d.ts +6 -6
- package/dist/chart/DoughnutChart.vue.d.ts +6 -6
- package/dist/chart/LineChart.vue.d.ts +6 -6
- package/dist/components/core/Button.vue +3 -1
- package/dist/components/core/Button.vue.d.ts +6 -6
- package/dist/components/core/FormField.vue.d.ts +6 -6
- package/dist/components/core/Icon.vue +9 -1
- package/dist/components/core/Icon.vue.d.ts +4 -4
- package/dist/components/core/Input.vue +6 -3
- package/dist/components/core/Input.vue.d.ts +18 -19
- package/dist/components/core/Kbd.vue.d.ts +6 -6
- package/dist/components/core/Root.vue.d.ts +10 -10
- package/dist/components/core/Spinner.vue +7 -3
- package/dist/components/core/Spinner.vue.d.ts +6 -7
- package/dist/components/core/Textarea.vue +36 -23
- package/dist/components/core/Textarea.vue.d.ts +31 -21
- package/dist/components/core/VisuallyHidden.vue.d.ts +10 -10
- package/dist/components/data/Avatar.vue +4 -2
- package/dist/components/data/Avatar.vue.d.ts +6 -6
- package/dist/components/data/AvatarGroup.vue +5 -2
- package/dist/components/data/AvatarGroup.vue.d.ts +7 -8
- package/dist/components/data/Badge.vue.d.ts +6 -6
- package/dist/components/data/DescriptionList.vue +7 -3
- package/dist/components/data/DescriptionList.vue.d.ts +7 -8
- package/dist/components/data/FilterPills.vue +13 -4
- package/dist/components/data/FilterPills.vue.d.ts +16 -18
- package/dist/components/data/Pagination.vue +23 -14
- package/dist/components/data/Pagination.vue.d.ts +16 -23
- package/dist/components/data/Stat.vue +9 -6
- package/dist/components/data/Stat.vue.d.ts +10 -13
- package/dist/components/data/Table.vue +12 -7
- package/dist/components/data/Tag.vue +7 -4
- package/dist/components/data/Tag.vue.d.ts +16 -17
- package/dist/components/data/Timeline.vue.d.ts +6 -6
- package/dist/components/data/Tree.vue +5 -2
- package/dist/components/data/Tree.vue.d.ts +16 -17
- package/dist/components/feedback/Alert.vue +5 -2
- package/dist/components/feedback/Alert.vue.d.ts +14 -15
- package/dist/components/feedback/EmptyState.vue.d.ts +7 -7
- package/dist/components/feedback/LoadingOverlay.vue +8 -4
- package/dist/components/feedback/LoadingOverlay.vue.d.ts +6 -7
- package/dist/components/feedback/Meter.vue.d.ts +6 -6
- package/dist/components/feedback/Progress.vue +6 -3
- package/dist/components/feedback/Progress.vue.d.ts +6 -7
- package/dist/components/feedback/ProgressRing.vue +5 -2
- package/dist/components/feedback/ProgressRing.vue.d.ts +6 -7
- package/dist/components/feedback/Skeleton.vue.d.ts +6 -6
- package/dist/components/forms/Calendar.vue +16 -11
- package/dist/components/forms/Calendar.vue.d.ts +17 -21
- package/dist/components/forms/ColorInput.vue +8 -4
- package/dist/components/forms/ColorInput.vue.d.ts +18 -20
- package/dist/components/forms/Combobox.vue +31 -19
- package/dist/components/forms/Combobox.vue.d.ts +2 -2
- package/dist/components/forms/DateInput.vue.d.ts +16 -16
- package/dist/components/forms/DatePicker.vue +17 -11
- package/dist/components/forms/DatePicker.vue.d.ts +14 -18
- package/dist/components/forms/FileInput.vue +23 -13
- package/dist/components/forms/FileInput.vue.d.ts +17 -23
- package/dist/components/forms/InputAddon.vue.d.ts +6 -6
- package/dist/components/forms/InputGroup.vue.d.ts +6 -6
- package/dist/components/forms/NumberInput.vue +15 -10
- package/dist/components/forms/NumberInput.vue.d.ts +16 -19
- package/dist/components/forms/PasswordInput.vue +21 -13
- package/dist/components/forms/PasswordInput.vue.d.ts +14 -20
- package/dist/components/forms/PinInput.vue +7 -2
- package/dist/components/forms/PinInput.vue.d.ts +18 -16
- package/dist/components/forms/Radio.vue.d.ts +6 -6
- package/dist/components/forms/Slider.vue.d.ts +18 -18
- package/dist/components/forms/Switch.vue.d.ts +16 -16
- package/dist/components/forms/TimeInput.vue.d.ts +16 -16
- package/dist/components/layout/Accordion.vue.d.ts +16 -16
- package/dist/components/layout/AppShell.vue +11 -6
- package/dist/components/layout/AppShell.vue.d.ts +16 -19
- package/dist/components/layout/Breadcrumbs.vue +5 -2
- package/dist/components/layout/Breadcrumbs.vue.d.ts +6 -7
- package/dist/components/layout/Card.vue.d.ts +8 -8
- package/dist/components/layout/CopyButton.vue +11 -6
- package/dist/components/layout/CopyButton.vue.d.ts +16 -18
- package/dist/components/layout/Grid.vue.d.ts +7 -7
- package/dist/components/layout/NavLink.vue.d.ts +10 -10
- package/dist/components/layout/PageHeader.vue.d.ts +6 -6
- package/dist/components/layout/Separator.vue.d.ts +6 -6
- package/dist/components/layout/Sidebar.vue +10 -5
- package/dist/components/layout/Sidebar.vue.d.ts +7 -11
- package/dist/components/layout/SidebarSection.vue.d.ts +6 -6
- package/dist/components/layout/Stack.vue.d.ts +10 -10
- package/dist/components/layout/Tabs.vue.d.ts +16 -16
- package/dist/components/layout/ThemeSwitch.vue +12 -6
- package/dist/components/layout/ThemeSwitch.vue.d.ts +6 -7
- package/dist/components/layout/Toolbar.vue.d.ts +6 -6
- package/dist/components/overlays/CommandPalette.vue +38 -24
- package/dist/components/overlays/CommandPalette.vue.d.ts +18 -30
- package/dist/components/overlays/ConfirmDialog.vue +14 -9
- package/dist/components/overlays/ConfirmDialog.vue.d.ts +12 -15
- package/dist/components/overlays/ConfirmHost.vue +6 -3
- package/dist/components/overlays/ConfirmHost.vue.d.ts +16 -16
- package/dist/components/overlays/ContextMenu.vue +6 -3
- package/dist/components/overlays/ContextMenu.vue.d.ts +11 -13
- package/dist/components/overlays/Drawer.vue +1 -1
- package/dist/components/overlays/Drawer.vue.d.ts +10 -11
- package/dist/components/overlays/DropdownMenu.vue.d.ts +10 -10
- package/dist/components/overlays/HoverCard.vue.d.ts +16 -16
- package/dist/components/overlays/Modal.vue +1 -1
- package/dist/components/overlays/Modal.vue.d.ts +10 -11
- package/dist/components/overlays/OverlayHost.vue.d.ts +1 -1
- package/dist/components/overlays/Popover.vue.d.ts +16 -16
- package/dist/components/overlays/Toaster.vue +8 -4
- package/dist/components/overlays/Toaster.vue.d.ts +8 -10
- package/dist/components/overlays/Tooltip.vue.d.ts +6 -6
- package/dist/components/templates/AccountMenu.vue +5 -2
- package/dist/components/templates/AccountMenu.vue.d.ts +18 -19
- package/dist/components/templates/AppearanceSettings.vue +26 -12
- package/dist/components/templates/AppearanceSettings.vue.d.ts +7 -11
- package/dist/components/templates/AuthLayout.vue +11 -7
- package/dist/components/templates/AuthLayout.vue.d.ts +6 -9
- package/dist/components/templates/Brand.vue.d.ts +10 -10
- package/dist/components/templates/DashboardLayout.vue +25 -16
- package/dist/components/templates/DashboardLayout.vue.d.ts +12 -24
- package/dist/components/templates/DashboardPage.vue +7 -3
- package/dist/components/templates/DashboardPage.vue.d.ts +6 -7
- package/dist/components/templates/DetailPage.vue +14 -8
- package/dist/components/templates/DetailPage.vue.d.ts +14 -18
- package/dist/components/templates/EmptyPage.vue +15 -8
- package/dist/components/templates/EmptyPage.vue.d.ts +7 -11
- package/dist/components/templates/ErrorPage.vue +32 -25
- package/dist/components/templates/ErrorPage.vue.d.ts +6 -6
- package/dist/components/templates/FormPage.vue +19 -11
- package/dist/components/templates/FormPage.vue.d.ts +3 -3
- package/dist/components/templates/ListPage.vue +39 -23
- package/dist/components/templates/ListPage.vue.d.ts +2 -2
- package/dist/components/templates/NotFoundPage.vue +4 -4
- package/dist/components/templates/NotFoundPage.vue.d.ts +1 -1
- package/dist/components/templates/SaveBar.vue +20 -11
- package/dist/components/templates/SaveBar.vue.d.ts +16 -19
- package/dist/components/templates/SettingsGroup.vue.d.ts +7 -7
- package/dist/components/templates/SettingsModal.vue +29 -21
- package/dist/components/templates/SettingsModal.vue.d.ts +15 -25
- package/dist/components/templates/SettingsPage.vue +8 -5
- package/dist/components/templates/SettingsPage.vue.d.ts +18 -21
- package/dist/components/templates/SettingsSection.vue +7 -3
- package/dist/components/templates/SettingsSection.vue.d.ts +8 -9
- package/dist/composables/core.d.ts +1 -0
- package/dist/composables/core.mjs +1 -0
- package/dist/composables/useAlert.mjs +3 -1
- package/dist/composables/useConfirm.mjs +5 -3
- package/dist/composables/useDirtyGuard.mjs +7 -5
- package/dist/composables/useForm.d.ts +4 -1
- package/dist/composables/useForm.mjs +33 -16
- package/dist/composables/useIcons.d.ts +4 -0
- package/dist/composables/useIcons.mjs +10 -0
- package/dist/composables/useLocale.d.ts +11 -0
- package/dist/composables/useLocale.mjs +26 -0
- package/dist/composables/usePasswordStrength.mjs +11 -7
- package/dist/composables/usePrompt.mjs +3 -1
- package/dist/editor/RichTextEditor.vue +20 -14
- package/dist/editor/RichTextEditor.vue.d.ts +22 -15
- package/dist/editor/index.d.ts +0 -1
- package/dist/editor/index.mjs +0 -1
- package/dist/editor/types.d.ts +3 -18
- package/dist/grid/DataGrid.vue +11 -2
- package/dist/grid/GridToolbar.vue +6 -2
- package/dist/grid/GridToolbar.vue.d.ts +21 -20
- package/dist/grid/cells/BadgeCell.vue.d.ts +6 -6
- package/dist/grid/cells/BooleanCell.vue +5 -2
- package/dist/grid/cells/BooleanCell.vue.d.ts +6 -6
- package/dist/grid/cells/DateCell.vue +4 -1
- package/dist/grid/cells/DateCell.vue.d.ts +6 -6
- package/dist/grid/cells/ImageCell.vue.d.ts +6 -6
- package/dist/grid/cells/LinkCell.vue.d.ts +6 -6
- package/dist/grid/index.d.ts +0 -1
- package/dist/grid/index.mjs +0 -1
- package/dist/grid/types.d.ts +5 -17
- package/dist/icons/collections.d.ts +39 -0
- package/dist/icons/collections.mjs +67 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +11 -1
- package/dist/internal/feedback/LoadingHost.vue +6 -3
- package/dist/internal/feedback/LoadingHost.vue.d.ts +0 -1
- package/dist/internal/forms/files.mjs +1 -1
- package/dist/internal/forms/standard-schema.d.ts +26 -0
- package/dist/internal/forms/standard-schema.mjs +21 -0
- package/dist/internal/keys.d.ts +4 -1
- package/dist/internal/keys.mjs +2 -0
- package/dist/internal/overlays/DialogFrame.vue +5 -2
- package/dist/internal/overlays/DialogFrame.vue.d.ts +14 -14
- package/dist/internal/overlays/MenuList.vue.d.ts +16 -16
- package/dist/internal/overlays/OverlayView.vue.d.ts +16 -16
- package/dist/internal/overlays/confirm.d.ts +3 -0
- package/dist/locale/en.d.ts +2 -0
- package/dist/locale/en.mjs +284 -0
- package/dist/locale/index.d.ts +16 -0
- package/dist/locale/index.mjs +50 -0
- package/dist/locale/it.d.ts +2 -0
- package/dist/locale/it.mjs +284 -0
- package/dist/locale/types.d.ts +292 -0
- package/dist/locale/types.mjs +0 -0
- package/dist/nuxt/module.d.ts +14 -0
- package/dist/nuxt/module.mjs +136 -8
- package/dist/nuxt/runtime/layouts/auth.vue.d.ts +16 -16
- package/dist/nuxt/runtime/layouts/dashboard.vue.d.ts +16 -16
- package/dist/nuxt/runtime/locale.d.ts +2 -0
- package/dist/nuxt/runtime/locale.mjs +20 -0
- package/dist/styles/core/icon.css +4 -0
- package/dist/styles/core/textarea.css +21 -0
- package/package.json +1 -1
- package/dist/editor/messages.d.ts +0 -2
- package/dist/editor/messages.mjs +0 -18
- package/dist/grid/messages.d.ts +0 -3
- package/dist/grid/messages.mjs +0 -21
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { inject, provide } from "vue";
|
|
2
2
|
import { builtinIcons } from "../icons/builtin.mjs";
|
|
3
|
+
import { lookupCollectionIcon } from "../icons/collections.mjs";
|
|
3
4
|
import { ICONS_KEY } from "../internal/keys.mjs";
|
|
5
|
+
export {
|
|
6
|
+
hasIconCollection,
|
|
7
|
+
loadIconCollection,
|
|
8
|
+
registerIconCollection,
|
|
9
|
+
setDefaultIconCollection
|
|
10
|
+
} from "../icons/collections.mjs";
|
|
4
11
|
const svgCache = /* @__PURE__ */ new Map();
|
|
5
12
|
const keptSvgAttributes = [
|
|
6
13
|
"viewBox",
|
|
@@ -33,6 +40,9 @@ export function resolveIcon(name, registry) {
|
|
|
33
40
|
if (typeof custom === "string") return { kind: "svg", svg: parseSvg(custom) };
|
|
34
41
|
if (custom) return { kind: "component", component: custom };
|
|
35
42
|
if (isBuiltinIcon(name)) return { kind: "builtin", paths: builtinIcons[name] };
|
|
43
|
+
const collected = lookupCollectionIcon(name);
|
|
44
|
+
if (collected?.status === "ready") return { kind: "svg", svg: collected.svg };
|
|
45
|
+
if (collected?.status === "loading") return { kind: "pending" };
|
|
36
46
|
return null;
|
|
37
47
|
}
|
|
38
48
|
export function useIconRegistry() {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { App, ComputedRef, MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import type { KLocale, MessageKey, MessageParams } from '../locale/types';
|
|
3
|
+
export declare function provideLocale(locale: MaybeRefOrGetter<KLocale>): ComputedRef<KLocale>;
|
|
4
|
+
export declare function createLocale(locale: MaybeRefOrGetter<KLocale>): {
|
|
5
|
+
install(app: App): void;
|
|
6
|
+
};
|
|
7
|
+
export interface UseLocaleReturn {
|
|
8
|
+
locale: ComputedRef<KLocale>;
|
|
9
|
+
t: (key: MessageKey, params?: MessageParams) => string;
|
|
10
|
+
}
|
|
11
|
+
export declare function useLocale(): UseLocaleReturn;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { computed, hasInjectionContext, inject, provide, toValue } from "vue";
|
|
2
|
+
import { LOCALE_KEY } from "../internal/keys.mjs";
|
|
3
|
+
import { en, translate } from "../locale/index.mjs";
|
|
4
|
+
const fallbackLocale = computed(() => en);
|
|
5
|
+
export function provideLocale(locale) {
|
|
6
|
+
const resolved = computed(() => toValue(locale));
|
|
7
|
+
provide(LOCALE_KEY, resolved);
|
|
8
|
+
return resolved;
|
|
9
|
+
}
|
|
10
|
+
export function createLocale(locale) {
|
|
11
|
+
return {
|
|
12
|
+
install(app) {
|
|
13
|
+
app.provide(
|
|
14
|
+
LOCALE_KEY,
|
|
15
|
+
computed(() => toValue(locale))
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function useLocale() {
|
|
21
|
+
const locale = hasInjectionContext() && inject(LOCALE_KEY, null) || fallbackLocale;
|
|
22
|
+
return {
|
|
23
|
+
locale,
|
|
24
|
+
t: (key, params) => translate(locale.value, key, params)
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { computed, toValue } from "vue";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
2
|
+
import { useLocale } from "./useLocale.mjs";
|
|
3
|
+
const defaultLabelKeys = [
|
|
4
|
+
"passwordStrength.tooShort",
|
|
5
|
+
"passwordStrength.weak",
|
|
6
|
+
"passwordStrength.fair",
|
|
7
|
+
"passwordStrength.good",
|
|
8
|
+
"passwordStrength.strong"
|
|
8
9
|
];
|
|
9
10
|
const commonPatterns = [
|
|
10
11
|
/^(.)\1+$/,
|
|
@@ -25,10 +26,13 @@ export function scorePassword(password, minLength = 8) {
|
|
|
25
26
|
return Math.max(1, Math.min(4, points));
|
|
26
27
|
}
|
|
27
28
|
export function usePasswordStrength(password, options = {}) {
|
|
29
|
+
const { t } = useLocale();
|
|
28
30
|
const score = computed(
|
|
29
31
|
() => scorePassword(toValue(password) ?? "", toValue(options.minLength) ?? 8)
|
|
30
32
|
);
|
|
31
|
-
const label = computed(
|
|
33
|
+
const label = computed(
|
|
34
|
+
() => toValue(options.labels)?.[score.value] ?? t(defaultLabelKeys[score.value])
|
|
35
|
+
);
|
|
32
36
|
return { score, label };
|
|
33
37
|
}
|
|
34
38
|
export function generatePassword(length = 20) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { useLocale } from "./useLocale.mjs";
|
|
1
2
|
import { confirmQueue, hasConfirmHost, nextConfirmId } from "../internal/overlays/confirm.mjs";
|
|
2
3
|
export function usePrompt() {
|
|
4
|
+
const { t } = useLocale();
|
|
3
5
|
return function prompt(input = {}) {
|
|
4
6
|
const options = typeof input === "string" ? { title: input } : input;
|
|
5
7
|
if (typeof window === "undefined") return Promise.resolve(null);
|
|
@@ -9,7 +11,7 @@ export function usePrompt() {
|
|
|
9
11
|
}
|
|
10
12
|
return new Promise((resolve) => {
|
|
11
13
|
confirmQueue.push({
|
|
12
|
-
title: "
|
|
14
|
+
title: t("prompt.title"),
|
|
13
15
|
...options,
|
|
14
16
|
kind: "prompt",
|
|
15
17
|
id: nextConfirmId(),
|
|
@@ -96,8 +96,8 @@ import { computed, nextTick, onBeforeUnmount, ref, useTemplateRef, watch } from
|
|
|
96
96
|
import Button from "../components/core/Button.vue";
|
|
97
97
|
import { useFieldControl } from "../composables/useField";
|
|
98
98
|
import { useRovingTabStops } from "../internal/core/roving";
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
99
|
+
import { useLocale } from "../composables/useLocale";
|
|
100
|
+
import { formatLocaleMessage } from "../locale";
|
|
101
101
|
const icons = {
|
|
102
102
|
undo: "M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3",
|
|
103
103
|
redo: "m15 15 6-6m0 0-6-6m6 6H9a6 6 0 0 0 0 12h3",
|
|
@@ -116,6 +116,8 @@ const props = defineProps({
|
|
|
116
116
|
minHeight: { type: String, required: false, default: "10rem" },
|
|
117
117
|
maxHeight: { type: String, required: false },
|
|
118
118
|
label: { type: String, required: false },
|
|
119
|
+
headings: { type: Array, required: false, default: () => [2, 3, 4] },
|
|
120
|
+
extensions: { type: Array, required: false, default: () => [] },
|
|
119
121
|
messages: { type: Object, required: false }
|
|
120
122
|
});
|
|
121
123
|
const model = defineModel({ type: [String, Object, null], ...{ default: null } });
|
|
@@ -124,7 +126,8 @@ const control = useFieldControl({
|
|
|
124
126
|
disabled: () => props.disabled,
|
|
125
127
|
required: () => props.required
|
|
126
128
|
});
|
|
127
|
-
const
|
|
129
|
+
const { locale } = useLocale();
|
|
130
|
+
const text = computed(() => ({ ...locale.value.messages.editor, ...props.messages }));
|
|
128
131
|
const toolbarRef = useTemplateRef("toolbarRef");
|
|
129
132
|
const linkInputRef = useTemplateRef("linkInputRef");
|
|
130
133
|
const linkOpen = ref(false);
|
|
@@ -132,12 +135,12 @@ const linkUrl = ref("");
|
|
|
132
135
|
const editable = computed(() => !props.readonly && !control.disabled.value);
|
|
133
136
|
const showToolbar = computed(() => editable.value);
|
|
134
137
|
function serialize(current) {
|
|
135
|
-
if (
|
|
136
|
-
return
|
|
138
|
+
if (current.isEmpty) return null;
|
|
139
|
+
return props.format === "json" ? current.getJSON() : current.getHTML();
|
|
137
140
|
}
|
|
138
141
|
function isSameValue(current, value) {
|
|
139
|
-
const incoming = value
|
|
140
|
-
return JSON.stringify(serialize(current)) === JSON.stringify(incoming);
|
|
142
|
+
const incoming = value === "" ? null : value;
|
|
143
|
+
return JSON.stringify(serialize(current)) === JSON.stringify(incoming ?? null);
|
|
141
144
|
}
|
|
142
145
|
function describedBy() {
|
|
143
146
|
return control.describedBy.value;
|
|
@@ -165,11 +168,12 @@ const editor = useEditor({
|
|
|
165
168
|
editable: editable.value,
|
|
166
169
|
extensions: [
|
|
167
170
|
StarterKit.configure({
|
|
168
|
-
heading: { levels:
|
|
171
|
+
heading: props.headings.length ? { levels: props.headings } : false,
|
|
169
172
|
link: { openOnClick: false, autolink: true }
|
|
170
173
|
}),
|
|
171
174
|
Placeholder.configure({ placeholder: () => props.placeholder ?? "" }),
|
|
172
|
-
CharacterCount.configure({ limit: props.maxLength })
|
|
175
|
+
CharacterCount.configure({ limit: props.maxLength }),
|
|
176
|
+
...props.extensions
|
|
173
177
|
],
|
|
174
178
|
editorProps: { attributes: contentAttributes() },
|
|
175
179
|
onUpdate: ({ editor: current }) => {
|
|
@@ -178,7 +182,9 @@ const editor = useEditor({
|
|
|
178
182
|
});
|
|
179
183
|
const characters = computed(() => editor.value?.storage.characterCount?.characters() ?? 0);
|
|
180
184
|
const countText = computed(() => {
|
|
181
|
-
const base =
|
|
185
|
+
const base = formatLocaleMessage(locale.value.code, text.value.characters, {
|
|
186
|
+
count: characters.value
|
|
187
|
+
});
|
|
182
188
|
return props.maxLength === void 0 ? base : `${characters.value} / ${props.maxLength}`;
|
|
183
189
|
});
|
|
184
190
|
watch(model, (value) => {
|
|
@@ -201,11 +207,11 @@ watch(
|
|
|
201
207
|
() => editor.value?.setOptions({ editorProps: { attributes: contentAttributes() } })
|
|
202
208
|
);
|
|
203
209
|
onBeforeUnmount(() => editor.value?.destroy());
|
|
204
|
-
function heading(level) {
|
|
210
|
+
function heading(level, rank) {
|
|
205
211
|
return {
|
|
206
212
|
id: `h${level}`,
|
|
207
|
-
label:
|
|
208
|
-
glyph: `H${
|
|
213
|
+
label: formatLocaleMessage(locale.value.code, text.value.heading, { level: rank }),
|
|
214
|
+
glyph: `H${rank}`,
|
|
209
215
|
glyphClass: "is-bold",
|
|
210
216
|
active: () => editor.value?.isActive("heading", { level }) ?? false,
|
|
211
217
|
run: () => editor.value?.chain().focus().toggleHeading({ level }).run()
|
|
@@ -240,7 +246,7 @@ const groups = computed(() => [
|
|
|
240
246
|
run: () => editor.value?.chain().focus().redo().run()
|
|
241
247
|
}
|
|
242
248
|
],
|
|
243
|
-
|
|
249
|
+
props.headings.map((level, index) => heading(level, index + 1)),
|
|
244
250
|
[
|
|
245
251
|
mark(
|
|
246
252
|
"bold",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Editor } from '@tiptap/vue-3';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Extensions } from '@tiptap/vue-3';
|
|
3
|
+
import type { EditorFormat, EditorHeadingLevel, EditorMessages, EditorValue } from './types';
|
|
3
4
|
declare const __VLS_export: import("vue").DefineComponent<{
|
|
4
5
|
format?: EditorFormat;
|
|
5
6
|
placeholder?: string | undefined;
|
|
@@ -12,16 +13,20 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
12
13
|
minHeight?: string;
|
|
13
14
|
maxHeight?: string;
|
|
14
15
|
label?: string;
|
|
16
|
+
headings?: EditorHeadingLevel[];
|
|
17
|
+
extensions?: Extensions;
|
|
15
18
|
messages?: Partial<EditorMessages>;
|
|
16
19
|
modelValue?: EditorValue;
|
|
17
20
|
key?: PropertyKey | undefined;
|
|
21
|
+
prefix?: string | undefined | undefined;
|
|
22
|
+
title?: string | undefined | undefined;
|
|
23
|
+
style?: import("vue").StyleValue;
|
|
24
|
+
results?: (string | number) | undefined;
|
|
18
25
|
ref?: import("vue").VNodeRef | undefined;
|
|
19
26
|
class?: import("vue").ClassValue;
|
|
20
27
|
role?: string | undefined | undefined;
|
|
21
28
|
'aria-label'?: string | undefined | undefined;
|
|
22
29
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
23
|
-
style?: import("vue").StyleValue;
|
|
24
|
-
title?: string | undefined | undefined;
|
|
25
30
|
onCopy?: ((payload: ClipboardEvent) => void) | undefined;
|
|
26
31
|
onCut?: ((payload: ClipboardEvent) => void) | undefined;
|
|
27
32
|
onPaste?: ((payload: ClipboardEvent) => void) | undefined;
|
|
@@ -130,7 +135,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
130
135
|
'aria-colindex'?: (string | number) | undefined;
|
|
131
136
|
'aria-colspan'?: (string | number) | undefined;
|
|
132
137
|
'aria-controls'?: string | undefined | undefined;
|
|
133
|
-
'aria-current'?: "location" | "time" | (boolean | "true" | "false") | "
|
|
138
|
+
'aria-current'?: "page" | "location" | "time" | (boolean | "true" | "false") | "step" | "date" | undefined;
|
|
134
139
|
'aria-describedby'?: string | undefined | undefined;
|
|
135
140
|
'aria-details'?: string | undefined | undefined;
|
|
136
141
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
@@ -139,7 +144,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
139
144
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
140
145
|
'aria-flowto'?: string | undefined | undefined;
|
|
141
146
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
142
|
-
'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "listbox" |
|
|
147
|
+
'aria-haspopup'?: "grid" | "tree" | "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | undefined;
|
|
143
148
|
'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
|
|
144
149
|
'aria-keyshortcuts'?: string | undefined | undefined;
|
|
145
150
|
'aria-labelledby'?: string | undefined | undefined;
|
|
@@ -175,7 +180,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
175
180
|
dir?: string | undefined | undefined;
|
|
176
181
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
177
182
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
178
|
-
enterKeyHint?: "search" | "done" | "
|
|
183
|
+
enterKeyHint?: "search" | "done" | "previous" | "next" | "enter" | "go" | "send" | undefined;
|
|
179
184
|
hidden?: "" | (boolean | "true" | "false") | "hidden" | "until-found" | undefined;
|
|
180
185
|
inert?: (boolean | "true" | "false") | undefined;
|
|
181
186
|
spellcheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -184,7 +189,6 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
184
189
|
about?: string | undefined | undefined;
|
|
185
190
|
datatype?: string | undefined | undefined;
|
|
186
191
|
inlist?: any;
|
|
187
|
-
prefix?: string | undefined | undefined;
|
|
188
192
|
property?: string | undefined | undefined;
|
|
189
193
|
resource?: string | undefined | undefined;
|
|
190
194
|
typeof?: string | undefined | undefined;
|
|
@@ -197,7 +201,6 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
197
201
|
itemtype?: string | undefined | undefined;
|
|
198
202
|
itemid?: string | undefined | undefined;
|
|
199
203
|
itemref?: string | undefined | undefined;
|
|
200
|
-
results?: (string | number) | undefined;
|
|
201
204
|
security?: string | undefined | undefined;
|
|
202
205
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
203
206
|
inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
@@ -222,16 +225,20 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
222
225
|
minHeight?: string;
|
|
223
226
|
maxHeight?: string;
|
|
224
227
|
label?: string;
|
|
228
|
+
headings?: EditorHeadingLevel[];
|
|
229
|
+
extensions?: Extensions;
|
|
225
230
|
messages?: Partial<EditorMessages>;
|
|
226
231
|
modelValue?: EditorValue;
|
|
227
232
|
key?: PropertyKey | undefined;
|
|
233
|
+
prefix?: string | undefined | undefined;
|
|
234
|
+
title?: string | undefined | undefined;
|
|
235
|
+
style?: import("vue").StyleValue;
|
|
236
|
+
results?: (string | number) | undefined;
|
|
228
237
|
ref?: import("vue").VNodeRef | undefined;
|
|
229
238
|
class?: import("vue").ClassValue;
|
|
230
239
|
role?: string | undefined | undefined;
|
|
231
240
|
'aria-label'?: string | undefined | undefined;
|
|
232
241
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
233
|
-
style?: import("vue").StyleValue;
|
|
234
|
-
title?: string | undefined | undefined;
|
|
235
242
|
onCopy?: ((payload: ClipboardEvent) => void) | undefined;
|
|
236
243
|
onCut?: ((payload: ClipboardEvent) => void) | undefined;
|
|
237
244
|
onPaste?: ((payload: ClipboardEvent) => void) | undefined;
|
|
@@ -340,7 +347,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
340
347
|
'aria-colindex'?: (string | number) | undefined;
|
|
341
348
|
'aria-colspan'?: (string | number) | undefined;
|
|
342
349
|
'aria-controls'?: string | undefined | undefined;
|
|
343
|
-
'aria-current'?: "location" | "time" | (boolean | "true" | "false") | "
|
|
350
|
+
'aria-current'?: "page" | "location" | "time" | (boolean | "true" | "false") | "step" | "date" | undefined;
|
|
344
351
|
'aria-describedby'?: string | undefined | undefined;
|
|
345
352
|
'aria-details'?: string | undefined | undefined;
|
|
346
353
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
@@ -349,7 +356,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
349
356
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
350
357
|
'aria-flowto'?: string | undefined | undefined;
|
|
351
358
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
352
|
-
'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "listbox" |
|
|
359
|
+
'aria-haspopup'?: "grid" | "tree" | "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | undefined;
|
|
353
360
|
'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
|
|
354
361
|
'aria-keyshortcuts'?: string | undefined | undefined;
|
|
355
362
|
'aria-labelledby'?: string | undefined | undefined;
|
|
@@ -385,7 +392,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
385
392
|
dir?: string | undefined | undefined;
|
|
386
393
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
387
394
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
388
|
-
enterKeyHint?: "search" | "done" | "
|
|
395
|
+
enterKeyHint?: "search" | "done" | "previous" | "next" | "enter" | "go" | "send" | undefined;
|
|
389
396
|
hidden?: "" | (boolean | "true" | "false") | "hidden" | "until-found" | undefined;
|
|
390
397
|
inert?: (boolean | "true" | "false") | undefined;
|
|
391
398
|
spellcheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -394,7 +401,6 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
394
401
|
about?: string | undefined | undefined;
|
|
395
402
|
datatype?: string | undefined | undefined;
|
|
396
403
|
inlist?: any;
|
|
397
|
-
prefix?: string | undefined | undefined;
|
|
398
404
|
property?: string | undefined | undefined;
|
|
399
405
|
resource?: string | undefined | undefined;
|
|
400
406
|
typeof?: string | undefined | undefined;
|
|
@@ -407,7 +413,6 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
407
413
|
itemtype?: string | undefined | undefined;
|
|
408
414
|
itemid?: string | undefined | undefined;
|
|
409
415
|
itemref?: string | undefined | undefined;
|
|
410
|
-
results?: (string | number) | undefined;
|
|
411
416
|
security?: string | undefined | undefined;
|
|
412
417
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
413
418
|
inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
@@ -421,6 +426,8 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
421
426
|
invalid: boolean;
|
|
422
427
|
format: EditorFormat;
|
|
423
428
|
minHeight: string;
|
|
429
|
+
headings: EditorHeadingLevel[];
|
|
430
|
+
extensions: Extensions;
|
|
424
431
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
425
432
|
declare const _default: typeof __VLS_export;
|
|
426
433
|
export default _default;
|
package/dist/editor/index.d.ts
CHANGED
package/dist/editor/index.mjs
CHANGED
package/dist/editor/types.d.ts
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
import type { JSONContent } from '@tiptap/vue-3';
|
|
2
|
+
import type { KMessages } from '../locale/types';
|
|
2
3
|
export type EditorFormat = 'html' | 'json';
|
|
3
4
|
export type EditorValue = string | JSONContent | null;
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
italic: string;
|
|
7
|
-
strike: string;
|
|
8
|
-
code: string;
|
|
9
|
-
heading: string;
|
|
10
|
-
bulletList: string;
|
|
11
|
-
orderedList: string;
|
|
12
|
-
blockquote: string;
|
|
13
|
-
link: string;
|
|
14
|
-
undo: string;
|
|
15
|
-
redo: string;
|
|
16
|
-
toolbar: string;
|
|
17
|
-
linkUrl: string;
|
|
18
|
-
applyLink: string;
|
|
19
|
-
removeLink: string;
|
|
20
|
-
characters: string;
|
|
21
|
-
}
|
|
5
|
+
export type EditorMessages = KMessages['editor'];
|
|
6
|
+
export type EditorHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
package/dist/grid/DataGrid.vue
CHANGED
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
:get-row-id="props.rowIdKey ? getRowId : void 0"
|
|
36
36
|
:loading="loading"
|
|
37
37
|
:locale-text="localeText"
|
|
38
|
+
:context="cellContext"
|
|
38
39
|
:overlay-no-rows-template="noRowsTemplate"
|
|
39
40
|
:overlay-loading-template="loadingTemplate"
|
|
40
41
|
:quick-filter-text="serverPagination ? void 0 : query"
|
|
@@ -92,10 +93,10 @@ import { computed, onMounted, ref, shallowRef, watch } from "vue";
|
|
|
92
93
|
import Pagination from "../components/data/Pagination.vue";
|
|
93
94
|
import Spinner from "../components/core/Spinner.vue";
|
|
94
95
|
import { useCopy } from "../composables/useCopy";
|
|
96
|
+
import { useLocale } from "../composables/useLocale";
|
|
95
97
|
import { readStorageJson, removeStorage, writeStorageJson } from "../internal/core/storage";
|
|
96
98
|
import GridToolbar from "./GridToolbar.vue";
|
|
97
99
|
import { escapeHtml, formatMessage as format } from "../internal/core/text";
|
|
98
|
-
import { resolveGridMessages } from "./messages";
|
|
99
100
|
import { registerGridModules } from "./modules";
|
|
100
101
|
import { getGridTheme } from "./theme";
|
|
101
102
|
registerGridModules();
|
|
@@ -128,7 +129,15 @@ const emit = defineEmits(["rowClick", "selectionChange", "sortChange", "copy"]);
|
|
|
128
129
|
const query = defineModel("query", { type: String, ...{ default: "" } });
|
|
129
130
|
const page = defineModel("page", { type: Number, ...{ default: 1 } });
|
|
130
131
|
const pageSize = defineModel("pageSize", { type: Number, ...{ default: 25 } });
|
|
131
|
-
const
|
|
132
|
+
const { locale } = useLocale();
|
|
133
|
+
const text = computed(() => ({
|
|
134
|
+
...locale.value.messages.grid,
|
|
135
|
+
...props.messages
|
|
136
|
+
}));
|
|
137
|
+
const cellContext = computed(() => ({
|
|
138
|
+
messages: text.value,
|
|
139
|
+
locale: locale.value.code
|
|
140
|
+
}));
|
|
132
141
|
const theme = computed(() => getGridTheme(props.density));
|
|
133
142
|
const mounted = ref(false);
|
|
134
143
|
const api = shallowRef(null);
|
|
@@ -48,7 +48,7 @@ import { computed, onBeforeUnmount, ref, watch } from "vue";
|
|
|
48
48
|
import Button from "../components/core/Button.vue";
|
|
49
49
|
import Input from "../components/core/Input.vue";
|
|
50
50
|
import DropdownMenu from "../components/overlays/DropdownMenu.vue";
|
|
51
|
-
import {
|
|
51
|
+
import { useLocale } from "../composables/useLocale";
|
|
52
52
|
const props = defineProps({
|
|
53
53
|
api: { type: [Object, null], required: false },
|
|
54
54
|
messages: { type: Object, required: false },
|
|
@@ -60,7 +60,11 @@ const props = defineProps({
|
|
|
60
60
|
});
|
|
61
61
|
const emit = defineEmits(["resetColumns"]);
|
|
62
62
|
const query = defineModel({ type: String, ...{ default: "" } });
|
|
63
|
-
const
|
|
63
|
+
const { locale } = useLocale();
|
|
64
|
+
const text = computed(() => ({
|
|
65
|
+
...locale.value.messages.grid,
|
|
66
|
+
...props.messages
|
|
67
|
+
}));
|
|
64
68
|
const draft = ref(query.value);
|
|
65
69
|
const columns = ref([]);
|
|
66
70
|
const visibleCount = computed(() => columns.value.filter((column) => column.visible).length);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { GridMessages } from './types';
|
|
1
2
|
declare var __VLS_8: {};
|
|
2
3
|
type __VLS_Slots = {} & {
|
|
3
4
|
default?: (props: typeof __VLS_8) => any;
|
|
4
5
|
};
|
|
5
6
|
declare const __VLS_base: import("vue").DefineComponent<{
|
|
6
7
|
api?: import("ag-grid-community").GridApi | null;
|
|
7
|
-
messages?: Partial<
|
|
8
|
+
messages?: Partial<GridMessages>;
|
|
8
9
|
searchable?: boolean;
|
|
9
10
|
columnMenu?: boolean;
|
|
10
11
|
exportable?: boolean;
|
|
@@ -12,14 +13,16 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
12
13
|
debounce?: number;
|
|
13
14
|
modelValue?: string;
|
|
14
15
|
key?: PropertyKey | undefined;
|
|
15
|
-
|
|
16
|
+
prefix?: string | undefined | undefined;
|
|
17
|
+
title?: string | undefined | undefined;
|
|
18
|
+
style?: import("vue").StyleValue;
|
|
19
|
+
results?: (string | number) | undefined;
|
|
16
20
|
placeholder?: string | undefined | undefined;
|
|
21
|
+
ref?: import("vue").VNodeRef | undefined;
|
|
17
22
|
class?: import("vue").ClassValue;
|
|
18
23
|
role?: string | undefined | undefined;
|
|
19
24
|
'aria-label'?: string | undefined | undefined;
|
|
20
25
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
21
|
-
style?: import("vue").StyleValue;
|
|
22
|
-
title?: string | undefined | undefined;
|
|
23
26
|
onCopy?: ((payload: ClipboardEvent) => void) | undefined;
|
|
24
27
|
onCut?: ((payload: ClipboardEvent) => void) | undefined;
|
|
25
28
|
onPaste?: ((payload: ClipboardEvent) => void) | undefined;
|
|
@@ -128,7 +131,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
128
131
|
'aria-colindex'?: (string | number) | undefined;
|
|
129
132
|
'aria-colspan'?: (string | number) | undefined;
|
|
130
133
|
'aria-controls'?: string | undefined | undefined;
|
|
131
|
-
'aria-current'?: "location" | "time" | (boolean | "true" | "false") | "
|
|
134
|
+
'aria-current'?: "page" | "location" | "time" | (boolean | "true" | "false") | "step" | "date" | undefined;
|
|
132
135
|
'aria-describedby'?: string | undefined | undefined;
|
|
133
136
|
'aria-details'?: string | undefined | undefined;
|
|
134
137
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
@@ -137,7 +140,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
137
140
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
138
141
|
'aria-flowto'?: string | undefined | undefined;
|
|
139
142
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
140
|
-
'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "listbox" |
|
|
143
|
+
'aria-haspopup'?: "grid" | "tree" | "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | undefined;
|
|
141
144
|
'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
|
|
142
145
|
'aria-keyshortcuts'?: string | undefined | undefined;
|
|
143
146
|
'aria-labelledby'?: string | undefined | undefined;
|
|
@@ -173,7 +176,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
173
176
|
dir?: string | undefined | undefined;
|
|
174
177
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
175
178
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
176
|
-
enterKeyHint?: "search" | "done" | "
|
|
179
|
+
enterKeyHint?: "search" | "done" | "previous" | "next" | "enter" | "go" | "send" | undefined;
|
|
177
180
|
hidden?: "" | (boolean | "true" | "false") | "hidden" | "until-found" | undefined;
|
|
178
181
|
inert?: (boolean | "true" | "false") | undefined;
|
|
179
182
|
spellcheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -182,7 +185,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
182
185
|
about?: string | undefined | undefined;
|
|
183
186
|
datatype?: string | undefined | undefined;
|
|
184
187
|
inlist?: any;
|
|
185
|
-
prefix?: string | undefined | undefined;
|
|
186
188
|
property?: string | undefined | undefined;
|
|
187
189
|
resource?: string | undefined | undefined;
|
|
188
190
|
typeof?: string | undefined | undefined;
|
|
@@ -195,7 +197,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
195
197
|
itemtype?: string | undefined | undefined;
|
|
196
198
|
itemid?: string | undefined | undefined;
|
|
197
199
|
itemref?: string | undefined | undefined;
|
|
198
|
-
results?: (string | number) | undefined;
|
|
199
200
|
security?: string | undefined | undefined;
|
|
200
201
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
201
202
|
inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
@@ -204,11 +205,11 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
204
205
|
part?: string | undefined;
|
|
205
206
|
popover?: (import("../index.ts").PopoverMode | "" | boolean) | undefined;
|
|
206
207
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
207
|
-
"update:modelValue": (value: string) => any;
|
|
208
208
|
resetColumns: () => any;
|
|
209
|
+
"update:modelValue": (value: string) => any;
|
|
209
210
|
}, string, import("vue").PublicProps, Readonly<{
|
|
210
211
|
api?: import("ag-grid-community").GridApi | null;
|
|
211
|
-
messages?: Partial<
|
|
212
|
+
messages?: Partial<GridMessages>;
|
|
212
213
|
searchable?: boolean;
|
|
213
214
|
columnMenu?: boolean;
|
|
214
215
|
exportable?: boolean;
|
|
@@ -216,14 +217,16 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
216
217
|
debounce?: number;
|
|
217
218
|
modelValue?: string;
|
|
218
219
|
key?: PropertyKey | undefined;
|
|
219
|
-
|
|
220
|
+
prefix?: string | undefined | undefined;
|
|
221
|
+
title?: string | undefined | undefined;
|
|
222
|
+
style?: import("vue").StyleValue;
|
|
223
|
+
results?: (string | number) | undefined;
|
|
220
224
|
placeholder?: string | undefined | undefined;
|
|
225
|
+
ref?: import("vue").VNodeRef | undefined;
|
|
221
226
|
class?: import("vue").ClassValue;
|
|
222
227
|
role?: string | undefined | undefined;
|
|
223
228
|
'aria-label'?: string | undefined | undefined;
|
|
224
229
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
225
|
-
style?: import("vue").StyleValue;
|
|
226
|
-
title?: string | undefined | undefined;
|
|
227
230
|
onCopy?: ((payload: ClipboardEvent) => void) | undefined;
|
|
228
231
|
onCut?: ((payload: ClipboardEvent) => void) | undefined;
|
|
229
232
|
onPaste?: ((payload: ClipboardEvent) => void) | undefined;
|
|
@@ -332,7 +335,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
332
335
|
'aria-colindex'?: (string | number) | undefined;
|
|
333
336
|
'aria-colspan'?: (string | number) | undefined;
|
|
334
337
|
'aria-controls'?: string | undefined | undefined;
|
|
335
|
-
'aria-current'?: "location" | "time" | (boolean | "true" | "false") | "
|
|
338
|
+
'aria-current'?: "page" | "location" | "time" | (boolean | "true" | "false") | "step" | "date" | undefined;
|
|
336
339
|
'aria-describedby'?: string | undefined | undefined;
|
|
337
340
|
'aria-details'?: string | undefined | undefined;
|
|
338
341
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
@@ -341,7 +344,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
341
344
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
342
345
|
'aria-flowto'?: string | undefined | undefined;
|
|
343
346
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
344
|
-
'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "listbox" |
|
|
347
|
+
'aria-haspopup'?: "grid" | "tree" | "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | undefined;
|
|
345
348
|
'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
|
|
346
349
|
'aria-keyshortcuts'?: string | undefined | undefined;
|
|
347
350
|
'aria-labelledby'?: string | undefined | undefined;
|
|
@@ -377,7 +380,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
377
380
|
dir?: string | undefined | undefined;
|
|
378
381
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
379
382
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
380
|
-
enterKeyHint?: "search" | "done" | "
|
|
383
|
+
enterKeyHint?: "search" | "done" | "previous" | "next" | "enter" | "go" | "send" | undefined;
|
|
381
384
|
hidden?: "" | (boolean | "true" | "false") | "hidden" | "until-found" | undefined;
|
|
382
385
|
inert?: (boolean | "true" | "false") | undefined;
|
|
383
386
|
spellcheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -386,7 +389,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
386
389
|
about?: string | undefined | undefined;
|
|
387
390
|
datatype?: string | undefined | undefined;
|
|
388
391
|
inlist?: any;
|
|
389
|
-
prefix?: string | undefined | undefined;
|
|
390
392
|
property?: string | undefined | undefined;
|
|
391
393
|
resource?: string | undefined | undefined;
|
|
392
394
|
typeof?: string | undefined | undefined;
|
|
@@ -399,7 +401,6 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
399
401
|
itemtype?: string | undefined | undefined;
|
|
400
402
|
itemid?: string | undefined | undefined;
|
|
401
403
|
itemref?: string | undefined | undefined;
|
|
402
|
-
results?: (string | number) | undefined;
|
|
403
404
|
security?: string | undefined | undefined;
|
|
404
405
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
405
406
|
inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
@@ -408,8 +409,8 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
408
409
|
part?: string | undefined;
|
|
409
410
|
popover?: (import("../index.ts").PopoverMode | "" | boolean) | undefined;
|
|
410
411
|
}> & Readonly<{
|
|
411
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
412
412
|
onResetColumns?: (() => any) | undefined;
|
|
413
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
413
414
|
}>, {
|
|
414
415
|
debounce: number;
|
|
415
416
|
searchable: boolean;
|