@veracity/vui 0.4.0 → 0.5.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.
Files changed (165) hide show
  1. package/button/button.d.ts +15 -1
  2. package/button/button.js +3 -3
  3. package/button/theme.d.ts +2 -0
  4. package/button/theme.js +3 -2
  5. package/buttonGroup/buttonGroup.d.ts +1 -1
  6. package/buttonGroup/buttonGroup.js +1 -1
  7. package/buttonGroup/helpers.js +3 -1
  8. package/checkbox/checkbox.d.ts +1 -1
  9. package/core/consts.d.ts +7 -0
  10. package/core/consts.js +8 -1
  11. package/core/index.d.ts +1 -0
  12. package/core/index.js +1 -0
  13. package/core/links.d.ts +20 -0
  14. package/core/links.js +173 -0
  15. package/dialog/consts.d.ts +3 -0
  16. package/dialog/consts.js +30 -0
  17. package/dialog/context.d.ts +4 -0
  18. package/dialog/context.js +23 -0
  19. package/dialog/dialog.d.ts +26 -0
  20. package/dialog/dialog.js +122 -0
  21. package/dialog/dialog.types.d.ts +47 -0
  22. package/dialog/dialog.types.js +2 -0
  23. package/dialog/dialogBody.d.ts +9 -0
  24. package/dialog/dialogBody.js +85 -0
  25. package/dialog/dialogCancelButton.d.ts +4 -0
  26. package/dialog/dialogCancelButton.js +30 -0
  27. package/dialog/dialogCloseButton.d.ts +4 -0
  28. package/dialog/dialogCloseButton.js +30 -0
  29. package/dialog/dialogFooter.d.ts +4 -0
  30. package/dialog/dialogFooter.js +45 -0
  31. package/dialog/dialogHeader.d.ts +4 -0
  32. package/dialog/dialogHeader.js +53 -0
  33. package/dialog/dialogIcon.d.ts +4 -0
  34. package/dialog/dialogIcon.js +32 -0
  35. package/dialog/dialogSubmitButton.d.ts +4 -0
  36. package/dialog/dialogSubmitButton.js +28 -0
  37. package/dialog/dialogTitle.d.ts +4 -0
  38. package/dialog/dialogTitle.js +30 -0
  39. package/dialog/index.d.ts +13 -0
  40. package/dialog/index.js +30 -0
  41. package/dialog/theme.d.ts +22 -0
  42. package/dialog/theme.js +28 -0
  43. package/footer/context.d.ts +4 -0
  44. package/footer/context.js +23 -0
  45. package/footer/footer.d.ts +2 -0
  46. package/footer/footer.js +11 -29
  47. package/footer/footer.types.d.ts +19 -16
  48. package/footer/footerColumn.d.ts +2 -218
  49. package/footer/footerColumn.js +16 -2
  50. package/footer/footerContent.d.ts +3 -0
  51. package/footer/footerContent.js +28 -0
  52. package/footer/footerHeading.js +2 -1
  53. package/footer/footerLink.js +2 -1
  54. package/footer/footerRow.js +2 -1
  55. package/footer/footerSection.js +4 -3
  56. package/footer/footerTrademark.d.ts +3 -5
  57. package/footer/footerTrademark.js +23 -6
  58. package/footer/helpers.d.ts +6 -8
  59. package/footer/helpers.js +79 -21
  60. package/footer/index.d.ts +1 -1
  61. package/footer/index.js +1 -1
  62. package/footer/theme.js +1 -1
  63. package/grid/grid.d.ts +5 -0
  64. package/grid/grid.js +47 -0
  65. package/grid/grid.types.d.ts +3 -0
  66. package/grid/grid.types.js +2 -0
  67. package/grid/index.d.ts +3 -0
  68. package/grid/index.js +20 -0
  69. package/grid/theme.d.ts +7 -0
  70. package/grid/theme.js +12 -0
  71. package/header/header.d.ts +7 -6
  72. package/header/header.js +12 -12
  73. package/header/header.types.d.ts +27 -31
  74. package/header/headerAccount.d.ts +5 -1
  75. package/header/headerAccount.js +17 -38
  76. package/header/headerAccount.types.d.ts +12 -12
  77. package/header/headerAccountUserInfo.d.ts +4 -0
  78. package/header/headerAccountUserInfo.js +46 -0
  79. package/header/headerContent.d.ts +2 -3
  80. package/header/headerContent.js +2 -2
  81. package/header/headerCreateAccount.js +4 -4
  82. package/header/headerLogo.js +6 -4
  83. package/header/headerMainLinks.d.ts +4 -0
  84. package/header/{headerLinksList.js → headerMainLinks.js} +5 -5
  85. package/header/headerNotifications.js +8 -7
  86. package/header/headerServices.d.ts +5 -1
  87. package/header/headerServices.js +18 -13
  88. package/header/headerServicesMessage.d.ts +4 -0
  89. package/header/headerServicesMessage.js +49 -0
  90. package/header/headerSignIn.js +4 -2
  91. package/header/helpers.d.ts +6 -15
  92. package/header/helpers.js +82 -33
  93. package/header/index.d.ts +3 -2
  94. package/header/index.js +3 -2
  95. package/header/loggedInHeader.js +9 -9
  96. package/header/loggedOutHeader.js +9 -9
  97. package/header/theme.d.ts +8 -6
  98. package/header/theme.js +9 -5
  99. package/index.d.ts +2 -0
  100. package/index.js +2 -0
  101. package/input/input.js +1 -1
  102. package/link/linkText.js +1 -1
  103. package/list/listHeading.js +1 -1
  104. package/list/listItem.js +1 -1
  105. package/list/theme.d.ts +2 -4
  106. package/list/theme.js +2 -4
  107. package/modal/{modalBackdrop.d.ts → ModalBackdrop.d.ts} +1 -1
  108. package/modal/{modalBackdrop.js → ModalBackdrop.js} +6 -7
  109. package/modal/ModalContent.d.ts +4 -0
  110. package/modal/ModalContent.js +38 -0
  111. package/modal/index.d.ts +2 -0
  112. package/modal/index.js +2 -0
  113. package/modal/modal.d.ts +7 -2
  114. package/modal/modal.js +30 -26
  115. package/modal/modal.types.d.ts +8 -2
  116. package/modal/theme.d.ts +1 -0
  117. package/modal/theme.js +2 -0
  118. package/notification/theme.js +1 -1
  119. package/package.json +1 -1
  120. package/popover/popoverTrigger.js +7 -2
  121. package/radio/radio.d.ts +1 -1
  122. package/radio/radioGroup.js +1 -1
  123. package/system/custom.d.ts +0 -4
  124. package/system/custom.js +1 -15
  125. package/system/effects.d.ts +4 -4
  126. package/system/grids.d.ts +5 -3
  127. package/system/system.d.ts +2 -2
  128. package/system/system.js +1 -1
  129. package/system/transitions.d.ts +1 -1
  130. package/tag/tag.js +1 -2
  131. package/tag/theme.d.ts +1 -0
  132. package/tag/theme.js +2 -1
  133. package/textarea/textarea.js +2 -2
  134. package/theme/components.d.ts +47 -10
  135. package/theme/components.js +48 -42
  136. package/theme/defaultTheme.d.ts +76 -11
  137. package/theme/foundations/gridTemplateColumns.d.ts +15 -0
  138. package/theme/foundations/gridTemplateColumns.js +16 -0
  139. package/theme/foundations/gridTemplateRows.d.ts +9 -0
  140. package/theme/foundations/gridTemplateRows.js +10 -0
  141. package/theme/foundations/index.d.ts +29 -1
  142. package/theme/foundations/index.js +6 -0
  143. package/theme/foundations/timingFunctions.d.ts +2 -0
  144. package/theme/foundations/timingFunctions.js +3 -0
  145. package/theme/foundations/zIndices.d.ts +6 -1
  146. package/theme/foundations/zIndices.js +6 -1
  147. package/theme/types.d.ts +9 -1
  148. package/utils/assertion.d.ts +2 -0
  149. package/utils/assertion.js +6 -1
  150. package/utils/function.d.ts +4 -0
  151. package/utils/function.js +19 -1
  152. package/utils/index.d.ts +1 -1
  153. package/utils/index.js +1 -1
  154. package/utils/number.d.ts +2 -0
  155. package/utils/number.js +10 -0
  156. package/utils/object.js +9 -17
  157. package/utils/react.d.ts +2 -0
  158. package/utils/react.js +6 -1
  159. package/footer/consts.d.ts +0 -169
  160. package/footer/consts.js +0 -141
  161. package/header/consts.d.ts +0 -58
  162. package/header/consts.js +0 -76
  163. package/header/headerLinksList.d.ts +0 -4
  164. package/utils/string.d.ts +0 -5
  165. package/utils/string.js +0 -19
package/footer/consts.js DELETED
@@ -1,141 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.footerLinks = exports.footerLinksTest = exports.footerLinksStag = exports.footerLinksProd = exports.footerColumnsTemplate = void 0;
4
- /**
5
- * Defines the structure of columns and sections of the Footer.
6
- * Links' url values here are unique references to actual urls in the footerLinks dictionary.
7
- */
8
- exports.footerColumnsTemplate = {
9
- column1: {
10
- section1: {
11
- heading: 'Platform',
12
- links: [
13
- { text: 'About Veracity', url: 'aboutVeracity' },
14
- { text: 'News', url: 'news' },
15
- { text: 'Marketplace', url: 'marketplace' },
16
- { text: 'Veracity trust center', url: 'veracityTrustCenter' },
17
- { text: 'Career', url: 'career' }
18
- ]
19
- }
20
- },
21
- column2: {
22
- section1: {
23
- heading: 'Products',
24
- links: [
25
- { text: 'Veracity Connected app', url: 'veracityConnectedApp' },
26
- { text: 'Veracity Data Fabric', url: 'veracityDataFabric' },
27
- { text: 'Deep Search', url: 'deepSearch' },
28
- { text: 'Asset Connect', url: 'assetConnect' },
29
- { text: 'Veracity Adapter for Power BI (VAP)', url: 'veracityAdapterForPowerBI' }
30
- ]
31
- }
32
- },
33
- column3: {
34
- section1: {
35
- heading: 'Partnership',
36
- links: [
37
- { text: 'Selling on Veracity', url: 'sellingOnVeracity' },
38
- { text: 'Veracity partner program', url: 'veracityPartnerProgram' }
39
- ]
40
- },
41
- section2: {
42
- heading: 'Developer',
43
- links: [
44
- { text: 'Developer community', url: 'developerCommunity' },
45
- { text: 'Documentation', url: 'documentation' },
46
- { text: 'API explorer', url: 'apiExplorer' }
47
- ]
48
- }
49
- },
50
- column4: {
51
- section1: {
52
- heading: 'Support',
53
- links: [
54
- { text: 'Help center', url: 'helpCenter' },
55
- { text: 'Contact us', url: 'contactUs' }
56
- ]
57
- },
58
- section2: {
59
- heading: 'Legal',
60
- links: [
61
- { text: 'Privacy statement', url: 'privacyStatement' },
62
- { text: 'Terms of use', url: 'termsOfUse' },
63
- { text: 'Cookies policy', url: 'cookiesPolicy' }
64
- ]
65
- }
66
- }
67
- };
68
- /** Footer link URLs used in Production environment. */
69
- exports.footerLinksProd = {
70
- aboutVeracity: 'https://www.veracity.com/about',
71
- apiExplorer: 'https://developer.veracity.com/api',
72
- assetConnect: 'https://www.veracity.com/article/veracity-asset',
73
- career: 'https://www.veracity.com/career',
74
- contactUs: 'https://support.veracity.com',
75
- cookiesPolicy: 'https://services.veracity.com/CookieList',
76
- deepSearch: 'https://store.veracity.com/veracity-deep-search',
77
- developerCommunity: 'https://developer.veracity.com',
78
- documentation: 'https://developer.veracity.com/docs',
79
- helpCenter: 'https://help-center.veracity.com',
80
- marketplace: 'https://store.veracity.com',
81
- news: 'https://www.veracity.com',
82
- privacyStatement: 'https://services.veracity.com/PrivacyStatement',
83
- sellingOnVeracity: 'https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity',
84
- termsOfUse: 'https://id.veracity.com/terms-of-use',
85
- veracityAdapterForPowerBI: 'https://store.veracity.com/veracity-adapter-for-power-bi-vap',
86
- veracityConnectedApp: 'https://www.veracity.com/article/veracity-connected-bringing-veracity-to-your-mobile',
87
- veracityDataFabric: 'https://store.veracity.com/veracity-data-fabric-secure-data-sharing',
88
- veracityPartnerProgram: 'https://www.veracity.com/partner',
89
- veracityTrustCenter: 'https://www.veracity.com/veracity-trust-center'
90
- };
91
- /** Footer link URLs used in Staging environment. */
92
- exports.footerLinksStag = {
93
- aboutVeracity: 'https://wwwstag.veracity.com/about',
94
- apiExplorer: 'https://developer.veracity.com/api',
95
- assetConnect: 'https://www.veracity.com/article/veracity-asset',
96
- career: 'https://wwwstag.veracity.com/career',
97
- contactUs: 'https://support.veracity.com',
98
- cookiesPolicy: 'https://servicesstag.veracity.com/CookieList',
99
- deepSearch: 'https://storestag.veracity.com/veracity-deep-search',
100
- developerCommunity: 'https://developerstag.veracity.com',
101
- documentation: 'https://developerstag.veracity.com/docs',
102
- helpCenter: 'https://help-center.veracity.com',
103
- marketplace: 'https://storestag.veracity.com',
104
- news: 'https://wwwstag.veracity.com',
105
- privacyStatement: 'https://servicesstag.veracity.com/PrivacyStatement',
106
- sellingOnVeracity: 'https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity',
107
- termsOfUse: 'https://id.veracity.com/terms-of-use',
108
- veracityAdapterForPowerBI: 'https://storestag.veracity.com/veracity-adapter-for-power-bi-vap',
109
- veracityConnectedApp: 'https://www.veracity.com/article/veracity-connected-bringing-veracity-to-your-mobile',
110
- veracityDataFabric: 'https://storestag.veracity.com/veracity-data-fabric-secure-data-sharing',
111
- veracityPartnerProgram: 'https://wwwstag.veracity.com/partner',
112
- veracityTrustCenter: 'https://www.veracity.com/veracity-trust-center'
113
- };
114
- /** Footer link URLs used in Test environment. */
115
- exports.footerLinksTest = {
116
- aboutVeracity: 'https://wwwtest.veracity.com/about',
117
- apiExplorer: 'https://developer.veracity.com/api',
118
- assetConnect: 'https://www.veracity.com/article/veracity-asset',
119
- career: 'https://www.veracity.com/career',
120
- contactUs: 'https://support.veracity.com',
121
- cookiesPolicy: 'https://servicestest.veracity.com/CookieList',
122
- deepSearch: 'https://storetest.veracity.com/veracity-deep-search',
123
- developerCommunity: 'https://developertest.veracity.com',
124
- documentation: 'https://developertest.veracity.com/docs',
125
- helpCenter: 'https://help-center.veracity.com',
126
- marketplace: 'https://storetest.veracity.com',
127
- news: 'https://wwwtest.veracity.com',
128
- privacyStatement: 'https://servicestest.veracity.com/PrivacyStatement',
129
- sellingOnVeracity: 'https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity',
130
- termsOfUse: 'https://id.veracity.com/terms-of-use',
131
- veracityAdapterForPowerBI: 'https://storetest.veracity.com/veracity-adapter-for-power-bi-vap',
132
- veracityConnectedApp: 'https://www.veracity.com/article/veracity-connected-bringing-veracity-to-your-mobile',
133
- veracityDataFabric: 'https://storetest.veracity.com/veracity-data-fabric-secure-data-sharing',
134
- veracityPartnerProgram: 'https://wwwtest.veracity.com/partner',
135
- veracityTrustCenter: 'https://www.veracity.com/veracity-trust-center'
136
- };
137
- exports.footerLinks = {
138
- Prod: exports.footerLinksProd,
139
- Stag: exports.footerLinksStag,
140
- Test: exports.footerLinksTest
141
- };
@@ -1,58 +0,0 @@
1
- import { Environment } from '../utils';
2
- import { HeaderLinkKey } from './header.types';
3
- /**
4
- * Defines the structure of Header's account popover sections with links.
5
- * Links' url values here are unique references to actual urls in the headerLinks dictionary.
6
- */
7
- export declare const headerAccountSectionsTemplate: {
8
- readonly section1: {
9
- readonly links: readonly [{
10
- readonly icon: "falUser";
11
- readonly text: "User settings";
12
- readonly url: "userSettings";
13
- }];
14
- };
15
- readonly section2: {
16
- readonly links: readonly [{
17
- readonly icon: "falEnvelope";
18
- readonly text: "Invite to Veracity";
19
- readonly url: "invite";
20
- }];
21
- };
22
- };
23
- /** Header link URLs used in Production environment. */
24
- export declare const headerLinksProd: {
25
- readonly createAccount: "https://id.veracity.com/sign-up";
26
- readonly home: "https://www.veracity.com";
27
- readonly invite: "https://id.veracity.com/invite";
28
- readonly marketplace: "https://store.veracity.com";
29
- readonly myData: "https://data.veracity.com";
30
- readonly myServices: "https://services.veracity.com";
31
- readonly notifications: "https://services.veracity.com/Notifications";
32
- readonly signIn: "https://login.veracity.com";
33
- readonly support: "https://support.veracity.com";
34
- readonly userSettings: "https://id.veracity.com/settings";
35
- };
36
- /** Header link URLs used in Staging environment. */
37
- export declare const headerLinksStag: Record<HeaderLinkKey, string>;
38
- /** Header link URLs used in Test environment. */
39
- export declare const headerLinksTest: Record<HeaderLinkKey, string>;
40
- /** Dictionary of Header links for each environment (Prod, Stag, Test). */
41
- export declare const headerLinks: Record<Environment, Record<HeaderLinkKey, string>>;
42
- /**
43
- * Defines the structure of Header's main links.
44
- * Links' url values here are unique references to actual urls in the headerLinks dictionary.
45
- */
46
- export declare const headerMainLinksTemplate: readonly [{
47
- readonly text: "Marketplace";
48
- readonly url: "marketplace";
49
- }, {
50
- readonly text: "My services";
51
- readonly url: "myServices";
52
- }, {
53
- readonly text: "My data";
54
- readonly url: "myData";
55
- }, {
56
- readonly text: "Support";
57
- readonly url: "support";
58
- }];
package/header/consts.js DELETED
@@ -1,76 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.headerMainLinksTemplate = exports.headerLinks = exports.headerLinksTest = exports.headerLinksStag = exports.headerLinksProd = exports.headerAccountSectionsTemplate = void 0;
4
- /**
5
- * Defines the structure of Header's account popover sections with links.
6
- * Links' url values here are unique references to actual urls in the headerLinks dictionary.
7
- */
8
- exports.headerAccountSectionsTemplate = {
9
- section1: {
10
- links: [
11
- { icon: 'falUser', text: 'User settings', url: 'userSettings' }
12
- // { icon: 'falShoppingBasket', text: 'Subscriptions and payments', url: 'subscriptionsAndPayments' }
13
- ]
14
- },
15
- section2: {
16
- links: [{ icon: 'falEnvelope', text: 'Invite to Veracity', url: 'invite' }]
17
- }
18
- };
19
- /** Header link URLs used in Production environment. */
20
- exports.headerLinksProd = {
21
- createAccount: 'https://id.veracity.com/sign-up',
22
- home: 'https://www.veracity.com',
23
- invite: 'https://id.veracity.com/invite',
24
- marketplace: 'https://store.veracity.com',
25
- myData: 'https://data.veracity.com',
26
- myServices: 'https://services.veracity.com',
27
- notifications: 'https://services.veracity.com/Notifications',
28
- signIn: 'https://login.veracity.com',
29
- // subscriptionsAndPayments: 'ADD LINK',
30
- support: 'https://support.veracity.com',
31
- userSettings: 'https://id.veracity.com/settings'
32
- };
33
- /** Header link URLs used in Staging environment. */
34
- exports.headerLinksStag = {
35
- createAccount: 'https://idstag.veracity.com/sign-up',
36
- home: 'https://wwwstag.veracity.com',
37
- invite: 'https://idstag.veracity.com/invite',
38
- marketplace: 'https://storestag.veracity.com',
39
- myData: 'https://datastag.veracity.com',
40
- myServices: 'https://servicesstag.veracity.com',
41
- notifications: 'https://servicesstag.veracity.com/Notifications',
42
- signIn: 'https://loginstag.veracity.com',
43
- // subscriptionsAndPayments: 'ADD LINK',
44
- support: 'https://support.veracity.com',
45
- userSettings: 'https://idstag.veracity.com/settings'
46
- };
47
- /** Header link URLs used in Test environment. */
48
- exports.headerLinksTest = {
49
- createAccount: 'https://idtest.veracity.com/sign-up',
50
- home: 'https://wwwtest.veracity.com',
51
- invite: 'https://idtest.veracity.com/invite',
52
- marketplace: 'https://storetest.veracity.com',
53
- myData: 'https://datatest.veracity.com',
54
- myServices: 'https://servicestest.veracity.com',
55
- notifications: 'https://servicestest.veracity.com/Notifications',
56
- signIn: 'https://logintest.veracity.com',
57
- // subscriptionsAndPayments: 'ADD LINK',
58
- support: 'https://support.veracity.com',
59
- userSettings: 'https://idtest.veracity.com/settings'
60
- };
61
- /** Dictionary of Header links for each environment (Prod, Stag, Test). */
62
- exports.headerLinks = {
63
- Prod: exports.headerLinksProd,
64
- Stag: exports.headerLinksStag,
65
- Test: exports.headerLinksTest
66
- };
67
- /**
68
- * Defines the structure of Header's main links.
69
- * Links' url values here are unique references to actual urls in the headerLinks dictionary.
70
- */
71
- exports.headerMainLinksTemplate = [
72
- { text: 'Marketplace', url: 'marketplace' },
73
- { text: 'My services', url: 'myServices' },
74
- { text: 'My data', url: 'myData' },
75
- { text: 'Support', url: 'support' }
76
- ];
@@ -1,4 +0,0 @@
1
- import { HeaderLinksListProps } from './header.types';
2
- /** List of Header Links. */
3
- export declare const HeaderLinksList: import("../core").VuiComponent<"ul", HeaderLinksListProps>;
4
- export default HeaderLinksList;
package/utils/string.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Adds loggedIn=1 parameter to the URL if isLoggedIn flag is true, which means the user is logged in.
3
- * This is supposed to aid login flow when navigating between Veracity applications.
4
- */
5
- export declare function getLoggedInLink(link: string, isLoggedIn?: boolean): string;
package/utils/string.js DELETED
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLoggedInLink = void 0;
4
- /**
5
- * Adds loggedIn=1 parameter to the URL if isLoggedIn flag is true, which means the user is logged in.
6
- * This is supposed to aid login flow when navigating between Veracity applications.
7
- */
8
- function getLoggedInLink(link, isLoggedIn) {
9
- try {
10
- var url = new URL(link);
11
- if (isLoggedIn)
12
- url.searchParams.append('loggedin', '1');
13
- return url.toString();
14
- }
15
- catch (_a) {
16
- return link;
17
- }
18
- }
19
- exports.getLoggedInLink = getLoggedInLink;