@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/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 application-kit
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,42 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @application-kit/ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Vue-обёртки над UI-вендором, мост токенов оформления (`--p-*` → `--ui-*`) и помощники спеков.
|
|
4
|
+
Пакет не знает ни одного языка, имени иконки и feature-flag'а продукта: всё это приложение передаёт
|
|
5
|
+
при установке плагина.
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { UiVendorPlugin } from '@application-kit/ui'
|
|
9
|
+
import '@application-kit/ui/style.css'
|
|
10
|
+
|
|
11
|
+
app.use(new UiVendorPlugin({
|
|
12
|
+
darkModeSelector: 'dark-theme',
|
|
13
|
+
describeRequestError: (error, fallbackMessage) => describe(error, fallbackMessage, i18n.global.t),
|
|
14
|
+
iconClass: (name) => `app-icon app-icon--${name}`,
|
|
15
|
+
locale: { overrides: { ru: { accept: 'Да' } }, reference: (vue) => localeRef },
|
|
16
|
+
messages: () => ({ table: { empty: i18n.global.t('table.empty'), /* … */ } /* … */ }),
|
|
17
|
+
}))
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Все четыре обязательные опции (`darkModeSelector`, `describeRequestError`, `iconClass`, `messages`) проверяются
|
|
21
|
+
типом и при создании плагина: без них конструктор бросает ошибку на старте приложения.
|
|
22
|
+
|
|
23
|
+
## Имена иконок
|
|
24
|
+
|
|
25
|
+
Реестр пустой — приложение расширяет его своими именами, и без этого ни одна иконка не компилируется:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
declare module '@application-kit/ui' {
|
|
29
|
+
interface UiIconRegistryInterface { refresh: true }
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Входы
|
|
34
|
+
|
|
35
|
+
- `.` — компоненты, composables, `UiVendorPlugin`, листинговые сторы, типы;
|
|
36
|
+
- `/testing` — `installVendorPlugins`, `submitForm`, заглушки браузерных API для jsdom;
|
|
37
|
+
- `/style.css` — стили компонентов (подключить один раз);
|
|
38
|
+
- `/styles/tokens.scss` — мост токенов: приложение сверяет по нему свои `var(--ui-*)`.
|
|
39
|
+
|
|
40
|
+
## Peer-зависимости
|
|
41
|
+
|
|
42
|
+
`vue`, `pinia`, `vue-router`, `openvue` — по одному экземпляру на приложение; `vitest` нужен только для `/testing`.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region \0plugin-vue:export-helper
|
|
2
|
+
var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
3
|
+
const target = sfc.__vccOpts || sfc;
|
|
4
|
+
for (const [key, val] of props) target[key] = val;
|
|
5
|
+
return target;
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { _plugin_vue_export_helper_default as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/accent-color.ts
|
|
2
|
+
/**
|
|
3
|
+
* Акцентная палитра слоя shared/vue (story 3-7) — собственная, как и `Severity`. Значение
|
|
4
|
+
* union'а — оттенок, у которого в `styles/_tokens.scss` объявлены токены
|
|
5
|
+
* `--ui-accent-<оттенок>-{200,300,500}`; полноту держит спека `styles/tests/tokens.spec.ts`,
|
|
6
|
+
* поэтому новый оттенок нельзя добавить сюда, забыв про токены.
|
|
7
|
+
*/
|
|
8
|
+
var ACCENT_COLORS = [
|
|
9
|
+
"indigo",
|
|
10
|
+
"primary",
|
|
11
|
+
"red",
|
|
12
|
+
"yellow"
|
|
13
|
+
];
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ACCENT_COLORS };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Avatar_vue_vue_type_script_setup_true_lang_default from "./Avatar.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region src/components/avatar/Avatar.vue
|
|
3
|
+
var Avatar_default = Avatar_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { Avatar_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
icon: {
|
|
3
|
+
default: undefined;
|
|
4
|
+
type: import("vue").PropType<"times">;
|
|
5
|
+
};
|
|
6
|
+
label: {
|
|
7
|
+
default: undefined;
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
icon: {
|
|
12
|
+
default: undefined;
|
|
13
|
+
type: import("vue").PropType<"times">;
|
|
14
|
+
};
|
|
15
|
+
label: {
|
|
16
|
+
default: undefined;
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
icon: "times";
|
|
21
|
+
label: string;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ICON_PROP_TYPE } from "../../icons/ui-icon-registry.js";
|
|
2
|
+
import { useUiIconClass } from "../../plugin/ui-injection.js";
|
|
3
|
+
import { computed, createBlock, defineComponent, openBlock, unref } from "vue";
|
|
4
|
+
import VendorAvatar from "openvue/avatar";
|
|
5
|
+
//#region src/components/avatar/Avatar.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var Avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
7
|
+
__name: "Avatar",
|
|
8
|
+
props: {
|
|
9
|
+
icon: {
|
|
10
|
+
default: void 0,
|
|
11
|
+
type: ICON_PROP_TYPE
|
|
12
|
+
},
|
|
13
|
+
label: {
|
|
14
|
+
default: void 0,
|
|
15
|
+
type: String
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const iconClass = useUiIconClass();
|
|
21
|
+
const vendorIcon = computed(() => props.icon === void 0 ? void 0 : iconClass(props.icon));
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(VendorAvatar), {
|
|
24
|
+
icon: vendorIcon.value,
|
|
25
|
+
label: __props.label
|
|
26
|
+
}, null, 8, ["icon", "label"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Avatar_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Button_vue_vue_type_script_setup_true_lang_default from "./Button.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region src/components/button/Button.vue
|
|
3
|
+
var Button_default = Button_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { Button_default as default };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { Severity } from '../../severity';
|
|
3
|
+
declare var __VLS_10: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_10) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
disabled: {
|
|
9
|
+
default: undefined;
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
};
|
|
12
|
+
icon: {
|
|
13
|
+
default: undefined;
|
|
14
|
+
type: PropType<"times">;
|
|
15
|
+
};
|
|
16
|
+
iconPos: {
|
|
17
|
+
default: undefined;
|
|
18
|
+
type: PropType<"left" | "right">;
|
|
19
|
+
};
|
|
20
|
+
label: {
|
|
21
|
+
default: undefined;
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
link: {
|
|
25
|
+
default: undefined;
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
};
|
|
28
|
+
loading: {
|
|
29
|
+
default: undefined;
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
32
|
+
outlined: {
|
|
33
|
+
default: undefined;
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
};
|
|
36
|
+
rounded: {
|
|
37
|
+
default: undefined;
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
};
|
|
40
|
+
severity: {
|
|
41
|
+
default: undefined;
|
|
42
|
+
type: PropType<Severity>;
|
|
43
|
+
};
|
|
44
|
+
size: {
|
|
45
|
+
default: undefined;
|
|
46
|
+
type: PropType<"large" | "small">;
|
|
47
|
+
};
|
|
48
|
+
text: {
|
|
49
|
+
default: undefined;
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
};
|
|
52
|
+
type: {
|
|
53
|
+
default: undefined;
|
|
54
|
+
type: PropType<"button" | "submit">;
|
|
55
|
+
};
|
|
56
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
57
|
+
click: (event: MouseEvent) => any;
|
|
58
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
disabled: {
|
|
60
|
+
default: undefined;
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
};
|
|
63
|
+
icon: {
|
|
64
|
+
default: undefined;
|
|
65
|
+
type: PropType<"times">;
|
|
66
|
+
};
|
|
67
|
+
iconPos: {
|
|
68
|
+
default: undefined;
|
|
69
|
+
type: PropType<"left" | "right">;
|
|
70
|
+
};
|
|
71
|
+
label: {
|
|
72
|
+
default: undefined;
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
};
|
|
75
|
+
link: {
|
|
76
|
+
default: undefined;
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
};
|
|
79
|
+
loading: {
|
|
80
|
+
default: undefined;
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
};
|
|
83
|
+
outlined: {
|
|
84
|
+
default: undefined;
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
};
|
|
87
|
+
rounded: {
|
|
88
|
+
default: undefined;
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
};
|
|
91
|
+
severity: {
|
|
92
|
+
default: undefined;
|
|
93
|
+
type: PropType<Severity>;
|
|
94
|
+
};
|
|
95
|
+
size: {
|
|
96
|
+
default: undefined;
|
|
97
|
+
type: PropType<"large" | "small">;
|
|
98
|
+
};
|
|
99
|
+
text: {
|
|
100
|
+
default: undefined;
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
};
|
|
103
|
+
type: {
|
|
104
|
+
default: undefined;
|
|
105
|
+
type: PropType<"button" | "submit">;
|
|
106
|
+
};
|
|
107
|
+
}>> & Readonly<{
|
|
108
|
+
onClick?: (event: MouseEvent) => any;
|
|
109
|
+
}>, {
|
|
110
|
+
icon: "times";
|
|
111
|
+
label: string;
|
|
112
|
+
type: "button" | "submit";
|
|
113
|
+
disabled: boolean;
|
|
114
|
+
iconPos: "left" | "right";
|
|
115
|
+
link: boolean;
|
|
116
|
+
loading: boolean;
|
|
117
|
+
outlined: boolean;
|
|
118
|
+
rounded: boolean;
|
|
119
|
+
severity: Severity;
|
|
120
|
+
size: "large" | "small";
|
|
121
|
+
text: boolean;
|
|
122
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
123
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
124
|
+
declare const _default: typeof __VLS_export;
|
|
125
|
+
export default _default;
|
|
126
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
127
|
+
new (): {
|
|
128
|
+
$slots: S;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ICON_PROP_TYPE } from "../../icons/ui-icon-registry.js";
|
|
2
|
+
import { useUiIconClass } from "../../plugin/ui-injection.js";
|
|
3
|
+
import { SEVERITY_TO_VENDOR } from "./severity-to-vendor.js";
|
|
4
|
+
import { computed, createBlock, createSlots, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
import VendorButton from "openvue/button";
|
|
6
|
+
//#region src/components/button/Button.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var Button_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
8
|
+
__name: "Button",
|
|
9
|
+
props: {
|
|
10
|
+
disabled: {
|
|
11
|
+
default: void 0,
|
|
12
|
+
type: Boolean
|
|
13
|
+
},
|
|
14
|
+
icon: {
|
|
15
|
+
default: void 0,
|
|
16
|
+
type: ICON_PROP_TYPE
|
|
17
|
+
},
|
|
18
|
+
iconPos: {
|
|
19
|
+
default: void 0,
|
|
20
|
+
type: String
|
|
21
|
+
},
|
|
22
|
+
label: {
|
|
23
|
+
default: void 0,
|
|
24
|
+
type: String
|
|
25
|
+
},
|
|
26
|
+
link: {
|
|
27
|
+
default: void 0,
|
|
28
|
+
type: Boolean
|
|
29
|
+
},
|
|
30
|
+
loading: {
|
|
31
|
+
default: void 0,
|
|
32
|
+
type: Boolean
|
|
33
|
+
},
|
|
34
|
+
outlined: {
|
|
35
|
+
default: void 0,
|
|
36
|
+
type: Boolean
|
|
37
|
+
},
|
|
38
|
+
rounded: {
|
|
39
|
+
default: void 0,
|
|
40
|
+
type: Boolean
|
|
41
|
+
},
|
|
42
|
+
severity: {
|
|
43
|
+
default: void 0,
|
|
44
|
+
type: String
|
|
45
|
+
},
|
|
46
|
+
size: {
|
|
47
|
+
default: void 0,
|
|
48
|
+
type: String
|
|
49
|
+
},
|
|
50
|
+
text: {
|
|
51
|
+
default: void 0,
|
|
52
|
+
type: Boolean
|
|
53
|
+
},
|
|
54
|
+
type: {
|
|
55
|
+
default: void 0,
|
|
56
|
+
type: String
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
emits: ["click"],
|
|
60
|
+
setup(__props) {
|
|
61
|
+
const props = __props;
|
|
62
|
+
const vendorSeverity = computed(() => props.severity === void 0 ? void 0 : SEVERITY_TO_VENDOR[props.severity]);
|
|
63
|
+
const iconClass = useUiIconClass();
|
|
64
|
+
const vendorIcon = computed(() => props.icon === void 0 ? void 0 : iconClass(props.icon));
|
|
65
|
+
const BUTTON_PASS_THROUGH = { icon: { class: "ui-button-icon" } };
|
|
66
|
+
const nativeAttributes = computed(() => ({
|
|
67
|
+
...props.disabled !== void 0 && { disabled: props.disabled },
|
|
68
|
+
...props.type !== void 0 && { type: props.type }
|
|
69
|
+
}));
|
|
70
|
+
return (_ctx, _cache) => {
|
|
71
|
+
return openBlock(), createBlock(unref(VendorButton), mergeProps(nativeAttributes.value, {
|
|
72
|
+
pt: BUTTON_PASS_THROUGH,
|
|
73
|
+
icon: vendorIcon.value,
|
|
74
|
+
"icon-pos": __props.iconPos,
|
|
75
|
+
label: __props.label,
|
|
76
|
+
link: __props.link,
|
|
77
|
+
loading: __props.loading,
|
|
78
|
+
outlined: __props.outlined,
|
|
79
|
+
rounded: __props.rounded,
|
|
80
|
+
severity: vendorSeverity.value,
|
|
81
|
+
size: __props.size,
|
|
82
|
+
text: __props.text,
|
|
83
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
|
|
84
|
+
}), createSlots({ _: 2 }, [_ctx.$slots.default ? {
|
|
85
|
+
name: "default",
|
|
86
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
87
|
+
key: "0"
|
|
88
|
+
} : void 0]), 1040, [
|
|
89
|
+
"icon",
|
|
90
|
+
"icon-pos",
|
|
91
|
+
"label",
|
|
92
|
+
"link",
|
|
93
|
+
"loading",
|
|
94
|
+
"outlined",
|
|
95
|
+
"rounded",
|
|
96
|
+
"severity",
|
|
97
|
+
"size",
|
|
98
|
+
"text"
|
|
99
|
+
]);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
//#endregion
|
|
104
|
+
export { Button_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/components/button/severity-to-vendor.ts
|
|
2
|
+
var SEVERITY_TO_VENDOR = {
|
|
3
|
+
contrast: "contrast",
|
|
4
|
+
danger: "danger",
|
|
5
|
+
info: "info",
|
|
6
|
+
secondary: "secondary",
|
|
7
|
+
success: "success",
|
|
8
|
+
warn: "warn"
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SEVERITY_TO_VENDOR };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Card_vue_vue_type_script_setup_true_lang_default from "./Card.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region src/components/card/Card.vue
|
|
3
|
+
var Card_default = Card_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { Card_default as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
content?: () => VNode[];
|
|
4
|
+
default?: () => VNode[];
|
|
5
|
+
footer?: () => VNode[];
|
|
6
|
+
subtitle?: () => VNode[];
|
|
7
|
+
title?: () => VNode[];
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createBlock, createSlots, defineComponent, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import VendorCard from "openvue/card";
|
|
3
|
+
//#region src/components/card/Card.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var Card_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
5
|
+
__name: "Card",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
return (_ctx, _cache) => {
|
|
8
|
+
return openBlock(), createBlock(unref(VendorCard), null, createSlots({ _: 2 }, [
|
|
9
|
+
_ctx.$slots.title ? {
|
|
10
|
+
name: "title",
|
|
11
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "title")]),
|
|
12
|
+
key: "0"
|
|
13
|
+
} : void 0,
|
|
14
|
+
_ctx.$slots.subtitle ? {
|
|
15
|
+
name: "subtitle",
|
|
16
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "subtitle")]),
|
|
17
|
+
key: "1"
|
|
18
|
+
} : void 0,
|
|
19
|
+
_ctx.$slots.content ?? _ctx.$slots.default ? {
|
|
20
|
+
name: "content",
|
|
21
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "content"), renderSlot(_ctx.$slots, "default")]),
|
|
22
|
+
key: "2"
|
|
23
|
+
} : void 0,
|
|
24
|
+
_ctx.$slots.footer ? {
|
|
25
|
+
name: "footer",
|
|
26
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "footer")]),
|
|
27
|
+
key: "3"
|
|
28
|
+
} : void 0
|
|
29
|
+
]), 1024);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { Card_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import ConfirmHost_vue_vue_type_script_setup_true_lang_default from "./ConfirmHost.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region src/components/confirm/ConfirmHost.vue
|
|
3
|
+
var ConfirmHost_default = ConfirmHost_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { ConfirmHost_default as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createBlock, defineComponent, openBlock, unref } from "vue";
|
|
2
|
+
import ConfirmDialog from "openvue/confirmdialog";
|
|
3
|
+
//#region src/components/confirm/ConfirmHost.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var ConfirmHost_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
5
|
+
__name: "ConfirmHost",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
return (_ctx, _cache) => {
|
|
8
|
+
return openBlock(), createBlock(unref(ConfirmDialog));
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ConfirmHost_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import ConfirmationService from "openvue/confirmationservice";
|
|
2
|
+
//#region src/components/confirm/install-confirmation-service.ts
|
|
3
|
+
/**
|
|
4
|
+
* Runtime dependency of the `useConfirm()` facade and of `<ConfirmHost>`: the vendor
|
|
5
|
+
* confirmation service is installed here, inside the shared layer, instead of the app-level
|
|
6
|
+
* plugin or a spec — otherwise `openvue/confirmationservice` leaks into `src/modules`
|
|
7
|
+
* (story 3-7; the page spec of the users screen installed it itself).
|
|
8
|
+
* @param app - Vue.js app (module VendorPlugin or the test harness).
|
|
9
|
+
* @example
|
|
10
|
+
* installConfirmationService(vue)
|
|
11
|
+
*/
|
|
12
|
+
var installConfirmationService = (app) => {
|
|
13
|
+
app.use(ConfirmationService);
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { installConfirmationService };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import DateRangeFilter_vue_vue_type_script_setup_true_lang_default from "./DateRangeFilter.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
//#region src/components/date-range-filter/DateRangeFilter.vue
|
|
5
|
+
var DateRangeFilter_default = /*#__PURE__*/ _plugin_vue_export_helper_default(DateRangeFilter_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-30d77bcb"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { DateRangeFilter_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FilterInterface } from '@application-kit/typeorm/listing';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
field?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("*.vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:filters": (filters: FilterInterface[]) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onUpdate:filters"?: (filters: FilterInterface[]) => any;
|
|
9
|
+
}>, {
|
|
10
|
+
field: string;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|