@ramathibodi/nuxt-commons 0.1.74 → 4.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/README.md +9 -2
- package/dist/module.json +4 -4
- package/dist/module.mjs +4 -4
- package/dist/runtime/bridges/authentication.d.ts +21 -0
- package/dist/runtime/bridges/authentication.js +20 -0
- package/dist/runtime/bridges/graphql.d.ts +17 -0
- package/dist/runtime/bridges/graphql.js +45 -0
- package/dist/runtime/components/Alert.d.vue.ts +3 -0
- package/dist/runtime/components/Alert.vue +17 -26
- package/dist/runtime/components/Alert.vue.d.ts +3 -0
- package/dist/runtime/components/BarcodeReader.d.vue.ts +9 -0
- package/dist/runtime/components/BarcodeReader.vue +56 -81
- package/dist/runtime/components/BarcodeReader.vue.d.ts +9 -0
- package/dist/runtime/components/ExportCSV.d.vue.ts +55 -0
- package/dist/runtime/components/ExportCSV.vue +39 -76
- package/dist/runtime/components/ExportCSV.vue.d.ts +55 -0
- package/dist/runtime/components/FileBtn.d.vue.ts +53 -0
- package/dist/runtime/components/FileBtn.vue +23 -50
- package/dist/runtime/components/FileBtn.vue.d.ts +53 -0
- package/dist/runtime/components/ImportCSV.d.vue.ts +52 -0
- package/dist/runtime/components/ImportCSV.vue +60 -111
- package/dist/runtime/components/ImportCSV.vue.d.ts +52 -0
- package/dist/runtime/components/MrzReader.d.vue.ts +19 -0
- package/dist/runtime/components/MrzReader.vue +69 -109
- package/dist/runtime/components/MrzReader.vue.d.ts +19 -0
- package/dist/runtime/components/SplitterPanel.d.vue.ts +15 -0
- package/dist/runtime/components/SplitterPanel.vue +18 -35
- package/dist/runtime/components/SplitterPanel.vue.d.ts +15 -0
- package/dist/runtime/components/TabsGroup.d.vue.ts +19 -0
- package/dist/runtime/components/TabsGroup.vue +8 -20
- package/dist/runtime/components/TabsGroup.vue.d.ts +19 -0
- package/dist/runtime/components/TextBarcode.d.vue.ts +12 -0
- package/dist/runtime/components/TextBarcode.vue +22 -45
- package/dist/runtime/components/TextBarcode.vue.d.ts +12 -0
- package/dist/runtime/components/device/IdCardButton.d.vue.ts +57 -0
- package/dist/runtime/components/device/IdCardButton.vue +30 -67
- package/dist/runtime/components/device/IdCardButton.vue.d.ts +57 -0
- package/dist/runtime/components/device/IdCardWebSocket.d.vue.ts +55 -0
- package/dist/runtime/components/device/IdCardWebSocket.vue +104 -165
- package/dist/runtime/components/device/IdCardWebSocket.vue.d.ts +55 -0
- package/dist/runtime/components/device/Scanner.d.vue.ts +66 -0
- package/dist/runtime/components/device/Scanner.vue +97 -178
- package/dist/runtime/components/device/Scanner.vue.d.ts +66 -0
- package/dist/runtime/components/dialog/Confirm.d.vue.ts +37 -0
- package/dist/runtime/components/dialog/Confirm.vue +30 -59
- package/dist/runtime/components/dialog/Confirm.vue.d.ts +37 -0
- package/dist/runtime/components/dialog/Host.d.vue.ts +9 -0
- package/dist/runtime/components/dialog/Host.vue +34 -57
- package/dist/runtime/components/dialog/Host.vue.d.ts +9 -0
- package/dist/runtime/components/dialog/Index.d.vue.ts +24 -0
- package/dist/runtime/components/dialog/Index.vue +20 -40
- package/dist/runtime/components/dialog/Index.vue.d.ts +24 -0
- package/dist/runtime/components/dialog/Loading.d.vue.ts +21 -0
- package/dist/runtime/components/dialog/Loading.vue +12 -29
- package/dist/runtime/components/dialog/Loading.vue.d.ts +21 -0
- package/dist/runtime/components/dialog/default/Confirm.d.vue.ts +40 -0
- package/dist/runtime/components/dialog/default/Confirm.vue +29 -62
- package/dist/runtime/components/dialog/default/Confirm.vue.d.ts +40 -0
- package/dist/runtime/components/dialog/default/Loading.d.vue.ts +23 -0
- package/dist/runtime/components/dialog/default/Loading.vue +12 -29
- package/dist/runtime/components/dialog/default/Loading.vue.d.ts +23 -0
- package/dist/runtime/components/dialog/default/Notify.d.vue.ts +23 -0
- package/dist/runtime/components/dialog/default/Notify.vue +19 -48
- package/dist/runtime/components/dialog/default/Notify.vue.d.ts +23 -0
- package/dist/runtime/components/dialog/default/Printing.d.vue.ts +21 -0
- package/dist/runtime/components/dialog/default/Printing.vue +13 -29
- package/dist/runtime/components/dialog/default/Printing.vue.d.ts +21 -0
- package/dist/runtime/components/dialog/default/VerifyUser.d.vue.ts +29 -0
- package/dist/runtime/components/dialog/default/VerifyUser.vue +44 -82
- package/dist/runtime/components/dialog/default/VerifyUser.vue.d.ts +29 -0
- package/dist/runtime/components/document/Form.d.vue.ts +9 -0
- package/dist/runtime/components/document/Form.vue +27 -42
- package/dist/runtime/components/document/Form.vue.d.ts +9 -0
- package/dist/runtime/components/document/TemplateBuilder.d.vue.ts +24 -0
- package/dist/runtime/components/document/TemplateBuilder.vue +154 -194
- package/dist/runtime/components/document/TemplateBuilder.vue.d.ts +24 -0
- package/dist/runtime/components/form/ActionPad.d.vue.ts +114 -0
- package/dist/runtime/components/form/ActionPad.vue +48 -85
- package/dist/runtime/components/form/ActionPad.vue.d.ts +114 -0
- package/dist/runtime/components/form/Birthdate.d.vue.ts +38 -0
- package/dist/runtime/components/form/Birthdate.vue +44 -76
- package/dist/runtime/components/form/Birthdate.vue.d.ts +38 -0
- package/dist/runtime/components/form/CheckboxGroup.d.vue.ts +41 -0
- package/dist/runtime/components/form/CheckboxGroup.vue +34 -64
- package/dist/runtime/components/form/CheckboxGroup.vue.d.ts +41 -0
- package/dist/runtime/components/form/CodeEditor.d.vue.ts +25 -0
- package/dist/runtime/components/form/CodeEditor.vue +18 -36
- package/dist/runtime/components/form/CodeEditor.vue.d.ts +25 -0
- package/dist/runtime/components/form/Date.d.vue.ts +86 -0
- package/dist/runtime/components/form/Date.vue +109 -162
- package/dist/runtime/components/form/Date.vue.d.ts +86 -0
- package/dist/runtime/components/form/DateTime.d.vue.ts +36 -0
- package/dist/runtime/components/form/DateTime.vue +94 -143
- package/dist/runtime/components/form/DateTime.vue.d.ts +36 -0
- package/dist/runtime/components/form/Dialog.d.vue.ts +69 -0
- package/dist/runtime/components/form/Dialog.vue +60 -96
- package/dist/runtime/components/form/Dialog.vue.d.ts +69 -0
- package/dist/runtime/components/form/EditPad.d.vue.ts +113 -0
- package/dist/runtime/components/form/EditPad.vue +49 -85
- package/dist/runtime/components/form/EditPad.vue.d.ts +113 -0
- package/dist/runtime/components/form/File.d.vue.ts +65 -0
- package/dist/runtime/components/form/File.vue +112 -186
- package/dist/runtime/components/form/File.vue.d.ts +65 -0
- package/dist/runtime/components/form/Hidden.d.vue.ts +12 -0
- package/dist/runtime/components/form/Hidden.vue +17 -34
- package/dist/runtime/components/form/Hidden.vue.d.ts +12 -0
- package/dist/runtime/components/form/Iterator.d.vue.ts +279 -0
- package/dist/runtime/components/form/Iterator.vue +162 -252
- package/dist/runtime/components/form/Iterator.vue.d.ts +279 -0
- package/dist/runtime/components/form/Login.d.vue.ts +32 -0
- package/dist/runtime/components/form/Login.vue +23 -55
- package/dist/runtime/components/form/Login.vue.d.ts +32 -0
- package/dist/runtime/components/form/Pad.d.vue.ts +674 -0
- package/dist/runtime/components/form/Pad.vue +166 -265
- package/dist/runtime/components/form/Pad.vue.d.ts +674 -0
- package/dist/runtime/components/form/SignPad.d.vue.ts +62 -0
- package/dist/runtime/components/form/SignPad.vue +80 -126
- package/dist/runtime/components/form/SignPad.vue.d.ts +62 -0
- package/dist/runtime/components/form/System.d.vue.ts +34 -0
- package/dist/runtime/components/form/System.vue +18 -32
- package/dist/runtime/components/form/System.vue.d.ts +34 -0
- package/dist/runtime/components/form/Table.d.vue.ts +221 -0
- package/dist/runtime/components/form/Table.vue +123 -182
- package/dist/runtime/components/form/Table.vue.d.ts +221 -0
- package/dist/runtime/components/form/TableData.d.vue.ts +102 -0
- package/dist/runtime/components/form/TableData.vue +109 -139
- package/dist/runtime/components/form/TableData.vue.d.ts +102 -0
- package/dist/runtime/components/form/Time.d.vue.ts +49 -0
- package/dist/runtime/components/form/Time.vue +64 -99
- package/dist/runtime/components/form/Time.vue.d.ts +49 -0
- package/dist/runtime/components/form/images/Capture.d.vue.ts +96 -0
- package/dist/runtime/components/form/images/Capture.vue +104 -147
- package/dist/runtime/components/form/images/Capture.vue.d.ts +96 -0
- package/dist/runtime/components/form/images/Edit.d.vue.ts +29 -0
- package/dist/runtime/components/form/images/Edit.vue +57 -81
- package/dist/runtime/components/form/images/Edit.vue.d.ts +29 -0
- package/dist/runtime/components/form/images/Field.d.vue.ts +27 -0
- package/dist/runtime/components/form/images/Field.vue +136 -205
- package/dist/runtime/components/form/images/Field.vue.d.ts +27 -0
- package/dist/runtime/components/form/images/Pad.d.vue.ts +13 -0
- package/dist/runtime/components/form/images/Pad.vue +23 -40
- package/dist/runtime/components/form/images/Pad.vue.d.ts +13 -0
- package/dist/runtime/components/label/Date.d.vue.ts +13 -0
- package/dist/runtime/components/label/Date.vue +13 -29
- package/dist/runtime/components/label/Date.vue.d.ts +13 -0
- package/dist/runtime/components/label/DateAgo.d.vue.ts +20 -0
- package/dist/runtime/components/label/DateAgo.vue +43 -75
- package/dist/runtime/components/label/DateAgo.vue.d.ts +20 -0
- package/dist/runtime/components/label/DateCount.d.vue.ts +22 -0
- package/dist/runtime/components/label/DateCount.vue +58 -105
- package/dist/runtime/components/label/DateCount.vue.d.ts +22 -0
- package/dist/runtime/components/label/Field.d.vue.ts +38 -0
- package/dist/runtime/components/label/Field.vue +18 -40
- package/dist/runtime/components/label/Field.vue.d.ts +38 -0
- package/dist/runtime/components/label/FormatMoney.d.vue.ts +12 -0
- package/dist/runtime/components/label/FormatMoney.vue +12 -28
- package/dist/runtime/components/label/FormatMoney.vue.d.ts +12 -0
- package/dist/runtime/components/label/Mask.d.vue.ts +10 -0
- package/dist/runtime/components/label/Mask.vue +21 -38
- package/dist/runtime/components/label/Mask.vue.d.ts +10 -0
- package/dist/runtime/components/label/Object.d.vue.ts +8 -0
- package/dist/runtime/components/label/Object.vue +10 -20
- package/dist/runtime/components/label/Object.vue.d.ts +8 -0
- package/dist/runtime/components/master/Autocomplete.d.vue.ts +70 -0
- package/dist/runtime/components/master/Autocomplete.vue +25 -34
- package/dist/runtime/components/master/Autocomplete.vue.d.ts +70 -0
- package/dist/runtime/components/master/Combobox.d.vue.ts +70 -0
- package/dist/runtime/components/master/Combobox.vue +26 -35
- package/dist/runtime/components/master/Combobox.vue.d.ts +70 -0
- package/dist/runtime/components/master/RadioGroup.d.vue.ts +51 -0
- package/dist/runtime/components/master/RadioGroup.vue +44 -59
- package/dist/runtime/components/master/RadioGroup.vue.d.ts +51 -0
- package/dist/runtime/components/master/Select.d.vue.ts +68 -0
- package/dist/runtime/components/master/Select.vue +25 -34
- package/dist/runtime/components/master/Select.vue.d.ts +68 -0
- package/dist/runtime/components/master/label.d.vue.ts +24 -0
- package/dist/runtime/components/master/label.vue +22 -42
- package/dist/runtime/components/master/label.vue.d.ts +24 -0
- package/dist/runtime/components/model/Autocomplete.d.vue.ts +82 -0
- package/dist/runtime/components/model/Autocomplete.vue +50 -49
- package/dist/runtime/components/model/Autocomplete.vue.d.ts +82 -0
- package/dist/runtime/components/model/Combobox.d.vue.ts +82 -0
- package/dist/runtime/components/model/Combobox.vue +51 -49
- package/dist/runtime/components/model/Combobox.vue.d.ts +82 -0
- package/dist/runtime/components/model/Pad.d.vue.ts +72 -0
- package/dist/runtime/components/model/Pad.vue +50 -65
- package/dist/runtime/components/model/Pad.vue.d.ts +72 -0
- package/dist/runtime/components/model/Select.d.vue.ts +72 -0
- package/dist/runtime/components/model/Select.vue +42 -44
- package/dist/runtime/components/model/Select.vue.d.ts +72 -0
- package/dist/runtime/components/model/Table.d.vue.ts +272 -0
- package/dist/runtime/components/model/Table.vue +121 -145
- package/dist/runtime/components/model/Table.vue.d.ts +272 -0
- package/dist/runtime/components/model/iterator.d.vue.ts +321 -0
- package/dist/runtime/components/model/iterator.vue +148 -183
- package/dist/runtime/components/model/iterator.vue.d.ts +321 -0
- package/dist/runtime/components/model/label.d.vue.ts +26 -0
- package/dist/runtime/components/model/label.vue +25 -43
- package/dist/runtime/components/model/label.vue.d.ts +26 -0
- package/dist/runtime/components/pdf/Print.d.vue.ts +17 -0
- package/dist/runtime/components/pdf/Print.vue +27 -50
- package/dist/runtime/components/pdf/Print.vue.d.ts +17 -0
- package/dist/runtime/components/pdf/View.d.vue.ts +52 -0
- package/dist/runtime/components/pdf/View.vue +58 -95
- package/dist/runtime/components/pdf/View.vue.d.ts +52 -0
- package/dist/runtime/composables/api.js +4 -2
- package/dist/runtime/composables/assetFile.js +4 -2
- package/dist/runtime/composables/dialog.d.ts +1 -1
- package/dist/runtime/composables/document/template.js +3 -3
- package/dist/runtime/composables/document/templateFormTable.js +1 -0
- package/dist/runtime/composables/graphql.d.ts +2 -2
- package/dist/runtime/composables/graphql.js +5 -5
- package/dist/runtime/composables/graphqlModel.d.ts +6 -6
- package/dist/runtime/composables/graphqlModelItem.d.ts +4 -4
- package/dist/runtime/composables/graphqlModelOperation.d.ts +6 -6
- package/dist/runtime/composables/graphqlModelOperation.js +2 -1
- package/dist/runtime/composables/graphqlOperation.js +5 -1
- package/dist/runtime/composables/hostAgentWs.d.ts +1 -1
- package/dist/runtime/composables/lookupListMaster.js +3 -3
- package/dist/runtime/composables/menu.js +2 -2
- package/dist/runtime/composables/userPermission.d.ts +1 -1
- package/dist/runtime/composables/utils/fuzzy.d.ts +2 -1
- package/dist/runtime/labs/Calendar.d.vue.ts +35 -0
- package/dist/runtime/labs/Calendar.vue +47 -75
- package/dist/runtime/labs/Calendar.vue.d.ts +35 -0
- package/dist/runtime/labs/form/EditMobile.d.vue.ts +12 -0
- package/dist/runtime/labs/form/EditMobile.vue +19 -36
- package/dist/runtime/labs/form/EditMobile.vue.d.ts +12 -0
- package/dist/runtime/labs/form/TextFieldMask.d.vue.ts +21 -0
- package/dist/runtime/labs/form/TextFieldMask.vue +19 -25
- package/dist/runtime/labs/form/TextFieldMask.vue.d.ts +21 -0
- package/dist/runtime/plugins/dialogManager.js +2 -2
- package/dist/runtime/plugins/permission.js +3 -3
- package/dist/runtime/types/bridge.d.ts +14 -0
- package/dist/runtime/utils/datetime.js +1 -1
- package/dist/types.d.mts +2 -6
- package/package.json +71 -58
- package/scripts/ci-release.mjs +125 -0
- package/scripts/release-version.mjs +68 -0
- package/scripts/release.mjs +49 -0
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -8
- package/dist/types.d.ts +0 -7
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue: number;
|
|
3
|
+
decimal?: number;
|
|
4
|
+
currency?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
7
|
+
modelValue: number;
|
|
8
|
+
decimal: number;
|
|
9
|
+
currency: string;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue: string;
|
|
3
|
+
variant?: 'mobilePhone' | 'homePhone' | 'citizenId' | 'creditCard';
|
|
4
|
+
hideContent?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
7
|
+
hideContent: boolean;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -1,44 +1,27 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
interface Props {
|
|
9
|
-
modelValue: string // Bound value for v-model synchronization with the parent component.
|
|
10
|
-
variant?: 'mobilePhone' | 'homePhone' | 'citizenId' | 'creditCard' // Mask pattern to apply to the displayed value.
|
|
11
|
-
hideContent?: boolean // Hides the middle part of the value for privacy.
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Public props accepted by LabelMask.
|
|
16
|
-
* Document each prop field with intent, defaults, and side effects for clear generated docs.
|
|
17
|
-
*/
|
|
18
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
19
|
-
hideContent: false,
|
|
20
|
-
})
|
|
21
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
modelValue: { type: String, required: true },
|
|
5
|
+
variant: { type: String, required: false },
|
|
6
|
+
hideContent: { type: Boolean, required: false, default: false }
|
|
7
|
+
});
|
|
22
8
|
const labelMask = computed(() => {
|
|
23
9
|
if (!props.hideContent) {
|
|
24
|
-
if (props.variant ==
|
|
25
|
-
if (props.variant ==
|
|
26
|
-
if (props.variant ==
|
|
27
|
-
if (props.variant ==
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if (props.variant ==
|
|
34
|
-
if (props.variant ==
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const middlePart = 'x'.repeat(props.modelValue.length - 6)
|
|
39
|
-
return `${props.modelValue.substring(0, 3)}${middlePart}${props.modelValue.slice(-3)}`
|
|
10
|
+
if (props.variant == "mobilePhone") return props.modelValue.length == 10 ? `${props.modelValue.substring(0, 3)}-${props.modelValue.substring(3, 6)}-${props.modelValue.substring(6, 10)}` : "invalid format";
|
|
11
|
+
if (props.variant == "homePhone") return props.modelValue.length == 9 ? `${props.modelValue.substring(0, 2)}-${props.modelValue.substring(2, 5)}-${props.modelValue.substring(5, 9)}` : "invalid format";
|
|
12
|
+
if (props.variant == "citizenId") return props.modelValue.length == 13 ? `${props.modelValue.substring(0, 1)}-${props.modelValue.substring(1, 5)}-${props.modelValue.substring(5, 10)}-${props.modelValue.substring(10, 12)}-${props.modelValue.substring(12, 13)}` : "invalid format";
|
|
13
|
+
if (props.variant == "creditCard") return props.modelValue.length == 16 ? `${props.modelValue.substring(0, 4)}-${props.modelValue.substring(4, 8)}-${props.modelValue.substring(8, 12)}-${props.modelValue.substring(12, 16)}` : "invalid format";
|
|
14
|
+
const middlePart = "x".repeat(props.modelValue.length - 6);
|
|
15
|
+
return `${props.modelValue.substring(0, 3)}${middlePart}${props.modelValue.slice(-3)}`;
|
|
16
|
+
} else {
|
|
17
|
+
if (props.variant == "mobilePhone") return props.modelValue.length == 10 ? `${props.modelValue.substring(0, 2)}x-xxx-${props.modelValue.substring(6, 10)}` : "invalid format";
|
|
18
|
+
if (props.variant == "homePhone") return props.modelValue.length == 9 ? `${props.modelValue.substring(0, 2)}-xxx-${props.modelValue.substring(5, 9)}` : "invalid format";
|
|
19
|
+
if (props.variant == "citizenId") return props.modelValue.length == 13 ? `${props.modelValue.substring(0, 1)}-xxxx-xxxxx-${props.modelValue.substring(10, 12)}-${props.modelValue.substring(12, 13)}` : "invalid format";
|
|
20
|
+
if (props.variant == "creditCard") return props.modelValue.length == 16 ? `xxxx-xxxx-xxxx-${props.modelValue.substring(12, 16)}` : "invalid format";
|
|
21
|
+
const middlePart = "x".repeat(props.modelValue.length - 6);
|
|
22
|
+
return `${props.modelValue.substring(0, 3)}${middlePart}${props.modelValue.slice(-3)}`;
|
|
40
23
|
}
|
|
41
|
-
})
|
|
24
|
+
});
|
|
42
25
|
</script>
|
|
43
26
|
|
|
44
27
|
<template>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue: string;
|
|
3
|
+
variant?: 'mobilePhone' | 'homePhone' | 'citizenId' | 'creditCard';
|
|
4
|
+
hideContent?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
7
|
+
hideContent: boolean;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
object: any;
|
|
3
|
+
attribute?: string;
|
|
4
|
+
separator?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
interface Props {
|
|
9
|
-
object: any, // Source object used to resolve and render selected attributes.
|
|
10
|
-
attribute?: string, // Object key(s) to extract for display from the source object.
|
|
11
|
-
separator?: string, // Separator used when joining multiple extracted values.
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Public props accepted by LabelObject.
|
|
15
|
-
* Document each prop field with intent, defaults, and side effects for clear generated docs.
|
|
16
|
-
*/
|
|
17
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
18
|
-
})
|
|
1
|
+
<script setup>
|
|
2
|
+
import { joinObject } from "../../utils/formatter";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
object: { type: null, required: true },
|
|
5
|
+
attribute: { type: String, required: false },
|
|
6
|
+
separator: { type: String, required: false }
|
|
7
|
+
});
|
|
19
8
|
</script>
|
|
9
|
+
|
|
20
10
|
<template>
|
|
21
|
-
<span>{{joinObject(object,attribute,separator)}}</span>
|
|
22
|
-
</template>
|
|
11
|
+
<span>{{joinObject(object, attribute, separator)}}</span>
|
|
12
|
+
</template>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
object: any;
|
|
3
|
+
attribute?: string;
|
|
4
|
+
separator?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MasterAutocomplete renders master-data driven option controls and synchronizes selected values with form models.
|
|
3
|
+
* This doc block is consumed by vue-docgen for generated API documentation.
|
|
4
|
+
*/
|
|
5
|
+
import { VAutocomplete } from 'vuetify/components/VAutocomplete';
|
|
6
|
+
import { type MasterLikeProps } from '../../composables/lookupListMaster.js';
|
|
7
|
+
interface Props extends /* @vue-ignore */ InstanceType<typeof VAutocomplete['$props']> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Public props accepted by MasterAutocomplete.
|
|
11
|
+
* Document each prop field with intent, defaults, and side effects for clear generated docs.
|
|
12
|
+
*/
|
|
13
|
+
type __VLS_Props = Props & MasterLikeProps;
|
|
14
|
+
declare var __VLS_10: never, __VLS_11: {
|
|
15
|
+
operation: string;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
21
|
+
sortBy: string;
|
|
22
|
+
showCode: boolean;
|
|
23
|
+
lang: string;
|
|
24
|
+
noDataText: string;
|
|
25
|
+
waitForFilter: boolean;
|
|
26
|
+
meilisearch: boolean;
|
|
27
|
+
cache: boolean;
|
|
28
|
+
statusField: string;
|
|
29
|
+
activeValue: string;
|
|
30
|
+
hideInactiveInList: boolean;
|
|
31
|
+
preventSelectingInactive: boolean;
|
|
32
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
33
|
+
sortBy: string;
|
|
34
|
+
showCode: boolean;
|
|
35
|
+
lang: string;
|
|
36
|
+
noDataText: string;
|
|
37
|
+
waitForFilter: boolean;
|
|
38
|
+
meilisearch: boolean;
|
|
39
|
+
cache: boolean;
|
|
40
|
+
statusField: string;
|
|
41
|
+
activeValue: string;
|
|
42
|
+
hideInactiveInList: boolean;
|
|
43
|
+
preventSelectingInactive: boolean;
|
|
44
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_TypePropsToOption<T> = {
|
|
49
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
51
|
+
} : {
|
|
52
|
+
type: import('vue').PropType<T[K]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type __VLS_WithDefaults<P, D> = {
|
|
57
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
58
|
+
default: D[K];
|
|
59
|
+
}> : P[K];
|
|
60
|
+
};
|
|
61
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
67
|
+
[K in keyof T]: T[K];
|
|
68
|
+
} : {
|
|
69
|
+
[K in keyof T as K]: T[K];
|
|
70
|
+
}) & {};
|
|
@@ -1,33 +1,24 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
meilisearch: false, // Enables Meilisearch-backed server filtering for options.
|
|
23
|
-
cache: false, // Enables cached requests; number values represent cache TTL in milliseconds.
|
|
24
|
-
|
|
25
|
-
statusField: 'statusCode', // Field name that indicates active/inactive status in each item.
|
|
26
|
-
activeValue: 'active', // Value in statusField treated as active/selectable.
|
|
27
|
-
hideInactiveInList: true, // Hides inactive options from the displayed selection list.
|
|
28
|
-
preventSelectingInactive: true, // Blocks selecting inactive options even if present in the dataset.
|
|
29
|
-
})
|
|
30
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { VAutocomplete } from "vuetify/components/VAutocomplete";
|
|
3
|
+
import { useLookupListMaster } from "../../composables/lookupListMaster";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
meilisearch: { type: Boolean, required: false, default: false },
|
|
6
|
+
sortBy: { type: String, required: false, default: "itemValue" },
|
|
7
|
+
showCode: { type: Boolean, required: false, default: false },
|
|
8
|
+
groupKey: { type: String, required: true },
|
|
9
|
+
itemCodes: { type: Array, required: false },
|
|
10
|
+
lang: { type: String, required: false, default: "TH" },
|
|
11
|
+
fields: { type: Array, required: false },
|
|
12
|
+
noDataText: { type: String, required: false, default: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25" },
|
|
13
|
+
filterText: { type: String, required: false },
|
|
14
|
+
waitForFilter: { type: Boolean, required: false, default: false },
|
|
15
|
+
waitForFilterText: { type: String, required: false },
|
|
16
|
+
cache: { type: [Boolean, Number], required: false, default: false },
|
|
17
|
+
statusField: { type: String, required: false, default: "statusCode" },
|
|
18
|
+
activeValue: { type: null, required: false, default: "active" },
|
|
19
|
+
hideInactiveInList: { type: Boolean, required: false, default: true },
|
|
20
|
+
preventSelectingInactive: { type: Boolean, required: false, default: true }
|
|
21
|
+
});
|
|
31
22
|
const {
|
|
32
23
|
computedModelName,
|
|
33
24
|
computedModelBy,
|
|
@@ -36,8 +27,8 @@ const {
|
|
|
36
27
|
itemTitleField,
|
|
37
28
|
computedNoDataText,
|
|
38
29
|
computedSortBy,
|
|
39
|
-
formatItemTitle
|
|
40
|
-
} = useLookupListMaster(props)
|
|
30
|
+
formatItemTitle
|
|
31
|
+
} = useLookupListMaster(props);
|
|
41
32
|
</script>
|
|
42
33
|
|
|
43
34
|
<template>
|
|
@@ -64,8 +55,8 @@ const {
|
|
|
64
55
|
>
|
|
65
56
|
<!-- pass-through slots -->
|
|
66
57
|
<!-- @ts-ignore -->
|
|
67
|
-
<template v-for="(_, name, index) in
|
|
68
|
-
<slot :name="name" v-bind="
|
|
58
|
+
<template v-for="(_, name, index) in $slots" :key="index" #[name]="slotData">
|
|
59
|
+
<slot :name="name" v-bind="slotData || {}" :operation="computedModelName" />
|
|
69
60
|
</template>
|
|
70
61
|
|
|
71
62
|
<template v-if="!$slots.item && !props.meilisearch" #item="{ props: itemProps, item }">
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MasterAutocomplete renders master-data driven option controls and synchronizes selected values with form models.
|
|
3
|
+
* This doc block is consumed by vue-docgen for generated API documentation.
|
|
4
|
+
*/
|
|
5
|
+
import { VAutocomplete } from 'vuetify/components/VAutocomplete';
|
|
6
|
+
import { type MasterLikeProps } from '../../composables/lookupListMaster.js';
|
|
7
|
+
interface Props extends /* @vue-ignore */ InstanceType<typeof VAutocomplete['$props']> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Public props accepted by MasterAutocomplete.
|
|
11
|
+
* Document each prop field with intent, defaults, and side effects for clear generated docs.
|
|
12
|
+
*/
|
|
13
|
+
type __VLS_Props = Props & MasterLikeProps;
|
|
14
|
+
declare var __VLS_10: never, __VLS_11: {
|
|
15
|
+
operation: string;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
21
|
+
sortBy: string;
|
|
22
|
+
showCode: boolean;
|
|
23
|
+
lang: string;
|
|
24
|
+
noDataText: string;
|
|
25
|
+
waitForFilter: boolean;
|
|
26
|
+
meilisearch: boolean;
|
|
27
|
+
cache: boolean;
|
|
28
|
+
statusField: string;
|
|
29
|
+
activeValue: string;
|
|
30
|
+
hideInactiveInList: boolean;
|
|
31
|
+
preventSelectingInactive: boolean;
|
|
32
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
33
|
+
sortBy: string;
|
|
34
|
+
showCode: boolean;
|
|
35
|
+
lang: string;
|
|
36
|
+
noDataText: string;
|
|
37
|
+
waitForFilter: boolean;
|
|
38
|
+
meilisearch: boolean;
|
|
39
|
+
cache: boolean;
|
|
40
|
+
statusField: string;
|
|
41
|
+
activeValue: string;
|
|
42
|
+
hideInactiveInList: boolean;
|
|
43
|
+
preventSelectingInactive: boolean;
|
|
44
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_TypePropsToOption<T> = {
|
|
49
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
51
|
+
} : {
|
|
52
|
+
type: import('vue').PropType<T[K]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type __VLS_WithDefaults<P, D> = {
|
|
57
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
58
|
+
default: D[K];
|
|
59
|
+
}> : P[K];
|
|
60
|
+
};
|
|
61
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
67
|
+
[K in keyof T]: T[K];
|
|
68
|
+
} : {
|
|
69
|
+
[K in keyof T as K]: T[K];
|
|
70
|
+
}) & {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MasterCombobox renders master-data driven option controls and synchronizes selected values with form models.
|
|
3
|
+
* This doc block is consumed by vue-docgen for generated API documentation.
|
|
4
|
+
*/
|
|
5
|
+
import { VCombobox } from 'vuetify/components/VCombobox';
|
|
6
|
+
import { type MasterLikeProps } from '../../composables/lookupListMaster.js';
|
|
7
|
+
interface Props extends /* @vue-ignore */ InstanceType<typeof VCombobox['$props']> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Public props accepted by MasterCombobox.
|
|
11
|
+
* Document each prop field with intent, defaults, and side effects for clear generated docs.
|
|
12
|
+
*/
|
|
13
|
+
type __VLS_Props = Props & MasterLikeProps;
|
|
14
|
+
declare var __VLS_10: never, __VLS_11: {
|
|
15
|
+
operation: string;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
21
|
+
sortBy: string;
|
|
22
|
+
showCode: boolean;
|
|
23
|
+
lang: string;
|
|
24
|
+
noDataText: string;
|
|
25
|
+
waitForFilter: boolean;
|
|
26
|
+
meilisearch: boolean;
|
|
27
|
+
cache: boolean;
|
|
28
|
+
statusField: string;
|
|
29
|
+
activeValue: string;
|
|
30
|
+
hideInactiveInList: boolean;
|
|
31
|
+
preventSelectingInactive: boolean;
|
|
32
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
33
|
+
sortBy: string;
|
|
34
|
+
showCode: boolean;
|
|
35
|
+
lang: string;
|
|
36
|
+
noDataText: string;
|
|
37
|
+
waitForFilter: boolean;
|
|
38
|
+
meilisearch: boolean;
|
|
39
|
+
cache: boolean;
|
|
40
|
+
statusField: string;
|
|
41
|
+
activeValue: string;
|
|
42
|
+
hideInactiveInList: boolean;
|
|
43
|
+
preventSelectingInactive: boolean;
|
|
44
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_TypePropsToOption<T> = {
|
|
49
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
51
|
+
} : {
|
|
52
|
+
type: import('vue').PropType<T[K]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type __VLS_WithDefaults<P, D> = {
|
|
57
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
58
|
+
default: D[K];
|
|
59
|
+
}> : P[K];
|
|
60
|
+
};
|
|
61
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
67
|
+
[K in keyof T]: T[K];
|
|
68
|
+
} : {
|
|
69
|
+
[K in keyof T as K]: T[K];
|
|
70
|
+
}) & {};
|
|
@@ -1,33 +1,24 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
meilisearch: false, // Enables Meilisearch-backed server filtering for options.
|
|
23
|
-
cache: false, // Enables cached requests; number values represent cache TTL in milliseconds.
|
|
24
|
-
|
|
25
|
-
statusField: 'statusCode', // Field name that indicates active/inactive status in each item.
|
|
26
|
-
activeValue: 'active', // Value in statusField treated as active/selectable.
|
|
27
|
-
hideInactiveInList: true, // Hides inactive options from the displayed selection list.
|
|
28
|
-
preventSelectingInactive: true, // Blocks selecting inactive options even if present in the dataset.
|
|
29
|
-
})
|
|
30
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { VCombobox } from "vuetify/components/VCombobox";
|
|
3
|
+
import { useLookupListMaster } from "../../composables/lookupListMaster";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
meilisearch: { type: Boolean, required: false, default: false },
|
|
6
|
+
sortBy: { type: String, required: false, default: "itemValue" },
|
|
7
|
+
showCode: { type: Boolean, required: false, default: false },
|
|
8
|
+
groupKey: { type: String, required: true },
|
|
9
|
+
itemCodes: { type: Array, required: false },
|
|
10
|
+
lang: { type: String, required: false, default: "TH" },
|
|
11
|
+
fields: { type: Array, required: false },
|
|
12
|
+
noDataText: { type: String, required: false, default: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25" },
|
|
13
|
+
filterText: { type: String, required: false },
|
|
14
|
+
waitForFilter: { type: Boolean, required: false, default: false },
|
|
15
|
+
waitForFilterText: { type: String, required: false },
|
|
16
|
+
cache: { type: [Boolean, Number], required: false, default: false },
|
|
17
|
+
statusField: { type: String, required: false, default: "statusCode" },
|
|
18
|
+
activeValue: { type: null, required: false, default: "active" },
|
|
19
|
+
hideInactiveInList: { type: Boolean, required: false, default: true },
|
|
20
|
+
preventSelectingInactive: { type: Boolean, required: false, default: true }
|
|
21
|
+
});
|
|
31
22
|
const {
|
|
32
23
|
computedModelName,
|
|
33
24
|
computedModelBy,
|
|
@@ -36,8 +27,8 @@ const {
|
|
|
36
27
|
itemTitleField,
|
|
37
28
|
computedNoDataText,
|
|
38
29
|
computedSortBy,
|
|
39
|
-
formatItemTitle
|
|
40
|
-
} = useLookupListMaster(props)
|
|
30
|
+
formatItemTitle
|
|
31
|
+
} = useLookupListMaster(props);
|
|
41
32
|
</script>
|
|
42
33
|
|
|
43
34
|
<template>
|
|
@@ -64,8 +55,8 @@ const {
|
|
|
64
55
|
>
|
|
65
56
|
<!-- pass-through slots -->
|
|
66
57
|
<!-- @ts-ignore -->
|
|
67
|
-
<template v-for="(_, name, index) in
|
|
68
|
-
<slot :name="name" v-bind="
|
|
58
|
+
<template v-for="(_, name, index) in $slots" :key="index" #[name]="slotData">
|
|
59
|
+
<slot :name="name" v-bind="slotData || {}" :operation="computedModelName" />
|
|
69
60
|
</template>
|
|
70
61
|
|
|
71
62
|
<template v-if="!$slots.item && !props.meilisearch" #item="{ props: itemProps, item }">
|
|
@@ -88,4 +79,4 @@ const {
|
|
|
88
79
|
|
|
89
80
|
<style>
|
|
90
81
|
.meilisearch-item em{font-weight:700}
|
|
91
|
-
</style>
|
|
82
|
+
</style>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MasterCombobox renders master-data driven option controls and synchronizes selected values with form models.
|
|
3
|
+
* This doc block is consumed by vue-docgen for generated API documentation.
|
|
4
|
+
*/
|
|
5
|
+
import { VCombobox } from 'vuetify/components/VCombobox';
|
|
6
|
+
import { type MasterLikeProps } from '../../composables/lookupListMaster.js';
|
|
7
|
+
interface Props extends /* @vue-ignore */ InstanceType<typeof VCombobox['$props']> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Public props accepted by MasterCombobox.
|
|
11
|
+
* Document each prop field with intent, defaults, and side effects for clear generated docs.
|
|
12
|
+
*/
|
|
13
|
+
type __VLS_Props = Props & MasterLikeProps;
|
|
14
|
+
declare var __VLS_10: never, __VLS_11: {
|
|
15
|
+
operation: string;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
21
|
+
sortBy: string;
|
|
22
|
+
showCode: boolean;
|
|
23
|
+
lang: string;
|
|
24
|
+
noDataText: string;
|
|
25
|
+
waitForFilter: boolean;
|
|
26
|
+
meilisearch: boolean;
|
|
27
|
+
cache: boolean;
|
|
28
|
+
statusField: string;
|
|
29
|
+
activeValue: string;
|
|
30
|
+
hideInactiveInList: boolean;
|
|
31
|
+
preventSelectingInactive: boolean;
|
|
32
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
33
|
+
sortBy: string;
|
|
34
|
+
showCode: boolean;
|
|
35
|
+
lang: string;
|
|
36
|
+
noDataText: string;
|
|
37
|
+
waitForFilter: boolean;
|
|
38
|
+
meilisearch: boolean;
|
|
39
|
+
cache: boolean;
|
|
40
|
+
statusField: string;
|
|
41
|
+
activeValue: string;
|
|
42
|
+
hideInactiveInList: boolean;
|
|
43
|
+
preventSelectingInactive: boolean;
|
|
44
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_TypePropsToOption<T> = {
|
|
49
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
51
|
+
} : {
|
|
52
|
+
type: import('vue').PropType<T[K]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type __VLS_WithDefaults<P, D> = {
|
|
57
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
58
|
+
default: D[K];
|
|
59
|
+
}> : P[K];
|
|
60
|
+
};
|
|
61
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
67
|
+
[K in keyof T]: T[K];
|
|
68
|
+
} : {
|
|
69
|
+
[K in keyof T as K]: T[K];
|
|
70
|
+
}) & {};
|