@cooperco/cooper-component-library 0.1.130 → 0.1.131

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/cms/0096-delete-body-copy-content-type.cjs +70 -4
  2. package/dist/cms/0097-create-table-module.cjs +174 -0
  3. package/dist/cms/0098-update-container-collection-filtered-table.cjs +54 -0
  4. package/dist/cms/containerCollectionModule.query.ts +6 -0
  5. package/dist/cms/contentful/migrations/scripts/0096-delete-body-copy-content-type.cjs +70 -4
  6. package/dist/cms/contentful/migrations/scripts/0097-create-table-module.cjs +174 -0
  7. package/dist/cms/contentful/migrations/scripts/0098-update-container-collection-filtered-table.cjs +54 -0
  8. package/dist/cms/contentful/queries/containerCollectionModule.query.js +6 -0
  9. package/dist/cms/contentful/queries/containerCollectionModule.query.ts +6 -0
  10. package/dist/cms/contentful/queries/index.d.ts +1 -0
  11. package/dist/cms/contentful/queries/index.js +1 -0
  12. package/dist/cms/contentful/queries/index.ts +2 -0
  13. package/dist/cms/contentful/queries/tableModule.query.d.ts +2 -0
  14. package/dist/cms/contentful/queries/tableModule.query.js +60 -0
  15. package/dist/cms/contentful/queries/tableModule.query.ts +62 -0
  16. package/dist/cms/index.ts +2 -0
  17. package/dist/cms/migrations/scripts/0096-delete-body-copy-content-type.cjs +70 -4
  18. package/dist/cms/migrations/scripts/0097-create-table-module.cjs +174 -0
  19. package/dist/cms/migrations/scripts/0098-update-container-collection-filtered-table.cjs +54 -0
  20. package/dist/cms/queries/containerCollectionModule.query.ts +6 -0
  21. package/dist/cms/queries/index.ts +2 -0
  22. package/dist/cms/queries/tableModule.query.ts +62 -0
  23. package/dist/cms/scripts/0096-delete-body-copy-content-type.cjs +70 -4
  24. package/dist/cms/scripts/0097-create-table-module.cjs +174 -0
  25. package/dist/cms/scripts/0098-update-container-collection-filtered-table.cjs +54 -0
  26. package/dist/cms/tableModule.query.ts +62 -0
  27. package/dist/lib/component-lib.js +3850 -3456
  28. package/dist/lib/component-lib.umd.cjs +23 -23
  29. package/dist/lib/css/main.css +48 -18
  30. package/dist/lib/style.css +1 -1
  31. package/dist/types/cms/contentful/queries/index.d.ts +1 -0
  32. package/dist/types/cms/contentful/queries/tableModule.query.d.ts +2 -0
  33. package/dist/types/src/components/ContainerCollectionModule/ContainerCollectionModule.d.ts +4 -1
  34. package/dist/types/src/components/TableModule/TableModule.d.ts +51 -0
  35. package/dist/types/src/components/TableModule/TableModule.vue.d.ts +3 -0
  36. package/dist/types/src/components/components.d.ts +1 -0
  37. package/dist/types/src/components/types.d.ts +1 -0
  38. package/dist/types/src/config/defaultPassthrough/index.d.ts +1 -0
  39. package/dist/types/src/config/defaultPassthrough/types.d.ts +3 -1
  40. package/dist/types/src/types.d.ts +1 -0
  41. package/package.json +1 -1
@@ -21,3 +21,4 @@ export * from './helloBanner.query.js';
21
21
  export * from './placeholderModule.query.js';
22
22
  export * from './splitModule.query.js';
23
23
  export * from './containerCollectionModule.query.js';
24
+ export * from './tableModule.query.js';
@@ -0,0 +1,2 @@
1
+ import type { DocumentNode } from 'graphql';
2
+ export declare const getTableModule: DocumentNode;
@@ -1,10 +1,13 @@
1
1
  import { Component, ComponentPassthrough } from '../../types';
2
2
  import { SplitModule } from '../SplitModule/SplitModule';
3
+ import { TableModule } from '../TableModule/TableModule';
3
4
  export interface ContainerCollectionModule extends Component {
4
5
  __typename?: 'ContainerCollection';
5
6
  entryName?: string;
6
7
  headline?: string;
7
- modules: SplitModule[];
8
+ subheadline?: string;
9
+ variant?: 'Default' | 'FilteredTable';
10
+ modules: (SplitModule | TableModule)[];
8
11
  backgroundColor?: string;
9
12
  pt?: ComponentPassthrough;
10
13
  }
@@ -0,0 +1,51 @@
1
+ import { Component, ComponentPassthrough } from '../../types';
2
+ export interface TableModulePassthrough extends ComponentPassthrough {
3
+ table?: string;
4
+ thead?: string;
5
+ th?: string;
6
+ tbody?: string;
7
+ tr?: string;
8
+ td?: string;
9
+ description?: string;
10
+ footer?: string;
11
+ filtersContainer?: string;
12
+ filterWrapper?: string;
13
+ filterLabel?: string;
14
+ filterButton?: string;
15
+ dropdownCard?: string;
16
+ dropdownHeader?: string;
17
+ dropdownTitle?: string;
18
+ dismissBtn?: string;
19
+ optionsList?: string;
20
+ optionLabel?: string;
21
+ checkboxInput?: string;
22
+ actionsContainer?: string;
23
+ clearBtn?: string;
24
+ applyBtn?: string;
25
+ }
26
+ export interface TableCell {
27
+ html: string;
28
+ text: string;
29
+ }
30
+ export interface TableRow {
31
+ cells: TableCell[];
32
+ }
33
+ export interface TableData {
34
+ columns: string[];
35
+ rows: TableRow[];
36
+ }
37
+ export interface TableModule extends Component {
38
+ __typename?: 'TableModule';
39
+ entryName?: string;
40
+ title?: string;
41
+ description?: string;
42
+ table: TableData;
43
+ filterColumns?: string[];
44
+ footer?: string;
45
+ backgroundColor?: string;
46
+ isChild?: boolean;
47
+ parentBackgroundColor?: string;
48
+ pt?: TableModulePassthrough;
49
+ bodyCopyAlignment?: 'Left' | 'Center' | 'Right';
50
+ tableHighlight?: 'Row' | 'Column';
51
+ }
@@ -0,0 +1,3 @@
1
+ import { TableModule } from './TableModule';
2
+ declare const _default: import("vue").DefineComponent<TableModule, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TableModule> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
@@ -26,3 +26,4 @@ export { default as Video } from './Video/Video.vue';
26
26
  export { default as AnimationWrapper } from './AnimationWrapper/AnimationWrapper.vue';
27
27
  export { default as HelloBanner } from './HelloBanner/HelloBanner.vue';
28
28
  export { default as ChartModule } from './ChartModule/ChartModule.vue';
29
+ export { default as TableModule } from './TableModule/TableModule.vue';
@@ -26,3 +26,4 @@ export type { ChartDrillDown as ChartDrillDownType } from './ChartModule/ChartMo
26
26
  export type { PlaceholderModule as PlaceholderModuleType } from './PlaceholderModule/PlaceholderModule';
27
27
  export { PlaceholderModuleName } from './PlaceholderModule/PlaceholderModule';
28
28
  export type { PlaceholderModuleNameValue } from './PlaceholderModule/PlaceholderModule';
29
+ export type { TableModule as TableModuleType } from './TableModule/TableModule';
@@ -73,3 +73,4 @@ export declare const TileLabelPt: {
73
73
  export declare const VideoPt: GenericComponentPassthrough;
74
74
  export declare const ChartModulePt: GenericComponentPassthrough;
75
75
  export declare const HelloBannerPt: HelloBannerPassthrough;
76
+ export declare const TableModulePt: GenericComponentPassthrough;
@@ -11,7 +11,8 @@ import { TileLabelPassthrough } from '../../components/TileLabel/TileLabel';
11
11
  import { ChartModulePassthrough } from '../../components/ChartModule/ChartModule';
12
12
  import { HelloBannerPassthrough } from '../../components/HelloBanner/HelloBanner';
13
13
  import { SplitModulePassthrough } from '../../components/SplitModule/SplitModule';
14
- export interface GenericComponentPassthrough extends ComponentPassthrough, TileLabelPassthrough, AccordionPassthrough, AccordionItemPassthrough, CarouselPassthrough, ContainerModulePassthrough, ContentModulePassthrough, CTAPassthrough, SplitModulePassthrough, TestimonialModulePassthrough, TileContentPassthrough, HelloBannerPassthrough, ChartModulePassthrough {
14
+ import { TableModulePassthrough } from '../../components/TableModule/TableModule';
15
+ export interface GenericComponentPassthrough extends ComponentPassthrough, TileLabelPassthrough, AccordionPassthrough, AccordionItemPassthrough, CarouselPassthrough, ContainerModulePassthrough, ContentModulePassthrough, CTAPassthrough, SplitModulePassthrough, TableModulePassthrough, TestimonialModulePassthrough, TileContentPassthrough, HelloBannerPassthrough, ChartModulePassthrough {
15
16
  }
16
17
  export interface AccordionPtVariants {
17
18
  List: AccordionPassthrough;
@@ -55,4 +56,5 @@ export interface Pt_Overrides {
55
56
  TileLabel?: GenericComponentPassthrough;
56
57
  Video?: GenericComponentPassthrough;
57
58
  ChartModule?: ChartModulePassthrough;
59
+ TableModule?: TableModulePassthrough;
58
60
  }
@@ -48,6 +48,7 @@ export declare const ModuleTypeName: {
48
48
  readonly CardsModule: "CardsModule";
49
49
  readonly ChartModule: "ChartModule";
50
50
  readonly PlaceholderModule: "PlaceholderModule";
51
+ readonly TableModule: "TableModule";
51
52
  };
52
53
  export declare const TileCollectionVariant: {
53
54
  readonly Icon: "IconTile";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cooperco/cooper-component-library",
3
3
  "private": false,
4
- "version": "0.1.130",
4
+ "version": "0.1.131",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"