@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
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { q as IProgressBar, r as ProgressBar, P as ProgressBarOptions } from './icon.js';
|
|
2
|
+
import '../common/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 '../charts/color.js';
|
|
16
|
+
import '../layouts/index.js';
|
|
17
|
+
import '../layouts/area-grid.js';
|
|
18
|
+
import '../layouts/flow.js';
|
|
19
|
+
import '../layouts/stack.js';
|
|
20
|
+
import './background-image.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,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var base = require('../base');
|
|
4
|
+
|
|
5
|
+
class ProgressBar extends base.Element {
|
|
6
|
+
type;
|
|
7
|
+
/**
|
|
8
|
+
* @default `accent`
|
|
9
|
+
*/
|
|
10
|
+
color;
|
|
11
|
+
/**
|
|
12
|
+
* percentage
|
|
13
|
+
*/
|
|
14
|
+
value;
|
|
15
|
+
/**
|
|
16
|
+
* the max value
|
|
17
|
+
*/
|
|
18
|
+
max;
|
|
19
|
+
constructor(options = {}) {
|
|
20
|
+
super();
|
|
21
|
+
this.type = "ProgressBar";
|
|
22
|
+
Object.assign(this, options);
|
|
23
|
+
}
|
|
24
|
+
static from(options) {
|
|
25
|
+
return new ProgressBar(options);
|
|
26
|
+
}
|
|
27
|
+
withColor(value) {
|
|
28
|
+
this.color = value;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
withValue(value) {
|
|
32
|
+
this.value = value;
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
withMax(value) {
|
|
36
|
+
this.max = value;
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.ProgressBar = ProgressBar;
|
|
42
|
+
//# sourceMappingURL=progress-bar.js.map
|
|
43
|
+
//# sourceMappingURL=progress-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/medias/progress-bar.ts"],"names":["Element"],"mappings":";;;;AA8BO,MAAM,oBAAoBA,YAAgC,CAAA;AAAA,EAC/D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA,EAEA,WAAA,CAAY,OAA8B,GAAA,EAAI,EAAA;AAC5C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,aAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAA6B,EAAA;AACvC,IAAO,OAAA,IAAI,YAAY,OAAO,CAAA;AAAA;AAChC,EAEA,UAAU,KAAc,EAAA;AACtB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,QAAQ,KAAe,EAAA;AACrB,IAAA,IAAA,CAAK,GAAM,GAAA,KAAA;AACX,IAAO,OAAA,IAAA;AAAA;AAEX","file":"progress-bar.js","sourcesContent":["import { IElement, Element } from '../base';\nimport { Color } from '../common';\n\n/**\n * A progress bar element, to represent a value within a range.\n */\nexport interface IProgressBar extends IElement {\n type: 'ProgressBar';\n\n /**\n * @default `accent`\n */\n color?: Color;\n\n /**\n * percentage\n */\n value?: number;\n\n /**\n * the max value\n */\n max?: number;\n}\n\nexport type ProgressBarOptions = Omit<IProgressBar, 'type'>;\n\n/**\n * A progress bar element, to represent a value within a range.\n */\nexport class ProgressBar extends Element implements IProgressBar {\n type: 'ProgressBar';\n\n /**\n * @default `accent`\n */\n color?: Color;\n\n /**\n * percentage\n */\n value?: number;\n\n /**\n * the max value\n */\n max?: number;\n\n constructor(options: ProgressBarOptions = {}) {\n super();\n this.type = 'ProgressBar';\n Object.assign(this, options);\n }\n\n static from(options: ProgressBarOptions) {\n return new ProgressBar(options);\n }\n\n withColor(value: Color) {\n this.color = value;\n return this;\n }\n\n withValue(value: number) {\n this.value = value;\n return this;\n }\n\n withMax(value: number) {\n this.max = value;\n return this;\n }\n}\n"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Element } from '../base';
|
|
2
|
+
|
|
3
|
+
class ProgressBar extends Element {
|
|
4
|
+
type;
|
|
5
|
+
/**
|
|
6
|
+
* @default `accent`
|
|
7
|
+
*/
|
|
8
|
+
color;
|
|
9
|
+
/**
|
|
10
|
+
* percentage
|
|
11
|
+
*/
|
|
12
|
+
value;
|
|
13
|
+
/**
|
|
14
|
+
* the max value
|
|
15
|
+
*/
|
|
16
|
+
max;
|
|
17
|
+
constructor(options = {}) {
|
|
18
|
+
super();
|
|
19
|
+
this.type = "ProgressBar";
|
|
20
|
+
Object.assign(this, options);
|
|
21
|
+
}
|
|
22
|
+
static from(options) {
|
|
23
|
+
return new ProgressBar(options);
|
|
24
|
+
}
|
|
25
|
+
withColor(value) {
|
|
26
|
+
this.color = value;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
withValue(value) {
|
|
30
|
+
this.value = value;
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
withMax(value) {
|
|
34
|
+
this.max = value;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { ProgressBar };
|
|
40
|
+
//# sourceMappingURL=progress-bar.mjs.map
|
|
41
|
+
//# sourceMappingURL=progress-bar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/medias/progress-bar.ts"],"names":[],"mappings":";;AA8BO,MAAM,oBAAoB,OAAgC,CAAA;AAAA,EAC/D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA,EAEA,WAAA,CAAY,OAA8B,GAAA,EAAI,EAAA;AAC5C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,aAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAA6B,EAAA;AACvC,IAAO,OAAA,IAAI,YAAY,OAAO,CAAA;AAAA;AAChC,EAEA,UAAU,KAAc,EAAA;AACtB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,QAAQ,KAAe,EAAA;AACrB,IAAA,IAAA,CAAK,GAAM,GAAA,KAAA;AACX,IAAO,OAAA,IAAA;AAAA;AAEX","file":"progress-bar.mjs","sourcesContent":["import { IElement, Element } from '../base';\nimport { Color } from '../common';\n\n/**\n * A progress bar element, to represent a value within a range.\n */\nexport interface IProgressBar extends IElement {\n type: 'ProgressBar';\n\n /**\n * @default `accent`\n */\n color?: Color;\n\n /**\n * percentage\n */\n value?: number;\n\n /**\n * the max value\n */\n max?: number;\n}\n\nexport type ProgressBarOptions = Omit<IProgressBar, 'type'>;\n\n/**\n * A progress bar element, to represent a value within a range.\n */\nexport class ProgressBar extends Element implements IProgressBar {\n type: 'ProgressBar';\n\n /**\n * @default `accent`\n */\n color?: Color;\n\n /**\n * percentage\n */\n value?: number;\n\n /**\n * the max value\n */\n max?: number;\n\n constructor(options: ProgressBarOptions = {}) {\n super();\n this.type = 'ProgressBar';\n Object.assign(this, options);\n }\n\n static from(options: ProgressBarOptions) {\n return new ProgressBar(options);\n }\n\n withColor(value: Color) {\n this.color = value;\n return this;\n }\n\n withValue(value: number) {\n this.value = value;\n return this;\n }\n\n withMax(value: number) {\n this.max = value;\n return this;\n }\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { s as IProgressRing, u as ProgressRing, t as ProgressRingOptions } from './icon.mjs';
|
|
2
|
+
import '../actions/execute.mjs';
|
|
3
|
+
import '../common/associated-inputs.mjs';
|
|
4
|
+
import '../actions/base.mjs';
|
|
5
|
+
import '../actions/open-url.mjs';
|
|
6
|
+
import '../common/vertical-alignment.mjs';
|
|
7
|
+
import '../common/refresh.mjs';
|
|
8
|
+
import '../common/auth/auth.mjs';
|
|
9
|
+
import '../common/auth/auth-card-button.mjs';
|
|
10
|
+
import '../common/auth/token-exchange-resource.mjs';
|
|
11
|
+
import '../common/horizontal-alignment.mjs';
|
|
12
|
+
import '../common/spacing.mjs';
|
|
13
|
+
import '../common/target-width.mjs';
|
|
14
|
+
import '../charts/color.mjs';
|
|
15
|
+
import '../layouts/index.mjs';
|
|
16
|
+
import '../layouts/area-grid.mjs';
|
|
17
|
+
import '../layouts/flow.mjs';
|
|
18
|
+
import '../layouts/stack.mjs';
|
|
19
|
+
import './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 { s as IProgressRing, u as ProgressRing, t as ProgressRingOptions } from './icon.js';
|
|
2
|
+
import '../actions/execute.js';
|
|
3
|
+
import '../common/associated-inputs.js';
|
|
4
|
+
import '../actions/base.js';
|
|
5
|
+
import '../actions/open-url.js';
|
|
6
|
+
import '../common/vertical-alignment.js';
|
|
7
|
+
import '../common/refresh.js';
|
|
8
|
+
import '../common/auth/auth.js';
|
|
9
|
+
import '../common/auth/auth-card-button.js';
|
|
10
|
+
import '../common/auth/token-exchange-resource.js';
|
|
11
|
+
import '../common/horizontal-alignment.js';
|
|
12
|
+
import '../common/spacing.js';
|
|
13
|
+
import '../common/target-width.js';
|
|
14
|
+
import '../charts/color.js';
|
|
15
|
+
import '../layouts/index.js';
|
|
16
|
+
import '../layouts/area-grid.js';
|
|
17
|
+
import '../layouts/flow.js';
|
|
18
|
+
import '../layouts/stack.js';
|
|
19
|
+
import './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,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var base = require('../base');
|
|
4
|
+
|
|
5
|
+
class ProgressRing extends base.Element {
|
|
6
|
+
type;
|
|
7
|
+
/**
|
|
8
|
+
* The label of the progress ring.
|
|
9
|
+
*/
|
|
10
|
+
label;
|
|
11
|
+
/**
|
|
12
|
+
* Controls the relative position of the label to the progress ring.
|
|
13
|
+
* @default `above`
|
|
14
|
+
*/
|
|
15
|
+
labelPosition;
|
|
16
|
+
/**
|
|
17
|
+
* The size of the progress ring.
|
|
18
|
+
* @default `medium`
|
|
19
|
+
*/
|
|
20
|
+
size;
|
|
21
|
+
constructor(options = {}) {
|
|
22
|
+
super();
|
|
23
|
+
this.type = "ProgressRing";
|
|
24
|
+
Object.assign(this, options);
|
|
25
|
+
}
|
|
26
|
+
static from(options) {
|
|
27
|
+
return new ProgressRing(options);
|
|
28
|
+
}
|
|
29
|
+
withLabel(value, position) {
|
|
30
|
+
this.label = value;
|
|
31
|
+
this.labelPosition = position;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
withLabelPosition(value) {
|
|
35
|
+
this.labelPosition = value;
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
withSize(value) {
|
|
39
|
+
this.size = value;
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
exports.ProgressRing = ProgressRing;
|
|
45
|
+
//# sourceMappingURL=progress-ring.js.map
|
|
46
|
+
//# sourceMappingURL=progress-ring.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/medias/progress-ring.ts"],"names":["Element"],"mappings":";;;;AA+BO,MAAM,qBAAqBA,YAAiC,CAAA;AAAA,EACjE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,aAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,IAAA;AAAA,EAEA,WAAA,CAAY,OAA+B,GAAA,EAAI,EAAA;AAC7C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,cAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAA8B,EAAA;AACxC,IAAO,OAAA,IAAI,aAAa,OAAO,CAAA;AAAA;AACjC,EAEA,SAAA,CAAU,OAAe,QAAmD,EAAA;AAC1E,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAA,IAAA,CAAK,aAAgB,GAAA,QAAA;AACrB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,kBAAkB,KAA+C,EAAA;AAC/D,IAAA,IAAA,CAAK,aAAgB,GAAA,KAAA;AACrB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAA8C,EAAA;AACrD,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AAEX","file":"progress-ring.js","sourcesContent":["import { IElement, Element } from '../base';\n\n/**\n * A spinning ring element, to indicate progress.\n */\nexport interface IProgressRing extends IElement {\n type: 'ProgressRing';\n\n /**\n * The label of the progress ring.\n */\n label?: string;\n\n /**\n * Controls the relative position of the label to the progress ring.\n * @default `above`\n */\n labelPosition?: 'before' | 'after' | 'above' | 'below';\n\n /**\n * The size of the progress ring.\n * @default `medium`\n */\n size?: 'tiny' | 'small' | 'medium' | 'large';\n}\n\nexport type ProgressRingOptions = Omit<IProgressRing, 'type'>;\n\n/**\n * A spinning ring element, to indicate progress.\n */\nexport class ProgressRing extends Element implements IProgressRing {\n type: 'ProgressRing';\n\n /**\n * The label of the progress ring.\n */\n label?: string;\n\n /**\n * Controls the relative position of the label to the progress ring.\n * @default `above`\n */\n labelPosition?: 'before' | 'after' | 'above' | 'below';\n\n /**\n * The size of the progress ring.\n * @default `medium`\n */\n size?: 'tiny' | 'small' | 'medium' | 'large';\n\n constructor(options: ProgressRingOptions = {}) {\n super();\n this.type = 'ProgressRing';\n Object.assign(this, options);\n }\n\n static from(options: ProgressRingOptions) {\n return new ProgressRing(options);\n }\n\n withLabel(value: string, position?: 'before' | 'after' | 'above' | 'below') {\n this.label = value;\n this.labelPosition = position;\n return this;\n }\n\n withLabelPosition(value: 'before' | 'after' | 'above' | 'below') {\n this.labelPosition = value;\n return this;\n }\n\n withSize(value: 'tiny' | 'small' | 'medium' | 'large') {\n this.size = value;\n return this;\n }\n}\n"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Element } from '../base';
|
|
2
|
+
|
|
3
|
+
class ProgressRing extends Element {
|
|
4
|
+
type;
|
|
5
|
+
/**
|
|
6
|
+
* The label of the progress ring.
|
|
7
|
+
*/
|
|
8
|
+
label;
|
|
9
|
+
/**
|
|
10
|
+
* Controls the relative position of the label to the progress ring.
|
|
11
|
+
* @default `above`
|
|
12
|
+
*/
|
|
13
|
+
labelPosition;
|
|
14
|
+
/**
|
|
15
|
+
* The size of the progress ring.
|
|
16
|
+
* @default `medium`
|
|
17
|
+
*/
|
|
18
|
+
size;
|
|
19
|
+
constructor(options = {}) {
|
|
20
|
+
super();
|
|
21
|
+
this.type = "ProgressRing";
|
|
22
|
+
Object.assign(this, options);
|
|
23
|
+
}
|
|
24
|
+
static from(options) {
|
|
25
|
+
return new ProgressRing(options);
|
|
26
|
+
}
|
|
27
|
+
withLabel(value, position) {
|
|
28
|
+
this.label = value;
|
|
29
|
+
this.labelPosition = position;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
withLabelPosition(value) {
|
|
33
|
+
this.labelPosition = value;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
withSize(value) {
|
|
37
|
+
this.size = value;
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { ProgressRing };
|
|
43
|
+
//# sourceMappingURL=progress-ring.mjs.map
|
|
44
|
+
//# sourceMappingURL=progress-ring.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/medias/progress-ring.ts"],"names":[],"mappings":";;AA+BO,MAAM,qBAAqB,OAAiC,CAAA;AAAA,EACjE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,aAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,IAAA;AAAA,EAEA,WAAA,CAAY,OAA+B,GAAA,EAAI,EAAA;AAC7C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,cAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAA8B,EAAA;AACxC,IAAO,OAAA,IAAI,aAAa,OAAO,CAAA;AAAA;AACjC,EAEA,SAAA,CAAU,OAAe,QAAmD,EAAA;AAC1E,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAA,IAAA,CAAK,aAAgB,GAAA,QAAA;AACrB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,kBAAkB,KAA+C,EAAA;AAC/D,IAAA,IAAA,CAAK,aAAgB,GAAA,KAAA;AACrB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAA8C,EAAA;AACrD,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AAEX","file":"progress-ring.mjs","sourcesContent":["import { IElement, Element } from '../base';\n\n/**\n * A spinning ring element, to indicate progress.\n */\nexport interface IProgressRing extends IElement {\n type: 'ProgressRing';\n\n /**\n * The label of the progress ring.\n */\n label?: string;\n\n /**\n * Controls the relative position of the label to the progress ring.\n * @default `above`\n */\n labelPosition?: 'before' | 'after' | 'above' | 'below';\n\n /**\n * The size of the progress ring.\n * @default `medium`\n */\n size?: 'tiny' | 'small' | 'medium' | 'large';\n}\n\nexport type ProgressRingOptions = Omit<IProgressRing, 'type'>;\n\n/**\n * A spinning ring element, to indicate progress.\n */\nexport class ProgressRing extends Element implements IProgressRing {\n type: 'ProgressRing';\n\n /**\n * The label of the progress ring.\n */\n label?: string;\n\n /**\n * Controls the relative position of the label to the progress ring.\n * @default `above`\n */\n labelPosition?: 'before' | 'after' | 'above' | 'below';\n\n /**\n * The size of the progress ring.\n * @default `medium`\n */\n size?: 'tiny' | 'small' | 'medium' | 'large';\n\n constructor(options: ProgressRingOptions = {}) {\n super();\n this.type = 'ProgressRing';\n Object.assign(this, options);\n }\n\n static from(options: ProgressRingOptions) {\n return new ProgressRing(options);\n }\n\n withLabel(value: string, position?: 'before' | 'after' | 'above' | 'below') {\n this.label = value;\n this.labelPosition = position;\n return this;\n }\n\n withLabelPosition(value: 'before' | 'after' | 'above' | 'below') {\n this.labelPosition = value;\n return this;\n }\n\n withSize(value: 'tiny' | 'small' | 'medium' | 'large') {\n this.size = value;\n return this;\n }\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { x as IRichTextBlock, y as RichTextBlock, R as RichTextBlockOptions } from './icon.mjs';
|
|
2
|
+
import '../actions/execute.mjs';
|
|
3
|
+
import '../common/associated-inputs.mjs';
|
|
4
|
+
import '../actions/base.mjs';
|
|
5
|
+
import '../actions/open-url.mjs';
|
|
6
|
+
import '../common/vertical-alignment.mjs';
|
|
7
|
+
import '../common/refresh.mjs';
|
|
8
|
+
import '../common/auth/auth.mjs';
|
|
9
|
+
import '../common/auth/auth-card-button.mjs';
|
|
10
|
+
import '../common/auth/token-exchange-resource.mjs';
|
|
11
|
+
import '../common/horizontal-alignment.mjs';
|
|
12
|
+
import '../common/spacing.mjs';
|
|
13
|
+
import '../common/target-width.mjs';
|
|
14
|
+
import '../charts/color.mjs';
|
|
15
|
+
import '../layouts/index.mjs';
|
|
16
|
+
import '../layouts/area-grid.mjs';
|
|
17
|
+
import '../layouts/flow.mjs';
|
|
18
|
+
import '../layouts/stack.mjs';
|
|
19
|
+
import './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 { x as IRichTextBlock, y as RichTextBlock, R as RichTextBlockOptions } from './icon.js';
|
|
2
|
+
import '../actions/execute.js';
|
|
3
|
+
import '../common/associated-inputs.js';
|
|
4
|
+
import '../actions/base.js';
|
|
5
|
+
import '../actions/open-url.js';
|
|
6
|
+
import '../common/vertical-alignment.js';
|
|
7
|
+
import '../common/refresh.js';
|
|
8
|
+
import '../common/auth/auth.js';
|
|
9
|
+
import '../common/auth/auth-card-button.js';
|
|
10
|
+
import '../common/auth/token-exchange-resource.js';
|
|
11
|
+
import '../common/horizontal-alignment.js';
|
|
12
|
+
import '../common/spacing.js';
|
|
13
|
+
import '../common/target-width.js';
|
|
14
|
+
import '../charts/color.js';
|
|
15
|
+
import '../layouts/index.js';
|
|
16
|
+
import '../layouts/area-grid.js';
|
|
17
|
+
import '../layouts/flow.js';
|
|
18
|
+
import '../layouts/stack.js';
|
|
19
|
+
import './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,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var base = require('../base');
|
|
4
|
+
var textRun = require('./text-run');
|
|
5
|
+
|
|
6
|
+
class RichTextBlock extends base.Element {
|
|
7
|
+
type;
|
|
8
|
+
/**
|
|
9
|
+
* The array of inlines.
|
|
10
|
+
*/
|
|
11
|
+
inlines;
|
|
12
|
+
constructor(...inlines) {
|
|
13
|
+
super();
|
|
14
|
+
this.type = "RichTextBlock";
|
|
15
|
+
this.inlines = inlines;
|
|
16
|
+
}
|
|
17
|
+
static from(options) {
|
|
18
|
+
const block = new RichTextBlock(...options.inlines);
|
|
19
|
+
Object.assign(block, options);
|
|
20
|
+
return block;
|
|
21
|
+
}
|
|
22
|
+
addText(...value) {
|
|
23
|
+
this.inlines.push(...value);
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
toString(delim = "") {
|
|
27
|
+
return this.inlines.map((v) => typeof v === "string" ? v : textRun.TextRun.from(v).toString()).join(delim);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.RichTextBlock = RichTextBlock;
|
|
32
|
+
//# sourceMappingURL=rich-text-block.js.map
|
|
33
|
+
//# sourceMappingURL=rich-text-block.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/medias/rich-text-block.ts"],"names":["Element","TextRun"],"mappings":";;;;;AAqBO,MAAM,sBAAsBA,YAAkC,CAAA;AAAA,EACnE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA,EAEA,eAAe,OAAgC,EAAA;AAC7C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,eAAA;AACZ,IAAA,IAAA,CAAK,OAAU,GAAA,OAAA;AAAA;AACjB,EAEA,OAAO,KAAK,OAAuC,EAAA;AACjD,IAAA,MAAM,KAAQ,GAAA,IAAI,aAAc,CAAA,GAAG,QAAQ,OAAO,CAAA;AAClD,IAAO,MAAA,CAAA,MAAA,CAAO,OAAO,OAAO,CAAA;AAC5B,IAAO,OAAA,KAAA;AAAA;AACT,EAEA,WAAW,KAA8B,EAAA;AACvC,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,QAAA,CAAS,QAAQ,EAAI,EAAA;AACnB,IAAA,OAAO,KAAK,OACT,CAAA,GAAA,CAAI,CAAC,CAAA,KAAO,OAAO,CAAM,KAAA,QAAA,GAAW,CAAI,GAAAC,eAAA,CAAQ,KAAK,CAAC,CAAA,CAAE,UAAW,CAAA,CACnE,KAAK,KAAK,CAAA;AAAA;AAEjB","file":"rich-text-block.js","sourcesContent":["import { IElement, Element } from '../base';\n\nimport { ITextRun, TextRun } from './text-run';\n\n/**\n * Defines an array of inlines, allowing for inline text formatting.\n */\nexport interface IRichTextBlock extends IElement {\n type: 'RichTextBlock';\n\n /**\n * The array of inlines.\n */\n inlines: (ITextRun | string)[];\n}\n\nexport type RichTextBlockOptions = Omit<IRichTextBlock, 'type' | 'inlines'>;\n\n/**\n * Defines an array of inlines, allowing for inline text formatting.\n */\nexport class RichTextBlock extends Element implements IRichTextBlock {\n type: 'RichTextBlock';\n\n /**\n * The array of inlines.\n */\n inlines: (ITextRun | string)[];\n\n constructor(...inlines: (ITextRun | string)[]) {\n super();\n this.type = 'RichTextBlock';\n this.inlines = inlines;\n }\n\n static from(options: Omit<IRichTextBlock, 'type'>) {\n const block = new RichTextBlock(...options.inlines);\n Object.assign(block, options);\n return block;\n }\n\n addText(...value: (ITextRun | string)[]) {\n this.inlines.push(...value);\n return this;\n }\n\n toString(delim = '') {\n return this.inlines\n .map((v) => (typeof v === 'string' ? v : TextRun.from(v).toString()))\n .join(delim);\n }\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Element } from '../base';
|
|
2
|
+
import { TextRun } from './text-run';
|
|
3
|
+
|
|
4
|
+
class RichTextBlock extends Element {
|
|
5
|
+
type;
|
|
6
|
+
/**
|
|
7
|
+
* The array of inlines.
|
|
8
|
+
*/
|
|
9
|
+
inlines;
|
|
10
|
+
constructor(...inlines) {
|
|
11
|
+
super();
|
|
12
|
+
this.type = "RichTextBlock";
|
|
13
|
+
this.inlines = inlines;
|
|
14
|
+
}
|
|
15
|
+
static from(options) {
|
|
16
|
+
const block = new RichTextBlock(...options.inlines);
|
|
17
|
+
Object.assign(block, options);
|
|
18
|
+
return block;
|
|
19
|
+
}
|
|
20
|
+
addText(...value) {
|
|
21
|
+
this.inlines.push(...value);
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
toString(delim = "") {
|
|
25
|
+
return this.inlines.map((v) => typeof v === "string" ? v : TextRun.from(v).toString()).join(delim);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { RichTextBlock };
|
|
30
|
+
//# sourceMappingURL=rich-text-block.mjs.map
|
|
31
|
+
//# sourceMappingURL=rich-text-block.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/medias/rich-text-block.ts"],"names":[],"mappings":";;;AAqBO,MAAM,sBAAsB,OAAkC,CAAA;AAAA,EACnE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA,EAEA,eAAe,OAAgC,EAAA;AAC7C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,eAAA;AACZ,IAAA,IAAA,CAAK,OAAU,GAAA,OAAA;AAAA;AACjB,EAEA,OAAO,KAAK,OAAuC,EAAA;AACjD,IAAA,MAAM,KAAQ,GAAA,IAAI,aAAc,CAAA,GAAG,QAAQ,OAAO,CAAA;AAClD,IAAO,MAAA,CAAA,MAAA,CAAO,OAAO,OAAO,CAAA;AAC5B,IAAO,OAAA,KAAA;AAAA;AACT,EAEA,WAAW,KAA8B,EAAA;AACvC,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,QAAA,CAAS,QAAQ,EAAI,EAAA;AACnB,IAAA,OAAO,KAAK,OACT,CAAA,GAAA,CAAI,CAAC,CAAA,KAAO,OAAO,CAAM,KAAA,QAAA,GAAW,CAAI,GAAA,OAAA,CAAQ,KAAK,CAAC,CAAA,CAAE,UAAW,CAAA,CACnE,KAAK,KAAK,CAAA;AAAA;AAEjB","file":"rich-text-block.mjs","sourcesContent":["import { IElement, Element } from '../base';\n\nimport { ITextRun, TextRun } from './text-run';\n\n/**\n * Defines an array of inlines, allowing for inline text formatting.\n */\nexport interface IRichTextBlock extends IElement {\n type: 'RichTextBlock';\n\n /**\n * The array of inlines.\n */\n inlines: (ITextRun | string)[];\n}\n\nexport type RichTextBlockOptions = Omit<IRichTextBlock, 'type' | 'inlines'>;\n\n/**\n * Defines an array of inlines, allowing for inline text formatting.\n */\nexport class RichTextBlock extends Element implements IRichTextBlock {\n type: 'RichTextBlock';\n\n /**\n * The array of inlines.\n */\n inlines: (ITextRun | string)[];\n\n constructor(...inlines: (ITextRun | string)[]) {\n super();\n this.type = 'RichTextBlock';\n this.inlines = inlines;\n }\n\n static from(options: Omit<IRichTextBlock, 'type'>) {\n const block = new RichTextBlock(...options.inlines);\n Object.assign(block, options);\n return block;\n }\n\n addText(...value: (ITextRun | string)[]) {\n this.inlines.push(...value);\n return this;\n }\n\n toString(delim = '') {\n return this.inlines\n .map((v) => (typeof v === 'string' ? v : TextRun.from(v).toString()))\n .join(delim);\n }\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { z as ITextBlock, D as TextBlock, A as TextBlockOptions } from './icon.mjs';
|
|
2
|
+
import '../common/color.mjs';
|
|
3
|
+
import '../common/font.mjs';
|
|
4
|
+
import '../actions/execute.mjs';
|
|
5
|
+
import '../common/associated-inputs.mjs';
|
|
6
|
+
import '../actions/base.mjs';
|
|
7
|
+
import '../actions/open-url.mjs';
|
|
8
|
+
import '../common/vertical-alignment.mjs';
|
|
9
|
+
import '../common/refresh.mjs';
|
|
10
|
+
import '../common/auth/auth.mjs';
|
|
11
|
+
import '../common/auth/auth-card-button.mjs';
|
|
12
|
+
import '../common/auth/token-exchange-resource.mjs';
|
|
13
|
+
import '../common/horizontal-alignment.mjs';
|
|
14
|
+
import '../common/spacing.mjs';
|
|
15
|
+
import '../common/target-width.mjs';
|
|
16
|
+
import '../charts/color.mjs';
|
|
17
|
+
import '../layouts/index.mjs';
|
|
18
|
+
import '../layouts/area-grid.mjs';
|
|
19
|
+
import '../layouts/flow.mjs';
|
|
20
|
+
import '../layouts/stack.mjs';
|
|
21
|
+
import './background-image.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 { z as ITextBlock, D as TextBlock, A as TextBlockOptions } from './icon.js';
|
|
2
|
+
import '../common/color.js';
|
|
3
|
+
import '../common/font.js';
|
|
4
|
+
import '../actions/execute.js';
|
|
5
|
+
import '../common/associated-inputs.js';
|
|
6
|
+
import '../actions/base.js';
|
|
7
|
+
import '../actions/open-url.js';
|
|
8
|
+
import '../common/vertical-alignment.js';
|
|
9
|
+
import '../common/refresh.js';
|
|
10
|
+
import '../common/auth/auth.js';
|
|
11
|
+
import '../common/auth/auth-card-button.js';
|
|
12
|
+
import '../common/auth/token-exchange-resource.js';
|
|
13
|
+
import '../common/horizontal-alignment.js';
|
|
14
|
+
import '../common/spacing.js';
|
|
15
|
+
import '../common/target-width.js';
|
|
16
|
+
import '../charts/color.js';
|
|
17
|
+
import '../layouts/index.js';
|
|
18
|
+
import '../layouts/area-grid.js';
|
|
19
|
+
import '../layouts/flow.js';
|
|
20
|
+
import '../layouts/stack.js';
|
|
21
|
+
import './background-image.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,95 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var base = require('../base');
|
|
4
|
+
|
|
5
|
+
class TextBlock extends base.Element {
|
|
6
|
+
type;
|
|
7
|
+
/**
|
|
8
|
+
* Text to display. A subset of markdown is supported (https://aka.ms/ACTextFeatures)
|
|
9
|
+
*/
|
|
10
|
+
text;
|
|
11
|
+
/**
|
|
12
|
+
* The style of this TextBlock for accessibility purposes.
|
|
13
|
+
*/
|
|
14
|
+
style;
|
|
15
|
+
/**
|
|
16
|
+
* Controls the color of TextBlock elements.
|
|
17
|
+
*/
|
|
18
|
+
color;
|
|
19
|
+
/**
|
|
20
|
+
* Type of font to use for rendering
|
|
21
|
+
*/
|
|
22
|
+
fontType;
|
|
23
|
+
/**
|
|
24
|
+
* If true, displays text slightly toned down to appear less prominent.
|
|
25
|
+
*/
|
|
26
|
+
isSubtle;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the maximum number of lines to display.
|
|
29
|
+
*/
|
|
30
|
+
maxLines;
|
|
31
|
+
/**
|
|
32
|
+
* Controls size of text.
|
|
33
|
+
*/
|
|
34
|
+
size;
|
|
35
|
+
/**
|
|
36
|
+
* Controls the weight of TextBlock elements.
|
|
37
|
+
*/
|
|
38
|
+
weight;
|
|
39
|
+
/**
|
|
40
|
+
* If true, allow text to wrap. Otherwise, text is clipped.
|
|
41
|
+
*/
|
|
42
|
+
wrap;
|
|
43
|
+
constructor(text, options = {}) {
|
|
44
|
+
super();
|
|
45
|
+
this.type = "TextBlock";
|
|
46
|
+
this.text = text;
|
|
47
|
+
Object.assign(this, options);
|
|
48
|
+
}
|
|
49
|
+
static from(options) {
|
|
50
|
+
return new TextBlock(options.text, options);
|
|
51
|
+
}
|
|
52
|
+
withStyle(value) {
|
|
53
|
+
this.style = value;
|
|
54
|
+
return this;
|
|
55
|
+
}
|
|
56
|
+
withColor(value) {
|
|
57
|
+
this.color = value;
|
|
58
|
+
return this;
|
|
59
|
+
}
|
|
60
|
+
withFontType(value) {
|
|
61
|
+
this.fontType = value;
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
withSubtle(value = true) {
|
|
65
|
+
this.isSubtle = value;
|
|
66
|
+
return this;
|
|
67
|
+
}
|
|
68
|
+
withMaxLines(value) {
|
|
69
|
+
this.maxLines = value;
|
|
70
|
+
return this;
|
|
71
|
+
}
|
|
72
|
+
withSize(value) {
|
|
73
|
+
this.size = value;
|
|
74
|
+
return this;
|
|
75
|
+
}
|
|
76
|
+
withWeight(value) {
|
|
77
|
+
this.weight = value;
|
|
78
|
+
return this;
|
|
79
|
+
}
|
|
80
|
+
withWrap(value = true) {
|
|
81
|
+
this.wrap = value;
|
|
82
|
+
return this;
|
|
83
|
+
}
|
|
84
|
+
addText(...value) {
|
|
85
|
+
this.text += value.join("");
|
|
86
|
+
return this;
|
|
87
|
+
}
|
|
88
|
+
toString() {
|
|
89
|
+
return this.text;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
exports.TextBlock = TextBlock;
|
|
94
|
+
//# sourceMappingURL=text-block.js.map
|
|
95
|
+
//# sourceMappingURL=text-block.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/medias/text-block.ts"],"names":["Element"],"mappings":";;;;AA4DO,MAAM,kBAAkBA,YAA8B,CAAA;AAAA,EAC3D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,WAAY,CAAA,IAAA,EAAc,OAA4B,GAAA,EAAI,EAAA;AACxD,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,WAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAAmC,EAAA;AAC7C,IAAA,OAAO,IAAI,SAAA,CAAU,OAAQ,CAAA,IAAA,EAAM,OAAO,CAAA;AAAA;AAC5C,EAEA,UAAU,KAA8B,EAAA;AACtC,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAc,EAAA;AACtB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAiB,EAAA;AAC5B,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAA,CAAW,QAAQ,IAAM,EAAA;AACvB,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAe,EAAA;AAC1B,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAAiB,EAAA;AACxB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAmB,EAAA;AAC5B,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,QAAA,CAAS,QAAQ,IAAM,EAAA;AACrB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAiB,EAAA;AAC1B,IAAK,IAAA,CAAA,IAAA,IAAQ,KAAM,CAAA,IAAA,CAAK,EAAE,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,QAAW,GAAA;AACT,IAAA,OAAO,IAAK,CAAA,IAAA;AAAA;AAEhB","file":"text-block.js","sourcesContent":["import { IElement, Element } from '../base';\nimport { Color, FontSize, FontType, FontWeight } from '../common';\n\n/**\n * Displays text, allowing control over font sizes, weight, and color.\n */\nexport interface ITextBlock extends IElement {\n type: 'TextBlock';\n\n /**\n * Text to display. A subset of markdown is supported (https://aka.ms/ACTextFeatures)\n */\n text: string;\n\n /**\n * The style of this TextBlock for accessibility purposes.\n */\n style?: 'default' | 'heading';\n\n /**\n * Controls the color of TextBlock elements.\n */\n color?: Color;\n\n /**\n * Type of font to use for rendering\n */\n fontType?: FontType | null;\n\n /**\n * If true, displays text slightly toned down to appear less prominent.\n */\n isSubtle?: boolean;\n\n /**\n * Specifies the maximum number of lines to display.\n */\n maxLines?: number;\n\n /**\n * Controls size of text.\n */\n size?: FontSize;\n\n /**\n * Controls the weight of TextBlock elements.\n */\n weight?: FontWeight;\n\n /**\n * If true, allow text to wrap. Otherwise, text is clipped.\n */\n wrap?: boolean;\n}\n\nexport type TextBlockOptions = Omit<ITextBlock, 'type' | 'text'>;\n\n/**\n * Displays text, allowing control over font sizes, weight, and color.\n */\nexport class TextBlock extends Element implements ITextBlock {\n type: 'TextBlock';\n\n /**\n * Text to display. A subset of markdown is supported (https://aka.ms/ACTextFeatures)\n */\n text: string;\n\n /**\n * The style of this TextBlock for accessibility purposes.\n */\n style?: 'default' | 'heading';\n\n /**\n * Controls the color of TextBlock elements.\n */\n color?: Color;\n\n /**\n * Type of font to use for rendering\n */\n fontType?: FontType | null;\n\n /**\n * If true, displays text slightly toned down to appear less prominent.\n */\n isSubtle?: boolean;\n\n /**\n * Specifies the maximum number of lines to display.\n */\n maxLines?: number;\n\n /**\n * Controls size of text.\n */\n size?: FontSize;\n\n /**\n * Controls the weight of TextBlock elements.\n */\n weight?: FontWeight;\n\n /**\n * If true, allow text to wrap. Otherwise, text is clipped.\n */\n wrap?: boolean;\n\n constructor(text: string, options: TextBlockOptions = {}) {\n super();\n this.type = 'TextBlock';\n this.text = text;\n Object.assign(this, options);\n }\n\n static from(options: Omit<ITextBlock, 'type'>) {\n return new TextBlock(options.text, options);\n }\n\n withStyle(value: 'default' | 'heading') {\n this.style = value;\n return this;\n }\n\n withColor(value: Color) {\n this.color = value;\n return this;\n }\n\n withFontType(value: FontType) {\n this.fontType = value;\n return this;\n }\n\n withSubtle(value = true) {\n this.isSubtle = value;\n return this;\n }\n\n withMaxLines(value: number) {\n this.maxLines = value;\n return this;\n }\n\n withSize(value: FontSize) {\n this.size = value;\n return this;\n }\n\n withWeight(value: FontWeight) {\n this.weight = value;\n return this;\n }\n\n withWrap(value = true) {\n this.wrap = value;\n return this;\n }\n\n addText(...value: string[]) {\n this.text += value.join('');\n return this;\n }\n\n toString() {\n return this.text;\n }\n}\n"]}
|