-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added slot and quantic sort option component
- Loading branch information
1 parent
fe412e0
commit b8c10fe
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
packages/quantic/force-app/main/default/lwc/quanticSortOption/quanticSortOption.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<template> | ||
</template> |
41 changes: 41 additions & 0 deletions
41
packages/quantic/force-app/main/default/lwc/quanticSortOption/quanticSortOption.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import {LightningElement, api} from 'lwc'; | ||
|
||
/** @typedef {import("coveo").SortCriterion} SortCriterion */ | ||
|
||
/** | ||
* @typedef SortOption | ||
* @property {string} label | ||
* @property {string} value | ||
* @property {SortCriterion} criterion | ||
*/ | ||
|
||
/** | ||
* The `QuanticSortOption` component defines a sort option for a `c-quantic-sort` component. | ||
* It must therefore be defined within a `c-quantic-sort` component. | ||
* | ||
* A sort option is a criterion that the end user can select to sort the query results. | ||
* @category Search | ||
* @category Insight Panel | ||
* @example | ||
* <c-quantic-sort-option></c-quantic-sort-option> | ||
*/ | ||
export default class QuanticSortOption extends LightningElement { | ||
/** | ||
* The label of the sort option. | ||
* @api | ||
* @type {string} | ||
*/ | ||
@api label; | ||
/** | ||
* The value of the sort option. | ||
* @api | ||
* @type {string} | ||
*/ | ||
@api value; | ||
/** | ||
* The criterion to use when sorting query results. | ||
* @api | ||
* @type {SortCriterion} | ||
*/ | ||
@api criterion; | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/quantic/force-app/main/default/lwc/quanticSortOption/quanticSortOption.js-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>59.0</apiVersion> | ||
<isExposed>false</isExposed> | ||
</LightningComponentBundle> |