Skip to content

Commit

Permalink
Eschweitzer78/v20231116.2030 (#253)
Browse files Browse the repository at this point in the history
* UK places typeahead and adj file styles

* Adujst UK version and create Vic2

* Base places typeahead class

* Vic2 init

* removing log

* Apply NSW waratah logo change

* VIC adjust error for messaging omni

* Versions

* Vic2 init
  • Loading branch information
eschweitzer78 authored Nov 16, 2023
1 parent e4a4406 commit 6bc0cb4
Show file tree
Hide file tree
Showing 171 changed files with 6,448 additions and 54 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (c) 2023, 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 OmniscriptPlacesTypeahead from "omnistudio/omniscriptPlacesTypeahead";
import SfGpsDsOmniHasValidationMixin from "c/sfGpsDsOmniHasValidationMixinOsN";
import { omniGetMergedField } from "c/sfGpsDsOmniHelpersOsN";

export default class sfGpsDsFormTypeaheadOsN extends SfGpsDsOmniHasValidationMixin(
OmniscriptPlacesTypeahead
) {
get mergedLabel() {
return omniGetMergedField(this, this._propSetMap.label);
}

get mergedHelpText() {
return omniGetMergedField(this, this._handleHelpText);
}

get mergedPlaceholder() {
return omniGetMergedField(this, this._placeholder);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>59.0</apiVersion>
<isExposed>true</isExposed>
<runtimeNamespace>omnistudio</runtimeNamespace>
</LightningComponentBundle>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ export default class SfGpsDsAuVicFormMessagingOsN extends SfGpsDsFormMessagingOs
if (mth) {
if ((element = this.template.querySelector(MARKDOWN_SELECTOR))) {
replaceInnerHtml(element, mth);
} else {
console.log(
"CO-PH",
"Couldn't find internal intro markdown placeholder"
);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<aura:documentation>
<aura:description>Documentation</aura:description>
<aura:example name="ExampleName" ref="exampleComponentName" label="Label">
Example Description
</aura:example>
</aura:documentation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<aura:component
implements="forceCommunity:themeLayout"
access="global"
description="VIC DS v2 Theme Layout"
>
<ltng:require
styles="{! join(',', $Resource.sfGpsDsAuVic2 + '/assets/styles/global.css', $Resource.sfGpsDsAuVic2 + '/assets/styles/style.css')}"
/>

<aura:attribute name="header" type="Aura.Component[]" required="false" />
<aura:attribute name="footer" type="Aura.Component[]" required="false" />

<!-- this works with Citizen, Cypress, Ember, Jepson, Stella, Webster themes but *not* Customer Service -->
<aura:attribute name="themeHeader" type="Aura.Component[]" required="false" />

<aura:attribute
name="hideHeader"
type="Boolean"
required="false"
default="true"
/>
<aura:attribute
name="noWidgetMargin"
type="Boolean"
required="false"
default="false"
/>
<aura:attribute name="navId" type="String" required="false" default="nav" />
<aura:attribute
name="contentId"
type="String"
required="false"
default="content"
/>

<div
class="{! v.noWidgetMargin ? 'sfgpsds-widget--no-margin' : 'sfgpsds-widget--margin' }"
>
<header class="sfgpsds-header">
<h1 id="sfgpsds-header-title" class="sr-only">Header</h1>

<div class="sfgpsds-header-top">{!v.header}</div>

<div id="{!v.navId}" class="sfgpsds-header-center">
<aura:if isTrue="{! !v.hideHeader }">
<div class="sfgpsds-header-profile">{!v.themeHeader}</div>
</aura:if>
</div>
</header>

<div
id="{!v.contentId}"
aria-label="Content"
role="main"
class="sfgpsds-content"
>
{!v.body}
</div>

<footer aria-label="Footer" class="sfgpsds-footer">{!v.footer}</footer>
</div>
</aura:component>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>59.0</apiVersion>
<description
>Salesforce Global Public Sector VIC Ripple v2 Theme Layout</description>
</AuraDefinitionBundle>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.THIS {
position: relative;
z-index: 1;
}

.THIS .sr-only {
display: none;
}

.THIS .sfgpsds-header-profile {
min-width: 14rem;
}

.THIS.sfgpsds-widget--no-margin
.siteforceContentArea
.comm-layout-column
.ui-widget:not(:last-child),
.THIS.sfgpsdswidget--no-margin
.siteforceContentArea
.cb-section_column
.ui-widget:not(:last-child) {
margin-bottom: 0;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<design:component label="VIC Design System v2 Theme Layout">
<design:attribute name="hideHeader" label="Hide main header" description="Hides the standard header.">
</design:attribute>
<design:attribute name="noWidgetMargin" label="No widget margin" description="Removes the standard widget margin.">
</design:attribute>
<design:attribute name="navId" label="navId" description="Id to set on nav region.">
</design:attribute>
<design:attribute name="contentId" label="contentId" description="Id to set on content region.">
</design:attribute>
</design:component>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
({});
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
({});
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
({});
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
<?xml version="1.0" encoding="UTF-8" ?>
<BrandingSet xmlns="http://soap.sforce.com/2006/04/metadata">
<masterLabel>sfGpsDsAuVic2_Aura</masterLabel>
<type>starter:branding-starter</type>

<brandingSetProperty>
<propertyName>TextColor</propertyName>
<propertyValue>#1A1A1A</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>DetailTextColor</propertyName>
<propertyValue>#1A1A1A</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>ActionColor</propertyName>
<propertyValue>#2574A9</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>LinkColor</propertyName>
<propertyValue>#0052C2</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>OverlayTextColor</propertyName>
<propertyValue>#FFFFFF</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>BorderColor</propertyName>
<propertyValue>#CCCCCC</propertyValue>
</brandingSetProperty>

<brandingSetProperty>
<propertyName>brandNavigationBackgroundColor</propertyName>
<propertyValue>rgba(255, 255, 255, 0)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>brandNavigationColorText</propertyName>
<propertyValue>#FFFFFF</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>brandNavigationBarBackgroundColor</propertyName>
<propertyValue>#0052C2</propertyValue>
</brandingSetProperty>

<brandingSetProperty>
<propertyName>LoginBackgroundColor</propertyName>
<propertyValue>#F4F4F4</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>CardBackgroundColor</propertyName>
<propertyValue>rgba(255, 255, 255, 0)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>ErrorFontColor</propertyName>
<propertyValue>#AA0028</propertyValue>
</brandingSetProperty>

<brandingSetProperty>
<propertyName>CompanyLogo</propertyName>
<propertyValue />
</brandingSetProperty>
<brandingSetProperty>
<propertyName>LoginBackgroundImage</propertyName>
<propertyValue
>../../../../sfsites/picasso/core/external/salesforceIdentity/images/background.jpg?v=1</propertyValue>
</brandingSetProperty>

<brandingSetProperty>
<propertyName>PrimaryFont</propertyName>
<propertyValue>VIC-Regular</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>HeaderFonts</propertyName>
<propertyValue>VIC-Bold</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>TextTransformStyle</propertyName>
<propertyValue>none</propertyValue>
</brandingSetProperty>

<!--
<brandingSetProperty>
<propertyName>_brandNavigationBarBackgroundColor</propertyName>
<propertyValue>rgba(128,128,128,.75)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_brandNavigationItemBackgroundColorHover</propertyName>
<propertyValue>rgba(0,0,0,.2)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_brandNavigationItemDividerColor</propertyName>
<propertyValue>rgba(255, 255, 255, 0.2)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_ActionColorDarker</propertyName>
<propertyValue>#135F90</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_ActionColorTrans</propertyName>
<propertyValue>rgba(25, 124, 190, 0.9)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_BackgroundColor1</propertyName>
<propertyValue>rgb(235, 235, 235)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_BackgroundColor2</propertyName>
<propertyValue>rgb(194, 194, 194)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_BackgroundColor3</propertyName>
<propertyValue>rgb(133, 133, 133)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_DxpPageBackgroundColor</propertyName>
<propertyValue>#FFFFFF</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_HoverColor</propertyName>
<propertyValue>rgba(25, 124, 190, 0.05)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_LinkColorDarker</propertyName>
<propertyValue>#135F90</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_NeutralColor</propertyName>
<propertyValue>#ecebea</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_NeutralColor1</propertyName>
<propertyValue>rgb(217, 215, 213)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_NeutralColor2</propertyName>
<propertyValue>rgb(178, 174, 170)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_NeutralColor3</propertyName>
<propertyValue>rgb(118, 113, 107)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_NeutralForegroundColor</propertyName>
<propertyValue>#000</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_NeutralForegroundColor1</propertyName>
<propertyValue>#000</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_NeutralForegroundColor2</propertyName>
<propertyValue>#000</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_NeutralForegroundColor3</propertyName>
<propertyValue>#fff</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_OverlayTextColorShadow</propertyName>
<propertyValue>#000000</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_PrimaryAccentColor1</propertyName>
<propertyValue>rgb(30, 93, 136)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_PrimaryAccentColor2</propertyName>
<propertyValue>rgb(15, 47, 69)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_PrimaryAccentColor3</propertyName>
<propertyValue>rgb(0, 0, 0)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_PrimaryAccentForegroundColor1</propertyName>
<propertyValue>rgb(255, 255, 255)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_PrimaryAccentForegroundColor2</propertyName>
<propertyValue>rgb(255, 255, 255)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_PrimaryAccentForegroundColor3</propertyName>
<propertyValue>rgb(255, 255, 255)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_TextColor1</propertyName>
<propertyValue>#1A1A1A</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_TextColor2</propertyName>
<propertyValue>rgb(0, 0, 0)</propertyValue>
</brandingSetProperty>
<brandingSetProperty>
<propertyName>_TextColor3</propertyName>
<propertyValue>rgb(0, 0, 0)</propertyValue>
</brandingSetProperty>
-->
</BrandingSet>
14 changes: 14 additions & 0 deletions sfGpsDsAuVic2/main/default/lwc/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": [
"@salesforce/eslint-config-lwc/recommended",
"@salesforce/eslint-config-lwc/i18n"
],
"overrides": [
{
"files": ["*.test.js"],
"rules": {
"@lwc/lwc/no-unexpected-wire-adapter-usages": "off"
}
}
]
}
Loading

0 comments on commit 6bc0cb4

Please sign in to comment.