@microsoft/teams.cards 0.2.14 → 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/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
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class BackgroundImage {
|
|
4
|
-
type;
|
|
5
|
-
/**
|
|
6
|
-
* The URL (or data url) of the image. Acceptable formats are PNG, JPEG, and GIF
|
|
7
|
-
*/
|
|
8
|
-
url;
|
|
9
|
-
/**
|
|
10
|
-
* Describes how the image should fill the area.
|
|
11
|
-
*/
|
|
12
|
-
fillMode;
|
|
13
|
-
/**
|
|
14
|
-
* Describes how the image should be aligned if it must be cropped or if using repeat fill mode.
|
|
15
|
-
*/
|
|
16
|
-
horizontalAlignment;
|
|
17
|
-
/**
|
|
18
|
-
* Describes how the image should be aligned if it must be cropped or if using repeat fill mode.
|
|
19
|
-
*/
|
|
20
|
-
verticalAlignment;
|
|
21
|
-
constructor(url, options = {}) {
|
|
22
|
-
this.type = "BackgroundImage";
|
|
23
|
-
this.url = url;
|
|
24
|
-
Object.assign(this, options);
|
|
25
|
-
}
|
|
26
|
-
static from(options) {
|
|
27
|
-
return new BackgroundImage(options.url, options);
|
|
28
|
-
}
|
|
29
|
-
withUrl(value) {
|
|
30
|
-
this.url = value;
|
|
31
|
-
return this;
|
|
32
|
-
}
|
|
33
|
-
withFillMode(value) {
|
|
34
|
-
this.fillMode = value;
|
|
35
|
-
return this;
|
|
36
|
-
}
|
|
37
|
-
withHorizontalAlignment(value) {
|
|
38
|
-
this.horizontalAlignment = value;
|
|
39
|
-
return this;
|
|
40
|
-
}
|
|
41
|
-
withVerticalAlignment(value) {
|
|
42
|
-
this.verticalAlignment = value;
|
|
43
|
-
return this;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
exports.BackgroundImage = BackgroundImage;
|
|
48
|
-
//# sourceMappingURL=background-image.js.map
|
|
49
|
-
//# sourceMappingURL=background-image.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/medias/background-image.ts"],"names":[],"mappings":";;AAkCO,MAAM,eAA4C,CAAA;AAAA,EACvD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,mBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,iBAAA;AAAA,EAEA,WAAY,CAAA,GAAA,EAAa,OAAkC,GAAA,EAAI,EAAA;AAC7D,IAAA,IAAA,CAAK,IAAO,GAAA,iBAAA;AACZ,IAAA,IAAA,CAAK,GAAM,GAAA,GAAA;AACX,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAAyC,EAAA;AACnD,IAAA,OAAO,IAAI,eAAA,CAAgB,OAAQ,CAAA,GAAA,EAAK,OAAO,CAAA;AAAA;AACjD,EAEA,QAAQ,KAAe,EAAA;AACrB,IAAA,IAAA,CAAK,GAAM,GAAA,KAAA;AACX,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAuE,EAAA;AAClF,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,wBAAwB,KAA4B,EAAA;AAClD,IAAA,IAAA,CAAK,mBAAsB,GAAA,KAAA;AAC3B,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,sBAAsB,KAA0B,EAAA;AAC9C,IAAA,IAAA,CAAK,iBAAoB,GAAA,KAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"background-image.js","sourcesContent":["import { HorizontalAlignment, VerticalAlignment } from '../common';\n\n/**\n * Specifies a background image. Acceptable formats are PNG, JPEG, and GIF\n */\nexport interface IBackgroundImage {\n type: 'BackgroundImage';\n\n /**\n * The URL (or data url) of the image. Acceptable formats are PNG, JPEG, and GIF\n */\n url: string;\n\n /**\n * Describes how the image should fill the area.\n */\n fillMode?: 'cover' | 'repeatHorizontally' | 'repeatVertically' | 'repeat';\n\n /**\n * Describes how the image should be aligned if it must be cropped or if using repeat fill mode.\n */\n horizontalAlignment?: HorizontalAlignment;\n\n /**\n * Describes how the image should be aligned if it must be cropped or if using repeat fill mode.\n */\n verticalAlignment?: VerticalAlignment;\n}\n\nexport type BackgroundImageOptions = Omit<IBackgroundImage, 'type' | 'url'>;\n\n/**\n * Specifies a background image. Acceptable formats are PNG, JPEG, and GIF\n */\nexport class BackgroundImage implements IBackgroundImage {\n type: 'BackgroundImage';\n\n /**\n * The URL (or data url) of the image. Acceptable formats are PNG, JPEG, and GIF\n */\n url: string;\n\n /**\n * Describes how the image should fill the area.\n */\n fillMode?: 'cover' | 'repeatHorizontally' | 'repeatVertically' | 'repeat';\n\n /**\n * Describes how the image should be aligned if it must be cropped or if using repeat fill mode.\n */\n horizontalAlignment?: HorizontalAlignment;\n\n /**\n * Describes how the image should be aligned if it must be cropped or if using repeat fill mode.\n */\n verticalAlignment?: VerticalAlignment;\n\n constructor(url: string, options: BackgroundImageOptions = {}) {\n this.type = 'BackgroundImage';\n this.url = url;\n Object.assign(this, options);\n }\n\n static from(options: Omit<IBackgroundImage, 'type'>) {\n return new BackgroundImage(options.url, options);\n }\n\n withUrl(value: string) {\n this.url = value;\n return this;\n }\n\n withFillMode(value: 'cover' | 'repeatHorizontally' | 'repeatVertically' | 'repeat') {\n this.fillMode = value;\n return this;\n }\n\n withHorizontalAlignment(value: HorizontalAlignment) {\n this.horizontalAlignment = value;\n return this;\n }\n\n withVerticalAlignment(value: VerticalAlignment) {\n this.verticalAlignment = value;\n return this;\n }\n}\n"]}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
class BackgroundImage {
|
|
2
|
-
type;
|
|
3
|
-
/**
|
|
4
|
-
* The URL (or data url) of the image. Acceptable formats are PNG, JPEG, and GIF
|
|
5
|
-
*/
|
|
6
|
-
url;
|
|
7
|
-
/**
|
|
8
|
-
* Describes how the image should fill the area.
|
|
9
|
-
*/
|
|
10
|
-
fillMode;
|
|
11
|
-
/**
|
|
12
|
-
* Describes how the image should be aligned if it must be cropped or if using repeat fill mode.
|
|
13
|
-
*/
|
|
14
|
-
horizontalAlignment;
|
|
15
|
-
/**
|
|
16
|
-
* Describes how the image should be aligned if it must be cropped or if using repeat fill mode.
|
|
17
|
-
*/
|
|
18
|
-
verticalAlignment;
|
|
19
|
-
constructor(url, options = {}) {
|
|
20
|
-
this.type = "BackgroundImage";
|
|
21
|
-
this.url = url;
|
|
22
|
-
Object.assign(this, options);
|
|
23
|
-
}
|
|
24
|
-
static from(options) {
|
|
25
|
-
return new BackgroundImage(options.url, options);
|
|
26
|
-
}
|
|
27
|
-
withUrl(value) {
|
|
28
|
-
this.url = value;
|
|
29
|
-
return this;
|
|
30
|
-
}
|
|
31
|
-
withFillMode(value) {
|
|
32
|
-
this.fillMode = value;
|
|
33
|
-
return this;
|
|
34
|
-
}
|
|
35
|
-
withHorizontalAlignment(value) {
|
|
36
|
-
this.horizontalAlignment = value;
|
|
37
|
-
return this;
|
|
38
|
-
}
|
|
39
|
-
withVerticalAlignment(value) {
|
|
40
|
-
this.verticalAlignment = value;
|
|
41
|
-
return this;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { BackgroundImage };
|
|
46
|
-
//# sourceMappingURL=background-image.mjs.map
|
|
47
|
-
//# sourceMappingURL=background-image.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/medias/background-image.ts"],"names":[],"mappings":"AAkCO,MAAM,eAA4C,CAAA;AAAA,EACvD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,mBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,iBAAA;AAAA,EAEA,WAAY,CAAA,GAAA,EAAa,OAAkC,GAAA,EAAI,EAAA;AAC7D,IAAA,IAAA,CAAK,IAAO,GAAA,iBAAA;AACZ,IAAA,IAAA,CAAK,GAAM,GAAA,GAAA;AACX,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAAyC,EAAA;AACnD,IAAA,OAAO,IAAI,eAAA,CAAgB,OAAQ,CAAA,GAAA,EAAK,OAAO,CAAA;AAAA;AACjD,EAEA,QAAQ,KAAe,EAAA;AACrB,IAAA,IAAA,CAAK,GAAM,GAAA,KAAA;AACX,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAuE,EAAA;AAClF,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,wBAAwB,KAA4B,EAAA;AAClD,IAAA,IAAA,CAAK,mBAAsB,GAAA,KAAA;AAC3B,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,sBAAsB,KAA0B,EAAA;AAC9C,IAAA,IAAA,CAAK,iBAAoB,GAAA,KAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"background-image.mjs","sourcesContent":["import { HorizontalAlignment, VerticalAlignment } from '../common';\n\n/**\n * Specifies a background image. Acceptable formats are PNG, JPEG, and GIF\n */\nexport interface IBackgroundImage {\n type: 'BackgroundImage';\n\n /**\n * The URL (or data url) of the image. Acceptable formats are PNG, JPEG, and GIF\n */\n url: string;\n\n /**\n * Describes how the image should fill the area.\n */\n fillMode?: 'cover' | 'repeatHorizontally' | 'repeatVertically' | 'repeat';\n\n /**\n * Describes how the image should be aligned if it must be cropped or if using repeat fill mode.\n */\n horizontalAlignment?: HorizontalAlignment;\n\n /**\n * Describes how the image should be aligned if it must be cropped or if using repeat fill mode.\n */\n verticalAlignment?: VerticalAlignment;\n}\n\nexport type BackgroundImageOptions = Omit<IBackgroundImage, 'type' | 'url'>;\n\n/**\n * Specifies a background image. Acceptable formats are PNG, JPEG, and GIF\n */\nexport class BackgroundImage implements IBackgroundImage {\n type: 'BackgroundImage';\n\n /**\n * The URL (or data url) of the image. Acceptable formats are PNG, JPEG, and GIF\n */\n url: string;\n\n /**\n * Describes how the image should fill the area.\n */\n fillMode?: 'cover' | 'repeatHorizontally' | 'repeatVertically' | 'repeat';\n\n /**\n * Describes how the image should be aligned if it must be cropped or if using repeat fill mode.\n */\n horizontalAlignment?: HorizontalAlignment;\n\n /**\n * Describes how the image should be aligned if it must be cropped or if using repeat fill mode.\n */\n verticalAlignment?: VerticalAlignment;\n\n constructor(url: string, options: BackgroundImageOptions = {}) {\n this.type = 'BackgroundImage';\n this.url = url;\n Object.assign(this, options);\n }\n\n static from(options: Omit<IBackgroundImage, 'type'>) {\n return new BackgroundImage(options.url, options);\n }\n\n withUrl(value: string) {\n this.url = value;\n return this;\n }\n\n withFillMode(value: 'cover' | 'repeatHorizontally' | 'repeatVertically' | 'repeat') {\n this.fillMode = value;\n return this;\n }\n\n withHorizontalAlignment(value: HorizontalAlignment) {\n this.horizontalAlignment = value;\n return this;\n }\n\n withVerticalAlignment(value: VerticalAlignment) {\n this.verticalAlignment = value;\n return this;\n }\n}\n"]}
|
package/dist/medias/badge.d.mts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { p as Badge, B as BadgeAppearance, o as BadgeOptions, m as BadgeStyle, n as IBadge } 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';
|
package/dist/medias/badge.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { p as Badge, B as BadgeAppearance, o as BadgeOptions, m as BadgeStyle, n as IBadge } 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';
|
package/dist/medias/badge.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var base = require('../base');
|
|
4
|
-
|
|
5
|
-
class Badge extends base.Element {
|
|
6
|
-
type;
|
|
7
|
-
/**
|
|
8
|
-
* Controls the strength of the background color.
|
|
9
|
-
*/
|
|
10
|
-
appearance;
|
|
11
|
-
/**
|
|
12
|
-
* The name of the icon to display.
|
|
13
|
-
*/
|
|
14
|
-
icon;
|
|
15
|
-
/**
|
|
16
|
-
* Controls the position of the icon.
|
|
17
|
-
*/
|
|
18
|
-
iconPosition;
|
|
19
|
-
/**
|
|
20
|
-
* Controls the shape of the badge.
|
|
21
|
-
*/
|
|
22
|
-
shape;
|
|
23
|
-
/**
|
|
24
|
-
* The size of the badge.
|
|
25
|
-
*/
|
|
26
|
-
size;
|
|
27
|
-
/**
|
|
28
|
-
* The style of the badge.
|
|
29
|
-
*/
|
|
30
|
-
style;
|
|
31
|
-
/**
|
|
32
|
-
* The text to display.
|
|
33
|
-
*/
|
|
34
|
-
text;
|
|
35
|
-
/**
|
|
36
|
-
* Controls the tooltip text to display when the badge is hovered over.
|
|
37
|
-
*/
|
|
38
|
-
tooltip;
|
|
39
|
-
constructor(options = {}) {
|
|
40
|
-
super();
|
|
41
|
-
this.type = "Badge";
|
|
42
|
-
Object.assign(this, options);
|
|
43
|
-
}
|
|
44
|
-
static from(options) {
|
|
45
|
-
return new Badge(options);
|
|
46
|
-
}
|
|
47
|
-
withAppearance(value) {
|
|
48
|
-
this.appearance = value;
|
|
49
|
-
return this;
|
|
50
|
-
}
|
|
51
|
-
withIcon(value, position) {
|
|
52
|
-
this.icon = value;
|
|
53
|
-
this.iconPosition = position;
|
|
54
|
-
return this;
|
|
55
|
-
}
|
|
56
|
-
withIconPosition(value) {
|
|
57
|
-
this.iconPosition = value;
|
|
58
|
-
return this;
|
|
59
|
-
}
|
|
60
|
-
withShape(value) {
|
|
61
|
-
this.shape = value;
|
|
62
|
-
return this;
|
|
63
|
-
}
|
|
64
|
-
withSize(value) {
|
|
65
|
-
this.size = value;
|
|
66
|
-
return this;
|
|
67
|
-
}
|
|
68
|
-
withStyle(value) {
|
|
69
|
-
this.style = value;
|
|
70
|
-
return this;
|
|
71
|
-
}
|
|
72
|
-
withText(value) {
|
|
73
|
-
this.text = value;
|
|
74
|
-
return this;
|
|
75
|
-
}
|
|
76
|
-
withTooltip(value) {
|
|
77
|
-
this.tooltip = value;
|
|
78
|
-
return this;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
exports.Badge = Badge;
|
|
83
|
-
//# sourceMappingURL=badge.js.map
|
|
84
|
-
//# sourceMappingURL=badge.js.map
|
package/dist/medias/badge.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/medias/badge.ts"],"names":["Element"],"mappings":";;;;AAkEO,MAAM,cAAcA,YAA0B,CAAA;AAAA,EACnD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,UAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA,EAEA,WAAA,CAAY,OAAwB,GAAA,EAAI,EAAA;AACtC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,OAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAAuB,EAAA;AACjC,IAAO,OAAA,IAAI,MAAM,OAAO,CAAA;AAAA;AAC1B,EAEA,eAAe,KAAwB,EAAA;AACrC,IAAA,IAAA,CAAK,UAAa,GAAA,KAAA;AAClB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,QAAA,CAAS,OAAiB,QAA+B,EAAA;AACvD,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAA,IAAA,CAAK,YAAe,GAAA,QAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,iBAAiB,KAA2B,EAAA;AAC1C,IAAA,IAAA,CAAK,YAAe,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAA0C,EAAA;AAClD,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAA0C,EAAA;AACjD,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAmB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAAe,EAAA;AACtB,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;AAEX","file":"badge.js","sourcesContent":["import { IElement, Element } from '../base';\n\nimport { IconName } from './icon';\n\nexport type BadgeAppearance = 'filled' | 'tint';\nexport type BadgeStyle =\n | 'default'\n | 'subtle'\n | 'informative'\n | 'accent'\n | 'good'\n | 'attention'\n | 'warning';\n\n/**\n * A badge element to show an icon and/or text in a compact form over a colored background.\n */\nexport interface IBadge extends IElement {\n type: 'Badge';\n\n /**\n * Controls the strength of the background color.\n */\n appearance?: BadgeAppearance;\n\n /**\n * The name of the icon to display.\n */\n icon?: IconName;\n\n /**\n * Controls the position of the icon.\n */\n iconPosition?: 'before' | 'after';\n\n /**\n * Controls the shape of the badge.\n */\n shape?: 'square' | 'rounded' | 'circular';\n\n /**\n * The size of the badge.\n */\n size?: 'medium' | 'large' | 'extraLarge';\n\n /**\n * The style of the badge.\n */\n style?: BadgeStyle;\n\n /**\n * The text to display.\n */\n text?: string;\n\n /**\n * Controls the tooltip text to display when the badge is hovered over.\n */\n tooltip?: string;\n}\n\nexport type BadgeOptions = Omit<IBadge, 'type'>;\n\n/**\n * A badge element to show an icon and/or text in a compact form over a colored background.\n */\nexport class Badge extends Element implements IBadge {\n type: 'Badge';\n\n /**\n * Controls the strength of the background color.\n */\n appearance?: BadgeAppearance;\n\n /**\n * The name of the icon to display.\n */\n icon?: IconName;\n\n /**\n * Controls the position of the icon.\n */\n iconPosition?: 'before' | 'after';\n\n /**\n * Controls the shape of the badge.\n */\n shape?: 'square' | 'rounded' | 'circular';\n\n /**\n * The size of the badge.\n */\n size?: 'medium' | 'large' | 'extraLarge';\n\n /**\n * The style of the badge.\n */\n style?: BadgeStyle;\n\n /**\n * The text to display.\n */\n text?: string;\n\n /**\n * Controls the tooltip text to display when the badge is hovered over.\n */\n tooltip?: string;\n\n constructor(options: BadgeOptions = {}) {\n super();\n this.type = 'Badge';\n Object.assign(this, options);\n }\n\n static from(options: BadgeOptions) {\n return new Badge(options);\n }\n\n withAppearance(value: BadgeAppearance) {\n this.appearance = value;\n return this;\n }\n\n withIcon(value: IconName, position?: 'before' | 'after') {\n this.icon = value;\n this.iconPosition = position;\n return this;\n }\n\n withIconPosition(value: 'before' | 'after') {\n this.iconPosition = value;\n return this;\n }\n\n withShape(value: 'square' | 'rounded' | 'circular') {\n this.shape = value;\n return this;\n }\n\n withSize(value: 'medium' | 'large' | 'extraLarge') {\n this.size = value;\n return this;\n }\n\n withStyle(value: BadgeStyle) {\n this.style = value;\n return this;\n }\n\n withText(value: string) {\n this.text = value;\n return this;\n }\n\n withTooltip(value: string) {\n this.tooltip = value;\n return this;\n }\n}\n"]}
|
package/dist/medias/badge.mjs
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Element } from '../base';
|
|
2
|
-
|
|
3
|
-
class Badge extends Element {
|
|
4
|
-
type;
|
|
5
|
-
/**
|
|
6
|
-
* Controls the strength of the background color.
|
|
7
|
-
*/
|
|
8
|
-
appearance;
|
|
9
|
-
/**
|
|
10
|
-
* The name of the icon to display.
|
|
11
|
-
*/
|
|
12
|
-
icon;
|
|
13
|
-
/**
|
|
14
|
-
* Controls the position of the icon.
|
|
15
|
-
*/
|
|
16
|
-
iconPosition;
|
|
17
|
-
/**
|
|
18
|
-
* Controls the shape of the badge.
|
|
19
|
-
*/
|
|
20
|
-
shape;
|
|
21
|
-
/**
|
|
22
|
-
* The size of the badge.
|
|
23
|
-
*/
|
|
24
|
-
size;
|
|
25
|
-
/**
|
|
26
|
-
* The style of the badge.
|
|
27
|
-
*/
|
|
28
|
-
style;
|
|
29
|
-
/**
|
|
30
|
-
* The text to display.
|
|
31
|
-
*/
|
|
32
|
-
text;
|
|
33
|
-
/**
|
|
34
|
-
* Controls the tooltip text to display when the badge is hovered over.
|
|
35
|
-
*/
|
|
36
|
-
tooltip;
|
|
37
|
-
constructor(options = {}) {
|
|
38
|
-
super();
|
|
39
|
-
this.type = "Badge";
|
|
40
|
-
Object.assign(this, options);
|
|
41
|
-
}
|
|
42
|
-
static from(options) {
|
|
43
|
-
return new Badge(options);
|
|
44
|
-
}
|
|
45
|
-
withAppearance(value) {
|
|
46
|
-
this.appearance = value;
|
|
47
|
-
return this;
|
|
48
|
-
}
|
|
49
|
-
withIcon(value, position) {
|
|
50
|
-
this.icon = value;
|
|
51
|
-
this.iconPosition = position;
|
|
52
|
-
return this;
|
|
53
|
-
}
|
|
54
|
-
withIconPosition(value) {
|
|
55
|
-
this.iconPosition = value;
|
|
56
|
-
return this;
|
|
57
|
-
}
|
|
58
|
-
withShape(value) {
|
|
59
|
-
this.shape = value;
|
|
60
|
-
return this;
|
|
61
|
-
}
|
|
62
|
-
withSize(value) {
|
|
63
|
-
this.size = value;
|
|
64
|
-
return this;
|
|
65
|
-
}
|
|
66
|
-
withStyle(value) {
|
|
67
|
-
this.style = value;
|
|
68
|
-
return this;
|
|
69
|
-
}
|
|
70
|
-
withText(value) {
|
|
71
|
-
this.text = value;
|
|
72
|
-
return this;
|
|
73
|
-
}
|
|
74
|
-
withTooltip(value) {
|
|
75
|
-
this.tooltip = value;
|
|
76
|
-
return this;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export { Badge };
|
|
81
|
-
//# sourceMappingURL=badge.mjs.map
|
|
82
|
-
//# sourceMappingURL=badge.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/medias/badge.ts"],"names":[],"mappings":";;AAkEO,MAAM,cAAc,OAA0B,CAAA;AAAA,EACnD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,UAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA,EAEA,WAAA,CAAY,OAAwB,GAAA,EAAI,EAAA;AACtC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,OAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAAuB,EAAA;AACjC,IAAO,OAAA,IAAI,MAAM,OAAO,CAAA;AAAA;AAC1B,EAEA,eAAe,KAAwB,EAAA;AACrC,IAAA,IAAA,CAAK,UAAa,GAAA,KAAA;AAClB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,QAAA,CAAS,OAAiB,QAA+B,EAAA;AACvD,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAA,IAAA,CAAK,YAAe,GAAA,QAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,iBAAiB,KAA2B,EAAA;AAC1C,IAAA,IAAA,CAAK,YAAe,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAA0C,EAAA;AAClD,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAA0C,EAAA;AACjD,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAmB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAAe,EAAA;AACtB,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;AAEX","file":"badge.mjs","sourcesContent":["import { IElement, Element } from '../base';\n\nimport { IconName } from './icon';\n\nexport type BadgeAppearance = 'filled' | 'tint';\nexport type BadgeStyle =\n | 'default'\n | 'subtle'\n | 'informative'\n | 'accent'\n | 'good'\n | 'attention'\n | 'warning';\n\n/**\n * A badge element to show an icon and/or text in a compact form over a colored background.\n */\nexport interface IBadge extends IElement {\n type: 'Badge';\n\n /**\n * Controls the strength of the background color.\n */\n appearance?: BadgeAppearance;\n\n /**\n * The name of the icon to display.\n */\n icon?: IconName;\n\n /**\n * Controls the position of the icon.\n */\n iconPosition?: 'before' | 'after';\n\n /**\n * Controls the shape of the badge.\n */\n shape?: 'square' | 'rounded' | 'circular';\n\n /**\n * The size of the badge.\n */\n size?: 'medium' | 'large' | 'extraLarge';\n\n /**\n * The style of the badge.\n */\n style?: BadgeStyle;\n\n /**\n * The text to display.\n */\n text?: string;\n\n /**\n * Controls the tooltip text to display when the badge is hovered over.\n */\n tooltip?: string;\n}\n\nexport type BadgeOptions = Omit<IBadge, 'type'>;\n\n/**\n * A badge element to show an icon and/or text in a compact form over a colored background.\n */\nexport class Badge extends Element implements IBadge {\n type: 'Badge';\n\n /**\n * Controls the strength of the background color.\n */\n appearance?: BadgeAppearance;\n\n /**\n * The name of the icon to display.\n */\n icon?: IconName;\n\n /**\n * Controls the position of the icon.\n */\n iconPosition?: 'before' | 'after';\n\n /**\n * Controls the shape of the badge.\n */\n shape?: 'square' | 'rounded' | 'circular';\n\n /**\n * The size of the badge.\n */\n size?: 'medium' | 'large' | 'extraLarge';\n\n /**\n * The style of the badge.\n */\n style?: BadgeStyle;\n\n /**\n * The text to display.\n */\n text?: string;\n\n /**\n * Controls the tooltip text to display when the badge is hovered over.\n */\n tooltip?: string;\n\n constructor(options: BadgeOptions = {}) {\n super();\n this.type = 'Badge';\n Object.assign(this, options);\n }\n\n static from(options: BadgeOptions) {\n return new Badge(options);\n }\n\n withAppearance(value: BadgeAppearance) {\n this.appearance = value;\n return this;\n }\n\n withIcon(value: IconName, position?: 'before' | 'after') {\n this.icon = value;\n this.iconPosition = position;\n return this;\n }\n\n withIconPosition(value: 'before' | 'after') {\n this.iconPosition = value;\n return this;\n }\n\n withShape(value: 'square' | 'rounded' | 'circular') {\n this.shape = value;\n return this;\n }\n\n withSize(value: 'medium' | 'large' | 'extraLarge') {\n this.size = value;\n return this;\n }\n\n withStyle(value: BadgeStyle) {\n this.style = value;\n return this;\n }\n\n withText(value: string) {\n this.text = value;\n return this;\n }\n\n withTooltip(value: string) {\n this.tooltip = value;\n return this;\n }\n}\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { t as CodeBlock, s as CodeBlockOptions, q as CodeLanguage, r as ICodeBlock } 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 { t as CodeBlock, s as CodeBlockOptions, q as CodeLanguage, r as ICodeBlock } 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,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var base = require('../base');
|
|
4
|
-
|
|
5
|
-
class CodeBlock extends base.Element {
|
|
6
|
-
type;
|
|
7
|
-
/**
|
|
8
|
-
* which programming language to use.
|
|
9
|
-
*/
|
|
10
|
-
language;
|
|
11
|
-
/**
|
|
12
|
-
* code to display/highlight.
|
|
13
|
-
*/
|
|
14
|
-
codeSnippet;
|
|
15
|
-
/**
|
|
16
|
-
* which line number to display on the first line.
|
|
17
|
-
*/
|
|
18
|
-
startLineNumber;
|
|
19
|
-
constructor(options = {}) {
|
|
20
|
-
super();
|
|
21
|
-
this.type = "CodeBlock";
|
|
22
|
-
Object.assign(this, options);
|
|
23
|
-
}
|
|
24
|
-
static from(options) {
|
|
25
|
-
return new CodeBlock(options);
|
|
26
|
-
}
|
|
27
|
-
withLanguage(value) {
|
|
28
|
-
this.language = value;
|
|
29
|
-
return this;
|
|
30
|
-
}
|
|
31
|
-
withCode(value) {
|
|
32
|
-
this.codeSnippet = value;
|
|
33
|
-
return this;
|
|
34
|
-
}
|
|
35
|
-
withStartLineNumber(value) {
|
|
36
|
-
this.startLineNumber = value;
|
|
37
|
-
return this;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
exports.CodeBlock = CodeBlock;
|
|
42
|
-
//# sourceMappingURL=code-block.js.map
|
|
43
|
-
//# sourceMappingURL=code-block.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/medias/code-block.ts"],"names":["Element"],"mappings":";;;;AAuDO,MAAM,kBAAkBA,YAA8B,CAAA;AAAA,EAC3D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,WAAA;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA;AAAA,EAEA,WAAA,CAAY,OAA4B,GAAA,EAAI,EAAA;AAC1C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,WAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAA2B,EAAA;AACrC,IAAO,OAAA,IAAI,UAAU,OAAO,CAAA;AAAA;AAC9B,EAEA,aAAa,KAAqB,EAAA;AAChC,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAAe,EAAA;AACtB,IAAA,IAAA,CAAK,WAAc,GAAA,KAAA;AACnB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,oBAAoB,KAAe,EAAA;AACjC,IAAA,IAAA,CAAK,eAAkB,GAAA,KAAA;AACvB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"code-block.js","sourcesContent":["import { IElement, Element } from '../base';\n\nexport type CodeLanguage =\n | 'Bash'\n | 'C'\n | 'Cpp'\n | 'CSharp'\n | 'Css'\n | 'Dos'\n | 'Go'\n | 'Graphql'\n | 'Html'\n | 'Java'\n | 'JavaScript'\n | 'Json'\n | 'ObjectiveC'\n | 'Perl'\n | 'Php'\n | 'PlainText'\n | 'PowerShell'\n | 'Python'\n | 'Sql'\n | 'TypeScript'\n | 'VbNet'\n | 'Verilog'\n | 'Vhdl'\n | 'Xml';\n\n/**\n * Displays a block of code with syntax highlighting\n */\nexport interface ICodeBlock extends IElement {\n type: 'CodeBlock';\n\n /**\n * which programming language to use.\n */\n language?: CodeLanguage;\n\n /**\n * code to display/highlight.\n */\n codeSnippet?: string;\n\n /**\n * which line number to display on the first line.\n */\n startLineNumber?: number;\n}\n\nexport type CodeBlockOptions = Omit<ICodeBlock, 'type'>;\n\n/**\n * Displays a block of code with syntax highlighting\n */\nexport class CodeBlock extends Element implements ICodeBlock {\n type: 'CodeBlock';\n\n /**\n * which programming language to use.\n */\n language?: CodeLanguage;\n\n /**\n * code to display/highlight.\n */\n codeSnippet?: string;\n\n /**\n * which line number to display on the first line.\n */\n startLineNumber?: number;\n\n constructor(options: CodeBlockOptions = {}) {\n super();\n this.type = 'CodeBlock';\n Object.assign(this, options);\n }\n\n static from(options: CodeBlockOptions) {\n return new CodeBlock(options);\n }\n\n withLanguage(value: CodeLanguage) {\n this.language = value;\n return this;\n }\n\n withCode(value: string) {\n this.codeSnippet = value;\n return this;\n }\n\n withStartLineNumber(value: number) {\n this.startLineNumber = value;\n return this;\n }\n}\n"]}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Element } from '../base';
|
|
2
|
-
|
|
3
|
-
class CodeBlock extends Element {
|
|
4
|
-
type;
|
|
5
|
-
/**
|
|
6
|
-
* which programming language to use.
|
|
7
|
-
*/
|
|
8
|
-
language;
|
|
9
|
-
/**
|
|
10
|
-
* code to display/highlight.
|
|
11
|
-
*/
|
|
12
|
-
codeSnippet;
|
|
13
|
-
/**
|
|
14
|
-
* which line number to display on the first line.
|
|
15
|
-
*/
|
|
16
|
-
startLineNumber;
|
|
17
|
-
constructor(options = {}) {
|
|
18
|
-
super();
|
|
19
|
-
this.type = "CodeBlock";
|
|
20
|
-
Object.assign(this, options);
|
|
21
|
-
}
|
|
22
|
-
static from(options) {
|
|
23
|
-
return new CodeBlock(options);
|
|
24
|
-
}
|
|
25
|
-
withLanguage(value) {
|
|
26
|
-
this.language = value;
|
|
27
|
-
return this;
|
|
28
|
-
}
|
|
29
|
-
withCode(value) {
|
|
30
|
-
this.codeSnippet = value;
|
|
31
|
-
return this;
|
|
32
|
-
}
|
|
33
|
-
withStartLineNumber(value) {
|
|
34
|
-
this.startLineNumber = value;
|
|
35
|
-
return this;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export { CodeBlock };
|
|
40
|
-
//# sourceMappingURL=code-block.mjs.map
|
|
41
|
-
//# sourceMappingURL=code-block.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/medias/code-block.ts"],"names":[],"mappings":";;AAuDO,MAAM,kBAAkB,OAA8B,CAAA;AAAA,EAC3D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,WAAA;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA;AAAA,EAEA,WAAA,CAAY,OAA4B,GAAA,EAAI,EAAA;AAC1C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,WAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAA2B,EAAA;AACrC,IAAO,OAAA,IAAI,UAAU,OAAO,CAAA;AAAA;AAC9B,EAEA,aAAa,KAAqB,EAAA;AAChC,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAAe,EAAA;AACtB,IAAA,IAAA,CAAK,WAAc,GAAA,KAAA;AACnB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,oBAAoB,KAAe,EAAA;AACjC,IAAA,IAAA,CAAK,eAAkB,GAAA,KAAA;AACvB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"code-block.mjs","sourcesContent":["import { IElement, Element } from '../base';\n\nexport type CodeLanguage =\n | 'Bash'\n | 'C'\n | 'Cpp'\n | 'CSharp'\n | 'Css'\n | 'Dos'\n | 'Go'\n | 'Graphql'\n | 'Html'\n | 'Java'\n | 'JavaScript'\n | 'Json'\n | 'ObjectiveC'\n | 'Perl'\n | 'Php'\n | 'PlainText'\n | 'PowerShell'\n | 'Python'\n | 'Sql'\n | 'TypeScript'\n | 'VbNet'\n | 'Verilog'\n | 'Vhdl'\n | 'Xml';\n\n/**\n * Displays a block of code with syntax highlighting\n */\nexport interface ICodeBlock extends IElement {\n type: 'CodeBlock';\n\n /**\n * which programming language to use.\n */\n language?: CodeLanguage;\n\n /**\n * code to display/highlight.\n */\n codeSnippet?: string;\n\n /**\n * which line number to display on the first line.\n */\n startLineNumber?: number;\n}\n\nexport type CodeBlockOptions = Omit<ICodeBlock, 'type'>;\n\n/**\n * Displays a block of code with syntax highlighting\n */\nexport class CodeBlock extends Element implements ICodeBlock {\n type: 'CodeBlock';\n\n /**\n * which programming language to use.\n */\n language?: CodeLanguage;\n\n /**\n * code to display/highlight.\n */\n codeSnippet?: string;\n\n /**\n * which line number to display on the first line.\n */\n startLineNumber?: number;\n\n constructor(options: CodeBlockOptions = {}) {\n super();\n this.type = 'CodeBlock';\n Object.assign(this, options);\n }\n\n static from(options: CodeBlockOptions) {\n return new CodeBlock(options);\n }\n\n withLanguage(value: CodeLanguage) {\n this.language = value;\n return this;\n }\n\n withCode(value: string) {\n this.codeSnippet = value;\n return this;\n }\n\n withStartLineNumber(value: number) {\n this.startLineNumber = value;\n return this;\n }\n}\n"]}
|
package/dist/medias/icon.d.mts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { i as IIcon, k as Icon, l as IconName, j as IconOptions } 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';
|
package/dist/medias/icon.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { i as IIcon, k as Icon, l as IconName, j as IconOptions } 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';
|
package/dist/medias/icon.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var base = require('../base');
|
|
4
|
-
|
|
5
|
-
class Icon extends base.Element {
|
|
6
|
-
type;
|
|
7
|
-
/**
|
|
8
|
-
* name of the icon.
|
|
9
|
-
*/
|
|
10
|
-
name;
|
|
11
|
-
/**
|
|
12
|
-
* size of the icon.
|
|
13
|
-
*/
|
|
14
|
-
size;
|
|
15
|
-
/**
|
|
16
|
-
* style of the icon.
|
|
17
|
-
*/
|
|
18
|
-
style;
|
|
19
|
-
/**
|
|
20
|
-
* color of the icon.
|
|
21
|
-
*/
|
|
22
|
-
color;
|
|
23
|
-
/**
|
|
24
|
-
* select action
|
|
25
|
-
*/
|
|
26
|
-
selectAction;
|
|
27
|
-
constructor(name, options = {}) {
|
|
28
|
-
super();
|
|
29
|
-
this.type = "Icon";
|
|
30
|
-
this.name = name;
|
|
31
|
-
Object.assign(this, options);
|
|
32
|
-
}
|
|
33
|
-
static from(options) {
|
|
34
|
-
return new Icon(options.name, options);
|
|
35
|
-
}
|
|
36
|
-
withSize(value) {
|
|
37
|
-
this.size = value;
|
|
38
|
-
return this;
|
|
39
|
-
}
|
|
40
|
-
withStyle(value) {
|
|
41
|
-
this.style = value;
|
|
42
|
-
return this;
|
|
43
|
-
}
|
|
44
|
-
withColor(value) {
|
|
45
|
-
this.color = value;
|
|
46
|
-
return this;
|
|
47
|
-
}
|
|
48
|
-
withSelectAction(value) {
|
|
49
|
-
this.selectAction = value;
|
|
50
|
-
return this;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
exports.Icon = Icon;
|
|
55
|
-
//# sourceMappingURL=icon.js.map
|
|
56
|
-
//# sourceMappingURL=icon.js.map
|