-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NSW DS updates and fixes from LWR page templates (#348)
* Updates and fixes from LWR page templates * Typo
- Loading branch information
1 parent
7970df8
commit 6a9bcf8
Showing
61 changed files
with
1,172 additions
and
406 deletions.
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
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
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
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
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
4 changes: 2 additions & 2 deletions
4
...AuNsw/main/default/lwc/sfGpsDsAuNswAccordionGroupHead/sfGpsDsAuNswAccordionGroupHead.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
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
1 change: 1 addition & 0 deletions
1
...DsAuNsw/main/default/lwc/sfGpsDsAuNswAccordionGroupLwr/sfGpsDsAuNswAccordionGroupLwr.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
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
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
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: 1 addition & 1 deletion
2
sfGpsDsAuNsw/main/default/lwc/sfGpsDsAuNswBreadcrumbs/sfGpsDsAuNswBreadcrumbs.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
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
16 changes: 16 additions & 0 deletions
16
sfGpsDsAuNsw/main/default/lwc/sfGpsDsAuNswBreadcrumbsLwr/sfGpsDsAuNswBreadcrumbsLwr.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,16 @@ | ||
<template> | ||
<c-sf-gps-ds-configuration-error | ||
lwc:if={_sfGpsDsErrors} | ||
errors={_sfGpsDsErrors} | ||
> | ||
</c-sf-gps-ds-configuration-error> | ||
|
||
<c-sf-gps-ds-au-nsw-breadcrumbs | ||
lwc:else | ||
label={label} | ||
items={_itemsArray} | ||
container-class-name={containerClassName} | ||
class-name={className} | ||
> | ||
</c-sf-gps-ds-au-nsw-breadcrumbs> | ||
</template> |
39 changes: 39 additions & 0 deletions
39
sfGpsDsAuNsw/main/default/lwc/sfGpsDsAuNswBreadcrumbsLwr/sfGpsDsAuNswBreadcrumbsLwr.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,39 @@ | ||
/* | ||
* Copyright (c) 2022, Emmanuel Schweitzer and salesforce.com, inc. | ||
* All rights reserved. | ||
* Licensed under the BSD 3-Clause license. | ||
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause | ||
*/ | ||
import { api, track } from "lwc"; | ||
import SfGpsDsLwc from "c/sfGpsDsLwc"; | ||
import mdEngine from "c/sfGpsDsMarkdown"; | ||
|
||
export default class extends SfGpsDsLwc { | ||
@api label = "Breadcrumb"; | ||
@api linkComponent = "a"; | ||
@api containerClassName = "nsw-container nsw-p-bottom-sm"; | ||
@api className = ""; | ||
|
||
_items; | ||
@track _itemsArray = []; | ||
|
||
@api set items(markdown) { | ||
this._items = markdown; | ||
try { | ||
this._itemsArray = mdEngine.extractLinks(markdown); | ||
} catch (e) { | ||
this.addError("IT-MD", "Issue when parsing Items markdown"); | ||
} | ||
} | ||
|
||
get items() { | ||
return this._items; | ||
} | ||
|
||
/* lifecycle */ | ||
|
||
connectedCallback() { | ||
super.connectedCallback(); | ||
this.classList.add("nsw-scope"); | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
...sAuNsw/main/default/lwc/sfGpsDsAuNswBreadcrumbsLwr/sfGpsDsAuNswBreadcrumbsLwr.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,51 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>60.0</apiVersion> | ||
<isExposed>true</isExposed> | ||
<masterLabel>NSW DS LWR Breadcrumbs</masterLabel> | ||
<targets> | ||
<target>lightningCommunity__Page</target> | ||
<target>lightningCommunity__Default</target> | ||
</targets> | ||
<targetConfigs> | ||
<targetConfig targets="lightningCommunity__Default"> | ||
<property | ||
name="label" | ||
type="String" | ||
label="Aria label" | ||
description="Label used for accessibility." | ||
required="true" | ||
default="Breadcrumbs" | ||
/> | ||
<property | ||
name="items" | ||
type="String" | ||
label="Items" | ||
description="Links to parent and current pages in Markdown format." | ||
default="[Home](#)[Parent](#)[Current page]()" | ||
/> | ||
<property | ||
name="linkComponent" | ||
type="String" | ||
label="Link component" | ||
description="Component used to render the link." | ||
datasource="a" | ||
required="true" | ||
default="a" | ||
/> | ||
<property | ||
name="containerClassName" | ||
type="String" | ||
label="Class name" | ||
description="Additional CSS class to be applied." | ||
default="nsw-container nsw-p-bottom-sm" | ||
/> | ||
<property | ||
name="className" | ||
type="String" | ||
label="Class name" | ||
description="Additional CSS class to be applied." | ||
/> | ||
</targetConfig> | ||
</targetConfigs> | ||
</LightningComponentBundle> |
1 change: 1 addition & 0 deletions
1
...uNsw/main/default/lwc/sfGpsDsAuNswBreadcrumbsLwr/sfGpsDsAuNswBreadcrumbsLwr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.