@microsoft/teams.cards 0.2.13 → 2.0.0-preview.0
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 +40 -40
- package/dist/actions/index.d.mts +2 -24
- package/dist/actions/index.d.ts +2 -24
- package/dist/actions/index.js +0 -28
- package/dist/actions/index.mjs +0 -4
- package/dist/actions/submit/collab-stage.d.mts +2 -3
- package/dist/actions/submit/collab-stage.d.ts +2 -3
- package/dist/actions/submit/collab-stage.js +2 -2
- package/dist/actions/submit/collab-stage.js.map +1 -1
- package/dist/actions/submit/collab-stage.mjs +1 -1
- package/dist/actions/submit/collab-stage.mjs.map +1 -1
- package/dist/actions/submit/im-back.d.mts +2 -3
- package/dist/actions/submit/im-back.d.ts +2 -3
- package/dist/actions/submit/im-back.js +2 -2
- package/dist/actions/submit/im-back.js.map +1 -1
- package/dist/actions/submit/im-back.mjs +1 -1
- package/dist/actions/submit/im-back.mjs.map +1 -1
- package/dist/actions/submit/index.d.mts +2 -3
- package/dist/actions/submit/index.d.ts +2 -3
- package/dist/actions/submit/index.js +0 -7
- package/dist/actions/submit/index.mjs +0 -1
- package/dist/actions/submit/invoke.d.mts +2 -3
- package/dist/actions/submit/invoke.d.ts +2 -3
- package/dist/actions/submit/invoke.js +2 -2
- package/dist/actions/submit/invoke.js.map +1 -1
- package/dist/actions/submit/invoke.mjs +1 -1
- package/dist/actions/submit/invoke.mjs.map +1 -1
- package/dist/actions/submit/message-back.d.mts +2 -3
- package/dist/actions/submit/message-back.d.ts +2 -3
- package/dist/actions/submit/message-back.js +2 -2
- package/dist/actions/submit/message-back.js.map +1 -1
- package/dist/actions/submit/message-back.mjs +1 -1
- package/dist/actions/submit/message-back.mjs.map +1 -1
- package/dist/actions/submit/ms-teams-data.d.mts +15 -0
- package/dist/actions/submit/ms-teams-data.d.ts +15 -0
- package/dist/actions/submit/ms-teams-data.js +4 -0
- package/dist/actions/submit/ms-teams-data.js.map +1 -0
- package/dist/actions/submit/ms-teams-data.mjs +3 -0
- package/dist/actions/submit/ms-teams-data.mjs.map +1 -0
- package/dist/actions/submit/sign-in.d.mts +2 -3
- package/dist/actions/submit/sign-in.d.ts +2 -3
- package/dist/actions/submit/sign-in.js +2 -2
- package/dist/actions/submit/sign-in.js.map +1 -1
- package/dist/actions/submit/sign-in.mjs +1 -1
- package/dist/actions/submit/sign-in.mjs.map +1 -1
- package/dist/actions/submit/task-fetch.d.mts +2 -3
- package/dist/actions/submit/task-fetch.d.ts +2 -3
- package/dist/actions/submit/task-fetch.js +3 -3
- package/dist/actions/submit/task-fetch.js.map +1 -1
- package/dist/actions/submit/task-fetch.mjs +2 -2
- package/dist/actions/submit/task-fetch.mjs.map +1 -1
- package/dist/common/index.d.mts +0 -14
- package/dist/common/index.d.ts +0 -14
- package/dist/common/index.js +0 -70
- package/dist/common/index.mjs +0 -10
- package/dist/core.d.mts +10707 -0
- package/dist/core.d.ts +10707 -0
- package/dist/core.js +8718 -0
- package/dist/core.js.map +1 -0
- package/dist/core.mjs +8574 -0
- package/dist/core.mjs.map +1 -0
- package/dist/index.d.mts +3 -25
- package/dist/index.d.ts +3 -25
- package/dist/index.js +5 -47
- package/dist/index.mjs +1 -7
- package/package.json +3 -4
- package/dist/actions/base.d.mts +0 -89
- package/dist/actions/base.d.ts +0 -89
- package/dist/actions/base.js +0 -90
- package/dist/actions/base.js.map +0 -1
- package/dist/actions/base.mjs +0 -88
- package/dist/actions/base.mjs.map +0 -1
- package/dist/actions/execute.d.mts +0 -47
- package/dist/actions/execute.d.ts +0 -47
- package/dist/actions/execute.js +0 -43
- package/dist/actions/execute.js.map +0 -1
- package/dist/actions/execute.mjs +0 -41
- package/dist/actions/execute.mjs.map +0 -1
- package/dist/actions/open-url.d.mts +0 -28
- package/dist/actions/open-url.d.ts +0 -28
- package/dist/actions/open-url.js +0 -28
- package/dist/actions/open-url.js.map +0 -1
- package/dist/actions/open-url.mjs +0 -26
- package/dist/actions/open-url.mjs.map +0 -1
- package/dist/actions/show-card.d.mts +0 -31
- package/dist/actions/show-card.d.ts +0 -31
- package/dist/actions/show-card.js +0 -28
- package/dist/actions/show-card.js.map +0 -1
- package/dist/actions/show-card.mjs +0 -26
- package/dist/actions/show-card.mjs.map +0 -1
- package/dist/actions/submit/submit.d.mts +0 -51
- package/dist/actions/submit/submit.d.ts +0 -51
- package/dist/actions/submit/submit.js +0 -45
- package/dist/actions/submit/submit.js.map +0 -1
- package/dist/actions/submit/submit.mjs +0 -43
- package/dist/actions/submit/submit.mjs.map +0 -1
- package/dist/actions/toggle-visibility.d.mts +0 -29
- package/dist/actions/toggle-visibility.d.ts +0 -29
- package/dist/actions/toggle-visibility.js +0 -29
- package/dist/actions/toggle-visibility.js.map +0 -1
- package/dist/actions/toggle-visibility.mjs +0 -27
- package/dist/actions/toggle-visibility.mjs.map +0 -1
- package/dist/base.d.mts +0 -31
- package/dist/base.d.ts +0 -31
- package/dist/base.js +0 -105
- package/dist/base.js.map +0 -1
- package/dist/base.mjs +0 -103
- package/dist/base.mjs.map +0 -1
- package/dist/card.d.mts +0 -31
- package/dist/card.d.ts +0 -31
- package/dist/card.js +0 -117
- package/dist/card.js.map +0 -1
- package/dist/card.mjs +0 -114
- package/dist/card.mjs.map +0 -1
- package/dist/charts/color.d.mts +0 -3
- package/dist/charts/color.d.ts +0 -3
- package/dist/charts/color.js +0 -4
- package/dist/charts/color.js.map +0 -1
- package/dist/charts/color.mjs +0 -3
- package/dist/charts/color.mjs.map +0 -1
- package/dist/charts/donut.d.mts +0 -2288
- package/dist/charts/donut.d.ts +0 -2288
- package/dist/charts/donut.js +0 -79
- package/dist/charts/donut.js.map +0 -1
- package/dist/charts/donut.mjs +0 -76
- package/dist/charts/donut.mjs.map +0 -1
- package/dist/charts/index.d.mts +0 -31
- package/dist/charts/index.d.ts +0 -31
- package/dist/charts/index.js +0 -28
- package/dist/charts/index.js.map +0 -1
- package/dist/charts/index.mjs +0 -5
- package/dist/charts/index.mjs.map +0 -1
- package/dist/charts/line.d.mts +0 -31
- package/dist/charts/line.d.ts +0 -31
- package/dist/charts/line.js +0 -97
- package/dist/charts/line.js.map +0 -1
- package/dist/charts/line.mjs +0 -93
- package/dist/charts/line.mjs.map +0 -1
- package/dist/common/associated-inputs.d.mts +0 -3
- package/dist/common/associated-inputs.d.ts +0 -3
- package/dist/common/associated-inputs.js +0 -4
- package/dist/common/associated-inputs.js.map +0 -1
- package/dist/common/associated-inputs.mjs +0 -3
- package/dist/common/associated-inputs.mjs.map +0 -1
- package/dist/common/auth/auth-card-button.d.mts +0 -50
- package/dist/common/auth/auth-card-button.d.ts +0 -50
- package/dist/common/auth/auth-card-button.js +0 -45
- package/dist/common/auth/auth-card-button.js.map +0 -1
- package/dist/common/auth/auth-card-button.mjs +0 -43
- package/dist/common/auth/auth-card-button.mjs.map +0 -1
- package/dist/common/auth/auth.d.mts +0 -52
- package/dist/common/auth/auth.d.ts +0 -52
- package/dist/common/auth/auth.js +0 -46
- package/dist/common/auth/auth.js.map +0 -1
- package/dist/common/auth/auth.mjs +0 -44
- package/dist/common/auth/auth.mjs.map +0 -1
- package/dist/common/auth/index.d.mts +0 -3
- package/dist/common/auth/index.d.ts +0 -3
- package/dist/common/auth/index.js +0 -28
- package/dist/common/auth/index.js.map +0 -1
- package/dist/common/auth/index.mjs +0 -5
- package/dist/common/auth/index.mjs.map +0 -1
- package/dist/common/auth/token-exchange-resource.d.mts +0 -37
- package/dist/common/auth/token-exchange-resource.d.ts +0 -37
- package/dist/common/auth/token-exchange-resource.js +0 -25
- package/dist/common/auth/token-exchange-resource.js.map +0 -1
- package/dist/common/auth/token-exchange-resource.mjs +0 -23
- package/dist/common/auth/token-exchange-resource.mjs.map +0 -1
- package/dist/common/color.d.mts +0 -3
- package/dist/common/color.d.ts +0 -3
- package/dist/common/color.js +0 -4
- package/dist/common/color.js.map +0 -1
- package/dist/common/color.mjs +0 -3
- package/dist/common/color.mjs.map +0 -1
- package/dist/common/font.d.mts +0 -5
- package/dist/common/font.d.ts +0 -5
- package/dist/common/font.js +0 -4
- package/dist/common/font.js.map +0 -1
- package/dist/common/font.mjs +0 -3
- package/dist/common/font.mjs.map +0 -1
- package/dist/common/horizontal-alignment.d.mts +0 -6
- package/dist/common/horizontal-alignment.d.ts +0 -6
- package/dist/common/horizontal-alignment.js +0 -4
- package/dist/common/horizontal-alignment.js.map +0 -1
- package/dist/common/horizontal-alignment.mjs +0 -3
- package/dist/common/horizontal-alignment.mjs.map +0 -1
- package/dist/common/refresh.d.mts +0 -23
- package/dist/common/refresh.d.ts +0 -23
- package/dist/common/refresh.js +0 -4
- package/dist/common/refresh.js.map +0 -1
- package/dist/common/refresh.mjs +0 -3
- package/dist/common/refresh.mjs.map +0 -1
- package/dist/common/spacing.d.mts +0 -6
- package/dist/common/spacing.d.ts +0 -6
- package/dist/common/spacing.js +0 -4
- package/dist/common/spacing.js.map +0 -1
- package/dist/common/spacing.mjs +0 -3
- package/dist/common/spacing.mjs.map +0 -1
- package/dist/common/target-element.d.mts +0 -16
- package/dist/common/target-element.d.ts +0 -16
- package/dist/common/target-element.js +0 -4
- package/dist/common/target-element.js.map +0 -1
- package/dist/common/target-element.mjs +0 -3
- package/dist/common/target-element.mjs.map +0 -1
- package/dist/common/target-width.d.mts +0 -9
- package/dist/common/target-width.d.ts +0 -9
- package/dist/common/target-width.js +0 -4
- package/dist/common/target-width.js.map +0 -1
- package/dist/common/target-width.mjs +0 -3
- package/dist/common/target-width.mjs.map +0 -1
- package/dist/common/vertical-alignment.d.mts +0 -6
- package/dist/common/vertical-alignment.d.ts +0 -6
- package/dist/common/vertical-alignment.js +0 -4
- package/dist/common/vertical-alignment.js.map +0 -1
- package/dist/common/vertical-alignment.mjs +0 -3
- package/dist/common/vertical-alignment.mjs.map +0 -1
- package/dist/containers/action-set.d.mts +0 -31
- package/dist/containers/action-set.d.ts +0 -31
- package/dist/containers/action-set.js +0 -28
- package/dist/containers/action-set.js.map +0 -1
- package/dist/containers/action-set.mjs +0 -26
- package/dist/containers/action-set.mjs.map +0 -1
- package/dist/containers/base.d.mts +0 -31
- package/dist/containers/base.d.ts +0 -31
- package/dist/containers/base.js +0 -68
- package/dist/containers/base.js.map +0 -1
- package/dist/containers/base.mjs +0 -66
- package/dist/containers/base.mjs.map +0 -1
- package/dist/containers/carousel.d.mts +0 -31
- package/dist/containers/carousel.d.ts +0 -31
- package/dist/containers/carousel.js +0 -158
- package/dist/containers/carousel.js.map +0 -1
- package/dist/containers/carousel.mjs +0 -155
- package/dist/containers/carousel.mjs.map +0 -1
- package/dist/containers/column-set.d.mts +0 -31
- package/dist/containers/column-set.d.ts +0 -31
- package/dist/containers/column-set.js +0 -44
- package/dist/containers/column-set.js.map +0 -1
- package/dist/containers/column-set.mjs +0 -42
- package/dist/containers/column-set.mjs.map +0 -1
- package/dist/containers/column.d.mts +0 -31
- package/dist/containers/column.d.ts +0 -31
- package/dist/containers/column.js +0 -60
- package/dist/containers/column.js.map +0 -1
- package/dist/containers/column.mjs +0 -58
- package/dist/containers/column.mjs.map +0 -1
- package/dist/containers/container.d.mts +0 -31
- package/dist/containers/container.d.ts +0 -31
- package/dist/containers/container.js +0 -52
- package/dist/containers/container.js.map +0 -1
- package/dist/containers/container.mjs +0 -50
- package/dist/containers/container.mjs.map +0 -1
- package/dist/containers/fact-set.d.mts +0 -31
- package/dist/containers/fact-set.d.ts +0 -31
- package/dist/containers/fact-set.js +0 -43
- package/dist/containers/fact-set.js.map +0 -1
- package/dist/containers/fact-set.mjs +0 -40
- package/dist/containers/fact-set.mjs.map +0 -1
- package/dist/containers/image-set.d.mts +0 -31
- package/dist/containers/image-set.d.ts +0 -31
- package/dist/containers/image-set.js +0 -46
- package/dist/containers/image-set.js.map +0 -1
- package/dist/containers/image-set.mjs +0 -44
- package/dist/containers/image-set.mjs.map +0 -1
- package/dist/containers/index.d.mts +0 -31
- package/dist/containers/index.d.ts +0 -31
- package/dist/containers/index.js +0 -56
- package/dist/containers/index.js.map +0 -1
- package/dist/containers/index.mjs +0 -9
- package/dist/containers/index.mjs.map +0 -1
- package/dist/element.d.mts +0 -31
- package/dist/element.d.ts +0 -31
- package/dist/element.js +0 -4
- package/dist/element.js.map +0 -1
- package/dist/element.mjs +0 -3
- package/dist/element.mjs.map +0 -1
- package/dist/inputs/base.d.mts +0 -31
- package/dist/inputs/base.d.ts +0 -31
- package/dist/inputs/base.js +0 -63
- package/dist/inputs/base.js.map +0 -1
- package/dist/inputs/base.mjs +0 -61
- package/dist/inputs/base.mjs.map +0 -1
- package/dist/inputs/choice-set.d.mts +0 -31
- package/dist/inputs/choice-set.d.ts +0 -31
- package/dist/inputs/choice-set.js +0 -121
- package/dist/inputs/choice-set.js.map +0 -1
- package/dist/inputs/choice-set.mjs +0 -117
- package/dist/inputs/choice-set.mjs.map +0 -1
- package/dist/inputs/date.d.mts +0 -31
- package/dist/inputs/date.d.ts +0 -31
- package/dist/inputs/date.js +0 -52
- package/dist/inputs/date.js.map +0 -1
- package/dist/inputs/date.mjs +0 -50
- package/dist/inputs/date.mjs.map +0 -1
- package/dist/inputs/index.d.mts +0 -31
- package/dist/inputs/index.d.ts +0 -31
- package/dist/inputs/index.js +0 -49
- package/dist/inputs/index.js.map +0 -1
- package/dist/inputs/index.mjs +0 -8
- package/dist/inputs/index.mjs.map +0 -1
- package/dist/inputs/number.d.mts +0 -31
- package/dist/inputs/number.d.ts +0 -31
- package/dist/inputs/number.js +0 -52
- package/dist/inputs/number.js.map +0 -1
- package/dist/inputs/number.mjs +0 -50
- package/dist/inputs/number.mjs.map +0 -1
- package/dist/inputs/text.d.mts +0 -31
- package/dist/inputs/text.d.ts +0 -31
- package/dist/inputs/text.js +0 -76
- package/dist/inputs/text.js.map +0 -1
- package/dist/inputs/text.mjs +0 -74
- package/dist/inputs/text.mjs.map +0 -1
- package/dist/inputs/time.d.mts +0 -31
- package/dist/inputs/time.d.ts +0 -31
- package/dist/inputs/time.js +0 -52
- package/dist/inputs/time.js.map +0 -1
- package/dist/inputs/time.mjs +0 -50
- package/dist/inputs/time.mjs.map +0 -1
- package/dist/inputs/toggle.d.mts +0 -31
- package/dist/inputs/toggle.d.ts +0 -31
- package/dist/inputs/toggle.js +0 -57
- package/dist/inputs/toggle.js.map +0 -1
- package/dist/inputs/toggle.mjs +0 -55
- package/dist/inputs/toggle.mjs.map +0 -1
- package/dist/layouts/area-grid.d.mts +0 -133
- package/dist/layouts/area-grid.d.ts +0 -133
- package/dist/layouts/area-grid.js +0 -113
- package/dist/layouts/area-grid.js.map +0 -1
- package/dist/layouts/area-grid.mjs +0 -110
- package/dist/layouts/area-grid.mjs.map +0 -1
- package/dist/layouts/flow.d.mts +0 -119
- package/dist/layouts/flow.d.ts +0 -119
- package/dist/layouts/flow.js +0 -96
- package/dist/layouts/flow.js.map +0 -1
- package/dist/layouts/flow.mjs +0 -94
- package/dist/layouts/flow.mjs.map +0 -1
- package/dist/layouts/index.d.mts +0 -14
- package/dist/layouts/index.d.ts +0 -14
- package/dist/layouts/index.js +0 -28
- package/dist/layouts/index.js.map +0 -1
- package/dist/layouts/index.mjs +0 -5
- package/dist/layouts/index.mjs.map +0 -1
- package/dist/layouts/stack.d.mts +0 -28
- package/dist/layouts/stack.d.ts +0 -28
- package/dist/layouts/stack.js +0 -24
- package/dist/layouts/stack.js.map +0 -1
- package/dist/layouts/stack.mjs +0 -22
- package/dist/layouts/stack.mjs.map +0 -1
- package/dist/medias/background-image.d.mts +0 -56
- package/dist/medias/background-image.d.ts +0 -56
- package/dist/medias/background-image.js +0 -49
- package/dist/medias/background-image.js.map +0 -1
- package/dist/medias/background-image.mjs +0 -47
- package/dist/medias/background-image.mjs.map +0 -1
- package/dist/medias/badge.d.mts +0 -31
- package/dist/medias/badge.d.ts +0 -31
- package/dist/medias/badge.js +0 -84
- package/dist/medias/badge.js.map +0 -1
- package/dist/medias/badge.mjs +0 -82
- package/dist/medias/badge.mjs.map +0 -1
- package/dist/medias/code-block.d.mts +0 -31
- package/dist/medias/code-block.d.ts +0 -31
- package/dist/medias/code-block.js +0 -43
- package/dist/medias/code-block.js.map +0 -1
- package/dist/medias/code-block.mjs +0 -41
- package/dist/medias/code-block.mjs.map +0 -1
- package/dist/medias/icon.d.mts +0 -31
- package/dist/medias/icon.d.ts +0 -31
- package/dist/medias/icon.js +0 -56
- package/dist/medias/icon.js.map +0 -1
- package/dist/medias/icon.mjs +0 -54
- package/dist/medias/icon.mjs.map +0 -1
- package/dist/medias/image.d.mts +0 -31
- package/dist/medias/image.d.ts +0 -31
- package/dist/medias/image.js +0 -80
- package/dist/medias/image.js.map +0 -1
- package/dist/medias/image.mjs +0 -78
- package/dist/medias/image.mjs.map +0 -1
- package/dist/medias/index.d.mts +0 -31
- package/dist/medias/index.d.ts +0 -31
- package/dist/medias/index.js +0 -84
- package/dist/medias/index.js.map +0 -1
- package/dist/medias/index.mjs +0 -13
- package/dist/medias/index.mjs.map +0 -1
- package/dist/medias/media.d.mts +0 -31
- package/dist/medias/media.d.ts +0 -31
- package/dist/medias/media.js +0 -91
- package/dist/medias/media.js.map +0 -1
- package/dist/medias/media.mjs +0 -87
- package/dist/medias/media.mjs.map +0 -1
- package/dist/medias/progress-bar.d.mts +0 -31
- package/dist/medias/progress-bar.d.ts +0 -31
- package/dist/medias/progress-bar.js +0 -43
- package/dist/medias/progress-bar.js.map +0 -1
- package/dist/medias/progress-bar.mjs +0 -41
- package/dist/medias/progress-bar.mjs.map +0 -1
- package/dist/medias/progress-ring.d.mts +0 -31
- package/dist/medias/progress-ring.d.ts +0 -31
- package/dist/medias/progress-ring.js +0 -46
- package/dist/medias/progress-ring.js.map +0 -1
- package/dist/medias/progress-ring.mjs +0 -44
- package/dist/medias/progress-ring.mjs.map +0 -1
- package/dist/medias/rich-text-block.d.mts +0 -31
- package/dist/medias/rich-text-block.d.ts +0 -31
- package/dist/medias/rich-text-block.js +0 -33
- package/dist/medias/rich-text-block.js.map +0 -1
- package/dist/medias/rich-text-block.mjs +0 -31
- package/dist/medias/rich-text-block.mjs.map +0 -1
- package/dist/medias/text-block.d.mts +0 -31
- package/dist/medias/text-block.d.ts +0 -31
- package/dist/medias/text-block.js +0 -95
- package/dist/medias/text-block.js.map +0 -1
- package/dist/medias/text-block.mjs +0 -93
- package/dist/medias/text-block.mjs.map +0 -1
- package/dist/medias/text-run.d.mts +0 -31
- package/dist/medias/text-run.d.ts +0 -31
- package/dist/medias/text-run.js +0 -108
- package/dist/medias/text-run.js.map +0 -1
- package/dist/medias/text-run.mjs +0 -106
- package/dist/medias/text-run.mjs.map +0 -1
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { H as IProgressBar, J as ProgressBar, P as ProgressBarOptions } from '../charts/donut.mjs';
|
|
2
|
-
import '../common/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 '../charts/color.mjs';
|
|
16
|
-
import '../layouts/index.mjs';
|
|
17
|
-
import '../layouts/area-grid.mjs';
|
|
18
|
-
import '../layouts/flow.mjs';
|
|
19
|
-
import '../layouts/stack.mjs';
|
|
20
|
-
import './background-image.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';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { H as IProgressBar, J as ProgressBar, P as ProgressBarOptions } from '../charts/donut.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';
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { K as IProgressRing, O as ProgressRing, N as ProgressRingOptions } from '../charts/donut.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';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { K as IProgressRing, O as ProgressRing, N as ProgressRingOptions } from '../charts/donut.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';
|
|
@@ -1,46 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,44 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { S as IRichTextBlock, V as RichTextBlock, U as RichTextBlockOptions } from '../charts/donut.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';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { S as IRichTextBlock, V as RichTextBlock, U as RichTextBlockOptions } from '../charts/donut.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';
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { W as ITextBlock, Y as TextBlock, X as TextBlockOptions } from '../charts/donut.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';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { W as ITextBlock, Y as TextBlock, X as TextBlockOptions } from '../charts/donut.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';
|
|
@@ -1,95 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|