@flyanra/vue-core 0.4.0 → 0.4.2

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 (161) hide show
  1. package/README.md +176 -176
  2. package/package.json +137 -138
  3. package/src/components/basic/fly-button/FlyButton.element.scss +3 -3
  4. package/src/components/basic/fly-button/FlyButton.mixins.scss +58 -58
  5. package/src/components/basic/fly-button/FlyButton.types.ts +29 -29
  6. package/src/components/basic/fly-button/FlyButton.vue +180 -180
  7. package/src/components/basic/fly-button/index.ts +11 -11
  8. package/src/components/basic/index.ts +2 -2
  9. package/src/components/basic/typography/FlyCollapseTitleRenderer.vue +46 -46
  10. package/src/components/feedback/index.ts +2 -2
  11. package/src/components/feedback/tooltip/FlyInfoTooltip.vue +48 -48
  12. package/src/components/feedback/tooltip/FlyTooltip.element.scss +4 -4
  13. package/src/components/feedback/tooltip/FlyTooltip.types.ts +5 -5
  14. package/src/components/feedback/tooltip/FlyTooltip.vue +60 -60
  15. package/src/components/feedback/tooltip/index.ts +6 -6
  16. package/src/components/form/form.utils.ts +57 -57
  17. package/src/components/form/input-renderers/boolean/FlyBoolean.scss +1 -1
  18. package/src/components/form/input-renderers/boolean/FlyBoolean.types.ts +16 -16
  19. package/src/components/form/input-renderers/boolean/FlyBoolean.vue +35 -35
  20. package/src/components/form/input-renderers/date-time/FlyDateTime.scss +1 -1
  21. package/src/components/form/input-renderers/date-time/FlyDateTime.types.ts +21 -21
  22. package/src/components/form/input-renderers/date-time/FlyDateTime.vue +85 -85
  23. package/src/components/form/input-renderers/form-item-renderer/FlyFormItemRenderer.scss +4 -4
  24. package/src/components/form/input-renderers/form-item-renderer/FlyFormItemRenderer.vue +48 -48
  25. package/src/components/form/input-renderers/form-schema-renderer/FlyFormSchemaRenderer.types.ts +3 -3
  26. package/src/components/form/input-renderers/form-schema-renderer/FlyFormSchemaRenderer.utils.ts +246 -246
  27. package/src/components/form/input-renderers/form-schema-renderer/FlyFormSchemaRenderer.vue +75 -75
  28. package/src/components/form/input-renderers/form-schema-renderer/UseFormSchemaRenderer.ts +97 -97
  29. package/src/components/form/input-renderers/form-schema.types.ts +95 -95
  30. package/src/components/form/input-renderers/input-renderer/FlyInputRenderer.vue +49 -49
  31. package/src/components/form/input-renderers/input-renderer.types.ts +49 -49
  32. package/src/components/form/input-renderers/input-renderer.utils.ts +18 -18
  33. package/src/components/form/input-renderers/number/FlyNumber.scss +1 -1
  34. package/src/components/form/input-renderers/number/FlyNumber.types.ts +13 -13
  35. package/src/components/form/input-renderers/number/FlyNumber.utils.ts +6 -6
  36. package/src/components/form/input-renderers/number/FlyNumber.vue +48 -48
  37. package/src/components/form/input-renderers/regional-tenant-form-renderer/FlyRegionalTenantFormRenderer.types.ts +15 -15
  38. package/src/components/form/input-renderers/regional-tenant-form-renderer/FlyRegionalTenantFormRenderer.vue +99 -99
  39. package/src/components/form/input-renderers/select/FlySelect.scss +1 -1
  40. package/src/components/form/input-renderers/select/FlySelect.types.ts +25 -25
  41. package/src/components/form/input-renderers/select/FlySelect.utils.ts +37 -37
  42. package/src/components/form/input-renderers/select/FlySelect.vue +48 -48
  43. package/src/components/form/input-renderers/text/FlyText.scss +1 -1
  44. package/src/components/form/input-renderers/text/FlyText.types.ts +20 -20
  45. package/src/components/form/input-renderers/text/FlyText.vue +56 -56
  46. package/src/components/form/input-renderers/value-unit/FlyValueUnit.scss +2 -2
  47. package/src/components/form/input-renderers/value-unit/FlyValueUnit.types.ts +28 -28
  48. package/src/components/form/input-renderers/value-unit/FlyValueUnit.vue +101 -101
  49. package/src/components/form/input-validators.ts +121 -121
  50. package/src/components/general/fly-icon/FlyIcon.types.ts +12 -12
  51. package/src/components/general/fly-icon/FlyIcon.vue +24 -24
  52. package/src/components/general/fly-icon/index.ts +6 -6
  53. package/src/components/general/index.ts +2 -2
  54. package/src/components/index.ts +5 -5
  55. package/src/components/navigation/fly-steps/FlySteps.element.scss +100 -100
  56. package/src/components/navigation/fly-steps/FlySteps.types.ts +10 -10
  57. package/src/components/navigation/fly-steps/FlySteps.vue +30 -30
  58. package/src/components/navigation/fly-steps/index.ts +6 -6
  59. package/src/components/navigation/index.ts +2 -2
  60. package/src/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebar.element.scss +2 -2
  61. package/src/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebar.types.ts +8 -8
  62. package/src/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebar.vue +46 -46
  63. package/src/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebarItem.vue +55 -55
  64. package/src/components/navigation/menu/fly-mini-sidebar/index.ts +6 -6
  65. package/src/components/navigation/menu/fly-sidebar/FlySidebar.element.scss +9 -9
  66. package/src/components/navigation/menu/fly-sidebar/FlySidebar.types.ts +36 -36
  67. package/src/components/navigation/menu/fly-sidebar/FlySidebar.vue +150 -150
  68. package/src/components/navigation/menu/fly-sidebar/FlySidebarNode.vue +47 -47
  69. package/src/components/navigation/menu/fly-sidebar/index.ts +12 -12
  70. package/src/components/navigation/menu/index.ts +5 -5
  71. package/src/index.ts +1 -1
  72. package/src/styles/_scss-tokens.scss +76 -76
  73. package/src/styles/core/animations.scss +40 -40
  74. package/src/styles/core/index.scss +36 -36
  75. package/src/styles/core/scrollbar.scss +36 -36
  76. package/src/styles/core/typography-utils.scss +9 -9
  77. package/src/styles/element/common.scss +56 -56
  78. package/src/styles/element/dark.scss +38 -38
  79. package/src/styles/element/mixins/collapse.scss +61 -61
  80. package/src/styles/element/mixins/dialog.scss +101 -101
  81. package/src/styles/element/overrides/alerts.scss +28 -28
  82. package/src/styles/element/overrides/badge.scss +6 -6
  83. package/src/styles/element/overrides/cascader.scss +2 -2
  84. package/src/styles/element/overrides/collapse.scss +2 -2
  85. package/src/styles/element/overrides/date-time.scss +11 -11
  86. package/src/styles/element/overrides/dialog.scss +2 -2
  87. package/src/styles/element/overrides/dropdown.scss +11 -11
  88. package/src/styles/element/overrides/form.scss +105 -105
  89. package/src/styles/element/overrides/message-box.scss +2 -2
  90. package/src/styles/element/overrides/message.scss +39 -39
  91. package/src/styles/element/overrides/notification.scss +46 -46
  92. package/src/styles/element/overrides/radio.scss +2 -2
  93. package/src/styles/element/overrides/segmented.scss +17 -17
  94. package/src/styles/element/overrides/select.scss +9 -9
  95. package/src/styles/element/overrides/table.scss +2 -2
  96. package/src/styles/element/overrides/tag.scss +19 -19
  97. package/src/styles/index.d.ts +1 -1
  98. package/src/styles/index.scss +5 -5
  99. package/src/styles/mixins/shadows.scss +15 -15
  100. package/src/styles/tokens.scss +84 -83
  101. package/dist/types/components/basic/fly-button/FlyButton.types.d.ts +0 -25
  102. package/dist/types/components/basic/fly-button/FlyButton.vue.d.ts +0 -26
  103. package/dist/types/components/basic/fly-button/index.d.ts +0 -4
  104. package/dist/types/components/basic/index.d.ts +0 -2
  105. package/dist/types/components/basic/typography/FlyCollapseTitleRenderer.vue.d.ts +0 -16
  106. package/dist/types/components/feedback/index.d.ts +0 -2
  107. package/dist/types/components/feedback/tooltip/FlyInfoTooltip.vue.d.ts +0 -36
  108. package/dist/types/components/feedback/tooltip/FlyTooltip.types.d.ts +0 -4
  109. package/dist/types/components/feedback/tooltip/FlyTooltip.vue.d.ts +0 -17
  110. package/dist/types/components/feedback/tooltip/index.d.ts +0 -4
  111. package/dist/types/components/form/form.utils.d.ts +0 -10
  112. package/dist/types/components/form/index.d.ts +0 -1
  113. package/dist/types/components/form/input-renderers/boolean/FlyBoolean.types.d.ts +0 -14
  114. package/dist/types/components/form/input-renderers/boolean/FlyBoolean.vue.d.ts +0 -15
  115. package/dist/types/components/form/input-renderers/date-time/FlyDateTime.types.d.ts +0 -20
  116. package/dist/types/components/form/input-renderers/date-time/FlyDateTime.vue.d.ts +0 -19
  117. package/dist/types/components/form/input-renderers/form-item-renderer/FlyFormItemRenderer.vue.d.ts +0 -19
  118. package/dist/types/components/form/input-renderers/form-schema-renderer/FlyFormSchemaRenderer.types.d.ts +0 -2
  119. package/dist/types/components/form/input-renderers/form-schema-renderer/FlyFormSchemaRenderer.utils.d.ts +0 -23
  120. package/dist/types/components/form/input-renderers/form-schema-renderer/FlyFormSchemaRenderer.vue.d.ts +0 -17
  121. package/dist/types/components/form/input-renderers/form-schema-renderer/UseFormSchemaRenderer.d.ts +0 -25
  122. package/dist/types/components/form/input-renderers/form-schema.types.d.ts +0 -77
  123. package/dist/types/components/form/input-renderers/input-renderer/FlyInputRenderer.vue.d.ts +0 -18
  124. package/dist/types/components/form/input-renderers/input-renderer.types.d.ts +0 -30
  125. package/dist/types/components/form/input-renderers/input-renderer.utils.d.ts +0 -2
  126. package/dist/types/components/form/input-renderers/number/FlyNumber.types.d.ts +0 -13
  127. package/dist/types/components/form/input-renderers/number/FlyNumber.utils.d.ts +0 -1
  128. package/dist/types/components/form/input-renderers/number/FlyNumber.vue.d.ts +0 -19
  129. package/dist/types/components/form/input-renderers/regional-tenant-form-renderer/FlyRegionalTenantFormRenderer.types.d.ts +0 -13
  130. package/dist/types/components/form/input-renderers/regional-tenant-form-renderer/FlyRegionalTenantFormRenderer.vue.d.ts +0 -20
  131. package/dist/types/components/form/input-renderers/select/FlySelect.types.d.ts +0 -22
  132. package/dist/types/components/form/input-renderers/select/FlySelect.utils.d.ts +0 -2
  133. package/dist/types/components/form/input-renderers/select/FlySelect.vue.d.ts +0 -19
  134. package/dist/types/components/form/input-renderers/text/FlyText.types.d.ts +0 -18
  135. package/dist/types/components/form/input-renderers/text/FlyText.vue.d.ts +0 -19
  136. package/dist/types/components/form/input-renderers/value-unit/FlyValueUnit.types.d.ts +0 -23
  137. package/dist/types/components/form/input-renderers/value-unit/FlyValueUnit.vue.d.ts +0 -19
  138. package/dist/types/components/form/input-validators.d.ts +0 -13
  139. package/dist/types/components/general/fly-icon/FlyIcon.types.d.ts +0 -7
  140. package/dist/types/components/general/fly-icon/FlyIcon.vue.d.ts +0 -6
  141. package/dist/types/components/general/fly-icon/index.d.ts +0 -4
  142. package/dist/types/components/general/index.d.ts +0 -2
  143. package/dist/types/components/index.d.ts +0 -4
  144. package/dist/types/components/navigation/fly-steps/FlySteps.types.d.ts +0 -9
  145. package/dist/types/components/navigation/fly-steps/FlySteps.vue.d.ts +0 -9
  146. package/dist/types/components/navigation/fly-steps/index.d.ts +0 -4
  147. package/dist/types/components/navigation/index.d.ts +0 -2
  148. package/dist/types/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebar.types.d.ts +0 -7
  149. package/dist/types/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebar.vue.d.ts +0 -8
  150. package/dist/types/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebarItem.vue.d.ts +0 -7
  151. package/dist/types/components/navigation/menu/fly-mini-sidebar/index.d.ts +0 -4
  152. package/dist/types/components/navigation/menu/fly-sidebar/FlySidebar.types.d.ts +0 -29
  153. package/dist/types/components/navigation/menu/fly-sidebar/FlySidebar.vue.d.ts +0 -8
  154. package/dist/types/components/navigation/menu/fly-sidebar/FlySidebarNode.vue.d.ts +0 -7
  155. package/dist/types/components/navigation/menu/fly-sidebar/index.d.ts +0 -4
  156. package/dist/types/components/navigation/menu/index.d.ts +0 -4
  157. package/dist/types/composables/UseLocaleInjector.d.ts +0 -6
  158. package/dist/types/index.d.ts +0 -1
  159. package/dist/types/types/index.d.ts +0 -1
  160. package/dist/types/utils/pure-functions.d.ts +0 -1
  161. package/dist/types/utils/validators.d.ts +0 -9
@@ -1,19 +0,0 @@
1
- import './FlyDateTime.scss';
2
- import type { T_DateTimeValues, T_InputDateTime } from './FlyDateTime.types';
3
- type __VLS_Props = {
4
- modelValue?: T_DateTimeValues;
5
- input?: T_InputDateTime;
6
- };
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
- focus: () => any;
9
- blur: () => any;
10
- change: (v: T_DateTimeValues) => any;
11
- "update:modelValue": (v: T_DateTimeValues) => any;
12
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- onFocus?: (() => any) | undefined;
14
- onBlur?: (() => any) | undefined;
15
- onChange?: ((v: T_DateTimeValues) => any) | undefined;
16
- "onUpdate:modelValue"?: ((v: T_DateTimeValues) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: typeof __VLS_export;
19
- export default _default;
@@ -1,19 +0,0 @@
1
- import type { T_InputRendererBase } from '../input-renderer.types';
2
- import './FlyFormItemRenderer.scss';
3
- type __VLS_Props = {
4
- modelValue: unknown;
5
- input: T_InputRendererBase;
6
- };
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
- focus: () => any;
9
- blur: () => any;
10
- change: (value: unknown) => any;
11
- "update:modelValue": (value: unknown) => any;
12
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- onFocus?: (() => any) | undefined;
14
- onBlur?: (() => any) | undefined;
15
- onChange?: ((value: unknown) => any) | undefined;
16
- "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: typeof __VLS_export;
19
- export default _default;
@@ -1,2 +0,0 @@
1
- import type FlyFormSchemaRenderer from './FlyFormSchemaRenderer.vue';
2
- export type T_FlyFormSchemaRendererInstance = InstanceType<typeof FlyFormSchemaRenderer> | null;
@@ -1,23 +0,0 @@
1
- import type { FormInstance, FormItemRule } from 'element-plus';
2
- import type { Composer } from 'vue-i18n';
3
- import type { T_FormSchemaLookupData, T_InputSchema, T_InputSchemaSelect, T_InputSchemaValueUnit } from '../form-schema.types';
4
- import type { T_InputRendererBase } from '../input-renderer.types';
5
- import type { T_InputSelectOption } from '../select/FlySelect.types';
6
- export declare function getValidatorsFromInputFields(fields: T_InputRendererBase[]): Record<string, FormItemRule[]>;
7
- export declare function genericFormValidator(formRef: FormInstance): Promise<true>;
8
- export declare function generateInputFromFormSchema(field: T_InputSchema, lookupData?: T_FormSchemaLookupData): (import("../input-renderer.types").T_DynamicInputPropsBase & import("../number/FlyNumber.types").T_InputNumber & {
9
- type: "number";
10
- }) | (import("../input-renderer.types").T_DynamicInputPropsBase & import("../select/FlySelect.types").T_InputSelect & {
11
- type: "select";
12
- }) | (import("../input-renderer.types").T_DynamicInputPropsBase & import("../text/FlyText.types").T_InputText & {
13
- type: "text" | "textarea";
14
- }) | (import("../input-renderer.types").T_DynamicInputPropsBase & import("../value-unit/FlyValueUnit.types").T_InputValueUnit & {
15
- type: "valueUnit";
16
- }) | (import("../input-renderer.types").T_DynamicInputPropsBase & import("../date-time/FlyDateTime.types").T_InputDateTime & {
17
- type: "dateTime";
18
- }) | (import("../input-renderer.types").T_DynamicInputPropsBase & import("../boolean/FlyBoolean.types").T_InputBoolean & {
19
- type: "boolean";
20
- placeholder?: string;
21
- }) | undefined;
22
- export declare function generateFormRule(field: T_InputSchema, composer?: Composer): FormItemRule[];
23
- export declare function generateSelectOptionsFromSchema(field: T_InputSchemaSelect | T_InputSchemaValueUnit, lookupData?: T_FormSchemaLookupData): T_InputSelectOption[];
@@ -1,17 +0,0 @@
1
- import '../../../../styles/element/overrides/form.scss';
2
- import { type T_FormSchemaRendererProps } from './UseFormSchemaRenderer';
3
- type __VLS_Props = T_FormSchemaRendererProps & {
4
- /**
5
- * Column span within a 12 column grid
6
- */
7
- columnSpan?: number;
8
- };
9
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
10
- validateForm: () => Promise<true | undefined>;
11
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
- "update:modelValue": (value: Record<string, unknown> | undefined) => any;
13
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
- "onUpdate:modelValue"?: ((value: Record<string, unknown> | undefined) => any) | undefined;
15
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
- declare const _default: typeof __VLS_export;
17
- export default _default;
@@ -1,25 +0,0 @@
1
- import { type Ref } from 'vue';
2
- import type { FormInstance } from 'element-plus';
3
- import type { T_FormSchemaLookupData, T_InputSchema } from '../form-schema.types';
4
- import type { T_FormSchemaRendererConfig } from '../input-renderer.types';
5
- export type T_FormSchemaRendererProps = {
6
- formConfig: T_InputSchema[];
7
- lookupData?: T_FormSchemaLookupData;
8
- modelValue?: Record<string, unknown>;
9
- disabled?: boolean;
10
- };
11
- export type T_FormSchemaRendererEmits = {
12
- (e: 'update:modelValue', value: T_FormSchemaRendererProps['modelValue']): void;
13
- };
14
- type ConfigFormCompArgs = {
15
- formRef: Ref<FormInstance | undefined>;
16
- props: T_FormSchemaRendererProps;
17
- emit: T_FormSchemaRendererEmits;
18
- };
19
- export declare function UseFormSchemaRenderer(args: ConfigFormCompArgs): {
20
- dynamicValidators: import("vue").ComputedRef<Record<string, import("element-plus").FormItemRule[]>>;
21
- formProxy: import("vue").WritableComputedRef<Record<string, unknown>, Record<string, unknown>>;
22
- generatedForm: Ref<T_FormSchemaRendererConfig | undefined, T_FormSchemaRendererConfig | undefined>;
23
- validateForm: () => Promise<true | undefined>;
24
- };
25
- export {};
@@ -1,77 +0,0 @@
1
- import type { T_DateInputTypes } from './date-time/FlyDateTime.types';
2
- import type { T_InputSelectOption } from './select/FlySelect.types';
3
- import type { T_ValueUnitValue } from './value-unit/FlyValueUnit.types';
4
- export type T_FormSchemaLookupData = Record<string, Array<unknown>>;
5
- export type T_InputSchema = T_InputSchemaText | T_InputSchemaNumber | T_InputSchemaBoolean | T_InputSchemaSelect | T_InputSchemaValueUnit | T_InputSchemaDateTime;
6
- type T_FieldValidationBase = {
7
- required?: boolean;
8
- };
9
- type T_InputSchemaBase<ValidationRules = object> = {
10
- unique_key: string;
11
- label: string;
12
- tooltip?: string;
13
- placeholder?: string;
14
- validation?: T_FieldValidationBase & ValidationRules;
15
- };
16
- export type T_InputSchemaText = T_InputSchemaBase<{
17
- minLength?: number;
18
- maxLength?: number;
19
- }> & {
20
- type: 'text';
21
- default_value?: string;
22
- config?: {
23
- maxLength?: number;
24
- minLength?: number;
25
- type?: string;
26
- rows?: number;
27
- };
28
- };
29
- export type T_InputSchemaNumber = T_InputSchemaBase<{
30
- minLength?: number;
31
- maxLength?: number;
32
- }> & {
33
- type: 'number';
34
- default_value?: number;
35
- config?: {
36
- minLength?: number;
37
- maxLength?: number;
38
- };
39
- };
40
- export type T_InputSchemaBoolean = T_InputSchemaBase & {
41
- type: 'boolean';
42
- default_value?: boolean;
43
- config?: {
44
- activeText?: string;
45
- inactiveText?: string;
46
- };
47
- };
48
- type T_SelectOptions = {
49
- options_config_Lookup_id: string;
50
- options?: never;
51
- } | {
52
- options?: T_InputSelectOption[];
53
- options_config_Lookup_id?: never;
54
- };
55
- type T_SelectBase<M extends boolean | undefined> = T_InputSchemaBase & {
56
- type: 'select';
57
- config: T_SelectOptions & {
58
- multiple?: M;
59
- };
60
- default_value?: M extends true ? (string | number)[] : string | number;
61
- };
62
- export type T_InputSchemaSelect = T_SelectBase<true> | T_SelectBase<false | undefined>;
63
- export type T_InputSchemaValueUnit = T_InputSchemaBase & {
64
- type: 'valueUnit';
65
- config: T_SelectOptions & {
66
- valueType?: 'text' | 'number';
67
- };
68
- default_value?: T_ValueUnitValue;
69
- };
70
- export type T_InputSchemaDateTime = T_InputSchemaBase & {
71
- type: 'dateTime';
72
- default_value?: string | [string | string];
73
- config?: {
74
- inputType: T_DateInputTypes;
75
- };
76
- };
77
- export {};
@@ -1,18 +0,0 @@
1
- import type { T_InputRendererBase } from '../input-renderer.types';
2
- type __VLS_Props = {
3
- modelValue: unknown;
4
- input: T_InputRendererBase;
5
- };
6
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
- focus: () => any;
8
- blur: () => any;
9
- change: (v: unknown) => any;
10
- "update:modelValue": (v: unknown) => any;
11
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
- onFocus?: (() => any) | undefined;
13
- onBlur?: (() => any) | undefined;
14
- onChange?: ((v: unknown) => any) | undefined;
15
- "onUpdate:modelValue"?: ((v: unknown) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
- declare const _default: typeof __VLS_export;
18
- export default _default;
@@ -1,30 +0,0 @@
1
- import type { Component } from 'vue';
2
- import type { FormItemRule } from 'element-plus';
3
- import type { T_InputBoolean, T_InputBooleanBase } from './boolean/FlyBoolean.types';
4
- import type { T_InputDateTime, T_InputDateTimeBase } from './date-time/FlyDateTime.types';
5
- import type { T_InputNumber, T_InputNumberBase } from './number/FlyNumber.types';
6
- import type { T_InputSelect, T_InputSelectBase } from './select/FlySelect.types';
7
- import type { T_InputText, T_InputTextBase } from './text/FlyText.types';
8
- import type { T_InputValueUnit, T_InputValueUnitBase } from './value-unit/FlyValueUnit.types';
9
- export type T_DynamicInputPropsBase = {
10
- key: string;
11
- prop?: string;
12
- label: string;
13
- tooltip?: string;
14
- columnSpan?: number;
15
- validations?: FormItemRule[];
16
- };
17
- export type T_InputRendererBase = T_DynamicInputPropsBase & T_SupportedInputTypeBase;
18
- export type T_SupportedInputTypeBase = T_InputTextBase | T_InputBooleanBase | T_InputDateTimeBase | T_InputNumberBase | T_InputSelectBase | T_InputValueUnitBase;
19
- export type T_SupportedInputType = T_InputText | T_InputNumber | T_InputValueUnit | T_InputSelect | T_InputBoolean | T_InputDateTime;
20
- export type T_InputTypes = T_SupportedInputTypeBase['type'];
21
- export type T_DynamicInputComponent = Component<{
22
- modelValue?: unknown;
23
- input?: T_SupportedInputType;
24
- }>;
25
- export type T_FormSchemaRendererConfig = {
26
- inputs: T_InputRendererBase[];
27
- baseForm: {
28
- [K: string]: unknown;
29
- };
30
- };
@@ -1,2 +0,0 @@
1
- import type { T_InputTypes } from './input-renderer.types';
2
- export declare function getInputDisplayValue(v: unknown, inputType: T_InputTypes): string;
@@ -1,13 +0,0 @@
1
- export type T_InputTextValues = string | number | undefined;
2
- export type T_InputNumberBase = T_InputNumber & {
3
- type: 'number';
4
- };
5
- export type T_InputNumber = {
6
- placeholder?: string;
7
- /**
8
- * Attrs are passed directly to the input element as props
9
- */
10
- attrs?: {
11
- [K: string]: unknown;
12
- };
13
- };
@@ -1 +0,0 @@
1
- export declare function displayToNumber(v: unknown): number | undefined;
@@ -1,19 +0,0 @@
1
- import './FlyNumber.scss';
2
- import type { T_InputNumber, T_InputTextValues } from './FlyNumber.types';
3
- type __VLS_Props = {
4
- modelValue?: unknown;
5
- input?: T_InputNumber;
6
- };
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
- focus: () => any;
9
- blur: () => any;
10
- change: (v: T_InputTextValues) => any;
11
- "update:modelValue": (v: T_InputTextValues) => any;
12
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- onFocus?: (() => any) | undefined;
14
- onBlur?: (() => any) | undefined;
15
- onChange?: ((v: T_InputTextValues) => any) | undefined;
16
- "onUpdate:modelValue"?: ((v: T_InputTextValues) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: typeof __VLS_export;
19
- export default _default;
@@ -1,13 +0,0 @@
1
- import type { T_FormSchemaLookupData, T_InputSchema } from '../form-schema.types';
2
- export type T_TenantRegionalFormSection = {
3
- key: string;
4
- fields: T_InputSchema[];
5
- title: string;
6
- description?: string;
7
- lookupData?: T_FormSchemaLookupData;
8
- modelValue?: Record<string, unknown>;
9
- };
10
- export type T_TenantRegionalFormProps = {
11
- mainFormTitle: string;
12
- sections?: T_TenantRegionalFormSection[];
13
- };
@@ -1,20 +0,0 @@
1
- import '../../../../styles/element/overrides/collapse.scss';
2
- import type { T_TenantRegionalFormProps } from './FlyRegionalTenantFormRenderer.types';
3
- declare function validateForms(): Promise<true | undefined>;
4
- declare var __VLS_19: {}, __VLS_38: {};
5
- type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_19) => any;
7
- } & {
8
- default?: (props: typeof __VLS_38) => any;
9
- };
10
- declare const __VLS_base: import("vue").DefineComponent<T_TenantRegionalFormProps, {
11
- validateForms: typeof validateForms;
12
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<T_TenantRegionalFormProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
- declare const _default: typeof __VLS_export;
15
- export default _default;
16
- type __VLS_WithSlots<T, S> = T & {
17
- new (): {
18
- $slots: S;
19
- };
20
- };
@@ -1,22 +0,0 @@
1
- export type T_InputSelectValue = string | number | (string | number)[] | undefined;
2
- export type T_InputLabelValue = {
3
- label: string;
4
- value: string | number;
5
- };
6
- export type T_InputSelectOption = T_InputLabelValue | (number | string);
7
- export type T_InputSelectOptionList = T_InputSelectOption[] | Record<string, T_InputLabelValue>;
8
- export type T_InputSelectBase = T_InputSelect & {
9
- type: 'select';
10
- };
11
- export type T_InputSelect = {
12
- placeholder?: string;
13
- /**
14
- * Attrs are passed directly to the input element as props
15
- */
16
- attrs?: {
17
- multiple?: boolean;
18
- };
19
- config?: {
20
- options: T_InputSelectOptionList;
21
- };
22
- };
@@ -1,2 +0,0 @@
1
- import type { T_InputLabelValue, T_InputSelectOptionList } from './FlySelect.types';
2
- export declare function normalizeSelectOptionsToDict(options: T_InputSelectOptionList): Record<string, T_InputLabelValue>;
@@ -1,19 +0,0 @@
1
- import './FlySelect.scss';
2
- import type { T_InputSelect, T_InputSelectValue } from './FlySelect.types';
3
- type __VLS_Props = {
4
- modelValue?: T_InputSelectValue;
5
- input?: T_InputSelect;
6
- };
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
- focus: () => any;
9
- blur: () => any;
10
- change: (v: T_InputSelectValue) => any;
11
- "update:modelValue": (v: T_InputSelectValue) => any;
12
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- onFocus?: (() => any) | undefined;
14
- onBlur?: (() => any) | undefined;
15
- onChange?: ((v: T_InputSelectValue) => any) | undefined;
16
- "onUpdate:modelValue"?: ((v: T_InputSelectValue) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: typeof __VLS_export;
19
- export default _default;
@@ -1,18 +0,0 @@
1
- export type T_InputTextValues = string | number | undefined;
2
- export type T_InputTextBase = T_InputText & {
3
- type: 'text' | 'textarea';
4
- };
5
- export type T_InputText = {
6
- placeholder?: string;
7
- /**
8
- * Attrs are passed directly to the input element as props
9
- */
10
- attrs?: {
11
- minlength?: number;
12
- maxlength?: number;
13
- showWordLimit?: boolean;
14
- type?: string;
15
- rows?: number;
16
- };
17
- mask?: string;
18
- };
@@ -1,19 +0,0 @@
1
- import './FlyText.scss';
2
- import type { T_InputText, T_InputTextValues } from './FlyText.types';
3
- type __VLS_Props = {
4
- modelValue?: T_InputTextValues;
5
- input?: T_InputText;
6
- };
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
- focus: () => any;
9
- blur: () => any;
10
- change: (v: T_InputTextValues) => any;
11
- "update:modelValue": (v: T_InputTextValues) => any;
12
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- onFocus?: (() => any) | undefined;
14
- onBlur?: (() => any) | undefined;
15
- onChange?: ((v: T_InputTextValues) => any) | undefined;
16
- "onUpdate:modelValue"?: ((v: T_InputTextValues) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: typeof __VLS_export;
19
- export default _default;
@@ -1,23 +0,0 @@
1
- import type { T_InputNumber } from '../number/FlyNumber.types';
2
- import type { T_InputSelect, T_InputSelectOptionList } from '../select/FlySelect.types';
3
- import type { T_InputText } from '../text/FlyText.types';
4
- export type T_ValueUnitValue = {
5
- unit: string | number | undefined;
6
- value: string | number | undefined;
7
- } | undefined;
8
- export type T_InputValueUnitBase = T_InputValueUnit & {
9
- type: 'valueUnit';
10
- };
11
- export type T_InputValueUnit = {
12
- placeholder?: string;
13
- unitPlaceholder?: string;
14
- /**
15
- * Attrs are passed directly to the input element as props
16
- */
17
- attrs?: T_InputText['attrs'] | T_InputNumber['attrs'];
18
- unitsAttr?: T_InputSelect['attrs'];
19
- config?: {
20
- valueType?: 'text' | 'number';
21
- options: T_InputSelectOptionList;
22
- };
23
- };
@@ -1,19 +0,0 @@
1
- import './FlyValueUnit.scss';
2
- import type { T_InputValueUnit, T_ValueUnitValue } from './FlyValueUnit.types';
3
- type __VLS_Props = {
4
- modelValue?: T_ValueUnitValue;
5
- input?: T_InputValueUnit;
6
- };
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
- focus: () => any;
9
- blur: () => any;
10
- change: (v: T_ValueUnitValue) => any;
11
- "update:modelValue": (v: T_ValueUnitValue) => any;
12
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- onFocus?: (() => any) | undefined;
14
- onBlur?: (() => any) | undefined;
15
- onChange?: ((v: T_ValueUnitValue) => any) | undefined;
16
- "onUpdate:modelValue"?: ((v: T_ValueUnitValue) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: typeof __VLS_export;
19
- export default _default;
@@ -1,13 +0,0 @@
1
- import type { FormItemRule } from 'element-plus';
2
- import type { Composer } from 'vue-i18n';
3
- import { type checkInputRange } from '../../utils/validators';
4
- type InputTriggers = 'blur' | 'change';
5
- export declare const requiredField: (fieldLabel?: string, trigger?: InputTriggers, useRequiredMessage?: boolean, composer?: Composer) => FormItemRule;
6
- export declare const checkInputRangeValidator: (validator: ReturnType<typeof checkInputRange>, trigger?: InputTriggers) => FormItemRule;
7
- export declare const requiredFieldNumber: (languageKey?: string, trigger?: InputTriggers, composer?: Composer) => FormItemRule;
8
- export declare const requiredFieldNumberSelect: (label?: string, trigger?: InputTriggers, useRequiredMessage?: boolean, composer?: Composer) => FormItemRule;
9
- export declare const requiredFieldValueUnit: (label: string | undefined, trigger: InputTriggers | undefined, useRequiredMessage: boolean | undefined, required: boolean | undefined, options: {
10
- valueType?: "text" | "number";
11
- }, composer?: Composer) => FormItemRule;
12
- export declare const requiredFieldArray: (label?: string, trigger?: InputTriggers, useRequiredMessage?: boolean, composer?: Composer) => FormItemRule;
13
- export {};
@@ -1,7 +0,0 @@
1
- import { type Component } from 'vue';
2
- export type T_FlyIconTypes = 'mdi' | 'ri';
3
- export type T_FlyIcon = string | Component;
4
- export type T_FlyIconProps = {
5
- type?: T_FlyIconTypes;
6
- icon: T_FlyIcon;
7
- };
@@ -1,6 +0,0 @@
1
- import type { T_FlyIconProps } from './FlyIcon.types.ts';
2
- declare const __VLS_export: import("vue").DefineComponent<T_FlyIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<T_FlyIconProps> & Readonly<{}>, {
3
- type: import("./FlyIcon.types.ts").T_FlyIconTypes;
4
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
- declare const _default: typeof __VLS_export;
6
- export default _default;
@@ -1,4 +0,0 @@
1
- import FlyIcon from './FlyIcon.vue';
2
- export default FlyIcon;
3
- export { FlyIcon };
4
- export type { T_FlyIconProps } from './FlyIcon.types.ts';
@@ -1,2 +0,0 @@
1
- export { default as FlyIcon } from './fly-icon';
2
- export type * from './fly-icon';
@@ -1,4 +0,0 @@
1
- export * from './navigation';
2
- export * from './basic';
3
- export * from './feedback';
4
- export * from './general';
@@ -1,9 +0,0 @@
1
- export type T_FlyStepItem = {
2
- label: string;
3
- id: number;
4
- clickable?: boolean;
5
- };
6
- export type T_FlyStepProps = {
7
- steps: T_FlyStepItem[];
8
- activeIndex: number;
9
- };
@@ -1,9 +0,0 @@
1
- import './FlySteps.element.scss';
2
- import type { T_FlyStepProps } from './FlySteps.types';
3
- declare const __VLS_export: import("vue").DefineComponent<T_FlyStepProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
- "change-step": (data: number) => any;
5
- }, string, import("vue").PublicProps, Readonly<T_FlyStepProps> & Readonly<{
6
- "onChange-step"?: ((data: number) => any) | undefined;
7
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
@@ -1,4 +0,0 @@
1
- import FlySteps from './FlySteps.vue';
2
- export default FlySteps;
3
- export { FlySteps };
4
- export type { T_FlyStepProps, T_FlyStepItem } from './FlySteps.types';
@@ -1,2 +0,0 @@
1
- export * from './menu';
2
- export * from './fly-steps';
@@ -1,7 +0,0 @@
1
- import type { T_FlyIconProps } from '../../../general/fly-icon';
2
- export type T_FlyMiniSidebarItem = {
3
- key: string | number;
4
- label: string;
5
- path: string;
6
- icon: T_FlyIconProps;
7
- };
@@ -1,8 +0,0 @@
1
- import './FlyMiniSidebar.element.scss';
2
- import type { T_FlyMiniSidebarItem } from './FlyMiniSidebar.types';
3
- type __VLS_Props = {
4
- menu: T_FlyMiniSidebarItem[];
5
- };
6
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const _default: typeof __VLS_export;
8
- export default _default;
@@ -1,7 +0,0 @@
1
- import type { T_FlyMiniSidebarItem } from './FlyMiniSidebar.types';
2
- type __VLS_Props = {
3
- menu: T_FlyMiniSidebarItem;
4
- };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- declare const _default: typeof __VLS_export;
7
- export default _default;
@@ -1,4 +0,0 @@
1
- import FlyMiniSidebar from './FlyMiniSidebar.vue';
2
- export default FlyMiniSidebar;
3
- export { FlyMiniSidebar };
4
- export type { T_FlyMiniSidebarItem } from './FlyMiniSidebar.types';
@@ -1,29 +0,0 @@
1
- import type { T_FlyIconProps } from '../../../general/fly-icon/FlyIcon.types';
2
- export type T_FlySidebarBase = {
3
- index: string;
4
- label?: string;
5
- icon?: T_FlyIconProps;
6
- disabled?: boolean;
7
- };
8
- export type T_FlySidebarItem = T_FlySidebarBase & {
9
- type: 'item';
10
- };
11
- export type T_FlySidebarSubMenu = T_FlySidebarBase & {
12
- type: 'submenu';
13
- children: T_FlySidebarNode[];
14
- };
15
- export type T_FlySidebarGroup = {
16
- index: string;
17
- type: 'group';
18
- label?: string;
19
- children: T_FlySidebarItem[];
20
- };
21
- export type T_FlySidebarNode = T_FlySidebarItem | T_FlySidebarSubMenu | T_FlySidebarGroup;
22
- export type T_FlySidebar = T_FlySidebarNode[];
23
- export type T_FlySidebarProps = {
24
- isCollapsed?: boolean;
25
- router?: boolean;
26
- defaultActive?: string;
27
- menu: T_FlySidebarNode[];
28
- height?: string;
29
- };
@@ -1,8 +0,0 @@
1
- import './FlySidebar.element.scss';
2
- import type { T_FlySidebarProps } from './FlySidebar.types';
3
- declare const __VLS_export: import("vue").DefineComponent<T_FlySidebarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<T_FlySidebarProps> & Readonly<{}>, {
4
- router: boolean;
5
- defaultActive: string;
6
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const _default: typeof __VLS_export;
8
- export default _default;
@@ -1,7 +0,0 @@
1
- import type { T_FlySidebarNode } from './FlySidebar.types';
2
- type __VLS_Props = {
3
- node: T_FlySidebarNode;
4
- };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- declare const _default: typeof __VLS_export;
7
- export default _default;
@@ -1,4 +0,0 @@
1
- import FlySidebar from './FlySidebar.vue';
2
- export default FlySidebar;
3
- export { FlySidebar };
4
- export type { T_FlySidebar, T_FlySidebarNode, T_FlySidebarGroup, T_FlySidebarSubMenu, T_FlySidebarBase } from './FlySidebar.types';
@@ -1,4 +0,0 @@
1
- export { default as FlySidebar } from './fly-sidebar';
2
- export type * from './fly-sidebar';
3
- export { default as FlyMiniSidebar } from './fly-mini-sidebar';
4
- export type * from './fly-mini-sidebar';