@ramathibodi/nuxt-commons 4.0.19 → 4.0.21

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 (48) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/device/IdCardButton.d.vue.ts +2 -2
  3. package/dist/runtime/components/device/IdCardButton.vue.d.ts +2 -2
  4. package/dist/runtime/components/dialog/Confirm.d.vue.ts +1 -1
  5. package/dist/runtime/components/dialog/Confirm.vue.d.ts +1 -1
  6. package/dist/runtime/components/dialog/ImportResult.d.vue.ts +2 -2
  7. package/dist/runtime/components/dialog/ImportResult.vue.d.ts +2 -2
  8. package/dist/runtime/components/dialog/default/Confirm.d.vue.ts +2 -2
  9. package/dist/runtime/components/dialog/default/Confirm.vue.d.ts +2 -2
  10. package/dist/runtime/components/dialog/default/Notify.d.vue.ts +3 -3
  11. package/dist/runtime/components/dialog/default/Notify.vue.d.ts +3 -3
  12. package/dist/runtime/components/dialog/default/VerifyUser.d.vue.ts +2 -2
  13. package/dist/runtime/components/dialog/default/VerifyUser.vue.d.ts +2 -2
  14. package/dist/runtime/components/document/TemplateBuilder.d.vue.ts +7 -1
  15. package/dist/runtime/components/document/TemplateBuilder.vue +7 -461
  16. package/dist/runtime/components/document/TemplateBuilder.vue.d.ts +7 -1
  17. package/dist/runtime/components/document/TemplateBuilderLiveView.d.vue.ts +185 -0
  18. package/dist/runtime/components/document/TemplateBuilderLiveView.vue +579 -0
  19. package/dist/runtime/components/document/TemplateBuilderLiveView.vue.d.ts +185 -0
  20. package/dist/runtime/components/document/TemplateItemForm.d.vue.ts +11 -0
  21. package/dist/runtime/components/document/TemplateItemForm.vue +437 -0
  22. package/dist/runtime/components/document/TemplateItemForm.vue.d.ts +11 -0
  23. package/dist/runtime/components/document/TemplatePalette.d.vue.ts +54 -0
  24. package/dist/runtime/components/document/TemplatePalette.vue +362 -0
  25. package/dist/runtime/components/document/TemplatePalette.vue.d.ts +54 -0
  26. package/dist/runtime/components/form/DateTime.d.vue.ts +1 -1
  27. package/dist/runtime/components/form/DateTime.vue.d.ts +1 -1
  28. package/dist/runtime/components/form/Login.d.vue.ts +1 -1
  29. package/dist/runtime/components/form/Login.vue.d.ts +1 -1
  30. package/dist/runtime/components/form/Pad.d.vue.ts +1 -1
  31. package/dist/runtime/components/form/Pad.vue +1 -1
  32. package/dist/runtime/components/form/Pad.vue.d.ts +1 -1
  33. package/dist/runtime/components/form/Time.vue +1 -2
  34. package/dist/runtime/components/form/images/Capture.d.vue.ts +1 -1
  35. package/dist/runtime/components/form/images/Capture.vue.d.ts +1 -1
  36. package/dist/runtime/components/label/Field.d.vue.ts +2 -2
  37. package/dist/runtime/components/label/Field.vue.d.ts +2 -2
  38. package/dist/runtime/composables/document/template.d.ts +72 -1
  39. package/dist/runtime/composables/document/template.js +47 -8
  40. package/dist/runtime/composables/document/templateBuilderModel.d.ts +51 -0
  41. package/dist/runtime/composables/document/templateBuilderModel.js +62 -0
  42. package/dist/runtime/composables/document/templateFormHidden.js +3 -1
  43. package/dist/runtime/composables/document/templatePalette.d.ts +21 -0
  44. package/dist/runtime/composables/document/templatePalette.js +10 -0
  45. package/dist/runtime/composables/document/validateTemplate.js +61 -2
  46. package/dist/runtime/labs/Calendar.d.vue.ts +4 -4
  47. package/dist/runtime/labs/Calendar.vue.d.ts +4 -4
  48. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^4.3.1"
6
6
  },
7
- "version": "4.0.19",
7
+ "version": "4.0.21",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -17,16 +17,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
17
17
  reader: null;
18
18
  disableWhileLoading: boolean;
19
19
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
- loading: (loading: boolean) => any;
21
20
  error: (err: unknown) => any;
21
+ loading: (loading: boolean) => any;
22
22
  read: (payload: PatientRegisterPayload) => any;
23
23
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
24
24
  withPhoto: boolean;
25
25
  reader: null;
26
26
  disableWhileLoading: boolean;
27
27
  }>>> & Readonly<{
28
- onLoading?: ((loading: boolean) => any) | undefined;
29
28
  onError?: ((err: unknown) => any) | undefined;
29
+ onLoading?: ((loading: boolean) => any) | undefined;
30
30
  onRead?: ((payload: PatientRegisterPayload) => any) | undefined;
31
31
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
32
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -17,16 +17,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
17
17
  reader: null;
18
18
  disableWhileLoading: boolean;
19
19
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
- loading: (loading: boolean) => any;
21
20
  error: (err: unknown) => any;
21
+ loading: (loading: boolean) => any;
22
22
  read: (payload: PatientRegisterPayload) => any;
23
23
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
24
24
  withPhoto: boolean;
25
25
  reader: null;
26
26
  disableWhileLoading: boolean;
27
27
  }>>> & Readonly<{
28
- onLoading?: ((loading: boolean) => any) | undefined;
29
28
  onError?: ((err: unknown) => any) | undefined;
29
+ onLoading?: ((loading: boolean) => any) | undefined;
30
30
  onRead?: ((payload: PatientRegisterPayload) => any) | undefined;
31
31
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
32
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,9 +21,9 @@ declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {},
21
21
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
22
22
  "onUpdate:result"?: ((value: boolean) => any) | undefined;
23
23
  }>, {
24
- title: string;
25
24
  message: string;
26
25
  width: string;
26
+ title: string;
27
27
  buttonTrueText: string;
28
28
  buttonFalseText: string;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -21,9 +21,9 @@ declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {},
21
21
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
22
22
  "onUpdate:result"?: ((value: boolean) => any) | undefined;
23
23
  }>, {
24
- title: string;
25
24
  message: string;
26
25
  width: string;
26
+ title: string;
27
27
  buttonTrueText: string;
28
28
  buttonFalseText: string;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -14,12 +14,12 @@ interface DialogImportResultProps {
14
14
  }
15
15
  declare const __VLS_export: import("vue").DefineComponent<DialogImportResultProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
16
  "update:modelValue": (value: boolean) => any;
17
- "retry-all": () => any;
18
17
  retry: (index: number) => any;
18
+ "retry-all": () => any;
19
19
  }, string, import("vue").PublicProps, Readonly<DialogImportResultProps> & Readonly<{
20
20
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
21
- "onRetry-all"?: (() => any) | undefined;
22
21
  onRetry?: ((index: number) => any) | undefined;
22
+ "onRetry-all"?: (() => any) | undefined;
23
23
  }>, {
24
24
  title: string;
25
25
  isImporting: boolean;
@@ -14,12 +14,12 @@ interface DialogImportResultProps {
14
14
  }
15
15
  declare const __VLS_export: import("vue").DefineComponent<DialogImportResultProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
16
  "update:modelValue": (value: boolean) => any;
17
- "retry-all": () => any;
18
17
  retry: (index: number) => any;
18
+ "retry-all": () => any;
19
19
  }, string, import("vue").PublicProps, Readonly<DialogImportResultProps> & Readonly<{
20
20
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
21
- "onRetry-all"?: (() => any) | undefined;
22
21
  onRetry?: ((index: number) => any) | undefined;
22
+ "onRetry-all"?: (() => any) | undefined;
23
23
  }>, {
24
24
  title: string;
25
25
  isImporting: boolean;
@@ -23,10 +23,10 @@ declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {},
23
23
  onResolve?: ((value: boolean) => any) | undefined;
24
24
  onReject?: ((value: any) => any) | undefined;
25
25
  }>, {
26
- title: string;
27
- type: "primary" | "success" | "warning" | "info" | "error";
28
26
  message: string;
29
27
  width: string;
28
+ title: string;
29
+ type: "primary" | "success" | "warning" | "info" | "error";
30
30
  buttonTrueText: string;
31
31
  buttonFalseText: string;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -23,10 +23,10 @@ declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {},
23
23
  onResolve?: ((value: boolean) => any) | undefined;
24
24
  onReject?: ((value: any) => any) | undefined;
25
25
  }>, {
26
- title: string;
27
- type: "primary" | "success" | "warning" | "info" | "error";
28
26
  message: string;
29
27
  width: string;
28
+ title: string;
29
+ type: "primary" | "success" | "warning" | "info" | "error";
30
30
  buttonTrueText: string;
31
31
  buttonFalseText: string;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -13,11 +13,11 @@ declare const __VLS_export: import("vue").DefineComponent<DialogProps, {}, {}, {
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
14
  onResolve?: ((value: boolean) => any) | undefined;
15
15
  }>, {
16
- title: string;
17
- buttonText: string;
18
- type: "primary" | "success" | "warning" | "info" | "error";
19
16
  message: string;
20
17
  width: string;
18
+ title: string;
19
+ type: "primary" | "success" | "warning" | "info" | "error";
20
+ buttonText: string;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
23
23
  export default _default;
@@ -13,11 +13,11 @@ declare const __VLS_export: import("vue").DefineComponent<DialogProps, {}, {}, {
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
14
  onResolve?: ((value: boolean) => any) | undefined;
15
15
  }>, {
16
- title: string;
17
- buttonText: string;
18
- type: "primary" | "success" | "warning" | "info" | "error";
19
16
  message: string;
20
17
  width: string;
18
+ title: string;
19
+ type: "primary" | "success" | "warning" | "info" | "error";
20
+ buttonText: string;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
23
23
  export default _default;
@@ -17,10 +17,10 @@ declare const __VLS_export: import("vue").DefineComponent<DialogProps, {}, {}, {
17
17
  onResolve?: ((value: string) => any) | undefined;
18
18
  onReject?: ((value: any) => any) | undefined;
19
19
  }>, {
20
- title: string;
21
- type: "primary" | "success" | "warning" | "info" | "error";
22
20
  message: string;
23
21
  width: string;
22
+ title: string;
23
+ type: "primary" | "success" | "warning" | "info" | "error";
24
24
  confirmButtonText: string;
25
25
  cancelButtonText: string;
26
26
  fixedUsername: boolean | string;
@@ -17,10 +17,10 @@ declare const __VLS_export: import("vue").DefineComponent<DialogProps, {}, {}, {
17
17
  onResolve?: ((value: string) => any) | undefined;
18
18
  onReject?: ((value: any) => any) | undefined;
19
19
  }>, {
20
- title: string;
21
- type: "primary" | "success" | "warning" | "info" | "error";
22
20
  message: string;
23
21
  width: string;
22
+ title: string;
23
+ type: "primary" | "success" | "warning" | "info" | "error";
24
24
  confirmButtonText: string;
25
25
  cancelButtonText: string;
26
26
  fixedUsername: boolean | string;
@@ -1,6 +1,7 @@
1
1
  import 'vue-json-pretty/lib/styles.css';
2
2
  interface Props {
3
3
  title?: string;
4
+ customCode?: boolean;
4
5
  disableAdvanceMode?: boolean;
5
6
  }
6
7
  /**
@@ -10,7 +11,11 @@ interface Props {
10
11
  * `registerDocumentTemplateInputType()` from a Nuxt plugin (app-wide) or
11
12
  * `useDocumentTemplateInputType()` inside `<script setup>` of a page
12
13
  * (page-scoped, auto-cleanup on unmount). Both flow through the same
13
- * runtime registry that this component reads via `useDocumentTemplateInputTypes()`.
14
+ * runtime registry that the item form reads via `useDocumentTemplateInputTypes()`.
15
+ *
16
+ * The per-item editor is `<DocumentTemplateItemForm>`, shared with
17
+ * `<DocumentTemplateBuilderLiveView>` (a design-surface variant of this
18
+ * builder that renders the template through FormPad as you edit).
14
19
  */
15
20
  type __VLS_Props = Props;
16
21
  type __VLS_ModelProps = {
@@ -23,6 +28,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
23
28
  "onUpdate:modelValue"?: ((value: string | Record<string, any>[] | undefined) => any) | undefined;
24
29
  }>, {
25
30
  title: string;
31
+ customCode: boolean;
26
32
  disableAdvanceMode: boolean;
27
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
34
  declare const _default: typeof __VLS_export;