@application-kit/ui 0.0.0-stage → 0.0.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/LICENSE +21 -0
- package/README.md +41 -2
- package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/accent-color.d.ts +2 -0
- package/dist/accent-color.js +15 -0
- package/dist/components/avatar/Avatar.js +5 -0
- package/dist/components/avatar/Avatar.vue.d.ts +24 -0
- package/dist/components/avatar/Avatar.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/button/Button.js +5 -0
- package/dist/components/button/Button.vue.d.ts +130 -0
- package/dist/components/button/Button.vue_vue_type_script_setup_true_lang.js +104 -0
- package/dist/components/button/severity-to-vendor.d.ts +4 -0
- package/dist/components/button/severity-to-vendor.js +11 -0
- package/dist/components/card/Card.js +5 -0
- package/dist/components/card/Card.vue.d.ts +17 -0
- package/dist/components/card/Card.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/components/confirm/ConfirmHost.js +5 -0
- package/dist/components/confirm/ConfirmHost.vue.d.ts +3 -0
- package/dist/components/confirm/ConfirmHost.vue_vue_type_script_setup_true_lang.js +13 -0
- package/dist/components/confirm/install-confirmation-service.d.ts +2 -0
- package/dist/components/confirm/install-confirmation-service.js +16 -0
- package/dist/components/date-range-filter/DateRangeFilter.js +7 -0
- package/dist/components/date-range-filter/DateRangeFilter.vue.d.ts +13 -0
- package/dist/components/date-range-filter/DateRangeFilter.vue_vue_type_script_setup_true_lang.js +121 -0
- package/dist/components/dialog/Dialog.js +5 -0
- package/dist/components/dialog/Dialog.vue.d.ts +56 -0
- package/dist/components/dialog/Dialog.vue_vue_type_script_setup_true_lang.js +71 -0
- package/dist/components/drawer/Drawer.js +5 -0
- package/dist/components/drawer/Drawer.vue.d.ts +24 -0
- package/dist/components/drawer/Drawer.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/components/error-page/Error.js +7 -0
- package/dist/components/error-page/Error.vue.d.ts +62 -0
- package/dist/components/error-page/Error.vue_vue_type_script_setup_true_lang.js +93 -0
- package/dist/components/error-page/GradientBackground.js +7 -0
- package/dist/components/error-page/GradientBackground.vue.d.ts +17 -0
- package/dist/components/error-page/GradientBackground.vue_vue_type_script_setup_true_lang.js +54 -0
- package/dist/components/form/Checkbox.js +5 -0
- package/dist/components/form/Checkbox.vue.d.ts +16 -0
- package/dist/components/form/Checkbox.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/form/DateField.js +5 -0
- package/dist/components/form/DateField.vue.d.ts +24 -0
- package/dist/components/form/DateField.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/components/form/DateRangeField.js +5 -0
- package/dist/components/form/DateRangeField.vue.d.ts +32 -0
- package/dist/components/form/DateRangeField.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/components/form/InputNumber.js +5 -0
- package/dist/components/form/InputNumber.vue.d.ts +17 -0
- package/dist/components/form/InputNumber.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/form/InputOtp.js +5 -0
- package/dist/components/form/InputOtp.vue.d.ts +20 -0
- package/dist/components/form/InputOtp.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/components/form/InputText.js +5 -0
- package/dist/components/form/InputText.vue.d.ts +17 -0
- package/dist/components/form/InputText.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/form/MultiSelect.js +5 -0
- package/dist/components/form/MultiSelect.vue.d.ts +34 -0
- package/dist/components/form/MultiSelect.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/components/form/RadioButton.js +5 -0
- package/dist/components/form/RadioButton.vue.d.ts +27 -0
- package/dist/components/form/RadioButton.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/form/Select.js +5 -0
- package/dist/components/form/Select.vue.d.ts +41 -0
- package/dist/components/form/Select.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/components/form/SelectButton.js +5 -0
- package/dist/components/form/SelectButton.vue.d.ts +27 -0
- package/dist/components/form/SelectButton.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/form/Textarea.js +5 -0
- package/dist/components/form/Textarea.vue.d.ts +16 -0
- package/dist/components/form/Textarea.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/components/form/ToggleSwitch.js +5 -0
- package/dist/components/form/ToggleSwitch.vue.d.ts +14 -0
- package/dist/components/form/ToggleSwitch.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/components/form/date-format.d.ts +1 -0
- package/dist/components/form/date-format.js +14 -0
- package/dist/components/form/select-button-option.interface.d.ts +4 -0
- package/dist/components/icon/Icon.js +7 -0
- package/dist/components/icon/Icon.vue.d.ts +23 -0
- package/dist/components/icon/Icon.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/icon-cell/IconCell.js +7 -0
- package/dist/components/icon-cell/IconCell.vue.d.ts +7 -0
- package/dist/components/icon-cell/IconCell.vue_vue_type_script_setup_true_lang.js +32 -0
- package/dist/components/layouts/EmptyLayout.js +16 -0
- package/dist/components/layouts/EmptyLayout.vue.d.ts +15 -0
- package/dist/components/message/Message.js +5 -0
- package/dist/components/message/Message.vue.d.ts +72 -0
- package/dist/components/message/Message.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/components/message/severity-to-vendor.d.ts +4 -0
- package/dist/components/message/severity-to-vendor.js +11 -0
- package/dist/components/overlay-badge/OverlayBadge.js +5 -0
- package/dist/components/overlay-badge/OverlayBadge.vue.d.ts +16 -0
- package/dist/components/overlay-badge/OverlayBadge.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/components/skeleton/Skeleton.js +5 -0
- package/dist/components/skeleton/Skeleton.vue.d.ts +7 -0
- package/dist/components/skeleton/Skeleton.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/components/table/DataTable.js +7 -0
- package/dist/components/table/DataTable.vue.d.ts +61 -0
- package/dist/components/table/DataTable.vue_vue_type_script_setup_true_lang.js +303 -0
- package/dist/components/table/InfiniteDataTable.js +7 -0
- package/dist/components/table/InfiniteDataTable.vue.d.ts +32 -0
- package/dist/components/table/InfiniteDataTable.vue_vue_type_script_setup_true_lang.js +88 -0
- package/dist/components/table/SelectColumnFilter.js +5 -0
- package/dist/components/table/SelectColumnFilter.vue.d.ts +29 -0
- package/dist/components/table/SelectColumnFilter.vue_vue_type_script_setup_true_lang.js +58 -0
- package/dist/components/table/StaticTable.js +5 -0
- package/dist/components/table/StaticTable.vue.d.ts +39 -0
- package/dist/components/table/StaticTable.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/components/table/TextColumn.js +5 -0
- package/dist/components/table/TextColumn.vue.d.ts +13 -0
- package/dist/components/table/TextColumn.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/components/table/collect-column-filters.d.ts +4 -0
- package/dist/components/table/collect-column-filters.js +11 -0
- package/dist/components/table/column-filters-interface.d.ts +10 -0
- package/dist/components/table/column-schema-interface.d.ts +20 -0
- package/dist/components/table/get-filters.d.ts +3 -0
- package/dist/components/table/get-filters.js +73 -0
- package/dist/components/table/select-column-filter-option.interface.d.ts +8 -0
- package/dist/components/table/static-table-column.d.ts +1 -0
- package/dist/components/tabs/Tabs.js +5 -0
- package/dist/components/tabs/Tabs.vue.d.ts +35 -0
- package/dist/components/tabs/Tabs.vue_vue_type_script_setup_true_lang.js +54 -0
- package/dist/components/tabs/tab-item.interface.d.ts +7 -0
- package/dist/components/tag/Tag.js +5 -0
- package/dist/components/tag/Tag.vue.d.ts +44 -0
- package/dist/components/tag/Tag.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/components/tag/severity-to-vendor.d.ts +4 -0
- package/dist/components/tag/severity-to-vendor.js +11 -0
- package/dist/components/time-lag/TimeLag.js +7 -0
- package/dist/components/time-lag/TimeLag.vue.d.ts +29 -0
- package/dist/components/time-lag/TimeLag.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/components/timestamp/Timestamp.js +5 -0
- package/dist/components/timestamp/Timestamp.vue.d.ts +13 -0
- package/dist/components/timestamp/Timestamp.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/components/toast/ToastHost.js +6 -0
- package/dist/components/toast/ToastHost.vue.d.ts +3 -0
- package/dist/components/toast/ToastHost.vue_vue_type_script_setup_true_lang.js +13 -0
- package/dist/components/toast/install-toast-service.d.ts +2 -0
- package/dist/components/toast/install-toast-service.js +15 -0
- package/dist/components/toast/severity-to-vendor.d.ts +4 -0
- package/dist/components/toast/severity-to-vendor.js +11 -0
- package/dist/components/tooltip/Tooltip.js +7 -0
- package/dist/components/tooltip/Tooltip.vue.d.ts +51 -0
- package/dist/components/tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/components/tooltip/dismiss-tooltips.d.ts +2 -0
- package/dist/components/tooltip/dismiss-tooltips.js +13 -0
- package/dist/components/tooltip/install-tooltip-directive.d.ts +6 -0
- package/dist/components/tooltip/install-tooltip-directive.js +80 -0
- package/dist/components/tooltip/tooltip-options.interface.d.ts +10 -0
- package/dist/components/truncated-code/TruncatedCode.js +5 -0
- package/dist/components/truncated-code/TruncatedCode.vue.d.ts +9 -0
- package/dist/components/truncated-code/TruncatedCode.vue_vue_type_script_setup_true_lang.js +23 -0
- package/dist/components/ui-icon/UiIcon.js +5 -0
- package/dist/components/ui-icon/UiIcon.vue.d.ts +13 -0
- package/dist/components/ui-icon/UiIcon.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/composables/use-app-toast.d.ts +12 -0
- package/dist/composables/use-app-toast.js +50 -0
- package/dist/composables/use-confirm.d.ts +12 -0
- package/dist/composables/use-confirm.js +49 -0
- package/dist/composables/use-copy-to-clipboard.d.ts +2 -0
- package/dist/composables/use-copy-to-clipboard.js +23 -0
- package/dist/icons/ui-icon-registry.d.ts +6 -0
- package/dist/icons/ui-icon-registry.js +4 -0
- package/dist/index.d.ts +66 -0
- package/dist/index.js +56 -0
- package/dist/layout/layout.d.ts +37 -0
- package/dist/layout/layout.js +60 -0
- package/dist/messages/ui-messages.d.ts +23 -0
- package/dist/plugin/ui-injection.d.ts +11 -0
- package/dist/plugin/ui-injection.js +18 -0
- package/dist/plugin/ui-vendor-plugin.d.ts +22 -0
- package/dist/plugin/ui-vendor-plugin.js +57 -0
- package/dist/severity.d.ts +1 -0
- package/dist/store/listing/cursor-listing.d.ts +25 -0
- package/dist/store/listing/cursor-listing.js +97 -0
- package/dist/store/listing/infinite-listing-store.d.ts +21 -0
- package/dist/store/listing/infinite-listing-store.interface.d.ts +13 -0
- package/dist/store/listing/infinite-listing-store.js +68 -0
- package/dist/store/listing/listing-store.d.ts +7 -0
- package/dist/store/listing/listing-store.interface.d.ts +21 -0
- package/dist/store/listing/listing-store.js +114 -0
- package/dist/style.css +158 -0
- package/dist/styles/_tokens.scss +96 -0
- package/dist/styles/_variables.scss +8 -0
- package/dist/testing/browser-api-stubs.d.ts +1 -0
- package/dist/testing/browser-api-stubs.js +38 -0
- package/dist/testing/index.d.ts +5 -0
- package/dist/testing/index.js +6 -0
- package/dist/testing/set-viewport-width.d.ts +1 -0
- package/dist/testing/set-viewport-width.js +18 -0
- package/dist/testing/submit-form.d.ts +1 -0
- package/dist/testing/submit-form.js +25 -0
- package/dist/testing/ui-messages.fixture.d.ts +2 -0
- package/dist/testing/ui-messages.fixture.js +26 -0
- package/dist/testing/vendor-plugins.d.ts +2 -0
- package/dist/testing/vendor-plugins.js +22 -0
- package/dist/utils/datetime.d.ts +10 -0
- package/dist/utils/datetime.js +53 -0
- package/dist/utils/truncate-string.d.ts +2 -0
- package/dist/utils/truncate-string.js +10 -0
- package/package.json +93 -3
package/dist/components/date-range-filter/DateRangeFilter.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { useUiMessages } from "../../plugin/ui-injection.js";
|
|
2
|
+
import Button_default from "../button/Button.js";
|
|
3
|
+
import DateRangeField_default from "../form/DateRangeField.js";
|
|
4
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, ref, unref, watch, withCtx } from "vue";
|
|
5
|
+
import { FiltersMatchMode } from "@application-kit/typeorm/listing";
|
|
6
|
+
//#region src/components/date-range-filter/DateRangeFilter.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = { class: "date-range-filter" };
|
|
8
|
+
var _hoisted_2 = { class: "date-range-filter-presets" };
|
|
9
|
+
var DAYS_IN_WEEK = 7;
|
|
10
|
+
var MONTHS_IN_POPUP = 2;
|
|
11
|
+
var ONE_MONTH = 1;
|
|
12
|
+
var MONTHS_HALF_YEAR = 6;
|
|
13
|
+
var START_OF_DAY = 0;
|
|
14
|
+
var END_OF_DAY_HOURS = 23;
|
|
15
|
+
var END_OF_DAY_MINUTES = 59;
|
|
16
|
+
var END_OF_DAY_SECONDS = 59;
|
|
17
|
+
var END_OF_DAY_MILLISECONDS = 999;
|
|
18
|
+
var DateRangeFilter_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
19
|
+
__name: "DateRangeFilter",
|
|
20
|
+
props: { field: { default: "createdAt" } },
|
|
21
|
+
emits: ["update:filters"],
|
|
22
|
+
setup(__props, { emit: __emit }) {
|
|
23
|
+
const properties = __props;
|
|
24
|
+
const emit = __emit;
|
|
25
|
+
const messages = useUiMessages();
|
|
26
|
+
const maxDate = /* @__PURE__ */ new Date();
|
|
27
|
+
const range = ref(null);
|
|
28
|
+
const atStartOfDay = (date) => {
|
|
29
|
+
const copy = new Date(date);
|
|
30
|
+
copy.setHours(START_OF_DAY, START_OF_DAY, START_OF_DAY, START_OF_DAY);
|
|
31
|
+
return copy;
|
|
32
|
+
};
|
|
33
|
+
const atEndOfDay = (date) => {
|
|
34
|
+
const copy = new Date(date);
|
|
35
|
+
copy.setHours(END_OF_DAY_HOURS, END_OF_DAY_MINUTES, END_OF_DAY_SECONDS, END_OF_DAY_MILLISECONDS);
|
|
36
|
+
return copy;
|
|
37
|
+
};
|
|
38
|
+
const toFilters = (value) => {
|
|
39
|
+
const filters = [];
|
|
40
|
+
const [from = null, to = null] = value ?? [];
|
|
41
|
+
if (from !== null) filters.push({
|
|
42
|
+
field: properties.field,
|
|
43
|
+
matchMode: FiltersMatchMode.GTE,
|
|
44
|
+
value: atStartOfDay(from).toISOString()
|
|
45
|
+
});
|
|
46
|
+
if (to !== null) filters.push({
|
|
47
|
+
field: properties.field,
|
|
48
|
+
matchMode: FiltersMatchMode.LTE,
|
|
49
|
+
value: atEndOfDay(to).toISOString()
|
|
50
|
+
});
|
|
51
|
+
return filters;
|
|
52
|
+
};
|
|
53
|
+
watch(range, (value) => {
|
|
54
|
+
emit("update:filters", toFilters(value));
|
|
55
|
+
});
|
|
56
|
+
const setLastDays = (days) => {
|
|
57
|
+
const start = /* @__PURE__ */ new Date();
|
|
58
|
+
start.setDate(start.getDate() - days);
|
|
59
|
+
range.value = [start, /* @__PURE__ */ new Date()];
|
|
60
|
+
};
|
|
61
|
+
const setLastMonths = (months) => {
|
|
62
|
+
const start = /* @__PURE__ */ new Date();
|
|
63
|
+
start.setMonth(start.getMonth() - months);
|
|
64
|
+
range.value = [start, /* @__PURE__ */ new Date()];
|
|
65
|
+
};
|
|
66
|
+
const clear = () => {
|
|
67
|
+
range.value = null;
|
|
68
|
+
};
|
|
69
|
+
return (_ctx, _cache) => {
|
|
70
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(DateRangeField_default, {
|
|
71
|
+
modelValue: range.value,
|
|
72
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => range.value = $event),
|
|
73
|
+
class: "date-range-filter-input",
|
|
74
|
+
"max-date": unref(maxDate),
|
|
75
|
+
"number-of-months": MONTHS_IN_POPUP,
|
|
76
|
+
placeholder: unref(messages).dateRangeFilter.placeholder,
|
|
77
|
+
"show-icon": ""
|
|
78
|
+
}, {
|
|
79
|
+
footer: withCtx(() => [createElementVNode("div", _hoisted_2, [
|
|
80
|
+
createVNode(Button_default, {
|
|
81
|
+
label: unref(messages).dateRangeFilter.lastWeek,
|
|
82
|
+
severity: "secondary",
|
|
83
|
+
size: "small",
|
|
84
|
+
text: "",
|
|
85
|
+
onClick: _cache[0] || (_cache[0] = ($event) => setLastDays(DAYS_IN_WEEK))
|
|
86
|
+
}, null, 8, ["label"]),
|
|
87
|
+
createVNode(Button_default, {
|
|
88
|
+
label: unref(messages).dateRangeFilter.lastMonth,
|
|
89
|
+
severity: "secondary",
|
|
90
|
+
size: "small",
|
|
91
|
+
text: "",
|
|
92
|
+
onClick: _cache[1] || (_cache[1] = ($event) => setLastMonths(ONE_MONTH))
|
|
93
|
+
}, null, 8, ["label"]),
|
|
94
|
+
createVNode(Button_default, {
|
|
95
|
+
label: unref(messages).dateRangeFilter.lastSixMonths,
|
|
96
|
+
severity: "secondary",
|
|
97
|
+
size: "small",
|
|
98
|
+
text: "",
|
|
99
|
+
onClick: _cache[2] || (_cache[2] = ($event) => setLastMonths(MONTHS_HALF_YEAR))
|
|
100
|
+
}, null, 8, ["label"]),
|
|
101
|
+
range.value !== null ? (openBlock(), createBlock(Button_default, {
|
|
102
|
+
key: 0,
|
|
103
|
+
icon: "times",
|
|
104
|
+
label: unref(messages).dateRangeFilter.clear,
|
|
105
|
+
severity: "secondary",
|
|
106
|
+
size: "small",
|
|
107
|
+
text: "",
|
|
108
|
+
onClick: clear
|
|
109
|
+
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
110
|
+
])]),
|
|
111
|
+
_: 1
|
|
112
|
+
}, 8, [
|
|
113
|
+
"modelValue",
|
|
114
|
+
"max-date",
|
|
115
|
+
"placeholder"
|
|
116
|
+
])]);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
//#endregion
|
|
121
|
+
export { DateRangeFilter_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Dialog_vue_vue_type_script_setup_true_lang_default from "./Dialog.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region src/components/dialog/Dialog.vue
|
|
3
|
+
var Dialog_default = Dialog_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { Dialog_default as default };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
default?: () => VNode[];
|
|
4
|
+
footer?: () => VNode[];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
closable: {
|
|
8
|
+
default: undefined;
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
};
|
|
11
|
+
header: {
|
|
12
|
+
default: undefined;
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
};
|
|
15
|
+
modal: {
|
|
16
|
+
default: undefined;
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
};
|
|
19
|
+
visible: {
|
|
20
|
+
type: import("vue").PropType<boolean>;
|
|
21
|
+
};
|
|
22
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
hide: () => any;
|
|
24
|
+
"update:visible": (value: boolean) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
closable: {
|
|
27
|
+
default: undefined;
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
};
|
|
30
|
+
header: {
|
|
31
|
+
default: undefined;
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
};
|
|
34
|
+
modal: {
|
|
35
|
+
default: undefined;
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
};
|
|
38
|
+
visible: {
|
|
39
|
+
type: import("vue").PropType<boolean>;
|
|
40
|
+
};
|
|
41
|
+
}>> & Readonly<{
|
|
42
|
+
onHide?: () => any;
|
|
43
|
+
"onUpdate:visible"?: (value: boolean) => any;
|
|
44
|
+
}>, {
|
|
45
|
+
header: string;
|
|
46
|
+
closable: boolean;
|
|
47
|
+
modal: boolean;
|
|
48
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
49
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
50
|
+
declare const _default: typeof __VLS_export;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { createBlock, createSlots, defineComponent, mergeModels, nextTick, openBlock, renderSlot, shallowRef, unref, useModel, watch, withCtx } from "vue";
|
|
2
|
+
import VendorDialog from "openvue/dialog";
|
|
3
|
+
//#region src/components/dialog/Dialog.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var Dialog_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
5
|
+
__name: "Dialog",
|
|
6
|
+
props: /*@__PURE__*/ mergeModels({
|
|
7
|
+
closable: {
|
|
8
|
+
default: void 0,
|
|
9
|
+
type: Boolean
|
|
10
|
+
},
|
|
11
|
+
header: {
|
|
12
|
+
default: void 0,
|
|
13
|
+
type: String
|
|
14
|
+
},
|
|
15
|
+
modal: {
|
|
16
|
+
default: void 0,
|
|
17
|
+
type: Boolean
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
20
|
+
"visible": {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
24
|
+
"visibleModifiers": {}
|
|
25
|
+
}),
|
|
26
|
+
emits: /*@__PURE__*/ mergeModels(["hide"], ["update:visible"]),
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const visible = useModel(__props, "visible");
|
|
29
|
+
const DIALOG_PASS_THROUGH = {
|
|
30
|
+
footer: { class: "ui-dialog-footer" },
|
|
31
|
+
title: { class: "ui-dialog-title" }
|
|
32
|
+
};
|
|
33
|
+
const initiator = shallowRef(null);
|
|
34
|
+
watch(visible, (isVisible) => {
|
|
35
|
+
if (isVisible) {
|
|
36
|
+
initiator.value = globalThis.document.activeElement instanceof globalThis.HTMLElement ? globalThis.document.activeElement : null;
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const target = initiator.value;
|
|
40
|
+
initiator.value = null;
|
|
41
|
+
nextTick(() => {
|
|
42
|
+
target?.focus();
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
return openBlock(), createBlock(unref(VendorDialog), {
|
|
47
|
+
visible: visible.value,
|
|
48
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
|
49
|
+
pt: DIALOG_PASS_THROUGH,
|
|
50
|
+
closable: __props.closable,
|
|
51
|
+
header: __props.header,
|
|
52
|
+
modal: __props.modal,
|
|
53
|
+
onHide: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("hide"))
|
|
54
|
+
}, createSlots({
|
|
55
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
56
|
+
_: 2
|
|
57
|
+
}, [_ctx.$slots.footer ? {
|
|
58
|
+
name: "footer",
|
|
59
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "footer")]),
|
|
60
|
+
key: "0"
|
|
61
|
+
} : void 0]), 1032, [
|
|
62
|
+
"visible",
|
|
63
|
+
"closable",
|
|
64
|
+
"header",
|
|
65
|
+
"modal"
|
|
66
|
+
]);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
export { Dialog_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Drawer_vue_vue_type_script_setup_true_lang_default from "./Drawer.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region src/components/drawer/Drawer.vue
|
|
3
|
+
var Drawer_default = Drawer_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { Drawer_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
position?: 'bottom' | 'left' | 'right' | 'top';
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Slots = {
|
|
6
|
+
default?: () => VNode[];
|
|
7
|
+
};
|
|
8
|
+
type __VLS_ModelProps = {
|
|
9
|
+
'visible'?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:visible": (value: boolean) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
+
"onUpdate:visible"?: (value: boolean) => any;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createBlock, defineComponent, mergeModels, openBlock, renderSlot, unref, useModel, withCtx } from "vue";
|
|
2
|
+
import VendorDrawer from "openvue/drawer";
|
|
3
|
+
//#region src/components/drawer/Drawer.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var Drawer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
5
|
+
__name: "Drawer",
|
|
6
|
+
props: /*@__PURE__*/ mergeModels({ position: {} }, {
|
|
7
|
+
"visible": {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: false
|
|
10
|
+
},
|
|
11
|
+
"visibleModifiers": {}
|
|
12
|
+
}),
|
|
13
|
+
emits: ["update:visible"],
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const visible = useModel(__props, "visible");
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createBlock(unref(VendorDrawer), {
|
|
18
|
+
visible: visible.value,
|
|
19
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
|
20
|
+
position: __props.position
|
|
21
|
+
}, {
|
|
22
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 8, ["visible", "position"]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { Drawer_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import Error_vue_vue_type_script_setup_true_lang_default from "./Error.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/error-page/Error.vue
|
|
5
|
+
var Error_default = /*#__PURE__*/ _plugin_vue_export_helper_default(Error_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-6de1c932"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Error_default as default };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
3
|
+
import type { AccentColor } from '../../accent-color';
|
|
4
|
+
declare const __VLS_export: import("*.vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
code: {
|
|
6
|
+
default: string;
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
};
|
|
9
|
+
color: {
|
|
10
|
+
default: string;
|
|
11
|
+
type: PropType<AccentColor>;
|
|
12
|
+
};
|
|
13
|
+
header: {
|
|
14
|
+
default: string;
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
};
|
|
17
|
+
homeRoute: {
|
|
18
|
+
required: true;
|
|
19
|
+
type: PropType<RouteLocationRaw>;
|
|
20
|
+
};
|
|
21
|
+
message: {
|
|
22
|
+
default: string;
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
};
|
|
25
|
+
supportId: {
|
|
26
|
+
default: string;
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
code: {
|
|
31
|
+
default: string;
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
};
|
|
34
|
+
color: {
|
|
35
|
+
default: string;
|
|
36
|
+
type: PropType<AccentColor>;
|
|
37
|
+
};
|
|
38
|
+
header: {
|
|
39
|
+
default: string;
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
};
|
|
42
|
+
homeRoute: {
|
|
43
|
+
required: true;
|
|
44
|
+
type: PropType<RouteLocationRaw>;
|
|
45
|
+
};
|
|
46
|
+
message: {
|
|
47
|
+
default: string;
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
};
|
|
50
|
+
supportId: {
|
|
51
|
+
default: string;
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
};
|
|
54
|
+
}>> & Readonly<{}>, {
|
|
55
|
+
color: "indigo" | "primary" | "red" | "yellow";
|
|
56
|
+
code: string;
|
|
57
|
+
header: string;
|
|
58
|
+
message: string;
|
|
59
|
+
supportId: string;
|
|
60
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
61
|
+
declare const _default: typeof __VLS_export;
|
|
62
|
+
export default _default;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { useUiMessages } from "../../plugin/ui-injection.js";
|
|
2
|
+
import Button_default from "../button/Button.js";
|
|
3
|
+
import { useCopyToClipboard } from "../../composables/use-copy-to-clipboard.js";
|
|
4
|
+
import GradientBackground_default from "./GradientBackground.js";
|
|
5
|
+
import { createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
6
|
+
//#region src/components/error-page/Error.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = { class: "error-overlay" };
|
|
8
|
+
var _hoisted_2 = { class: "error-viewport" };
|
|
9
|
+
var _hoisted_3 = { class: "error-column" };
|
|
10
|
+
var _hoisted_4 = { class: "error-panel" };
|
|
11
|
+
var _hoisted_5 = { class: "error-message" };
|
|
12
|
+
var _hoisted_6 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "error-support"
|
|
15
|
+
};
|
|
16
|
+
var _hoisted_7 = { class: "error-support-label" };
|
|
17
|
+
var _hoisted_8 = { class: "error-support-id" };
|
|
18
|
+
var Error_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
19
|
+
__name: "Error",
|
|
20
|
+
props: {
|
|
21
|
+
code: {
|
|
22
|
+
default: "",
|
|
23
|
+
type: String
|
|
24
|
+
},
|
|
25
|
+
color: {
|
|
26
|
+
default: "red",
|
|
27
|
+
type: String
|
|
28
|
+
},
|
|
29
|
+
header: {
|
|
30
|
+
default: "",
|
|
31
|
+
type: String
|
|
32
|
+
},
|
|
33
|
+
homeRoute: {
|
|
34
|
+
required: true,
|
|
35
|
+
type: [String, Object]
|
|
36
|
+
},
|
|
37
|
+
message: {
|
|
38
|
+
default: "",
|
|
39
|
+
type: String
|
|
40
|
+
},
|
|
41
|
+
supportId: {
|
|
42
|
+
default: "",
|
|
43
|
+
type: String
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
setup(__props) {
|
|
47
|
+
const copySupportId = useCopyToClipboard();
|
|
48
|
+
const messages = useUiMessages();
|
|
49
|
+
const copyIdentifier = async () => {
|
|
50
|
+
await copySupportId(__props.supportId, messages.value.errorPage.copied);
|
|
51
|
+
};
|
|
52
|
+
const accentColor = `var(--ui-accent-${__props.color}-500)`;
|
|
53
|
+
const bgErrorStyle = { backgroundColor: accentColor };
|
|
54
|
+
const textErrorStyle = { color: accentColor };
|
|
55
|
+
return (_ctx, _cache) => {
|
|
56
|
+
const _component_router_link = resolveComponent("router-link");
|
|
57
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [
|
|
58
|
+
createElementVNode("span", {
|
|
59
|
+
style: bgErrorStyle,
|
|
60
|
+
class: "error-code"
|
|
61
|
+
}, toDisplayString(__props.code), 1),
|
|
62
|
+
createElementVNode("h1", {
|
|
63
|
+
style: textErrorStyle,
|
|
64
|
+
class: "error-title"
|
|
65
|
+
}, toDisplayString(__props.header), 1),
|
|
66
|
+
createElementVNode("div", {
|
|
67
|
+
style: bgErrorStyle,
|
|
68
|
+
class: "error-divider"
|
|
69
|
+
}),
|
|
70
|
+
createElementVNode("p", _hoisted_5, toDisplayString(__props.message), 1),
|
|
71
|
+
__props.supportId !== "" ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
72
|
+
createElementVNode("span", _hoisted_7, toDisplayString(unref(messages).errorPage.supportIdTitle), 1),
|
|
73
|
+
createElementVNode("code", _hoisted_8, toDisplayString(__props.supportId), 1),
|
|
74
|
+
createVNode(Button_default, {
|
|
75
|
+
class: "error-support-copy",
|
|
76
|
+
label: unref(messages).errorPage.copy,
|
|
77
|
+
onClick: copyIdentifier
|
|
78
|
+
}, null, 8, ["label"])
|
|
79
|
+
])) : createCommentVNode("", true),
|
|
80
|
+
createVNode(_component_router_link, { to: __props.homeRoute }, {
|
|
81
|
+
default: withCtx(() => [createVNode(Button_default, {
|
|
82
|
+
style: bgErrorStyle,
|
|
83
|
+
class: "error-action",
|
|
84
|
+
label: unref(messages).errorPage.goToDashboard
|
|
85
|
+
}, null, 8, ["label"])]),
|
|
86
|
+
_: 1
|
|
87
|
+
}, 8, ["to"])
|
|
88
|
+
])])]), createVNode(GradientBackground_default, { color: __props.color }, null, 8, ["color"])]);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
//#endregion
|
|
93
|
+
export { Error_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import GradientBackground_vue_vue_type_script_setup_true_lang_default from "./GradientBackground.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/error-page/GradientBackground.vue
|
|
5
|
+
var GradientBackground_default = /*#__PURE__*/ _plugin_vue_export_helper_default(GradientBackground_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-7d3d1707"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { GradientBackground_default as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { AccentColor } from '../../accent-color';
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
color: {
|
|
5
|
+
default: string;
|
|
6
|
+
type: PropType<AccentColor>;
|
|
7
|
+
};
|
|
8
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
color: {
|
|
10
|
+
default: string;
|
|
11
|
+
type: PropType<AccentColor>;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {
|
|
14
|
+
color: "indigo" | "primary" | "red" | "yellow";
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, createStaticVNode, defineComponent, openBlock } from "vue";
|
|
2
|
+
//#region src/components/error-page/GradientBackground.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var _hoisted_1 = {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
6
|
+
class: "gradient-background",
|
|
7
|
+
viewBox: "0 0 1440 250"
|
|
8
|
+
};
|
|
9
|
+
var GradientBackground_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
10
|
+
__name: "GradientBackground",
|
|
11
|
+
props: { color: {
|
|
12
|
+
default: "red",
|
|
13
|
+
type: String
|
|
14
|
+
} },
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const properties = __props;
|
|
17
|
+
const svgColorStart = `var(--ui-accent-${properties.color}-200)`;
|
|
18
|
+
const svgColorMiddle = `var(--ui-accent-${properties.color}-300)`;
|
|
19
|
+
const svgColorEnd = `var(--ui-accent-${properties.color}-500)`;
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [createElementVNode("defs", null, [
|
|
22
|
+
createElementVNode("linearGradient", {
|
|
23
|
+
id: "c",
|
|
24
|
+
x1: "50%",
|
|
25
|
+
x2: "50%",
|
|
26
|
+
y1: "0%",
|
|
27
|
+
y2: "100%"
|
|
28
|
+
}, [createElementVNode("stop", {
|
|
29
|
+
offset: "0%",
|
|
30
|
+
"stop-color": svgColorStart
|
|
31
|
+
}), createElementVNode("stop", {
|
|
32
|
+
offset: "99.052%",
|
|
33
|
+
"stop-color": svgColorMiddle
|
|
34
|
+
})]),
|
|
35
|
+
_cache[0] || (_cache[0] = createStaticVNode("<path id=\"b\" d=\"M0 202c142.333-66.667 249-90 320-70 106.5 30 122 83.5 195 83.5h292c92.642-106.477 190.309-160.81 293-163 102.691-2.19 216.025 47.643 340 149.5v155.5H0V202z\" data-v-7d3d1707></path><filter id=\"a\" width=\"105.1%\" height=\"124.3%\" x=\"-2.6%\" y=\"-12.8%\" filterUnits=\"objectBoundingBox\" data-v-7d3d1707><feOffset dy=\"-2\" in=\"SourceAlpha\" result=\"shadowOffsetOuter1\" data-v-7d3d1707></feOffset><feGaussianBlur in=\"shadowOffsetOuter1\" result=\"shadowBlurOuter1\" stdDeviation=\"12\" data-v-7d3d1707></feGaussianBlur><feColorMatrix in=\"shadowBlurOuter1\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.11 0\" data-v-7d3d1707></feColorMatrix></filter>", 2)),
|
|
36
|
+
createElementVNode("linearGradient", {
|
|
37
|
+
id: "d",
|
|
38
|
+
x1: "50%",
|
|
39
|
+
x2: "50%",
|
|
40
|
+
y1: "0%",
|
|
41
|
+
y2: "99.142%"
|
|
42
|
+
}, [createElementVNode("stop", {
|
|
43
|
+
offset: "0%",
|
|
44
|
+
"stop-color": svgColorMiddle
|
|
45
|
+
}), createElementVNode("stop", {
|
|
46
|
+
offset: "100%",
|
|
47
|
+
"stop-color": svgColorEnd
|
|
48
|
+
})])
|
|
49
|
+
]), _cache[1] || (_cache[1] = createStaticVNode("<g fill=\"none\" fill-rule=\"evenodd\" data-v-7d3d1707><g transform=\"translate(0 .5)\" data-v-7d3d1707><use fill=\"#000\" filter=\"url(#a)\" xlink:href=\"#b\" data-v-7d3d1707></use><use fill=\"url(#c)\" xlink:href=\"#b\" data-v-7d3d1707></use></g><path fill=\"url(#d)\" d=\"M0 107c225.333 61.333 364.333 92 417 92 79 0 194-79.5 293-79.5S914 244 1002 244s156-45 195-68.5c26-15.667 107-74.167 243-175.5v357.5H0V107z\" transform=\"translate(0 .5)\" data-v-7d3d1707></path></g>", 1))]);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { GradientBackground_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Checkbox_vue_vue_type_script_setup_true_lang_default from "./Checkbox.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region src/components/form/Checkbox.vue
|
|
3
|
+
var Checkbox_default = Checkbox_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { Checkbox_default as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
binary?: boolean;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
variant?: 'filled' | 'outlined';
|
|
5
|
+
};
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
modelValue: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: boolean) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createBlock, defineComponent, mergeModels, openBlock, unref, useModel } from "vue";
|
|
2
|
+
import Checkbox from "openvue/checkbox";
|
|
3
|
+
//#region src/components/form/Checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var Checkbox_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
5
|
+
__name: "Checkbox",
|
|
6
|
+
props: /*@__PURE__*/ mergeModels({
|
|
7
|
+
binary: { type: Boolean },
|
|
8
|
+
disabled: { type: Boolean },
|
|
9
|
+
variant: {}
|
|
10
|
+
}, {
|
|
11
|
+
"modelValue": {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
"modelModifiers": {}
|
|
16
|
+
}),
|
|
17
|
+
emits: ["update:modelValue"],
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const model = useModel(__props, "modelValue");
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createBlock(unref(Checkbox), {
|
|
22
|
+
modelValue: model.value,
|
|
23
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
24
|
+
binary: __props.binary,
|
|
25
|
+
disabled: __props.disabled,
|
|
26
|
+
variant: __props.variant
|
|
27
|
+
}, null, 8, [
|
|
28
|
+
"modelValue",
|
|
29
|
+
"binary",
|
|
30
|
+
"disabled",
|
|
31
|
+
"variant"
|
|
32
|
+
]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { Checkbox_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import DateField_vue_vue_type_script_setup_true_lang_default from "./DateField.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region src/components/form/DateField.vue
|
|
3
|
+
var DateField_default = DateField_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { DateField_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
maxDate?: Date | undefined;
|
|
4
|
+
placeholder?: string | undefined;
|
|
5
|
+
showButtonBar?: boolean;
|
|
6
|
+
showIcon?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_ModelProps = {
|
|
9
|
+
modelValue?: Date | null;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (value: Date | null) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: (value: Date | null) => any;
|
|
16
|
+
}>, {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
placeholder: string | undefined;
|
|
19
|
+
maxDate: Date | undefined;
|
|
20
|
+
showIcon: boolean;
|
|
21
|
+
showButtonBar: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|