Граф коммитов

23 Коммитов

Автор SHA1 Сообщение Дата
meetikasharma cb729fce1d
Support Svg images as background for WinUI3 renderer (#8911)
* Initial commit for supporting svg background images

* Fixes for svg images as url and data

* Add Rasterize size of svg image on background thread

* Call TileControl::LoadImageBrush once svg size is calculated on background thread

* Addressed comments

* Support for svg xml in the data scheme for background images

* Addressed comments

* Handle base64 svg data scheme for background image and add sample payload

* Updated IsSvgImage check and addressed comments

* Clean up code

* Updated IsSvgImage check
2024-05-16 00:21:06 +00:00
Paul Campbell b38eaf0390
Host old content from messagecardplayground on ac.io (#8866) 2024-04-04 11:40:13 -07:00
anna-dingler bcbf258971
[Designer] Hide calendar picker when the width is less than 350px (#8518)
* Designer: hide calendar when the screen is less than 350px wide

* Update css

* Fix spacing

* Fix formatting
2023-05-25 10:19:20 -07:00
Ardlan Khalili 33a439fa78
Mobile support for 1.6 Loop component (#8507)
* Mobile support for 1.6

* revert global and dotnet changes

* Add Loop keys to CardElementType AdaptiveCardSchemaKey

* add MetaData and WebUrl to enums

* set global var version for adaptive card

* remove metadata as card element type

* remove metadata as card element type

* fix C++ string

* add url for test

* fix 1.6 tests

---------

Co-authored-by: Ardy Khalili <ardykhalili@microsoft.com>
Co-authored-by: Joseph Woo <Joseph.Woo@microsoft.com>
2023-05-23 13:49:01 -07:00
SuryanshPrabhatMSFT 459ede492b
AC 1.6 Schema Update for Dynamic Typeahead and Inline-Edit Features (#8495)
* update schema v1.6 to incorporate dynamic typeahead and inline edit features

* add count and skip property to choices.data

* fix formatting

* make appropriate changes for the website

* indicate supported platform in description

---------

Co-authored-by: SuryanshPrabhat <suryanshprabhat@outlook.com>
Co-authored-by: anna-dingler <98650930+anna-dingler@users.noreply.github.com>
2023-05-18 17:46:26 +00:00
anna-dingler 9caaa7334a
[UWP] Add role property to actions (#8337)
* WIP: adding role to actions - UWP

* Remove link button class

* switch to actionRole

* Fix formatting

* Unit test updates

* Formatting

* Update everything bagel and winui3
2023-03-08 09:58:53 -08:00
anna-dingler 0d0b499a6b
Add role property to actions - JS (#8336) 2023-03-07 13:49:42 -08:00
jykukrej d8897133f7
dynamic typeahead in iOS AC SDK (#8264)
* typeahead feature changes

* updating

* fixing test

* fixing interaction testd

* fixing pipeline failure

* clang error

* resolving comments

* resolving feedback

* fixing test cases

* clang fix

* clang fix

* fixing Ui tests

* fixing uitests

* keyboard fix

* fixing clang errors

* clean up

* adding design document

---------

Co-authored-by: Jyoti Kukreja <jyotikukreja@Jyotis-MacBook-Pro.local>
2023-02-28 15:06:49 +05:30
Suryansh 71a0ff8fd0
JS SDK - Dynamic Typeahead in Input.ChoiceSet (#8267)
Introduces Dynamic Typeahead support in Input.ChoiceSet:

- Supported in v1.6.

- Added `choices.data` property to Input.ChoiceSet schema.

- Uses `AdaptiveApplet` fetch dynamic choices from backend via `ChannelAdapter`.

- Made changes in SDK-Host communication code in `AdaptiveApplet` to allow different types of requests, categorized as a `UniversalAction`.

- UI made from scratch to allow customizability via CSS as per the dev's needs.

- As user types, the dropdown will be populated with choices and dynamic choices will be loaded when the request is done.

- Added debounce time to limit unnecessary requests. It can be set via host config.

- Dropdown list is scrollable.

- Matched part shows in bold in the choice text.

- Choice highlighted on hover/focus.

- Loading indicator when choices are being fetched.

- Error indicator when something goes wrong in fetching choices. 

- Added sample payload.
2023-02-23 09:32:12 +00:00
Joseph Woo 1239e4dd6c
added forceLoad option for image (#8260)
* added forceLoad option for image

* updated json

* refactored changes & added reset method
2023-01-28 01:37:55 +00:00
anna-dingler 1c9d4f852f
[JS Renderer] Vertical Carousel (#8242)
* WIP: Vertical carousel

* WIP: style changes

* Finalize widget styling

* Update for RTL and fix typo

* Remove samples

* Update widget styling

* Resolve comments and update styling

* Switch to heightInPixels

* Move to applyRTL
2023-01-26 16:58:53 -08:00
anna-dingler f594b87b51
[JS Renderer] Add loop property to carousel (#8259)
* Add loop property to carousel

* Fix spacing
2023-01-26 14:09:11 -08:00
baton17 0c8d8ec181
RevealOnHover for Inputs (#8180)
* inputStyle:ReadWrite changes

* Fixing wordings in inputInlineEditability.md file

Co-authored-by: anna-dingler <98650930+anna-dingler@users.noreply.github.com>

* Updating wordings inline edit read me file from suggestions

* adding inline edit implemenatation

* update version on input style property

* restructuring event handling for readWrite input style

* moving input event enum to enums file

* refactoring code and using css combinators for input styling

* updating inputStyle allowed value from readWrite to revealOnHover

* refactored code and css for revealOnHover support in Inputs

* removing unused event type from enums file

* code cleaup for better readability

* updating updateinputvisibilty method

* reverting changes from utils.ts

* removing extra comments and lines

* adding sample json and fixing on focus leave behavior on inputs

* using enum of inpit event type for revealOnHover support

* Updating documentation for mobile experience

* adding comments to new method in cardElement class

Co-authored-by: anna-dingler <98650930+anna-dingler@users.noreply.github.com>
2023-01-25 09:17:36 +00:00
baton17 1defd19603
Snsajal/label position (#8143)
* introducing input label position

* fixing identation in adaptive cards json file

* adding inline label views for all inputs

* fixing image file extensions in md file

* fixing spacing issues in adaptive card schema json file

* fixing one identation issue in adaptive card json schema file

* Updating description of inline view

* adding labelWidth schema

* adding string type to label width property

* fixing identation issue in adaptiveCard json file

* adding implementation of labelPosition and labelWidth property

* Correcting schema version of new label properties

* fixing error strings and label host config property names

* adding input label position samples

* Updating description for input label position

* removing extra line

* fix format of width member in input label host config

* remvoing v1_6 schema changes

Co-authored-by: anna-dingler <98650930+anna-dingler@users.noreply.github.com>
2023-01-11 12:30:12 +05:30
Joseph Woo 3790b9d156
stacked imageset (#8129)
* stacked imageset

* updated formatting style
2022-12-12 19:46:23 +00:00
anna-dingler 964ac35be5
[Samples] Add headings to sample cards (#8045)
* Add headings to samples mentioned by accessibility team

* Add headings to v1.5 samples

* Remove duplicates

* Move remaining samples to v1.5

* [Samples]Update test apps samples (#8052)

* WIP: update project files for samples

* Update 1.5 references

* Disable scneario testing for .net

* Fix android visualizer (#8062)

* Resolve PR comments
2022-11-21 07:28:19 -08:00
anna-dingler 62dd146aa4
[Samples] Remove duplicate scenarios and update properties (#8010)
* Update scenarios

* Update templated scenarios

* Ran formatter on scenario cards

* Resolve PR comments

* Fix sample apps

* Resolve ui-testapp error

* Update ui test

* Fix formatting

* Ensure TextBlock has wrap property and resolve PR comments

* [Samples] Update enum values for consistency (#8029)

* Change enums to lowercase

* minor fixes
2022-11-09 17:17:15 -08:00
anna-dingler dfb42ef011
Move Media.json to 1.6 and render cards with the proper version (#8015) 2022-11-09 16:36:06 -08:00
Joseph Woo 4162f852cf
Added initialPage property to Carousel and updated carousel behavior for stretch height property (#7954)
* updated carousel

* updated getter & setter

* updated carousel

* updated getter & setter

* updated error handling

* added sample cards

* updated for designer

* Update source/nodejs/adaptivecards/src/strings.ts

Co-authored-by: anna-dingler <98650930+anna-dingler@users.noreply.github.com>

Co-authored-by: anna-dingler <98650930+anna-dingler@users.noreply.github.com>
2022-10-11 16:58:59 +00:00
anna-dingler 7ecf70fdff
[JS Renderer & Designer] Update Carousel element to be allowed in any context (#7848)
* WIP: Allow multiple carousels in a card - designer portion

* Remove isCurrentPage

* removed the restriction (#7823)

* Jwoo/carousel change (#7824)

* removed the restriction

* enforces preventing nested carousel

* added new sample json

* Remove singleton logic (#7825)

* Jwoo/carousel change (#7837)

* removed the restriction

* enforces preventing nested carousel

* added new sample json

* added new sample cards

* Jwoo/carousel change (#7838)

* removed the restriction

* enforces preventing nested carousel

* added new sample json

* added new sample cards

* Revert "implemented header (#7728)"

This reverts commit a473bc77c0.

* fixed carousel page not being transparent

* Add null check to parentCarousel (#7845)

* fixed selection action event firing with swiper events (#7847)

* Jwoo/js/carousel showcard test card (#7858)

* added a new sample card

* updated & added samples

* deleted a sample

* removed a log file

* Updates for ui tests

* Fix formatting on samples

* Add templating scenarios

* Move templating scenarios

* Remove top level container from sample

Co-authored-by: Joseph Woo <Joseph.Woo@microsoft.com>
2022-09-20 11:12:37 -07:00
Joseph Woo a473bc77c0
implemented header (#7728)
* implemented footer

* updated according to the spec

* fixed rtl

* addressed pr comment
2022-08-25 22:17:40 +00:00
Carlos Zamora a69835ee3e
Add 'altText' to all sample cards (#7102)
Ensures `"altText"` is defined for all sample cards located in the `samples` folder. This includes template and non-template cards.

Closes #6424
Closes #6421
2022-03-12 20:30:04 +00:00
almedina-ms 65de1ad5af
Feature/carousel (#6724)
* Merge prototype branch (#6643)

* added sample

* Add serialization property

* sample update

* TBD property parsing working

* Parse CarouselPage object

* Code that adds containers

* added js

* [compilation fix]

* fixed issue

* Add todo list

* Fix extra spacing

* Show first element on start up

* implemented toDo items in toDo.md

* updated dot ui

* updated dot

* added a new scenario card

* Version not yet working

* Version almost working

* Hard code sample

* package changes

* Add more modifications that I saw on the interwebz

* fixed swiper

* Version where some stuff works but other stuff doesnt

* updated carousel render

* [update]

* Fix carousel

* Fix more stuff

* Version that works!! Yeah!!

* added walkaround for css loading issue

* added carousel cards to ui tests

* Fix more stuff

* Fix arrows to look better

* changed swiper properties from static class member variable to private member variable

* Fix static variables

* refactored

* fixed tab

* updated

Co-authored-by: nesalang <Joseph.Woo@microsoft.com>

* Initial design (#6644)

Co-authored-by: Paul Campbell (DEP) <paulcam@microsoft.com>

* Prototype clean up (#6651)

* Rename TBD to display

* Undo changes to site

* removed cns css from header.ejs and removed css from prototype 0 (#6653)

* Fix support for unsupported elements (#6654)

* Rename TBD to display

* Undo changes to site

* Rename unsupported elements list

* Fix parsing to handle nested items

* Upgrade sample

* Remove commented code

* Handle forbidden actions

* Update test to handle containers actions

* Add support for autoplay (#6665)

* Jwoo/feature/carousel 2 (#6673)

* updated for accessibility

* reverted Action.OpenURL changes

* [Carousel] Added Host Config options (#6675)

* updated for accessibility

* reverted Action.OpenURL changes

* added host config options

* fixed a11y tab index issue not being able to use space on pagination
bulltes

* Revert "fixed a11y tab index issue not being able to use space on pagination"

This reverts commit 16da572619.

* fixed a11y tab index issue not being able to use space on pagination bullets (#6677)

* updated for accessibility

* reverted Action.OpenURL changes

* added host config options

* fixed a11y tab index issue not being able to use space on pagination
bulltes

* updated it

* clean-up

* Fix pause autoplay on hover (#6671)

* Fix pause autoplay on hover

* Fix build break

* Fix package.json files (#6678)

* Add unit test for carousel page

* Remove swiper from root level import

* Add swiper as dev dependency

* Added carousel page id (#6690)

* added carousel page id upon action invocation

* review comments addressed

* [JS] Carousel schema changes (#6667)

* [JS] Carousel schema changes

* Pass `forbiddenTypes` instead of the empty set during fallback

* Remove `getPage[At|Count]()` as they conflict with mandatory `getItem[At|Count]()`

* [Styling] Update swiper style (#6664)

* Rename TBD to display

* Undo changes to site

* Rename unsupported elements list

* Fix parsing to handle nested items

* Upgrade sample

* Remove commented code

* Handle forbidden actions

* Update test to handle containers actions

* Improve css styles to have a better control

* Remove changes made to designer

* Fix cards not showing up

* Fix merge

* Fix css again

* Remove important flags

* Fix issue where keyboard navigation goes to other cards

* Fix sample

* Add semicolon

* Fix addeventlisteners and focus not firing (#6704)

* [JS] Pin newer jest dependency for `adaptivecards` (#6702)

Just a minor oversight - the version of `jest` I saw recommended to fix our problems consuming the `swiper` module ended
up being a pre-release version. `jest@^27` has since had a full release, so I just wanted to make sure we were requiring
it specifically. For what it's worth, we weren't actually *using* the prerelease version see
[here](2c3f853055/source/nodejs/adaptivecards/package-lock.json (L4485-L4486)),
but all the same it's better to declare our dependency against full-fledged release.

* Jwoo/feature/remove properties (#6706)

* updatred supported properties for Carousel & CarouselPages

* updated spacing in sample

* Updated package-lock.json after rebase

* Fix CSS story for now

* UI Tests for carousel (#6707)

* Update Tests for timer vs no timer

* Fix autoplay being instantiated without being required

* Fixes and some ui tests

* Fix another json file and add working tests

* Fix autoplay issue

* Add more tests

* Format json

* Fix PR comments

* Fix carousel again and fix test

* Refactor some code

* Add timeout (#6718)

* Carousel spec (#6698)

* Changed teams target version to 1.4

* fixed blog link to point to proper release

* Added horizontal carousel spec

Co-authored-by: Paul Campbell <paulcam@microsoft.com>

* Fix minor Css changes for carousel (#6722)

* Pull css changes to ui test app

* Make cards in carousel use as much space as possible

* [JS][Carousel] Fixed sudden jump of carousel page when focused (#6720)

* Updated RTL support for Carousel (#6723)

* [JS][Carousel] Fixed sudden jump of carousel page when focused

* [JS][Carousel] Updated RTL

* added a minor changes

* [JS][Carousel] Made RTL workw with navigation css changes

* change per review comments

* Revert "change per review comments"

This reverts commit 3ad698bb10.

* clean change commit

* [JS][Carousel] Updated SubmitAction (#6728)

* [JS][Carousel] Updated SubmitAction

* review coment

* updated hostconfig json

* Fix PR comments (#6727)

Co-authored-by: nesalang <Joseph.Woo@microsoft.com>

* [JS] Change how we produce/consume CSS (#6732)

* [JS] Change how we produce/consume CSS

See #6710 -- this is a partial solution

* Fix indenting

* Back out case-insensitivity in regex

* Remove `sass-loader` dependency

* Fixes for `adaptivecards-ui-testapp`

* Fix quoting on `generate-css` script

Fix build break on Windows?

* Fix up `adaptivecards-designer-app`

* Fix up `adaptivecards-react`

* Fix `webpack.config.js` formatting

Co-authored-by: nesalang <Joseph.Woo@microsoft.com>
Co-authored-by: Paul Campbell (DEP) <paulcam@microsoft.com>
Co-authored-by: J.P. Roca <jproca@microsoft.com>
2021-11-13 02:27:04 +00:00