fui-material 1.0.11-beta → 1.0.11-release
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/dist/cjs/index.js +2 -52
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/function-elements/fExportHtmlOrJsxToWord/fExportHtmlOrJsxToWord.d.ts +3 -3
- package/dist/cjs/types/function-elements/fExportHtmlOrJsxToWord/functions/convertHtmlToXml/convertHtmlTbToXml.d.ts +1 -1
- package/dist/cjs/types/function-elements/fExportHtmlOrJsxToWord/functions/convertHtmlToXml/convertJsxElementToXml.d.ts +1 -1
- package/dist/cjs/types/function-elements/fExportHtmlOrJsxToWord/functions/createXmlTags.d.ts +1 -1
- package/dist/cjs/types/function-elements/fExportHtmlOrJsxToWord/functions/jsxToHtml.d.ts +1 -2
- package/dist/cjs/types/function-elements/fExportTableToExcel/dop-function/jsxToHtml.d.ts +1 -2
- package/dist/cjs/types/function-elements/fExportTableToExcel/fExportTableToExcel.d.ts +3 -3
- package/dist/cjs/types/material/CarouselComponent/FCarousel/FCarousel.d.ts +15 -0
- package/dist/cjs/types/material/CarouselComponent/FCarousel/index.d.ts +1 -0
- package/dist/cjs/types/material/CarouselComponent/FCarouselItem/FCarouselItem.d.ts +13 -0
- package/dist/cjs/types/material/CarouselComponent/FCarouselItem/index.d.ts +1 -0
- package/dist/cjs/types/material/Dialog/FDialogFooter/FDialogFooter.d.ts +3 -0
- package/dist/cjs/types/material/FFullDateField/FFullDateField.d.ts +2 -0
- package/dist/cjs/types/material/FGrid/FGrid.d.ts +1 -0
- package/dist/cjs/types/material/FTextArea/FTextArea.d.ts +2 -0
- package/dist/cjs/types/material/FTextField/FTextField.d.ts +2 -0
- package/dist/cjs/types/material/SelectComponents/FSelect/FSelect.d.ts +2 -0
- package/dist/cjs/types/material/index.d.ts +2 -0
- package/dist/esm/index.js +2 -52
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/function-elements/fExportHtmlOrJsxToWord/fExportHtmlOrJsxToWord.d.ts +3 -3
- package/dist/esm/types/function-elements/fExportHtmlOrJsxToWord/functions/convertHtmlToXml/convertHtmlTbToXml.d.ts +1 -1
- package/dist/esm/types/function-elements/fExportHtmlOrJsxToWord/functions/convertHtmlToXml/convertJsxElementToXml.d.ts +1 -1
- package/dist/esm/types/function-elements/fExportHtmlOrJsxToWord/functions/createXmlTags.d.ts +1 -1
- package/dist/esm/types/function-elements/fExportHtmlOrJsxToWord/functions/jsxToHtml.d.ts +1 -2
- package/dist/esm/types/function-elements/fExportTableToExcel/dop-function/jsxToHtml.d.ts +1 -2
- package/dist/esm/types/function-elements/fExportTableToExcel/fExportTableToExcel.d.ts +3 -3
- package/dist/esm/types/material/CarouselComponent/FCarousel/FCarousel.d.ts +15 -0
- package/dist/esm/types/material/CarouselComponent/FCarousel/index.d.ts +1 -0
- package/dist/esm/types/material/CarouselComponent/FCarouselItem/FCarouselItem.d.ts +13 -0
- package/dist/esm/types/material/CarouselComponent/FCarouselItem/index.d.ts +1 -0
- package/dist/esm/types/material/Dialog/FDialogFooter/FDialogFooter.d.ts +3 -0
- package/dist/esm/types/material/FFullDateField/FFullDateField.d.ts +2 -0
- package/dist/esm/types/material/FGrid/FGrid.d.ts +1 -0
- package/dist/esm/types/material/FTextArea/FTextArea.d.ts +2 -0
- package/dist/esm/types/material/FTextField/FTextField.d.ts +2 -0
- package/dist/esm/types/material/SelectComponents/FSelect/FSelect.d.ts +2 -0
- package/dist/esm/types/material/index.d.ts +2 -0
- package/dist/index.d.ts +42 -6
- package/package.json +7 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface IfExportHtmlOrJsxToWord {
|
|
3
2
|
tableId?: string;
|
|
3
|
+
divId?: string;
|
|
4
4
|
fileName: string;
|
|
5
|
-
jsxElement?:
|
|
5
|
+
jsxElement?: string;
|
|
6
6
|
format?: 'A4' | 'A3' | 'A2' | 'A1';
|
|
7
7
|
orientation?: 'landscape' | 'vertical';
|
|
8
8
|
}
|
|
9
|
-
export declare const fExportHtmlOrJsxToWord: ({ tableId, fileName, jsxElement, format, orientation }: IfExportHtmlOrJsxToWord) => Promise<boolean>;
|
|
9
|
+
export declare const fExportHtmlOrJsxToWord: ({ tableId, fileName, jsxElement, format, orientation, divId }: IfExportHtmlOrJsxToWord) => Promise<boolean>;
|
|
10
10
|
export default fExportHtmlOrJsxToWord;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const convertHtmlTbToXml: (opt: Element) => string;
|
|
1
|
+
export declare const convertHtmlTbToXml: (opt: Element, width: number) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const convertJsxElementToXml: () => string;
|
|
1
|
+
export declare const convertJsxElementToXml: (el: HTMLDivElement | HTMLElement, width: number) => string;
|
package/dist/esm/types/function-elements/fExportHtmlOrJsxToWord/functions/createXmlTags.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const createStartSpan: () => string;
|
|
|
5
5
|
export declare const createEndSpan: () => string;
|
|
6
6
|
export declare const createTagSpan: (text: string) => string;
|
|
7
7
|
export declare const createTagBr: () => string;
|
|
8
|
-
export declare const createTagTb: (table: string) => string;
|
|
8
|
+
export declare const createTagTb: (table: string, rows: number, width: number) => string;
|
|
9
9
|
export declare const createTagTbRow: (listCel: string) => string;
|
|
10
10
|
export declare const createTagTbHeaderCell: (text?: string, rowSpan?: 'restart' | 'continue', colSpan?: number) => string;
|
|
11
11
|
export declare const createTagTbBodyCell: (text?: string, rowSpan?: 'restart' | 'continue', colSpan?: number) => string;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function jsxToHtml(element: JSX.Element): Promise<HTMLDivElement | null>;
|
|
1
|
+
export declare function jsxToHtml(element: string): Promise<HTMLDivElement | null>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function jsxToHtml(element: JSX.Element): Promise<HTMLDivElement | null>;
|
|
1
|
+
export declare function jsxToHtml(element: string): Promise<HTMLDivElement | null>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface IfExportTableToExcel {
|
|
3
2
|
tableId?: string;
|
|
3
|
+
divId?: string;
|
|
4
4
|
fileName: string;
|
|
5
|
-
jsxElement?:
|
|
5
|
+
jsxElement?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const fExportTableToExcel: ({ tableId, fileName, jsxElement }: IfExportTableToExcel) => Promise<boolean>;
|
|
7
|
+
declare const fExportTableToExcel: ({ tableId, fileName, jsxElement, divId }: IfExportTableToExcel) => Promise<boolean>;
|
|
8
8
|
export default fExportTableToExcel;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import '../statick/carousel.css';
|
|
3
|
+
export interface IFCarousel {
|
|
4
|
+
autoSwitching?: {
|
|
5
|
+
flag: boolean;
|
|
6
|
+
timeSecond: number;
|
|
7
|
+
};
|
|
8
|
+
className?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
childrenElements: (current: number) => React.ReactChild | React.ReactNode;
|
|
11
|
+
quantityItems: number;
|
|
12
|
+
st?: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
declare const FCarousel: FC<IFCarousel>;
|
|
15
|
+
export default FCarousel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./FCarousel";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import '../statick/carousel.css';
|
|
3
|
+
export interface FCarouselItem {
|
|
4
|
+
children?: React.ReactChild | React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
current: number;
|
|
8
|
+
index: number;
|
|
9
|
+
quantityItems: number;
|
|
10
|
+
st?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
declare const FCarouselItem: FC<FCarouselItem>;
|
|
13
|
+
export default FCarouselItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./FCarouselItem";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
2
|
export interface IFDialogFooter {
|
|
3
3
|
children?: React.ReactChild | React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
st?: React.CSSProperties | undefined;
|
|
6
|
+
id?: string;
|
|
4
7
|
}
|
|
5
8
|
declare const FDialogFooter: FC<IFDialogFooter>;
|
|
6
9
|
export default FDialogFooter;
|
|
@@ -20,6 +20,8 @@ export interface IFFullDateField {
|
|
|
20
20
|
helpText?: string;
|
|
21
21
|
onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
22
22
|
onFocus?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
23
|
+
width?: string | number;
|
|
24
|
+
height?: string | number;
|
|
23
25
|
}
|
|
24
26
|
declare const FFullDateField: FC<IFFullDateField>;
|
|
25
27
|
export default FFullDateField;
|
|
@@ -39,3 +39,5 @@ export { default as FTab } from "./Tabs/FTab";
|
|
|
39
39
|
export { default as FDropdown } from "./Dropdown/FDropdown";
|
|
40
40
|
export { default as FDropdownItem } from "./Dropdown/FDropdownItem";
|
|
41
41
|
export { default as FSearchBox } from "./FSearchBox";
|
|
42
|
+
export { default as FCarousel } from "./CarouselComponent/FCarousel";
|
|
43
|
+
export { default as FCarouselItem } from "./CarouselComponent/FCarouselItem";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import React, { FC } from 'react';
|
|
4
3
|
|
|
@@ -59,6 +58,8 @@ interface IFTextField {
|
|
|
59
58
|
min?: number;
|
|
60
59
|
max?: number;
|
|
61
60
|
placeholder?: string | undefined;
|
|
61
|
+
width?: string | number;
|
|
62
|
+
height?: string | number;
|
|
62
63
|
}
|
|
63
64
|
declare const FTextField: FC<IFTextField>;
|
|
64
65
|
|
|
@@ -212,6 +213,9 @@ declare const FDialogBody: FC<IFDialogBody>;
|
|
|
212
213
|
|
|
213
214
|
interface IFDialogFooter {
|
|
214
215
|
children?: React.ReactChild | React.ReactNode;
|
|
216
|
+
className?: string;
|
|
217
|
+
st?: React.CSSProperties | undefined;
|
|
218
|
+
id?: string;
|
|
215
219
|
}
|
|
216
220
|
declare const FDialogFooter: FC<IFDialogFooter>;
|
|
217
221
|
|
|
@@ -349,6 +353,8 @@ interface IFSelect {
|
|
|
349
353
|
required?: boolean;
|
|
350
354
|
errText?: string[];
|
|
351
355
|
helpText?: string;
|
|
356
|
+
width?: string | number;
|
|
357
|
+
height?: string | number;
|
|
352
358
|
}
|
|
353
359
|
declare const FSelect: FC<IFSelect>;
|
|
354
360
|
|
|
@@ -384,6 +390,8 @@ interface IFFullDateField {
|
|
|
384
390
|
helpText?: string;
|
|
385
391
|
onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
386
392
|
onFocus?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
393
|
+
width?: string | number;
|
|
394
|
+
height?: string | number;
|
|
387
395
|
}
|
|
388
396
|
declare const FFullDateField: FC<IFFullDateField>;
|
|
389
397
|
|
|
@@ -428,6 +436,8 @@ interface IFTextArea {
|
|
|
428
436
|
helpText?: string;
|
|
429
437
|
load?: boolean;
|
|
430
438
|
required?: boolean;
|
|
439
|
+
width?: string | number;
|
|
440
|
+
height?: string | number;
|
|
431
441
|
}
|
|
432
442
|
declare const FTextArea: FC<IFTextArea>;
|
|
433
443
|
|
|
@@ -534,6 +544,30 @@ interface IFSearchBox {
|
|
|
534
544
|
}
|
|
535
545
|
declare const FSearchBox: FC<IFSearchBox>;
|
|
536
546
|
|
|
547
|
+
interface IFCarousel {
|
|
548
|
+
autoSwitching?: {
|
|
549
|
+
flag: boolean;
|
|
550
|
+
timeSecond: number;
|
|
551
|
+
};
|
|
552
|
+
className?: string;
|
|
553
|
+
id?: string;
|
|
554
|
+
childrenElements: (current: number) => React.ReactChild | React.ReactNode;
|
|
555
|
+
quantityItems: number;
|
|
556
|
+
st?: React.CSSProperties;
|
|
557
|
+
}
|
|
558
|
+
declare const FCarousel: FC<IFCarousel>;
|
|
559
|
+
|
|
560
|
+
interface FCarouselItem {
|
|
561
|
+
children?: React.ReactChild | React.ReactNode;
|
|
562
|
+
className?: string;
|
|
563
|
+
id?: string;
|
|
564
|
+
current: number;
|
|
565
|
+
index: number;
|
|
566
|
+
quantityItems: number;
|
|
567
|
+
st?: React.CSSProperties;
|
|
568
|
+
}
|
|
569
|
+
declare const FCarouselItem: FC<FCarouselItem>;
|
|
570
|
+
|
|
537
571
|
interface IFCloseIcon {
|
|
538
572
|
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
|
|
539
573
|
size?: number;
|
|
@@ -687,19 +721,21 @@ declare const fPrompt: ({ title, body }: IfPrompt) => Promise<string | null>;
|
|
|
687
721
|
|
|
688
722
|
interface IfExportTableToExcel {
|
|
689
723
|
tableId?: string;
|
|
724
|
+
divId?: string;
|
|
690
725
|
fileName: string;
|
|
691
|
-
jsxElement?:
|
|
726
|
+
jsxElement?: string;
|
|
692
727
|
}
|
|
693
|
-
declare const fExportTableToExcel: ({ tableId, fileName, jsxElement }: IfExportTableToExcel) => Promise<boolean>;
|
|
728
|
+
declare const fExportTableToExcel: ({ tableId, fileName, jsxElement, divId }: IfExportTableToExcel) => Promise<boolean>;
|
|
694
729
|
|
|
695
730
|
interface IfExportHtmlOrJsxToWord {
|
|
696
731
|
tableId?: string;
|
|
732
|
+
divId?: string;
|
|
697
733
|
fileName: string;
|
|
698
|
-
jsxElement?:
|
|
734
|
+
jsxElement?: string;
|
|
699
735
|
format?: 'A4' | 'A3' | 'A2' | 'A1';
|
|
700
736
|
orientation?: 'landscape' | 'vertical';
|
|
701
737
|
}
|
|
702
|
-
declare const fExportHtmlOrJsxToWord: ({ tableId, fileName, jsxElement, format, orientation }: IfExportHtmlOrJsxToWord) => Promise<boolean>;
|
|
738
|
+
declare const fExportHtmlOrJsxToWord: ({ tableId, fileName, jsxElement, format, orientation, divId }: IfExportHtmlOrJsxToWord) => Promise<boolean>;
|
|
703
739
|
|
|
704
740
|
interface IfNotification {
|
|
705
741
|
title?: string;
|
|
@@ -712,4 +748,4 @@ declare const fNotification: ({ title, body, variant, timeSecClose, buttonClose,
|
|
|
712
748
|
|
|
713
749
|
declare const fNotificationDelete: (id: string) => void;
|
|
714
750
|
|
|
715
|
-
export { FAccordion, FAlert, FArrowIcon, FButton, FButtonFile, FCheckIcon, FCheckbox, FCloseIcon, FContainer, FCopyAddIcon, FDialog, FDialogBody, FDialogFooter, FDialogHeader, FDocumentIcon, FDownloadIcon, FDropdown, FDropdownItem, FFile, FFilterIcon, FFullDateField, FGrid, FInputFileForm, FListIcon, FLoadIcon, FNative, FOpenImgFull, FPagination, FPaper, FPenIcon, FPlusIcon, FPreloader, FProgress, FRadioButton, FSearchBox, FSelect, FSelectItem, FSelectSearchDb, FStack, FTab, FTable, FTableBody, FTableDataCell, FTableFooter, FTableHead, FTableHeaderCell, FTableRow, FTabs, FTextArea, FTextField, FTimeline, FTimelineCard, FTrashIcon, FUnlinkIcon, fAlert, fConfirm, fExportHtmlOrJsxToWord, fExportTableToExcel, fNotification, fNotificationDelete, fPrompt };
|
|
751
|
+
export { FAccordion, FAlert, FArrowIcon, FButton, FButtonFile, FCarousel, FCarouselItem, FCheckIcon, FCheckbox, FCloseIcon, FContainer, FCopyAddIcon, FDialog, FDialogBody, FDialogFooter, FDialogHeader, FDocumentIcon, FDownloadIcon, FDropdown, FDropdownItem, FFile, FFilterIcon, FFullDateField, FGrid, FInputFileForm, FListIcon, FLoadIcon, FNative, FOpenImgFull, FPagination, FPaper, FPenIcon, FPlusIcon, FPreloader, FProgress, FRadioButton, FSearchBox, FSelect, FSelectItem, FSelectSearchDb, FStack, FTab, FTable, FTableBody, FTableDataCell, FTableFooter, FTableHead, FTableHeaderCell, FTableRow, FTabs, FTextArea, FTextField, FTimeline, FTimelineCard, FTrashIcon, FUnlinkIcon, fAlert, fConfirm, fExportHtmlOrJsxToWord, fExportTableToExcel, fNotification, fNotificationDelete, fPrompt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fui-material",
|
|
3
|
-
"version": "1.0.11-
|
|
3
|
+
"version": "1.0.11-release",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -10,11 +10,14 @@
|
|
|
10
10
|
"@types/node": "^18.11.18",
|
|
11
11
|
"@types/react": "^18.0.25",
|
|
12
12
|
"@types/react-dom": "^18.0.9",
|
|
13
|
+
"jszip": "^3.10.1",
|
|
14
|
+
"buffer": "^6.0.3",
|
|
15
|
+
"process": "^0.11.10",
|
|
13
16
|
"react": "^18.2.0",
|
|
14
17
|
"react-dom": "^18.2.0",
|
|
15
18
|
"react-scripts": "5.0.1",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
19
|
+
"rollup-plugin-polyfill-node": "^0.12.0",
|
|
20
|
+
"typescript": "^4.9.3"
|
|
18
21
|
},
|
|
19
22
|
"scripts": {
|
|
20
23
|
"build": "rollup -c",
|
|
@@ -50,6 +53,7 @@
|
|
|
50
53
|
"rollup-plugin-copy": "^3.5.0",
|
|
51
54
|
"rollup-plugin-dts": "^4.0.1",
|
|
52
55
|
"rollup-plugin-image": "^1.0.2",
|
|
56
|
+
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
53
57
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
54
58
|
"rollup-plugin-postcss": "^4.0.2",
|
|
55
59
|
"rollup-plugin-terser": "^7.0.2"
|