@salesforcedevs/dx-components 1.3.37-alpha01 → 1.3.37-alpha02

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/package.json CHANGED
@@ -1,41 +1,41 @@
1
1
  {
2
- "name": "@salesforcedevs/dx-components",
3
- "version": "1.3.37-alpha01",
4
- "description": "DX Lightning web components",
5
- "license": "MIT",
6
- "engines": {
7
- "node": ">= 14.x"
8
- },
9
- "publishConfig": {
10
- "access": "public"
11
- },
12
- "dependencies": {
13
- "@coveo/headless": "^1.32.0",
14
- "@floating-ui/dom": "^1.0.4",
15
- "@sfdocs-internal/wires": "^0.6.3",
16
- "@vimeo/player": "^2.16.4",
17
- "classnames": "^2.2.6",
18
- "coveo-search-ui": "^2.10104.0",
19
- "debounce": "^1.2.0",
20
- "js-cookie": "^3.0.1",
21
- "lodash.defaults": "^4.2.0",
22
- "lodash.get": "^4.4.2",
23
- "lodash.kebabcase": "^4.1.1",
24
- "microtip": "0.2.2",
25
- "salesforce-oauth2": "^0.2.0",
26
- "uuid": "^9.0.0"
27
- },
28
- "devDependencies": {
29
- "@types/classnames": "^2.2.10",
30
- "@types/debounce": "^1.2.0",
31
- "@types/js-cookie": "^3.0.2",
32
- "@types/lodash.defaults": "^4.2.7",
33
- "@types/lodash.get": "^4.4.6",
34
- "@types/lodash.kebabcase": "^4.1.7",
35
- "@types/luxon": "^3.1.0",
36
- "@types/uuid": "^8.3.4",
37
- "@types/vimeo__player": "^2.16.2",
38
- "eventsourcemock": "^2.0.0",
39
- "luxon": "^3.1.0"
40
- }
2
+ "name": "@salesforcedevs/dx-components",
3
+ "version": "1.3.37-alpha02",
4
+ "description": "DX Lightning web components",
5
+ "license": "MIT",
6
+ "engines": {
7
+ "node": ">= 14.x"
8
+ },
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "dependencies": {
13
+ "@coveo/headless": "^1.32.0",
14
+ "@floating-ui/dom": "^1.0.4",
15
+ "@sfdocs-internal/wires": "^0.6.3",
16
+ "@vimeo/player": "^2.16.4",
17
+ "classnames": "^2.2.6",
18
+ "coveo-search-ui": "^2.10104.0",
19
+ "debounce": "^1.2.0",
20
+ "js-cookie": "^3.0.1",
21
+ "lodash.defaults": "^4.2.0",
22
+ "lodash.get": "^4.4.2",
23
+ "lodash.kebabcase": "^4.1.1",
24
+ "microtip": "0.2.2",
25
+ "salesforce-oauth2": "^0.2.0",
26
+ "uuid": "^9.0.0"
27
+ },
28
+ "devDependencies": {
29
+ "@types/classnames": "^2.2.10",
30
+ "@types/debounce": "^1.2.0",
31
+ "@types/js-cookie": "^3.0.2",
32
+ "@types/lodash.defaults": "^4.2.7",
33
+ "@types/lodash.get": "^4.4.6",
34
+ "@types/lodash.kebabcase": "^4.1.7",
35
+ "@types/luxon": "^3.1.0",
36
+ "@types/uuid": "^8.3.4",
37
+ "@types/vimeo__player": "^2.16.2",
38
+ "eventsourcemock": "^2.0.0",
39
+ "luxon": "^3.1.0"
40
+ }
41
41
  }
@@ -1,8 +1,6 @@
1
1
  /*
2
2
  Code generated by scripts/postinstall.js DO NOT EDIT
3
- */
4
-
5
- /*
3
+ *//*
6
4
  * @param direction vertical or horizontal
7
5
  * @param position type of positioning to apply (relative/absolute)
8
6
  */
@@ -1378,15 +1376,6 @@ Code generated by scripts/postinstall.js DO NOT EDIT
1378
1376
  .coveo-filetype-salesforce-standard-work-order-item,
1379
1377
  .coveo-filetype-salesforce-standard-work-order,
1380
1378
  .coveo-filetype-salesforce-standard-work-type,
1381
- .coveo-filetype-slack,
1382
- .coveo-icon.filetype.Slackmessage,
1383
- .coveo-icon.filetype.slackmessage,
1384
- .coveo-icon.filetype.Slackchannel,
1385
- .coveo-icon.filetype.slackchannel,
1386
- .coveo-icon.filetype.Slackfile,
1387
- .coveo-icon.filetype.slackfile,
1388
- .coveo-icon.filetype.Slackuser,
1389
- .coveo-icon.filetype.slackuser,
1390
1379
  .coveo-filetype-user,
1391
1380
  .coveo-icon.objecttype.People,
1392
1381
  .coveo-icon.objecttype.people,
@@ -1595,6 +1584,21 @@ Code generated by scripts/postinstall.js DO NOT EDIT
1595
1584
  background-size: 56px 64px;
1596
1585
  }
1597
1586
 
1587
+ .coveo-filetype-slack,
1588
+ .coveo-icon.filetype.Slackmessage,
1589
+ .coveo-icon.filetype.slackmessage,
1590
+ .coveo-icon.filetype.Slackchannel,
1591
+ .coveo-icon.filetype.slackchannel,
1592
+ .coveo-icon.filetype.Slackfile,
1593
+ .coveo-icon.filetype.slackfile,
1594
+ .coveo-icon.filetype.Slackuser,
1595
+ .coveo-icon.filetype.slackuser {
1596
+ display: inline-block;
1597
+ width: 124px;
1598
+ height: 124px;
1599
+ background-size: 124px 124px;
1600
+ }
1601
+
1598
1602
  .coveo-filetype-attachment-small,
1599
1603
  .coveo-icon.objecttype.coveo-small.Attachment,
1600
1604
  .coveo-icon.objecttype.coveo-small.attachment,
@@ -2120,15 +2124,6 @@ Code generated by scripts/postinstall.js DO NOT EDIT
2120
2124
  .coveo-filetype-salesforce-standard-work-order-item-small,
2121
2125
  .coveo-filetype-salesforce-standard-work-order-small,
2122
2126
  .coveo-filetype-salesforce-standard-work-type-small,
2123
- .coveo-filetype-slack-small,
2124
- .coveo-icon.filetype.coveo-small.Slackmessage,
2125
- .coveo-icon.filetype.coveo-small.slackmessage,
2126
- .coveo-icon.filetype.coveo-small.Slackchannel,
2127
- .coveo-icon.filetype.coveo-small.slackchannel,
2128
- .coveo-icon.filetype.coveo-small.Slackfile,
2129
- .coveo-icon.filetype.coveo-small.slackfile,
2130
- .coveo-icon.filetype.coveo-small.Slackuser,
2131
- .coveo-icon.filetype.coveo-small.slackuser,
2132
2127
  .coveo-filetype-user-small,
2133
2128
  .coveo-icon.objecttype.coveo-small.People,
2134
2129
  .coveo-icon.objecttype.coveo-small.people,
@@ -2337,6 +2332,21 @@ Code generated by scripts/postinstall.js DO NOT EDIT
2337
2332
  background-size: 28px 32px;
2338
2333
  }
2339
2334
 
2335
+ .coveo-filetype-slack-small,
2336
+ .coveo-icon.filetype.coveo-small.Slackmessage,
2337
+ .coveo-icon.filetype.coveo-small.slackmessage,
2338
+ .coveo-icon.filetype.coveo-small.Slackchannel,
2339
+ .coveo-icon.filetype.coveo-small.slackchannel,
2340
+ .coveo-icon.filetype.coveo-small.Slackfile,
2341
+ .coveo-icon.filetype.coveo-small.slackfile,
2342
+ .coveo-icon.filetype.coveo-small.Slackuser,
2343
+ .coveo-icon.filetype.coveo-small.slackuser {
2344
+ display: inline-block;
2345
+ width: 62px;
2346
+ height: 62px;
2347
+ background-size: 62px 62px;
2348
+ }
2349
+
2340
2350
  .coveo-filetype-attachment,
2341
2351
  .coveo-icon.objecttype.Attachment,
2342
2352
  .coveo-icon.objecttype.attachment,
@@ -8055,13 +8065,6 @@ select.coveo-dropdown::-ms-expand {
8055
8065
  * @param $size size of the icon to use
8056
8066
  */
8057
8067
 
8058
- @font-face {
8059
- font-family: 'Lato';
8060
- src: url('https://static.cloud.coveo.com/searchui/v2.10104/0/fonts/lato.woff2'), url('https://staticdev.cloud.coveo.com/searchui/v2.10104/0/fonts/lato.woff2'), url('../fonts/lato.woff2'), url('https://static.cloud.coveo.com/searchui/v2.10104/0/fonts/lato.woff'), url('https://staticdev.cloud.coveo.com/searchui/v2.10104/0/fonts/lato.woff'), url('../fonts/lato.woff');
8061
- font-weight: normal;
8062
- font-style: normal;
8063
- }
8064
-
8065
8068
  .CoveoSearchInterface {
8066
8069
  min-height: 100%;
8067
8070
  position: relative;
@@ -18735,10 +18738,6 @@ button.coveo-user-feedback-banner-explain-why-active {
18735
18738
  * @param $size size of the icon to use
18736
18739
  */
18737
18740
 
18738
- .coveo-user-explanation-modal .coveo-small-close {
18739
- display: none;
18740
- }
18741
-
18742
18741
  .coveo-user-explanation-modal-explanation-section {
18743
18742
  display: flex;
18744
18743
  flex-wrap: wrap;
@@ -112,9 +112,7 @@ export default class SearchResults extends LightningElement {
112
112
 
113
113
  private goToPage(e: CustomEvent) {
114
114
  const page = e.detail;
115
- const Pager = Coveo.get(
116
- this.root!.querySelector(".CoveoPager") as HTMLElement
117
- ) as any;
115
+ const Pager = Coveo.get(this.root!.querySelector(".CoveoPager") as HTMLElement) as any;
118
116
  Pager.setPage(page);
119
117
  this.currentPage = page;
120
118
  }
@@ -127,23 +125,18 @@ export default class SearchResults extends LightningElement {
127
125
  };
128
126
 
129
127
  private attachListeners(root: HTMLElement) {
130
- Coveo.$$(root).on(
131
- Coveo.InitializationEvents.afterInitialization,
132
- () => {
133
- if (this._query !== "") {
134
- Coveo.state(this.root!, "q", this.searchQuery);
135
- }
136
- if (Coveo.state(this.root!, "q") === "") {
137
- Coveo.state(this.root!, "sort", "date descending");
138
- }
139
- this.isInitialized = true;
128
+ Coveo.$$(root).on(Coveo.InitializationEvents.afterInitialization, () => {
129
+ if (this._query !== "") {
130
+ Coveo.state(this.root!, "q", this.searchQuery);
140
131
  }
141
- );
132
+ if (Coveo.state(this.root!, "q") === "") {
133
+ Coveo.state(this.root!, "sort", "date descending");
134
+ }
135
+ this.isInitialized = true;
136
+ });
142
137
 
143
138
  Coveo.$$(root).on(Coveo.QueryEvents.querySuccess, (event: any) => {
144
- const { currentPage, numberOfPages } = getPaginationState(
145
- event.detail
146
- );
139
+ const { currentPage, numberOfPages } = getPaginationState(event.detail);
147
140
  this.currentPage = currentPage;
148
141
  this.totalPages = numberOfPages;
149
142
  this.totalResults = event.detail.results.totalCount;
@@ -171,13 +164,15 @@ export default class SearchResults extends LightningElement {
171
164
 
172
165
  this.attachListeners(this.root);
173
166
 
174
- Coveo.TemplateHelpers.registerTemplateHelper(
175
- "badge",
176
- (value: string) => {
177
- console.log({ value });
178
- return `<dx-type-badge variant="${value}"></dx-type-badge>`;
179
- }
180
- );
167
+ let variantValue = "";
168
+
169
+ Coveo.TemplateHelpers.registerTemplateHelper("badge", (value: string) => {
170
+ variantValue = value;
171
+ });
172
+
173
+ const typeBadgeEl = document.createElement("dx-type-badge");
174
+ typeBadgeEl.setAttribute("variant", variantValue);
175
+ this.template.querySelector(".CoveoFieldValue");
181
176
 
182
177
  Coveo.init(this.root);
183
178
  }