@bagelink/vue 0.0.22 → 0.0.32
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/package.json +32 -9
- package/src/components/Btn.vue +221 -0
- package/src/components/Comments.vue +265 -0
- package/src/components/ContactArray.vue +127 -0
- package/src/components/ContactSubmissions.vue +42 -0
- package/src/components/DataPreview.vue +72 -0
- package/src/components/DropDown.vue +122 -0
- package/src/components/FileUploader.vue +344 -0
- package/src/components/FormKitTable.vue +250 -0
- package/src/components/FormSchema.vue +65 -0
- package/src/components/LangText.vue +30 -0
- package/src/components/ListItem.vue +16 -0
- package/src/components/ListView.vue +39 -0
- package/src/components/MaterialIcon.vue +16 -0
- package/src/components/Modal.vue +50 -0
- package/src/components/ModalForm.vue +94 -0
- package/src/components/NavBar.vue +343 -0
- package/src/components/PageTitle.vue +17 -0
- package/src/components/PersonPreview.vue +205 -0
- package/src/components/PersonPreviewFormkit.vue +205 -0
- package/src/components/RTXEditor.vue +147 -0
- package/src/components/RouterWrapper.vue +9 -0
- package/src/components/TabbedLayout.vue +80 -0
- package/src/components/TableSchema.vue +213 -0
- package/src/components/TopBar.vue +5 -0
- package/src/components/charts/BarChart.vue +290 -0
- package/src/components/dashboard/Lineart.vue +165 -0
- package/src/components/form/ItemRef.vue +38 -0
- package/src/components/form/MaterialIcon.vue +19 -0
- package/src/components/form/PlainInputField.vue +80 -0
- package/src/components/form/inputs/CheckInput.vue +143 -0
- package/src/components/form/inputs/Checkbox.vue +69 -0
- package/src/components/form/inputs/ColorPicker.vue +37 -0
- package/src/components/form/inputs/CurrencyInput.vue +133 -0
- package/src/components/form/inputs/DateInput.vue +49 -0
- package/src/components/form/inputs/DatetimeInput.vue +46 -0
- package/src/components/form/inputs/DurationInput.vue +51 -0
- package/src/components/form/inputs/DynamicLinkField.vue +140 -0
- package/src/components/form/inputs/EmailInput.vue +53 -0
- package/src/components/form/inputs/FloatInput.vue +48 -0
- package/src/components/form/inputs/IntInput.vue +49 -0
- package/src/components/form/inputs/JSONInput.vue +51 -0
- package/src/components/form/inputs/LinkField.vue +293 -0
- package/src/components/form/inputs/Password.vue +89 -0
- package/src/components/form/inputs/PasswordInput.vue +89 -0
- package/src/components/form/inputs/PlainText.vue +52 -0
- package/src/components/form/inputs/ReadOnlyInput.vue +24 -0
- package/src/components/form/inputs/RichTextEditor.vue +54 -0
- package/src/components/form/inputs/SelectField.vue +253 -0
- package/src/components/form/inputs/TableField.vue +321 -0
- package/src/components/form/inputs/TextArea.vue +70 -0
- package/src/components/form/inputs/TextInput.vue +53 -0
- package/src/components/form/inputs/index.ts +17 -0
- package/src/components/formkit/AddressArray.vue +240 -0
- package/src/components/formkit/BankDetailsArray.vue +265 -0
- package/src/components/formkit/ContactArrayFormKit.vue +151 -0
- package/src/components/formkit/FileUploader.vue +391 -0
- package/src/components/formkit/MiscFields.vue +69 -0
- package/src/components/formkit/Toggle.vue +160 -0
- package/src/components/formkit/index.ts +29 -0
- package/src/components/index.ts +20 -0
- package/src/components/whatsapp/form/MsgTemplate.vue +220 -0
- package/src/components/whatsapp/form/TextVariableExamples.vue +74 -0
- package/src/components/whatsapp/interfaces.ts +58 -0
- package/src/index.ts +1 -26
- package/src/plugins/bagel.ts +26 -0
- package/src/styles/modal.css +90 -0
- package/src/types/BagelField.ts +57 -0
- package/src/types/BtnOptions.ts +14 -0
- package/src/types/Person.ts +51 -0
- package/src/types/file.ts +12 -0
- package/src/types/index.ts +4 -0
- package/src/types/materialIcons.d.ts +3005 -0
- package/src/utils/index.ts +57 -0
- package/src/utils/modal.ts +95 -0
- package/src/utils/objects.ts +81 -0
- package/src/utils/strings.ts +29 -0
- package/dist/index.cjs +0 -23
- package/dist/index.d.cts +0 -12
- package/dist/index.d.mts +0 -12
- package/dist/index.d.ts +0 -12
- package/dist/index.mjs +0 -19
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export interface BaseBagelField {
|
|
2
|
+
id: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
is_array?: boolean;
|
|
7
|
+
can_add?: boolean;
|
|
8
|
+
can_delete?: boolean | (() => boolean);
|
|
9
|
+
allow_array_add?: boolean;
|
|
10
|
+
editMode?: boolean;
|
|
11
|
+
inputType:
|
|
12
|
+
| 'ItemRef'
|
|
13
|
+
| 'SelectField'
|
|
14
|
+
| 'PlainText'
|
|
15
|
+
| 'ImageField'
|
|
16
|
+
| 'ReadOnlyInput'
|
|
17
|
+
| 'DateInput'
|
|
18
|
+
| 'CurrencyInput'
|
|
19
|
+
| 'CheckInput'
|
|
20
|
+
| 'NumberInput'
|
|
21
|
+
| 'LinkField'
|
|
22
|
+
| 'TextArea'
|
|
23
|
+
| 'Password'
|
|
24
|
+
| 'Contact'
|
|
25
|
+
| 'ColorPicker'
|
|
26
|
+
| 'FormRow'
|
|
27
|
+
| 'BagelForm';
|
|
28
|
+
description?: string;
|
|
29
|
+
helpText?: string;
|
|
30
|
+
currency?: string;
|
|
31
|
+
refCollection?: string;
|
|
32
|
+
refFields?: string[];
|
|
33
|
+
file_key?: string;
|
|
34
|
+
fields?: any;
|
|
35
|
+
pattern?: string;
|
|
36
|
+
fieldClass?: string;
|
|
37
|
+
link?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type NestedField = BagelField & {
|
|
41
|
+
// modelValuePropPath?: string;
|
|
42
|
+
skipIndex?: boolean;
|
|
43
|
+
ignoreModelPath?: boolean;
|
|
44
|
+
};
|
|
45
|
+
export type NestedBagelFormFields = NestedField[] & Record<string, NestedField>;
|
|
46
|
+
|
|
47
|
+
export interface NestedBagelForm extends BaseBagelField {
|
|
48
|
+
inputType: 'BagelForm';
|
|
49
|
+
fields: NestedBagelFormFields;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface SelectBagelField extends BaseBagelField {
|
|
53
|
+
inputType: 'SelectField';
|
|
54
|
+
options: string | { label: string; value: string | number }[];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type BagelField = BaseBagelField | SelectBagelField | NestedBagelForm;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MaterialIcons } from './materialIcons';
|
|
2
|
+
|
|
3
|
+
export interface BtnOptions {
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
color?: 'light' | 'red' | 'gray' | 'black' | 'blue';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
icon?: MaterialIcons;
|
|
8
|
+
flat?: boolean;
|
|
9
|
+
thin?: boolean;
|
|
10
|
+
type?: 'button' | 'submit' | 'reset';
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
role?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface BankDetails {
|
|
2
|
+
bank_name: string;
|
|
3
|
+
branch: string;
|
|
4
|
+
account_number: string;
|
|
5
|
+
bank_account_holder: string;
|
|
6
|
+
iban?: string;
|
|
7
|
+
swift?: string;
|
|
8
|
+
bank_address?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface NewPerson {
|
|
13
|
+
first_name?: string;
|
|
14
|
+
last_name?: string;
|
|
15
|
+
email?: string;
|
|
16
|
+
phone?: string;
|
|
17
|
+
gender?: string;
|
|
18
|
+
bank_details?: BankDetails;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface Email {
|
|
22
|
+
id?: string;
|
|
23
|
+
email: string;
|
|
24
|
+
primary: boolean;
|
|
25
|
+
label: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface Phone {
|
|
29
|
+
id?: string;
|
|
30
|
+
phone: string;
|
|
31
|
+
primary: boolean;
|
|
32
|
+
label: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface Role {
|
|
36
|
+
id: string;
|
|
37
|
+
role: string;
|
|
38
|
+
ref_id: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface Person {
|
|
42
|
+
id: string;
|
|
43
|
+
first_name: string;
|
|
44
|
+
last_name: string;
|
|
45
|
+
email: Email[];
|
|
46
|
+
phone: Phone[];
|
|
47
|
+
date_of_birth: string;
|
|
48
|
+
gender: string;
|
|
49
|
+
roles: Role[];
|
|
50
|
+
bank_details: BankDetails[];
|
|
51
|
+
}
|