@microsoft/teams.cards 0.2.14 → 2.0.0-preview.1
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/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 +2 -2
- 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
package/dist/index.d.mts
CHANGED
|
@@ -1,31 +1,9 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { HorizontalAlignment } from './common/horizontal-alignment.mjs';
|
|
3
|
-
export { VerticalAlignment } from './common/vertical-alignment.mjs';
|
|
4
|
-
export { Spacing } from './common/spacing.mjs';
|
|
5
|
-
export { AssociatedInputs } from './common/associated-inputs.mjs';
|
|
6
|
-
export { TargetElement } from './common/target-element.mjs';
|
|
7
|
-
export { Color } from './common/color.mjs';
|
|
8
|
-
export { FontSize, FontType, FontWeight } from './common/font.mjs';
|
|
9
|
-
export { Refresh } from './common/refresh.mjs';
|
|
10
|
-
export { Auth, IAuth } from './common/auth/auth.mjs';
|
|
11
|
-
export { AuthCardButtonOptions, AuthCardbutton, IAuthCardButton } from './common/auth/auth-card-button.mjs';
|
|
12
|
-
export { ITokenExchangeResource, TokenExchangeResource } from './common/auth/token-exchange-resource.mjs';
|
|
13
|
-
export { TargetWidth } from './common/target-width.mjs';
|
|
14
|
-
export { ITabInfo } from './common/tab-info.mjs';
|
|
15
|
-
export { Layout } from './layouts/index.mjs';
|
|
16
|
-
export { ExecuteAction, ExecuteActionOptions, IExecuteAction } from './actions/execute.mjs';
|
|
17
|
-
export { IOpenUrlAction, OpenUrlAction, OpenUrlOptions } from './actions/open-url.mjs';
|
|
18
|
-
export { ISubmitAction, MSTeamsData, SubmitAction, SubmitActionOptions } from './actions/submit/submit.mjs';
|
|
1
|
+
export { ActionArray, ActionMode, ActionSet, ActionSetOptions, ActionStyle, AdaptiveCard, AdaptiveCardOptions, AreaGridLayout, AreaGridLayoutOptions, AuthCardButton, AuthCardButtonOptions, Authentication, AuthenticationOptions, BackgroundImage, BackgroundImageOptions, Badge, BadgeAppearance, BadgeIconPosition, BadgeOptions, BadgeShape, BadgeSize, BadgeStyle, BarChartDataValue, BarChartDataValueOptions, CalendarEventAttendee, CalendarEventAttendeeOptions, CalendarEventProperties, CalendarEventPropertiesOptions, CaptionSource, CaptionSourceOptions, CardAction, CardElement, CardElementArray, CardMetadata, CardMetadataOptions, Carousel, CarouselOptions, CarouselPage, CarouselPageAnimation, CarouselPageOptions, ChartColor, ChartColorSet, Choice, ChoiceOptions, ChoiceSetInput, ChoiceSetInputOptions, CodeBlock, CodeBlockOptions, Column, ColumnArray, ColumnDefinition, ColumnDefinitionOptions, ColumnOptions, ColumnSet, ColumnSetOptions, ComEventMicrosoftGraphComponent, ComEventMicrosoftGraphComponentOptions, ComFileMicrosoftGraphComponent, ComFileMicrosoftGraphComponentOptions, ComResourceMicrosoftGraphComponent, ComResourceMicrosoftGraphComponentOptions, ComUserMicrosoftGraphComponent, ComUserMicrosoftGraphComponentOptions, ComUsersMicrosoftGraphComponent, ComUsersMicrosoftGraphComponentOptions, CompoundButton, CompoundButtonOptions, Container, ContainerOptions, ContainerStyle, DateInput, DateInputOptions, DonutChart, DonutChartData, DonutChartDataOptions, DonutChartOptions, ElementHeight, ExecuteAction, ExecuteActionOptions, Fact, FactOptions, FactSet, FactSetOptions, FallbackAction, FallbackElement, FileProperties, FilePropertiesOptions, FillMode, FlowLayout, FlowLayoutItemFit, FlowLayoutOptions, FontType, GaugeChart, GaugeChartLegend, GaugeChartLegendOptions, GaugeChartOptions, GaugeChartValueFormat, GridArea, GridAreaOptions, GroupedVerticalBarChart, GroupedVerticalBarChartData, GroupedVerticalBarChartDataOptions, GroupedVerticalBarChartOptions, HorizontalAlignment, HorizontalBarChart, HorizontalBarChartDataValue, HorizontalBarChartDataValueOptions, HorizontalBarChartDisplayMode, HorizontalBarChartOptions, HostCapabilities, IActionSet, IAdaptiveCard, IAreaGridLayout, IAuthCardButton, IAuthentication, IBackgroundImage, IBadge, IBarChartDataValue, ICalendarEventAttendee, ICalendarEventProperties, ICaptionSource, ICardMetadata, ICarousel, ICarouselPage, IChoice, IChoiceSetInput, ICodeBlock, IColumn, IColumnDefinition, IColumnSet, IComEventMicrosoftGraphComponent, IComFileMicrosoftGraphComponent, IComResourceMicrosoftGraphComponent, IComUserMicrosoftGraphComponent, IComUsersMicrosoftGraphComponent, ICompoundButton, IContainer, IDateInput, IDonutChart, IDonutChartData, IExecuteAction, IFact, IFactSet, IFileProperties, IFlowLayout, IGaugeChart, IGaugeChartLegend, IGridArea, IGroupedVerticalBarChart, IGroupedVerticalBarChartData, IHorizontalBarChart, IHorizontalBarChartDataValue, IHostCapabilities, IIcon, IIconInfo, IImage, IImageSet, ILineChart, ILineChartData, ILineChartValue, IMedia, IMediaSource, IMention, IMentionedEntity, INumberInput, IOpenUrlAction, IPersonaProperties, IPersonaSetProperties, IPieChart, IQueryData, IRating, IRatingInput, IRefreshDefinition, IResetInputsAction, IResourceProperties, IResourceVisualization, IRichTextBlock, IShowCardAction, IStackLayout, IStackedHorizontalBarChart, IStackedHorizontalBarChartData, IStackedHorizontalBarChartDataPoint, ISubmitAction, ITable, ITableCell, ITableRow, ITargetElement, ITeamsCardProperties, ITeamsImageProperties, ITeamsSubmitActionFeedback, ITeamsSubmitActionProperties, ITextBlock, ITextInput, ITextRun, ITimeInput, IToggleInput, IToggleVisibilityAction, ITokenExchangeResource, IVerticalBarChart, IVerticalBarChartDataValue, Icon, IconInfo, IconInfoOptions, IconName, IconOptions, IconSize, IconStyle, Image, ImageOptions, ImageSet, ImageSetOptions, ImageSize, ImageStyle, InputTextStyle, LineChart, LineChartData, LineChartDataOptions, LineChartOptions, LineChartValue, LineChartValueOptions, Media, MediaOptions, MediaSource, MediaSourceOptions, Mention, MentionOptions, MentionType, MentionedEntity, MentionedEntityOptions, NumberInput, NumberInputOptions, OpenUrlAction, OpenUrlActionOptions, PersonaProperties, PersonaPropertiesOptions, PersonaSetProperties, PersonaSetPropertiesOptions, PieChart, PieChartOptions, QueryData, QueryDataOptions, Rating, RatingColor, RatingInput, RatingInputOptions, RatingOptions, RatingSize, RatingStyle, RefreshDefinition, RefreshDefinitionOptions, ResetInputsAction, ResetInputsActionOptions, ResourceProperties, ResourcePropertiesOptions, ResourceVisualization, ResourceVisualizationOptions, RichTextBlock, RichTextBlockInlineArray, RichTextBlockOptions, ShowCardAction, ShowCardActionOptions, Size, Spacing, StackLayout, StackLayoutOptions, StackedHorizontalBarChart, StackedHorizontalBarChartData, StackedHorizontalBarChartDataOptions, StackedHorizontalBarChartDataPoint, StackedHorizontalBarChartDataPointOptions, StackedHorizontalBarChartOptions, SubmitAction, SubmitActionOptions, Table, TableCell, TableCellArray, TableCellOptions, TableOptions, TableRow, TableRowArray, TableRowOptions, TargetElement, TargetElementOptions, TargetWidth, TeamsCardProperties, TeamsCardPropertiesOptions, TeamsImageProperties, TeamsImagePropertiesOptions, TeamsSubmitActionFeedback, TeamsSubmitActionFeedbackOptions, TeamsSubmitActionProperties, TeamsSubmitActionPropertiesOptions, TextBlock, TextBlockOptions, TextColor, TextInput, TextInputOptions, TextRun, TextRunOptions, TextSize, TextWeight, TimeInput, TimeInputOptions, ToggleInput, ToggleInputOptions, ToggleVisibilityAction, ToggleVisibilityActionOptions, TokenExchangeResource, TokenExchangeResourceOptions, VerticalAlignment, VerticalBarChart, VerticalBarChartDataValue, VerticalBarChartDataValueOptions, VerticalBarChartOptions, isActionSet, isAdaptiveCard, isAreaGridLayout, isBadge, isCarousel, isCarouselPage, isChoiceSetInput, isCodeBlock, isColumn, isColumnSet, isComEventMicrosoftGraphComponent, isComFileMicrosoftGraphComponent, isComResourceMicrosoftGraphComponent, isComUserMicrosoftGraphComponent, isComUsersMicrosoftGraphComponent, isCompoundButton, isContainer, isDateInput, isDonutChart, isExecuteAction, isFactSet, isFlowLayout, isGaugeChart, isGroupedVerticalBarChart, isHorizontalBarChart, isIcon, isImage, isImageSet, isLineChart, isMedia, isMention, isNumberInput, isOpenUrlAction, isPieChart, isQueryData, isRating, isRatingInput, isResetInputsAction, isRichTextBlock, isShowCardAction, isStackLayout, isStackedHorizontalBarChart, isSubmitAction, isTable, isTableCell, isTableRow, isTextBlock, isTextInput, isTextRun, isTimeInput, isToggleInput, isToggleVisibilityAction, isVerticalBarChart } from './core.mjs';
|
|
19
2
|
export { IIMBackAction, IIMBackData, IMBackAction, IMBackActionOptions, IMBackData } from './actions/submit/im-back.mjs';
|
|
20
3
|
export { IInvokeAction, IInvokeData, InvokeAction, InvokeActionOptions, InvokeData } from './actions/submit/invoke.mjs';
|
|
21
4
|
export { IMessageBackAction, IMessageBackData, MessageBackAction, MessageBackActionOptions, MessageBackData } from './actions/submit/message-back.mjs';
|
|
22
5
|
export { ISignInAction, ISignInData, SignInAction, SignInActionOptions, SignInData } from './actions/submit/sign-in.mjs';
|
|
23
6
|
export { ITaskFetchAction, ITaskFetchData, TaskFetchAction, TaskFetchActionOptions, TaskFetchData, TaskFetchDataValues } from './actions/submit/task-fetch.mjs';
|
|
24
7
|
export { CollabStageAction, CollabStageActionOptions, CollabStageData, CollabStageValueData, ICollabStageAction, ICollabStageData, ICollabStageValueData } from './actions/submit/collab-stage.mjs';
|
|
25
|
-
export {
|
|
26
|
-
|
|
27
|
-
export { BackgroundImage, BackgroundImageOptions, IBackgroundImage } from './medias/background-image.mjs';
|
|
28
|
-
export { FlowLayout, FlowLayoutOptions, IFlowLayout } from './layouts/flow.mjs';
|
|
29
|
-
export { AreaGridLayout, AreaGridLayoutOptions, GridArea, IAreaGridLayout, IGridArea } from './layouts/area-grid.mjs';
|
|
30
|
-
export { IStackLayout, StackLayout, StackLayoutOptions } from './layouts/stack.mjs';
|
|
31
|
-
import './actions/base.mjs';
|
|
8
|
+
export { ITabInfo } from './common/tab-info.mjs';
|
|
9
|
+
import './actions/submit/ms-teams-data.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,9 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { HorizontalAlignment } from './common/horizontal-alignment.js';
|
|
3
|
-
export { VerticalAlignment } from './common/vertical-alignment.js';
|
|
4
|
-
export { Spacing } from './common/spacing.js';
|
|
5
|
-
export { AssociatedInputs } from './common/associated-inputs.js';
|
|
6
|
-
export { TargetElement } from './common/target-element.js';
|
|
7
|
-
export { Color } from './common/color.js';
|
|
8
|
-
export { FontSize, FontType, FontWeight } from './common/font.js';
|
|
9
|
-
export { Refresh } from './common/refresh.js';
|
|
10
|
-
export { Auth, IAuth } from './common/auth/auth.js';
|
|
11
|
-
export { AuthCardButtonOptions, AuthCardbutton, IAuthCardButton } from './common/auth/auth-card-button.js';
|
|
12
|
-
export { ITokenExchangeResource, TokenExchangeResource } from './common/auth/token-exchange-resource.js';
|
|
13
|
-
export { TargetWidth } from './common/target-width.js';
|
|
14
|
-
export { ITabInfo } from './common/tab-info.js';
|
|
15
|
-
export { Layout } from './layouts/index.js';
|
|
16
|
-
export { ExecuteAction, ExecuteActionOptions, IExecuteAction } from './actions/execute.js';
|
|
17
|
-
export { IOpenUrlAction, OpenUrlAction, OpenUrlOptions } from './actions/open-url.js';
|
|
18
|
-
export { ISubmitAction, MSTeamsData, SubmitAction, SubmitActionOptions } from './actions/submit/submit.js';
|
|
1
|
+
export { ActionArray, ActionMode, ActionSet, ActionSetOptions, ActionStyle, AdaptiveCard, AdaptiveCardOptions, AreaGridLayout, AreaGridLayoutOptions, AuthCardButton, AuthCardButtonOptions, Authentication, AuthenticationOptions, BackgroundImage, BackgroundImageOptions, Badge, BadgeAppearance, BadgeIconPosition, BadgeOptions, BadgeShape, BadgeSize, BadgeStyle, BarChartDataValue, BarChartDataValueOptions, CalendarEventAttendee, CalendarEventAttendeeOptions, CalendarEventProperties, CalendarEventPropertiesOptions, CaptionSource, CaptionSourceOptions, CardAction, CardElement, CardElementArray, CardMetadata, CardMetadataOptions, Carousel, CarouselOptions, CarouselPage, CarouselPageAnimation, CarouselPageOptions, ChartColor, ChartColorSet, Choice, ChoiceOptions, ChoiceSetInput, ChoiceSetInputOptions, CodeBlock, CodeBlockOptions, Column, ColumnArray, ColumnDefinition, ColumnDefinitionOptions, ColumnOptions, ColumnSet, ColumnSetOptions, ComEventMicrosoftGraphComponent, ComEventMicrosoftGraphComponentOptions, ComFileMicrosoftGraphComponent, ComFileMicrosoftGraphComponentOptions, ComResourceMicrosoftGraphComponent, ComResourceMicrosoftGraphComponentOptions, ComUserMicrosoftGraphComponent, ComUserMicrosoftGraphComponentOptions, ComUsersMicrosoftGraphComponent, ComUsersMicrosoftGraphComponentOptions, CompoundButton, CompoundButtonOptions, Container, ContainerOptions, ContainerStyle, DateInput, DateInputOptions, DonutChart, DonutChartData, DonutChartDataOptions, DonutChartOptions, ElementHeight, ExecuteAction, ExecuteActionOptions, Fact, FactOptions, FactSet, FactSetOptions, FallbackAction, FallbackElement, FileProperties, FilePropertiesOptions, FillMode, FlowLayout, FlowLayoutItemFit, FlowLayoutOptions, FontType, GaugeChart, GaugeChartLegend, GaugeChartLegendOptions, GaugeChartOptions, GaugeChartValueFormat, GridArea, GridAreaOptions, GroupedVerticalBarChart, GroupedVerticalBarChartData, GroupedVerticalBarChartDataOptions, GroupedVerticalBarChartOptions, HorizontalAlignment, HorizontalBarChart, HorizontalBarChartDataValue, HorizontalBarChartDataValueOptions, HorizontalBarChartDisplayMode, HorizontalBarChartOptions, HostCapabilities, IActionSet, IAdaptiveCard, IAreaGridLayout, IAuthCardButton, IAuthentication, IBackgroundImage, IBadge, IBarChartDataValue, ICalendarEventAttendee, ICalendarEventProperties, ICaptionSource, ICardMetadata, ICarousel, ICarouselPage, IChoice, IChoiceSetInput, ICodeBlock, IColumn, IColumnDefinition, IColumnSet, IComEventMicrosoftGraphComponent, IComFileMicrosoftGraphComponent, IComResourceMicrosoftGraphComponent, IComUserMicrosoftGraphComponent, IComUsersMicrosoftGraphComponent, ICompoundButton, IContainer, IDateInput, IDonutChart, IDonutChartData, IExecuteAction, IFact, IFactSet, IFileProperties, IFlowLayout, IGaugeChart, IGaugeChartLegend, IGridArea, IGroupedVerticalBarChart, IGroupedVerticalBarChartData, IHorizontalBarChart, IHorizontalBarChartDataValue, IHostCapabilities, IIcon, IIconInfo, IImage, IImageSet, ILineChart, ILineChartData, ILineChartValue, IMedia, IMediaSource, IMention, IMentionedEntity, INumberInput, IOpenUrlAction, IPersonaProperties, IPersonaSetProperties, IPieChart, IQueryData, IRating, IRatingInput, IRefreshDefinition, IResetInputsAction, IResourceProperties, IResourceVisualization, IRichTextBlock, IShowCardAction, IStackLayout, IStackedHorizontalBarChart, IStackedHorizontalBarChartData, IStackedHorizontalBarChartDataPoint, ISubmitAction, ITable, ITableCell, ITableRow, ITargetElement, ITeamsCardProperties, ITeamsImageProperties, ITeamsSubmitActionFeedback, ITeamsSubmitActionProperties, ITextBlock, ITextInput, ITextRun, ITimeInput, IToggleInput, IToggleVisibilityAction, ITokenExchangeResource, IVerticalBarChart, IVerticalBarChartDataValue, Icon, IconInfo, IconInfoOptions, IconName, IconOptions, IconSize, IconStyle, Image, ImageOptions, ImageSet, ImageSetOptions, ImageSize, ImageStyle, InputTextStyle, LineChart, LineChartData, LineChartDataOptions, LineChartOptions, LineChartValue, LineChartValueOptions, Media, MediaOptions, MediaSource, MediaSourceOptions, Mention, MentionOptions, MentionType, MentionedEntity, MentionedEntityOptions, NumberInput, NumberInputOptions, OpenUrlAction, OpenUrlActionOptions, PersonaProperties, PersonaPropertiesOptions, PersonaSetProperties, PersonaSetPropertiesOptions, PieChart, PieChartOptions, QueryData, QueryDataOptions, Rating, RatingColor, RatingInput, RatingInputOptions, RatingOptions, RatingSize, RatingStyle, RefreshDefinition, RefreshDefinitionOptions, ResetInputsAction, ResetInputsActionOptions, ResourceProperties, ResourcePropertiesOptions, ResourceVisualization, ResourceVisualizationOptions, RichTextBlock, RichTextBlockInlineArray, RichTextBlockOptions, ShowCardAction, ShowCardActionOptions, Size, Spacing, StackLayout, StackLayoutOptions, StackedHorizontalBarChart, StackedHorizontalBarChartData, StackedHorizontalBarChartDataOptions, StackedHorizontalBarChartDataPoint, StackedHorizontalBarChartDataPointOptions, StackedHorizontalBarChartOptions, SubmitAction, SubmitActionOptions, Table, TableCell, TableCellArray, TableCellOptions, TableOptions, TableRow, TableRowArray, TableRowOptions, TargetElement, TargetElementOptions, TargetWidth, TeamsCardProperties, TeamsCardPropertiesOptions, TeamsImageProperties, TeamsImagePropertiesOptions, TeamsSubmitActionFeedback, TeamsSubmitActionFeedbackOptions, TeamsSubmitActionProperties, TeamsSubmitActionPropertiesOptions, TextBlock, TextBlockOptions, TextColor, TextInput, TextInputOptions, TextRun, TextRunOptions, TextSize, TextWeight, TimeInput, TimeInputOptions, ToggleInput, ToggleInputOptions, ToggleVisibilityAction, ToggleVisibilityActionOptions, TokenExchangeResource, TokenExchangeResourceOptions, VerticalAlignment, VerticalBarChart, VerticalBarChartDataValue, VerticalBarChartDataValueOptions, VerticalBarChartOptions, isActionSet, isAdaptiveCard, isAreaGridLayout, isBadge, isCarousel, isCarouselPage, isChoiceSetInput, isCodeBlock, isColumn, isColumnSet, isComEventMicrosoftGraphComponent, isComFileMicrosoftGraphComponent, isComResourceMicrosoftGraphComponent, isComUserMicrosoftGraphComponent, isComUsersMicrosoftGraphComponent, isCompoundButton, isContainer, isDateInput, isDonutChart, isExecuteAction, isFactSet, isFlowLayout, isGaugeChart, isGroupedVerticalBarChart, isHorizontalBarChart, isIcon, isImage, isImageSet, isLineChart, isMedia, isMention, isNumberInput, isOpenUrlAction, isPieChart, isQueryData, isRating, isRatingInput, isResetInputsAction, isRichTextBlock, isShowCardAction, isStackLayout, isStackedHorizontalBarChart, isSubmitAction, isTable, isTableCell, isTableRow, isTextBlock, isTextInput, isTextRun, isTimeInput, isToggleInput, isToggleVisibilityAction, isVerticalBarChart } from './core.js';
|
|
19
2
|
export { IIMBackAction, IIMBackData, IMBackAction, IMBackActionOptions, IMBackData } from './actions/submit/im-back.js';
|
|
20
3
|
export { IInvokeAction, IInvokeData, InvokeAction, InvokeActionOptions, InvokeData } from './actions/submit/invoke.js';
|
|
21
4
|
export { IMessageBackAction, IMessageBackData, MessageBackAction, MessageBackActionOptions, MessageBackData } from './actions/submit/message-back.js';
|
|
22
5
|
export { ISignInAction, ISignInData, SignInAction, SignInActionOptions, SignInData } from './actions/submit/sign-in.js';
|
|
23
6
|
export { ITaskFetchAction, ITaskFetchData, TaskFetchAction, TaskFetchActionOptions, TaskFetchData, TaskFetchDataValues } from './actions/submit/task-fetch.js';
|
|
24
7
|
export { CollabStageAction, CollabStageActionOptions, CollabStageData, CollabStageValueData, ICollabStageAction, ICollabStageData, ICollabStageValueData } from './actions/submit/collab-stage.js';
|
|
25
|
-
export {
|
|
26
|
-
|
|
27
|
-
export { BackgroundImage, BackgroundImageOptions, IBackgroundImage } from './medias/background-image.js';
|
|
28
|
-
export { FlowLayout, FlowLayoutOptions, IFlowLayout } from './layouts/flow.js';
|
|
29
|
-
export { AreaGridLayout, AreaGridLayoutOptions, GridArea, IAreaGridLayout, IGridArea } from './layouts/area-grid.js';
|
|
30
|
-
export { IStackLayout, StackLayout, StackLayoutOptions } from './layouts/stack.js';
|
|
31
|
-
import './actions/base.js';
|
|
8
|
+
export { ITabInfo } from './common/tab-info.js';
|
|
9
|
+
import './actions/submit/ms-teams-data.js';
|
package/dist/index.js
CHANGED
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var core = require('./core');
|
|
3
4
|
var actions = require('./actions');
|
|
4
|
-
var charts = require('./charts');
|
|
5
5
|
var common = require('./common');
|
|
6
|
-
var containers = require('./containers');
|
|
7
|
-
var medias = require('./medias');
|
|
8
|
-
var card = require('./card');
|
|
9
|
-
var element = require('./element');
|
|
10
|
-
var inputs = require('./inputs');
|
|
11
|
-
var layouts = require('./layouts');
|
|
12
6
|
|
|
13
7
|
|
|
14
8
|
|
|
15
|
-
Object.keys(
|
|
9
|
+
Object.keys(core).forEach(function (k) {
|
|
16
10
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
17
11
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
12
|
+
get: function () { return core[k]; }
|
|
19
13
|
});
|
|
20
14
|
});
|
|
21
|
-
Object.keys(
|
|
15
|
+
Object.keys(actions).forEach(function (k) {
|
|
22
16
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
23
17
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
18
|
+
get: function () { return actions[k]; }
|
|
25
19
|
});
|
|
26
20
|
});
|
|
27
21
|
Object.keys(common).forEach(function (k) {
|
|
@@ -30,41 +24,5 @@ Object.keys(common).forEach(function (k) {
|
|
|
30
24
|
get: function () { return common[k]; }
|
|
31
25
|
});
|
|
32
26
|
});
|
|
33
|
-
Object.keys(containers).forEach(function (k) {
|
|
34
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function () { return containers[k]; }
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
Object.keys(medias).forEach(function (k) {
|
|
40
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () { return medias[k]; }
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
Object.keys(card).forEach(function (k) {
|
|
46
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function () { return card[k]; }
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
Object.keys(element).forEach(function (k) {
|
|
52
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
get: function () { return element[k]; }
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
Object.keys(inputs).forEach(function (k) {
|
|
58
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
get: function () { return inputs[k]; }
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
Object.keys(layouts).forEach(function (k) {
|
|
64
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () { return layouts[k]; }
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
27
|
//# sourceMappingURL=index.js.map
|
|
70
28
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
+
export * from './core';
|
|
1
2
|
export * from './actions';
|
|
2
|
-
export * from './charts';
|
|
3
3
|
export * from './common';
|
|
4
|
-
export * from './containers';
|
|
5
|
-
export * from './medias';
|
|
6
|
-
export * from './card';
|
|
7
|
-
export * from './element';
|
|
8
|
-
export * from './inputs';
|
|
9
|
-
export * from './layouts';
|
|
10
4
|
//# sourceMappingURL=index.mjs.map
|
|
11
5
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teams.cards",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.0-preview.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"test": "npx jest"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@microsoft/teams.config": "
|
|
38
|
+
"@microsoft/teams.config": "2.0.0-preview.1",
|
|
39
39
|
"@types/jest": "^29.5.12",
|
|
40
40
|
"jest": "^29.7.0",
|
|
41
41
|
"rimraf": "^6.0.1",
|
package/dist/actions/base.d.mts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
interface IAction {
|
|
2
|
-
/**
|
|
3
|
-
* A unique identifier associated with this Action.
|
|
4
|
-
*/
|
|
5
|
-
id?: string;
|
|
6
|
-
/**
|
|
7
|
-
* Label for button or link that represents this action.
|
|
8
|
-
*/
|
|
9
|
-
title?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+
|
|
12
|
-
*/
|
|
13
|
-
iconUrl?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Controls the style of an Action, which influences how the action is displayed, spoken, etc.
|
|
16
|
-
*/
|
|
17
|
-
style?: 'default' | 'positive' | 'destructive';
|
|
18
|
-
/**
|
|
19
|
-
* Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.
|
|
20
|
-
*/
|
|
21
|
-
fallback?: IAction | string;
|
|
22
|
-
/**
|
|
23
|
-
* Determines whether an action is displayed with a button or is moved to the overflow menu.
|
|
24
|
-
*/
|
|
25
|
-
mode?: 'primary' | 'secondary';
|
|
26
|
-
/**
|
|
27
|
-
* Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.
|
|
28
|
-
*/
|
|
29
|
-
tooltip?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Determines whether the action should be enabled.
|
|
32
|
-
*/
|
|
33
|
-
isEnabled?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
|
|
36
|
-
*/
|
|
37
|
-
requires?: Record<string, string>;
|
|
38
|
-
}
|
|
39
|
-
declare class Action implements IAction {
|
|
40
|
-
/**
|
|
41
|
-
* A unique identifier associated with this Action.
|
|
42
|
-
*/
|
|
43
|
-
id?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Label for button or link that represents this action.
|
|
46
|
-
*/
|
|
47
|
-
title?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+
|
|
50
|
-
*/
|
|
51
|
-
iconUrl?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Controls the style of an Action, which influences how the action is displayed, spoken, etc.
|
|
54
|
-
*/
|
|
55
|
-
style?: 'default' | 'positive' | 'destructive';
|
|
56
|
-
/**
|
|
57
|
-
* Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.
|
|
58
|
-
*/
|
|
59
|
-
fallback?: IAction | string;
|
|
60
|
-
/**
|
|
61
|
-
* Determines whether an action is displayed with a button or is moved to the overflow menu.
|
|
62
|
-
*/
|
|
63
|
-
mode?: 'primary' | 'secondary';
|
|
64
|
-
/**
|
|
65
|
-
* Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.
|
|
66
|
-
*/
|
|
67
|
-
tooltip?: string;
|
|
68
|
-
/**
|
|
69
|
-
* Determines whether the action should be enabled.
|
|
70
|
-
*/
|
|
71
|
-
isEnabled?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
|
|
74
|
-
*/
|
|
75
|
-
requires?: Record<string, string>;
|
|
76
|
-
constructor(value?: IAction);
|
|
77
|
-
withId(value: string): this;
|
|
78
|
-
withTitle(value: string): this;
|
|
79
|
-
withIconUrl(value: string): this;
|
|
80
|
-
withStyle(value: 'default' | 'positive' | 'destructive'): this;
|
|
81
|
-
withFallback(value: IAction | string): this;
|
|
82
|
-
withMode(value: 'primary' | 'secondary'): this;
|
|
83
|
-
withTooltip(value: string): this;
|
|
84
|
-
withEnabled(value?: boolean): this;
|
|
85
|
-
withRequires(value: Record<string, string>): this;
|
|
86
|
-
withRequire(key: string, value: string): this;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export { Action, type IAction };
|
package/dist/actions/base.d.ts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
interface IAction {
|
|
2
|
-
/**
|
|
3
|
-
* A unique identifier associated with this Action.
|
|
4
|
-
*/
|
|
5
|
-
id?: string;
|
|
6
|
-
/**
|
|
7
|
-
* Label for button or link that represents this action.
|
|
8
|
-
*/
|
|
9
|
-
title?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+
|
|
12
|
-
*/
|
|
13
|
-
iconUrl?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Controls the style of an Action, which influences how the action is displayed, spoken, etc.
|
|
16
|
-
*/
|
|
17
|
-
style?: 'default' | 'positive' | 'destructive';
|
|
18
|
-
/**
|
|
19
|
-
* Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.
|
|
20
|
-
*/
|
|
21
|
-
fallback?: IAction | string;
|
|
22
|
-
/**
|
|
23
|
-
* Determines whether an action is displayed with a button or is moved to the overflow menu.
|
|
24
|
-
*/
|
|
25
|
-
mode?: 'primary' | 'secondary';
|
|
26
|
-
/**
|
|
27
|
-
* Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.
|
|
28
|
-
*/
|
|
29
|
-
tooltip?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Determines whether the action should be enabled.
|
|
32
|
-
*/
|
|
33
|
-
isEnabled?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
|
|
36
|
-
*/
|
|
37
|
-
requires?: Record<string, string>;
|
|
38
|
-
}
|
|
39
|
-
declare class Action implements IAction {
|
|
40
|
-
/**
|
|
41
|
-
* A unique identifier associated with this Action.
|
|
42
|
-
*/
|
|
43
|
-
id?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Label for button or link that represents this action.
|
|
46
|
-
*/
|
|
47
|
-
title?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+
|
|
50
|
-
*/
|
|
51
|
-
iconUrl?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Controls the style of an Action, which influences how the action is displayed, spoken, etc.
|
|
54
|
-
*/
|
|
55
|
-
style?: 'default' | 'positive' | 'destructive';
|
|
56
|
-
/**
|
|
57
|
-
* Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.
|
|
58
|
-
*/
|
|
59
|
-
fallback?: IAction | string;
|
|
60
|
-
/**
|
|
61
|
-
* Determines whether an action is displayed with a button or is moved to the overflow menu.
|
|
62
|
-
*/
|
|
63
|
-
mode?: 'primary' | 'secondary';
|
|
64
|
-
/**
|
|
65
|
-
* Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.
|
|
66
|
-
*/
|
|
67
|
-
tooltip?: string;
|
|
68
|
-
/**
|
|
69
|
-
* Determines whether the action should be enabled.
|
|
70
|
-
*/
|
|
71
|
-
isEnabled?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
|
|
74
|
-
*/
|
|
75
|
-
requires?: Record<string, string>;
|
|
76
|
-
constructor(value?: IAction);
|
|
77
|
-
withId(value: string): this;
|
|
78
|
-
withTitle(value: string): this;
|
|
79
|
-
withIconUrl(value: string): this;
|
|
80
|
-
withStyle(value: 'default' | 'positive' | 'destructive'): this;
|
|
81
|
-
withFallback(value: IAction | string): this;
|
|
82
|
-
withMode(value: 'primary' | 'secondary'): this;
|
|
83
|
-
withTooltip(value: string): this;
|
|
84
|
-
withEnabled(value?: boolean): this;
|
|
85
|
-
withRequires(value: Record<string, string>): this;
|
|
86
|
-
withRequire(key: string, value: string): this;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export { Action, type IAction };
|
package/dist/actions/base.js
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class Action {
|
|
4
|
-
/**
|
|
5
|
-
* A unique identifier associated with this Action.
|
|
6
|
-
*/
|
|
7
|
-
id;
|
|
8
|
-
/**
|
|
9
|
-
* Label for button or link that represents this action.
|
|
10
|
-
*/
|
|
11
|
-
title;
|
|
12
|
-
/**
|
|
13
|
-
* Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+
|
|
14
|
-
*/
|
|
15
|
-
iconUrl;
|
|
16
|
-
/**
|
|
17
|
-
* Controls the style of an Action, which influences how the action is displayed, spoken, etc.
|
|
18
|
-
*/
|
|
19
|
-
style;
|
|
20
|
-
/**
|
|
21
|
-
* Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.
|
|
22
|
-
*/
|
|
23
|
-
fallback;
|
|
24
|
-
/**
|
|
25
|
-
* Determines whether an action is displayed with a button or is moved to the overflow menu.
|
|
26
|
-
*/
|
|
27
|
-
mode;
|
|
28
|
-
/**
|
|
29
|
-
* Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.
|
|
30
|
-
*/
|
|
31
|
-
tooltip;
|
|
32
|
-
/**
|
|
33
|
-
* Determines whether the action should be enabled.
|
|
34
|
-
*/
|
|
35
|
-
isEnabled;
|
|
36
|
-
/**
|
|
37
|
-
* A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
|
|
38
|
-
*/
|
|
39
|
-
requires;
|
|
40
|
-
constructor(value = {}) {
|
|
41
|
-
Object.assign(this, value);
|
|
42
|
-
}
|
|
43
|
-
withId(value) {
|
|
44
|
-
this.id = value;
|
|
45
|
-
return this;
|
|
46
|
-
}
|
|
47
|
-
withTitle(value) {
|
|
48
|
-
this.title = value;
|
|
49
|
-
return this;
|
|
50
|
-
}
|
|
51
|
-
withIconUrl(value) {
|
|
52
|
-
this.iconUrl = value;
|
|
53
|
-
return this;
|
|
54
|
-
}
|
|
55
|
-
withStyle(value) {
|
|
56
|
-
this.style = value;
|
|
57
|
-
return this;
|
|
58
|
-
}
|
|
59
|
-
withFallback(value) {
|
|
60
|
-
this.fallback = value;
|
|
61
|
-
return this;
|
|
62
|
-
}
|
|
63
|
-
withMode(value) {
|
|
64
|
-
this.mode = value;
|
|
65
|
-
return this;
|
|
66
|
-
}
|
|
67
|
-
withTooltip(value) {
|
|
68
|
-
this.tooltip = value;
|
|
69
|
-
return this;
|
|
70
|
-
}
|
|
71
|
-
withEnabled(value = true) {
|
|
72
|
-
this.isEnabled = value;
|
|
73
|
-
return this;
|
|
74
|
-
}
|
|
75
|
-
withRequires(value) {
|
|
76
|
-
this.requires = value;
|
|
77
|
-
return this;
|
|
78
|
-
}
|
|
79
|
-
withRequire(key, value) {
|
|
80
|
-
if (!this.requires) {
|
|
81
|
-
this.requires = {};
|
|
82
|
-
}
|
|
83
|
-
this.requires[key] = value;
|
|
84
|
-
return this;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
exports.Action = Action;
|
|
89
|
-
//# sourceMappingURL=base.js.map
|
|
90
|
-
//# sourceMappingURL=base.js.map
|
package/dist/actions/base.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/actions/base.ts"],"names":[],"mappings":";;AA+CO,MAAM,MAA0B,CAAA;AAAA;AAAA;AAAA;AAAA,EAIrC,EAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA,EAEA,WAAA,CAAY,KAAiB,GAAA,EAAI,EAAA;AAC/B,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AAAA;AAC3B,EAEA,OAAO,KAAe,EAAA;AACpB,IAAA,IAAA,CAAK,EAAK,GAAA,KAAA;AACV,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAe,EAAA;AACzB,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAA+C,EAAA;AACvD,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAyB,EAAA;AACpC,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAAgC,EAAA;AACvC,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAe,EAAA;AACzB,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAA,CAAY,QAAQ,IAAM,EAAA;AACxB,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAA+B,EAAA;AAC1C,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAA,CAAY,KAAa,KAAe,EAAA;AACtC,IAAI,IAAA,CAAC,KAAK,QAAU,EAAA;AAClB,MAAA,IAAA,CAAK,WAAW,EAAC;AAAA;AAGnB,IAAK,IAAA,CAAA,QAAA,CAAS,GAAG,CAAI,GAAA,KAAA;AACrB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"base.js","sourcesContent":["export interface IAction {\n /**\n * A unique identifier associated with this Action.\n */\n id?: string;\n\n /**\n * Label for button or link that represents this action.\n */\n title?: string;\n\n /**\n * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+\n */\n iconUrl?: string;\n\n /**\n * Controls the style of an Action, which influences how the action is displayed, spoken, etc.\n */\n style?: 'default' | 'positive' | 'destructive';\n\n /**\n * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.\n */\n fallback?: IAction | string;\n\n /**\n * Determines whether an action is displayed with a button or is moved to the overflow menu.\n */\n mode?: 'primary' | 'secondary';\n\n /**\n * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.\n */\n tooltip?: string;\n\n /**\n * Determines whether the action should be enabled.\n */\n isEnabled?: boolean;\n\n /**\n * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.\n */\n requires?: Record<string, string>;\n}\n\nexport class Action implements IAction {\n /**\n * A unique identifier associated with this Action.\n */\n id?: string;\n\n /**\n * Label for button or link that represents this action.\n */\n title?: string;\n\n /**\n * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+\n */\n iconUrl?: string;\n\n /**\n * Controls the style of an Action, which influences how the action is displayed, spoken, etc.\n */\n style?: 'default' | 'positive' | 'destructive';\n\n /**\n * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.\n */\n fallback?: IAction | string;\n\n /**\n * Determines whether an action is displayed with a button or is moved to the overflow menu.\n */\n mode?: 'primary' | 'secondary';\n\n /**\n * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.\n */\n tooltip?: string;\n\n /**\n * Determines whether the action should be enabled.\n */\n isEnabled?: boolean;\n\n /**\n * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.\n */\n requires?: Record<string, string>;\n\n constructor(value: IAction = {}) {\n Object.assign(this, value);\n }\n\n withId(value: string) {\n this.id = value;\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withIconUrl(value: string) {\n this.iconUrl = value;\n return this;\n }\n\n withStyle(value: 'default' | 'positive' | 'destructive') {\n this.style = value;\n return this;\n }\n\n withFallback(value: IAction | string) {\n this.fallback = value;\n return this;\n }\n\n withMode(value: 'primary' | 'secondary') {\n this.mode = value;\n return this;\n }\n\n withTooltip(value: string) {\n this.tooltip = value;\n return this;\n }\n\n withEnabled(value = true) {\n this.isEnabled = value;\n return this;\n }\n\n withRequires(value: Record<string, string>) {\n this.requires = value;\n return this;\n }\n\n withRequire(key: string, value: string) {\n if (!this.requires) {\n this.requires = {};\n }\n\n this.requires[key] = value;\n return this;\n }\n}\n"]}
|
package/dist/actions/base.mjs
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
class Action {
|
|
2
|
-
/**
|
|
3
|
-
* A unique identifier associated with this Action.
|
|
4
|
-
*/
|
|
5
|
-
id;
|
|
6
|
-
/**
|
|
7
|
-
* Label for button or link that represents this action.
|
|
8
|
-
*/
|
|
9
|
-
title;
|
|
10
|
-
/**
|
|
11
|
-
* Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+
|
|
12
|
-
*/
|
|
13
|
-
iconUrl;
|
|
14
|
-
/**
|
|
15
|
-
* Controls the style of an Action, which influences how the action is displayed, spoken, etc.
|
|
16
|
-
*/
|
|
17
|
-
style;
|
|
18
|
-
/**
|
|
19
|
-
* Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.
|
|
20
|
-
*/
|
|
21
|
-
fallback;
|
|
22
|
-
/**
|
|
23
|
-
* Determines whether an action is displayed with a button or is moved to the overflow menu.
|
|
24
|
-
*/
|
|
25
|
-
mode;
|
|
26
|
-
/**
|
|
27
|
-
* Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.
|
|
28
|
-
*/
|
|
29
|
-
tooltip;
|
|
30
|
-
/**
|
|
31
|
-
* Determines whether the action should be enabled.
|
|
32
|
-
*/
|
|
33
|
-
isEnabled;
|
|
34
|
-
/**
|
|
35
|
-
* A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
|
|
36
|
-
*/
|
|
37
|
-
requires;
|
|
38
|
-
constructor(value = {}) {
|
|
39
|
-
Object.assign(this, value);
|
|
40
|
-
}
|
|
41
|
-
withId(value) {
|
|
42
|
-
this.id = value;
|
|
43
|
-
return this;
|
|
44
|
-
}
|
|
45
|
-
withTitle(value) {
|
|
46
|
-
this.title = value;
|
|
47
|
-
return this;
|
|
48
|
-
}
|
|
49
|
-
withIconUrl(value) {
|
|
50
|
-
this.iconUrl = value;
|
|
51
|
-
return this;
|
|
52
|
-
}
|
|
53
|
-
withStyle(value) {
|
|
54
|
-
this.style = value;
|
|
55
|
-
return this;
|
|
56
|
-
}
|
|
57
|
-
withFallback(value) {
|
|
58
|
-
this.fallback = value;
|
|
59
|
-
return this;
|
|
60
|
-
}
|
|
61
|
-
withMode(value) {
|
|
62
|
-
this.mode = value;
|
|
63
|
-
return this;
|
|
64
|
-
}
|
|
65
|
-
withTooltip(value) {
|
|
66
|
-
this.tooltip = value;
|
|
67
|
-
return this;
|
|
68
|
-
}
|
|
69
|
-
withEnabled(value = true) {
|
|
70
|
-
this.isEnabled = value;
|
|
71
|
-
return this;
|
|
72
|
-
}
|
|
73
|
-
withRequires(value) {
|
|
74
|
-
this.requires = value;
|
|
75
|
-
return this;
|
|
76
|
-
}
|
|
77
|
-
withRequire(key, value) {
|
|
78
|
-
if (!this.requires) {
|
|
79
|
-
this.requires = {};
|
|
80
|
-
}
|
|
81
|
-
this.requires[key] = value;
|
|
82
|
-
return this;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export { Action };
|
|
87
|
-
//# sourceMappingURL=base.mjs.map
|
|
88
|
-
//# sourceMappingURL=base.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/actions/base.ts"],"names":[],"mappings":"AA+CO,MAAM,MAA0B,CAAA;AAAA;AAAA;AAAA;AAAA,EAIrC,EAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA,EAEA,WAAA,CAAY,KAAiB,GAAA,EAAI,EAAA;AAC/B,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AAAA;AAC3B,EAEA,OAAO,KAAe,EAAA;AACpB,IAAA,IAAA,CAAK,EAAK,GAAA,KAAA;AACV,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAe,EAAA;AACzB,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAA+C,EAAA;AACvD,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAyB,EAAA;AACpC,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAAgC,EAAA;AACvC,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAe,EAAA;AACzB,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAA,CAAY,QAAQ,IAAM,EAAA;AACxB,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAA+B,EAAA;AAC1C,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAA,CAAY,KAAa,KAAe,EAAA;AACtC,IAAI,IAAA,CAAC,KAAK,QAAU,EAAA;AAClB,MAAA,IAAA,CAAK,WAAW,EAAC;AAAA;AAGnB,IAAK,IAAA,CAAA,QAAA,CAAS,GAAG,CAAI,GAAA,KAAA;AACrB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"base.mjs","sourcesContent":["export interface IAction {\n /**\n * A unique identifier associated with this Action.\n */\n id?: string;\n\n /**\n * Label for button or link that represents this action.\n */\n title?: string;\n\n /**\n * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+\n */\n iconUrl?: string;\n\n /**\n * Controls the style of an Action, which influences how the action is displayed, spoken, etc.\n */\n style?: 'default' | 'positive' | 'destructive';\n\n /**\n * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.\n */\n fallback?: IAction | string;\n\n /**\n * Determines whether an action is displayed with a button or is moved to the overflow menu.\n */\n mode?: 'primary' | 'secondary';\n\n /**\n * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.\n */\n tooltip?: string;\n\n /**\n * Determines whether the action should be enabled.\n */\n isEnabled?: boolean;\n\n /**\n * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.\n */\n requires?: Record<string, string>;\n}\n\nexport class Action implements IAction {\n /**\n * A unique identifier associated with this Action.\n */\n id?: string;\n\n /**\n * Label for button or link that represents this action.\n */\n title?: string;\n\n /**\n * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+\n */\n iconUrl?: string;\n\n /**\n * Controls the style of an Action, which influences how the action is displayed, spoken, etc.\n */\n style?: 'default' | 'positive' | 'destructive';\n\n /**\n * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.\n */\n fallback?: IAction | string;\n\n /**\n * Determines whether an action is displayed with a button or is moved to the overflow menu.\n */\n mode?: 'primary' | 'secondary';\n\n /**\n * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.\n */\n tooltip?: string;\n\n /**\n * Determines whether the action should be enabled.\n */\n isEnabled?: boolean;\n\n /**\n * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.\n */\n requires?: Record<string, string>;\n\n constructor(value: IAction = {}) {\n Object.assign(this, value);\n }\n\n withId(value: string) {\n this.id = value;\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withIconUrl(value: string) {\n this.iconUrl = value;\n return this;\n }\n\n withStyle(value: 'default' | 'positive' | 'destructive') {\n this.style = value;\n return this;\n }\n\n withFallback(value: IAction | string) {\n this.fallback = value;\n return this;\n }\n\n withMode(value: 'primary' | 'secondary') {\n this.mode = value;\n return this;\n }\n\n withTooltip(value: string) {\n this.tooltip = value;\n return this;\n }\n\n withEnabled(value = true) {\n this.isEnabled = value;\n return this;\n }\n\n withRequires(value: Record<string, string>) {\n this.requires = value;\n return this;\n }\n\n withRequire(key: string, value: string) {\n if (!this.requires) {\n this.requires = {};\n }\n\n this.requires[key] = value;\n return this;\n }\n}\n"]}
|