Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta #341

Merged
merged 63 commits into from
May 21, 2024
Merged

Beta #341

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
0cc2fae
Calendar Test Added - gitignore updated
Ramakrishnan24689 Sep 1, 2022
47ecf04
Removed Shimmer Coverage/ Updated Test Snaps
Ramakrishnan24689 Sep 1, 2022
31579c1
Udpated Test for Progress Indicator
Ramakrishnan24689 Sep 1, 2022
25c14e9
fix:(Calendar) test failing due to dependency on today's date (#30)
scottdurow Sep 15, 2022
b23adee
fix: (pivot) width in custom pages (#33)
scottdurow Sep 17, 2022
7f427b4
fix: auto-height in custom pages (#32)
scottdurow Sep 28, 2022
2b5d72f
Facepile component added (#35)
Ramakrishnan24689 Sep 30, 2022
79e6702
Update Facepile.1033.resx
Ramakrishnan24689 Sep 30, 2022
38e8d97
Facepile propertyname changed (#48)
Ramakrishnan24689 Oct 31, 2022
1be5051
Features/people picker (#46)
Ramakrishnan24689 Oct 31, 2022
9a4da45
Searchbox (#49)
Ramakrishnan24689 Oct 31, 2022
5befbd6
October release Prep
Ramakrishnan24689 Oct 31, 2022
387fe36
test: test modified
Ramakrishnan24689 Oct 31, 2022
503fd0f
(People Picker) Deterministic Suggestions Resolution (#51)
scottdurow Nov 1, 2022
2d49adf
Searchbox - fix : custom page width (#52)
Ramakrishnan24689 Nov 1, 2022
0a1bfd4
Merge branch 'main' of https://github.com/microsoft/powercat-code-com…
Ramakrishnan24689 Nov 1, 2022
f4304f8
October release doc updates
Ramakrishnan24689 Nov 1, 2022
7e726ac
Merge branch 'beta' of https://github.com/microsoft/powercat-code-com…
Ramakrishnan24689 Nov 1, 2022
ceb4cc9
refactor: modified create-release-added npm ci
Ramakrishnan24689 Nov 1, 2022
51269f8
Merge branch 'main' of https://github.com/microsoft/powercat-code-com…
Ramakrishnan24689 Nov 1, 2022
e4329be
Update Facepile.resx remove additional tags
Ramakrishnan24689 Nov 1, 2022
521d3e7
Searchbox (#56)
Ramakrishnan24689 Nov 2, 2022
c758cd3
Creatorkit mehdis persona (#47)
slaouist Nov 2, 2022
95c2999
Feature/searchbox#82 (#131)
Ramakrishnan24689 Dec 2, 2022
149875e
Feature/tooltip (#132)
Ramakrishnan24689 Dec 2, 2022
651ecbb
feat:SubwayNav component added (#133)
Ramakrishnan24689 Dec 2, 2022
5a650b5
feat:spinbutton (#134)
Ramakrishnan24689 Dec 2, 2022
2d5c548
merge from main
Ramakrishnan24689 Dec 2, 2022
40df5cc
included Spinbtn directory
Ramakrishnan24689 Dec 2, 2022
72e1d14
included Spinbtn directory
Ramakrishnan24689 Dec 2, 2022
25abc2a
removing code
Ramakrishnan24689 Dec 2, 2022
f312610
Merge branch 'main' of https://github.com/microsoft/powercat-code-com…
Ramakrishnan24689 Dec 2, 2022
2df0e66
duplicate directory mention
Ramakrishnan24689 Dec 2, 2022
4425f88
adding subwaynav versioning stamp
Ramakrishnan24689 Dec 2, 2022
51260d6
fix:custom page width issue (#145)
Ramakrishnan24689 Dec 2, 2022
16ea0ef
Merge branch 'main' of https://github.com/microsoft/powercat-code-com…
Ramakrishnan24689 Apr 12, 2023
184868b
feat:subwaynav showanimation property (#225)
Ramakrishnan24689 Apr 12, 2023
a0ef8cd
fixes microsoft/powercat-creator-kit#285 (#226)
Ramakrishnan24689 Apr 12, 2023
a0e4737
fixes microsoft/powercat-creator-kit#316 (#228)
Ramakrishnan24689 Apr 12, 2023
6fa6977
feat: searchbox-defaultvalue-set-option (#230)
Ramakrishnan24689 Apr 13, 2023
90cea63
fixes calendar language support (#231)
Ramakrishnan24689 Apr 13, 2023
4cb967f
fixes searchtext bound property (#234)
Ramakrishnan24689 Apr 17, 2023
f1bcfb7
pull main changes
Ramakrishnan24689 Apr 18, 2023
0af5be6
feat: searchbox bordercolor property (#235)
Ramakrishnan24689 Apr 18, 2023
b54ebe8
Merge branch 'main' of https://github.com/microsoft/powercat-code-com…
Ramakrishnan24689 Jun 12, 2023
cf93a6b
fix microsoft/powercat-creator-kit#352
Ramakrishnan24689 Jul 10, 2023
4602577
updated test and linting
Ramakrishnan24689 Jul 10, 2023
071ed04
Masked text field (#315)
denise-msft Jul 24, 2023
3dd7741
Masked text field (#316)
Ramakrishnan24689 Jul 24, 2023
9306d19
fixes microsoft/powercat-creator-kit#354 (#317)
Ramakrishnan24689 Jul 24, 2023
74899de
renaming masktextfield project file
Ramakrishnan24689 Jul 24, 2023
5a4fda7
Merge branch 'beta' of https://github.com/microsoft/powercat-code-com…
Ramakrishnan24689 Jul 24, 2023
6b9d1cb
downgrading node version to 16x
Ramakrishnan24689 Jul 24, 2023
3a44d97
downgrading node version to 16x for masktextfield
Ramakrishnan24689 Jul 24, 2023
c20c6f2
Merge branch 'main' of https://github.com/microsoft/powercat-code-com…
Ramakrishnan24689 Jul 24, 2023
2e93a71
package version changes
Ramakrishnan24689 Jul 24, 2023
b1e3694
exclusing maskedtextfield component
Ramakrishnan24689 Jul 25, 2023
f8b49e4
modifying minor version (#321)
Ramakrishnan24689 Jul 25, 2023
80c3224
Fix/detailslist (#323)
Ramakrishnan24689 Jul 31, 2023
eca35de
fix: microsoft/powercat-creator-kit#176 (#324)
Ramakrishnan24689 Aug 1, 2023
3f0c290
fix microsoft/powercat-creator-kit#310 (#325)
Ramakrishnan24689 Aug 4, 2023
3eb4050
Beta (#340)
Ramakrishnan24689 May 21, 2024
e48a0b0
chore: sync main - beta branch
Ramakrishnan24689 May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
250 changes: 192 additions & 58 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@ jobs:

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: "12.x"
node-version: "18.x"

- run: npm ci
working-directory: "./build-scripts"
- name: Clear npm cache
run: npm cache clean --force

- name: Install Dependencies in build-scripts
run: |
cd ./build-scripts
npm install
npm ci

- name: Version Stamp Code Components
uses: actions/github-script@v2
Expand All @@ -40,13 +47,17 @@ jobs:
`${process.env.GITHUB_WORKSPACE}/CommandBar/CommandBar`,
`${process.env.GITHUB_WORKSPACE}/ContextMenu/ContextMenu`,
`${process.env.GITHUB_WORKSPACE}/DetailsList/DetailsList`,
`${process.env.GITHUB_WORKSPACE}/DonutChart/DonutChart`,
`${process.env.GITHUB_WORKSPACE}/Elevation/Elevation`,
`${process.env.GITHUB_WORKSPACE}/Facepile/Facepile`,
`${process.env.GITHUB_WORKSPACE}/GaugeChart/GaugeChart`,
`${process.env.GITHUB_WORKSPACE}/HorizontalBarChart/HorizontalBarChart`,
`${process.env.GITHUB_WORKSPACE}/Icon/Icon`,
`${process.env.GITHUB_WORKSPACE}/KeyboardShortcuts/KeyboardShortcuts`,
`${process.env.GITHUB_WORKSPACE}/MaskedTextField/MaskedTextField`,
`${process.env.GITHUB_WORKSPACE}/Nav/Nav`,
`${process.env.GITHUB_WORKSPACE}/Persona/Persona`,
`${process.env.GITHUB_WORKSPACE}/PeoplePicker/PeoplePicker`,
`${process.env.GITHUB_WORKSPACE}/Persona/Persona`,
`${process.env.GITHUB_WORKSPACE}/Picker/Picker`,
`${process.env.GITHUB_WORKSPACE}/Pivot/Pivot`,
`${process.env.GITHUB_WORKSPACE}/ProgressIndicator/ProgressIndicator`,
Expand All @@ -55,68 +66,192 @@ jobs:
`${process.env.GITHUB_WORKSPACE}/Shimmer/Shimmer`,
`${process.env.GITHUB_WORKSPACE}/SpinButton/SpinButton`,
`${process.env.GITHUB_WORKSPACE}/Spinner/Spinner`,
`${process.env.GITHUB_WORKSPACE}/StackedBarChart/StackedBarChart`,
`${process.env.GITHUB_WORKSPACE}/SubwayNav/SubwayNav`,
`${process.env.GITHUB_WORKSPACE}/TagList/TagList`,
`${process.env.GITHUB_WORKSPACE}/ThemeGenerator/ThemeGenerator`
],
`${process.env.GITHUB_WORKSPACE}/ThemeGenerator/ThemeGenerator`
],
solutionPaths: `${process.env.GITHUB_WORKSPACE}/Solution/src/Other/Solution.xml`,
beta: false}
)

- name: Install Dependencies in AutoWidthLabel
run: |
cd ./AutoWidthLabel
npm install
npm ci

- name: Install Dependencies in Breadcrumb
run: |
cd ./Breadcrumb
npm install
npm ci

- name: Install Dependencies in Calendar
run: |
cd ./Calendar
npm install
npm ci

- name: Install Dependencies in CommandBar
run: |
cd ./CommandBar
npm install
npm ci

- name: Install Dependencies in ContextMenu
run: |
cd ./ContextMenu
npm install
npm ci

- name: Install Dependencies in DetailsList
run: |
cd ./DetailsList
npm install
npm ci

- name: Install Dependencies in DonutChart
run: |
cd ./DonutChart
npm install
npm ci

- name: Install Dependencies in Elevation
run: |
cd ./Elevation
npm install
npm ci

- name: Install Dependencies in Facepile
run: |
cd ./Facepile
npm install
npm ci

- name: Install Dependencies in GaugeChart
run: |
cd ./GaugeChart
npm install
npm ci

- name: Install Dependencies in HorizontalBarChart
run: |
cd ./HorizontalBarChart
npm install
npm ci

- name: Install Dependencies in Icon
run: |
cd ./Icon
npm install
npm ci

- name: Install Dependencies in KeyboardShortcuts
run: |
cd ./KeyboardShortcuts
npm install
npm ci

- name: Install Dependencies in MaskedTextField
run: |
cd ./MaskedTextField
npm install
npm ci

- run: npm ci
working-directory: "./AutoWidthLabel"
- run: npm ci
working-directory: "./Breadcrumb"
- run: npm ci
working-directory: "./Calendar"
- run: npm ci
working-directory: "./CommandBar"
- run: npm ci
working-directory: "./ContextMenu"
- run: npm ci
working-directory: "./DetailsList"
- run: npm ci
working-directory: "./Elevation"
- run: npm ci
working-directory: "./Facepile"
- run: npm ci
working-directory: "./Icon"
- run: npm ci
working-directory: "./KeyboardShortcuts"
- run: npm ci
working-directory: "./MaskedTextField"
- run: npm ci
working-directory: "./Nav"
- run: npm ci
working-directory: "./PeoplePicker"
- run: npm ci
working-directory: "./Persona"
- run: npm ci
working-directory: "./Picker"
- run: npm ci
working-directory: "./Pivot"
- run: npm ci
working-directory: "./ProgressIndicator"
- run: npm ci
working-directory: "./ResizableTextarea"
- run: npm ci
working-directory: "./SearchBox"
- run: npm ci
working-directory: "./Shimmer"
- run: npm ci
working-directory: "./Spinner"
- run: npm ci
working-directory: "./SpinButton"
- run: npm ci
working-directory: "./SubwayNav"
- run: npm ci
working-directory: "./TagList"
- run: npm ci
working-directory: "./ThemeGenerator"
- name: Install Dependencies in Nav
run: |
cd ./Nav
npm install
npm ci

- name: Install Dependencies in PeoplePicker
run: |
cd ./PeoplePicker
npm install
npm ci

- name: Install Dependencies in Persona
run: |
cd ./Persona
npm install
npm ci

- name: Install Dependencies in Picker
run: |
cd ./Picker
npm install
npm ci

- name: Install Dependencies in Pivot
run: |
cd ./Pivot
npm install
npm ci

- name: Install Dependencies in ProgressIndicator
run: |
cd ./ProgressIndicator
npm install
npm ci

- name: Install Dependencies in ResizableTextarea
run: |
cd ./ResizableTextarea
npm install
npm ci

- name: Install Dependencies in SearchBox
run: |
cd ./SearchBox
npm install
npm ci

- name: Install Dependencies in Shimmer
run: |
cd ./Shimmer
npm install
npm ci

- name: Install Dependencies in SpinButton
run: |
cd ./SpinButton
npm install
npm ci

- name: Install Dependencies in Spinner
run: |
cd ./Spinner
npm install
npm ci

- name: Install Dependencies in StackedBarChart
run: |
cd ./StackedBarChart
npm install
npm ci

- name: Install Dependencies in SubwayNav
run: |
cd ./SubwayNav
npm install
npm ci

- name: Install Dependencies in TagList
run: |
cd ./TagList
npm install
npm ci

- name: Install Dependencies in ThemeGenerator
run: |
cd ./ThemeGenerator
npm install
npm ci

- uses: actions/setup-dotnet@v1
with:
dotnet-version: "5.x"
dotnet-version: "6.x"

- run: dotnet build -c release
working-directory: "./Solution"
Expand Down Expand Up @@ -153,4 +288,3 @@ jobs:
asset_path: Solution/bin/Release/Solution_managed.zip
asset_name: PowerCATCodeComponents_managed_${{ env.MajorVersion }}_${{ env.MinorVersion }}_0_${{ env.BuildVersion }}.zip
asset_content_type: application/zip

23 changes: 13 additions & 10 deletions .github/workflows/pr_validate_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ jobs:
matrix:
component-directory:
- "./AutoWidthLabel"
- "./Breadcrumb"
- "./Calendar"
- "./CommandBar"
- "./ContextMenu"
- "./DetailsList"
- "./Elevation"
- "./Breadcrumb"
- "./Calendar"
- "./CommandBar"
- "./ContextMenu"
- "./DetailsList"
- "./DonutChart"
- "./Elevation"
- "./Facepile"
- "./GaugeChart"
- "./HorizontalBarChart"
- "./Icon"
- "./KeyboardShortcuts"
- "./Nav"
Expand All @@ -30,12 +33,13 @@ jobs:
- "./ProgressIndicator"
- "./ResizableTextarea"
- "./SearchBox"
- "./Shimmer"
- "./SpinButton"
- "./Spinner"
- "./Shimmer"
- "./StackedBarChart"
- "./SubwayNav"
- "./TagList"

- "./ThemeGenerator"

defaults:
run:
Expand All @@ -45,9 +49,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: '18.x'
- name: Install dependencies
run: npm ci
- run: npm run build
- run: npm test

30 changes: 30 additions & 0 deletions AutoWidthLabel/AutoWidthLabel/__mocks__/mock-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class MockContext<T> implements ComponentFramework.Context<T> {
getClient: jest.fn(),
getFormFactor: jest.fn(),
isOffline: jest.fn(),
isNetworkAvailable: jest.fn(),
};

// Canvas apps currently assigns a positive tab-index
Expand All @@ -37,6 +38,7 @@ export class MockContext<T> implements ComponentFramework.Context<T> {
webAPI: ComponentFramework.WebApi;
parameters: T;
updatedProperties: string[] = [];
events: IEventBag;
}

export class MockState implements ComponentFramework.Dictionary {}
Expand Down Expand Up @@ -78,6 +80,19 @@ export class MockEnumProperty<T> implements ComponentFramework.PropertyTypes.Enu
raw: T;
}

export class MockTwoOptionsProperty implements ComponentFramework.PropertyTypes.TwoOptionsProperty {
constructor(raw?: boolean) {
if (raw) this.raw = raw;
}
raw: boolean;
attributes?: ComponentFramework.PropertyHelper.FieldPropertyMetadata.TwoOptionMetadata | undefined;
error: boolean;
errorMessage: string;
formatted?: string | undefined;
security?: ComponentFramework.PropertyHelper.SecurityValues | undefined;
type: string;
}

export class MockDecimalNumberProperty implements ComponentFramework.PropertyTypes.DecimalNumberProperty {
attributes?: ComponentFramework.PropertyHelper.FieldPropertyMetadata.DecimalNumberMetadata | undefined;
raw: number | null;
Expand All @@ -87,3 +102,18 @@ export class MockDecimalNumberProperty implements ComponentFramework.PropertyTyp
security?: ComponentFramework.PropertyHelper.SecurityValues | undefined;
type: string;
}

export class MockDateTimeProperty implements ComponentFramework.PropertyTypes.DateTimeProperty {
constructor(raw?: Date) {
if (raw) this.raw = raw;
}
raw: Date;
attributes?: ComponentFramework.PropertyHelper.FieldPropertyMetadata.DateTimeMetadata | undefined;
error: boolean;
errorMessage: string;
formatted?: string | undefined;
security?: ComponentFramework.PropertyHelper.SecurityValues | undefined;
type: string;
}

export declare type IEventBag = Record<string, () => void>;
Loading
Loading