globuswebcomponents 2.8.12 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/gb-action-panel_75.cjs.entry.js +141 -83
- package/dist/cjs/globuscomponents.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/reusableModels-_LRAKnsh.js.map +1 -1
- package/dist/collection/assets/pencil-edit-01.svg +3 -0
- package/dist/collection/components/gb-button/readme.md +13 -0
- package/dist/collection/components/gb-date-picker/gb-date-picker.css +4 -0
- package/dist/collection/components/gb-date-picker/gb-date-picker.js +5 -7
- package/dist/collection/components/gb-date-picker/gb-date-picker.js.map +1 -1
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js +6 -6
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js.map +1 -1
- package/dist/collection/components/gb-pagination/gb-pagination.css +1 -0
- package/dist/collection/components/gb-portal/gb-portal.css +1 -2
- package/dist/collection/components/gb-portal/gb-portal.js +16 -10
- package/dist/collection/components/gb-portal/gb-portal.js.map +1 -1
- package/dist/collection/components/gb-table/gb-table.css +70 -23
- package/dist/collection/components/gb-table/gb-table.js +167 -130
- package/dist/collection/components/gb-table/gb-table.js.map +1 -1
- package/dist/collection/components/gb-table-header/gb-table-header.css +10 -9
- package/dist/collection/components/gb-table-header/gb-table-header.js +7 -5
- package/dist/collection/components/gb-table-header/gb-table-header.js.map +1 -1
- package/dist/collection/components/gb-textarea-input-field/gb-textarea-input-field.js +3 -4
- package/dist/collection/components/gb-textarea-input-field/gb-textarea-input-field.js.map +1 -1
- package/dist/collection/models/reusableModels.js.map +1 -1
- package/dist/components/gb-approval-modal.js +1 -1
- package/dist/components/gb-date-picker.js +1 -1
- package/dist/components/gb-empty-state.js +1 -145
- package/dist/components/gb-empty-state.js.map +1 -1
- package/dist/components/gb-input-dropdown.js +1 -1
- package/dist/components/gb-pagination.js +1 -1
- package/dist/components/gb-portal.js +1 -1
- package/dist/components/gb-table-header.js +1 -1
- package/dist/components/gb-table.js +195 -106
- package/dist/components/gb-table.js.map +1 -1
- package/dist/components/gb-textarea-input-field.js +1 -1
- package/dist/components/p-ByjJN3cS.js +150 -0
- package/dist/components/p-ByjJN3cS.js.map +1 -0
- package/dist/components/{p-B9vWIoWs.js → p-C--0Sicf.js} +8 -8
- package/dist/components/p-C--0Sicf.js.map +1 -0
- package/dist/components/{p-CSka0gDO.js → p-CJelLNTb.js} +5 -6
- package/dist/components/p-CJelLNTb.js.map +1 -0
- package/dist/components/p-cHn6O-Kf.js.map +1 -1
- package/dist/components/{p-BTHdpYQl.js → p-dgGYVBLp.js} +19 -13
- package/dist/components/p-dgGYVBLp.js.map +1 -0
- package/dist/components/{p-CIk9ZD0b.js → p-jEUDScnD.js} +4 -4
- package/dist/components/p-jEUDScnD.js.map +1 -0
- package/dist/components/{p-BHOJKe6j.js → p-q16C1y-8.js} +11 -9
- package/dist/components/p-q16C1y-8.js.map +1 -0
- package/dist/components/{p-BWx-o392.js → p-rzRgniQd.js} +7 -9
- package/dist/components/p-rzRgniQd.js.map +1 -0
- package/dist/docs.json +115 -120
- package/dist/esm/gb-action-panel_75.entry.js +141 -83
- package/dist/esm/globuscomponents.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/reusableModels-cHn6O-Kf.js.map +1 -1
- package/dist/globuscomponents/assets/pencil-edit-01.svg +3 -0
- package/dist/globuscomponents/globuscomponents.esm.js +1 -1
- package/dist/globuscomponents/{p-7024cc46.entry.js → p-087fe238.entry.js} +2 -2
- package/dist/globuscomponents/p-087fe238.entry.js.map +1 -0
- package/dist/globuscomponents/p-cHn6O-Kf.js.map +1 -1
- package/dist/globuscomponents/readme.md +13 -0
- package/dist/types/components/gb-table/gb-table.d.ts +28 -11
- package/dist/types/components.d.ts +44 -40
- package/dist/types/models/reusableModels.d.ts +8 -0
- package/package.json +1 -1
- package/dist/components/p-B9vWIoWs.js.map +0 -1
- package/dist/components/p-BHOJKe6j.js.map +0 -1
- package/dist/components/p-BTHdpYQl.js.map +0 -1
- package/dist/components/p-BWx-o392.js.map +0 -1
- package/dist/components/p-CIk9ZD0b.js.map +0 -1
- package/dist/components/p-CSka0gDO.js.map +0 -1
- package/dist/globuscomponents/p-7024cc46.entry.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-cHn6O-Kf.js","sources":["src/models/reusableModels.ts"],"sourcesContent":["import { JSX } from \"@stencil/core\";\r\n\r\nexport type GeneralSizes = 'xxxxl' | 'xxxl' | 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs' | 'profile_lg' | 'profile_md' | 'profile_sm';\r\n\r\nexport type GeneralHierarchies = 'primary' | 'secondary_gray' | 'secondary_color' | 'tertiary_gray' | 'tertiary_color' | 'link_gray' | 'link_color';\r\n\r\nexport enum StateEnum {\r\n Default = 'default',\r\n Disabled = 'disabled',\r\n}\r\n\r\nexport type ArrowPositions = 'bottom_center' | 'bottom_left' | 'bottom_right' | 'top_center' | 'left' | 'right' | 'none' | 'center';\r\n\r\nexport type CheckBoxVariants = 'checkbox' | 'check_circle' | 'radio';\r\n\r\nexport enum BorderWeights {\r\n VeryLight = 'very_light',\r\n Light = 'light',\r\n Regular = 'regular',\r\n Heavy = 'heavy',\r\n}\r\n\r\nexport enum OnlineIndicatorStates {\r\n Online = 'online',\r\n Offline = 'offline',\r\n}\r\n\r\nexport type BreakPoints = 'desktop' | 'mobile';\r\n\r\nexport type FileUploadIconType = 'solid' | 'outline';\r\n\r\nexport type FileUploadStates = 'default' | 'in_progress' | 'complete' | 'hover' | 'disabled' | 'error';\r\n\r\nexport type GeneralColors = 'default' | 'gray' | 'primary' | 'error' | 'warning' | 'success' | 'discovery' | 'information' | 'pink' | 'purple' | 'white';\r\n\r\nexport type PaginationNumberShapes = 'square' | 'circle';\r\n\r\nexport type PaginationTypes =\r\n | 'page_default'\r\n | 'page_minimal_center_aligned'\r\n | 'card_default'\r\n | 'card_minimal_right_aligned'\r\n | 'card_minimal_left_aligned'\r\n | 'card_minimal_center_aligned'\r\n | 'card_button_group_right_aligned'\r\n | 'card_button_group_left_aligned'\r\n | 'card_button_group_center_aligned';\r\n\r\nexport type TabTypes =\r\n | 'button_primary'\r\n | 'button_gray'\r\n | 'button_white'\r\n | 'rounded_button_white'\r\n | 'underline'\r\n | 'underline_filled'\r\n | 'line'\r\n | 'button_white_border'\r\n | 'rounded_button_white_border'\r\n | 'button_gray_border';\r\n\r\nexport type GeneralBackgroundCategories = 'plain_background' | 'colored_background';\r\n\r\nexport type InputFieldTypes =\r\n | 'default'\r\n | 'icon_leading'\r\n | 'leading_dropdown'\r\n | 'trailing_dropdown'\r\n | 'leading_text'\r\n | 'payment_input'\r\n | 'tags'\r\n | 'trailing_button'\r\n | 'password'\r\n | 'password_icon_leading'\r\n | 'count';\r\n\r\nexport type DropdownTypes = 'default' | 'icon_leading' | 'avatar_leading' | 'dot_leading' | 'checkbox' | 'search' | 'tags';\r\n\r\nexport type ColorTypes = 'gray' | 'blue' | 'cyan' | 'pink' | 'purple' | 'green' | 'yellow' | 'red' | 'white';\r\n\r\nexport type DropdownItemTypes = string | number | { name: string | number; username: string; selected?: boolean };\r\n\r\nexport type PaginationDotTypes = 'dot' | 'line';\r\n\r\nexport type FileIconStyles = 'default' | 'gray' | 'solid';\r\n\r\nexport type FileIconTypes = 'pdf' | 'csv' | 'jpg' | 'jpeg' | 'ppt' | 'pptx' | 'doc' | 'docx' | 'xls' | 'xlsx' | 'svg' | 'txt' | 'zip' | 'rar' | 'mp3' | 'mp4' | 'png' | 'empty';\r\n\r\nexport type TableCellTypes = 'text' | 'lead_text' | 'lead_checkbox' | 'badge';\r\n\r\nexport type ProgressStepStatus = 'incomplete' | 'current' | 'complete';\r\n\r\nexport type ProgressStepTypes = 'icon_only' | 'icon_left' | 'icon_top' | 'text_line' | 'featured_icon_left' | 'featured_icon_top';\r\n\r\nexport type ProgressStepStates = 'default' | 'destructive';\r\n\r\nexport type BadgeTypes = 'pill_color' | 'pill_outline' | 'badge_color' | 'badge_modern';\r\n\r\nexport type GeneralStyles = 'standard' | 'compact';\r\n\r\nexport type StateType = 'default' | 'disabled' | 'applied' | 'loading';\r\n\r\nexport type ButtonGroupTypes = 'false' | 'leading' | 'only' | 'dot' | 'checkbox';\r\n\r\nexport type ThemeTypes = 'system' | 'light' | 'dark';\r\n\r\nexport type BadgeIconTypes = 'dot' | 'avatar' | 'icon_leading' | 'icon_trailing' | 'country' | 'only' | 'false';\r\n\r\nexport type DropdownRoles = { badgeLabel: string; badgeColor: GeneralColors; badgeType: BadgeTypes };\r\n\r\nexport type StepperType = {\r\n state: ProgressStepStates;\r\n status: ProgressStepStatus;\r\n label?: string;\r\n supportingText?: string;\r\n};\r\n\r\nexport type DetailCellType = 'information' | 'document' | 'status' | 'button';\r\n\r\nexport type MetricFeaturedIconTypes = 'glassmorphism' | 'circular_filled';\r\n\r\nexport interface DropdownListGroup {\r\n icon: string;\r\n label: string;\r\n shortcut: string;\r\n}\r\n\r\n\r\nexport type CloseButtonPositions = 'left' | 'right';\r\n\r\nexport interface Notification {\r\n label: string;\r\n time: string;\r\n desc: string;\r\n icon: string;\r\n}\r\n\r\nexport type IllustrationTypes = 'cloud' | 'box' | 'documents' | 'credit_card';\r\n\r\nexport type PatternTypes = 'circles' | 'grid' | 'grid_dot' | 'squares';\r\n\r\nexport type MobilePosition = 'top_left' | 'top_right' | 'bottom_left' | 'bottom_right';\r\n\r\nexport interface TableColumn {\r\n key: string;\r\n label: string;\r\n width?: string;\r\n align?: 'left' | 'center' | 'right';\r\n stickyRight?: boolean;\r\n helpIcon?: boolean;\r\n sortable?: boolean;\r\n sortType?: 'string' | 'number' | 'date';\r\n sortComparator?: (a: any, b: any) => number;\r\n cellComponent?: string;\r\n cellActionType?: 'dropdown' | 'void';\r\n cellProps?: { [key: string]: any };\r\n cellSlots?: JSX.Element | ((row: any) => JSX.Element);\r\n onClick?: () => void;\r\n mobile?: {\r\n position?: MobilePosition;\r\n };\r\n}\r\n\r\nexport interface RowAction {\r\n label: string;\r\n icon?: string;\r\n action: string; // emitted event name\r\n disabled?: boolean;\r\n}\r\n\r\nexport type PortalPlacement =\r\n | 'top'\r\n | 'top-start'\r\n | 'top-end'\r\n | 'bottom'\r\n | 'bottom-start'\r\n | 'bottom-end'\r\n | 'left'\r\n | 'left-start'\r\n | 'left-end'\r\n | 'right'\r\n | 'right-start'\r\n | 'right-end';\r\n"],"names":[],"mappings":"AAMY,IAAA;AAAZ,CAAA,UAAY,SAAS,EAAA;AACnB,IAAA,SAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,SAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACvB,CAAC,EAHW,SAAS,KAAT,SAAS,GAGpB,EAAA,CAAA,CAAA;AAMW,IAAA;AAAZ,CAAA,UAAY,aAAa,EAAA;AACvB,IAAA,aAAA,CAAA,WAAA,CAAA,GAAA,YAAwB;AACxB,IAAA,aAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,aAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,aAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACjB,CAAC,EALW,aAAa,KAAb,aAAa,GAKxB,EAAA,CAAA,CAAA;AAEW,IAAA;AAAZ,CAAA,UAAY,qBAAqB,EAAA;AAC/B,IAAA,qBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,qBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACrB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,GAGhC,EAAA,CAAA,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"p-cHn6O-Kf.js","sources":["src/models/reusableModels.ts"],"sourcesContent":["import { JSX } from \"@stencil/core\";\r\n\r\nexport type GeneralSizes = 'xxxxl' | 'xxxl' | 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs' | 'profile_lg' | 'profile_md' | 'profile_sm';\r\n\r\nexport type GeneralHierarchies = 'primary' | 'secondary_gray' | 'secondary_color' | 'tertiary_gray' | 'tertiary_color' | 'link_gray' | 'link_color';\r\n\r\nexport enum StateEnum {\r\n Default = 'default',\r\n Disabled = 'disabled',\r\n}\r\n\r\nexport type ArrowPositions = 'bottom_center' | 'bottom_left' | 'bottom_right' | 'top_center' | 'left' | 'right' | 'none' | 'center';\r\n\r\nexport type CheckBoxVariants = 'checkbox' | 'check_circle' | 'radio';\r\n\r\nexport enum BorderWeights {\r\n VeryLight = 'very_light',\r\n Light = 'light',\r\n Regular = 'regular',\r\n Heavy = 'heavy',\r\n}\r\n\r\nexport enum OnlineIndicatorStates {\r\n Online = 'online',\r\n Offline = 'offline',\r\n}\r\n\r\nexport type BreakPoints = 'desktop' | 'mobile';\r\n\r\nexport type FileUploadIconType = 'solid' | 'outline';\r\n\r\nexport type FileUploadStates = 'default' | 'in_progress' | 'complete' | 'hover' | 'disabled' | 'error';\r\n\r\nexport type GeneralColors = 'default' | 'gray' | 'primary' | 'error' | 'warning' | 'success' | 'discovery' | 'information' | 'pink' | 'purple' | 'white';\r\n\r\nexport type PaginationNumberShapes = 'square' | 'circle';\r\n\r\nexport type PaginationTypes =\r\n | 'page_default'\r\n | 'page_minimal_center_aligned'\r\n | 'card_default'\r\n | 'card_minimal_right_aligned'\r\n | 'card_minimal_left_aligned'\r\n | 'card_minimal_center_aligned'\r\n | 'card_button_group_right_aligned'\r\n | 'card_button_group_left_aligned'\r\n | 'card_button_group_center_aligned';\r\n\r\nexport type TabTypes =\r\n | 'button_primary'\r\n | 'button_gray'\r\n | 'button_white'\r\n | 'rounded_button_white'\r\n | 'underline'\r\n | 'underline_filled'\r\n | 'line'\r\n | 'button_white_border'\r\n | 'rounded_button_white_border'\r\n | 'button_gray_border';\r\n\r\nexport type GeneralBackgroundCategories = 'plain_background' | 'colored_background';\r\n\r\nexport type InputFieldTypes =\r\n | 'default'\r\n | 'icon_leading'\r\n | 'leading_dropdown'\r\n | 'trailing_dropdown'\r\n | 'leading_text'\r\n | 'payment_input'\r\n | 'tags'\r\n | 'trailing_button'\r\n | 'password'\r\n | 'password_icon_leading'\r\n | 'count';\r\n\r\nexport type DropdownTypes = 'default' | 'icon_leading' | 'avatar_leading' | 'dot_leading' | 'checkbox' | 'search' | 'tags';\r\n\r\nexport type ColorTypes = 'gray' | 'blue' | 'cyan' | 'pink' | 'purple' | 'green' | 'yellow' | 'red' | 'white';\r\n\r\nexport type DropdownItemTypes = string | number | { name: string | number; username: string; selected?: boolean };\r\n\r\nexport type PaginationDotTypes = 'dot' | 'line';\r\n\r\nexport type FileIconStyles = 'default' | 'gray' | 'solid';\r\n\r\nexport type FileIconTypes = 'pdf' | 'csv' | 'jpg' | 'jpeg' | 'ppt' | 'pptx' | 'doc' | 'docx' | 'xls' | 'xlsx' | 'svg' | 'txt' | 'zip' | 'rar' | 'mp3' | 'mp4' | 'png' | 'empty';\r\n\r\nexport type TableCellTypes = 'text' | 'lead_text' | 'lead_checkbox' | 'badge';\r\n\r\nexport type ProgressStepStatus = 'incomplete' | 'current' | 'complete';\r\n\r\nexport type ProgressStepTypes = 'icon_only' | 'icon_left' | 'icon_top' | 'text_line' | 'featured_icon_left' | 'featured_icon_top';\r\n\r\nexport type ProgressStepStates = 'default' | 'destructive';\r\n\r\nexport type BadgeTypes = 'pill_color' | 'pill_outline' | 'badge_color' | 'badge_modern';\r\n\r\nexport type GeneralStyles = 'standard' | 'compact';\r\n\r\nexport type StateType = 'default' | 'disabled' | 'applied' | 'loading';\r\n\r\nexport type ButtonGroupTypes = 'false' | 'leading' | 'only' | 'dot' | 'checkbox';\r\n\r\nexport type ThemeTypes = 'system' | 'light' | 'dark';\r\n\r\nexport type BadgeIconTypes = 'dot' | 'avatar' | 'icon_leading' | 'icon_trailing' | 'country' | 'only' | 'false';\r\n\r\nexport type DropdownRoles = { badgeLabel: string; badgeColor: GeneralColors; badgeType: BadgeTypes };\r\n\r\nexport type StepperType = {\r\n state: ProgressStepStates;\r\n status: ProgressStepStatus;\r\n label?: string;\r\n supportingText?: string;\r\n};\r\n\r\nexport type DetailCellType = 'information' | 'document' | 'status' | 'button';\r\n\r\nexport type MetricFeaturedIconTypes = 'glassmorphism' | 'circular_filled';\r\n\r\nexport interface DropdownListGroup {\r\n icon: string;\r\n label: string;\r\n shortcut: string;\r\n}\r\n\r\n\r\nexport type CloseButtonPositions = 'left' | 'right';\r\n\r\nexport interface Notification {\r\n label: string;\r\n time: string;\r\n desc: string;\r\n icon: string;\r\n}\r\n\r\nexport type IllustrationTypes = 'cloud' | 'box' | 'documents' | 'credit_card';\r\n\r\nexport type PatternTypes = 'circles' | 'grid' | 'grid_dot' | 'squares';\r\n\r\nexport type MobilePosition = 'top_left' | 'top_right' | 'bottom_left' | 'bottom_right';\r\n\r\nexport interface TableColumn {\r\n key: string;\r\n label: string;\r\n width?: string;\r\n align?: 'left' | 'center' | 'right';\r\n stickyRight?: boolean;\r\n helpIcon?: boolean;\r\n sortable?: boolean;\r\n sortType?: 'string' | 'number' | 'date';\r\n sortComparator?: (a: any, b: any) => number;\r\n render?: (row: any) => any;\r\n cellComponent?: string;\r\n cellActionType?: 'dropdown' | 'void';\r\n cellProps?: { [key: string]: any };\r\n cellSlots?: JSX.Element | ((row: any) => JSX.Element);\r\n onClick?: () => void;\r\n mobile?: {\r\n position?: MobilePosition;\r\n };\r\n}\r\n\r\nexport interface RowAction {\r\n label: string;\r\n icon?: string;\r\n action: string; // emitted event name\r\n disabled?: boolean;\r\n type?: 'button' | 'dropdown';\r\n}\r\n\r\nexport interface DropdownOption {\r\n label: string;\r\n icon?: string;\r\n action: string; // emitted event name\r\n disabled?: boolean;\r\n}\r\n\r\nexport type PortalPlacement =\r\n | 'top'\r\n | 'top-start'\r\n | 'top-end'\r\n | 'bottom'\r\n | 'bottom-start'\r\n | 'bottom-end'\r\n | 'left'\r\n | 'left-start'\r\n | 'left-end'\r\n | 'right'\r\n | 'right-start'\r\n | 'right-end';\r\n"],"names":[],"mappings":"AAMY,IAAA;AAAZ,CAAA,UAAY,SAAS,EAAA;AACnB,IAAA,SAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,SAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACvB,CAAC,EAHW,SAAS,KAAT,SAAS,GAGpB,EAAA,CAAA,CAAA;AAMW,IAAA;AAAZ,CAAA,UAAY,aAAa,EAAA;AACvB,IAAA,aAAA,CAAA,WAAA,CAAA,GAAA,YAAwB;AACxB,IAAA,aAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,aAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,aAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACjB,CAAC,EALW,aAAa,KAAb,aAAa,GAKxB,EAAA,CAAA,CAAA;AAEW,IAAA;AAAZ,CAAA,UAAY,qBAAqB,EAAA;AAC/B,IAAA,qBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,qBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACrB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,GAGhC,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -28,6 +28,19 @@
|
|
|
28
28
|
| `buttonClicked` | | `CustomEvent<void>` |
|
|
29
29
|
|
|
30
30
|
|
|
31
|
+
## Methods
|
|
32
|
+
|
|
33
|
+
### `getNativeButton() => Promise<HTMLButtonElement | null>`
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
#### Returns
|
|
38
|
+
|
|
39
|
+
Type: `Promise<HTMLButtonElement>`
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
31
44
|
## Dependencies
|
|
32
45
|
|
|
33
46
|
### Used by
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { RowAction, TableColumn } from '../../models/reusableModels';
|
|
2
|
+
import { DropdownOption, GeneralColors, RowAction, TableColumn, ThemeTypes } from '../../models/reusableModels';
|
|
3
3
|
export declare class GbTable {
|
|
4
4
|
columns: TableColumn[];
|
|
5
5
|
data: any[];
|
|
@@ -12,25 +12,39 @@ export declare class GbTable {
|
|
|
12
12
|
showSearch: boolean;
|
|
13
13
|
showExport: boolean;
|
|
14
14
|
showRefreshButton: boolean;
|
|
15
|
+
datePickerMode: 'single' | 'range';
|
|
16
|
+
};
|
|
17
|
+
paginationConfig: {
|
|
18
|
+
paginationMode: 'internal' | 'external';
|
|
19
|
+
entriesDropdownMenuPosition: 'top' | 'bottom';
|
|
20
|
+
currentPage?: number;
|
|
21
|
+
pageSize?: number;
|
|
22
|
+
totalItems?: number;
|
|
23
|
+
};
|
|
24
|
+
emptyStateConfig: {
|
|
25
|
+
mainText: string;
|
|
26
|
+
supportingText?: string;
|
|
27
|
+
color?: GeneralColors;
|
|
28
|
+
illustrationIcon?: string;
|
|
29
|
+
theme?: ThemeTypes;
|
|
30
|
+
primaryButtonIcon?: string;
|
|
15
31
|
};
|
|
16
|
-
paginationConfig: any;
|
|
17
32
|
showActionsColumn: boolean;
|
|
18
|
-
rowActions
|
|
33
|
+
rowActions: RowAction[];
|
|
34
|
+
dropdownOptions?: DropdownOption[];
|
|
19
35
|
stickyFirstColumn: boolean;
|
|
20
36
|
stickyLastColumn: boolean;
|
|
21
37
|
actionsType: 'none' | 'dropdown' | '';
|
|
22
38
|
showCheckbox: boolean;
|
|
23
|
-
paginationMode: 'internal' | 'external';
|
|
24
|
-
currentPage?: number;
|
|
25
|
-
pageSize: number;
|
|
26
|
-
totalItems?: number;
|
|
27
39
|
internalCurrentPage: number;
|
|
40
|
+
internalPageSize: number;
|
|
28
41
|
openRowIndex: number | null;
|
|
29
42
|
sortKey?: string;
|
|
30
43
|
sortDirection: 'asc' | 'desc';
|
|
31
44
|
selectedRowIds: Set<string>;
|
|
32
45
|
breakpoint: 'mobile' | 'desktop';
|
|
33
46
|
isMobile: boolean;
|
|
47
|
+
isScrollable: boolean;
|
|
34
48
|
rowActionClick: EventEmitter<{
|
|
35
49
|
action: string;
|
|
36
50
|
row: any;
|
|
@@ -44,8 +58,11 @@ export declare class GbTable {
|
|
|
44
58
|
dateChange: EventEmitter<string | string[]>;
|
|
45
59
|
private actionButtonRefs;
|
|
46
60
|
private currentAnchorEl?;
|
|
47
|
-
|
|
61
|
+
private scrollContainer?;
|
|
62
|
+
componentWillRender(): void;
|
|
63
|
+
componentDidRender(): void;
|
|
48
64
|
checkViewport(): void;
|
|
65
|
+
private checkScrollability;
|
|
49
66
|
private handleAction;
|
|
50
67
|
private renderCell;
|
|
51
68
|
emitPaginationDetails({ detail }: {
|
|
@@ -61,15 +78,15 @@ export declare class GbTable {
|
|
|
61
78
|
private emitSelection;
|
|
62
79
|
private get displayedData();
|
|
63
80
|
private handlePageChange;
|
|
81
|
+
private get totalPages();
|
|
64
82
|
onDataChange(newValue: any[], _oldValue: any[]): void;
|
|
65
83
|
onTotalItemsChange(newValue: number, _oldValue: number): void;
|
|
66
84
|
private renderHeaderIcons;
|
|
67
85
|
renderDesktopView(): any;
|
|
68
86
|
validateMobilePositions(): void;
|
|
69
87
|
renderMobileView(): any;
|
|
70
|
-
emitSearchValue(
|
|
71
|
-
|
|
72
|
-
}): void;
|
|
88
|
+
emitSearchValue(detail: any): void;
|
|
89
|
+
emitDateChange(detail: any): void;
|
|
73
90
|
disconnectedCallback(): void;
|
|
74
91
|
render(): any;
|
|
75
92
|
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { ArrowPositions, BadgeIconTypes, BadgeTypes, BorderWeights, BreakPoints, ButtonGroupTypes, CheckBoxVariants, CloseButtonPositions, ColorTypes, DetailCellType, DropdownListGroup, DropdownRoles, DropdownTypes, FileIconStyles, FileIconTypes, FileUploadIconType, FileUploadStates, GeneralBackgroundCategories, GeneralColors, GeneralHierarchies, GeneralSizes, GeneralStyles, IllustrationTypes, InputFieldTypes, MetricFeaturedIconTypes, Notification, OnlineIndicatorStates, PaginationDotTypes, PaginationNumberShapes, PaginationTypes, PatternTypes, PortalPlacement, ProgressStepStates, ProgressStepStatus, ProgressStepTypes, RowAction, StateEnum, StateType, StepperType, TableCellTypes, TableColumn, TabTypes, ThemeTypes } from "./models/reusableModels";
|
|
8
|
+
import { ArrowPositions, BadgeIconTypes, BadgeTypes, BorderWeights, BreakPoints, ButtonGroupTypes, CheckBoxVariants, CloseButtonPositions, ColorTypes, DetailCellType, DropdownListGroup, DropdownOption, DropdownRoles, DropdownTypes, FileIconStyles, FileIconTypes, FileUploadIconType, FileUploadStates, GeneralBackgroundCategories, GeneralColors, GeneralHierarchies, GeneralSizes, GeneralStyles, IllustrationTypes, InputFieldTypes, MetricFeaturedIconTypes, Notification, OnlineIndicatorStates, PaginationDotTypes, PaginationNumberShapes, PaginationTypes, PatternTypes, PortalPlacement, ProgressStepStates, ProgressStepStatus, ProgressStepTypes, RowAction, StateEnum, StateType, StepperType, TableCellTypes, TableColumn, TabTypes, ThemeTypes } from "./models/reusableModels";
|
|
9
9
|
import { StateType as StateType1, ThemeTypes as ThemeTypes1 } from "./components";
|
|
10
|
-
export { ArrowPositions, BadgeIconTypes, BadgeTypes, BorderWeights, BreakPoints, ButtonGroupTypes, CheckBoxVariants, CloseButtonPositions, ColorTypes, DetailCellType, DropdownListGroup, DropdownRoles, DropdownTypes, FileIconStyles, FileIconTypes, FileUploadIconType, FileUploadStates, GeneralBackgroundCategories, GeneralColors, GeneralHierarchies, GeneralSizes, GeneralStyles, IllustrationTypes, InputFieldTypes, MetricFeaturedIconTypes, Notification, OnlineIndicatorStates, PaginationDotTypes, PaginationNumberShapes, PaginationTypes, PatternTypes, PortalPlacement, ProgressStepStates, ProgressStepStatus, ProgressStepTypes, RowAction, StateEnum, StateType, StepperType, TableCellTypes, TableColumn, TabTypes, ThemeTypes } from "./models/reusableModels";
|
|
10
|
+
export { ArrowPositions, BadgeIconTypes, BadgeTypes, BorderWeights, BreakPoints, ButtonGroupTypes, CheckBoxVariants, CloseButtonPositions, ColorTypes, DetailCellType, DropdownListGroup, DropdownOption, DropdownRoles, DropdownTypes, FileIconStyles, FileIconTypes, FileUploadIconType, FileUploadStates, GeneralBackgroundCategories, GeneralColors, GeneralHierarchies, GeneralSizes, GeneralStyles, IllustrationTypes, InputFieldTypes, MetricFeaturedIconTypes, Notification, OnlineIndicatorStates, PaginationDotTypes, PaginationNumberShapes, PaginationTypes, PatternTypes, PortalPlacement, ProgressStepStates, ProgressStepStatus, ProgressStepTypes, RowAction, StateEnum, StateType, StepperType, TableCellTypes, TableColumn, TabTypes, ThemeTypes } from "./models/reusableModels";
|
|
11
11
|
export { StateType as StateType1, ThemeTypes as ThemeTypes1 } from "./components";
|
|
12
12
|
export namespace Components {
|
|
13
13
|
interface GbActionPanel {
|
|
@@ -742,7 +742,7 @@ export namespace Components {
|
|
|
742
742
|
*/
|
|
743
743
|
"fullWidth": boolean;
|
|
744
744
|
/**
|
|
745
|
-
* @default '
|
|
745
|
+
* @default 'right'
|
|
746
746
|
*/
|
|
747
747
|
"iconPosition": CloseButtonPositions;
|
|
748
748
|
/**
|
|
@@ -2203,39 +2203,41 @@ export namespace Components {
|
|
|
2203
2203
|
*/
|
|
2204
2204
|
"actionsType": 'none' | 'dropdown' | '';
|
|
2205
2205
|
/**
|
|
2206
|
-
* @default [ { key: 'id', label: '#', width: '70px', sortable: true, sortType: 'string', mobile: { position: 'top_left' } }, { key: 'date', label: 'Date', mobile: { position: 'bottom_left' } }, { key: 'name', label: 'Name', sortable: true, sortType: 'string', helpIcon: true, mobile: { position: 'top_right' } }, { key: 'role', label: 'Role' }, { key: 'amount', label: 'Amount', align: 'right', sortable: true, sortType: 'number' }, { key: 'status', label: 'Status',
|
|
2206
|
+
* @default [ { key: 'id', label: '#', width: '70px', sortable: true, sortType: 'string', mobile: { position: 'top_left' } }, { key: 'date', label: 'Date', mobile: { position: 'bottom_left' } }, { key: 'name', label: 'Name', sortable: true, sortType: 'string', helpIcon: true, mobile: { position: 'top_right' } }, { key: 'role', label: 'Role' }, { key: 'amount', label: 'Amount', align: 'right', sortable: true, sortType: 'number' }, { key: 'status', label: 'Status', render: row => ( <gb-badge color={row.status === 'Completed' ? 'success' : 'error'} type="badge_modern" size="sm" icon="dot"> <p>{row.status}</p> </gb-badge> ), mobile: { position: 'bottom_right' }, }, // { // key: '', // label: '', // cellComponent: 'gb-button', // width: '50px', // cellProps: () => ({ // hierarchy: 'tertiary_gray', // size: 'sm', // icon: 'only', // iconLeading: true, // iconLeadingSwap: 'assets/more-horizontal.svg', // }), // }, ]
|
|
2207
2207
|
*/
|
|
2208
2208
|
"columns": TableColumn[];
|
|
2209
2209
|
/**
|
|
2210
|
-
* @default 1
|
|
2211
|
-
*/
|
|
2212
|
-
"currentPage"?: number;
|
|
2213
|
-
/**
|
|
2214
|
-
* @default [ { id: '#3001', date: 'Jan 1, 2022', name: 'Emma Johnson', role: 'Frontend Developer', level: 'Today', customer: 'John Doe', amount: '$120.00', status: 'Completed' }, { id: '#3002', date: 'Jan 2, 2022', name: 'Liam Smith', role: 'Backend Developer', level: 'Today', customer: 'Sarah Wilson', amount: '$85.50', status: 'Pending' }, { id: '#3003', date: 'Jan 3, 2022', name: 'Olivia Brown', role: 'UI Designer', level: 'Today', customer: 'Michael Lee', amount: '$230.75', status: 'Cancelled' }, { id: '#3004', date: 'Jan 4, 2022', name: 'Noah Davis', role: 'DevOps Engineer', level: 'Today', customer: 'Emily Clark', amount: '$59.99', status: 'Completed' }, { id: '#3005', date: 'Jan 5, 2022', name: 'Ava Martinez', role: 'Product Manager', level: 'Today', customer: 'Daniel Harris', amount: '$410.00', status: 'Pending' }, { id: '#3006', date: 'Jan 6, 2022', name: 'William Garcia', role: 'QA Engineer', level: 'Today', customer: 'Sophia Lewis', amount: '$150.20', status: 'Completed' }, { id: '#3007', date: 'Jan 7, 2022', name: 'Isabella Rodriguez', role: 'Business Analyst', level: 'Today', customer: 'James Walker', amount: '$78.40', status: 'Pending' }, { id: '#3008', date: 'Jan 8, 2022', name: 'James Wilson', role: 'Fullstack Developer', level: 'Today', customer: 'Mia Hall', amount: '$300.00', status: 'Completed' }, { id: '#3009', date: 'Jan 9, 2022', name: 'Sophia Anderson', role: 'UX Researcher', level: 'Today', customer: 'Benjamin Allen', amount: '$95.60', status: 'Cancelled' }, { id: '#3010', date: 'Jan 10, 2022', name: 'Benjamin Thomas', role: 'Mobile Developer', level: 'Today', customer: 'Charlotte Young', amount: '$210.10', status: 'Completed' }, { id: '#3011', date: 'Jan 11, 2022', name: 'Mia Taylor', role: 'Data Analyst', level: 'Today', customer: 'Lucas King', amount: '$180.00', status: 'Pending' }, { id: '#3012', date: 'Jan 12, 2022', name: 'Lucas Moore', role: 'Cloud Engineer', level: 'Today', customer: 'Amelia Scott', amount: '$420.75', status: 'Completed' }, { id: '#3013', date: 'Jan 13, 2022', name: 'Charlotte Jackson', role: 'Security Engineer', level: 'Today', customer: 'Elijah Green', amount: '$65.90', status: 'Cancelled' }, { id: '#3014', date: 'Jan 14, 2022', name: 'Elijah Martin', role: 'Technical Lead', level: 'Today', customer: 'Harper Adams', amount: '$510.30', status: 'Completed' }, { id: '#3015', date: 'Jan 15, 2022', name: 'Amelia Lee', role: 'Scrum Master', level: 'Today', customer: 'Alexander Baker', amount: '$99.99', status: 'Pending' }, { id: '#3016', date: 'Jan 16, 2022', name: 'Harper Perez', role: 'Frontend Developer', level: 'Today', customer: 'Ella Nelson', amount: '$275.45', status: 'Completed' }, { id: '#3017', date: 'Jan 17, 2022', name: 'Alexander White', role: 'Backend Developer', level: 'Today', customer: 'Matthew Carter', amount: '$340.00', status: 'Pending' }, { id: '#3018', date: 'Jan 18, 2022', name: 'Ella Harris', role: 'UI Designer', level: 'Today', customer: 'Avery Mitchell', amount: '$88.80', status: 'Completed' }, { id: '#3019', date: 'Jan 19, 2022', name: 'Matthew Clark', role: 'DevOps Engineer', level: 'Today', customer: 'Evelyn Perez', amount: '$190.25', status: 'Cancelled' }, { id: '#3020', date: 'Jan 20, 2022', name: 'Avery Lewis', role: 'Product Manager', level: 'Today', customer: 'Henry Roberts', amount: '$600.00', status: 'Completed' }, { id: '#3021', date: 'Jan 21, 2022', name: 'Evelyn Walker', role: 'QA Engineer', level: 'Today', customer: 'Luna Turner', amount: '$72.30', status: 'Pending' }, { id: '#3022', date: 'Jan 22, 2022', name: 'Henry Hall', role: 'Business Analyst', level: 'Today', customer: 'Jack Phillips', amount: '$310.40', status: 'Completed' }, { id: '#3023', date: 'Jan 23, 2022', name: 'Luna Allen', role: 'Fullstack Developer', level: 'Today', customer: 'Sofia Campbell', amount: '$145.00', status: 'Cancelled' }, { id: '#3024', date: 'Jan 24, 2022', name: 'Jack Young', role: 'UX Researcher', level: 'Today', customer: 'David Parker', amount: '$260.70', status: 'Completed' }, { id: '#3025', date: 'Jan 25, 2022', name: 'Sofia Hernandez', role: 'Mobile Developer', level: 'Today', customer: 'Grace Evans', amount: '$89.10', status: 'Pending' }, { id: '#3026', date: 'Jan 26, 2022', name: 'David King', role: 'Data Analyst', level: 'Today', customer: 'Samuel Edwards', amount: '$410.90', status: 'Completed' }, { id: '#3027', date: 'Jan 27, 2022', name: 'Grace Wright', role: 'Cloud Engineer', level: 'Today', customer: 'Chloe Collins', amount: '$130.55', status: 'Cancelled' }, { id: '#3028', date: 'Jan 28, 2022', name: 'Samuel Scott', role: 'Security Engineer', level: 'Today', customer: 'Victoria Stewart', amount: '$555.00', status: 'Completed' }, { id: '#3029', date: 'Jan 29, 2022', name: 'Chloe Green', role: 'Technical Lead', level: 'Today', customer: 'Nathan Morris', amount: '$205.25', status: 'Pending' }, { id: '#3030', date: 'Jan 30, 2022', name: 'Nathan Adams', role: 'Scrum Master', level: 'Today', customer: 'Zoe Rogers', amount: '$320.80', status: 'Completed' }, ]
|
|
2210
|
+
* @default [ { id: '#3001', date: 'Jan 1, 2022', name: 'Emma Johnson', role: 'Frontend Developer', level: 'Today', customer: 'John Doe', amount: '$120.00', status: 'Completed', }, { id: '#3002', date: 'Jan 2, 2022', name: 'Liam Smith', role: 'Backend Developer', level: 'Today', customer: 'Sarah Wilson', amount: '$85.50', status: 'Pending' }, { id: '#3003', date: 'Jan 3, 2022', name: 'Olivia Brown', role: 'UI Designer', level: 'Today', customer: 'Michael Lee', amount: '$230.75', status: 'Cancelled' }, { id: '#3004', date: 'Jan 4, 2022', name: 'Noah Davis', role: 'DevOps Engineer', level: 'Today', customer: 'Emily Clark', amount: '$59.99', status: 'Completed' }, { id: '#3005', date: 'Jan 5, 2022', name: 'Ava Martinez', role: 'Product Manager', level: 'Today', customer: 'Daniel Harris', amount: '$410.00', status: 'Pending' }, { id: '#3006', date: 'Jan 6, 2022', name: 'William Garcia', role: 'QA Engineer', level: 'Today', customer: 'Sophia Lewis', amount: '$150.20', status: 'Completed' }, { id: '#3007', date: 'Jan 7, 2022', name: 'Isabella Rodriguez', role: 'Business Analyst', level: 'Today', customer: 'James Walker', amount: '$78.40', status: 'Pending' }, { id: '#3008', date: 'Jan 8, 2022', name: 'James Wilson', role: 'Fullstack Developer', level: 'Today', customer: 'Mia Hall', amount: '$300.00', status: 'Completed' }, { id: '#3009', date: 'Jan 9, 2022', name: 'Sophia Anderson', role: 'UX Researcher', level: 'Today', customer: 'Benjamin Allen', amount: '$95.60', status: 'Cancelled' }, { id: '#3010', date: 'Jan 10, 2022', name: 'Benjamin Thomas', role: 'Mobile Developer', level: 'Today', customer: 'Charlotte Young', amount: '$210.10', status: 'Completed' }, { id: '#3011', date: 'Jan 11, 2022', name: 'Mia Taylor', role: 'Data Analyst', level: 'Today', customer: 'Lucas King', amount: '$180.00', status: 'Pending' }, { id: '#3012', date: 'Jan 12, 2022', name: 'Lucas Moore', role: 'Cloud Engineer', level: 'Today', customer: 'Amelia Scott', amount: '$420.75', status: 'Completed' }, { id: '#3013', date: 'Jan 13, 2022', name: 'Charlotte Jackson', role: 'Security Engineer', level: 'Today', customer: 'Elijah Green', amount: '$65.90', status: 'Cancelled' }, { id: '#3014', date: 'Jan 14, 2022', name: 'Elijah Martin', role: 'Technical Lead', level: 'Today', customer: 'Harper Adams', amount: '$510.30', status: 'Completed' }, { id: '#3015', date: 'Jan 15, 2022', name: 'Amelia Lee', role: 'Scrum Master', level: 'Today', customer: 'Alexander Baker', amount: '$99.99', status: 'Pending' }, { id: '#3016', date: 'Jan 16, 2022', name: 'Harper Perez', role: 'Frontend Developer', level: 'Today', customer: 'Ella Nelson', amount: '$275.45', status: 'Completed' }, { id: '#3017', date: 'Jan 17, 2022', name: 'Alexander White', role: 'Backend Developer', level: 'Today', customer: 'Matthew Carter', amount: '$340.00', status: 'Pending' }, { id: '#3018', date: 'Jan 18, 2022', name: 'Ella Harris', role: 'UI Designer', level: 'Today', customer: 'Avery Mitchell', amount: '$88.80', status: 'Completed' }, { id: '#3019', date: 'Jan 19, 2022', name: 'Matthew Clark', role: 'DevOps Engineer', level: 'Today', customer: 'Evelyn Perez', amount: '$190.25', status: 'Cancelled' }, { id: '#3020', date: 'Jan 20, 2022', name: 'Avery Lewis', role: 'Product Manager', level: 'Today', customer: 'Henry Roberts', amount: '$600.00', status: 'Completed' }, { id: '#3021', date: 'Jan 21, 2022', name: 'Evelyn Walker', role: 'QA Engineer', level: 'Today', customer: 'Luna Turner', amount: '$72.30', status: 'Pending' }, { id: '#3022', date: 'Jan 22, 2022', name: 'Henry Hall', role: 'Business Analyst', level: 'Today', customer: 'Jack Phillips', amount: '$310.40', status: 'Completed' }, { id: '#3023', date: 'Jan 23, 2022', name: 'Luna Allen', role: 'Fullstack Developer', level: 'Today', customer: 'Sofia Campbell', amount: '$145.00', status: 'Cancelled' }, { id: '#3024', date: 'Jan 24, 2022', name: 'Jack Young', role: 'UX Researcher', level: 'Today', customer: 'David Parker', amount: '$260.70', status: 'Completed' }, { id: '#3025', date: 'Jan 25, 2022', name: 'Sofia Hernandez', role: 'Mobile Developer', level: 'Today', customer: 'Grace Evans', amount: '$89.10', status: 'Pending' }, { id: '#3026', date: 'Jan 26, 2022', name: 'David King', role: 'Data Analyst', level: 'Today', customer: 'Samuel Edwards', amount: '$410.90', status: 'Completed' }, { id: '#3027', date: 'Jan 27, 2022', name: 'Grace Wright', role: 'Cloud Engineer', level: 'Today', customer: 'Chloe Collins', amount: '$130.55', status: 'Cancelled' }, { id: '#3028', date: 'Jan 28, 2022', name: 'Samuel Scott', role: 'Security Engineer', level: 'Today', customer: 'Victoria Stewart', amount: '$555.00', status: 'Completed' }, { id: '#3029', date: 'Jan 29, 2022', name: 'Chloe Green', role: 'Technical Lead', level: 'Today', customer: 'Nathan Morris', amount: '$205.25', status: 'Pending' }, { id: '#3030', date: 'Jan 30, 2022', name: 'Nathan Adams', role: 'Scrum Master', level: 'Today', customer: 'Zoe Rogers', amount: '$320.80', status: 'Completed' }, ]
|
|
2215
2211
|
*/
|
|
2216
2212
|
"data": any[];
|
|
2217
2213
|
/**
|
|
2218
|
-
* @default
|
|
2214
|
+
* @default [ { label: 'View', action: 'view', icon: 'assets/view.svg', disabled: false }, { label: 'Edit', action: 'edit', icon: 'assets/pencil-edit-01.svg', disabled: false }, { label: 'Delete', action: 'delete', icon: 'assets/delete-02.svg', disabled: true }, ]
|
|
2219
2215
|
*/
|
|
2220
|
-
"
|
|
2216
|
+
"dropdownOptions"?: DropdownOption[];
|
|
2221
2217
|
/**
|
|
2222
|
-
* @default {
|
|
2218
|
+
* @default { mainText: 'No data available', supportingText: 'Try adjusting your filters or check back later.', color: 'gray', illustrationIcon: 'assets/alert-circle.svg', theme: 'light', }
|
|
2223
2219
|
*/
|
|
2224
|
-
"
|
|
2220
|
+
"emptyStateConfig": { mainText: string; supportingText?: string; color?: GeneralColors; illustrationIcon?: string; theme?: ThemeTypes; primaryButtonIcon?: string };
|
|
2225
2221
|
/**
|
|
2226
|
-
* @default 'internal'
|
|
2222
|
+
* @default { paginationMode: 'internal', entriesDropdownMenuPosition: 'top', currentPage: 1, pageSize: 10, totalItems: null, }
|
|
2227
2223
|
*/
|
|
2228
|
-
"
|
|
2224
|
+
"paginationConfig": {
|
|
2225
|
+
paginationMode: 'internal' | 'external';
|
|
2226
|
+
entriesDropdownMenuPosition: 'top' | 'bottom';
|
|
2227
|
+
currentPage?: number;
|
|
2228
|
+
pageSize?: number;
|
|
2229
|
+
totalItems?: number;
|
|
2230
|
+
};
|
|
2229
2231
|
/**
|
|
2230
|
-
* @default [{ label: 'View', action: 'view',
|
|
2232
|
+
* @default [ { label: '', action: '', icon: 'assets/more-horizontal.svg', type: 'dropdown' }, // { label: 'View Details', action: 'view_details', icon: 'assets/view.svg', type: 'button' }, // { label: 'Edit', action: 'edit', icon: 'assets/pencil-edit-01.svg', type: 'button' }, ]
|
|
2231
2233
|
*/
|
|
2232
|
-
"rowActions"
|
|
2234
|
+
"rowActions": RowAction[];
|
|
2233
2235
|
/**
|
|
2234
2236
|
* @default true
|
|
2235
2237
|
*/
|
|
2236
2238
|
"showActionsColumn": boolean;
|
|
2237
2239
|
/**
|
|
2238
|
-
* @default
|
|
2240
|
+
* @default false
|
|
2239
2241
|
*/
|
|
2240
2242
|
"showCheckbox": boolean;
|
|
2241
2243
|
/**
|
|
@@ -2247,7 +2249,7 @@ export namespace Components {
|
|
|
2247
2249
|
*/
|
|
2248
2250
|
"stickyLastColumn": boolean;
|
|
2249
2251
|
/**
|
|
2250
|
-
* @default { tableHeading: false, tableHeadingLabel: 'Suspicious outflows', showDateFilter: true, showFilter: true, showColumnOptions: true, showSearch: true, showExport: true, showRefreshButton: true, }
|
|
2252
|
+
* @default { tableHeading: false, tableHeadingLabel: 'Suspicious outflows', showDateFilter: true, showFilter: true, showColumnOptions: true, showSearch: true, showExport: true, showRefreshButton: true, datePickerMode: 'single', }
|
|
2251
2253
|
*/
|
|
2252
2254
|
"tableHeaderConfig": {
|
|
2253
2255
|
tableHeading: boolean;
|
|
@@ -2258,8 +2260,8 @@ export namespace Components {
|
|
|
2258
2260
|
showSearch: boolean;
|
|
2259
2261
|
showExport: boolean;
|
|
2260
2262
|
showRefreshButton: boolean;
|
|
2263
|
+
datePickerMode: 'single' | 'range';
|
|
2261
2264
|
};
|
|
2262
|
-
"totalItems"?: number;
|
|
2263
2265
|
}
|
|
2264
2266
|
interface GbTableCell {
|
|
2265
2267
|
"type": TableCellTypes;
|
|
@@ -4857,7 +4859,7 @@ declare namespace LocalJSX {
|
|
|
4857
4859
|
*/
|
|
4858
4860
|
"fullWidth"?: boolean;
|
|
4859
4861
|
/**
|
|
4860
|
-
* @default '
|
|
4862
|
+
* @default 'right'
|
|
4861
4863
|
*/
|
|
4862
4864
|
"iconPosition"?: CloseButtonPositions;
|
|
4863
4865
|
/**
|
|
@@ -6357,36 +6359,38 @@ declare namespace LocalJSX {
|
|
|
6357
6359
|
*/
|
|
6358
6360
|
"actionsType"?: 'none' | 'dropdown' | '';
|
|
6359
6361
|
/**
|
|
6360
|
-
* @default [ { key: 'id', label: '#', width: '70px', sortable: true, sortType: 'string', mobile: { position: 'top_left' } }, { key: 'date', label: 'Date', mobile: { position: 'bottom_left' } }, { key: 'name', label: 'Name', sortable: true, sortType: 'string', helpIcon: true, mobile: { position: 'top_right' } }, { key: 'role', label: 'Role' }, { key: 'amount', label: 'Amount', align: 'right', sortable: true, sortType: 'number' }, { key: 'status', label: 'Status',
|
|
6362
|
+
* @default [ { key: 'id', label: '#', width: '70px', sortable: true, sortType: 'string', mobile: { position: 'top_left' } }, { key: 'date', label: 'Date', mobile: { position: 'bottom_left' } }, { key: 'name', label: 'Name', sortable: true, sortType: 'string', helpIcon: true, mobile: { position: 'top_right' } }, { key: 'role', label: 'Role' }, { key: 'amount', label: 'Amount', align: 'right', sortable: true, sortType: 'number' }, { key: 'status', label: 'Status', render: row => ( <gb-badge color={row.status === 'Completed' ? 'success' : 'error'} type="badge_modern" size="sm" icon="dot"> <p>{row.status}</p> </gb-badge> ), mobile: { position: 'bottom_right' }, }, // { // key: '', // label: '', // cellComponent: 'gb-button', // width: '50px', // cellProps: () => ({ // hierarchy: 'tertiary_gray', // size: 'sm', // icon: 'only', // iconLeading: true, // iconLeadingSwap: 'assets/more-horizontal.svg', // }), // }, ]
|
|
6361
6363
|
*/
|
|
6362
6364
|
"columns"?: TableColumn[];
|
|
6363
6365
|
/**
|
|
6364
|
-
* @default 1
|
|
6366
|
+
* @default [ { id: '#3001', date: 'Jan 1, 2022', name: 'Emma Johnson', role: 'Frontend Developer', level: 'Today', customer: 'John Doe', amount: '$120.00', status: 'Completed', }, { id: '#3002', date: 'Jan 2, 2022', name: 'Liam Smith', role: 'Backend Developer', level: 'Today', customer: 'Sarah Wilson', amount: '$85.50', status: 'Pending' }, { id: '#3003', date: 'Jan 3, 2022', name: 'Olivia Brown', role: 'UI Designer', level: 'Today', customer: 'Michael Lee', amount: '$230.75', status: 'Cancelled' }, { id: '#3004', date: 'Jan 4, 2022', name: 'Noah Davis', role: 'DevOps Engineer', level: 'Today', customer: 'Emily Clark', amount: '$59.99', status: 'Completed' }, { id: '#3005', date: 'Jan 5, 2022', name: 'Ava Martinez', role: 'Product Manager', level: 'Today', customer: 'Daniel Harris', amount: '$410.00', status: 'Pending' }, { id: '#3006', date: 'Jan 6, 2022', name: 'William Garcia', role: 'QA Engineer', level: 'Today', customer: 'Sophia Lewis', amount: '$150.20', status: 'Completed' }, { id: '#3007', date: 'Jan 7, 2022', name: 'Isabella Rodriguez', role: 'Business Analyst', level: 'Today', customer: 'James Walker', amount: '$78.40', status: 'Pending' }, { id: '#3008', date: 'Jan 8, 2022', name: 'James Wilson', role: 'Fullstack Developer', level: 'Today', customer: 'Mia Hall', amount: '$300.00', status: 'Completed' }, { id: '#3009', date: 'Jan 9, 2022', name: 'Sophia Anderson', role: 'UX Researcher', level: 'Today', customer: 'Benjamin Allen', amount: '$95.60', status: 'Cancelled' }, { id: '#3010', date: 'Jan 10, 2022', name: 'Benjamin Thomas', role: 'Mobile Developer', level: 'Today', customer: 'Charlotte Young', amount: '$210.10', status: 'Completed' }, { id: '#3011', date: 'Jan 11, 2022', name: 'Mia Taylor', role: 'Data Analyst', level: 'Today', customer: 'Lucas King', amount: '$180.00', status: 'Pending' }, { id: '#3012', date: 'Jan 12, 2022', name: 'Lucas Moore', role: 'Cloud Engineer', level: 'Today', customer: 'Amelia Scott', amount: '$420.75', status: 'Completed' }, { id: '#3013', date: 'Jan 13, 2022', name: 'Charlotte Jackson', role: 'Security Engineer', level: 'Today', customer: 'Elijah Green', amount: '$65.90', status: 'Cancelled' }, { id: '#3014', date: 'Jan 14, 2022', name: 'Elijah Martin', role: 'Technical Lead', level: 'Today', customer: 'Harper Adams', amount: '$510.30', status: 'Completed' }, { id: '#3015', date: 'Jan 15, 2022', name: 'Amelia Lee', role: 'Scrum Master', level: 'Today', customer: 'Alexander Baker', amount: '$99.99', status: 'Pending' }, { id: '#3016', date: 'Jan 16, 2022', name: 'Harper Perez', role: 'Frontend Developer', level: 'Today', customer: 'Ella Nelson', amount: '$275.45', status: 'Completed' }, { id: '#3017', date: 'Jan 17, 2022', name: 'Alexander White', role: 'Backend Developer', level: 'Today', customer: 'Matthew Carter', amount: '$340.00', status: 'Pending' }, { id: '#3018', date: 'Jan 18, 2022', name: 'Ella Harris', role: 'UI Designer', level: 'Today', customer: 'Avery Mitchell', amount: '$88.80', status: 'Completed' }, { id: '#3019', date: 'Jan 19, 2022', name: 'Matthew Clark', role: 'DevOps Engineer', level: 'Today', customer: 'Evelyn Perez', amount: '$190.25', status: 'Cancelled' }, { id: '#3020', date: 'Jan 20, 2022', name: 'Avery Lewis', role: 'Product Manager', level: 'Today', customer: 'Henry Roberts', amount: '$600.00', status: 'Completed' }, { id: '#3021', date: 'Jan 21, 2022', name: 'Evelyn Walker', role: 'QA Engineer', level: 'Today', customer: 'Luna Turner', amount: '$72.30', status: 'Pending' }, { id: '#3022', date: 'Jan 22, 2022', name: 'Henry Hall', role: 'Business Analyst', level: 'Today', customer: 'Jack Phillips', amount: '$310.40', status: 'Completed' }, { id: '#3023', date: 'Jan 23, 2022', name: 'Luna Allen', role: 'Fullstack Developer', level: 'Today', customer: 'Sofia Campbell', amount: '$145.00', status: 'Cancelled' }, { id: '#3024', date: 'Jan 24, 2022', name: 'Jack Young', role: 'UX Researcher', level: 'Today', customer: 'David Parker', amount: '$260.70', status: 'Completed' }, { id: '#3025', date: 'Jan 25, 2022', name: 'Sofia Hernandez', role: 'Mobile Developer', level: 'Today', customer: 'Grace Evans', amount: '$89.10', status: 'Pending' }, { id: '#3026', date: 'Jan 26, 2022', name: 'David King', role: 'Data Analyst', level: 'Today', customer: 'Samuel Edwards', amount: '$410.90', status: 'Completed' }, { id: '#3027', date: 'Jan 27, 2022', name: 'Grace Wright', role: 'Cloud Engineer', level: 'Today', customer: 'Chloe Collins', amount: '$130.55', status: 'Cancelled' }, { id: '#3028', date: 'Jan 28, 2022', name: 'Samuel Scott', role: 'Security Engineer', level: 'Today', customer: 'Victoria Stewart', amount: '$555.00', status: 'Completed' }, { id: '#3029', date: 'Jan 29, 2022', name: 'Chloe Green', role: 'Technical Lead', level: 'Today', customer: 'Nathan Morris', amount: '$205.25', status: 'Pending' }, { id: '#3030', date: 'Jan 30, 2022', name: 'Nathan Adams', role: 'Scrum Master', level: 'Today', customer: 'Zoe Rogers', amount: '$320.80', status: 'Completed' }, ]
|
|
6365
6367
|
*/
|
|
6366
|
-
"
|
|
6368
|
+
"data"?: any[];
|
|
6367
6369
|
/**
|
|
6368
|
-
* @default [ {
|
|
6370
|
+
* @default [ { label: 'View', action: 'view', icon: 'assets/view.svg', disabled: false }, { label: 'Edit', action: 'edit', icon: 'assets/pencil-edit-01.svg', disabled: false }, { label: 'Delete', action: 'delete', icon: 'assets/delete-02.svg', disabled: true }, ]
|
|
6369
6371
|
*/
|
|
6370
|
-
"
|
|
6372
|
+
"dropdownOptions"?: DropdownOption[];
|
|
6373
|
+
/**
|
|
6374
|
+
* @default { mainText: 'No data available', supportingText: 'Try adjusting your filters or check back later.', color: 'gray', illustrationIcon: 'assets/alert-circle.svg', theme: 'light', }
|
|
6375
|
+
*/
|
|
6376
|
+
"emptyStateConfig"?: { mainText: string; supportingText?: string; color?: GeneralColors; illustrationIcon?: string; theme?: ThemeTypes; primaryButtonIcon?: string };
|
|
6371
6377
|
"onDateChange"?: (event: GbTableCustomEvent<string | string[]>) => void;
|
|
6372
6378
|
"onInputValueChanged"?: (event: GbTableCustomEvent<void>) => void;
|
|
6373
6379
|
"onPageItemSelected"?: (event: GbTableCustomEvent<{ pageSize: any; pageNumber: number }>) => void;
|
|
6374
6380
|
"onRowActionClick"?: (event: GbTableCustomEvent<{ action: string; row: any }>) => void;
|
|
6375
6381
|
"onSelectionChanged"?: (event: GbTableCustomEvent<any[]>) => void;
|
|
6376
6382
|
/**
|
|
6377
|
-
* @default 10
|
|
6378
|
-
*/
|
|
6379
|
-
"pageSize"?: number;
|
|
6380
|
-
/**
|
|
6381
|
-
* @default { entriesDropdownMenuPosition: 'top', }
|
|
6382
|
-
*/
|
|
6383
|
-
"paginationConfig"?: any;
|
|
6384
|
-
/**
|
|
6385
|
-
* @default 'internal'
|
|
6383
|
+
* @default { paginationMode: 'internal', entriesDropdownMenuPosition: 'top', currentPage: 1, pageSize: 10, totalItems: null, }
|
|
6386
6384
|
*/
|
|
6387
|
-
"
|
|
6385
|
+
"paginationConfig"?: {
|
|
6386
|
+
paginationMode: 'internal' | 'external';
|
|
6387
|
+
entriesDropdownMenuPosition: 'top' | 'bottom';
|
|
6388
|
+
currentPage?: number;
|
|
6389
|
+
pageSize?: number;
|
|
6390
|
+
totalItems?: number;
|
|
6391
|
+
};
|
|
6388
6392
|
/**
|
|
6389
|
-
* @default [{ label: 'View', action: 'view',
|
|
6393
|
+
* @default [ { label: '', action: '', icon: 'assets/more-horizontal.svg', type: 'dropdown' }, // { label: 'View Details', action: 'view_details', icon: 'assets/view.svg', type: 'button' }, // { label: 'Edit', action: 'edit', icon: 'assets/pencil-edit-01.svg', type: 'button' }, ]
|
|
6390
6394
|
*/
|
|
6391
6395
|
"rowActions"?: RowAction[];
|
|
6392
6396
|
/**
|
|
@@ -6394,7 +6398,7 @@ declare namespace LocalJSX {
|
|
|
6394
6398
|
*/
|
|
6395
6399
|
"showActionsColumn"?: boolean;
|
|
6396
6400
|
/**
|
|
6397
|
-
* @default
|
|
6401
|
+
* @default false
|
|
6398
6402
|
*/
|
|
6399
6403
|
"showCheckbox"?: boolean;
|
|
6400
6404
|
/**
|
|
@@ -6406,7 +6410,7 @@ declare namespace LocalJSX {
|
|
|
6406
6410
|
*/
|
|
6407
6411
|
"stickyLastColumn"?: boolean;
|
|
6408
6412
|
/**
|
|
6409
|
-
* @default { tableHeading: false, tableHeadingLabel: 'Suspicious outflows', showDateFilter: true, showFilter: true, showColumnOptions: true, showSearch: true, showExport: true, showRefreshButton: true, }
|
|
6413
|
+
* @default { tableHeading: false, tableHeadingLabel: 'Suspicious outflows', showDateFilter: true, showFilter: true, showColumnOptions: true, showSearch: true, showExport: true, showRefreshButton: true, datePickerMode: 'single', }
|
|
6410
6414
|
*/
|
|
6411
6415
|
"tableHeaderConfig"?: {
|
|
6412
6416
|
tableHeading: boolean;
|
|
@@ -6417,8 +6421,8 @@ declare namespace LocalJSX {
|
|
|
6417
6421
|
showSearch: boolean;
|
|
6418
6422
|
showExport: boolean;
|
|
6419
6423
|
showRefreshButton: boolean;
|
|
6424
|
+
datePickerMode: 'single' | 'range';
|
|
6420
6425
|
};
|
|
6421
|
-
"totalItems"?: number;
|
|
6422
6426
|
}
|
|
6423
6427
|
interface GbTableCell {
|
|
6424
6428
|
"type"?: TableCellTypes;
|
|
@@ -84,6 +84,7 @@ export interface TableColumn {
|
|
|
84
84
|
sortable?: boolean;
|
|
85
85
|
sortType?: 'string' | 'number' | 'date';
|
|
86
86
|
sortComparator?: (a: any, b: any) => number;
|
|
87
|
+
render?: (row: any) => any;
|
|
87
88
|
cellComponent?: string;
|
|
88
89
|
cellActionType?: 'dropdown' | 'void';
|
|
89
90
|
cellProps?: {
|
|
@@ -100,5 +101,12 @@ export interface RowAction {
|
|
|
100
101
|
icon?: string;
|
|
101
102
|
action: string;
|
|
102
103
|
disabled?: boolean;
|
|
104
|
+
type?: 'button' | 'dropdown';
|
|
105
|
+
}
|
|
106
|
+
export interface DropdownOption {
|
|
107
|
+
label: string;
|
|
108
|
+
icon?: string;
|
|
109
|
+
action: string;
|
|
110
|
+
disabled?: boolean;
|
|
103
111
|
}
|
|
104
112
|
export type PortalPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|