@c3labsbr/vuetify-elements 1.16.2 → 1.18.1
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 +34 -0
- package/dist/components/atoms/CInput/CInput.vue.d.ts +16 -16
- package/dist/components/atoms/CInput/CInputNumber.vue.d.ts +1783 -1923
- package/dist/components/atoms/CInput/CInputNumber.vue.d.ts.map +1 -1
- package/dist/components/atoms/CInput/CInputSelect.vue.d.ts +1990 -3256
- package/dist/components/atoms/CInput/CInputSelect.vue.d.ts.map +1 -1
- package/dist/components/atoms/CInput/CInputText.vue.d.ts +16 -16
- package/dist/components/atoms/CInput/CMaskInput.vue.d.ts +16 -16
- package/dist/components/molecules/ColorPaletteField.vue.d.ts +17 -0
- package/dist/components/molecules/ColorPaletteField.vue.d.ts.map +1 -0
- package/dist/components/molecules/DateTimePicker.vue.d.ts +141 -0
- package/dist/components/molecules/DateTimePicker.vue.d.ts.map +1 -0
- package/dist/components/molecules/HourField.vue.d.ts +20 -0
- package/dist/components/molecules/HourField.vue.d.ts.map +1 -0
- package/dist/components/molecules/RemoteMultipleSearchField.vue.d.ts +31 -0
- package/dist/components/molecules/RemoteMultipleSearchField.vue.d.ts.map +1 -0
- package/dist/components/molecules/RemoteSearchField.vue.d.ts +37 -0
- package/dist/components/molecules/RemoteSearchField.vue.d.ts.map +1 -0
- package/dist/components/molecules/SearchAutocomplete.vue.d.ts +1 -1
- package/dist/components/molecules/SearchAutocomplete.vue.d.ts.map +1 -1
- package/dist/components/molecules/__tests__/DateTimePicker.spec.d.ts +2 -0
- package/dist/components/molecules/__tests__/DateTimePicker.spec.d.ts.map +1 -0
- package/dist/components/molecules/__tests__/FormFieldComponents.spec.d.ts +2 -0
- package/dist/components/molecules/__tests__/FormFieldComponents.spec.d.ts.map +1 -0
- package/dist/components/molecules/__tests__/RemoteSearchField.spec.d.ts +2 -0
- package/dist/components/molecules/__tests__/RemoteSearchField.spec.d.ts.map +1 -0
- package/dist/components/organisms/FormFields.vue.d.ts +2 -0
- package/dist/components/organisms/FormFields.vue.d.ts.map +1 -1
- package/dist/components/organisms/GenericDataTable.vue.d.ts +23 -13
- package/dist/components/organisms/GenericDataTable.vue.d.ts.map +1 -1
- package/dist/components/organisms/GenericTablePagination.vue.d.ts.map +1 -1
- package/dist/components/organisms/TableColumnMenu.vue.d.ts +23 -0
- package/dist/components/organisms/TableColumnMenu.vue.d.ts.map +1 -0
- package/dist/components/organisms/TableHeader.vue.d.ts +11 -2
- package/dist/components/organisms/TableHeader.vue.d.ts.map +1 -1
- package/dist/components/organisms/TableHeaderContextMenu.vue.d.ts +18 -0
- package/dist/components/organisms/TableHeaderContextMenu.vue.d.ts.map +1 -0
- package/dist/components/organisms/__tests__/FormFields.spec.d.ts +2 -0
- package/dist/components/organisms/__tests__/FormFields.spec.d.ts.map +1 -0
- package/dist/components/organisms/__tests__/TableColumnMenu.spec.d.ts +2 -0
- package/dist/components/organisms/__tests__/TableColumnMenu.spec.d.ts.map +1 -0
- package/dist/components/templates/GenericForm.vue.d.ts +69 -3
- package/dist/components/templates/GenericForm.vue.d.ts.map +1 -1
- package/dist/components/templates/GenericFormFlat.vue.d.ts +51 -1
- package/dist/components/templates/GenericFormFlat.vue.d.ts.map +1 -1
- package/dist/components/templates/GenericTable.vue.d.ts +14 -1
- package/dist/components/templates/GenericTable.vue.d.ts.map +1 -1
- package/dist/components/templates/__tests__/GenericForm.spec.d.ts +2 -0
- package/dist/components/templates/__tests__/GenericForm.spec.d.ts.map +1 -0
- package/dist/components/templates/__tests__/GenericFormFlat.spec.d.ts +2 -0
- package/dist/components/templates/__tests__/GenericFormFlat.spec.d.ts.map +1 -0
- package/dist/components/templates/__tests__/GenericTable.spec.d.ts +2 -0
- package/dist/components/templates/__tests__/GenericTable.spec.d.ts.map +1 -0
- package/dist/components/templates/form-props.d.ts +36 -0
- package/dist/components/templates/form-props.d.ts.map +1 -1
- package/dist/composables/useAsyncAutocomplete.d.ts +1 -1
- package/dist/composables/useAsyncAutocomplete.d.ts.map +1 -1
- package/dist/helpers/__tests__/column-filters.spec.d.ts +2 -0
- package/dist/helpers/__tests__/column-filters.spec.d.ts.map +1 -0
- package/dist/helpers/__tests__/form-masks.spec.d.ts +2 -0
- package/dist/helpers/__tests__/form-masks.spec.d.ts.map +1 -0
- package/dist/helpers/__tests__/headers.spec.d.ts +2 -0
- package/dist/helpers/__tests__/headers.spec.d.ts.map +1 -0
- package/dist/helpers/__tests__/useFieldHelpers.spec.d.ts +2 -0
- package/dist/helpers/__tests__/useFieldHelpers.spec.d.ts.map +1 -0
- package/dist/helpers/column-filters.d.ts +18 -0
- package/dist/helpers/column-filters.d.ts.map +1 -0
- package/dist/helpers/form-masks.d.ts +11 -0
- package/dist/helpers/form-masks.d.ts.map +1 -0
- package/dist/helpers/headers.d.ts +4 -0
- package/dist/helpers/headers.d.ts.map +1 -0
- package/dist/index-4K5vF4Qp.js +57910 -0
- package/dist/index-_vxQgiDi.cjs +114 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/{index.es-Awb9H3-j.cjs → index.es-C5sq0zxh.cjs} +1 -1
- package/dist/{index.es-D79CRK6w.js → index.es-Dl_-1FM5.js} +1 -1
- package/dist/infra/i18n/en_us/words.json.d.ts +12 -1
- package/dist/infra/i18n/interfaces.d.ts +11 -0
- package/dist/infra/i18n/interfaces.d.ts.map +1 -1
- package/dist/infra/i18n/pt_br/words.json.d.ts +12 -1
- package/dist/interfaces/genericForm.d.ts +6 -2
- package/dist/interfaces/genericForm.d.ts.map +1 -1
- package/dist/interfaces/genericTable.d.ts +18 -0
- package/dist/interfaces/genericTable.d.ts.map +1 -1
- package/dist/plugin.d.ts +2 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/purify.es-B0KlbA1O.js +1520 -0
- package/dist/purify.es-Bzi2ApXt.cjs +3 -0
- package/dist/utils/cell-text.d.ts +2 -0
- package/dist/utils/cell-text.d.ts.map +1 -0
- package/dist/utils/t.d.ts +1 -0
- package/dist/utils/t.d.ts.map +1 -1
- package/dist/vuetify-elements.cjs.js +1 -1
- package/dist/vuetify-elements.css +1 -1
- package/dist/vuetify-elements.es.js +30 -15
- package/package.json +9 -5
- package/dist/index-B8BHvXMN.cjs +0 -110
- package/dist/index-BKkCcn3r.js +0 -50744
- package/dist/purify.es-BrrCv_hE.js +0 -864
- package/dist/purify.es-DCvfCVUO.cjs +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilterType, IHeader, IPagination } from '../../interfaces/genericTable';
|
|
1
|
+
import { ColumnMenuMode, FetchColumnValuesFn, FilterType, IColumnFilter, IHeader, IPagination, TableDataMode } from '../../interfaces/genericTable';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
items: any[];
|
|
4
4
|
headers: IHeader[];
|
|
@@ -8,11 +8,21 @@ type __VLS_Props = {
|
|
|
8
8
|
disableEdit?: boolean;
|
|
9
9
|
filterFn?: (filters: Array<FilterType>) => void;
|
|
10
10
|
editFn?: (id: string | number, field: string, value: any) => void;
|
|
11
|
+
columnMenu?: ColumnMenuMode;
|
|
12
|
+
sortMode?: TableDataMode;
|
|
13
|
+
filterMode?: TableDataMode;
|
|
14
|
+
fetchColumnValues?: FetchColumnValuesFn;
|
|
15
|
+
rowProps?: (data: {
|
|
16
|
+
item: any;
|
|
17
|
+
index: number;
|
|
18
|
+
}) => Record<string, any>;
|
|
19
|
+
rowClickable?: boolean;
|
|
11
20
|
};
|
|
12
21
|
type __VLS_PublicProps = {
|
|
13
22
|
'sortedHeaders'?: IHeader[];
|
|
14
23
|
'pagination'?: IPagination;
|
|
15
24
|
'ordering'?: string;
|
|
25
|
+
'columnFilters'?: IColumnFilter[];
|
|
16
26
|
} & __VLS_Props;
|
|
17
27
|
declare function __VLS_template(): {
|
|
18
28
|
attrs: Partial<{}>;
|
|
@@ -154,10 +164,8 @@ declare function __VLS_template(): {
|
|
|
154
164
|
"onUpdate:options"?: ((value: any) => any) | undefined;
|
|
155
165
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
156
166
|
"onUpdate:sortBy"?: ((value: any) => any) | undefined;
|
|
157
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "style" | "density" | "tag" | "sticky" | "
|
|
158
|
-
$attrs:
|
|
159
|
-
[x: string]: unknown;
|
|
160
|
-
};
|
|
167
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "style" | "density" | "tag" | "sticky" | "returnObject" | "selectStrategy" | "expandIcon" | "collapseIcon" | "hideNoData" | "noDataText" | "mobile" | "firstIcon" | "prevIcon" | "nextIcon" | "lastIcon" | "hover" | "filterMode" | "sortBy" | "noFilter" | "expandOnClick" | "showExpand" | "expanded" | "initialSortOrder" | "multiSort" | "mustSort" | "groupBy" | "showSelect" | "page" | "itemsPerPage" | "itemsPerPageText" | "pageText" | "firstPageLabel" | "prevPageLabel" | "nextPageLabel" | "lastPageLabel" | "itemsPerPageOptions" | "showCurrentPage" | "disableSort" | "sortAscIcon" | "sortDescIcon" | "groupCollapseIcon" | "groupExpandIcon" | "loadingText" | "fixedHeader" | "fixedFooter" | "striped" | "hideDefaultBody" | "hideDefaultFooter" | "hideDefaultHeader">;
|
|
168
|
+
$attrs: import('vue').Attrs;
|
|
161
169
|
$refs: {
|
|
162
170
|
[x: string]: unknown;
|
|
163
171
|
};
|
|
@@ -352,7 +360,7 @@ declare function __VLS_template(): {
|
|
|
352
360
|
"update:groupBy": (value: any) => true;
|
|
353
361
|
"update:expanded": (value: any) => true;
|
|
354
362
|
"update:currentItems": (value: any) => true;
|
|
355
|
-
}, "$children" | "v-slots" | "v-slot:default" | "v-slot:loader" | "modelValue" | "headers" | "itemValue" | "items" | "v-slot:item" | "update:modelValue" | "v-slot:no-data" | "
|
|
363
|
+
}, "$children" | "v-slots" | "v-slot:default" | "v-slot:loader" | "modelValue" | "headers" | "itemValue" | "items" | "v-slot:item" | "update:modelValue" | "v-slot:no-data" | "rowProps" | "cellProps" | "itemSelectable" | "v-slot:body" | "v-slot:body.append" | "v-slot:body.prepend" | "v-slot:bottom" | "v-slot:colgroup" | "v-slot:data-table-group" | "v-slot:data-table-select" | "v-slot:expanded-row" | "v-slot:footer.prepend" | "v-slot:group-header" | "v-slot:group-summary" | "v-slot:headers" | "v-slot:loading" | "v-slot:tbody" | "v-slot:tfoot" | "v-slot:thead" | "v-slot:top" | `v-slot:header.${string}` | `v-slot:item.${string}`>, string, {
|
|
356
364
|
style: import('vue').StyleValue;
|
|
357
365
|
mobile: boolean | null;
|
|
358
366
|
filterMode: import('vuetify/lib/composables/filter.mjs').FilterMode;
|
|
@@ -654,7 +662,7 @@ declare function __VLS_template(): {
|
|
|
654
662
|
"onUpdate:options"?: ((value: any) => any) | undefined;
|
|
655
663
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
656
664
|
"onUpdate:sortBy"?: ((value: any) => any) | undefined;
|
|
657
|
-
}, "style" | "density" | "tag" | "sticky" | "
|
|
665
|
+
}, "style" | "density" | "tag" | "sticky" | "returnObject" | "selectStrategy" | "expandIcon" | "collapseIcon" | "hideNoData" | "noDataText" | "mobile" | "firstIcon" | "prevIcon" | "nextIcon" | "lastIcon" | "hover" | "filterMode" | "sortBy" | "noFilter" | "expandOnClick" | "showExpand" | "expanded" | "initialSortOrder" | "multiSort" | "mustSort" | "groupBy" | "showSelect" | "page" | "itemsPerPage" | "itemsPerPageText" | "pageText" | "firstPageLabel" | "prevPageLabel" | "nextPageLabel" | "lastPageLabel" | "itemsPerPageOptions" | "showCurrentPage" | "disableSort" | "sortAscIcon" | "sortDescIcon" | "groupCollapseIcon" | "groupExpandIcon" | "loadingText" | "fixedHeader" | "fixedFooter" | "striped" | "hideDefaultBody" | "hideDefaultFooter" | "hideDefaultHeader"> & {} & import('vue').ComponentCustomProperties & {} & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
658
666
|
items?: any[];
|
|
659
667
|
itemValue?: import('vuetify/lib/util/helpers.mjs').SelectItemKey<any>;
|
|
660
668
|
rowProps?: import('vuetify/lib/components/VDataTable/types.mjs').RowProps<any>;
|
|
@@ -692,13 +700,17 @@ declare function __VLS_template(): {
|
|
|
692
700
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
693
701
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
694
702
|
"update:sort-by": (...args: any[]) => void;
|
|
703
|
+
"row-click": (...args: any[]) => void;
|
|
695
704
|
"update:pagination": (value: IPagination) => void;
|
|
696
705
|
"update:sortedHeaders": (value: IHeader[]) => void;
|
|
706
|
+
"update:columnFilters": (value: IColumnFilter[]) => void;
|
|
697
707
|
"update:ordering": (value: string) => void;
|
|
698
708
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
699
709
|
"onUpdate:pagination"?: (value: IPagination) => any;
|
|
700
710
|
"onUpdate:sortedHeaders"?: (value: IHeader[]) => any;
|
|
711
|
+
"onUpdate:columnFilters"?: (value: IColumnFilter[]) => any;
|
|
701
712
|
"onUpdate:sort-by"?: (...args: any[]) => any;
|
|
713
|
+
"onRow-click"?: (...args: any[]) => any;
|
|
702
714
|
"onUpdate:ordering"?: (value: string) => any;
|
|
703
715
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
704
716
|
tableRef: {
|
|
@@ -831,10 +843,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
831
843
|
"onUpdate:options"?: ((value: any) => any) | undefined;
|
|
832
844
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
833
845
|
"onUpdate:sortBy"?: ((value: any) => any) | undefined;
|
|
834
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "style" | "density" | "tag" | "sticky" | "
|
|
835
|
-
$attrs:
|
|
836
|
-
[x: string]: unknown;
|
|
837
|
-
};
|
|
846
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "style" | "density" | "tag" | "sticky" | "returnObject" | "selectStrategy" | "expandIcon" | "collapseIcon" | "hideNoData" | "noDataText" | "mobile" | "firstIcon" | "prevIcon" | "nextIcon" | "lastIcon" | "hover" | "filterMode" | "sortBy" | "noFilter" | "expandOnClick" | "showExpand" | "expanded" | "initialSortOrder" | "multiSort" | "mustSort" | "groupBy" | "showSelect" | "page" | "itemsPerPage" | "itemsPerPageText" | "pageText" | "firstPageLabel" | "prevPageLabel" | "nextPageLabel" | "lastPageLabel" | "itemsPerPageOptions" | "showCurrentPage" | "disableSort" | "sortAscIcon" | "sortDescIcon" | "groupCollapseIcon" | "groupExpandIcon" | "loadingText" | "fixedHeader" | "fixedFooter" | "striped" | "hideDefaultBody" | "hideDefaultFooter" | "hideDefaultHeader">;
|
|
847
|
+
$attrs: import('vue').Attrs;
|
|
838
848
|
$refs: {
|
|
839
849
|
[x: string]: unknown;
|
|
840
850
|
};
|
|
@@ -1029,7 +1039,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1029
1039
|
"update:groupBy": (value: any) => true;
|
|
1030
1040
|
"update:expanded": (value: any) => true;
|
|
1031
1041
|
"update:currentItems": (value: any) => true;
|
|
1032
|
-
}, "$children" | "v-slots" | "v-slot:default" | "v-slot:loader" | "modelValue" | "headers" | "itemValue" | "items" | "v-slot:item" | "update:modelValue" | "v-slot:no-data" | "
|
|
1042
|
+
}, "$children" | "v-slots" | "v-slot:default" | "v-slot:loader" | "modelValue" | "headers" | "itemValue" | "items" | "v-slot:item" | "update:modelValue" | "v-slot:no-data" | "rowProps" | "cellProps" | "itemSelectable" | "v-slot:body" | "v-slot:body.append" | "v-slot:body.prepend" | "v-slot:bottom" | "v-slot:colgroup" | "v-slot:data-table-group" | "v-slot:data-table-select" | "v-slot:expanded-row" | "v-slot:footer.prepend" | "v-slot:group-header" | "v-slot:group-summary" | "v-slot:headers" | "v-slot:loading" | "v-slot:tbody" | "v-slot:tfoot" | "v-slot:thead" | "v-slot:top" | `v-slot:header.${string}` | `v-slot:item.${string}`>, string, {
|
|
1033
1043
|
style: import('vue').StyleValue;
|
|
1034
1044
|
mobile: boolean | null;
|
|
1035
1045
|
filterMode: import('vuetify/lib/composables/filter.mjs').FilterMode;
|
|
@@ -1331,7 +1341,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1331
1341
|
"onUpdate:options"?: ((value: any) => any) | undefined;
|
|
1332
1342
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
1333
1343
|
"onUpdate:sortBy"?: ((value: any) => any) | undefined;
|
|
1334
|
-
}, "style" | "density" | "tag" | "sticky" | "
|
|
1344
|
+
}, "style" | "density" | "tag" | "sticky" | "returnObject" | "selectStrategy" | "expandIcon" | "collapseIcon" | "hideNoData" | "noDataText" | "mobile" | "firstIcon" | "prevIcon" | "nextIcon" | "lastIcon" | "hover" | "filterMode" | "sortBy" | "noFilter" | "expandOnClick" | "showExpand" | "expanded" | "initialSortOrder" | "multiSort" | "mustSort" | "groupBy" | "showSelect" | "page" | "itemsPerPage" | "itemsPerPageText" | "pageText" | "firstPageLabel" | "prevPageLabel" | "nextPageLabel" | "lastPageLabel" | "itemsPerPageOptions" | "showCurrentPage" | "disableSort" | "sortAscIcon" | "sortDescIcon" | "groupCollapseIcon" | "groupExpandIcon" | "loadingText" | "fixedHeader" | "fixedFooter" | "striped" | "hideDefaultBody" | "hideDefaultFooter" | "hideDefaultHeader"> & {} & import('vue').ComponentCustomProperties & {} & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
1335
1345
|
items?: any[];
|
|
1336
1346
|
itemValue?: import('vuetify/lib/util/helpers.mjs').SelectItemKey<any>;
|
|
1337
1347
|
rowProps?: import('vuetify/lib/components/VDataTable/types.mjs').RowProps<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericDataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/GenericDataTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GenericDataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/GenericDataTable.vue"],"names":[],"mappings":"AAsNE,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,OAAO,EACP,WAAW,EAEX,aAAa,EACd,MAAM,+BAA+B,CAAC;AA8DvC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAChD,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAClE,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;IACxC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,GAAG,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvE,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AA2DJ,KAAK,iBAAiB,GAAG;IACzB,eAAe,CAAC,EAAE,OAAO,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,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.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GenericTablePagination.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/GenericTablePagination.vue"],"names":[],"mappings":"AAsHE,OAAO,EAAW,WAAW,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmVvE,wBAsBG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FetchColumnValuesFn, IColumnFilter, IHeader, TableDataMode } from '../../interfaces/genericTable';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
column: IHeader;
|
|
4
|
+
headers: IHeader[];
|
|
5
|
+
items: any[];
|
|
6
|
+
filters: IColumnFilter[];
|
|
7
|
+
sortOrder: 'asc' | 'desc' | null;
|
|
8
|
+
filterMode: TableDataMode;
|
|
9
|
+
fetchColumnValues?: FetchColumnValuesFn;
|
|
10
|
+
isLastColumn?: boolean;
|
|
11
|
+
filterEnabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
|
+
sort: (order: "asc" | "desc") => any;
|
|
15
|
+
"update:filters": (filters: IColumnFilter[]) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onSort?: (order: "asc" | "desc") => any;
|
|
18
|
+
"onUpdate:filters"?: (filters: IColumnFilter[]) => any;
|
|
19
|
+
}>, {
|
|
20
|
+
filterEnabled: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
export default _default;
|
|
23
|
+
//# sourceMappingURL=TableColumnMenu.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableColumnMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/TableColumnMenu.vue"],"names":[],"mappings":"AAuWE,OAAO,EACL,mBAAmB,EACnB,aAAa,EAEb,OAAO,EACP,aAAa,EACd,MAAM,+BAA+B,CAAC;AAoBvC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,SAAS,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,UAAU,EAAE,aAAa,CAAC;IAC1B,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;;;;;;;;mBADgB,OAAO;;AAolB3B,wBASG"}
|
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import { FilterType, IconValue, IHeader } from '../../interfaces/genericTable';
|
|
1
|
+
import { ColumnMenuMode, FetchColumnValuesFn, FilterType, IColumnFilter, IconValue, IHeader, ISortItem, TableDataMode } from '../../interfaces/genericTable';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
columns: Array<IHeader>;
|
|
4
4
|
isSorted: (column: any) => boolean;
|
|
5
5
|
getSortIcon: (column: any) => IconValue;
|
|
6
6
|
toggleSort: (column: any) => void;
|
|
7
7
|
filterFn?: (filters: Array<FilterType>) => void;
|
|
8
|
+
columnMenu?: ColumnMenuMode;
|
|
9
|
+
items?: any[];
|
|
10
|
+
sortBy?: ISortItem[];
|
|
11
|
+
setSort?: (key: string, order: 'asc' | 'desc' | null) => void;
|
|
12
|
+
filterMode?: TableDataMode;
|
|
13
|
+
fetchColumnValues?: FetchColumnValuesFn;
|
|
8
14
|
};
|
|
9
15
|
type __VLS_PublicProps = {
|
|
16
|
+
'columnFilters'?: IColumnFilter[];
|
|
10
17
|
'sortedHeaders'?: IHeader[];
|
|
11
18
|
} & __VLS_Props;
|
|
12
19
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
20
|
"update:sortedHeaders": (value: IHeader[]) => any;
|
|
21
|
+
"update:columnFilters": (value: IColumnFilter[]) => any;
|
|
14
22
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
23
|
"onUpdate:sortedHeaders"?: (value: IHeader[]) => any;
|
|
16
|
-
|
|
24
|
+
"onUpdate:columnFilters"?: (value: IColumnFilter[]) => any;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
26
|
export default _default;
|
|
18
27
|
//# sourceMappingURL=TableHeader.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/TableHeader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/TableHeader.vue"],"names":[],"mappings":"AAuOE,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,SAAS,EACT,OAAO,EACP,SAAS,EACT,aAAa,EACd,MAAM,+BAA+B,CAAC;AAQvC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,CAAC;IACnC,WAAW,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,SAAS,CAAC;IACxC,UAAU,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAChD,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9D,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;CACzC,CAAC;AAyGJ,KAAK,iBAAiB,GAAG;IACzB,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,EAAE,CAAC;CAC3B,GAAG,WAAW,CAAC;;;;;;;;AAgPhB,wBAOG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IHeader } from '../../interfaces/genericTable';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
target: [number, number];
|
|
4
|
+
column: IHeader | null;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = {
|
|
7
|
+
modelValue?: boolean;
|
|
8
|
+
} & __VLS_Props;
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: boolean) => any;
|
|
11
|
+
} & {
|
|
12
|
+
action: (action: "left" | "right" | "hide") => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
onAction?: (action: "left" | "right" | "hide") => any;
|
|
15
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=TableHeaderContextMenu.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableHeaderContextMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/TableHeaderContextMenu.vue"],"names":[],"mappings":"AAiDE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAKxD,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;CACxB,CAAC;AAcJ,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;;;;AA2IhB,wBAQG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormFields.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/__tests__/FormFields.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableColumnMenu.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/__tests__/TableColumnMenu.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { IField } from '../../interfaces/genericForm';
|
|
1
2
|
declare function __VLS_template(): {
|
|
2
3
|
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
5
|
+
beforeClose?(_: {}): any;
|
|
4
6
|
custom?(_: {}): any;
|
|
5
7
|
};
|
|
6
8
|
refs: {};
|
|
@@ -14,7 +16,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
14
16
|
default: boolean;
|
|
15
17
|
};
|
|
16
18
|
fields: {
|
|
17
|
-
type: () =>
|
|
19
|
+
type: () => IField[];
|
|
18
20
|
required: boolean;
|
|
19
21
|
default: () => any[];
|
|
20
22
|
};
|
|
@@ -73,9 +75,39 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
73
75
|
required: boolean;
|
|
74
76
|
default: boolean;
|
|
75
77
|
};
|
|
78
|
+
validationMode: {
|
|
79
|
+
type: import('vue').PropType<"live" | "submit">;
|
|
80
|
+
required: boolean;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
disableSubmit: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
required: boolean;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
searchMode: {
|
|
89
|
+
type: import('vue').PropType<"native" | "remote">;
|
|
90
|
+
required: boolean;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
maskMode: {
|
|
94
|
+
type: import('vue').PropType<"unmasked" | "masked">;
|
|
95
|
+
required: boolean;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
76
98
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
77
99
|
cancel: () => any;
|
|
78
100
|
submit: (data: any) => any;
|
|
101
|
+
updateField: (payload: {
|
|
102
|
+
field: string;
|
|
103
|
+
value: any;
|
|
104
|
+
}) => any;
|
|
105
|
+
updateSearch: (payload: {
|
|
106
|
+
field: string;
|
|
107
|
+
value: string;
|
|
108
|
+
}) => any;
|
|
109
|
+
removeCount: (field: IField) => any;
|
|
110
|
+
addCount: (payload: [field: IField, count: number]) => any;
|
|
79
111
|
"update:isDialogVisible": (value: boolean) => any;
|
|
80
112
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
81
113
|
isDialogVisible: {
|
|
@@ -84,7 +116,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
84
116
|
default: boolean;
|
|
85
117
|
};
|
|
86
118
|
fields: {
|
|
87
|
-
type: () =>
|
|
119
|
+
type: () => IField[];
|
|
88
120
|
required: boolean;
|
|
89
121
|
default: () => any[];
|
|
90
122
|
};
|
|
@@ -143,9 +175,39 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
143
175
|
required: boolean;
|
|
144
176
|
default: boolean;
|
|
145
177
|
};
|
|
178
|
+
validationMode: {
|
|
179
|
+
type: import('vue').PropType<"live" | "submit">;
|
|
180
|
+
required: boolean;
|
|
181
|
+
default: string;
|
|
182
|
+
};
|
|
183
|
+
disableSubmit: {
|
|
184
|
+
type: BooleanConstructor;
|
|
185
|
+
required: boolean;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
searchMode: {
|
|
189
|
+
type: import('vue').PropType<"native" | "remote">;
|
|
190
|
+
required: boolean;
|
|
191
|
+
default: string;
|
|
192
|
+
};
|
|
193
|
+
maskMode: {
|
|
194
|
+
type: import('vue').PropType<"unmasked" | "masked">;
|
|
195
|
+
required: boolean;
|
|
196
|
+
default: string;
|
|
197
|
+
};
|
|
146
198
|
}>> & Readonly<{
|
|
147
199
|
onCancel?: () => any;
|
|
148
200
|
onSubmit?: (data: any) => any;
|
|
201
|
+
onUpdateField?: (payload: {
|
|
202
|
+
field: string;
|
|
203
|
+
value: any;
|
|
204
|
+
}) => any;
|
|
205
|
+
onUpdateSearch?: (payload: {
|
|
206
|
+
field: string;
|
|
207
|
+
value: string;
|
|
208
|
+
}) => any;
|
|
209
|
+
onRemoveCount?: (field: IField) => any;
|
|
210
|
+
onAddCount?: (payload: [field: IField, count: number]) => any;
|
|
149
211
|
"onUpdate:isDialogVisible"?: (value: boolean) => any;
|
|
150
212
|
}>, {
|
|
151
213
|
disabled: boolean;
|
|
@@ -155,12 +217,16 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
155
217
|
title: string;
|
|
156
218
|
subtitle: string;
|
|
157
219
|
addBtnText: string;
|
|
220
|
+
maskMode: "unmasked" | "masked";
|
|
221
|
+
searchMode: "native" | "remote";
|
|
158
222
|
noPadding: boolean;
|
|
159
|
-
fields:
|
|
223
|
+
fields: IField[];
|
|
160
224
|
noActionButtons: boolean;
|
|
161
225
|
isDialogVisible: boolean;
|
|
162
226
|
initialData: import('./form-props').IInitialData;
|
|
163
227
|
notClearOnClose: boolean;
|
|
228
|
+
validationMode: "submit" | "live";
|
|
229
|
+
disableSubmit: boolean;
|
|
164
230
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
165
231
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
166
232
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/templates/GenericForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GenericForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/templates/GenericForm.vue"],"names":[],"mappings":"AAmGE,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAkDxD,iBAAS,cAAc;WAmLT,OAAO,IAA6B;;6BAXhB,GAAG;wBACR,GAAG;;;;EAe/B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA/OoB,MAAM;eAAS,GAAG;;;eACjB,MAAM;eAAS,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eADtB,MAAM;eAAS,GAAG;;;eACjB,MAAM;eAAS,MAAM;;;;;;;;;;;;;;;;;;;;;;;4EAwP7D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -62,14 +62,38 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
62
62
|
required: boolean;
|
|
63
63
|
default: boolean;
|
|
64
64
|
};
|
|
65
|
+
validationMode: {
|
|
66
|
+
type: import('vue').PropType<"live" | "submit">;
|
|
67
|
+
required: boolean;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
disableSubmit: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
required: boolean;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
searchMode: {
|
|
76
|
+
type: import('vue').PropType<"native" | "remote">;
|
|
77
|
+
required: boolean;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
maskMode: {
|
|
81
|
+
type: import('vue').PropType<"unmasked" | "masked">;
|
|
82
|
+
required: boolean;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
65
85
|
modelValue: {
|
|
66
86
|
type: import('vue').PropType<any>;
|
|
67
87
|
};
|
|
68
|
-
}>, {
|
|
88
|
+
}>, {
|
|
89
|
+
formRef: import('vue').Ref<any, any>;
|
|
90
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
69
91
|
cancel: (...args: any[]) => void;
|
|
70
92
|
submit: (...args: any[]) => void;
|
|
71
93
|
updateField: (...args: any[]) => void;
|
|
72
94
|
updateSearch: (...args: any[]) => void;
|
|
95
|
+
removeCount: (...args: any[]) => void;
|
|
96
|
+
addCount: (...args: any[]) => void;
|
|
73
97
|
"update:modelValue": (value: any) => void;
|
|
74
98
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
75
99
|
hideCancelButton: BooleanConstructor;
|
|
@@ -134,6 +158,26 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
134
158
|
required: boolean;
|
|
135
159
|
default: boolean;
|
|
136
160
|
};
|
|
161
|
+
validationMode: {
|
|
162
|
+
type: import('vue').PropType<"live" | "submit">;
|
|
163
|
+
required: boolean;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
disableSubmit: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
required: boolean;
|
|
169
|
+
default: boolean;
|
|
170
|
+
};
|
|
171
|
+
searchMode: {
|
|
172
|
+
type: import('vue').PropType<"native" | "remote">;
|
|
173
|
+
required: boolean;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
maskMode: {
|
|
177
|
+
type: import('vue').PropType<"unmasked" | "masked">;
|
|
178
|
+
required: boolean;
|
|
179
|
+
default: string;
|
|
180
|
+
};
|
|
137
181
|
modelValue: {
|
|
138
182
|
type: import('vue').PropType<any>;
|
|
139
183
|
};
|
|
@@ -143,6 +187,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
143
187
|
onSubmit?: (...args: any[]) => any;
|
|
144
188
|
onUpdateField?: (...args: any[]) => any;
|
|
145
189
|
onUpdateSearch?: (...args: any[]) => any;
|
|
190
|
+
onRemoveCount?: (...args: any[]) => any;
|
|
191
|
+
onAddCount?: (...args: any[]) => any;
|
|
146
192
|
}>, {
|
|
147
193
|
disabled: boolean;
|
|
148
194
|
minWidth: string;
|
|
@@ -152,12 +198,16 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
152
198
|
subtitle: string;
|
|
153
199
|
hideCancelButton: boolean;
|
|
154
200
|
addBtnText: string;
|
|
201
|
+
maskMode: "unmasked" | "masked";
|
|
202
|
+
searchMode: "native" | "remote";
|
|
155
203
|
noPadding: boolean;
|
|
156
204
|
fields: IField[];
|
|
157
205
|
noActionButtons: boolean;
|
|
158
206
|
isDialogVisible: boolean;
|
|
159
207
|
initialData: import('./form-props').IInitialData;
|
|
160
208
|
notClearOnClose: boolean;
|
|
209
|
+
validationMode: "submit" | "live";
|
|
210
|
+
disableSubmit: boolean;
|
|
161
211
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
162
212
|
form: import('vue').CreateComponentPublicInstanceWithMixins<{
|
|
163
213
|
style: string | false | import('vue').StyleValue[] | import('vue').CSSProperties | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFormFlat.vue.d.ts","sourceRoot":"","sources":["../../../src/components/templates/GenericFormFlat.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GenericFormFlat.vue.d.ts","sourceRoot":"","sources":["../../../src/components/templates/GenericFormFlat.vue"],"names":[],"mappings":"AA0KA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAmC3C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAiE2D,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAsD9C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA4M4iG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAu+D,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA+3D,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5Bh7N,wBAoBG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPagination, IHeader, FilterType } from '../../interfaces/genericTable';
|
|
1
|
+
import { IPagination, IHeader, FilterType, IColumnFilter, ColumnMenuMode, FetchColumnValuesFn, TableDataMode } from '../../interfaces/genericTable';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
keyWord: string;
|
|
4
4
|
noItemsText: any;
|
|
@@ -12,6 +12,14 @@ type __VLS_Props = {
|
|
|
12
12
|
editFn?: (id: string | number, field: string, value: any) => void;
|
|
13
13
|
variant?: 'flat' | 'text' | 'elevated' | 'tonal' | 'outlined' | 'plain' | undefined;
|
|
14
14
|
disableEdit?: boolean;
|
|
15
|
+
columnMenu?: ColumnMenuMode;
|
|
16
|
+
sortMode?: TableDataMode;
|
|
17
|
+
filterMode?: TableDataMode;
|
|
18
|
+
fetchColumnValues?: FetchColumnValuesFn;
|
|
19
|
+
rowProps?: (data: {
|
|
20
|
+
item: any;
|
|
21
|
+
index: number;
|
|
22
|
+
}) => Record<string, any>;
|
|
15
23
|
};
|
|
16
24
|
type __VLS_PublicProps = {
|
|
17
25
|
'search'?: any;
|
|
@@ -19,6 +27,7 @@ type __VLS_PublicProps = {
|
|
|
19
27
|
'items'?: any;
|
|
20
28
|
'pagination'?: IPagination;
|
|
21
29
|
'ordering'?: string;
|
|
30
|
+
'columnFilters'?: IColumnFilter[];
|
|
22
31
|
} & __VLS_Props;
|
|
23
32
|
declare function __VLS_template(): {
|
|
24
33
|
attrs: Partial<{}>;
|
|
@@ -35,7 +44,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
35
44
|
"update:options": (...args: any[]) => void;
|
|
36
45
|
createItem: (...args: any[]) => void;
|
|
37
46
|
"update:search": (...args: any[]) => void;
|
|
47
|
+
rowClick: (...args: any[]) => void;
|
|
38
48
|
"update:pagination": (value: IPagination) => void;
|
|
49
|
+
"update:columnFilters": (value: IColumnFilter[]) => void;
|
|
39
50
|
"update:ordering": (value: string) => void;
|
|
40
51
|
"update:headers": (value: IHeader[]) => void;
|
|
41
52
|
"update:items": (value: any) => void;
|
|
@@ -44,9 +55,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
44
55
|
"onUpdate:pagination"?: (value: IPagination) => any;
|
|
45
56
|
onCreateItem?: (...args: any[]) => any;
|
|
46
57
|
"onUpdate:search"?: (...args: any[]) => any;
|
|
58
|
+
"onUpdate:columnFilters"?: (value: IColumnFilter[]) => any;
|
|
47
59
|
"onUpdate:ordering"?: (value: string) => any;
|
|
48
60
|
"onUpdate:headers"?: (value: IHeader[]) => any;
|
|
49
61
|
"onUpdate:items"?: (value: any) => any;
|
|
62
|
+
onRowClick?: (...args: any[]) => any;
|
|
50
63
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
51
64
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
52
65
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/templates/GenericTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GenericTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/templates/GenericTable.vue"],"names":[],"mappings":"AA+UE,OAAO,KAAK,EACV,WAAW,EACX,OAAO,EACP,UAAU,EACV,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,aAAa,EACd,MAAM,+BAA+B,CAAC;AAkCvC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,GAAG,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,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U,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;kFAUnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericForm.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/__tests__/GenericForm.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericFormFlat.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/__tests__/GenericFormFlat.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericTable.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/__tests__/GenericTable.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
import { IField } from './../../interfaces/genericForm';
|
|
2
3
|
export interface IInitialData {
|
|
3
4
|
[key: string]: any;
|
|
@@ -103,6 +104,41 @@ export declare const formProps: {
|
|
|
103
104
|
required: boolean;
|
|
104
105
|
default: boolean;
|
|
105
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* 'live' disables the submit button until the form is valid (default);
|
|
109
|
+
* 'submit' validates the rules when the user submits
|
|
110
|
+
*/
|
|
111
|
+
validationMode: {
|
|
112
|
+
type: PropType<"live" | "submit">;
|
|
113
|
+
required: boolean;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Blocks the submit action and disables the submit button
|
|
118
|
+
*/
|
|
119
|
+
disableSubmit: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
required: boolean;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* 'native' renders searchAutocomplete with a plain autocomplete (default);
|
|
126
|
+
* 'remote' renders the menu based remote search fields
|
|
127
|
+
*/
|
|
128
|
+
searchMode: {
|
|
129
|
+
type: PropType<"native" | "remote">;
|
|
130
|
+
required: boolean;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* 'unmasked' keeps the digits only (default); 'masked' keeps the masked
|
|
135
|
+
* text in the field value and in the submitted payload
|
|
136
|
+
*/
|
|
137
|
+
maskMode: {
|
|
138
|
+
type: PropType<"unmasked" | "masked">;
|
|
139
|
+
required: boolean;
|
|
140
|
+
default: string;
|
|
141
|
+
};
|
|
106
142
|
};
|
|
107
143
|
};
|
|
108
144
|
//# sourceMappingURL=form-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-props.d.ts","sourceRoot":"","sources":["../../../src/components/templates/form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,eAAO,MAAM,SAAS;;;;;;;QAOlB;;WAEG;;kBAEc,MAAM,MAAM,EAAE;;;;QAI/B;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;;WAGG;;kBAEe,MAAM,YAAY;;;;QAIpC;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG;;;;;;;;;;;QAWH;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG
|
|
1
|
+
{"version":3,"file":"form-props.d.ts","sourceRoot":"","sources":["../../../src/components/templates/form-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EA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