@opendesign-plus/components 0.0.1-rc.83 → 0.0.1-rc.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +81 -55
  3. package/dist/components/activity/OActivityApproval.vue.d.ts +169 -19
  4. package/dist/components/activity/OActivityForm.vue.d.ts +169 -19
  5. package/dist/components/activity/OActivityMyCalendar.vue.d.ts +18 -10
  6. package/dist/components/activity/index.d.ts +347 -43
  7. package/dist/components/header-language-switcher/OHeaderLanguageSwitcher.vue.d.ts +1 -1
  8. package/dist/components/header-language-switcher/index.d.ts +3 -3
  9. package/dist/components/header-search/OHeaderSearch.vue.d.ts +43 -35
  10. package/dist/components/header-search/index.d.ts +24 -20
  11. package/dist/components/markdown/OMarkdown.vue.d.ts +49 -0
  12. package/dist/components/markdown/OMarkdownPagination.vue.d.ts +25 -0
  13. package/dist/components/markdown/components/MarkdownCode.vue.d.ts +8 -0
  14. package/dist/components/markdown/components/MarkdownImage.vue.d.ts +8 -0
  15. package/dist/components/markdown/components/MarkdownPageTitle.vue.d.ts +23 -0
  16. package/dist/components/markdown/components/MarkdownTable.vue.d.ts +5 -0
  17. package/dist/components/markdown/components/MarkdownTableData.vue.d.ts +11 -0
  18. package/dist/components/markdown/components/MarkdownTableExpand.vue.d.ts +12 -0
  19. package/dist/components/markdown/components/MarkdownTitle.vue.d.ts +6 -0
  20. package/dist/components/markdown/replacer/code.d.ts +2 -0
  21. package/dist/components/markdown/replacer/h1.d.ts +11 -0
  22. package/dist/components/markdown/replacer/h2.d.ts +2 -0
  23. package/dist/components/markdown/replacer/img.d.ts +2 -0
  24. package/dist/components/markdown/replacer/table.d.ts +2 -0
  25. package/dist/components/meeting/OMeetingForm.vue.d.ts +169 -19
  26. package/dist/components/meeting/OMeetingMinutes.vue.d.ts +18 -10
  27. package/dist/components/meeting/OMeetingMyCalendar.vue.d.ts +18 -10
  28. package/dist/components/meeting/OMeetingSendMinutesForm.vue.d.ts +169 -19
  29. package/dist/components/meeting/components/OMeetingSendMinutesDialog.vue.d.ts +169 -19
  30. package/dist/components/meeting/components/OMeetingSigAside.vue.d.ts +9 -5
  31. package/dist/components/meeting/index.d.ts +356 -48
  32. package/dist/components/search/OSearchInput.vue.d.ts +43 -35
  33. package/dist/components/search/index.d.ts +24 -20
  34. package/dist/components/search/internal/SearchImageInput.vue.d.ts +37 -29
  35. package/dist/components/sig/OSigDetail.vue.d.ts +1 -0
  36. package/dist/components/sig/components/OSigRepo.vue.d.ts +1 -0
  37. package/dist/components.cjs.js +45 -45
  38. package/dist/components.css +1 -1
  39. package/dist/components.es.js +13939 -12909
  40. package/dist/index.d.ts +1 -0
  41. package/dist/treeshaking/_virtual/icon-copy2.mjs +20 -0
  42. package/dist/treeshaking/_virtual/icon-download.mjs +17 -0
  43. package/dist/treeshaking/_virtual/icon-expand.mjs +21 -0
  44. package/dist/treeshaking/_virtual/icon-link.mjs +31 -0
  45. package/dist/treeshaking/_virtual/icon-more.mjs +19 -0
  46. package/dist/treeshaking/_virtual/icon-next.mjs +23 -0
  47. package/dist/treeshaking/_virtual/icon-star.mjs +20 -0
  48. package/dist/treeshaking/_virtual/icon-unexpand.mjs +22 -0
  49. package/dist/treeshaking/assets/markdown/md-title-bg.png.mjs +4 -0
  50. package/dist/treeshaking/assets/svg-icons/icon-zoom.svg.mjs +4 -0
  51. package/dist/treeshaking/components/activity/OActivityApproval.vue.d.ts +169 -19
  52. package/dist/treeshaking/components/activity/OActivityForm.vue.d.ts +169 -19
  53. package/dist/treeshaking/components/activity/OActivityMyCalendar.vue.d.ts +18 -10
  54. package/dist/treeshaking/components/activity/index.d.ts +347 -43
  55. package/dist/treeshaking/components/config-provider/OPlusConfigProvider.vue.mjs +5 -5
  56. package/dist/treeshaking/components/header-language-switcher/OHeaderLanguageSwitcher.vue.d.ts +1 -1
  57. package/dist/treeshaking/components/header-language-switcher/index.d.ts +3 -3
  58. package/dist/treeshaking/components/header-search/OHeaderSearch.vue.d.ts +43 -35
  59. package/dist/treeshaking/components/header-search/index.d.ts +24 -20
  60. package/dist/treeshaking/components/markdown/OMarkdown.css +1153 -0
  61. package/dist/treeshaking/components/markdown/OMarkdown.vue.d.ts +49 -0
  62. package/dist/treeshaking/components/markdown/OMarkdown.vue.mjs +8 -0
  63. package/dist/treeshaking/components/markdown/OMarkdown.vue2.mjs +158 -0
  64. package/dist/treeshaking/components/markdown/OMarkdown2.css +14 -0
  65. package/dist/treeshaking/components/markdown/OMarkdownPagination.css +218 -0
  66. package/dist/treeshaking/components/markdown/OMarkdownPagination.vue.d.ts +25 -0
  67. package/dist/treeshaking/components/markdown/OMarkdownPagination.vue.mjs +7 -0
  68. package/dist/treeshaking/components/markdown/OMarkdownPagination.vue2.mjs +101 -0
  69. package/dist/treeshaking/components/markdown/components/MarkdownCode.css +12 -0
  70. package/dist/treeshaking/components/markdown/components/MarkdownCode.vue.d.ts +8 -0
  71. package/dist/treeshaking/components/markdown/components/MarkdownCode.vue.mjs +8 -0
  72. package/dist/treeshaking/components/markdown/components/MarkdownCode.vue2.mjs +125 -0
  73. package/dist/treeshaking/components/markdown/components/MarkdownCode2.css +130 -0
  74. package/dist/treeshaking/components/markdown/components/MarkdownImage.css +73 -0
  75. package/dist/treeshaking/components/markdown/components/MarkdownImage.vue.d.ts +8 -0
  76. package/dist/treeshaking/components/markdown/components/MarkdownImage.vue.mjs +7 -0
  77. package/dist/treeshaking/components/markdown/components/MarkdownImage.vue2.mjs +76 -0
  78. package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.css +288 -0
  79. package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue.d.ts +23 -0
  80. package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue.mjs +7 -0
  81. package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue2.mjs +253 -0
  82. package/dist/treeshaking/components/markdown/components/MarkdownTable.css +61 -0
  83. package/dist/treeshaking/components/markdown/components/MarkdownTable.vue.d.ts +5 -0
  84. package/dist/treeshaking/components/markdown/components/MarkdownTable.vue.mjs +7 -0
  85. package/dist/treeshaking/components/markdown/components/MarkdownTable.vue2.mjs +59 -0
  86. package/dist/treeshaking/components/markdown/components/MarkdownTableData.css +111 -0
  87. package/dist/treeshaking/components/markdown/components/MarkdownTableData.vue.d.ts +11 -0
  88. package/dist/treeshaking/components/markdown/components/MarkdownTableData.vue.mjs +7 -0
  89. package/dist/treeshaking/components/markdown/components/MarkdownTableData.vue2.mjs +181 -0
  90. package/dist/treeshaking/components/markdown/components/MarkdownTableExpand.css +66 -0
  91. package/dist/treeshaking/components/markdown/components/MarkdownTableExpand.vue.d.ts +12 -0
  92. package/dist/treeshaking/components/markdown/components/MarkdownTableExpand.vue.mjs +7 -0
  93. package/dist/treeshaking/components/markdown/components/MarkdownTableExpand.vue2.mjs +57 -0
  94. package/dist/treeshaking/components/markdown/components/MarkdownTitle.css +173 -0
  95. package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue.d.ts +6 -0
  96. package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue.mjs +7 -0
  97. package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue2.mjs +69 -0
  98. package/dist/treeshaking/components/markdown/index.mjs +16 -0
  99. package/dist/treeshaking/components/markdown/replacer/code.d.ts +2 -0
  100. package/dist/treeshaking/components/markdown/replacer/code.mjs +22 -0
  101. package/dist/treeshaking/components/markdown/replacer/h1.d.ts +11 -0
  102. package/dist/treeshaking/components/markdown/replacer/h1.mjs +29 -0
  103. package/dist/treeshaking/components/markdown/replacer/h2.d.ts +2 -0
  104. package/dist/treeshaking/components/markdown/replacer/h2.mjs +22 -0
  105. package/dist/treeshaking/components/markdown/replacer/img.d.ts +2 -0
  106. package/dist/treeshaking/components/markdown/replacer/img.mjs +22 -0
  107. package/dist/treeshaking/components/markdown/replacer/table.d.ts +2 -0
  108. package/dist/treeshaking/components/markdown/replacer/table.mjs +22 -0
  109. package/dist/treeshaking/components/meeting/OMeetingForm.vue.d.ts +169 -19
  110. package/dist/treeshaking/components/meeting/OMeetingMinutes.vue.d.ts +18 -10
  111. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue.d.ts +18 -10
  112. package/dist/treeshaking/components/meeting/OMeetingSendMinutesForm.vue.d.ts +169 -19
  113. package/dist/treeshaking/components/meeting/components/OMeetingSendMinutesDialog.vue.d.ts +169 -19
  114. package/dist/treeshaking/components/meeting/components/OMeetingSigAside.vue.d.ts +9 -5
  115. package/dist/treeshaking/components/meeting/index.d.ts +356 -48
  116. package/dist/treeshaking/components/search/OSearchInput.vue.d.ts +43 -35
  117. package/dist/treeshaking/components/search/index.d.ts +24 -20
  118. package/dist/treeshaking/components/search/internal/SearchImageInput.vue.d.ts +37 -29
  119. package/dist/treeshaking/components/sig/OSigDetail.vue.d.ts +1 -0
  120. package/dist/treeshaking/components/sig/OSigDetail.vue.mjs +7 -4
  121. package/dist/treeshaking/components/sig/components/OSigRepo.css +3 -0
  122. package/dist/treeshaking/components/sig/components/OSigRepo.vue.d.ts +1 -0
  123. package/dist/treeshaking/components/sig/components/OSigRepo.vue.mjs +6 -2
  124. package/dist/treeshaking/components/sig/components/OSigUserContribute.css +3 -0
  125. package/dist/treeshaking/i18n/en.mjs +13 -0
  126. package/dist/treeshaking/i18n/index.mjs +1 -1
  127. package/dist/treeshaking/i18n/zh.mjs +13 -0
  128. package/dist/treeshaking/index.d.ts +1 -0
  129. package/dist/treeshaking/index.mjs +3 -0
  130. package/dist/treeshaking/shared/theme.mjs +15 -3
  131. package/package.json +3 -3
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./MarkdownTitle.vue2.mjs";
2
+ import './MarkdownTitle.css';
3
+ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const MarkdownTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cc083317"]]);
5
+ export {
6
+ MarkdownTitle as default
7
+ };
@@ -0,0 +1,69 @@
1
+ import { defineComponent, openBlock, createElementBlock, withDirectives, createElementVNode, unref, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
2
+ import { useMessage, OPopover, OIcon } from "@opensig/opendesign";
3
+ import { useClipboard } from "@opendesign-plus/composables";
4
+ import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
5
+ import { useI18n } from "../../../i18n/index.mjs";
6
+ import IconLink from "../../../_virtual/icon-link.mjs";
7
+ const _hoisted_1 = { class: "o-md-title-wrap" };
8
+ const _hoisted_2 = { class: "o-md-title __mounted" };
9
+ const _hoisted_3 = { class: "o-md-title-copy-link-wrap" };
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ __name: "MarkdownTitle",
12
+ props: {
13
+ el: {}
14
+ },
15
+ setup(__props) {
16
+ const props = __props;
17
+ const vDompurifyHtml = buildVueDompurifyHTMLDirective({
18
+ default: {
19
+ FORBID_ATTR: ["style"]
20
+ }
21
+ });
22
+ const message = useMessage();
23
+ const { t } = useI18n();
24
+ const onClickCopyLink = async () => {
25
+ var _a, _b;
26
+ const text = `${window.location.origin}${window.location.pathname}#${(_b = (_a = props.el) == null ? void 0 : _a.id) == null ? void 0 : _b.replace("user-content-", "")}`;
27
+ if (await useClipboard(text)) {
28
+ message.success({
29
+ content: t("common.copySuccess")
30
+ });
31
+ }
32
+ };
33
+ return (_ctx, _cache) => {
34
+ var _a;
35
+ return openBlock(), createElementBlock("div", _hoisted_1, [
36
+ withDirectives(createElementVNode("div", _hoisted_2, null, 512), [
37
+ [unref(vDompurifyHtml), (_a = __props.el) == null ? void 0 : _a.outerHTML]
38
+ ]),
39
+ createElementVNode("span", _hoisted_3, [
40
+ createVNode(unref(OPopover), {
41
+ position: "right",
42
+ trigger: "hover"
43
+ }, {
44
+ target: withCtx(() => [
45
+ createElementVNode("a", {
46
+ class: "o-md-title-copy-link",
47
+ onClick: onClickCopyLink
48
+ }, [
49
+ createVNode(unref(OIcon), { class: "o-md-title-icon-copy" }, {
50
+ default: withCtx(() => [
51
+ createVNode(unref(IconLink))
52
+ ]),
53
+ _: 1
54
+ })
55
+ ])
56
+ ]),
57
+ default: withCtx(() => [
58
+ createTextVNode(" " + toDisplayString(unref(t)("common.copyLink")), 1)
59
+ ]),
60
+ _: 1
61
+ })
62
+ ])
63
+ ]);
64
+ };
65
+ }
66
+ });
67
+ export {
68
+ _sfc_main as default
69
+ };
@@ -0,0 +1,16 @@
1
+ import _OMarkdown from "./OMarkdown.vue.mjs";
2
+ import _OMarkdownPagination from "./OMarkdownPagination.vue.mjs";
3
+ const OMarkdown = Object.assign(_OMarkdown, {
4
+ install(app) {
5
+ app.component("OMarkdown", _OMarkdown);
6
+ }
7
+ });
8
+ const OMarkdownPagination = Object.assign(_OMarkdownPagination, {
9
+ install(app) {
10
+ app.component("OMarkdownPagination", _OMarkdownPagination);
11
+ }
12
+ });
13
+ export {
14
+ OMarkdown,
15
+ OMarkdownPagination
16
+ };
@@ -0,0 +1,2 @@
1
+ import { AppContext } from 'vue';
2
+ export declare function mountMarkdownCode(el: Element, context: AppContext): (() => void) | undefined;
@@ -0,0 +1,22 @@
1
+ import { createVNode, render } from "vue";
2
+ import MarkdownCode from "../components/MarkdownCode.vue.mjs";
3
+ function mountMarkdownCode(el, context) {
4
+ var _a, _b, _c;
5
+ if (((_a = el.className) == null ? void 0 : _a.includes("o-")) || ((_c = (_b = el.parentNode) == null ? void 0 : _b.className) == null ? void 0 : _c.includes("__mounted"))) {
6
+ return;
7
+ }
8
+ let vnode = createVNode(MarkdownCode, {
9
+ el
10
+ });
11
+ vnode.appContext = context;
12
+ let container = document.createElement("div");
13
+ render(vnode, container);
14
+ el.replaceWith(container.querySelector(".o-md-code"));
15
+ return () => {
16
+ vnode = null;
17
+ container = null;
18
+ };
19
+ }
20
+ export {
21
+ mountMarkdownCode
22
+ };
@@ -0,0 +1,11 @@
1
+ import { AppContext, MaybeRefOrGetter } from 'vue';
2
+ export interface MarkdownPageTitleProps {
3
+ sourceUrl?: MaybeRefOrGetter<string | undefined>;
4
+ updateTime?: MaybeRefOrGetter<string | undefined>;
5
+ titleBg?: MaybeRefOrGetter<string | undefined>;
6
+ enableDownload?: MaybeRefOrGetter<boolean | undefined>;
7
+ enableStar?: MaybeRefOrGetter<boolean | undefined>;
8
+ onDownload?: () => void;
9
+ onCollect?: () => void;
10
+ }
11
+ export declare function mountMarkdownPageTitle(el: Element, context: AppContext, props?: MarkdownPageTitleProps): (() => void) | undefined;
@@ -0,0 +1,29 @@
1
+ import { createVNode, render } from "vue";
2
+ import MarkdownPageTitle from "../components/MarkdownPageTitle.vue.mjs";
3
+ function mountMarkdownPageTitle(el, context, props) {
4
+ var _a, _b, _c;
5
+ if (((_a = el.className) == null ? void 0 : _a.includes("o-")) || ((_c = (_b = el.parentNode) == null ? void 0 : _b.className) == null ? void 0 : _c.includes("__mounted"))) {
6
+ return;
7
+ }
8
+ let vnode = createVNode(MarkdownPageTitle, {
9
+ el,
10
+ sourceUrl: props == null ? void 0 : props.sourceUrl,
11
+ updateTime: props == null ? void 0 : props.updateTime,
12
+ bgImage: props == null ? void 0 : props.titleBg,
13
+ enableDownload: props == null ? void 0 : props.enableDownload,
14
+ enableStar: props == null ? void 0 : props.enableStar,
15
+ onDownload: props == null ? void 0 : props.onDownload,
16
+ onCollect: props == null ? void 0 : props.onCollect
17
+ });
18
+ vnode.appContext = context;
19
+ let container = document.createElement("div");
20
+ render(vnode, container);
21
+ el.replaceWith(container.querySelector(".o-md-page-title"));
22
+ return () => {
23
+ vnode = null;
24
+ container = null;
25
+ };
26
+ }
27
+ export {
28
+ mountMarkdownPageTitle
29
+ };
@@ -0,0 +1,2 @@
1
+ import { AppContext } from 'vue';
2
+ export declare function mountMarkdownTitle(el: Element, context: AppContext): (() => void) | undefined;
@@ -0,0 +1,22 @@
1
+ import { createVNode, render } from "vue";
2
+ import MarkdownTitle from "../components/MarkdownTitle.vue.mjs";
3
+ function mountMarkdownTitle(el, context) {
4
+ var _a, _b, _c;
5
+ if (((_a = el.className) == null ? void 0 : _a.includes("o-")) || ((_c = (_b = el.parentNode) == null ? void 0 : _b.className) == null ? void 0 : _c.includes("__mounted"))) {
6
+ return;
7
+ }
8
+ let vnode = createVNode(MarkdownTitle, {
9
+ el
10
+ });
11
+ vnode.appContext = context;
12
+ let container = document.createElement("div");
13
+ render(vnode, container);
14
+ el.replaceWith(container.querySelector(".o-md-title-wrap"));
15
+ return () => {
16
+ vnode = null;
17
+ container = null;
18
+ };
19
+ }
20
+ export {
21
+ mountMarkdownTitle
22
+ };
@@ -0,0 +1,2 @@
1
+ import { AppContext } from 'vue';
2
+ export declare function mountMarkdownImage(el: Element, context: AppContext): (() => void) | undefined;
@@ -0,0 +1,22 @@
1
+ import { createVNode, render } from "vue";
2
+ import MarkdownImage from "../components/MarkdownImage.vue.mjs";
3
+ function mountMarkdownImage(el, context) {
4
+ var _a, _b, _c;
5
+ if (((_a = el.className) == null ? void 0 : _a.includes("o-")) || ((_c = (_b = el.parentNode) == null ? void 0 : _b.className) == null ? void 0 : _c.includes("__mounted"))) {
6
+ return;
7
+ }
8
+ let vnode = createVNode(MarkdownImage, {
9
+ el
10
+ });
11
+ vnode.appContext = context;
12
+ let container = document.createElement("div");
13
+ render(vnode, container);
14
+ el.replaceWith(container.querySelector(".o-md-img"));
15
+ return () => {
16
+ vnode = null;
17
+ container = null;
18
+ };
19
+ }
20
+ export {
21
+ mountMarkdownImage
22
+ };
@@ -0,0 +1,2 @@
1
+ import { AppContext } from 'vue';
2
+ export declare function mountMarkdownTable(el: HTMLTableElement, context: AppContext): (() => void) | undefined;
@@ -0,0 +1,22 @@
1
+ import { createVNode, render } from "vue";
2
+ import MarkdownTable from "../components/MarkdownTable.vue.mjs";
3
+ function mountMarkdownTable(el, context) {
4
+ var _a, _b, _c;
5
+ if (((_a = el.className) == null ? void 0 : _a.includes("o-")) || ((_c = (_b = el.parentNode) == null ? void 0 : _b.className) == null ? void 0 : _c.includes("__mounted"))) {
6
+ return;
7
+ }
8
+ let vnode = createVNode(MarkdownTable, {
9
+ el
10
+ });
11
+ vnode.appContext = context;
12
+ let container = document.createElement("div");
13
+ render(vnode, container);
14
+ el.replaceWith(container.querySelector(".o-md-table-container"));
15
+ return () => {
16
+ vnode = null;
17
+ container = null;
18
+ };
19
+ }
20
+ export {
21
+ mountMarkdownTable
22
+ };
@@ -18,22 +18,45 @@ declare const _default: import('vue').DefineComponent<MeetingFormPropsT, {
18
18
  $data: {};
19
19
  $props: Partial<{
20
20
  layout: "h" | "v" | "inline";
21
+ disabled: boolean | undefined;
22
+ clearable: boolean | undefined;
21
23
  hasRequired: boolean;
24
+ requiredIcon: boolean;
25
+ labelWidth: string;
26
+ showMessage: boolean;
27
+ validateOnRuleChange: boolean;
28
+ scrollToError: boolean;
22
29
  }> & Omit<{
23
30
  readonly hasRequired: boolean;
31
+ readonly requiredIcon: boolean;
24
32
  readonly layout: "v" | "h" | "inline";
25
- readonly model?: Record<string, any> | undefined;
33
+ readonly labelWidth: string;
34
+ readonly showMessage: boolean;
35
+ readonly validateOnRuleChange: boolean;
36
+ readonly scrollToError: boolean;
37
+ readonly size?: "small" | "large" | "medium" | undefined;
38
+ readonly round?: import('@opensig/opendesign').RoundT | undefined;
39
+ readonly disabled?: boolean | undefined;
26
40
  readonly labelAlign?: "top" | "center" | "bottom" | undefined;
27
41
  readonly labelJustify?: "center" | "left" | "right" | undefined;
28
- readonly labelWidth?: string | undefined;
42
+ readonly clearable?: boolean | undefined;
43
+ readonly model?: Record<string, any> | undefined;
44
+ readonly rules?: import('@opensig/opendesign').FormRulesT | undefined;
29
45
  readonly onClear?: ((filed?: string | string[] | undefined) => any) | undefined | undefined;
30
46
  readonly onReset?: ((filed?: string | string[] | undefined) => any) | undefined | undefined;
31
47
  readonly onSubmit?: ((results: import('@opensig/opendesign').FieldResultT[]) => any) | undefined | undefined;
32
48
  readonly onValidate?: ((results: import('@opensig/opendesign').FieldResultT[]) => any) | undefined | undefined;
33
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "hasRequired" | "layout">;
49
+ readonly onValidateField?: ((payload: {
50
+ field: string;
51
+ isValid: boolean;
52
+ message: string;
53
+ }) => any) | undefined | undefined;
54
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "clearable" | "hasRequired" | "requiredIcon" | "layout" | "labelWidth" | "showMessage" | "validateOnRuleChange" | "scrollToError">;
34
55
  $attrs: import('vue').Attrs;
35
56
  $refs: {
36
57
  [x: string]: unknown;
58
+ } & {
59
+ formEl: HTMLFormElement;
37
60
  };
38
61
  $slots: Readonly<{
39
62
  [name: string]: import('vue').Slot<any> | undefined;
@@ -41,46 +64,114 @@ declare const _default: import('vue').DefineComponent<MeetingFormPropsT, {
41
64
  $root: import('vue').ComponentPublicInstance | null;
42
65
  $parent: import('vue').ComponentPublicInstance | null;
43
66
  $host: Element | null;
44
- $emit: ((event: "clear", filed?: string | string[] | undefined) => void) & ((event: "validate", results: import('@opensig/opendesign').FieldResultT[]) => void) & ((event: "reset", filed?: string | string[] | undefined) => void) & ((event: "submit", results: import('@opensig/opendesign').FieldResultT[]) => void);
67
+ $emit: ((event: "clear", filed?: string | string[] | undefined) => void) & ((event: "validate", results: import('@opensig/opendesign').FieldResultT[]) => void) & ((event: "validateField", payload: {
68
+ field: string;
69
+ isValid: boolean;
70
+ message: string;
71
+ }) => void) & ((event: "reset", filed?: string | string[] | undefined) => void) & ((event: "submit", results: import('@opensig/opendesign').FieldResultT[]) => void);
45
72
  $el: HTMLFormElement;
46
73
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
74
+ labelAlign: {
75
+ type: import('vue').PropType<"top" | "center" | "bottom">;
76
+ };
77
+ labelJustify: {
78
+ type: import('vue').PropType<"left" | "center" | "right">;
79
+ };
80
+ disabled: {
81
+ type: import('vue').PropType<boolean | undefined>;
82
+ default: undefined;
83
+ };
84
+ size: {
85
+ type: import('vue').PropType<import('@opensig/opendesign').SizeT>;
86
+ };
87
+ round: {
88
+ type: import('vue').PropType<import('@opensig/opendesign').RoundT>;
89
+ };
90
+ clearable: {
91
+ type: import('vue').PropType<boolean | undefined>;
92
+ default: undefined;
93
+ };
47
94
  model: {
48
95
  type: ObjectConstructor;
49
96
  };
97
+ rules: {
98
+ type: import('vue').PropType<import('@opensig/opendesign').FormRulesT>;
99
+ };
50
100
  hasRequired: {
51
101
  type: BooleanConstructor;
52
102
  default: boolean;
53
103
  };
104
+ requiredIcon: {
105
+ type: BooleanConstructor;
106
+ default: boolean;
107
+ };
54
108
  layout: {
55
109
  type: import('vue').PropType<"h" | "v" | "inline">;
56
110
  default: string;
57
111
  };
58
- labelAlign: {
59
- type: import('vue').PropType<"top" | "center" | "bottom">;
60
- };
61
- labelJustify: {
62
- type: import('vue').PropType<"left" | "center" | "right">;
63
- };
64
112
  labelWidth: {
65
113
  type: StringConstructor;
114
+ default: string;
115
+ };
116
+ showMessage: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
120
+ validateOnRuleChange: {
121
+ type: BooleanConstructor;
122
+ default: boolean;
123
+ };
124
+ scrollToError: {
125
+ type: BooleanConstructor;
126
+ default: boolean;
66
127
  };
67
128
  }>> & Readonly<{
68
129
  onClear?: ((filed?: string | string[] | undefined) => any) | undefined;
69
130
  onReset?: ((filed?: string | string[] | undefined) => any) | undefined;
70
131
  onSubmit?: ((results: import('@opensig/opendesign').FieldResultT[]) => any) | undefined;
71
132
  onValidate?: ((results: import('@opensig/opendesign').FieldResultT[]) => any) | undefined;
133
+ onValidateField?: ((payload: {
134
+ field: string;
135
+ isValid: boolean;
136
+ message: string;
137
+ }) => any) | undefined;
72
138
  }>, {
73
- validate: (filed?: string | string[]) => Promise<import('@opensig/opendesign').FieldResultT[]>;
139
+ validate: (filed?: string | string[], trigger?: import('@opensig/opendesign').TriggerT) => Promise<{
140
+ type: "warning" | "danger" | "success" | "";
141
+ message: string[];
142
+ }[]>;
143
+ validateField: (field: string | string[], trigger?: import('@opensig/opendesign').TriggerT) => Promise<{
144
+ type: "warning" | "danger" | "success" | "";
145
+ message: string[];
146
+ }[]>;
74
147
  resetFields: (filed?: string | string[]) => void;
148
+ setInitialValues: (data: Record<string, any>) => void;
75
149
  clearValidate: (filed?: string | string[], onClear?: (filed: import('@opensig/opendesign').FiledInfoT) => void) => void;
150
+ scrollToField: (field: string, options?: boolean | {
151
+ behavior?: "auto" | "smooth" | "instant";
152
+ block?: "start" | "center" | "end" | "nearest";
153
+ inline?: "start" | "center" | "end" | "nearest";
154
+ }) => Promise<void>;
76
155
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
77
156
  clear: (filed?: string | string[] | undefined) => any;
78
157
  reset: (filed?: string | string[] | undefined) => any;
79
158
  submit: (results: import('@opensig/opendesign').FieldResultT[]) => any;
80
159
  validate: (results: import('@opensig/opendesign').FieldResultT[]) => any;
160
+ validateField: (payload: {
161
+ field: string;
162
+ isValid: boolean;
163
+ message: string;
164
+ }) => any;
81
165
  }, string, {
82
166
  layout: "h" | "v" | "inline";
167
+ disabled: boolean | undefined;
168
+ clearable: boolean | undefined;
83
169
  hasRequired: boolean;
170
+ requiredIcon: boolean;
171
+ labelWidth: string;
172
+ showMessage: boolean;
173
+ validateOnRuleChange: boolean;
174
+ scrollToError: boolean;
84
175
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
85
176
  beforeCreate?: (() => void) | (() => void)[];
86
177
  created?: (() => void) | (() => void)[];
@@ -103,37 +194,96 @@ declare const _default: import('vue').DefineComponent<MeetingFormPropsT, {
103
194
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
104
195
  } & Readonly<{
105
196
  layout: "h" | "v" | "inline";
197
+ disabled: boolean | undefined;
198
+ clearable: boolean | undefined;
106
199
  hasRequired: boolean;
200
+ requiredIcon: boolean;
201
+ labelWidth: string;
202
+ showMessage: boolean;
203
+ validateOnRuleChange: boolean;
204
+ scrollToError: boolean;
107
205
  }> & Omit<Readonly<import('vue').ExtractPropTypes<{
206
+ labelAlign: {
207
+ type: import('vue').PropType<"top" | "center" | "bottom">;
208
+ };
209
+ labelJustify: {
210
+ type: import('vue').PropType<"left" | "center" | "right">;
211
+ };
212
+ disabled: {
213
+ type: import('vue').PropType<boolean | undefined>;
214
+ default: undefined;
215
+ };
216
+ size: {
217
+ type: import('vue').PropType<import('@opensig/opendesign').SizeT>;
218
+ };
219
+ round: {
220
+ type: import('vue').PropType<import('@opensig/opendesign').RoundT>;
221
+ };
222
+ clearable: {
223
+ type: import('vue').PropType<boolean | undefined>;
224
+ default: undefined;
225
+ };
108
226
  model: {
109
227
  type: ObjectConstructor;
110
228
  };
229
+ rules: {
230
+ type: import('vue').PropType<import('@opensig/opendesign').FormRulesT>;
231
+ };
111
232
  hasRequired: {
112
233
  type: BooleanConstructor;
113
234
  default: boolean;
114
235
  };
236
+ requiredIcon: {
237
+ type: BooleanConstructor;
238
+ default: boolean;
239
+ };
115
240
  layout: {
116
241
  type: import('vue').PropType<"h" | "v" | "inline">;
117
242
  default: string;
118
243
  };
119
- labelAlign: {
120
- type: import('vue').PropType<"top" | "center" | "bottom">;
121
- };
122
- labelJustify: {
123
- type: import('vue').PropType<"left" | "center" | "right">;
124
- };
125
244
  labelWidth: {
126
245
  type: StringConstructor;
246
+ default: string;
247
+ };
248
+ showMessage: {
249
+ type: BooleanConstructor;
250
+ default: boolean;
251
+ };
252
+ validateOnRuleChange: {
253
+ type: BooleanConstructor;
254
+ default: boolean;
255
+ };
256
+ scrollToError: {
257
+ type: BooleanConstructor;
258
+ default: boolean;
127
259
  };
128
260
  }>> & Readonly<{
129
261
  onClear?: ((filed?: string | string[] | undefined) => any) | undefined;
130
262
  onReset?: ((filed?: string | string[] | undefined) => any) | undefined;
131
263
  onSubmit?: ((results: import('@opensig/opendesign').FieldResultT[]) => any) | undefined;
132
264
  onValidate?: ((results: import('@opensig/opendesign').FieldResultT[]) => any) | undefined;
133
- }>, "hasRequired" | "layout" | "validate" | "resetFields" | "clearValidate"> & {
134
- validate: (filed?: string | string[]) => Promise<import('@opensig/opendesign').FieldResultT[]>;
265
+ onValidateField?: ((payload: {
266
+ field: string;
267
+ isValid: boolean;
268
+ message: string;
269
+ }) => any) | undefined;
270
+ }>, "disabled" | "clearable" | "hasRequired" | "requiredIcon" | "layout" | "labelWidth" | "showMessage" | "validateOnRuleChange" | "scrollToError" | "validate" | "validateField" | "resetFields" | "setInitialValues" | "clearValidate" | "scrollToField"> & {
271
+ validate: (filed?: string | string[], trigger?: import('@opensig/opendesign').TriggerT) => Promise<{
272
+ type: "warning" | "danger" | "success" | "";
273
+ message: string[];
274
+ }[]>;
275
+ validateField: (field: string | string[], trigger?: import('@opensig/opendesign').TriggerT) => Promise<{
276
+ type: "warning" | "danger" | "success" | "";
277
+ message: string[];
278
+ }[]>;
135
279
  resetFields: (filed?: string | string[]) => void;
280
+ setInitialValues: (data: Record<string, any>) => void;
136
281
  clearValidate: (filed?: string | string[], onClear?: (filed: import('@opensig/opendesign').FiledInfoT) => void) => void;
282
+ scrollToField: (field: string, options?: boolean | {
283
+ behavior?: "auto" | "smooth" | "instant";
284
+ block?: "start" | "center" | "end" | "nearest";
285
+ inline?: "start" | "center" | "end" | "nearest";
286
+ }) => Promise<void>;
137
287
  } & {} & import('vue').ComponentCustomProperties & {} & {
138
288
  $slots: {
139
289
  default?(_: {}): any;
@@ -167,15 +167,19 @@ declare function __VLS_template(): {
167
167
  };
168
168
  }>> & Readonly<{
169
169
  onScroll?: ((event: Event) => any) | undefined;
170
- }>, "size" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollTo" | "scrollBy" | "getContainerEl"> & {
170
+ }>, "size" | "scrollTo" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollBy" | "getContainerEl"> & {
171
171
  scrollTo: (options?: ScrollToOptions | undefined) => void;
172
172
  scrollBy: (options?: ScrollToOptions | undefined) => void;
173
173
  getContainerEl: () => HTMLElement | null;
174
174
  } & {} & import('vue').ComponentCustomProperties & {} & {
175
- $slots: {
176
- default?(_: {}): any;
177
- thumb?(_: {}): any;
178
- track?(_: {}): any;
175
+ $slots: Readonly<{
176
+ default?(): any;
177
+ thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
178
+ track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
179
+ }> & {
180
+ default?(): any;
181
+ thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
182
+ track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
179
183
  };
180
184
  }) | null;
181
185
  };
@@ -346,15 +350,19 @@ declare const __VLS_component: import('vue').DefineComponent<MeetingMinutesProps
346
350
  };
347
351
  }>> & Readonly<{
348
352
  onScroll?: ((event: Event) => any) | undefined;
349
- }>, "size" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollTo" | "scrollBy" | "getContainerEl"> & {
353
+ }>, "size" | "scrollTo" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollBy" | "getContainerEl"> & {
350
354
  scrollTo: (options?: ScrollToOptions | undefined) => void;
351
355
  scrollBy: (options?: ScrollToOptions | undefined) => void;
352
356
  getContainerEl: () => HTMLElement | null;
353
357
  } & {} & import('vue').ComponentCustomProperties & {} & {
354
- $slots: {
355
- default?(_: {}): any;
356
- thumb?(_: {}): any;
357
- track?(_: {}): any;
358
+ $slots: Readonly<{
359
+ default?(): any;
360
+ thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
361
+ track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
362
+ }> & {
363
+ default?(): any;
364
+ thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
365
+ track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
358
366
  };
359
367
  }) | null;
360
368
  }, HTMLDivElement>;
@@ -307,15 +307,19 @@ declare function __VLS_template(): {
307
307
  };
308
308
  }>> & Readonly<{
309
309
  onScroll?: ((event: Event) => any) | undefined;
310
- }>, "size" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollTo" | "scrollBy" | "getContainerEl"> & {
310
+ }>, "size" | "scrollTo" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollBy" | "getContainerEl"> & {
311
311
  scrollTo: (options?: ScrollToOptions | undefined) => void;
312
312
  scrollBy: (options?: ScrollToOptions | undefined) => void;
313
313
  getContainerEl: () => HTMLElement | null;
314
314
  } & {} & import('vue').ComponentCustomProperties & {} & {
315
- $slots: {
316
- default?(_: {}): any;
317
- thumb?(_: {}): any;
318
- track?(_: {}): any;
315
+ $slots: Readonly<{
316
+ default?(): any;
317
+ thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
318
+ track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
319
+ }> & {
320
+ default?(): any;
321
+ thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
322
+ track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
319
323
  };
320
324
  }) | null;
321
325
  };
@@ -623,15 +627,19 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
623
627
  };
624
628
  }>> & Readonly<{
625
629
  onScroll?: ((event: Event) => any) | undefined;
626
- }>, "size" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollTo" | "scrollBy" | "getContainerEl"> & {
630
+ }>, "size" | "scrollTo" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollBy" | "getContainerEl"> & {
627
631
  scrollTo: (options?: ScrollToOptions | undefined) => void;
628
632
  scrollBy: (options?: ScrollToOptions | undefined) => void;
629
633
  getContainerEl: () => HTMLElement | null;
630
634
  } & {} & import('vue').ComponentCustomProperties & {} & {
631
- $slots: {
632
- default?(_: {}): any;
633
- thumb?(_: {}): any;
634
- track?(_: {}): any;
635
+ $slots: Readonly<{
636
+ default?(): any;
637
+ thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
638
+ track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
639
+ }> & {
640
+ default?(): any;
641
+ thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
642
+ track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
635
643
  };
636
644
  }) | null;
637
645
  }, HTMLDivElement>;