@microsoft/teams.cards 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -0
- package/dist/actions/base.d.mts +89 -0
- package/dist/actions/base.d.ts +89 -0
- package/dist/actions/base.js +90 -0
- package/dist/actions/base.js.map +1 -0
- package/dist/actions/base.mjs +88 -0
- package/dist/actions/base.mjs.map +1 -0
- package/dist/actions/execute.d.mts +47 -0
- package/dist/actions/execute.d.ts +47 -0
- package/dist/actions/execute.js +43 -0
- package/dist/actions/execute.js.map +1 -0
- package/dist/actions/execute.mjs +41 -0
- package/dist/actions/execute.mjs.map +1 -0
- package/dist/actions/index.d.mts +31 -0
- package/dist/actions/index.d.ts +31 -0
- package/dist/actions/index.js +42 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/actions/index.mjs +7 -0
- package/dist/actions/index.mjs.map +1 -0
- package/dist/actions/open-url.d.mts +28 -0
- package/dist/actions/open-url.d.ts +28 -0
- package/dist/actions/open-url.js +28 -0
- package/dist/actions/open-url.js.map +1 -0
- package/dist/actions/open-url.mjs +26 -0
- package/dist/actions/open-url.mjs.map +1 -0
- package/dist/actions/show-card.d.mts +31 -0
- package/dist/actions/show-card.d.ts +31 -0
- package/dist/actions/show-card.js +28 -0
- package/dist/actions/show-card.js.map +1 -0
- package/dist/actions/show-card.mjs +26 -0
- package/dist/actions/show-card.mjs.map +1 -0
- package/dist/actions/submit/collab-stage.d.mts +74 -0
- package/dist/actions/submit/collab-stage.d.ts +74 -0
- package/dist/actions/submit/collab-stage.js +62 -0
- package/dist/actions/submit/collab-stage.js.map +1 -0
- package/dist/actions/submit/collab-stage.mjs +58 -0
- package/dist/actions/submit/collab-stage.mjs.map +1 -0
- package/dist/actions/submit/im-back.d.mts +40 -0
- package/dist/actions/submit/im-back.d.ts +40 -0
- package/dist/actions/submit/im-back.js +42 -0
- package/dist/actions/submit/im-back.js.map +1 -0
- package/dist/actions/submit/im-back.mjs +39 -0
- package/dist/actions/submit/im-back.mjs.map +1 -0
- package/dist/actions/submit/index.d.mts +10 -0
- package/dist/actions/submit/index.d.ts +10 -0
- package/dist/actions/submit/index.js +56 -0
- package/dist/actions/submit/index.js.map +1 -0
- package/dist/actions/submit/index.mjs +9 -0
- package/dist/actions/submit/index.mjs.map +1 -0
- package/dist/actions/submit/invoke.d.mts +40 -0
- package/dist/actions/submit/invoke.d.ts +40 -0
- package/dist/actions/submit/invoke.js +42 -0
- package/dist/actions/submit/invoke.js.map +1 -0
- package/dist/actions/submit/invoke.mjs +39 -0
- package/dist/actions/submit/invoke.mjs.map +1 -0
- package/dist/actions/submit/message-back.d.mts +60 -0
- package/dist/actions/submit/message-back.d.ts +60 -0
- package/dist/actions/submit/message-back.js +56 -0
- package/dist/actions/submit/message-back.js.map +1 -0
- package/dist/actions/submit/message-back.mjs +53 -0
- package/dist/actions/submit/message-back.mjs.map +1 -0
- package/dist/actions/submit/sign-in.d.mts +40 -0
- package/dist/actions/submit/sign-in.d.ts +40 -0
- package/dist/actions/submit/sign-in.js +42 -0
- package/dist/actions/submit/sign-in.js.map +1 -0
- package/dist/actions/submit/sign-in.mjs +39 -0
- package/dist/actions/submit/sign-in.mjs.map +1 -0
- package/dist/actions/submit/submit.d.mts +51 -0
- package/dist/actions/submit/submit.d.ts +51 -0
- package/dist/actions/submit/submit.js +38 -0
- package/dist/actions/submit/submit.js.map +1 -0
- package/dist/actions/submit/submit.mjs +36 -0
- package/dist/actions/submit/submit.mjs.map +1 -0
- package/dist/actions/submit/task-fetch.d.mts +40 -0
- package/dist/actions/submit/task-fetch.d.ts +40 -0
- package/dist/actions/submit/task-fetch.js +42 -0
- package/dist/actions/submit/task-fetch.js.map +1 -0
- package/dist/actions/submit/task-fetch.mjs +39 -0
- package/dist/actions/submit/task-fetch.mjs.map +1 -0
- package/dist/actions/toggle-visibility.d.mts +29 -0
- package/dist/actions/toggle-visibility.d.ts +29 -0
- package/dist/actions/toggle-visibility.js +29 -0
- package/dist/actions/toggle-visibility.js.map +1 -0
- package/dist/actions/toggle-visibility.mjs +27 -0
- package/dist/actions/toggle-visibility.mjs.map +1 -0
- package/dist/base.d.mts +31 -0
- package/dist/base.d.ts +31 -0
- package/dist/base.js +105 -0
- package/dist/base.js.map +1 -0
- package/dist/base.mjs +103 -0
- package/dist/base.mjs.map +1 -0
- package/dist/card.d.mts +31 -0
- package/dist/card.d.ts +31 -0
- package/dist/card.js +118 -0
- package/dist/card.js.map +1 -0
- package/dist/card.mjs +115 -0
- package/dist/card.mjs.map +1 -0
- package/dist/charts/color.d.mts +3 -0
- package/dist/charts/color.d.ts +3 -0
- package/dist/charts/color.js +4 -0
- package/dist/charts/color.js.map +1 -0
- package/dist/charts/color.mjs +3 -0
- package/dist/charts/color.mjs.map +1 -0
- package/dist/charts/donut.d.mts +31 -0
- package/dist/charts/donut.d.ts +31 -0
- package/dist/charts/donut.js +79 -0
- package/dist/charts/donut.js.map +1 -0
- package/dist/charts/donut.mjs +76 -0
- package/dist/charts/donut.mjs.map +1 -0
- package/dist/charts/index.d.mts +31 -0
- package/dist/charts/index.d.ts +31 -0
- package/dist/charts/index.js +28 -0
- package/dist/charts/index.js.map +1 -0
- package/dist/charts/index.mjs +5 -0
- package/dist/charts/index.mjs.map +1 -0
- package/dist/charts/line.d.mts +31 -0
- package/dist/charts/line.d.ts +31 -0
- package/dist/charts/line.js +97 -0
- package/dist/charts/line.js.map +1 -0
- package/dist/charts/line.mjs +93 -0
- package/dist/charts/line.mjs.map +1 -0
- package/dist/common/associated-inputs.d.mts +3 -0
- package/dist/common/associated-inputs.d.ts +3 -0
- package/dist/common/associated-inputs.js +4 -0
- package/dist/common/associated-inputs.js.map +1 -0
- package/dist/common/associated-inputs.mjs +3 -0
- package/dist/common/associated-inputs.mjs.map +1 -0
- package/dist/common/auth/auth-card-button.d.mts +50 -0
- package/dist/common/auth/auth-card-button.d.ts +50 -0
- package/dist/common/auth/auth-card-button.js +45 -0
- package/dist/common/auth/auth-card-button.js.map +1 -0
- package/dist/common/auth/auth-card-button.mjs +43 -0
- package/dist/common/auth/auth-card-button.mjs.map +1 -0
- package/dist/common/auth/auth.d.mts +52 -0
- package/dist/common/auth/auth.d.ts +52 -0
- package/dist/common/auth/auth.js +46 -0
- package/dist/common/auth/auth.js.map +1 -0
- package/dist/common/auth/auth.mjs +44 -0
- package/dist/common/auth/auth.mjs.map +1 -0
- package/dist/common/auth/index.d.mts +3 -0
- package/dist/common/auth/index.d.ts +3 -0
- package/dist/common/auth/index.js +28 -0
- package/dist/common/auth/index.js.map +1 -0
- package/dist/common/auth/index.mjs +5 -0
- package/dist/common/auth/index.mjs.map +1 -0
- package/dist/common/auth/token-exchange-resource.d.mts +37 -0
- package/dist/common/auth/token-exchange-resource.d.ts +37 -0
- package/dist/common/auth/token-exchange-resource.js +25 -0
- package/dist/common/auth/token-exchange-resource.js.map +1 -0
- package/dist/common/auth/token-exchange-resource.mjs +23 -0
- package/dist/common/auth/token-exchange-resource.mjs.map +1 -0
- package/dist/common/color.d.mts +3 -0
- package/dist/common/color.d.ts +3 -0
- package/dist/common/color.js +4 -0
- package/dist/common/color.js.map +1 -0
- package/dist/common/color.mjs +3 -0
- package/dist/common/color.mjs.map +1 -0
- package/dist/common/font.d.mts +5 -0
- package/dist/common/font.d.ts +5 -0
- package/dist/common/font.js +4 -0
- package/dist/common/font.js.map +1 -0
- package/dist/common/font.mjs +3 -0
- package/dist/common/font.mjs.map +1 -0
- package/dist/common/horizontal-alignment.d.mts +6 -0
- package/dist/common/horizontal-alignment.d.ts +6 -0
- package/dist/common/horizontal-alignment.js +4 -0
- package/dist/common/horizontal-alignment.js.map +1 -0
- package/dist/common/horizontal-alignment.mjs +3 -0
- package/dist/common/horizontal-alignment.mjs.map +1 -0
- package/dist/common/index.d.mts +15 -0
- package/dist/common/index.d.ts +15 -0
- package/dist/common/index.js +84 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/index.mjs +13 -0
- package/dist/common/index.mjs.map +1 -0
- package/dist/common/refresh.d.mts +23 -0
- package/dist/common/refresh.d.ts +23 -0
- package/dist/common/refresh.js +4 -0
- package/dist/common/refresh.js.map +1 -0
- package/dist/common/refresh.mjs +3 -0
- package/dist/common/refresh.mjs.map +1 -0
- package/dist/common/spacing.d.mts +6 -0
- package/dist/common/spacing.d.ts +6 -0
- package/dist/common/spacing.js +4 -0
- package/dist/common/spacing.js.map +1 -0
- package/dist/common/spacing.mjs +3 -0
- package/dist/common/spacing.mjs.map +1 -0
- package/dist/common/tab-info.d.mts +23 -0
- package/dist/common/tab-info.d.ts +23 -0
- package/dist/common/tab-info.js +4 -0
- package/dist/common/tab-info.js.map +1 -0
- package/dist/common/tab-info.mjs +3 -0
- package/dist/common/tab-info.mjs.map +1 -0
- package/dist/common/target-element.d.mts +16 -0
- package/dist/common/target-element.d.ts +16 -0
- package/dist/common/target-element.js +4 -0
- package/dist/common/target-element.js.map +1 -0
- package/dist/common/target-element.mjs +3 -0
- package/dist/common/target-element.mjs.map +1 -0
- package/dist/common/target-width.d.mts +9 -0
- package/dist/common/target-width.d.ts +9 -0
- package/dist/common/target-width.js +4 -0
- package/dist/common/target-width.js.map +1 -0
- package/dist/common/target-width.mjs +3 -0
- package/dist/common/target-width.mjs.map +1 -0
- package/dist/common/vertical-alignment.d.mts +6 -0
- package/dist/common/vertical-alignment.d.ts +6 -0
- package/dist/common/vertical-alignment.js +4 -0
- package/dist/common/vertical-alignment.js.map +1 -0
- package/dist/common/vertical-alignment.mjs +3 -0
- package/dist/common/vertical-alignment.mjs.map +1 -0
- package/dist/containers/action-set.d.mts +31 -0
- package/dist/containers/action-set.d.ts +31 -0
- package/dist/containers/action-set.js +28 -0
- package/dist/containers/action-set.js.map +1 -0
- package/dist/containers/action-set.mjs +26 -0
- package/dist/containers/action-set.mjs.map +1 -0
- package/dist/containers/base.d.mts +31 -0
- package/dist/containers/base.d.ts +31 -0
- package/dist/containers/base.js +68 -0
- package/dist/containers/base.js.map +1 -0
- package/dist/containers/base.mjs +66 -0
- package/dist/containers/base.mjs.map +1 -0
- package/dist/containers/carousel.d.mts +31 -0
- package/dist/containers/carousel.d.ts +31 -0
- package/dist/containers/carousel.js +158 -0
- package/dist/containers/carousel.js.map +1 -0
- package/dist/containers/carousel.mjs +155 -0
- package/dist/containers/carousel.mjs.map +1 -0
- package/dist/containers/column-set.d.mts +31 -0
- package/dist/containers/column-set.d.ts +31 -0
- package/dist/containers/column-set.js +44 -0
- package/dist/containers/column-set.js.map +1 -0
- package/dist/containers/column-set.mjs +42 -0
- package/dist/containers/column-set.mjs.map +1 -0
- package/dist/containers/column.d.mts +31 -0
- package/dist/containers/column.d.ts +31 -0
- package/dist/containers/column.js +60 -0
- package/dist/containers/column.js.map +1 -0
- package/dist/containers/column.mjs +58 -0
- package/dist/containers/column.mjs.map +1 -0
- package/dist/containers/container.d.mts +31 -0
- package/dist/containers/container.d.ts +31 -0
- package/dist/containers/container.js +52 -0
- package/dist/containers/container.js.map +1 -0
- package/dist/containers/container.mjs +50 -0
- package/dist/containers/container.mjs.map +1 -0
- package/dist/containers/fact-set.d.mts +31 -0
- package/dist/containers/fact-set.d.ts +31 -0
- package/dist/containers/fact-set.js +43 -0
- package/dist/containers/fact-set.js.map +1 -0
- package/dist/containers/fact-set.mjs +40 -0
- package/dist/containers/fact-set.mjs.map +1 -0
- package/dist/containers/image-set.d.mts +31 -0
- package/dist/containers/image-set.d.ts +31 -0
- package/dist/containers/image-set.js +46 -0
- package/dist/containers/image-set.js.map +1 -0
- package/dist/containers/image-set.mjs +44 -0
- package/dist/containers/image-set.mjs.map +1 -0
- package/dist/containers/index.d.mts +31 -0
- package/dist/containers/index.d.ts +31 -0
- package/dist/containers/index.js +56 -0
- package/dist/containers/index.js.map +1 -0
- package/dist/containers/index.mjs +9 -0
- package/dist/containers/index.mjs.map +1 -0
- package/dist/element.d.mts +31 -0
- package/dist/element.d.ts +31 -0
- package/dist/element.js +4 -0
- package/dist/element.js.map +1 -0
- package/dist/element.mjs +3 -0
- package/dist/element.mjs.map +1 -0
- package/dist/index.d.mts +31 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +70 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -0
- package/dist/inputs/base.d.mts +31 -0
- package/dist/inputs/base.d.ts +31 -0
- package/dist/inputs/base.js +63 -0
- package/dist/inputs/base.js.map +1 -0
- package/dist/inputs/base.mjs +61 -0
- package/dist/inputs/base.mjs.map +1 -0
- package/dist/inputs/choice-set.d.mts +31 -0
- package/dist/inputs/choice-set.d.ts +31 -0
- package/dist/inputs/choice-set.js +121 -0
- package/dist/inputs/choice-set.js.map +1 -0
- package/dist/inputs/choice-set.mjs +117 -0
- package/dist/inputs/choice-set.mjs.map +1 -0
- package/dist/inputs/date.d.mts +31 -0
- package/dist/inputs/date.d.ts +31 -0
- package/dist/inputs/date.js +52 -0
- package/dist/inputs/date.js.map +1 -0
- package/dist/inputs/date.mjs +50 -0
- package/dist/inputs/date.mjs.map +1 -0
- package/dist/inputs/index.d.mts +31 -0
- package/dist/inputs/index.d.ts +31 -0
- package/dist/inputs/index.js +49 -0
- package/dist/inputs/index.js.map +1 -0
- package/dist/inputs/index.mjs +8 -0
- package/dist/inputs/index.mjs.map +1 -0
- package/dist/inputs/number.d.mts +31 -0
- package/dist/inputs/number.d.ts +31 -0
- package/dist/inputs/number.js +52 -0
- package/dist/inputs/number.js.map +1 -0
- package/dist/inputs/number.mjs +50 -0
- package/dist/inputs/number.mjs.map +1 -0
- package/dist/inputs/text.d.mts +31 -0
- package/dist/inputs/text.d.ts +31 -0
- package/dist/inputs/text.js +76 -0
- package/dist/inputs/text.js.map +1 -0
- package/dist/inputs/text.mjs +74 -0
- package/dist/inputs/text.mjs.map +1 -0
- package/dist/inputs/time.d.mts +31 -0
- package/dist/inputs/time.d.ts +31 -0
- package/dist/inputs/time.js +52 -0
- package/dist/inputs/time.js.map +1 -0
- package/dist/inputs/time.mjs +50 -0
- package/dist/inputs/time.mjs.map +1 -0
- package/dist/inputs/toggle.d.mts +31 -0
- package/dist/inputs/toggle.d.ts +31 -0
- package/dist/inputs/toggle.js +57 -0
- package/dist/inputs/toggle.js.map +1 -0
- package/dist/inputs/toggle.mjs +55 -0
- package/dist/inputs/toggle.mjs.map +1 -0
- package/dist/layouts/area-grid.d.mts +133 -0
- package/dist/layouts/area-grid.d.ts +133 -0
- package/dist/layouts/area-grid.js +113 -0
- package/dist/layouts/area-grid.js.map +1 -0
- package/dist/layouts/area-grid.mjs +110 -0
- package/dist/layouts/area-grid.mjs.map +1 -0
- package/dist/layouts/flow.d.mts +119 -0
- package/dist/layouts/flow.d.ts +119 -0
- package/dist/layouts/flow.js +96 -0
- package/dist/layouts/flow.js.map +1 -0
- package/dist/layouts/flow.mjs +94 -0
- package/dist/layouts/flow.mjs.map +1 -0
- package/dist/layouts/index.d.mts +14 -0
- package/dist/layouts/index.d.ts +14 -0
- package/dist/layouts/index.js +28 -0
- package/dist/layouts/index.js.map +1 -0
- package/dist/layouts/index.mjs +5 -0
- package/dist/layouts/index.mjs.map +1 -0
- package/dist/layouts/stack.d.mts +28 -0
- package/dist/layouts/stack.d.ts +28 -0
- package/dist/layouts/stack.js +24 -0
- package/dist/layouts/stack.js.map +1 -0
- package/dist/layouts/stack.mjs +22 -0
- package/dist/layouts/stack.mjs.map +1 -0
- package/dist/medias/background-image.d.mts +56 -0
- package/dist/medias/background-image.d.ts +56 -0
- package/dist/medias/background-image.js +49 -0
- package/dist/medias/background-image.js.map +1 -0
- package/dist/medias/background-image.mjs +47 -0
- package/dist/medias/background-image.mjs.map +1 -0
- package/dist/medias/badge.d.mts +31 -0
- package/dist/medias/badge.d.ts +31 -0
- package/dist/medias/badge.js +84 -0
- package/dist/medias/badge.js.map +1 -0
- package/dist/medias/badge.mjs +82 -0
- package/dist/medias/badge.mjs.map +1 -0
- package/dist/medias/code-block.d.mts +31 -0
- package/dist/medias/code-block.d.ts +31 -0
- package/dist/medias/code-block.js +43 -0
- package/dist/medias/code-block.js.map +1 -0
- package/dist/medias/code-block.mjs +41 -0
- package/dist/medias/code-block.mjs.map +1 -0
- package/dist/medias/icon.d.mts +2288 -0
- package/dist/medias/icon.d.ts +2288 -0
- package/dist/medias/icon.js +56 -0
- package/dist/medias/icon.js.map +1 -0
- package/dist/medias/icon.mjs +54 -0
- package/dist/medias/icon.mjs.map +1 -0
- package/dist/medias/image.d.mts +31 -0
- package/dist/medias/image.d.ts +31 -0
- package/dist/medias/image.js +80 -0
- package/dist/medias/image.js.map +1 -0
- package/dist/medias/image.mjs +78 -0
- package/dist/medias/image.mjs.map +1 -0
- package/dist/medias/index.d.mts +31 -0
- package/dist/medias/index.d.ts +31 -0
- package/dist/medias/index.js +84 -0
- package/dist/medias/index.js.map +1 -0
- package/dist/medias/index.mjs +13 -0
- package/dist/medias/index.mjs.map +1 -0
- package/dist/medias/media.d.mts +31 -0
- package/dist/medias/media.d.ts +31 -0
- package/dist/medias/media.js +91 -0
- package/dist/medias/media.js.map +1 -0
- package/dist/medias/media.mjs +87 -0
- package/dist/medias/media.mjs.map +1 -0
- package/dist/medias/progress-bar.d.mts +31 -0
- package/dist/medias/progress-bar.d.ts +31 -0
- package/dist/medias/progress-bar.js +43 -0
- package/dist/medias/progress-bar.js.map +1 -0
- package/dist/medias/progress-bar.mjs +41 -0
- package/dist/medias/progress-bar.mjs.map +1 -0
- package/dist/medias/progress-ring.d.mts +31 -0
- package/dist/medias/progress-ring.d.ts +31 -0
- package/dist/medias/progress-ring.js +46 -0
- package/dist/medias/progress-ring.js.map +1 -0
- package/dist/medias/progress-ring.mjs +44 -0
- package/dist/medias/progress-ring.mjs.map +1 -0
- package/dist/medias/rich-text-block.d.mts +31 -0
- package/dist/medias/rich-text-block.d.ts +31 -0
- package/dist/medias/rich-text-block.js +33 -0
- package/dist/medias/rich-text-block.js.map +1 -0
- package/dist/medias/rich-text-block.mjs +31 -0
- package/dist/medias/rich-text-block.mjs.map +1 -0
- package/dist/medias/text-block.d.mts +31 -0
- package/dist/medias/text-block.d.ts +31 -0
- package/dist/medias/text-block.js +95 -0
- package/dist/medias/text-block.js.map +1 -0
- package/dist/medias/text-block.mjs +93 -0
- package/dist/medias/text-block.mjs.map +1 -0
- package/dist/medias/text-run.d.mts +31 -0
- package/dist/medias/text-run.d.ts +31 -0
- package/dist/medias/text-run.js +108 -0
- package/dist/medias/text-run.js.map +1 -0
- package/dist/medias/text-run.mjs +106 -0
- package/dist/medias/text-run.mjs.map +1 -0
- package/package.json +46 -0
package/dist/card.mjs
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
class Card {
|
|
2
|
+
type;
|
|
3
|
+
/**
|
|
4
|
+
* The Adaptive Card schema.
|
|
5
|
+
*/
|
|
6
|
+
$schema;
|
|
7
|
+
/**
|
|
8
|
+
* Schema version that this card requires. If a client is lower than this version, the fallbackText will be rendered. NOTE: Version is not required for cards within an Action.ShowCard. However, it is required for the top-level card.
|
|
9
|
+
*/
|
|
10
|
+
version;
|
|
11
|
+
/**
|
|
12
|
+
* Defines how the card can be refreshed by making a request to the target Bot.
|
|
13
|
+
*/
|
|
14
|
+
refresh;
|
|
15
|
+
/**
|
|
16
|
+
* Defines authentication information to enable on-behalf-of single sign on or just-in-time OAuth.
|
|
17
|
+
*/
|
|
18
|
+
authentication;
|
|
19
|
+
/**
|
|
20
|
+
* The card elements to show in the primary card region.
|
|
21
|
+
*/
|
|
22
|
+
body;
|
|
23
|
+
/**
|
|
24
|
+
* The Actions to show in the card’s action bar.
|
|
25
|
+
*/
|
|
26
|
+
actions;
|
|
27
|
+
/**
|
|
28
|
+
* An Action that will be invoked when the card is tapped or selected. Action.ShowCard is not supported.
|
|
29
|
+
*/
|
|
30
|
+
selectAction;
|
|
31
|
+
/**
|
|
32
|
+
* Text shown when the client doesn’t support the version specified (may contain markdown).
|
|
33
|
+
*/
|
|
34
|
+
fallbackText;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the background image of the card.
|
|
37
|
+
*/
|
|
38
|
+
backgroundImage;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the minimum height of the card.
|
|
41
|
+
*/
|
|
42
|
+
minHeight;
|
|
43
|
+
/**
|
|
44
|
+
* When true content in this Adaptive Card should be presented right to left. When ‘false’ content in this Adaptive Card should be presented left to right. If unset, the default platform behavior will apply.
|
|
45
|
+
*/
|
|
46
|
+
rtl;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies what should be spoken for this entire card. This is simple text or SSML fragment.
|
|
49
|
+
*/
|
|
50
|
+
speak;
|
|
51
|
+
/**
|
|
52
|
+
* The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions.
|
|
53
|
+
*/
|
|
54
|
+
lang;
|
|
55
|
+
/**
|
|
56
|
+
* Defines how the content should be aligned vertically within the container. Only relevant for fixed-height cards, or cards with a minHeight specified.
|
|
57
|
+
*/
|
|
58
|
+
verticalContentAlignment;
|
|
59
|
+
/**
|
|
60
|
+
* Extra Teams data for the card.
|
|
61
|
+
*/
|
|
62
|
+
msteams;
|
|
63
|
+
constructor(...body) {
|
|
64
|
+
this.type = "AdaptiveCard";
|
|
65
|
+
this.body = body;
|
|
66
|
+
this.$schema = "http://adaptivecards.io/schemas/adaptive-card.json";
|
|
67
|
+
this.version = "1.6";
|
|
68
|
+
}
|
|
69
|
+
withOptions(value) {
|
|
70
|
+
Object.assign(this, value);
|
|
71
|
+
return this;
|
|
72
|
+
}
|
|
73
|
+
withSchema(value) {
|
|
74
|
+
this.$schema = value;
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
withVersion(value) {
|
|
78
|
+
this.version = value;
|
|
79
|
+
return this;
|
|
80
|
+
}
|
|
81
|
+
withRefresh(value) {
|
|
82
|
+
this.refresh = value;
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
withAuth(value) {
|
|
86
|
+
this.authentication = value;
|
|
87
|
+
return this;
|
|
88
|
+
}
|
|
89
|
+
withSelectedAction(value) {
|
|
90
|
+
this.selectAction = value;
|
|
91
|
+
return this;
|
|
92
|
+
}
|
|
93
|
+
withBody(...value) {
|
|
94
|
+
this.body = value;
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
addCards(...value) {
|
|
98
|
+
this.body.push(...value);
|
|
99
|
+
return this;
|
|
100
|
+
}
|
|
101
|
+
addActions(...value) {
|
|
102
|
+
if (!this.actions) {
|
|
103
|
+
this.actions = [];
|
|
104
|
+
}
|
|
105
|
+
this.actions.push(...value);
|
|
106
|
+
return this;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function isCard(value) {
|
|
110
|
+
return typeof value === "object" && value.type === "AdaptiveCard";
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export { Card, isCard };
|
|
114
|
+
//# sourceMappingURL=card.mjs.map
|
|
115
|
+
//# sourceMappingURL=card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/card.ts"],"names":[],"mappings":"AAwHO,MAAM,IAAsB,CAAA;AAAA,EACjC,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,cAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,wBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA,EAEA,eAAe,IAAiB,EAAA;AAC9B,IAAA,IAAA,CAAK,IAAO,GAAA,cAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AACZ,IAAA,IAAA,CAAK,OAAU,GAAA,oDAAA;AACf,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AAAA;AACjB,EAEA,YAAY,KAAoB,EAAA;AAC9B,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAA8D,EAAA;AACxE,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAgB,EAAA;AAC1B,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAAc,EAAA;AACrB,IAAA,IAAA,CAAK,cAAiB,GAAA,KAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,mBAAmB,KAAqB,EAAA;AACtC,IAAA,IAAA,CAAK,YAAe,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAkB,EAAA;AAC5B,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,IAAA,CAAK,IAAK,CAAA,GAAG,KAAK,CAAA;AACvB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAiB,EAAA;AAC7B,IAAI,IAAA,CAAC,KAAK,OAAS,EAAA;AACjB,MAAA,IAAA,CAAK,UAAU,EAAC;AAAA;AAGlB,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AAEX;AAUO,SAAS,OAAO,KAA4B,EAAA;AACjD,EAAA,OAAO,OAAO,KAAA,KAAU,QAAY,IAAA,KAAA,CAAM,IAAS,KAAA,cAAA;AACrD","file":"card.mjs","sourcesContent":["import { Action, SelectAction } from './actions';\nimport { IAuth, Refresh, VerticalAlignment } from './common';\nimport { IBackgroundImage } from './medias';\nimport { Element } from './element';\n\n/**\n * An Adaptive Card, containing a free-form body of card elements, and an optional set of actions.\n */\nexport interface ICard {\n type: 'AdaptiveCard';\n\n /**\n * The Adaptive Card schema.\n */\n $schema?: string;\n\n /**\n * Schema version that this card requires. If a client is lower than this version, the fallbackText will be rendered. NOTE: Version is not required for cards within an Action.ShowCard. However, it is required for the top-level card.\n */\n version: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6';\n\n /**\n * Defines how the card can be refreshed by making a request to the target Bot.\n */\n refresh?: Refresh;\n\n /**\n * Defines authentication information to enable on-behalf-of single sign on or just-in-time OAuth.\n */\n authentication?: IAuth;\n\n /**\n * The card elements to show in the primary card region.\n */\n body?: Element[];\n\n /**\n * The Actions to show in the card’s action bar.\n */\n actions?: Action[];\n\n /**\n * An Action that will be invoked when the card is tapped or selected. Action.ShowCard is not supported.\n */\n selectAction?: SelectAction;\n\n /**\n * Text shown when the client doesn’t support the version specified (may contain markdown).\n */\n fallbackText?: string;\n\n /**\n * Specifies the background image of the card.\n */\n backgroundImage?: IBackgroundImage | string;\n\n /**\n * Specifies the minimum height of the card.\n */\n minHeight?: string;\n\n /**\n * When true content in this Adaptive Card should be presented right to left. When ‘false’ content in this Adaptive Card should be presented left to right. If unset, the default platform behavior will apply.\n */\n rtl?: boolean;\n\n /**\n * Specifies what should be spoken for this entire card. This is simple text or SSML fragment.\n */\n speak?: string;\n\n /**\n * The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions.\n */\n lang?: string;\n\n /**\n * Defines how the content should be aligned vertically within the container. Only relevant for fixed-height cards, or cards with a minHeight specified.\n */\n verticalContentAlignment?: VerticalAlignment;\n\n /**\n * Extra Teams data for the card.\n */\n msteams?: MSTeamsCardInfo;\n}\n\n/**\n * Card metadata for Microsoft Teams.\n */\nexport type MSTeamsCardInfo = {\n /**\n * Expands the card to take up the full width of the message.\n */\n width?: 'Full';\n\n /**\n * Conditional visibility of elements on different viewports.\n */\n targetWidth?:\n | 'veryNarrow'\n | 'narrow'\n | 'standard'\n | 'wide'\n | 'atLeast:veryNarrow'\n | 'atLeast:narrow'\n | 'atLeast:standard'\n | 'atLeast:wide'\n | 'atMost:veryNarrow'\n | 'atMost:narrow'\n | 'atMost:standard'\n | 'atMost:wide';\n};\n\nexport type CardOptions = Omit<Partial<ICard>, 'body' | 'type' | 'msteams'> &\n Partial<MSTeamsCardInfo>;\n\n/**\n * An Adaptive Card, containing a free-form body of card elements, and an optional set of actions.\n */\nexport class Card implements ICard {\n type: 'AdaptiveCard';\n\n /**\n * The Adaptive Card schema.\n */\n $schema: string;\n\n /**\n * Schema version that this card requires. If a client is lower than this version, the fallbackText will be rendered. NOTE: Version is not required for cards within an Action.ShowCard. However, it is required for the top-level card.\n */\n version: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6';\n\n /**\n * Defines how the card can be refreshed by making a request to the target Bot.\n */\n refresh?: Refresh;\n\n /**\n * Defines authentication information to enable on-behalf-of single sign on or just-in-time OAuth.\n */\n authentication?: IAuth;\n\n /**\n * The card elements to show in the primary card region.\n */\n body: Element[];\n\n /**\n * The Actions to show in the card’s action bar.\n */\n actions?: Action[];\n\n /**\n * An Action that will be invoked when the card is tapped or selected. Action.ShowCard is not supported.\n */\n selectAction?: SelectAction;\n\n /**\n * Text shown when the client doesn’t support the version specified (may contain markdown).\n */\n fallbackText?: string;\n\n /**\n * Specifies the background image of the card.\n */\n backgroundImage?: IBackgroundImage | string;\n\n /**\n * Specifies the minimum height of the card.\n */\n minHeight?: string;\n\n /**\n * When true content in this Adaptive Card should be presented right to left. When ‘false’ content in this Adaptive Card should be presented left to right. If unset, the default platform behavior will apply.\n */\n rtl?: boolean;\n\n /**\n * Specifies what should be spoken for this entire card. This is simple text or SSML fragment.\n */\n speak?: string;\n\n /**\n * The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions.\n */\n lang?: string;\n\n /**\n * Defines how the content should be aligned vertically within the container. Only relevant for fixed-height cards, or cards with a minHeight specified.\n */\n verticalContentAlignment?: VerticalAlignment;\n\n /**\n * Extra Teams data for the card.\n */\n msteams?: MSTeamsCardInfo;\n\n constructor(...body: Element[]) {\n this.type = 'AdaptiveCard';\n this.body = body;\n this.$schema = 'http://adaptivecards.io/schemas/adaptive-card.json';\n this.version = '1.6';\n }\n\n withOptions(value: CardOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withSchema(value: string) {\n this.$schema = value;\n return this;\n }\n\n withVersion(value: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6') {\n this.version = value;\n return this;\n }\n\n withRefresh(value: Refresh) {\n this.refresh = value;\n return this;\n }\n\n withAuth(value: IAuth) {\n this.authentication = value;\n return this;\n }\n\n withSelectedAction(value: SelectAction) {\n this.selectAction = value;\n return this;\n }\n\n withBody(...value: Element[]) {\n this.body = value;\n return this;\n }\n\n addCards(...value: Element[]) {\n this.body.push(...value);\n return this;\n }\n\n addActions(...value: Action[]) {\n if (!this.actions) {\n this.actions = [];\n }\n\n this.actions.push(...value);\n return this;\n }\n}\n\n/**\n * @hidden\n * @internal\n *\n * Type guard to check if a value is a Card.\n * @param value value to compare\n * @returns true if value is type of Card\n */\nexport function isCard(value: any): value is ICard {\n return typeof value === 'object' && value.type === 'AdaptiveCard';\n}\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
type ChartColor = 'good' | 'warning' | 'attention' | 'neutral' | 'categoricalRed' | 'categoricalPurple' | 'categoricalLavender' | 'categoricalBlue' | 'categoricalLightBlue' | 'categoricalTeal' | 'categoricalGreen' | 'categoricalLime' | 'categoricalMarigold' | 'sequential1' | 'sequential2' | 'sequential3' | 'sequential4' | 'sequential5' | 'sequential6' | 'sequential7' | 'sequential8' | 'divergingBlue' | 'divergingLightBlue' | 'divergingCyan' | 'divergingTeal' | 'divergingYellow' | 'divergingPeach' | 'divergingLightRed' | 'divergingRed' | 'divergingMaroon' | 'divergingGray';
|
|
2
|
+
|
|
3
|
+
export type { ChartColor };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
type ChartColor = 'good' | 'warning' | 'attention' | 'neutral' | 'categoricalRed' | 'categoricalPurple' | 'categoricalLavender' | 'categoricalBlue' | 'categoricalLightBlue' | 'categoricalTeal' | 'categoricalGreen' | 'categoricalLime' | 'categoricalMarigold' | 'sequential1' | 'sequential2' | 'sequential3' | 'sequential4' | 'sequential5' | 'sequential6' | 'sequential7' | 'sequential8' | 'divergingBlue' | 'divergingLightBlue' | 'divergingCyan' | 'divergingTeal' | 'divergingYellow' | 'divergingPeach' | 'divergingLightRed' | 'divergingRed' | 'divergingMaroon' | 'divergingGray';
|
|
2
|
+
|
|
3
|
+
export type { ChartColor };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"color.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"color.mjs"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { H as DonutChart, L as DonutChartData, K as DonutChartDataOptions, G as DonutChartOptions, F as IDonutChart, J as IDonutChartData } from '../medias/icon.mjs';
|
|
2
|
+
import './color.mjs';
|
|
3
|
+
import '../actions/execute.mjs';
|
|
4
|
+
import '../common/associated-inputs.mjs';
|
|
5
|
+
import '../actions/base.mjs';
|
|
6
|
+
import '../actions/open-url.mjs';
|
|
7
|
+
import '../common/vertical-alignment.mjs';
|
|
8
|
+
import '../common/refresh.mjs';
|
|
9
|
+
import '../common/auth/auth.mjs';
|
|
10
|
+
import '../common/auth/auth-card-button.mjs';
|
|
11
|
+
import '../common/auth/token-exchange-resource.mjs';
|
|
12
|
+
import '../common/horizontal-alignment.mjs';
|
|
13
|
+
import '../common/spacing.mjs';
|
|
14
|
+
import '../common/target-width.mjs';
|
|
15
|
+
import '../layouts/index.mjs';
|
|
16
|
+
import '../layouts/area-grid.mjs';
|
|
17
|
+
import '../layouts/flow.mjs';
|
|
18
|
+
import '../layouts/stack.mjs';
|
|
19
|
+
import '../medias/background-image.mjs';
|
|
20
|
+
import '../common/color.mjs';
|
|
21
|
+
import '../common/font.mjs';
|
|
22
|
+
import '../actions/submit/submit.mjs';
|
|
23
|
+
import '../actions/submit/im-back.mjs';
|
|
24
|
+
import '../actions/submit/invoke.mjs';
|
|
25
|
+
import '../actions/submit/message-back.mjs';
|
|
26
|
+
import '../actions/submit/sign-in.mjs';
|
|
27
|
+
import '../actions/submit/task-fetch.mjs';
|
|
28
|
+
import '../actions/submit/collab-stage.mjs';
|
|
29
|
+
import '../common/tab-info.mjs';
|
|
30
|
+
import '../actions/toggle-visibility.mjs';
|
|
31
|
+
import '../common/target-element.mjs';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { H as DonutChart, L as DonutChartData, K as DonutChartDataOptions, G as DonutChartOptions, F as IDonutChart, J as IDonutChartData } from '../medias/icon.js';
|
|
2
|
+
import './color.js';
|
|
3
|
+
import '../actions/execute.js';
|
|
4
|
+
import '../common/associated-inputs.js';
|
|
5
|
+
import '../actions/base.js';
|
|
6
|
+
import '../actions/open-url.js';
|
|
7
|
+
import '../common/vertical-alignment.js';
|
|
8
|
+
import '../common/refresh.js';
|
|
9
|
+
import '../common/auth/auth.js';
|
|
10
|
+
import '../common/auth/auth-card-button.js';
|
|
11
|
+
import '../common/auth/token-exchange-resource.js';
|
|
12
|
+
import '../common/horizontal-alignment.js';
|
|
13
|
+
import '../common/spacing.js';
|
|
14
|
+
import '../common/target-width.js';
|
|
15
|
+
import '../layouts/index.js';
|
|
16
|
+
import '../layouts/area-grid.js';
|
|
17
|
+
import '../layouts/flow.js';
|
|
18
|
+
import '../layouts/stack.js';
|
|
19
|
+
import '../medias/background-image.js';
|
|
20
|
+
import '../common/color.js';
|
|
21
|
+
import '../common/font.js';
|
|
22
|
+
import '../actions/submit/submit.js';
|
|
23
|
+
import '../actions/submit/im-back.js';
|
|
24
|
+
import '../actions/submit/invoke.js';
|
|
25
|
+
import '../actions/submit/message-back.js';
|
|
26
|
+
import '../actions/submit/sign-in.js';
|
|
27
|
+
import '../actions/submit/task-fetch.js';
|
|
28
|
+
import '../actions/submit/collab-stage.js';
|
|
29
|
+
import '../common/tab-info.js';
|
|
30
|
+
import '../actions/toggle-visibility.js';
|
|
31
|
+
import '../common/target-element.js';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var base = require('../base');
|
|
4
|
+
|
|
5
|
+
class DonutChart extends base.Element {
|
|
6
|
+
type;
|
|
7
|
+
/**
|
|
8
|
+
* the title of the chart.
|
|
9
|
+
*/
|
|
10
|
+
title;
|
|
11
|
+
/**
|
|
12
|
+
* the name of the set of colors to use.
|
|
13
|
+
*/
|
|
14
|
+
colorSet;
|
|
15
|
+
/**
|
|
16
|
+
* the data to display in the chart.
|
|
17
|
+
*/
|
|
18
|
+
data;
|
|
19
|
+
constructor(...data) {
|
|
20
|
+
super();
|
|
21
|
+
this.type = "Chart.Donut";
|
|
22
|
+
this.data = data;
|
|
23
|
+
}
|
|
24
|
+
withOptions(value) {
|
|
25
|
+
Object.assign(this, value);
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
withTitle(value) {
|
|
29
|
+
this.title = value;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
withColorSet(value) {
|
|
33
|
+
this.colorSet = value;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
addData(...data) {
|
|
37
|
+
this.data.push(...data);
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
class DonutChartData {
|
|
42
|
+
/**
|
|
43
|
+
* the color to use for the data point.
|
|
44
|
+
*/
|
|
45
|
+
color;
|
|
46
|
+
/**
|
|
47
|
+
* the legend of the chart.
|
|
48
|
+
*/
|
|
49
|
+
legend;
|
|
50
|
+
/**
|
|
51
|
+
* the value associated with the data point.
|
|
52
|
+
*/
|
|
53
|
+
value;
|
|
54
|
+
constructor(value = 0, options = {}) {
|
|
55
|
+
this.value = value;
|
|
56
|
+
this.withOptions(options);
|
|
57
|
+
}
|
|
58
|
+
withOptions(value) {
|
|
59
|
+
Object.assign(this, value);
|
|
60
|
+
return this;
|
|
61
|
+
}
|
|
62
|
+
withColor(value) {
|
|
63
|
+
this.color = value;
|
|
64
|
+
return this;
|
|
65
|
+
}
|
|
66
|
+
withLegend(value) {
|
|
67
|
+
this.legend = value;
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
withValue(value) {
|
|
71
|
+
this.value = value;
|
|
72
|
+
return this;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
exports.DonutChart = DonutChart;
|
|
77
|
+
exports.DonutChartData = DonutChartData;
|
|
78
|
+
//# sourceMappingURL=donut.js.map
|
|
79
|
+
//# sourceMappingURL=donut.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/charts/donut.ts"],"names":["Element"],"mappings":";;;;AA6BO,MAAM,mBAAmBA,YAA+B,CAAA;AAAA,EAC7D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,eAAe,IAAyB,EAAA;AACtC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,aAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AAAA;AACd,EAEA,YAAY,KAA0B,EAAA;AACpC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAe,EAAA;AAC1B,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,IAAyB,EAAA;AAClC,IAAK,IAAA,CAAA,IAAA,CAAK,IAAK,CAAA,GAAG,IAAI,CAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AAEX;AAqBO,MAAM,cAA0C,CAAA;AAAA;AAAA;AAAA;AAAA,EAIrD,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAY,CAAA,KAAA,GAAQ,CAAG,EAAA,OAAA,GAAiC,EAAI,EAAA;AAC1D,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAA,IAAA,CAAK,YAAY,OAAO,CAAA;AAAA;AAC1B,EAEA,YAAY,KAA8B,EAAA;AACxC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAmB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"donut.js","sourcesContent":["import { IElement, Element } from '../base';\nimport { ChartColor } from './color';\n\nexport interface IDonutChart extends IElement {\n type: 'Chart.Donut';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: IDonutChartData[];\n\n /**\n * the area of a `Layout.AreaGrid` layout in which an element should be displayed.\n */\n 'grid.area'?: string;\n}\n\nexport type DonutChartOptions = Omit<IDonutChart, 'type' | 'data'>;\n\nexport class DonutChart extends Element implements IDonutChart {\n type: 'Chart.Donut';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: IDonutChartData[];\n\n constructor(...data: IDonutChartData[]) {\n super();\n this.type = 'Chart.Donut';\n this.data = data;\n }\n\n withOptions(value: DonutChartOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withColorSet(value: string) {\n this.colorSet = value;\n return this;\n }\n\n addData(...data: IDonutChartData[]) {\n this.data.push(...data);\n return this;\n }\n}\n\nexport interface IDonutChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the value associated with the data point.\n */\n value: number;\n}\n\nexport type DonutChartDataOptions = Omit<IDonutChartData, 'value'>;\n\nexport class DonutChartData implements IDonutChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the value associated with the data point.\n */\n value: number;\n\n constructor(value = 0, options: DonutChartDataOptions = {}) {\n this.value = value;\n this.withOptions(options);\n }\n\n withOptions(value: DonutChartDataOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withColor(value: ChartColor) {\n this.color = value;\n return this;\n }\n\n withLegend(value: string) {\n this.legend = value;\n return this;\n }\n\n withValue(value: number) {\n this.value = value;\n return this;\n }\n}\n"]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Element } from '../base';
|
|
2
|
+
|
|
3
|
+
class DonutChart extends Element {
|
|
4
|
+
type;
|
|
5
|
+
/**
|
|
6
|
+
* the title of the chart.
|
|
7
|
+
*/
|
|
8
|
+
title;
|
|
9
|
+
/**
|
|
10
|
+
* the name of the set of colors to use.
|
|
11
|
+
*/
|
|
12
|
+
colorSet;
|
|
13
|
+
/**
|
|
14
|
+
* the data to display in the chart.
|
|
15
|
+
*/
|
|
16
|
+
data;
|
|
17
|
+
constructor(...data) {
|
|
18
|
+
super();
|
|
19
|
+
this.type = "Chart.Donut";
|
|
20
|
+
this.data = data;
|
|
21
|
+
}
|
|
22
|
+
withOptions(value) {
|
|
23
|
+
Object.assign(this, value);
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
withTitle(value) {
|
|
27
|
+
this.title = value;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
withColorSet(value) {
|
|
31
|
+
this.colorSet = value;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
addData(...data) {
|
|
35
|
+
this.data.push(...data);
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
class DonutChartData {
|
|
40
|
+
/**
|
|
41
|
+
* the color to use for the data point.
|
|
42
|
+
*/
|
|
43
|
+
color;
|
|
44
|
+
/**
|
|
45
|
+
* the legend of the chart.
|
|
46
|
+
*/
|
|
47
|
+
legend;
|
|
48
|
+
/**
|
|
49
|
+
* the value associated with the data point.
|
|
50
|
+
*/
|
|
51
|
+
value;
|
|
52
|
+
constructor(value = 0, options = {}) {
|
|
53
|
+
this.value = value;
|
|
54
|
+
this.withOptions(options);
|
|
55
|
+
}
|
|
56
|
+
withOptions(value) {
|
|
57
|
+
Object.assign(this, value);
|
|
58
|
+
return this;
|
|
59
|
+
}
|
|
60
|
+
withColor(value) {
|
|
61
|
+
this.color = value;
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
withLegend(value) {
|
|
65
|
+
this.legend = value;
|
|
66
|
+
return this;
|
|
67
|
+
}
|
|
68
|
+
withValue(value) {
|
|
69
|
+
this.value = value;
|
|
70
|
+
return this;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { DonutChart, DonutChartData };
|
|
75
|
+
//# sourceMappingURL=donut.mjs.map
|
|
76
|
+
//# sourceMappingURL=donut.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/charts/donut.ts"],"names":[],"mappings":";;AA6BO,MAAM,mBAAmB,OAA+B,CAAA;AAAA,EAC7D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,eAAe,IAAyB,EAAA;AACtC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,aAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AAAA;AACd,EAEA,YAAY,KAA0B,EAAA;AACpC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAe,EAAA;AAC1B,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,IAAyB,EAAA;AAClC,IAAK,IAAA,CAAA,IAAA,CAAK,IAAK,CAAA,GAAG,IAAI,CAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AAEX;AAqBO,MAAM,cAA0C,CAAA;AAAA;AAAA;AAAA;AAAA,EAIrD,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAY,CAAA,KAAA,GAAQ,CAAG,EAAA,OAAA,GAAiC,EAAI,EAAA;AAC1D,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAA,IAAA,CAAK,YAAY,OAAO,CAAA;AAAA;AAC1B,EAEA,YAAY,KAA8B,EAAA;AACxC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAmB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"donut.mjs","sourcesContent":["import { IElement, Element } from '../base';\nimport { ChartColor } from './color';\n\nexport interface IDonutChart extends IElement {\n type: 'Chart.Donut';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: IDonutChartData[];\n\n /**\n * the area of a `Layout.AreaGrid` layout in which an element should be displayed.\n */\n 'grid.area'?: string;\n}\n\nexport type DonutChartOptions = Omit<IDonutChart, 'type' | 'data'>;\n\nexport class DonutChart extends Element implements IDonutChart {\n type: 'Chart.Donut';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: IDonutChartData[];\n\n constructor(...data: IDonutChartData[]) {\n super();\n this.type = 'Chart.Donut';\n this.data = data;\n }\n\n withOptions(value: DonutChartOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withColorSet(value: string) {\n this.colorSet = value;\n return this;\n }\n\n addData(...data: IDonutChartData[]) {\n this.data.push(...data);\n return this;\n }\n}\n\nexport interface IDonutChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the value associated with the data point.\n */\n value: number;\n}\n\nexport type DonutChartDataOptions = Omit<IDonutChartData, 'value'>;\n\nexport class DonutChartData implements IDonutChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the value associated with the data point.\n */\n value: number;\n\n constructor(value = 0, options: DonutChartDataOptions = {}) {\n this.value = value;\n this.withOptions(options);\n }\n\n withOptions(value: DonutChartDataOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withColor(value: ChartColor) {\n this.color = value;\n return this;\n }\n\n withLegend(value: string) {\n this.legend = value;\n return this;\n }\n\n withValue(value: number) {\n this.value = value;\n return this;\n }\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { Y as ChartElement, H as DonutChart, L as DonutChartData, K as DonutChartDataOptions, G as DonutChartOptions, F as IDonutChart, J as IDonutChartData, N as ILineChart, S as ILineChartData, W as ILineChartDataPoint, Q as LineChart, V as LineChartData, U as LineChartDataOptions, X as LineChartDataPoint, O as LineChartOptions } from '../medias/icon.mjs';
|
|
2
|
+
export { ChartColor } from './color.mjs';
|
|
3
|
+
import '../actions/execute.mjs';
|
|
4
|
+
import '../common/associated-inputs.mjs';
|
|
5
|
+
import '../actions/base.mjs';
|
|
6
|
+
import '../actions/open-url.mjs';
|
|
7
|
+
import '../common/vertical-alignment.mjs';
|
|
8
|
+
import '../common/refresh.mjs';
|
|
9
|
+
import '../common/auth/auth.mjs';
|
|
10
|
+
import '../common/auth/auth-card-button.mjs';
|
|
11
|
+
import '../common/auth/token-exchange-resource.mjs';
|
|
12
|
+
import '../common/horizontal-alignment.mjs';
|
|
13
|
+
import '../common/spacing.mjs';
|
|
14
|
+
import '../common/target-width.mjs';
|
|
15
|
+
import '../layouts/index.mjs';
|
|
16
|
+
import '../layouts/area-grid.mjs';
|
|
17
|
+
import '../layouts/flow.mjs';
|
|
18
|
+
import '../layouts/stack.mjs';
|
|
19
|
+
import '../medias/background-image.mjs';
|
|
20
|
+
import '../common/color.mjs';
|
|
21
|
+
import '../common/font.mjs';
|
|
22
|
+
import '../actions/submit/submit.mjs';
|
|
23
|
+
import '../actions/submit/im-back.mjs';
|
|
24
|
+
import '../actions/submit/invoke.mjs';
|
|
25
|
+
import '../actions/submit/message-back.mjs';
|
|
26
|
+
import '../actions/submit/sign-in.mjs';
|
|
27
|
+
import '../actions/submit/task-fetch.mjs';
|
|
28
|
+
import '../actions/submit/collab-stage.mjs';
|
|
29
|
+
import '../common/tab-info.mjs';
|
|
30
|
+
import '../actions/toggle-visibility.mjs';
|
|
31
|
+
import '../common/target-element.mjs';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { Y as ChartElement, H as DonutChart, L as DonutChartData, K as DonutChartDataOptions, G as DonutChartOptions, F as IDonutChart, J as IDonutChartData, N as ILineChart, S as ILineChartData, W as ILineChartDataPoint, Q as LineChart, V as LineChartData, U as LineChartDataOptions, X as LineChartDataPoint, O as LineChartOptions } from '../medias/icon.js';
|
|
2
|
+
export { ChartColor } from './color.js';
|
|
3
|
+
import '../actions/execute.js';
|
|
4
|
+
import '../common/associated-inputs.js';
|
|
5
|
+
import '../actions/base.js';
|
|
6
|
+
import '../actions/open-url.js';
|
|
7
|
+
import '../common/vertical-alignment.js';
|
|
8
|
+
import '../common/refresh.js';
|
|
9
|
+
import '../common/auth/auth.js';
|
|
10
|
+
import '../common/auth/auth-card-button.js';
|
|
11
|
+
import '../common/auth/token-exchange-resource.js';
|
|
12
|
+
import '../common/horizontal-alignment.js';
|
|
13
|
+
import '../common/spacing.js';
|
|
14
|
+
import '../common/target-width.js';
|
|
15
|
+
import '../layouts/index.js';
|
|
16
|
+
import '../layouts/area-grid.js';
|
|
17
|
+
import '../layouts/flow.js';
|
|
18
|
+
import '../layouts/stack.js';
|
|
19
|
+
import '../medias/background-image.js';
|
|
20
|
+
import '../common/color.js';
|
|
21
|
+
import '../common/font.js';
|
|
22
|
+
import '../actions/submit/submit.js';
|
|
23
|
+
import '../actions/submit/im-back.js';
|
|
24
|
+
import '../actions/submit/invoke.js';
|
|
25
|
+
import '../actions/submit/message-back.js';
|
|
26
|
+
import '../actions/submit/sign-in.js';
|
|
27
|
+
import '../actions/submit/task-fetch.js';
|
|
28
|
+
import '../actions/submit/collab-stage.js';
|
|
29
|
+
import '../common/tab-info.js';
|
|
30
|
+
import '../actions/toggle-visibility.js';
|
|
31
|
+
import '../common/target-element.js';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var color = require('./color');
|
|
4
|
+
var donut = require('./donut');
|
|
5
|
+
var line = require('./line');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.keys(color).forEach(function (k) {
|
|
10
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return color[k]; }
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
Object.keys(donut).forEach(function (k) {
|
|
16
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return donut[k]; }
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
Object.keys(line).forEach(function (k) {
|
|
22
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return line[k]; }
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { N as ILineChart, S as ILineChartData, W as ILineChartDataPoint, Q as LineChart, V as LineChartData, U as LineChartDataOptions, X as LineChartDataPoint, O as LineChartOptions } from '../medias/icon.mjs';
|
|
2
|
+
import './color.mjs';
|
|
3
|
+
import '../actions/execute.mjs';
|
|
4
|
+
import '../common/associated-inputs.mjs';
|
|
5
|
+
import '../actions/base.mjs';
|
|
6
|
+
import '../actions/open-url.mjs';
|
|
7
|
+
import '../common/vertical-alignment.mjs';
|
|
8
|
+
import '../common/refresh.mjs';
|
|
9
|
+
import '../common/auth/auth.mjs';
|
|
10
|
+
import '../common/auth/auth-card-button.mjs';
|
|
11
|
+
import '../common/auth/token-exchange-resource.mjs';
|
|
12
|
+
import '../common/horizontal-alignment.mjs';
|
|
13
|
+
import '../common/spacing.mjs';
|
|
14
|
+
import '../common/target-width.mjs';
|
|
15
|
+
import '../layouts/index.mjs';
|
|
16
|
+
import '../layouts/area-grid.mjs';
|
|
17
|
+
import '../layouts/flow.mjs';
|
|
18
|
+
import '../layouts/stack.mjs';
|
|
19
|
+
import '../medias/background-image.mjs';
|
|
20
|
+
import '../common/color.mjs';
|
|
21
|
+
import '../common/font.mjs';
|
|
22
|
+
import '../actions/submit/submit.mjs';
|
|
23
|
+
import '../actions/submit/im-back.mjs';
|
|
24
|
+
import '../actions/submit/invoke.mjs';
|
|
25
|
+
import '../actions/submit/message-back.mjs';
|
|
26
|
+
import '../actions/submit/sign-in.mjs';
|
|
27
|
+
import '../actions/submit/task-fetch.mjs';
|
|
28
|
+
import '../actions/submit/collab-stage.mjs';
|
|
29
|
+
import '../common/tab-info.mjs';
|
|
30
|
+
import '../actions/toggle-visibility.mjs';
|
|
31
|
+
import '../common/target-element.mjs';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { N as ILineChart, S as ILineChartData, W as ILineChartDataPoint, Q as LineChart, V as LineChartData, U as LineChartDataOptions, X as LineChartDataPoint, O as LineChartOptions } from '../medias/icon.js';
|
|
2
|
+
import './color.js';
|
|
3
|
+
import '../actions/execute.js';
|
|
4
|
+
import '../common/associated-inputs.js';
|
|
5
|
+
import '../actions/base.js';
|
|
6
|
+
import '../actions/open-url.js';
|
|
7
|
+
import '../common/vertical-alignment.js';
|
|
8
|
+
import '../common/refresh.js';
|
|
9
|
+
import '../common/auth/auth.js';
|
|
10
|
+
import '../common/auth/auth-card-button.js';
|
|
11
|
+
import '../common/auth/token-exchange-resource.js';
|
|
12
|
+
import '../common/horizontal-alignment.js';
|
|
13
|
+
import '../common/spacing.js';
|
|
14
|
+
import '../common/target-width.js';
|
|
15
|
+
import '../layouts/index.js';
|
|
16
|
+
import '../layouts/area-grid.js';
|
|
17
|
+
import '../layouts/flow.js';
|
|
18
|
+
import '../layouts/stack.js';
|
|
19
|
+
import '../medias/background-image.js';
|
|
20
|
+
import '../common/color.js';
|
|
21
|
+
import '../common/font.js';
|
|
22
|
+
import '../actions/submit/submit.js';
|
|
23
|
+
import '../actions/submit/im-back.js';
|
|
24
|
+
import '../actions/submit/invoke.js';
|
|
25
|
+
import '../actions/submit/message-back.js';
|
|
26
|
+
import '../actions/submit/sign-in.js';
|
|
27
|
+
import '../actions/submit/task-fetch.js';
|
|
28
|
+
import '../actions/submit/collab-stage.js';
|
|
29
|
+
import '../common/tab-info.js';
|
|
30
|
+
import '../actions/toggle-visibility.js';
|
|
31
|
+
import '../common/target-element.js';
|