@microsoft/teams.cards 0.2.13 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,40 +1,40 @@
1
- # Teams: Cards
2
-
3
- <p>
4
- <a href="https://www.npmjs.com/package/@microsoft/teams.cards" target="_blank">
5
- <img src="https://img.shields.io/npm/v/@microsoft/teams.cards" />
6
- </a>
7
- <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=code" target="_blank">
8
- <img src="https://img.shields.io/bundlephobia/min/@microsoft/teams.cards" />
9
- </a>
10
- <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=dependencies" target="_blank">
11
- <img src="https://img.shields.io/librariesio/release/npm/@microsoft/teams.cards" />
12
- </a>
13
- <a href="https://www.npmjs.com/package/@microsoft/teams.cards" target="_blank">
14
- <img src="https://img.shields.io/npm/dw/@microsoft/teams.cards" />
15
- </a>
16
- <a href="https://microsoft.github.io/teams-ai" target="_blank">
17
- <img src="https://img.shields.io/badge/📖 docs-open-blue" />
18
- </a>
19
- </p>
20
-
21
- An Adaptive Cards implementation with support for Teams-specific Adaptive Card elements.
22
-
23
- <a href="https://microsoft.github.io/teams-ai" target="_blank">
24
- <img src="https://img.shields.io/badge/📖 Getting Started-blue?style=for-the-badge" />
25
- </a>
26
-
27
- ## Install
28
-
29
- ```bash
30
- $: npm install @microsoft/teams.cards
31
- ```
32
-
33
- ## Links
34
-
35
- - [Adaptive Cards documentation](https://adaptivecards.microsoft.com/)
36
- - [Adaptive Cards Designer](https://adaptivecards.microsoft.com/designer)
37
-
38
- ## Dependencies
39
-
40
- N/A
1
+ # Teams: Cards
2
+
3
+ <p>
4
+ <a href="https://www.npmjs.com/package/@microsoft/teams.cards" target="_blank">
5
+ <img src="https://img.shields.io/npm/v/@microsoft/teams.cards" />
6
+ </a>
7
+ <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=code" target="_blank">
8
+ <img src="https://img.shields.io/bundlephobia/min/@microsoft/teams.cards" />
9
+ </a>
10
+ <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=dependencies" target="_blank">
11
+ <img src="https://img.shields.io/librariesio/release/npm/@microsoft/teams.cards" />
12
+ </a>
13
+ <a href="https://www.npmjs.com/package/@microsoft/teams.cards" target="_blank">
14
+ <img src="https://img.shields.io/npm/dw/@microsoft/teams.cards" />
15
+ </a>
16
+ <a href="https://microsoft.github.io/teams-ai" target="_blank">
17
+ <img src="https://img.shields.io/badge/📖 docs-open-blue" />
18
+ </a>
19
+ </p>
20
+
21
+ An Adaptive Cards implementation with support for Teams-specific Adaptive Card elements.
22
+
23
+ <a href="https://microsoft.github.io/teams-ai" target="_blank">
24
+ <img src="https://img.shields.io/badge/📖 Getting Started-blue?style=for-the-badge" />
25
+ </a>
26
+
27
+ ## Install
28
+
29
+ ```bash
30
+ $: npm install @microsoft/teams.cards
31
+ ```
32
+
33
+ ## Links
34
+
35
+ - [Adaptive Cards documentation](https://adaptivecards.microsoft.com/)
36
+ - [Adaptive Cards Designer](https://adaptivecards.microsoft.com/designer)
37
+
38
+ ## Dependencies
39
+
40
+ N/A
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/actions/submit/submit.ts"],"names":["Action"],"mappings":";;;;AAyBO,MAAM,qBAAqBA,WAAgC,CAAA;AAAA,EAChE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,gBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,WAAA,CAAY,OAA+B,GAAA,EAAI,EAAA;AAC7C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,eAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAAsC,EAAA;AAChD,IAAO,OAAA,IAAI,aAAa,OAAO,CAAA;AAAA;AACjC,EAEA,qBAAqB,KAAyB,EAAA;AAC5C,IAAA,IAAA,CAAK,gBAAmB,GAAA,KAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAA6B,GAAA,EAAE,OAAS,EAAA,IAAM,EAAA;AACrD,IAAA,MAAM,EAAE,OAAA,EAAS,GAAG,IAAA,EAAS,GAAA,KAAA;AAC7B,IAAI,IAAA,CAAC,KAAK,IAAM,EAAA;AACd,MAAK,IAAA,CAAA,IAAA,GAAO,EAAE,OAAQ,EAAA;AAAA;AAGxB,IAAO,MAAA,CAAA,MAAA,CAAO,KAAK,IAAM,EAAA;AAAA,MACvB,OAAS,EAAA;AAAA,QACP,GAAG,KAAK,IAAK,CAAA,OAAA;AAAA,QACb,GAAG;AAAA,OACL;AAAA,MACA,GAAG;AAAA,KACJ,CAAA;AACD,IAAO,OAAA,IAAA;AAAA;AAEX","file":"submit.js","sourcesContent":["import { AssociatedInputs } from '../../common';\r\nimport { Action, IAction } from '../base';\r\n\r\nexport type SubmitActionOptions = Omit<ISubmitAction, 'type' | 'data'>;\r\n\r\n/**\r\n * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.\r\n */\r\nexport interface ISubmitAction extends IAction {\r\n type: 'Action.Submit';\r\n\r\n /**\r\n * Controls which inputs are associated with the action.\r\n */\r\n associatedInputs?: AssociatedInputs;\r\n\r\n /**\r\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\r\n */\r\n data?: MSTeamsData<Record<string, any>>;\r\n}\r\n\r\n/**\r\n * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.\r\n */\r\nexport class SubmitAction extends Action implements ISubmitAction {\r\n type: 'Action.Submit';\r\n\r\n /**\r\n * Controls which inputs are associated with the action.\r\n */\r\n associatedInputs?: AssociatedInputs;\r\n\r\n /**\r\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\r\n */\r\n data?: MSTeamsData<Record<string, any>>;\r\n\r\n constructor(options: SubmitActionOptions = {}) {\r\n super();\r\n this.type = 'Action.Submit';\r\n Object.assign(this, options);\r\n }\r\n\r\n static from(options: Omit<ISubmitAction, 'type'>) {\r\n return new SubmitAction(options);\r\n }\r\n\r\n withAssociatedInputs(value: AssociatedInputs) {\r\n this.associatedInputs = value;\r\n return this;\r\n }\r\n\r\n withData(value: Record<string, any> = { msteams: {} }) {\r\n const { msteams, ...rest } = value;\r\n if (!this.data) {\r\n this.data = { msteams };\r\n }\r\n\r\n Object.assign(this.data, {\r\n msteams: {\r\n ...this.data.msteams,\r\n ...msteams,\r\n },\r\n ...rest,\r\n });\r\n return this;\r\n }\r\n}\r\n\r\n/**\r\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\r\n */\r\nexport type MSTeamsData<T> = {\r\n /**\r\n * Teams specific payload data.\r\n */\r\n msteams: T;\r\n\r\n /**\r\n * Other\r\n */\r\n [key: string]: any;\r\n};\r\n"]}
1
+ {"version":3,"sources":["../../../src/actions/submit/submit.ts"],"names":["Action"],"mappings":";;;;AAyBO,MAAM,qBAAqBA,WAAgC,CAAA;AAAA,EAChE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,gBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,WAAA,CAAY,OAA+B,GAAA,EAAI,EAAA;AAC7C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,eAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAAsC,EAAA;AAChD,IAAO,OAAA,IAAI,aAAa,OAAO,CAAA;AAAA;AACjC,EAEA,qBAAqB,KAAyB,EAAA;AAC5C,IAAA,IAAA,CAAK,gBAAmB,GAAA,KAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAA6B,GAAA,EAAE,OAAS,EAAA,IAAM,EAAA;AACrD,IAAA,MAAM,EAAE,OAAA,EAAS,GAAG,IAAA,EAAS,GAAA,KAAA;AAC7B,IAAI,IAAA,CAAC,KAAK,IAAM,EAAA;AACd,MAAK,IAAA,CAAA,IAAA,GAAO,EAAE,OAAQ,EAAA;AAAA;AAGxB,IAAO,MAAA,CAAA,MAAA,CAAO,KAAK,IAAM,EAAA;AAAA,MACvB,OAAS,EAAA;AAAA,QACP,GAAG,KAAK,IAAK,CAAA,OAAA;AAAA,QACb,GAAG;AAAA,OACL;AAAA,MACA,GAAG;AAAA,KACJ,CAAA;AACD,IAAO,OAAA,IAAA;AAAA;AAEX","file":"submit.js","sourcesContent":["import { AssociatedInputs } from '../../common';\nimport { Action, IAction } from '../base';\n\nexport type SubmitActionOptions = Omit<ISubmitAction, 'type' | 'data'>;\n\n/**\n * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.\n */\nexport interface ISubmitAction extends IAction {\n type: 'Action.Submit';\n\n /**\n * Controls which inputs are associated with the action.\n */\n associatedInputs?: AssociatedInputs;\n\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data?: MSTeamsData<Record<string, any>>;\n}\n\n/**\n * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.\n */\nexport class SubmitAction extends Action implements ISubmitAction {\n type: 'Action.Submit';\n\n /**\n * Controls which inputs are associated with the action.\n */\n associatedInputs?: AssociatedInputs;\n\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data?: MSTeamsData<Record<string, any>>;\n\n constructor(options: SubmitActionOptions = {}) {\n super();\n this.type = 'Action.Submit';\n Object.assign(this, options);\n }\n\n static from(options: Omit<ISubmitAction, 'type'>) {\n return new SubmitAction(options);\n }\n\n withAssociatedInputs(value: AssociatedInputs) {\n this.associatedInputs = value;\n return this;\n }\n\n withData(value: Record<string, any> = { msteams: {} }) {\n const { msteams, ...rest } = value;\n if (!this.data) {\n this.data = { msteams };\n }\n\n Object.assign(this.data, {\n msteams: {\n ...this.data.msteams,\n ...msteams,\n },\n ...rest,\n });\n return this;\n }\n}\n\n/**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\nexport type MSTeamsData<T> = {\n /**\n * Teams specific payload data.\n */\n msteams: T;\n\n /**\n * Other\n */\n [key: string]: any;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/actions/submit/submit.ts"],"names":[],"mappings":";;AAyBO,MAAM,qBAAqB,MAAgC,CAAA;AAAA,EAChE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,gBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,WAAA,CAAY,OAA+B,GAAA,EAAI,EAAA;AAC7C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,eAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAAsC,EAAA;AAChD,IAAO,OAAA,IAAI,aAAa,OAAO,CAAA;AAAA;AACjC,EAEA,qBAAqB,KAAyB,EAAA;AAC5C,IAAA,IAAA,CAAK,gBAAmB,GAAA,KAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAA6B,GAAA,EAAE,OAAS,EAAA,IAAM,EAAA;AACrD,IAAA,MAAM,EAAE,OAAA,EAAS,GAAG,IAAA,EAAS,GAAA,KAAA;AAC7B,IAAI,IAAA,CAAC,KAAK,IAAM,EAAA;AACd,MAAK,IAAA,CAAA,IAAA,GAAO,EAAE,OAAQ,EAAA;AAAA;AAGxB,IAAO,MAAA,CAAA,MAAA,CAAO,KAAK,IAAM,EAAA;AAAA,MACvB,OAAS,EAAA;AAAA,QACP,GAAG,KAAK,IAAK,CAAA,OAAA;AAAA,QACb,GAAG;AAAA,OACL;AAAA,MACA,GAAG;AAAA,KACJ,CAAA;AACD,IAAO,OAAA,IAAA;AAAA;AAEX","file":"submit.mjs","sourcesContent":["import { AssociatedInputs } from '../../common';\r\nimport { Action, IAction } from '../base';\r\n\r\nexport type SubmitActionOptions = Omit<ISubmitAction, 'type' | 'data'>;\r\n\r\n/**\r\n * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.\r\n */\r\nexport interface ISubmitAction extends IAction {\r\n type: 'Action.Submit';\r\n\r\n /**\r\n * Controls which inputs are associated with the action.\r\n */\r\n associatedInputs?: AssociatedInputs;\r\n\r\n /**\r\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\r\n */\r\n data?: MSTeamsData<Record<string, any>>;\r\n}\r\n\r\n/**\r\n * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.\r\n */\r\nexport class SubmitAction extends Action implements ISubmitAction {\r\n type: 'Action.Submit';\r\n\r\n /**\r\n * Controls which inputs are associated with the action.\r\n */\r\n associatedInputs?: AssociatedInputs;\r\n\r\n /**\r\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\r\n */\r\n data?: MSTeamsData<Record<string, any>>;\r\n\r\n constructor(options: SubmitActionOptions = {}) {\r\n super();\r\n this.type = 'Action.Submit';\r\n Object.assign(this, options);\r\n }\r\n\r\n static from(options: Omit<ISubmitAction, 'type'>) {\r\n return new SubmitAction(options);\r\n }\r\n\r\n withAssociatedInputs(value: AssociatedInputs) {\r\n this.associatedInputs = value;\r\n return this;\r\n }\r\n\r\n withData(value: Record<string, any> = { msteams: {} }) {\r\n const { msteams, ...rest } = value;\r\n if (!this.data) {\r\n this.data = { msteams };\r\n }\r\n\r\n Object.assign(this.data, {\r\n msteams: {\r\n ...this.data.msteams,\r\n ...msteams,\r\n },\r\n ...rest,\r\n });\r\n return this;\r\n }\r\n}\r\n\r\n/**\r\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\r\n */\r\nexport type MSTeamsData<T> = {\r\n /**\r\n * Teams specific payload data.\r\n */\r\n msteams: T;\r\n\r\n /**\r\n * Other\r\n */\r\n [key: string]: any;\r\n};\r\n"]}
1
+ {"version":3,"sources":["../../../src/actions/submit/submit.ts"],"names":[],"mappings":";;AAyBO,MAAM,qBAAqB,MAAgC,CAAA;AAAA,EAChE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,gBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,WAAA,CAAY,OAA+B,GAAA,EAAI,EAAA;AAC7C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,eAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAAsC,EAAA;AAChD,IAAO,OAAA,IAAI,aAAa,OAAO,CAAA;AAAA;AACjC,EAEA,qBAAqB,KAAyB,EAAA;AAC5C,IAAA,IAAA,CAAK,gBAAmB,GAAA,KAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAA6B,GAAA,EAAE,OAAS,EAAA,IAAM,EAAA;AACrD,IAAA,MAAM,EAAE,OAAA,EAAS,GAAG,IAAA,EAAS,GAAA,KAAA;AAC7B,IAAI,IAAA,CAAC,KAAK,IAAM,EAAA;AACd,MAAK,IAAA,CAAA,IAAA,GAAO,EAAE,OAAQ,EAAA;AAAA;AAGxB,IAAO,MAAA,CAAA,MAAA,CAAO,KAAK,IAAM,EAAA;AAAA,MACvB,OAAS,EAAA;AAAA,QACP,GAAG,KAAK,IAAK,CAAA,OAAA;AAAA,QACb,GAAG;AAAA,OACL;AAAA,MACA,GAAG;AAAA,KACJ,CAAA;AACD,IAAO,OAAA,IAAA;AAAA;AAEX","file":"submit.mjs","sourcesContent":["import { AssociatedInputs } from '../../common';\nimport { Action, IAction } from '../base';\n\nexport type SubmitActionOptions = Omit<ISubmitAction, 'type' | 'data'>;\n\n/**\n * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.\n */\nexport interface ISubmitAction extends IAction {\n type: 'Action.Submit';\n\n /**\n * Controls which inputs are associated with the action.\n */\n associatedInputs?: AssociatedInputs;\n\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data?: MSTeamsData<Record<string, any>>;\n}\n\n/**\n * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.\n */\nexport class SubmitAction extends Action implements ISubmitAction {\n type: 'Action.Submit';\n\n /**\n * Controls which inputs are associated with the action.\n */\n associatedInputs?: AssociatedInputs;\n\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data?: MSTeamsData<Record<string, any>>;\n\n constructor(options: SubmitActionOptions = {}) {\n super();\n this.type = 'Action.Submit';\n Object.assign(this, options);\n }\n\n static from(options: Omit<ISubmitAction, 'type'>) {\n return new SubmitAction(options);\n }\n\n withAssociatedInputs(value: AssociatedInputs) {\n this.associatedInputs = value;\n return this;\n }\n\n withData(value: Record<string, any> = { msteams: {} }) {\n const { msteams, ...rest } = value;\n if (!this.data) {\n this.data = { msteams };\n }\n\n Object.assign(this.data, {\n msteams: {\n ...this.data.msteams,\n ...msteams,\n },\n ...rest,\n });\n return this;\n }\n}\n\n/**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\nexport type MSTeamsData<T> = {\n /**\n * Teams specific payload data.\n */\n msteams: T;\n\n /**\n * Other\n */\n [key: string]: any;\n};\n"]}
package/dist/card.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/card.ts"],"names":[],"mappings":";;AAwHO,MAAM,IAAsB,CAAA;AAAA,EACjC,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,cAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,wBAAA;AAAA;AAAA;AAAA;A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AAO,OAAA,IAAA;AAAA;AAEX;AAUO,SAAS,OAAO,KAA4B,EAAA;AACjD,EAAA,OAAO,OAAO,KAAA,KAAU,QAAY,IAAA,KAAA,CAAM,IAAS,KAAA,cAAA;AACrD","file":"card.js","sourcesContent":["import { Action, SelectAction } from './actions';\r\nimport { IAuth, Refresh, VerticalAlignment } from './common';\r\nimport { Element } from './element';\r\nimport { IBackgroundImage } from './medias';\r\n\r\n/**\r\n * An Adaptive Card, containing a free-form body of card elements, and an optional set of actions.\r\n */\r\nexport interface ICard {\r\n type: 'AdaptiveCard';\r\n\r\n /**\r\n * The Adaptive Card schema.\r\n */\r\n $schema?: string;\r\n\r\n /**\r\n * Schema version that this card requires. If a client is lower than this version, the fallbackText will be rendered. NOTE: Version is not required for cards within an Action.ShowCard. However, it is required for the top-level card.\r\n */\r\n version: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6';\r\n\r\n /**\r\n * Defines how the card can be refreshed by making a request to the target Bot.\r\n */\r\n refresh?: Refresh;\r\n\r\n /**\r\n * Defines authentication information to enable on-behalf-of single sign on or just-in-time OAuth.\r\n */\r\n authentication?: IAuth;\r\n\r\n /**\r\n * The card elements to show in the primary card region.\r\n */\r\n body?: Element[];\r\n\r\n /**\r\n * The Actions to show in the card’s action bar.\r\n */\r\n actions?: Action[];\r\n\r\n /**\r\n * An Action that will be invoked when the card is tapped or selected. Action.ShowCard is not supported.\r\n */\r\n selectAction?: SelectAction;\r\n\r\n /**\r\n * Text shown when the client doesn’t support the version specified (may contain markdown).\r\n */\r\n fallbackText?: string;\r\n\r\n /**\r\n * Specifies the background image of the card.\r\n */\r\n backgroundImage?: IBackgroundImage | string;\r\n\r\n /**\r\n * Specifies the minimum height of the card.\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * When true content in this Adaptive Card should be presented right to left. When ‘false’ content in this Adaptive Card should be presented left to right. If unset, the default platform behavior will apply.\r\n */\r\n rtl?: boolean;\r\n\r\n /**\r\n * Specifies what should be spoken for this entire card. This is simple text or SSML fragment.\r\n */\r\n speak?: string;\r\n\r\n /**\r\n * The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions.\r\n */\r\n lang?: string;\r\n\r\n /**\r\n * Defines how the content should be aligned vertically within the container. Only relevant for fixed-height cards, or cards with a minHeight specified.\r\n */\r\n verticalContentAlignment?: VerticalAlignment;\r\n\r\n /**\r\n * Extra Teams data for the card.\r\n */\r\n msteams?: MSTeamsCardInfo;\r\n}\r\n\r\n/**\r\n * Card metadata for Microsoft Teams.\r\n */\r\nexport type MSTeamsCardInfo = {\r\n /**\r\n * Expands the card to take up the full width of the message.\r\n */\r\n width?: 'Full';\r\n\r\n /**\r\n * Conditional visibility of elements on different viewports.\r\n */\r\n targetWidth?:\r\n | 'veryNarrow'\r\n | 'narrow'\r\n | 'standard'\r\n | 'wide'\r\n | 'atLeast:veryNarrow'\r\n | 'atLeast:narrow'\r\n | 'atLeast:standard'\r\n | 'atLeast:wide'\r\n | 'atMost:veryNarrow'\r\n | 'atMost:narrow'\r\n | 'atMost:standard'\r\n | 'atMost:wide';\r\n};\r\n\r\nexport type CardOptions = Omit<Partial<ICard>, 'body' | 'type' | 'msteams'> &\r\n Partial<MSTeamsCardInfo>;\r\n\r\n/**\r\n * An Adaptive Card, containing a free-form body of card elements, and an optional set of actions.\r\n */\r\nexport class Card implements ICard {\r\n type: 'AdaptiveCard';\r\n\r\n /**\r\n * The Adaptive Card schema.\r\n */\r\n $schema?: string;\r\n\r\n /**\r\n * Schema version that this card requires. If a client is lower than this version, the fallbackText will be rendered. NOTE: Version is not required for cards within an Action.ShowCard. However, it is required for the top-level card.\r\n */\r\n version: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6';\r\n\r\n /**\r\n * Defines how the card can be refreshed by making a request to the target Bot.\r\n */\r\n refresh?: Refresh;\r\n\r\n /**\r\n * Defines authentication information to enable on-behalf-of single sign on or just-in-time OAuth.\r\n */\r\n authentication?: IAuth;\r\n\r\n /**\r\n * The card elements to show in the primary card region.\r\n */\r\n body: Element[];\r\n\r\n /**\r\n * The Actions to show in the card’s action bar.\r\n */\r\n actions?: Action[];\r\n\r\n /**\r\n * An Action that will be invoked when the card is tapped or selected. Action.ShowCard is not supported.\r\n */\r\n selectAction?: SelectAction;\r\n\r\n /**\r\n * Text shown when the client doesn’t support the version specified (may contain markdown).\r\n */\r\n fallbackText?: string;\r\n\r\n /**\r\n * Specifies the background image of the card.\r\n */\r\n backgroundImage?: IBackgroundImage | string;\r\n\r\n /**\r\n * Specifies the minimum height of the card.\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * When true content in this Adaptive Card should be presented right to left. When ‘false’ content in this Adaptive Card should be presented left to right. If unset, the default platform behavior will apply.\r\n */\r\n rtl?: boolean;\r\n\r\n /**\r\n * Specifies what should be spoken for this entire card. This is simple text or SSML fragment.\r\n */\r\n speak?: string;\r\n\r\n /**\r\n * The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions.\r\n */\r\n lang?: string;\r\n\r\n /**\r\n * Defines how the content should be aligned vertically within the container. Only relevant for fixed-height cards, or cards with a minHeight specified.\r\n */\r\n verticalContentAlignment?: VerticalAlignment;\r\n\r\n /**\r\n * Extra Teams data for the card.\r\n */\r\n msteams?: MSTeamsCardInfo;\r\n\r\n constructor(...body: Element[]) {\r\n this.type = 'AdaptiveCard';\r\n this.body = body;\r\n this.version = '1.6';\r\n }\r\n\r\n withOptions(value: CardOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withSchema(value: string) {\r\n this.$schema = value;\r\n return this;\r\n }\r\n\r\n withVersion(value: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6') {\r\n this.version = value;\r\n return this;\r\n }\r\n\r\n withRefresh(value: Refresh) {\r\n this.refresh = value;\r\n return this;\r\n }\r\n\r\n withAuth(value: IAuth) {\r\n this.authentication = value;\r\n return this;\r\n }\r\n\r\n withSelectedAction(value: SelectAction) {\r\n this.selectAction = value;\r\n return this;\r\n }\r\n\r\n withBody(...value: Element[]) {\r\n this.body = value;\r\n return this;\r\n }\r\n\r\n addCards(...value: Element[]) {\r\n this.body.push(...value);\r\n return this;\r\n }\r\n\r\n addActions(...value: Action[]) {\r\n if (!this.actions) {\r\n this.actions = [];\r\n }\r\n\r\n this.actions.push(...value);\r\n return this;\r\n }\r\n}\r\n\r\n/**\r\n * @hidden\r\n * @internal\r\n *\r\n * Type guard to check if a value is a Card.\r\n * @param value value to compare\r\n * @returns true if value is type of Card\r\n */\r\nexport function isCard(value: any): value is ICard {\r\n return typeof value === 'object' && value.type === 'AdaptiveCard';\r\n}\r\n"]}
1
+ {"version":3,"sources":["../src/card.ts"],"names":[],"mappings":";;AAwHO,MAAM,IAAsB,CAAA;AAAA,EACjC,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,cAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,wBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA,EAEA,eAAe,IAAiB,EAAA;AAC9B,IAAA,IAAA,CAAK,IAAO,GAAA,cAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AACZ,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AAAA;AACjB,EAEA,YAAY,KAAoB,E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ment } from './common';\nimport { Element } from './element';\nimport { IBackgroundImage } from './medias';\n\n/**\n * An Adaptive Card, containing a free-form body of card elements, and an optional set of actions.\n */\nexport interface ICard {\n type: 'AdaptiveCard';\n\n /**\n * The Adaptive Card schema.\n */\n $schema?: string;\n\n /**\n * Schema version that this card requires. If a client is lower than this version, the fallbackText will be rendered. NOTE: Version is not required for cards within an Action.ShowCard. However, it is required for the top-level card.\n */\n version: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6';\n\n /**\n * Defines how the card can be refreshed by making a request to the target Bot.\n */\n refresh?: Refresh;\n\n /**\n * Defines authentication information to enable on-behalf-of single sign on or just-in-time OAuth.\n */\n authentication?: IAuth;\n\n /**\n * The card elements to show in the primary card region.\n */\n body?: Element[];\n\n /**\n * The Actions to show in the card’s action bar.\n */\n actions?: Action[];\n\n /**\n * An Action that will be invoked when the card is tapped or selected. Action.ShowCard is not supported.\n */\n selectAction?: SelectAction;\n\n /**\n * Text shown when the client doesn’t support the version specified (may contain markdown).\n */\n fallbackText?: string;\n\n /**\n * Specifies the background image of the card.\n */\n backgroundImage?: IBackgroundImage | string;\n\n /**\n * Specifies the minimum height of the card.\n */\n minHeight?: string;\n\n /**\n * When true content in this Adaptive Card should be presented right to left. When ‘false’ content in this Adaptive Card should be presented left to right. If unset, the default platform behavior will apply.\n */\n rtl?: boolean;\n\n /**\n * Specifies what should be spoken for this entire card. This is simple text or SSML fragment.\n */\n speak?: string;\n\n /**\n * The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions.\n */\n lang?: string;\n\n /**\n * Defines how the content should be aligned vertically within the container. Only relevant for fixed-height cards, or cards with a minHeight specified.\n */\n verticalContentAlignment?: VerticalAlignment;\n\n /**\n * Extra Teams data for the card.\n */\n msteams?: MSTeamsCardInfo;\n}\n\n/**\n * Card metadata for Microsoft Teams.\n */\nexport type MSTeamsCardInfo = {\n /**\n * Expands the card to take up the full width of the message.\n */\n width?: 'Full';\n\n /**\n * Conditional visibility of elements on different viewports.\n */\n targetWidth?:\n | 'veryNarrow'\n | 'narrow'\n | 'standard'\n | 'wide'\n | 'atLeast:veryNarrow'\n | 'atLeast:narrow'\n | 'atLeast:standard'\n | 'atLeast:wide'\n | 'atMost:veryNarrow'\n | 'atMost:narrow'\n | 'atMost:standard'\n | 'atMost:wide';\n};\n\nexport type CardOptions = Omit<Partial<ICard>, 'body' | 'type' | 'msteams'> &\n Partial<MSTeamsCardInfo>;\n\n/**\n * An Adaptive Card, containing a free-form body of card elements, and an optional set of actions.\n */\nexport class Card implements ICard {\n type: 'AdaptiveCard';\n\n /**\n * The Adaptive Card schema.\n */\n $schema?: string;\n\n /**\n * Schema version that this card requires. If a client is lower than this version, the fallbackText will be rendered. NOTE: Version is not required for cards within an Action.ShowCard. However, it is required for the top-level card.\n */\n version: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6';\n\n /**\n * Defines how the card can be refreshed by making a request to the target Bot.\n */\n refresh?: Refresh;\n\n /**\n * Defines authentication information to enable on-behalf-of single sign on or just-in-time OAuth.\n */\n authentication?: IAuth;\n\n /**\n * The card elements to show in the primary card region.\n */\n body: Element[];\n\n /**\n * The Actions to show in the card’s action bar.\n */\n actions?: Action[];\n\n /**\n * An Action that will be invoked when the card is tapped or selected. Action.ShowCard is not supported.\n */\n selectAction?: SelectAction;\n\n /**\n * Text shown when the client doesn’t support the version specified (may contain markdown).\n */\n fallbackText?: string;\n\n /**\n * Specifies the background image of the card.\n */\n backgroundImage?: IBackgroundImage | string;\n\n /**\n * Specifies the minimum height of the card.\n */\n minHeight?: string;\n\n /**\n * When true content in this Adaptive Card should be presented right to left. When ‘false’ content in this Adaptive Card should be presented left to right. If unset, the default platform behavior will apply.\n */\n rtl?: boolean;\n\n /**\n * Specifies what should be spoken for this entire card. This is simple text or SSML fragment.\n */\n speak?: string;\n\n /**\n * The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions.\n */\n lang?: string;\n\n /**\n * Defines how the content should be aligned vertically within the container. Only relevant for fixed-height cards, or cards with a minHeight specified.\n */\n verticalContentAlignment?: VerticalAlignment;\n\n /**\n * Extra Teams data for the card.\n */\n msteams?: MSTeamsCardInfo;\n\n constructor(...body: Element[]) {\n this.type = 'AdaptiveCard';\n this.body = body;\n this.version = '1.6';\n }\n\n withOptions(value: CardOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withSchema(value: string) {\n this.$schema = value;\n return this;\n }\n\n withVersion(value: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6') {\n this.version = value;\n return this;\n }\n\n withRefresh(value: Refresh) {\n this.refresh = value;\n return this;\n }\n\n withAuth(value: IAuth) {\n this.authentication = value;\n return this;\n }\n\n withSelectedAction(value: SelectAction) {\n this.selectAction = value;\n return this;\n }\n\n withBody(...value: Element[]) {\n this.body = value;\n return this;\n }\n\n addCards(...value: Element[]) {\n this.body.push(...value);\n return this;\n }\n\n addActions(...value: Action[]) {\n if (!this.actions) {\n this.actions = [];\n }\n\n this.actions.push(...value);\n return this;\n }\n}\n\n/**\n * @hidden\n * @internal\n *\n * Type guard to check if a value is a Card.\n * @param value value to compare\n * @returns true if value is type of Card\n */\nexport function isCard(value: any): value is ICard {\n return typeof value === 'object' && value.type === 'AdaptiveCard';\n}\n"]}
package/dist/card.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/card.ts"],"names":[],"mappings":"AAwHO,MAAM,IAAsB,CAAA;AAAA,EACjC,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,cAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,E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,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAiB,EAAA;AAC7B,IAAI,IAAA,CAAC,KAAK,OAAS,EAAA;AACjB,MAAA,IAAA,CAAK,UAAU,EAAC;AAAA;AAGlB,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AAEX;AAUO,SAAS,OAAO,KAA4B,EAAA;AACjD,EAAA,OAAO,OAAO,KAAA,KAAU,QAAY,IAAA,KAAA,CAAM,IAAS,KAAA,cAAA;AACrD","file":"card.mjs","sourcesContent":["import { Action, SelectAction } from './actions';\r\nimport { IAuth, Refresh, VerticalAlignment } from './common';\r\nimport { Element } from './element';\r\nimport { IBackgroundImage } from './medias';\r\n\r\n/**\r\n * An Adaptive Card, containing a free-form body of card elements, and an optional set of actions.\r\n */\r\nexport interface ICard {\r\n type: 'AdaptiveCard';\r\n\r\n /**\r\n * The Adaptive Card schema.\r\n */\r\n $schema?: string;\r\n\r\n /**\r\n * Schema version that this card requires. If a client is lower than this version, the fallbackText will be rendered. NOTE: Version is not required for cards within an Action.ShowCard. However, it is required for the top-level card.\r\n */\r\n version: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6';\r\n\r\n /**\r\n * Defines how the card can be refreshed by making a request to the target Bot.\r\n */\r\n refresh?: Refresh;\r\n\r\n /**\r\n * Defines authentication information to enable on-behalf-of single sign on or just-in-time OAuth.\r\n */\r\n authentication?: IAuth;\r\n\r\n /**\r\n * The card elements to show in the primary card region.\r\n */\r\n body?: Element[];\r\n\r\n /**\r\n * The Actions to show in the card’s action bar.\r\n */\r\n actions?: Action[];\r\n\r\n /**\r\n * An Action that will be invoked when the card is tapped or selected. Action.ShowCard is not supported.\r\n */\r\n selectAction?: SelectAction;\r\n\r\n /**\r\n * Text shown when the client doesn’t support the version specified (may contain markdown).\r\n */\r\n fallbackText?: string;\r\n\r\n /**\r\n * Specifies the background image of the card.\r\n */\r\n backgroundImage?: IBackgroundImage | string;\r\n\r\n /**\r\n * Specifies the minimum height of the card.\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * When true content in this Adaptive Card should be presented right to left. When ‘false’ content in this Adaptive Card should be presented left to right. If unset, the default platform behavior will apply.\r\n */\r\n rtl?: boolean;\r\n\r\n /**\r\n * Specifies what should be spoken for this entire card. This is simple text or SSML fragment.\r\n */\r\n speak?: string;\r\n\r\n /**\r\n * The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions.\r\n */\r\n lang?: string;\r\n\r\n /**\r\n * Defines how the content should be aligned vertically within the container. Only relevant for fixed-height cards, or cards with a minHeight specified.\r\n */\r\n verticalContentAlignment?: VerticalAlignment;\r\n\r\n /**\r\n * Extra Teams data for the card.\r\n */\r\n msteams?: MSTeamsCardInfo;\r\n}\r\n\r\n/**\r\n * Card metadata for Microsoft Teams.\r\n */\r\nexport type MSTeamsCardInfo = {\r\n /**\r\n * Expands the card to take up the full width of the message.\r\n */\r\n width?: 'Full';\r\n\r\n /**\r\n * Conditional visibility of elements on different viewports.\r\n */\r\n targetWidth?:\r\n | 'veryNarrow'\r\n | 'narrow'\r\n | 'standard'\r\n | 'wide'\r\n | 'atLeast:veryNarrow'\r\n | 'atLeast:narrow'\r\n | 'atLeast:standard'\r\n | 'atLeast:wide'\r\n | 'atMost:veryNarrow'\r\n | 'atMost:narrow'\r\n | 'atMost:standard'\r\n | 'atMost:wide';\r\n};\r\n\r\nexport type CardOptions = Omit<Partial<ICard>, 'body' | 'type' | 'msteams'> &\r\n Partial<MSTeamsCardInfo>;\r\n\r\n/**\r\n * An Adaptive Card, containing a free-form body of card elements, and an optional set of actions.\r\n */\r\nexport class Card implements ICard {\r\n type: 'AdaptiveCard';\r\n\r\n /**\r\n * The Adaptive Card schema.\r\n */\r\n $schema?: string;\r\n\r\n /**\r\n * Schema version that this card requires. If a client is lower than this version, the fallbackText will be rendered. NOTE: Version is not required for cards within an Action.ShowCard. However, it is required for the top-level card.\r\n */\r\n version: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6';\r\n\r\n /**\r\n * Defines how the card can be refreshed by making a request to the target Bot.\r\n */\r\n refresh?: Refresh;\r\n\r\n /**\r\n * Defines authentication information to enable on-behalf-of single sign on or just-in-time OAuth.\r\n */\r\n authentication?: IAuth;\r\n\r\n /**\r\n * The card elements to show in the primary card region.\r\n */\r\n body: Element[];\r\n\r\n /**\r\n * The Actions to show in the card’s action bar.\r\n */\r\n actions?: Action[];\r\n\r\n /**\r\n * An Action that will be invoked when the card is tapped or selected. Action.ShowCard is not supported.\r\n */\r\n selectAction?: SelectAction;\r\n\r\n /**\r\n * Text shown when the client doesn’t support the version specified (may contain markdown).\r\n */\r\n fallbackText?: string;\r\n\r\n /**\r\n * Specifies the background image of the card.\r\n */\r\n backgroundImage?: IBackgroundImage | string;\r\n\r\n /**\r\n * Specifies the minimum height of the card.\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * When true content in this Adaptive Card should be presented right to left. When ‘false’ content in this Adaptive Card should be presented left to right. If unset, the default platform behavior will apply.\r\n */\r\n rtl?: boolean;\r\n\r\n /**\r\n * Specifies what should be spoken for this entire card. This is simple text or SSML fragment.\r\n */\r\n speak?: string;\r\n\r\n /**\r\n * The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions.\r\n */\r\n lang?: string;\r\n\r\n /**\r\n * Defines how the content should be aligned vertically within the container. Only relevant for fixed-height cards, or cards with a minHeight specified.\r\n */\r\n verticalContentAlignment?: VerticalAlignment;\r\n\r\n /**\r\n * Extra Teams data for the card.\r\n */\r\n msteams?: MSTeamsCardInfo;\r\n\r\n constructor(...body: Element[]) {\r\n this.type = 'AdaptiveCard';\r\n this.body = body;\r\n this.version = '1.6';\r\n }\r\n\r\n withOptions(value: CardOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withSchema(value: string) {\r\n this.$schema = value;\r\n return this;\r\n }\r\n\r\n withVersion(value: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6') {\r\n this.version = value;\r\n return this;\r\n }\r\n\r\n withRefresh(value: Refresh) {\r\n this.refresh = value;\r\n return this;\r\n }\r\n\r\n withAuth(value: IAuth) {\r\n this.authentication = value;\r\n return this;\r\n }\r\n\r\n withSelectedAction(value: SelectAction) {\r\n this.selectAction = value;\r\n return this;\r\n }\r\n\r\n withBody(...value: Element[]) {\r\n this.body = value;\r\n return this;\r\n }\r\n\r\n addCards(...value: Element[]) {\r\n this.body.push(...value);\r\n return this;\r\n }\r\n\r\n addActions(...value: Action[]) {\r\n if (!this.actions) {\r\n this.actions = [];\r\n }\r\n\r\n this.actions.push(...value);\r\n return this;\r\n }\r\n}\r\n\r\n/**\r\n * @hidden\r\n * @internal\r\n *\r\n * Type guard to check if a value is a Card.\r\n * @param value value to compare\r\n * @returns true if value is type of Card\r\n */\r\nexport function isCard(value: any): value is ICard {\r\n return typeof value === 'object' && value.type === 'AdaptiveCard';\r\n}\r\n"]}
1
+ {"version":3,"sources":["../src/card.ts"],"names":[],"mappings":"AAwHO,MAAM,IAAsB,CAAA;AAAA,EACjC,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,cAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,wBAAA;AAAA;AAAA;AA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1B,IAAO,OAAA,IAAA;AAAA;AAEX;AAUO,SAAS,OAAO,KAA4B,EAAA;AACjD,EAAA,OAAO,OAAO,KAAA,KAAU,QAAY,IAAA,KAAA,CAAM,IAAS,KAAA,cAAA;AACrD","file":"card.mjs","sourcesContent":["import { Action, SelectAction } from './actions';\nimport { IAuth, Refresh, VerticalAlignment } from './common';\nimport { Element } from './element';\nimport { IBackgroundImage } from './medias';\n\n/**\n * An Adaptive Card, containing a free-form body of card elements, and an optional set of actions.\n */\nexport interface ICard {\n type: 'AdaptiveCard';\n\n /**\n * The Adaptive Card schema.\n */\n $schema?: string;\n\n /**\n * Schema version that this card requires. If a client is lower than this version, the fallbackText will be rendered. NOTE: Version is not required for cards within an Action.ShowCard. However, it is required for the top-level card.\n */\n version: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6';\n\n /**\n * Defines how the card can be refreshed by making a request to the target Bot.\n */\n refresh?: Refresh;\n\n /**\n * Defines authentication information to enable on-behalf-of single sign on or just-in-time OAuth.\n */\n authentication?: IAuth;\n\n /**\n * The card elements to show in the primary card region.\n */\n body?: Element[];\n\n /**\n * The Actions to show in the card’s action bar.\n */\n actions?: Action[];\n\n /**\n * An Action that will be invoked when the card is tapped or selected. Action.ShowCard is not supported.\n */\n selectAction?: SelectAction;\n\n /**\n * Text shown when the client doesn’t support the version specified (may contain markdown).\n */\n fallbackText?: string;\n\n /**\n * Specifies the background image of the card.\n */\n backgroundImage?: IBackgroundImage | string;\n\n /**\n * Specifies the minimum height of the card.\n */\n minHeight?: string;\n\n /**\n * When true content in this Adaptive Card should be presented right to left. When ‘false’ content in this Adaptive Card should be presented left to right. If unset, the default platform behavior will apply.\n */\n rtl?: boolean;\n\n /**\n * Specifies what should be spoken for this entire card. This is simple text or SSML fragment.\n */\n speak?: string;\n\n /**\n * The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions.\n */\n lang?: string;\n\n /**\n * Defines how the content should be aligned vertically within the container. Only relevant for fixed-height cards, or cards with a minHeight specified.\n */\n verticalContentAlignment?: VerticalAlignment;\n\n /**\n * Extra Teams data for the card.\n */\n msteams?: MSTeamsCardInfo;\n}\n\n/**\n * Card metadata for Microsoft Teams.\n */\nexport type MSTeamsCardInfo = {\n /**\n * Expands the card to take up the full width of the message.\n */\n width?: 'Full';\n\n /**\n * Conditional visibility of elements on different viewports.\n */\n targetWidth?:\n | 'veryNarrow'\n | 'narrow'\n | 'standard'\n | 'wide'\n | 'atLeast:veryNarrow'\n | 'atLeast:narrow'\n | 'atLeast:standard'\n | 'atLeast:wide'\n | 'atMost:veryNarrow'\n | 'atMost:narrow'\n | 'atMost:standard'\n | 'atMost:wide';\n};\n\nexport type CardOptions = Omit<Partial<ICard>, 'body' | 'type' | 'msteams'> &\n Partial<MSTeamsCardInfo>;\n\n/**\n * An Adaptive Card, containing a free-form body of card elements, and an optional set of actions.\n */\nexport class Card implements ICard {\n type: 'AdaptiveCard';\n\n /**\n * The Adaptive Card schema.\n */\n $schema?: string;\n\n /**\n * Schema version that this card requires. If a client is lower than this version, the fallbackText will be rendered. NOTE: Version is not required for cards within an Action.ShowCard. However, it is required for the top-level card.\n */\n version: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6';\n\n /**\n * Defines how the card can be refreshed by making a request to the target Bot.\n */\n refresh?: Refresh;\n\n /**\n * Defines authentication information to enable on-behalf-of single sign on or just-in-time OAuth.\n */\n authentication?: IAuth;\n\n /**\n * The card elements to show in the primary card region.\n */\n body: Element[];\n\n /**\n * The Actions to show in the card’s action bar.\n */\n actions?: Action[];\n\n /**\n * An Action that will be invoked when the card is tapped or selected. Action.ShowCard is not supported.\n */\n selectAction?: SelectAction;\n\n /**\n * Text shown when the client doesn’t support the version specified (may contain markdown).\n */\n fallbackText?: string;\n\n /**\n * Specifies the background image of the card.\n */\n backgroundImage?: IBackgroundImage | string;\n\n /**\n * Specifies the minimum height of the card.\n */\n minHeight?: string;\n\n /**\n * When true content in this Adaptive Card should be presented right to left. When ‘false’ content in this Adaptive Card should be presented left to right. If unset, the default platform behavior will apply.\n */\n rtl?: boolean;\n\n /**\n * Specifies what should be spoken for this entire card. This is simple text or SSML fragment.\n */\n speak?: string;\n\n /**\n * The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions.\n */\n lang?: string;\n\n /**\n * Defines how the content should be aligned vertically within the container. Only relevant for fixed-height cards, or cards with a minHeight specified.\n */\n verticalContentAlignment?: VerticalAlignment;\n\n /**\n * Extra Teams data for the card.\n */\n msteams?: MSTeamsCardInfo;\n\n constructor(...body: Element[]) {\n this.type = 'AdaptiveCard';\n this.body = body;\n this.version = '1.6';\n }\n\n withOptions(value: CardOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withSchema(value: string) {\n this.$schema = value;\n return this;\n }\n\n withVersion(value: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6') {\n this.version = value;\n return this;\n }\n\n withRefresh(value: Refresh) {\n this.refresh = value;\n return this;\n }\n\n withAuth(value: IAuth) {\n this.authentication = value;\n return this;\n }\n\n withSelectedAction(value: SelectAction) {\n this.selectAction = value;\n return this;\n }\n\n withBody(...value: Element[]) {\n this.body = value;\n return this;\n }\n\n addCards(...value: Element[]) {\n this.body.push(...value);\n return this;\n }\n\n addActions(...value: Action[]) {\n if (!this.actions) {\n this.actions = [];\n }\n\n this.actions.push(...value);\n return this;\n }\n}\n\n/**\n * @hidden\n * @internal\n *\n * Type guard to check if a value is a Card.\n * @param value value to compare\n * @returns true if value is type of Card\n */\nexport function isCard(value: any): value is ICard {\n return typeof value === 'object' && value.type === 'AdaptiveCard';\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/charts/donut.ts"],"names":["Element"],"mappings":";;;;AA8BO,MAAM,mBAAmBA,YAA+B,CAAA;AAAA,EAC7D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,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,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"donut.js","sourcesContent":["import { IElement, Element } from '../base';\r\n\r\nimport { ChartColor } from './color';\r\n\r\nexport interface IDonutChart extends IElement {\r\n type: 'Chart.Donut';\r\n\r\n /**\r\n * the title of the chart.\r\n */\r\n title?: string;\r\n\r\n /**\r\n * the name of the set of colors to use.\r\n */\r\n colorSet?: string;\r\n\r\n /**\r\n * the data to display in the chart.\r\n */\r\n data: IDonutChartData[];\r\n\r\n /**\r\n * the area of a `Layout.AreaGrid` layout in which an element should be displayed.\r\n */\r\n 'grid.area'?: string;\r\n}\r\n\r\nexport type DonutChartOptions = Omit<IDonutChart, 'type' | 'data'>;\r\n\r\nexport class DonutChart extends Element implements IDonutChart {\r\n type: 'Chart.Donut';\r\n\r\n /**\r\n * the title of the chart.\r\n */\r\n title?: string;\r\n\r\n /**\r\n * the name of the set of colors to use.\r\n */\r\n colorSet?: string;\r\n\r\n /**\r\n * the data to display in the chart.\r\n */\r\n data: IDonutChartData[];\r\n\r\n constructor(...data: IDonutChartData[]) {\r\n super();\r\n this.type = 'Chart.Donut';\r\n this.data = data;\r\n }\r\n\r\n withOptions(value: DonutChartOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withTitle(value: string) {\r\n this.title = value;\r\n return this;\r\n }\r\n\r\n withColorSet(value: string) {\r\n this.colorSet = value;\r\n return this;\r\n }\r\n\r\n addData(...data: IDonutChartData[]) {\r\n this.data.push(...data);\r\n return this;\r\n }\r\n}\r\n\r\nexport interface IDonutChartData {\r\n /**\r\n * the color to use for the data point.\r\n */\r\n color?: ChartColor;\r\n\r\n /**\r\n * the legend of the chart.\r\n */\r\n legend?: string;\r\n\r\n /**\r\n * the value associated with the data point.\r\n */\r\n value: number;\r\n}\r\n\r\nexport type DonutChartDataOptions = Omit<IDonutChartData, 'value'>;\r\n\r\nexport class DonutChartData implements IDonutChartData {\r\n /**\r\n * the color to use for the data point.\r\n */\r\n color?: ChartColor;\r\n\r\n /**\r\n * the legend of the chart.\r\n */\r\n legend?: string;\r\n\r\n /**\r\n * the value associated with the data point.\r\n */\r\n value: number;\r\n\r\n constructor(value = 0, options: DonutChartDataOptions = {}) {\r\n this.value = value;\r\n this.withOptions(options);\r\n }\r\n\r\n withOptions(value: DonutChartDataOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withColor(value: ChartColor) {\r\n this.color = value;\r\n return this;\r\n }\r\n\r\n withLegend(value: string) {\r\n this.legend = value;\r\n return this;\r\n }\r\n\r\n withValue(value: number) {\r\n this.value = value;\r\n return this;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/charts/donut.ts"],"names":["Element"],"mappings":";;;;AA8BO,MAAM,mBAAmBA,YAA+B,CAAA;AAAA,EAC7D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,eAAe,IAAyB,EAAA;AACtC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,aAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AAAA;AACd,EAEA,YAAY,KAA0B,EAAA;AACpC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAe,EAAA;AAC1B,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,IAAyB,EAAA;AAClC,IAAK,IAAA,CAAA,IAAA,CAAK,IAAK,CAAA,GAAG,IAAI,CAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AAEX;AAqBO,MAAM,cAA0C,CAAA;AAAA;AAAA;AAAA;AAAA,EAIrD,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAY,CAAA,KAAA,GAAQ,CAAG,EAAA,OAAA,GAAiC,EAAI,EAAA;AAC1D,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAA,IAAA,CAAK,YAAY,OAAO,CAAA;AAAA;AAC1B,EAEA,YAAY,KAA8B,EAAA;AACxC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAmB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"donut.js","sourcesContent":["import { IElement, Element } from '../base';\n\nimport { ChartColor } from './color';\n\nexport interface IDonutChart extends IElement {\n type: 'Chart.Donut';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: IDonutChartData[];\n\n /**\n * the area of a `Layout.AreaGrid` layout in which an element should be displayed.\n */\n 'grid.area'?: string;\n}\n\nexport type DonutChartOptions = Omit<IDonutChart, 'type' | 'data'>;\n\nexport class DonutChart extends Element implements IDonutChart {\n type: 'Chart.Donut';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: IDonutChartData[];\n\n constructor(...data: IDonutChartData[]) {\n super();\n this.type = 'Chart.Donut';\n this.data = data;\n }\n\n withOptions(value: DonutChartOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withColorSet(value: string) {\n this.colorSet = value;\n return this;\n }\n\n addData(...data: IDonutChartData[]) {\n this.data.push(...data);\n return this;\n }\n}\n\nexport interface IDonutChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the value associated with the data point.\n */\n value: number;\n}\n\nexport type DonutChartDataOptions = Omit<IDonutChartData, 'value'>;\n\nexport class DonutChartData implements IDonutChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the value associated with the data point.\n */\n value: number;\n\n constructor(value = 0, options: DonutChartDataOptions = {}) {\n this.value = value;\n this.withOptions(options);\n }\n\n withOptions(value: DonutChartDataOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withColor(value: ChartColor) {\n this.color = value;\n return this;\n }\n\n withLegend(value: string) {\n this.legend = value;\n return this;\n }\n\n withValue(value: number) {\n this.value = value;\n return this;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/charts/donut.ts"],"names":[],"mappings":";;AA8BO,MAAM,mBAAmB,OAA+B,CAAA;AAAA,EAC7D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,eAAe,IAAyB,EAAA;AACtC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,aAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AAAA;AACd,EAEA,YAAY,KAA0B,EAAA;AACpC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAe,EAAA;AAC1B,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,IAAyB,EAAA;AAClC,IAAK,IAAA,CAAA,IAAA,CAAK,IAAK,CAAA,GAAG,IAAI,CAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AAEX;AAqBO,MAAM,cAA0C,CAAA;AAAA;AAAA;AAAA;AAAA,EAIrD,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAY,CAAA,KAAA,GAAQ,CAAG,EAAA,OAAA,GAAiC,EAAI,EAAA;AAC1D,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAA,IAAA,CAAK,YAAY,OAAO,CAAA;AAAA;AAC1B,EAEA,YAAY,KAA8B,EAAA;AACxC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAmB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"donut.mjs","sourcesContent":["import { IElement, Element } from '../base';\r\n\r\nimport { ChartColor } from './color';\r\n\r\nexport interface IDonutChart extends IElement {\r\n type: 'Chart.Donut';\r\n\r\n /**\r\n * the title of the chart.\r\n */\r\n title?: string;\r\n\r\n /**\r\n * the name of the set of colors to use.\r\n */\r\n colorSet?: string;\r\n\r\n /**\r\n * the data to display in the chart.\r\n */\r\n data: IDonutChartData[];\r\n\r\n /**\r\n * the area of a `Layout.AreaGrid` layout in which an element should be displayed.\r\n */\r\n 'grid.area'?: string;\r\n}\r\n\r\nexport type DonutChartOptions = Omit<IDonutChart, 'type' | 'data'>;\r\n\r\nexport class DonutChart extends Element implements IDonutChart {\r\n type: 'Chart.Donut';\r\n\r\n /**\r\n * the title of the chart.\r\n */\r\n title?: string;\r\n\r\n /**\r\n * the name of the set of colors to use.\r\n */\r\n colorSet?: string;\r\n\r\n /**\r\n * the data to display in the chart.\r\n */\r\n data: IDonutChartData[];\r\n\r\n constructor(...data: IDonutChartData[]) {\r\n super();\r\n this.type = 'Chart.Donut';\r\n this.data = data;\r\n }\r\n\r\n withOptions(value: DonutChartOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withTitle(value: string) {\r\n this.title = value;\r\n return this;\r\n }\r\n\r\n withColorSet(value: string) {\r\n this.colorSet = value;\r\n return this;\r\n }\r\n\r\n addData(...data: IDonutChartData[]) {\r\n this.data.push(...data);\r\n return this;\r\n }\r\n}\r\n\r\nexport interface IDonutChartData {\r\n /**\r\n * the color to use for the data point.\r\n */\r\n color?: ChartColor;\r\n\r\n /**\r\n * the legend of the chart.\r\n */\r\n legend?: string;\r\n\r\n /**\r\n * the value associated with the data point.\r\n */\r\n value: number;\r\n}\r\n\r\nexport type DonutChartDataOptions = Omit<IDonutChartData, 'value'>;\r\n\r\nexport class DonutChartData implements IDonutChartData {\r\n /**\r\n * the color to use for the data point.\r\n */\r\n color?: ChartColor;\r\n\r\n /**\r\n * the legend of the chart.\r\n */\r\n legend?: string;\r\n\r\n /**\r\n * the value associated with the data point.\r\n */\r\n value: number;\r\n\r\n constructor(value = 0, options: DonutChartDataOptions = {}) {\r\n this.value = value;\r\n this.withOptions(options);\r\n }\r\n\r\n withOptions(value: DonutChartDataOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withColor(value: ChartColor) {\r\n this.color = value;\r\n return this;\r\n }\r\n\r\n withLegend(value: string) {\r\n this.legend = value;\r\n return this;\r\n }\r\n\r\n withValue(value: number) {\r\n this.value = value;\r\n return this;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/charts/donut.ts"],"names":[],"mappings":";;AA8BO,MAAM,mBAAmB,OAA+B,CAAA;AAAA,EAC7D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,eAAe,IAAyB,EAAA;AACtC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,aAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AAAA;AACd,EAEA,YAAY,KAA0B,EAAA;AACpC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAe,EAAA;AAC1B,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,IAAyB,EAAA;AAClC,IAAK,IAAA,CAAA,IAAA,CAAK,IAAK,CAAA,GAAG,IAAI,CAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AAEX;AAqBO,MAAM,cAA0C,CAAA;AAAA;AAAA;AAAA;AAAA,EAIrD,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAY,CAAA,KAAA,GAAQ,CAAG,EAAA,OAAA,GAAiC,EAAI,EAAA;AAC1D,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAA,IAAA,CAAK,YAAY,OAAO,CAAA;AAAA;AAC1B,EAEA,YAAY,KAA8B,EAAA;AACxC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAmB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"donut.mjs","sourcesContent":["import { IElement, Element } from '../base';\n\nimport { ChartColor } from './color';\n\nexport interface IDonutChart extends IElement {\n type: 'Chart.Donut';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: IDonutChartData[];\n\n /**\n * the area of a `Layout.AreaGrid` layout in which an element should be displayed.\n */\n 'grid.area'?: string;\n}\n\nexport type DonutChartOptions = Omit<IDonutChart, 'type' | 'data'>;\n\nexport class DonutChart extends Element implements IDonutChart {\n type: 'Chart.Donut';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: IDonutChartData[];\n\n constructor(...data: IDonutChartData[]) {\n super();\n this.type = 'Chart.Donut';\n this.data = data;\n }\n\n withOptions(value: DonutChartOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withColorSet(value: string) {\n this.colorSet = value;\n return this;\n }\n\n addData(...data: IDonutChartData[]) {\n this.data.push(...data);\n return this;\n }\n}\n\nexport interface IDonutChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the value associated with the data point.\n */\n value: number;\n}\n\nexport type DonutChartDataOptions = Omit<IDonutChartData, 'value'>;\n\nexport class DonutChartData implements IDonutChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the value associated with the data point.\n */\n value: number;\n\n constructor(value = 0, options: DonutChartDataOptions = {}) {\n this.value = value;\n this.withOptions(options);\n }\n\n withOptions(value: DonutChartDataOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withColor(value: ChartColor) {\n this.color = value;\n return this;\n }\n\n withLegend(value: string) {\n this.legend = value;\n return this;\n }\n\n withValue(value: number) {\n this.value = value;\n return this;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/charts/line.ts"],"names":["Element"],"mappings":";;;;AA8BO,MAAM,kBAAkBA,YAA8B,CAAA;AAAA,EAC3D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,eAAe,IAAwB,EAAA;AACrC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,YAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AAAA;AACd,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAe,EAAA;AAC1B,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,IAAwB,EAAA;AACjC,IAAK,IAAA,CAAA,IAAA,CAAK,IAAK,CAAA,GAAG,IAAI,CAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AAEX;AAqBO,MAAM,aAAwC,CAAA;AAAA;AAAA;AAAA;AAAA,EAInD,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA,EAEA,eAAe,UAAmC,EAAA;AAChD,IAAA,IAAA,CAAK,MAAS,GAAA,UAAA;AAAA;AAChB,EAEA,YAAY,KAA6B,EAAA;AACvC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAmB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,iBAAiB,KAA8B,EAAA;AAC7C,IAAK,IAAA,CAAA,MAAA,CAAO,IAAK,CAAA,GAAG,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AAEX;AAcO,MAAM,kBAAkD,CAAA;AAAA;AAAA;AAAA;AAAA,EAI7D,CAAA;AAAA;AAAA;AAAA;AAAA,EAKA,CAAA;AAAA,EAEA,WAAA,CAAY,GAAoB,CAAW,EAAA;AACzC,IAAA,IAAA,CAAK,CAAI,GAAA,CAAA;AACT,IAAA,IAAA,CAAK,CAAI,GAAA,CAAA;AAAA;AAEb","file":"line.js","sourcesContent":["import { IElement, Element } from '../base';\r\n\r\nimport { ChartColor } from './color';\r\n\r\nexport interface ILineChart extends IElement {\r\n type: 'Chart.Line';\r\n\r\n /**\r\n * the title of the chart.\r\n */\r\n title?: string;\r\n\r\n /**\r\n * the color to use for all data points.\r\n */\r\n color?: ChartColor;\r\n\r\n /**\r\n * the name of the set of colors to use.\r\n */\r\n colorSet?: string;\r\n\r\n /**\r\n * the data to display in the chart.\r\n */\r\n data: ILineChartData[];\r\n}\r\n\r\nexport type LineChartOptions = Omit<ILineChart, 'type' | 'data'>;\r\n\r\nexport class LineChart extends Element implements ILineChart {\r\n type: 'Chart.Line';\r\n\r\n /**\r\n * the title of the chart.\r\n */\r\n title?: string;\r\n\r\n /**\r\n * the color to use for all data points.\r\n */\r\n color?: ChartColor;\r\n\r\n /**\r\n * the name of the set of colors to use.\r\n */\r\n colorSet?: string;\r\n\r\n /**\r\n * the data to display in the chart.\r\n */\r\n data: ILineChartData[];\r\n\r\n constructor(...data: ILineChartData[]) {\r\n super();\r\n this.type = 'Chart.Line';\r\n this.data = data;\r\n }\r\n\r\n withOptions(value: LineChartOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withTitle(value: string) {\r\n this.title = value;\r\n return this;\r\n }\r\n\r\n withColorSet(value: string) {\r\n this.colorSet = value;\r\n return this;\r\n }\r\n\r\n addData(...data: ILineChartData[]) {\r\n this.data.push(...data);\r\n return this;\r\n }\r\n}\r\n\r\nexport interface ILineChartData {\r\n /**\r\n * the color to use for the data point.\r\n */\r\n color?: ChartColor;\r\n\r\n /**\r\n * the legend of the chart.\r\n */\r\n legend?: string;\r\n\r\n /**\r\n * the data points in the series.\r\n */\r\n values: ILineChartDataPoint[];\r\n}\r\n\r\nexport type LineChartDataOptions = Omit<ILineChartData, 'values'>;\r\n\r\nexport class LineChartData implements ILineChartData {\r\n /**\r\n * the color to use for the data point.\r\n */\r\n color?: ChartColor;\r\n\r\n /**\r\n * the legend of the chart.\r\n */\r\n legend?: string;\r\n\r\n /**\r\n * the data points in the series.\r\n */\r\n values: ILineChartDataPoint[];\r\n\r\n constructor(...dataPoints: ILineChartDataPoint[]) {\r\n this.values = dataPoints;\r\n }\r\n\r\n withOptions(value: LineChartDataOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withColor(value: ChartColor) {\r\n this.color = value;\r\n return this;\r\n }\r\n\r\n withLegend(value: string) {\r\n this.legend = value;\r\n return this;\r\n }\r\n\r\n addDataPoints(...value: ILineChartDataPoint[]) {\r\n this.values.push(...value);\r\n return this;\r\n }\r\n}\r\n\r\nexport interface ILineChartDataPoint {\r\n /**\r\n * the x axis value of the data point.\r\n */\r\n x: number | string;\r\n\r\n /**\r\n * the y axis value of the data point.\r\n */\r\n y: number;\r\n}\r\n\r\nexport class LineChartDataPoint implements ILineChartDataPoint {\r\n /**\r\n * the x axis value of the data point.\r\n */\r\n x: number | string;\r\n\r\n /**\r\n * the y axis value of the data point.\r\n */\r\n y: number;\r\n\r\n constructor(x: number | string, y: number) {\r\n this.x = x;\r\n this.y = y;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/charts/line.ts"],"names":["Element"],"mappings":";;;;AA8BO,MAAM,kBAAkBA,YAA8B,CAAA;AAAA,EAC3D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,eAAe,IAAwB,EAAA;AACrC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,YAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AAAA;AACd,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAe,EAAA;AAC1B,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,IAAwB,EAAA;AACjC,IAAK,IAAA,CAAA,IAAA,CAAK,IAAK,CAAA,GAAG,IAAI,CAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AAEX;AAqBO,MAAM,aAAwC,CAAA;AAAA;AAAA;AAAA;AAAA,EAInD,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA,EAEA,eAAe,UAAmC,EAAA;AAChD,IAAA,IAAA,CAAK,MAAS,GAAA,UAAA;AAAA;AAChB,EAEA,YAAY,KAA6B,EAAA;AACvC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAmB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,iBAAiB,KAA8B,EAAA;AAC7C,IAAK,IAAA,CAAA,MAAA,CAAO,IAAK,CAAA,GAAG,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AAEX;AAcO,MAAM,kBAAkD,CAAA;AAAA;AAAA;AAAA;AAAA,EAI7D,CAAA;AAAA;AAAA;AAAA;AAAA,EAKA,CAAA;AAAA,EAEA,WAAA,CAAY,GAAoB,CAAW,EAAA;AACzC,IAAA,IAAA,CAAK,CAAI,GAAA,CAAA;AACT,IAAA,IAAA,CAAK,CAAI,GAAA,CAAA;AAAA;AAEb","file":"line.js","sourcesContent":["import { IElement, Element } from '../base';\n\nimport { ChartColor } from './color';\n\nexport interface ILineChart extends IElement {\n type: 'Chart.Line';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the color to use for all data points.\n */\n color?: ChartColor;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: ILineChartData[];\n}\n\nexport type LineChartOptions = Omit<ILineChart, 'type' | 'data'>;\n\nexport class LineChart extends Element implements ILineChart {\n type: 'Chart.Line';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the color to use for all data points.\n */\n color?: ChartColor;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: ILineChartData[];\n\n constructor(...data: ILineChartData[]) {\n super();\n this.type = 'Chart.Line';\n this.data = data;\n }\n\n withOptions(value: LineChartOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withColorSet(value: string) {\n this.colorSet = value;\n return this;\n }\n\n addData(...data: ILineChartData[]) {\n this.data.push(...data);\n return this;\n }\n}\n\nexport interface ILineChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the data points in the series.\n */\n values: ILineChartDataPoint[];\n}\n\nexport type LineChartDataOptions = Omit<ILineChartData, 'values'>;\n\nexport class LineChartData implements ILineChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the data points in the series.\n */\n values: ILineChartDataPoint[];\n\n constructor(...dataPoints: ILineChartDataPoint[]) {\n this.values = dataPoints;\n }\n\n withOptions(value: LineChartDataOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withColor(value: ChartColor) {\n this.color = value;\n return this;\n }\n\n withLegend(value: string) {\n this.legend = value;\n return this;\n }\n\n addDataPoints(...value: ILineChartDataPoint[]) {\n this.values.push(...value);\n return this;\n }\n}\n\nexport interface ILineChartDataPoint {\n /**\n * the x axis value of the data point.\n */\n x: number | string;\n\n /**\n * the y axis value of the data point.\n */\n y: number;\n}\n\nexport class LineChartDataPoint implements ILineChartDataPoint {\n /**\n * the x axis value of the data point.\n */\n x: number | string;\n\n /**\n * the y axis value of the data point.\n */\n y: number;\n\n constructor(x: number | string, y: number) {\n this.x = x;\n this.y = y;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/charts/line.ts"],"names":[],"mappings":";;AA8BO,MAAM,kBAAkB,OAA8B,CAAA;AAAA,EAC3D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,eAAe,IAAwB,EAAA;AACrC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,YAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AAAA;AACd,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAe,EAAA;AAC1B,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,IAAwB,EAAA;AACjC,IAAK,IAAA,CAAA,IAAA,CAAK,IAAK,CAAA,GAAG,IAAI,CAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AAEX;AAqBO,MAAM,aAAwC,CAAA;AAAA;AAAA;AAAA;AAAA,EAInD,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA,EAEA,eAAe,UAAmC,EAAA;AAChD,IAAA,IAAA,CAAK,MAAS,GAAA,UAAA;AAAA;AAChB,EAEA,YAAY,KAA6B,EAAA;AACvC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAmB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,iBAAiB,KAA8B,EAAA;AAC7C,IAAK,IAAA,CAAA,MAAA,CAAO,IAAK,CAAA,GAAG,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AAEX;AAcO,MAAM,kBAAkD,CAAA;AAAA;AAAA;AAAA;AAAA,EAI7D,CAAA;AAAA;AAAA;AAAA;AAAA,EAKA,CAAA;AAAA,EAEA,WAAA,CAAY,GAAoB,CAAW,EAAA;AACzC,IAAA,IAAA,CAAK,CAAI,GAAA,CAAA;AACT,IAAA,IAAA,CAAK,CAAI,GAAA,CAAA;AAAA;AAEb","file":"line.mjs","sourcesContent":["import { IElement, Element } from '../base';\r\n\r\nimport { ChartColor } from './color';\r\n\r\nexport interface ILineChart extends IElement {\r\n type: 'Chart.Line';\r\n\r\n /**\r\n * the title of the chart.\r\n */\r\n title?: string;\r\n\r\n /**\r\n * the color to use for all data points.\r\n */\r\n color?: ChartColor;\r\n\r\n /**\r\n * the name of the set of colors to use.\r\n */\r\n colorSet?: string;\r\n\r\n /**\r\n * the data to display in the chart.\r\n */\r\n data: ILineChartData[];\r\n}\r\n\r\nexport type LineChartOptions = Omit<ILineChart, 'type' | 'data'>;\r\n\r\nexport class LineChart extends Element implements ILineChart {\r\n type: 'Chart.Line';\r\n\r\n /**\r\n * the title of the chart.\r\n */\r\n title?: string;\r\n\r\n /**\r\n * the color to use for all data points.\r\n */\r\n color?: ChartColor;\r\n\r\n /**\r\n * the name of the set of colors to use.\r\n */\r\n colorSet?: string;\r\n\r\n /**\r\n * the data to display in the chart.\r\n */\r\n data: ILineChartData[];\r\n\r\n constructor(...data: ILineChartData[]) {\r\n super();\r\n this.type = 'Chart.Line';\r\n this.data = data;\r\n }\r\n\r\n withOptions(value: LineChartOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withTitle(value: string) {\r\n this.title = value;\r\n return this;\r\n }\r\n\r\n withColorSet(value: string) {\r\n this.colorSet = value;\r\n return this;\r\n }\r\n\r\n addData(...data: ILineChartData[]) {\r\n this.data.push(...data);\r\n return this;\r\n }\r\n}\r\n\r\nexport interface ILineChartData {\r\n /**\r\n * the color to use for the data point.\r\n */\r\n color?: ChartColor;\r\n\r\n /**\r\n * the legend of the chart.\r\n */\r\n legend?: string;\r\n\r\n /**\r\n * the data points in the series.\r\n */\r\n values: ILineChartDataPoint[];\r\n}\r\n\r\nexport type LineChartDataOptions = Omit<ILineChartData, 'values'>;\r\n\r\nexport class LineChartData implements ILineChartData {\r\n /**\r\n * the color to use for the data point.\r\n */\r\n color?: ChartColor;\r\n\r\n /**\r\n * the legend of the chart.\r\n */\r\n legend?: string;\r\n\r\n /**\r\n * the data points in the series.\r\n */\r\n values: ILineChartDataPoint[];\r\n\r\n constructor(...dataPoints: ILineChartDataPoint[]) {\r\n this.values = dataPoints;\r\n }\r\n\r\n withOptions(value: LineChartDataOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withColor(value: ChartColor) {\r\n this.color = value;\r\n return this;\r\n }\r\n\r\n withLegend(value: string) {\r\n this.legend = value;\r\n return this;\r\n }\r\n\r\n addDataPoints(...value: ILineChartDataPoint[]) {\r\n this.values.push(...value);\r\n return this;\r\n }\r\n}\r\n\r\nexport interface ILineChartDataPoint {\r\n /**\r\n * the x axis value of the data point.\r\n */\r\n x: number | string;\r\n\r\n /**\r\n * the y axis value of the data point.\r\n */\r\n y: number;\r\n}\r\n\r\nexport class LineChartDataPoint implements ILineChartDataPoint {\r\n /**\r\n * the x axis value of the data point.\r\n */\r\n x: number | string;\r\n\r\n /**\r\n * the y axis value of the data point.\r\n */\r\n y: number;\r\n\r\n constructor(x: number | string, y: number) {\r\n this.x = x;\r\n this.y = y;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/charts/line.ts"],"names":[],"mappings":";;AA8BO,MAAM,kBAAkB,OAA8B,CAAA;AAAA,EAC3D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,eAAe,IAAwB,EAAA;AACrC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,YAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AAAA;AACd,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAe,EAAA;AAC1B,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,IAAwB,EAAA;AACjC,IAAK,IAAA,CAAA,IAAA,CAAK,IAAK,CAAA,GAAG,IAAI,CAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AAEX;AAqBO,MAAM,aAAwC,CAAA;AAAA;AAAA;AAAA;AAAA,EAInD,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA,EAEA,eAAe,UAAmC,EAAA;AAChD,IAAA,IAAA,CAAK,MAAS,GAAA,UAAA;AAAA;AAChB,EAEA,YAAY,KAA6B,EAAA;AACvC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAmB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,iBAAiB,KAA8B,EAAA;AAC7C,IAAK,IAAA,CAAA,MAAA,CAAO,IAAK,CAAA,GAAG,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AAEX;AAcO,MAAM,kBAAkD,CAAA;AAAA;AAAA;AAAA;AAAA,EAI7D,CAAA;AAAA;AAAA;AAAA;AAAA,EAKA,CAAA;AAAA,EAEA,WAAA,CAAY,GAAoB,CAAW,EAAA;AACzC,IAAA,IAAA,CAAK,CAAI,GAAA,CAAA;AACT,IAAA,IAAA,CAAK,CAAI,GAAA,CAAA;AAAA;AAEb","file":"line.mjs","sourcesContent":["import { IElement, Element } from '../base';\n\nimport { ChartColor } from './color';\n\nexport interface ILineChart extends IElement {\n type: 'Chart.Line';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the color to use for all data points.\n */\n color?: ChartColor;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: ILineChartData[];\n}\n\nexport type LineChartOptions = Omit<ILineChart, 'type' | 'data'>;\n\nexport class LineChart extends Element implements ILineChart {\n type: 'Chart.Line';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the color to use for all data points.\n */\n color?: ChartColor;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: ILineChartData[];\n\n constructor(...data: ILineChartData[]) {\n super();\n this.type = 'Chart.Line';\n this.data = data;\n }\n\n withOptions(value: LineChartOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withColorSet(value: string) {\n this.colorSet = value;\n return this;\n }\n\n addData(...data: ILineChartData[]) {\n this.data.push(...data);\n return this;\n }\n}\n\nexport interface ILineChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the data points in the series.\n */\n values: ILineChartDataPoint[];\n}\n\nexport type LineChartDataOptions = Omit<ILineChartData, 'values'>;\n\nexport class LineChartData implements ILineChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the data points in the series.\n */\n values: ILineChartDataPoint[];\n\n constructor(...dataPoints: ILineChartDataPoint[]) {\n this.values = dataPoints;\n }\n\n withOptions(value: LineChartDataOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withColor(value: ChartColor) {\n this.color = value;\n return this;\n }\n\n withLegend(value: string) {\n this.legend = value;\n return this;\n }\n\n addDataPoints(...value: ILineChartDataPoint[]) {\n this.values.push(...value);\n return this;\n }\n}\n\nexport interface ILineChartDataPoint {\n /**\n * the x axis value of the data point.\n */\n x: number | string;\n\n /**\n * the y axis value of the data point.\n */\n y: number;\n}\n\nexport class LineChartDataPoint implements ILineChartDataPoint {\n /**\n * the x axis value of the data point.\n */\n x: number | string;\n\n /**\n * the y axis value of the data point.\n */\n y: number;\n\n constructor(x: number | string, y: number) {\n this.x = x;\n this.y = y;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/containers/carousel.ts"],"names":["$Element"],"mappings":";;;;AA2CO,MAAM,iBAAiBA,YAA8B,CAAA;AAAA,EAC1D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,aAAA;AAAA;AAAA;AAAA;AAAA,EAKA,K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,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,KAAA,CAAM,IAAK,CAAA,GAAG,KAAK,CAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"carousel.js","sourcesContent":["import { Action } from '../actions';\r\nimport { IElement, Element as $Element } from '../base';\r\nimport { VerticalAlignment } from '../common';\r\nimport { Element } from '../element';\r\nimport { Layout } from '../layouts';\r\nimport { IBackgroundImage } from '../medias';\r\n\r\nimport { ContainerStyle } from './container';\r\n\r\n/**\r\n * A carousel with sliding pages.\r\n */\r\nexport interface ICarousel extends IElement {\r\n type: 'Carousel';\r\n\r\n /**\r\n * Controls if the container should bleed into its parent. A bleeding container extends into its parent's padding.\r\n */\r\n bleed?: boolean;\r\n\r\n /**\r\n * The minimum height, in pixels, of the container, in the <number>px format.\r\n * @example `<number>px`\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Controls the type of animation to use to navigate between pages.\r\n * @default `slide`\r\n */\r\n pageAnimation?: 'slide' | 'crossFade' | 'none';\r\n\r\n /**\r\n * The pages in the carousel.\r\n */\r\n pages: ICarouselPage[];\r\n}\r\n\r\nexport type CarouselOptions = Omit<ICarousel, 'type' | 'pages'>;\r\n\r\n/**\r\n * A carousel with sliding pages.\r\n */\r\nexport class Carousel extends $Element implements ICarousel {\r\n type: 'Carousel';\r\n\r\n /**\r\n * Controls if the container should bleed into its parent. A bleeding container extends into its parent's padding.\r\n */\r\n bleed?: boolean;\r\n\r\n /**\r\n * The minimum height, in pixels, of the container, in the <number>px format.\r\n * @example `<number>px`\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Controls the type of animation to use to navigate between pages.\r\n * @default `slide`\r\n */\r\n pageAnimation?: 'slide' | 'crossFade' | 'none';\r\n\r\n /**\r\n * The pages in the carousel.\r\n */\r\n pages: ICarouselPage[];\r\n\r\n constructor(...pages: ICarouselPage[]) {\r\n super();\r\n this.type = 'Carousel';\r\n this.pages = pages;\r\n }\r\n\r\n withOptions(value: CarouselOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withBleed(value = true) {\r\n this.bleed = value;\r\n return this;\r\n }\r\n\r\n withMinHeight(value: string) {\r\n this.minHeight = value;\r\n return this;\r\n }\r\n\r\n withPageAnimation(value: 'slide' | 'crossFade' | 'none' = 'slide') {\r\n this.pageAnimation = value;\r\n return this;\r\n }\r\n\r\n addPages(...value: ICarouselPage[]) {\r\n this.pages.push(...value);\r\n return this;\r\n }\r\n}\r\n\r\n/**\r\n * A page inside a Carousel element.\r\n */\r\nexport interface ICarouselPage extends IElement {\r\n type: 'CarouselPage';\r\n\r\n /**\r\n * The card elements to render inside the `CarouselPage`.\r\n */\r\n items: Element[];\r\n\r\n /**\r\n * Specifies the background image. Acceptable formats are `PNG`, `JPEG`, and `GIF`\r\n */\r\n backgroundImage?: IBackgroundImage | string;\r\n\r\n /**\r\n * The layouts associated with the container. The container can dynamically switch from one layout to another as the card's width changes. See Container layouts for more details.\r\n */\r\n layouts?: Array<Layout>;\r\n\r\n /**\r\n * The maximum height, in pixels, of the container, in the <number>px format. When the content of a container exceeds the container's maximum height, a vertical scrollbar is displayed.\r\n * @example `<number>px`\r\n */\r\n maxHeight?: string;\r\n\r\n /**\r\n * The minimum height, in pixels, of the container, in the <number>px format.\r\n * @example `<number>px`\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Controls if the container should have rounded corners.\r\n * @default false\r\n */\r\n roundedCorners?: boolean;\r\n\r\n /**\r\n * Controls if the content of the card is to be rendered left-to-right or right-to-left.\r\n */\r\n rtl?: boolean;\r\n\r\n /**\r\n * Controls if a border should be displayed around the container.\r\n * @default false\r\n */\r\n showBorder?: boolean;\r\n\r\n /**\r\n * The style of the container. Container styles control the colors of the background, border and text inside the container, in such a way that contrast requirements are always met.\r\n */\r\n style?: ContainerStyle;\r\n\r\n /**\r\n * Controls how the container's content should be vertically aligned.\r\n */\r\n verticalContentAlignment?: VerticalAlignment;\r\n\r\n /**\r\n * An Action that will be invoked when the element is tapped or clicked. Action.ShowCard is not supported.\r\n */\r\n selectAction?: Action;\r\n}\r\n\r\nexport type CarouselPageOptions = Omit<ICarouselPage, 'type' | 'items'>;\r\n\r\n/**\r\n * A page inside a Carousel element.\r\n */\r\nexport class CarouselPage extends $Element implements ICarouselPage {\r\n type: 'CarouselPage';\r\n\r\n /**\r\n * The card elements to render inside the `CarouselPage`.\r\n */\r\n items: Element[];\r\n\r\n /**\r\n * Specifies the background image. Acceptable formats are `PNG`, `JPEG`, and `GIF`\r\n */\r\n backgroundImage?: IBackgroundImage | string;\r\n\r\n /**\r\n * The layouts associated with the container. The container can dynamically switch from one layout to another as the card's width changes. See Container layouts for more details.\r\n */\r\n layouts?: Array<Layout>;\r\n\r\n /**\r\n * The maximum height, in pixels, of the container, in the <number>px format. When the content of a container exceeds the container's maximum height, a vertical scrollbar is displayed.\r\n * @example `<number>px`\r\n */\r\n maxHeight?: string;\r\n\r\n /**\r\n * The minimum height, in pixels, of the container, in the <number>px format.\r\n * @example `<number>px`\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Controls if the container should have rounded corners.\r\n * @default false\r\n */\r\n roundedCorners?: boolean;\r\n\r\n /**\r\n * Controls if the content of the card is to be rendered left-to-right or right-to-left.\r\n */\r\n rtl?: boolean;\r\n\r\n /**\r\n * Controls if a border should be displayed around the container.\r\n * @default false\r\n */\r\n showBorder?: boolean;\r\n\r\n /**\r\n * The style of the container. Container styles control the colors of the background, border and text inside the container, in such a way that contrast requirements are always met.\r\n */\r\n style?: ContainerStyle;\r\n\r\n /**\r\n * Controls how the container's content should be vertically aligned.\r\n */\r\n verticalContentAlignment?: VerticalAlignment;\r\n\r\n /**\r\n * An Action that will be invoked when the element is tapped or clicked. Action.ShowCard is not supported.\r\n */\r\n selectAction?: Action;\r\n\r\n constructor(...items: Element[]) {\r\n super();\r\n this.type = 'CarouselPage';\r\n this.items = items;\r\n }\r\n\r\n withOptions(value: CarouselPageOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withBackgroundImage(value: IBackgroundImage | string) {\r\n this.backgroundImage = value;\r\n return this;\r\n }\r\n\r\n withMinHeight(value: string) {\r\n this.minHeight = value;\r\n return this;\r\n }\r\n\r\n withRoundedCorners(value = true) {\r\n this.roundedCorners = value;\r\n return this;\r\n }\r\n\r\n withRtl(value = true) {\r\n this.rtl = value;\r\n return this;\r\n }\r\n\r\n withShowBorder(value = true) {\r\n this.showBorder = value;\r\n return this;\r\n }\r\n\r\n withStyle(value: ContainerStyle) {\r\n this.style = value;\r\n return this;\r\n }\r\n\r\n withVeritcalAlignment(value: VerticalAlignment) {\r\n this.verticalContentAlignment = value;\r\n return this;\r\n }\r\n\r\n withSelectAction(value: Action) {\r\n this.selectAction = value;\r\n return this;\r\n }\r\n\r\n addLayouts(...value: Layout[]) {\r\n if (!this.layouts) {\r\n this.layouts = [];\r\n }\r\n\r\n this.layouts.push(...value);\r\n return this;\r\n }\r\n\r\n addCards(...value: Element[]) {\r\n this.items.push(...value);\r\n return this;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/containers/carousel.ts"],"names":["$Element"],"mappings":";;;;AA2CO,MAAM,iBAAiBA,YAA8B,CAAA;AAAA,EAC1D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,aAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,eAAe,KAAwB,EAAA;AACrC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,UAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AAAA;AACf,EAEA,YAAY,KAAwB,EAAA;AAClC,IAAO,MAAA,CAAA,MAA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,IAAA;AAAA;AAEX","file":"carousel.js","sourcesContent":["import { Action } from '../actions';\nimport { IElement, Element as $Element } from '../base';\nimport { VerticalAlignment } from '../common';\nimport { Element } from '../element';\nimport { Layout } from '../layouts';\nimport { IBackgroundImage } from '../medias';\n\nimport { ContainerStyle } from './container';\n\n/**\n * A carousel with sliding pages.\n */\nexport interface ICarousel extends IElement {\n type: 'Carousel';\n\n /**\n * Controls if the container should bleed into its parent. A bleeding container extends into its parent's padding.\n */\n bleed?: boolean;\n\n /**\n * The minimum height, in pixels, of the container, in the <number>px format.\n * @example `<number>px`\n */\n minHeight?: string;\n\n /**\n * Controls the type of animation to use to navigate between pages.\n * @default `slide`\n */\n pageAnimation?: 'slide' | 'crossFade' | 'none';\n\n /**\n * The pages in the carousel.\n */\n pages: ICarouselPage[];\n}\n\nexport type CarouselOptions = Omit<ICarousel, 'type' | 'pages'>;\n\n/**\n * A carousel with sliding pages.\n */\nexport class Carousel extends $Element implements ICarousel {\n type: 'Carousel';\n\n /**\n * Controls if the container should bleed into its parent. A bleeding container extends into its parent's padding.\n */\n bleed?: boolean;\n\n /**\n * The minimum height, in pixels, of the container, in the <number>px format.\n * @example `<number>px`\n */\n minHeight?: string;\n\n /**\n * Controls the type of animation to use to navigate between pages.\n * @default `slide`\n */\n pageAnimation?: 'slide' | 'crossFade' | 'none';\n\n /**\n * The pages in the carousel.\n */\n pages: ICarouselPage[];\n\n constructor(...pages: ICarouselPage[]) {\n super();\n this.type = 'Carousel';\n this.pages = pages;\n }\n\n withOptions(value: CarouselOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withBleed(value = true) {\n this.bleed = value;\n return this;\n }\n\n withMinHeight(value: string) {\n this.minHeight = value;\n return this;\n }\n\n withPageAnimation(value: 'slide' | 'crossFade' | 'none' = 'slide') {\n this.pageAnimation = value;\n return this;\n }\n\n addPages(...value: ICarouselPage[]) {\n this.pages.push(...value);\n return this;\n }\n}\n\n/**\n * A page inside a Carousel element.\n */\nexport interface ICarouselPage extends IElement {\n type: 'CarouselPage';\n\n /**\n * The card elements to render inside the `CarouselPage`.\n */\n items: Element[];\n\n /**\n * Specifies the background image. Acceptable formats are `PNG`, `JPEG`, and `GIF`\n */\n backgroundImage?: IBackgroundImage | string;\n\n /**\n * The layouts associated with the container. The container can dynamically switch from one layout to another as the card's width changes. See Container layouts for more details.\n */\n layouts?: Array<Layout>;\n\n /**\n * The maximum height, in pixels, of the container, in the <number>px format. When the content of a container exceeds the container's maximum height, a vertical scrollbar is displayed.\n * @example `<number>px`\n */\n maxHeight?: string;\n\n /**\n * The minimum height, in pixels, of the container, in the <number>px format.\n * @example `<number>px`\n */\n minHeight?: string;\n\n /**\n * Controls if the container should have rounded corners.\n * @default false\n */\n roundedCorners?: boolean;\n\n /**\n * Controls if the content of the card is to be rendered left-to-right or right-to-left.\n */\n rtl?: boolean;\n\n /**\n * Controls if a border should be displayed around the container.\n * @default false\n */\n showBorder?: boolean;\n\n /**\n * The style of the container. Container styles control the colors of the background, border and text inside the container, in such a way that contrast requirements are always met.\n */\n style?: ContainerStyle;\n\n /**\n * Controls how the container's content should be vertically aligned.\n */\n verticalContentAlignment?: VerticalAlignment;\n\n /**\n * An Action that will be invoked when the element is tapped or clicked. Action.ShowCard is not supported.\n */\n selectAction?: Action;\n}\n\nexport type CarouselPageOptions = Omit<ICarouselPage, 'type' | 'items'>;\n\n/**\n * A page inside a Carousel element.\n */\nexport class CarouselPage extends $Element implements ICarouselPage {\n type: 'CarouselPage';\n\n /**\n * The card elements to render inside the `CarouselPage`.\n */\n items: Element[];\n\n /**\n * Specifies the background image. Acceptable formats are `PNG`, `JPEG`, and `GIF`\n */\n backgroundImage?: IBackgroundImage | string;\n\n /**\n * The layouts associated with the container. The container can dynamically switch from one layout to another as the card's width changes. See Container layouts for more details.\n */\n layouts?: Array<Layout>;\n\n /**\n * The maximum height, in pixels, of the container, in the <number>px format. When the content of a container exceeds the container's maximum height, a vertical scrollbar is displayed.\n * @example `<number>px`\n */\n maxHeight?: string;\n\n /**\n * The minimum height, in pixels, of the container, in the <number>px format.\n * @example `<number>px`\n */\n minHeight?: string;\n\n /**\n * Controls if the container should have rounded corners.\n * @default false\n */\n roundedCorners?: boolean;\n\n /**\n * Controls if the content of the card is to be rendered left-to-right or right-to-left.\n */\n rtl?: boolean;\n\n /**\n * Controls if a border should be displayed around the container.\n * @default false\n */\n showBorder?: boolean;\n\n /**\n * The style of the container. Container styles control the colors of the background, border and text inside the container, in such a way that contrast requirements are always met.\n */\n style?: ContainerStyle;\n\n /**\n * Controls how the container's content should be vertically aligned.\n */\n verticalContentAlignment?: VerticalAlignment;\n\n /**\n * An Action that will be invoked when the element is tapped or clicked. Action.ShowCard is not supported.\n */\n selectAction?: Action;\n\n constructor(...items: Element[]) {\n super();\n this.type = 'CarouselPage';\n this.items = items;\n }\n\n withOptions(value: CarouselPageOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withBackgroundImage(value: IBackgroundImage | string) {\n this.backgroundImage = value;\n return this;\n }\n\n withMinHeight(value: string) {\n this.minHeight = value;\n return this;\n }\n\n withRoundedCorners(value = true) {\n this.roundedCorners = value;\n return this;\n }\n\n withRtl(value = true) {\n this.rtl = value;\n return this;\n }\n\n withShowBorder(value = true) {\n this.showBorder = value;\n return this;\n }\n\n withStyle(value: ContainerStyle) {\n this.style = value;\n return this;\n }\n\n withVeritcalAlignment(value: VerticalAlignment) {\n this.verticalContentAlignment = value;\n return this;\n }\n\n withSelectAction(value: Action) {\n this.selectAction = value;\n return this;\n }\n\n addLayouts(...value: Layout[]) {\n if (!this.layouts) {\n this.layouts = [];\n }\n\n this.layouts.push(...value);\n return this;\n }\n\n addCards(...value: Element[]) {\n this.items.push(...value);\n return this;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/containers/carousel.ts"],"names":["$Element"],"mappings":";;AA2CO,MAAM,iBAAiBA,OAA8B,CAAA;AAAA,EAC1D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;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AAc,KAAiB,EAAA;AAC7B,IAAI,IAAA,CAAC,KAAK,OAAS,EAAA;AACjB,MAAA,IAAA,CAAK,UAAU,EAAC;AAAA;AAGlB,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,KAAA,CAAM,IAAK,CAAA,GAAG,KAAK,CAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"carousel.mjs","sourcesContent":["import { Action } from '../actions';\r\nimport { IElement, Element as $Element } from '../base';\r\nimport { VerticalAlignment } from '../common';\r\nimport { Element } from '../element';\r\nimport { Layout } from '../layouts';\r\nimport { IBackgroundImage } from '../medias';\r\n\r\nimport { ContainerStyle } from './container';\r\n\r\n/**\r\n * A carousel with sliding pages.\r\n */\r\nexport interface ICarousel extends IElement {\r\n type: 'Carousel';\r\n\r\n /**\r\n * Controls if the container should bleed into its parent. A bleeding container extends into its parent's padding.\r\n */\r\n bleed?: boolean;\r\n\r\n /**\r\n * The minimum height, in pixels, of the container, in the <number>px format.\r\n * @example `<number>px`\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Controls the type of animation to use to navigate between pages.\r\n * @default `slide`\r\n */\r\n pageAnimation?: 'slide' | 'crossFade' | 'none';\r\n\r\n /**\r\n * The pages in the carousel.\r\n */\r\n pages: ICarouselPage[];\r\n}\r\n\r\nexport type CarouselOptions = Omit<ICarousel, 'type' | 'pages'>;\r\n\r\n/**\r\n * A carousel with sliding pages.\r\n */\r\nexport class Carousel extends $Element implements ICarousel {\r\n type: 'Carousel';\r\n\r\n /**\r\n * Controls if the container should bleed into its parent. A bleeding container extends into its parent's padding.\r\n */\r\n bleed?: boolean;\r\n\r\n /**\r\n * The minimum height, in pixels, of the container, in the <number>px format.\r\n * @example `<number>px`\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Controls the type of animation to use to navigate between pages.\r\n * @default `slide`\r\n */\r\n pageAnimation?: 'slide' | 'crossFade' | 'none';\r\n\r\n /**\r\n * The pages in the carousel.\r\n */\r\n pages: ICarouselPage[];\r\n\r\n constructor(...pages: ICarouselPage[]) {\r\n super();\r\n this.type = 'Carousel';\r\n this.pages = pages;\r\n }\r\n\r\n withOptions(value: CarouselOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withBleed(value = true) {\r\n this.bleed = value;\r\n return this;\r\n }\r\n\r\n withMinHeight(value: string) {\r\n this.minHeight = value;\r\n return this;\r\n }\r\n\r\n withPageAnimation(value: 'slide' | 'crossFade' | 'none' = 'slide') {\r\n this.pageAnimation = value;\r\n return this;\r\n }\r\n\r\n addPages(...value: ICarouselPage[]) {\r\n this.pages.push(...value);\r\n return this;\r\n }\r\n}\r\n\r\n/**\r\n * A page inside a Carousel element.\r\n */\r\nexport interface ICarouselPage extends IElement {\r\n type: 'CarouselPage';\r\n\r\n /**\r\n * The card elements to render inside the `CarouselPage`.\r\n */\r\n items: Element[];\r\n\r\n /**\r\n * Specifies the background image. Acceptable formats are `PNG`, `JPEG`, and `GIF`\r\n */\r\n backgroundImage?: IBackgroundImage | string;\r\n\r\n /**\r\n * The layouts associated with the container. The container can dynamically switch from one layout to another as the card's width changes. See Container layouts for more details.\r\n */\r\n layouts?: Array<Layout>;\r\n\r\n /**\r\n * The maximum height, in pixels, of the container, in the <number>px format. When the content of a container exceeds the container's maximum height, a vertical scrollbar is displayed.\r\n * @example `<number>px`\r\n */\r\n maxHeight?: string;\r\n\r\n /**\r\n * The minimum height, in pixels, of the container, in the <number>px format.\r\n * @example `<number>px`\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Controls if the container should have rounded corners.\r\n * @default false\r\n */\r\n roundedCorners?: boolean;\r\n\r\n /**\r\n * Controls if the content of the card is to be rendered left-to-right or right-to-left.\r\n */\r\n rtl?: boolean;\r\n\r\n /**\r\n * Controls if a border should be displayed around the container.\r\n * @default false\r\n */\r\n showBorder?: boolean;\r\n\r\n /**\r\n * The style of the container. Container styles control the colors of the background, border and text inside the container, in such a way that contrast requirements are always met.\r\n */\r\n style?: ContainerStyle;\r\n\r\n /**\r\n * Controls how the container's content should be vertically aligned.\r\n */\r\n verticalContentAlignment?: VerticalAlignment;\r\n\r\n /**\r\n * An Action that will be invoked when the element is tapped or clicked. Action.ShowCard is not supported.\r\n */\r\n selectAction?: Action;\r\n}\r\n\r\nexport type CarouselPageOptions = Omit<ICarouselPage, 'type' | 'items'>;\r\n\r\n/**\r\n * A page inside a Carousel element.\r\n */\r\nexport class CarouselPage extends $Element implements ICarouselPage {\r\n type: 'CarouselPage';\r\n\r\n /**\r\n * The card elements to render inside the `CarouselPage`.\r\n */\r\n items: Element[];\r\n\r\n /**\r\n * Specifies the background image. Acceptable formats are `PNG`, `JPEG`, and `GIF`\r\n */\r\n backgroundImage?: IBackgroundImage | string;\r\n\r\n /**\r\n * The layouts associated with the container. The container can dynamically switch from one layout to another as the card's width changes. See Container layouts for more details.\r\n */\r\n layouts?: Array<Layout>;\r\n\r\n /**\r\n * The maximum height, in pixels, of the container, in the <number>px format. When the content of a container exceeds the container's maximum height, a vertical scrollbar is displayed.\r\n * @example `<number>px`\r\n */\r\n maxHeight?: string;\r\n\r\n /**\r\n * The minimum height, in pixels, of the container, in the <number>px format.\r\n * @example `<number>px`\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Controls if the container should have rounded corners.\r\n * @default false\r\n */\r\n roundedCorners?: boolean;\r\n\r\n /**\r\n * Controls if the content of the card is to be rendered left-to-right or right-to-left.\r\n */\r\n rtl?: boolean;\r\n\r\n /**\r\n * Controls if a border should be displayed around the container.\r\n * @default false\r\n */\r\n showBorder?: boolean;\r\n\r\n /**\r\n * The style of the container. Container styles control the colors of the background, border and text inside the container, in such a way that contrast requirements are always met.\r\n */\r\n style?: ContainerStyle;\r\n\r\n /**\r\n * Controls how the container's content should be vertically aligned.\r\n */\r\n verticalContentAlignment?: VerticalAlignment;\r\n\r\n /**\r\n * An Action that will be invoked when the element is tapped or clicked. Action.ShowCard is not supported.\r\n */\r\n selectAction?: Action;\r\n\r\n constructor(...items: Element[]) {\r\n super();\r\n this.type = 'CarouselPage';\r\n this.items = items;\r\n }\r\n\r\n withOptions(value: CarouselPageOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withBackgroundImage(value: IBackgroundImage | string) {\r\n this.backgroundImage = value;\r\n return this;\r\n }\r\n\r\n withMinHeight(value: string) {\r\n this.minHeight = value;\r\n return this;\r\n }\r\n\r\n withRoundedCorners(value = true) {\r\n this.roundedCorners = value;\r\n return this;\r\n }\r\n\r\n withRtl(value = true) {\r\n this.rtl = value;\r\n return this;\r\n }\r\n\r\n withShowBorder(value = true) {\r\n this.showBorder = value;\r\n return this;\r\n }\r\n\r\n withStyle(value: ContainerStyle) {\r\n this.style = value;\r\n return this;\r\n }\r\n\r\n withVeritcalAlignment(value: VerticalAlignment) {\r\n this.verticalContentAlignment = value;\r\n return this;\r\n }\r\n\r\n withSelectAction(value: Action) {\r\n this.selectAction = value;\r\n return this;\r\n }\r\n\r\n addLayouts(...value: Layout[]) {\r\n if (!this.layouts) {\r\n this.layouts = [];\r\n }\r\n\r\n this.layouts.push(...value);\r\n return this;\r\n }\r\n\r\n addCards(...value: Element[]) {\r\n this.items.push(...value);\r\n return this;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/containers/carousel.ts"],"names":["$Element"],"mappings":";;AA2CO,MAAM,iBAAiBA,OAA8B,CAAA;AAAA,EAC1D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,aAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,eAAe,KAAwB,EAAA;AACrC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,UAA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EAEA,YAAY,KAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,KAAA,CAAM,IAAK,CAAA,GAAG,KAAK,CAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"carousel.mjs","sourcesContent":["import { Action } from '../actions';\nimport { IElement, Element as $Element } from '../base';\nimport { VerticalAlignment } from '../common';\nimport { Element } from '../element';\nimport { Layout } from '../layouts';\nimport { IBackgroundImage } from '../medias';\n\nimport { ContainerStyle } from './container';\n\n/**\n * A carousel with sliding pages.\n */\nexport interface ICarousel extends IElement {\n type: 'Carousel';\n\n /**\n * Controls if the container should bleed into its parent. A bleeding container extends into its parent's padding.\n */\n bleed?: boolean;\n\n /**\n * The minimum height, in pixels, of the container, in the <number>px format.\n * @example `<number>px`\n */\n minHeight?: string;\n\n /**\n * Controls the type of animation to use to navigate between pages.\n * @default `slide`\n */\n pageAnimation?: 'slide' | 'crossFade' | 'none';\n\n /**\n * The pages in the carousel.\n */\n pages: ICarouselPage[];\n}\n\nexport type CarouselOptions = Omit<ICarousel, 'type' | 'pages'>;\n\n/**\n * A carousel with sliding pages.\n */\nexport class Carousel extends $Element implements ICarousel {\n type: 'Carousel';\n\n /**\n * Controls if the container should bleed into its parent. A bleeding container extends into its parent's padding.\n */\n bleed?: boolean;\n\n /**\n * The minimum height, in pixels, of the container, in the <number>px format.\n * @example `<number>px`\n */\n minHeight?: string;\n\n /**\n * Controls the type of animation to use to navigate between pages.\n * @default `slide`\n */\n pageAnimation?: 'slide' | 'crossFade' | 'none';\n\n /**\n * The pages in the carousel.\n */\n pages: ICarouselPage[];\n\n constructor(...pages: ICarouselPage[]) {\n super();\n this.type = 'Carousel';\n this.pages = pages;\n }\n\n withOptions(value: CarouselOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withBleed(value = true) {\n this.bleed = value;\n return this;\n }\n\n withMinHeight(value: string) {\n this.minHeight = value;\n return this;\n }\n\n withPageAnimation(value: 'slide' | 'crossFade' | 'none' = 'slide') {\n this.pageAnimation = value;\n return this;\n }\n\n addPages(...value: ICarouselPage[]) {\n this.pages.push(...value);\n return this;\n }\n}\n\n/**\n * A page inside a Carousel element.\n */\nexport interface ICarouselPage extends IElement {\n type: 'CarouselPage';\n\n /**\n * The card elements to render inside the `CarouselPage`.\n */\n items: Element[];\n\n /**\n * Specifies the background image. Acceptable formats are `PNG`, `JPEG`, and `GIF`\n */\n backgroundImage?: IBackgroundImage | string;\n\n /**\n * The layouts associated with the container. The container can dynamically switch from one layout to another as the card's width changes. See Container layouts for more details.\n */\n layouts?: Array<Layout>;\n\n /**\n * The maximum height, in pixels, of the container, in the <number>px format. When the content of a container exceeds the container's maximum height, a vertical scrollbar is displayed.\n * @example `<number>px`\n */\n maxHeight?: string;\n\n /**\n * The minimum height, in pixels, of the container, in the <number>px format.\n * @example `<number>px`\n */\n minHeight?: string;\n\n /**\n * Controls if the container should have rounded corners.\n * @default false\n */\n roundedCorners?: boolean;\n\n /**\n * Controls if the content of the card is to be rendered left-to-right or right-to-left.\n */\n rtl?: boolean;\n\n /**\n * Controls if a border should be displayed around the container.\n * @default false\n */\n showBorder?: boolean;\n\n /**\n * The style of the container. Container styles control the colors of the background, border and text inside the container, in such a way that contrast requirements are always met.\n */\n style?: ContainerStyle;\n\n /**\n * Controls how the container's content should be vertically aligned.\n */\n verticalContentAlignment?: VerticalAlignment;\n\n /**\n * An Action that will be invoked when the element is tapped or clicked. Action.ShowCard is not supported.\n */\n selectAction?: Action;\n}\n\nexport type CarouselPageOptions = Omit<ICarouselPage, 'type' | 'items'>;\n\n/**\n * A page inside a Carousel element.\n */\nexport class CarouselPage extends $Element implements ICarouselPage {\n type: 'CarouselPage';\n\n /**\n * The card elements to render inside the `CarouselPage`.\n */\n items: Element[];\n\n /**\n * Specifies the background image. Acceptable formats are `PNG`, `JPEG`, and `GIF`\n */\n backgroundImage?: IBackgroundImage | string;\n\n /**\n * The layouts associated with the container. The container can dynamically switch from one layout to another as the card's width changes. See Container layouts for more details.\n */\n layouts?: Array<Layout>;\n\n /**\n * The maximum height, in pixels, of the container, in the <number>px format. When the content of a container exceeds the container's maximum height, a vertical scrollbar is displayed.\n * @example `<number>px`\n */\n maxHeight?: string;\n\n /**\n * The minimum height, in pixels, of the container, in the <number>px format.\n * @example `<number>px`\n */\n minHeight?: string;\n\n /**\n * Controls if the container should have rounded corners.\n * @default false\n */\n roundedCorners?: boolean;\n\n /**\n * Controls if the content of the card is to be rendered left-to-right or right-to-left.\n */\n rtl?: boolean;\n\n /**\n * Controls if a border should be displayed around the container.\n * @default false\n */\n showBorder?: boolean;\n\n /**\n * The style of the container. Container styles control the colors of the background, border and text inside the container, in such a way that contrast requirements are always met.\n */\n style?: ContainerStyle;\n\n /**\n * Controls how the container's content should be vertically aligned.\n */\n verticalContentAlignment?: VerticalAlignment;\n\n /**\n * An Action that will be invoked when the element is tapped or clicked. Action.ShowCard is not supported.\n */\n selectAction?: Action;\n\n constructor(...items: Element[]) {\n super();\n this.type = 'CarouselPage';\n this.items = items;\n }\n\n withOptions(value: CarouselPageOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withBackgroundImage(value: IBackgroundImage | string) {\n this.backgroundImage = value;\n return this;\n }\n\n withMinHeight(value: string) {\n this.minHeight = value;\n return this;\n }\n\n withRoundedCorners(value = true) {\n this.roundedCorners = value;\n return this;\n }\n\n withRtl(value = true) {\n this.rtl = value;\n return this;\n }\n\n withShowBorder(value = true) {\n this.showBorder = value;\n return this;\n }\n\n withStyle(value: ContainerStyle) {\n this.style = value;\n return this;\n }\n\n withVeritcalAlignment(value: VerticalAlignment) {\n this.verticalContentAlignment = value;\n return this;\n }\n\n withSelectAction(value: Action) {\n this.selectAction = value;\n return this;\n }\n\n addLayouts(...value: Layout[]) {\n if (!this.layouts) {\n this.layouts = [];\n }\n\n this.layouts.push(...value);\n return this;\n }\n\n addCards(...value: Element[]) {\n this.items.push(...value);\n return this;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/containers/column-set.ts"],"names":["ContainerElement"],"mappings":";;;;AAsCO,MAAM,kBAAkBA,qBAAuC,CAAA;AAAA,EACpE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,eAAe,OAAoB,EAAA;AACjC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,WAAA;AACZ,IAAA,IAAA,CAAK,OAAU,GAAA,OAAA;AAAA;AACjB,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAkB,EAAA;AAC9B,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AAEX","file":"column-set.js","sourcesContent":["import { HorizontalAlignment } from '../common';\r\n\r\nimport { IContainerElement, ContainerElement } from './base';\r\nimport { IColumn } from './column';\r\nimport { ContainerStyle } from './container';\r\n\r\n/**\r\n * ColumnSet divides a region into Columns, allowing elements to sit side-by-side.\r\n */\r\nexport interface IColumnSet extends IContainerElement {\r\n type: 'ColumnSet';\r\n\r\n /**\r\n * The array of `Columns` to divide the region into.\r\n */\r\n columns?: IColumn[];\r\n\r\n /**\r\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Style hint for `ColumnSet`.\r\n */\r\n style?: ContainerStyle | null;\r\n\r\n /**\r\n * Controls the horizontal alignment of the ColumnSet. When not specified, the value of horizontalAlignment is inherited from the parent container. If no parent container has horizontalAlignment set, it defaults to Left.\r\n */\r\n horizontalAlignment?: HorizontalAlignment | null;\r\n}\r\n\r\nexport type ColumnSetOptions = Omit<IContainerElement, 'type'>;\r\n\r\n/**\r\n * ColumnSet divides a region into Columns, allowing elements to sit side-by-side.\r\n */\r\nexport class ColumnSet extends ContainerElement implements IColumnSet {\r\n type: 'ColumnSet';\r\n\r\n /**\r\n * The array of `Columns` to divide the region into.\r\n */\r\n columns: IColumn[];\r\n\r\n /**\r\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Style hint for `ColumnSet`.\r\n */\r\n style?: ContainerStyle | null;\r\n\r\n constructor(...columns: IColumn[]) {\r\n super();\r\n this.type = 'ColumnSet';\r\n this.columns = columns;\r\n }\r\n\r\n withOptions(value: ColumnSetOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withMinHeight(value: string) {\r\n this.minHeight = value;\r\n return this;\r\n }\r\n\r\n withStyle(value: ContainerStyle) {\r\n this.style = value;\r\n return this;\r\n }\r\n\r\n addColumns(...value: IColumn[]) {\r\n this.columns.push(...value);\r\n return this;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/containers/column-set.ts"],"names":["ContainerElement"],"mappings":";;;;AAsCO,MAAM,kBAAkBA,qBAAuC,CAAA;AAAA,EACpE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,eAAe,OAAoB,EAAA;AACjC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,WAAA;AACZ,IAAA,IAAA,CAAK,OAAU,GAAA,OAAA;AAAA;AACjB,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAkB,EAAA;AAC9B,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AAEX","file":"column-set.js","sourcesContent":["import { HorizontalAlignment } from '../common';\n\nimport { IContainerElement, ContainerElement } from './base';\nimport { IColumn } from './column';\nimport { ContainerStyle } from './container';\n\n/**\n * ColumnSet divides a region into Columns, allowing elements to sit side-by-side.\n */\nexport interface IColumnSet extends IContainerElement {\n type: 'ColumnSet';\n\n /**\n * The array of `Columns` to divide the region into.\n */\n columns?: IColumn[];\n\n /**\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\n */\n minHeight?: string;\n\n /**\n * Style hint for `ColumnSet`.\n */\n style?: ContainerStyle | null;\n\n /**\n * Controls the horizontal alignment of the ColumnSet. When not specified, the value of horizontalAlignment is inherited from the parent container. If no parent container has horizontalAlignment set, it defaults to Left.\n */\n horizontalAlignment?: HorizontalAlignment | null;\n}\n\nexport type ColumnSetOptions = Omit<IContainerElement, 'type'>;\n\n/**\n * ColumnSet divides a region into Columns, allowing elements to sit side-by-side.\n */\nexport class ColumnSet extends ContainerElement implements IColumnSet {\n type: 'ColumnSet';\n\n /**\n * The array of `Columns` to divide the region into.\n */\n columns: IColumn[];\n\n /**\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\n */\n minHeight?: string;\n\n /**\n * Style hint for `ColumnSet`.\n */\n style?: ContainerStyle | null;\n\n constructor(...columns: IColumn[]) {\n super();\n this.type = 'ColumnSet';\n this.columns = columns;\n }\n\n withOptions(value: ColumnSetOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withMinHeight(value: string) {\n this.minHeight = value;\n return this;\n }\n\n withStyle(value: ContainerStyle) {\n this.style = value;\n return this;\n }\n\n addColumns(...value: IColumn[]) {\n this.columns.push(...value);\n return this;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/containers/column-set.ts"],"names":[],"mappings":";;AAsCO,MAAM,kBAAkB,gBAAuC,CAAA;AAAA,EACpE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,eAAe,OAAoB,EAAA;AACjC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,WAAA;AACZ,IAAA,IAAA,CAAK,OAAU,GAAA,OAAA;AAAA;AACjB,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAkB,EAAA;AAC9B,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AAEX","file":"column-set.mjs","sourcesContent":["import { HorizontalAlignment } from '../common';\r\n\r\nimport { IContainerElement, ContainerElement } from './base';\r\nimport { IColumn } from './column';\r\nimport { ContainerStyle } from './container';\r\n\r\n/**\r\n * ColumnSet divides a region into Columns, allowing elements to sit side-by-side.\r\n */\r\nexport interface IColumnSet extends IContainerElement {\r\n type: 'ColumnSet';\r\n\r\n /**\r\n * The array of `Columns` to divide the region into.\r\n */\r\n columns?: IColumn[];\r\n\r\n /**\r\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Style hint for `ColumnSet`.\r\n */\r\n style?: ContainerStyle | null;\r\n\r\n /**\r\n * Controls the horizontal alignment of the ColumnSet. When not specified, the value of horizontalAlignment is inherited from the parent container. If no parent container has horizontalAlignment set, it defaults to Left.\r\n */\r\n horizontalAlignment?: HorizontalAlignment | null;\r\n}\r\n\r\nexport type ColumnSetOptions = Omit<IContainerElement, 'type'>;\r\n\r\n/**\r\n * ColumnSet divides a region into Columns, allowing elements to sit side-by-side.\r\n */\r\nexport class ColumnSet extends ContainerElement implements IColumnSet {\r\n type: 'ColumnSet';\r\n\r\n /**\r\n * The array of `Columns` to divide the region into.\r\n */\r\n columns: IColumn[];\r\n\r\n /**\r\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Style hint for `ColumnSet`.\r\n */\r\n style?: ContainerStyle | null;\r\n\r\n constructor(...columns: IColumn[]) {\r\n super();\r\n this.type = 'ColumnSet';\r\n this.columns = columns;\r\n }\r\n\r\n withOptions(value: ColumnSetOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withMinHeight(value: string) {\r\n this.minHeight = value;\r\n return this;\r\n }\r\n\r\n withStyle(value: ContainerStyle) {\r\n this.style = value;\r\n return this;\r\n }\r\n\r\n addColumns(...value: IColumn[]) {\r\n this.columns.push(...value);\r\n return this;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/containers/column-set.ts"],"names":[],"mappings":";;AAsCO,MAAM,kBAAkB,gBAAuC,CAAA;AAAA,EACpE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,eAAe,OAAoB,EAAA;AACjC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,WAAA;AACZ,IAAA,IAAA,CAAK,OAAU,GAAA,OAAA;AAAA;AACjB,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAkB,EAAA;AAC9B,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AAEX","file":"column-set.mjs","sourcesContent":["import { HorizontalAlignment } from '../common';\n\nimport { IContainerElement, ContainerElement } from './base';\nimport { IColumn } from './column';\nimport { ContainerStyle } from './container';\n\n/**\n * ColumnSet divides a region into Columns, allowing elements to sit side-by-side.\n */\nexport interface IColumnSet extends IContainerElement {\n type: 'ColumnSet';\n\n /**\n * The array of `Columns` to divide the region into.\n */\n columns?: IColumn[];\n\n /**\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\n */\n minHeight?: string;\n\n /**\n * Style hint for `ColumnSet`.\n */\n style?: ContainerStyle | null;\n\n /**\n * Controls the horizontal alignment of the ColumnSet. When not specified, the value of horizontalAlignment is inherited from the parent container. If no parent container has horizontalAlignment set, it defaults to Left.\n */\n horizontalAlignment?: HorizontalAlignment | null;\n}\n\nexport type ColumnSetOptions = Omit<IContainerElement, 'type'>;\n\n/**\n * ColumnSet divides a region into Columns, allowing elements to sit side-by-side.\n */\nexport class ColumnSet extends ContainerElement implements IColumnSet {\n type: 'ColumnSet';\n\n /**\n * The array of `Columns` to divide the region into.\n */\n columns: IColumn[];\n\n /**\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\n */\n minHeight?: string;\n\n /**\n * Style hint for `ColumnSet`.\n */\n style?: ContainerStyle | null;\n\n constructor(...columns: IColumn[]) {\n super();\n this.type = 'ColumnSet';\n this.columns = columns;\n }\n\n withOptions(value: ColumnSetOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withMinHeight(value: string) {\n this.minHeight = value;\n return this;\n }\n\n withStyle(value: ContainerStyle) {\n this.style = value;\n return this;\n }\n\n addColumns(...value: IColumn[]) {\n this.columns.push(...value);\n return this;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/containers/column.ts"],"names":["ContainerElement"],"mappings":";;;;AA2CO,MAAM,eAAeA,qBAAoC,CAAA;AAAA,EAC9D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,wBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,eAAe,KAAkB,EAAA;AAC/B,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,QAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AAAA;AACf,EAEA,YAAY,KAAsB,EAAA;AAChC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,sBAAsB,KAA0B,EAAA;AAC9C,IAAA,IAAA,CAAK,wBAA2B,GAAA,KAAA;AAChC,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuE,EAAA;AAC/E,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,KAAA,CAAM,IAAK,CAAA,GAAG,KAAK,CAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"column.js","sourcesContent":["import { VerticalAlignment } from '../common';\r\nimport { Element } from '../element';\r\n\r\nimport { IContainerElement, ContainerElement } from './base';\r\nimport { ContainerStyle } from './container';\r\n\r\n/**\r\n * Defines a container that is part of a ColumnSet.\r\n */\r\nexport interface IColumn extends IContainerElement {\r\n type: 'Column';\r\n\r\n /**\r\n * The card elements to render inside the `Column`.\r\n */\r\n items?: Element[];\r\n\r\n /**\r\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Style hint for `Column`.\r\n */\r\n style?: ContainerStyle | null;\r\n\r\n /**\r\n * Defines how the content should be aligned vertically within the column. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\r\n */\r\n verticalContentAlignment?: VerticalAlignment | null;\r\n\r\n /**\r\n * `\\\"auto\\\"`, `\\\"stretch\\\"`, a number representing relative width of the column in the column group, or in version 1.1 and higher, a specific pixel width, like `\\\"50px\\\"`.\r\n */\r\n width?: 'auto' | 'stretch' | Omit<string | number, 'auto' | 'stretch'>;\r\n}\r\n\r\nexport type ColumnOptions = Omit<IColumn, 'type' | 'items'>;\r\n\r\n/**\r\n * Defines a container that is part of a ColumnSet.\r\n */\r\nexport class Column extends ContainerElement implements IColumn {\r\n type: 'Column';\r\n\r\n /**\r\n * The card elements to render inside the `Column`.\r\n */\r\n items: Element[];\r\n\r\n /**\r\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Style hint for `Column`.\r\n */\r\n style?: ContainerStyle | null;\r\n\r\n /**\r\n * Defines how the content should be aligned vertically within the column. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\r\n */\r\n verticalContentAlignment?: VerticalAlignment | null;\r\n\r\n /**\r\n * `\\\"auto\\\"`, `\\\"stretch\\\"`, a number representing relative width of the column in the column group, or in version 1.1 and higher, a specific pixel width, like `\\\"50px\\\"`.\r\n */\r\n width?: 'auto' | 'stretch' | Omit<string | number, 'auto' | 'stretch'>;\r\n\r\n constructor(...items: Element[]) {\r\n super();\r\n this.type = 'Column';\r\n this.items = items;\r\n }\r\n\r\n withOptions(value: ColumnOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withMinHeight(value: string) {\r\n this.minHeight = value;\r\n return this;\r\n }\r\n\r\n withStyle(value: ContainerStyle) {\r\n this.style = value;\r\n return this;\r\n }\r\n\r\n withVerticalAlignment(value: VerticalAlignment) {\r\n this.verticalContentAlignment = value;\r\n return this;\r\n }\r\n\r\n withWidth(value: 'auto' | 'stretch' | Omit<string | number, 'auto' | 'stretch'>) {\r\n this.width = value;\r\n return this;\r\n }\r\n\r\n addCards(...value: Element[]) {\r\n this.items.push(...value);\r\n return this;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/containers/column.ts"],"names":["ContainerElement"],"mappings":";;;;AA2CO,MAAM,eAAeA,qBAAoC,CAAA;AAAA,EAC9D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,wBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,eAAe,KAAkB,EAAA;AAC/B,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,QAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AAAA;AACf,EAEA,YAAY,KAAsB,EAAA;AAChC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,sBAAsB,KAA0B,EAAA;AAC9C,IAAA,IAAA,CAAK,wBAA2B,GAAA,KAAA;AAChC,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuE,EAAA;AAC/E,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,KAAA,CAAM,IAAK,CAAA,GAAG,KAAK,CAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"column.js","sourcesContent":["import { VerticalAlignment } from '../common';\nimport { Element } from '../element';\n\nimport { IContainerElement, ContainerElement } from './base';\nimport { ContainerStyle } from './container';\n\n/**\n * Defines a container that is part of a ColumnSet.\n */\nexport interface IColumn extends IContainerElement {\n type: 'Column';\n\n /**\n * The card elements to render inside the `Column`.\n */\n items?: Element[];\n\n /**\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\n */\n minHeight?: string;\n\n /**\n * Style hint for `Column`.\n */\n style?: ContainerStyle | null;\n\n /**\n * Defines how the content should be aligned vertically within the column. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\n */\n verticalContentAlignment?: VerticalAlignment | null;\n\n /**\n * `\\\"auto\\\"`, `\\\"stretch\\\"`, a number representing relative width of the column in the column group, or in version 1.1 and higher, a specific pixel width, like `\\\"50px\\\"`.\n */\n width?: 'auto' | 'stretch' | Omit<string | number, 'auto' | 'stretch'>;\n}\n\nexport type ColumnOptions = Omit<IColumn, 'type' | 'items'>;\n\n/**\n * Defines a container that is part of a ColumnSet.\n */\nexport class Column extends ContainerElement implements IColumn {\n type: 'Column';\n\n /**\n * The card elements to render inside the `Column`.\n */\n items: Element[];\n\n /**\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\n */\n minHeight?: string;\n\n /**\n * Style hint for `Column`.\n */\n style?: ContainerStyle | null;\n\n /**\n * Defines how the content should be aligned vertically within the column. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\n */\n verticalContentAlignment?: VerticalAlignment | null;\n\n /**\n * `\\\"auto\\\"`, `\\\"stretch\\\"`, a number representing relative width of the column in the column group, or in version 1.1 and higher, a specific pixel width, like `\\\"50px\\\"`.\n */\n width?: 'auto' | 'stretch' | Omit<string | number, 'auto' | 'stretch'>;\n\n constructor(...items: Element[]) {\n super();\n this.type = 'Column';\n this.items = items;\n }\n\n withOptions(value: ColumnOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withMinHeight(value: string) {\n this.minHeight = value;\n return this;\n }\n\n withStyle(value: ContainerStyle) {\n this.style = value;\n return this;\n }\n\n withVerticalAlignment(value: VerticalAlignment) {\n this.verticalContentAlignment = value;\n return this;\n }\n\n withWidth(value: 'auto' | 'stretch' | Omit<string | number, 'auto' | 'stretch'>) {\n this.width = value;\n return this;\n }\n\n addCards(...value: Element[]) {\n this.items.push(...value);\n return this;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/containers/column.ts"],"names":[],"mappings":";;AA2CO,MAAM,eAAe,gBAAoC,CAAA;AAAA,EAC9D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,wBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,eAAe,KAAkB,EAAA;AAC/B,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,QAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AAAA;AACf,EAEA,YAAY,KAAsB,EAAA;AAChC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,sBAAsB,KAA0B,EAAA;AAC9C,IAAA,IAAA,CAAK,wBAA2B,GAAA,KAAA;AAChC,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuE,EAAA;AAC/E,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,KAAA,CAAM,IAAK,CAAA,GAAG,KAAK,CAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"column.mjs","sourcesContent":["import { VerticalAlignment } from '../common';\r\nimport { Element } from '../element';\r\n\r\nimport { IContainerElement, ContainerElement } from './base';\r\nimport { ContainerStyle } from './container';\r\n\r\n/**\r\n * Defines a container that is part of a ColumnSet.\r\n */\r\nexport interface IColumn extends IContainerElement {\r\n type: 'Column';\r\n\r\n /**\r\n * The card elements to render inside the `Column`.\r\n */\r\n items?: Element[];\r\n\r\n /**\r\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Style hint for `Column`.\r\n */\r\n style?: ContainerStyle | null;\r\n\r\n /**\r\n * Defines how the content should be aligned vertically within the column. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\r\n */\r\n verticalContentAlignment?: VerticalAlignment | null;\r\n\r\n /**\r\n * `\\\"auto\\\"`, `\\\"stretch\\\"`, a number representing relative width of the column in the column group, or in version 1.1 and higher, a specific pixel width, like `\\\"50px\\\"`.\r\n */\r\n width?: 'auto' | 'stretch' | Omit<string | number, 'auto' | 'stretch'>;\r\n}\r\n\r\nexport type ColumnOptions = Omit<IColumn, 'type' | 'items'>;\r\n\r\n/**\r\n * Defines a container that is part of a ColumnSet.\r\n */\r\nexport class Column extends ContainerElement implements IColumn {\r\n type: 'Column';\r\n\r\n /**\r\n * The card elements to render inside the `Column`.\r\n */\r\n items: Element[];\r\n\r\n /**\r\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\r\n */\r\n minHeight?: string;\r\n\r\n /**\r\n * Style hint for `Column`.\r\n */\r\n style?: ContainerStyle | null;\r\n\r\n /**\r\n * Defines how the content should be aligned vertically within the column. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\r\n */\r\n verticalContentAlignment?: VerticalAlignment | null;\r\n\r\n /**\r\n * `\\\"auto\\\"`, `\\\"stretch\\\"`, a number representing relative width of the column in the column group, or in version 1.1 and higher, a specific pixel width, like `\\\"50px\\\"`.\r\n */\r\n width?: 'auto' | 'stretch' | Omit<string | number, 'auto' | 'stretch'>;\r\n\r\n constructor(...items: Element[]) {\r\n super();\r\n this.type = 'Column';\r\n this.items = items;\r\n }\r\n\r\n withOptions(value: ColumnOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withMinHeight(value: string) {\r\n this.minHeight = value;\r\n return this;\r\n }\r\n\r\n withStyle(value: ContainerStyle) {\r\n this.style = value;\r\n return this;\r\n }\r\n\r\n withVerticalAlignment(value: VerticalAlignment) {\r\n this.verticalContentAlignment = value;\r\n return this;\r\n }\r\n\r\n withWidth(value: 'auto' | 'stretch' | Omit<string | number, 'auto' | 'stretch'>) {\r\n this.width = value;\r\n return this;\r\n }\r\n\r\n addCards(...value: Element[]) {\r\n this.items.push(...value);\r\n return this;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/containers/column.ts"],"names":[],"mappings":";;AA2CO,MAAM,eAAe,gBAAoC,CAAA;AAAA,EAC9D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,wBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,eAAe,KAAkB,EAAA;AAC/B,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,QAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AAAA;AACf,EAEA,YAAY,KAAsB,EAAA;AAChC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,sBAAsB,KAA0B,EAAA;AAC9C,IAAA,IAAA,CAAK,wBAA2B,GAAA,KAAA;AAChC,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuE,EAAA;AAC/E,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,KAAA,CAAM,IAAK,CAAA,GAAG,KAAK,CAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"column.mjs","sourcesContent":["import { VerticalAlignment } from '../common';\nimport { Element } from '../element';\n\nimport { IContainerElement, ContainerElement } from './base';\nimport { ContainerStyle } from './container';\n\n/**\n * Defines a container that is part of a ColumnSet.\n */\nexport interface IColumn extends IContainerElement {\n type: 'Column';\n\n /**\n * The card elements to render inside the `Column`.\n */\n items?: Element[];\n\n /**\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\n */\n minHeight?: string;\n\n /**\n * Style hint for `Column`.\n */\n style?: ContainerStyle | null;\n\n /**\n * Defines how the content should be aligned vertically within the column. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\n */\n verticalContentAlignment?: VerticalAlignment | null;\n\n /**\n * `\\\"auto\\\"`, `\\\"stretch\\\"`, a number representing relative width of the column in the column group, or in version 1.1 and higher, a specific pixel width, like `\\\"50px\\\"`.\n */\n width?: 'auto' | 'stretch' | Omit<string | number, 'auto' | 'stretch'>;\n}\n\nexport type ColumnOptions = Omit<IColumn, 'type' | 'items'>;\n\n/**\n * Defines a container that is part of a ColumnSet.\n */\nexport class Column extends ContainerElement implements IColumn {\n type: 'Column';\n\n /**\n * The card elements to render inside the `Column`.\n */\n items: Element[];\n\n /**\n * Specifies the minimum height of the column in pixels, like `\\\"80px\\\"`.\n */\n minHeight?: string;\n\n /**\n * Style hint for `Column`.\n */\n style?: ContainerStyle | null;\n\n /**\n * Defines how the content should be aligned vertically within the column. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\n */\n verticalContentAlignment?: VerticalAlignment | null;\n\n /**\n * `\\\"auto\\\"`, `\\\"stretch\\\"`, a number representing relative width of the column in the column group, or in version 1.1 and higher, a specific pixel width, like `\\\"50px\\\"`.\n */\n width?: 'auto' | 'stretch' | Omit<string | number, 'auto' | 'stretch'>;\n\n constructor(...items: Element[]) {\n super();\n this.type = 'Column';\n this.items = items;\n }\n\n withOptions(value: ColumnOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withMinHeight(value: string) {\n this.minHeight = value;\n return this;\n }\n\n withStyle(value: ContainerStyle) {\n this.style = value;\n return this;\n }\n\n withVerticalAlignment(value: VerticalAlignment) {\n this.verticalContentAlignment = value;\n return this;\n }\n\n withWidth(value: 'auto' | 'stretch' | Omit<string | number, 'auto' | 'stretch'>) {\n this.width = value;\n return this;\n }\n\n addCards(...value: Element[]) {\n this.items.push(...value);\n return this;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/containers/container.ts"],"names":["ContainerElement"],"mappings":";;;;AA0CO,MAAM,kBAAkBA,qBAAuC,CAAA;AAAA,EACpE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,wBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA,EAEA,eAAe,KAAkB,EAAA;AAC/B,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,WAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AAAA;AACf,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,sBAAsB,KAA0B,EAAA;AAC9C,IAAA,IAAA,CAAK,wBAA2B,GAAA,KAAA;AAChC,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,KAAA,CAAM,IAAK,CAAA,GAAG,KAAK,CAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"container.js","sourcesContent":["import { VerticalAlignment } from '../common';\r\nimport { Element } from '../element';\r\n\r\nimport { IContainerElement, ContainerElement } from './base';\r\n\r\n/**\r\n * Style hint for `Container`.\r\n */\r\nexport type ContainerStyle = 'default' | 'emphasis' | 'good' | 'attention' | 'warning' | 'accent';\r\n\r\n/**\r\n * Containers group items together.\r\n */\r\nexport interface IContainer extends IContainerElement {\r\n type: 'Container';\r\n\r\n /**\r\n * The card elements to render inside the `Container`.\r\n */\r\n items: Element[];\r\n\r\n /**\r\n * Style hint for `Container`.\r\n */\r\n style?: ContainerStyle | null;\r\n\r\n /**\r\n * Defines how the content should be aligned vertically within the container. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\r\n */\r\n verticalContentAlignment?: VerticalAlignment | null;\r\n\r\n /**\r\n * Specifies the minimum height of the container in pixels, like `\\\"80px\\\"`.\r\n */\r\n minHeight?: string;\r\n}\r\n\r\nexport type ContainerOptions = Omit<IContainer, 'type' | 'items'>;\r\n\r\n/**\r\n * Containers group items together.\r\n */\r\nexport class Container extends ContainerElement implements IContainer {\r\n type: 'Container';\r\n\r\n /**\r\n * The card elements to render inside the `Container`.\r\n */\r\n items: Element[];\r\n\r\n /**\r\n * Style hint for `Container`.\r\n */\r\n style?: ContainerStyle | null;\r\n\r\n /**\r\n * Defines how the content should be aligned vertically within the container. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\r\n */\r\n verticalContentAlignment?: VerticalAlignment | null;\r\n\r\n /**\r\n * Specifies the minimum height of the container in pixels, like `\\\"80px\\\"`.\r\n */\r\n minHeight?: string;\r\n\r\n constructor(...items: Element[]) {\r\n super();\r\n this.type = 'Container';\r\n this.items = items;\r\n }\r\n\r\n withOptions(value: ContainerOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withStyle(value: ContainerStyle) {\r\n this.style = value;\r\n return this;\r\n }\r\n\r\n withVerticalAlignment(value: VerticalAlignment) {\r\n this.verticalContentAlignment = value;\r\n return this;\r\n }\r\n\r\n withMinHeight(value: string) {\r\n this.minHeight = value;\r\n return this;\r\n }\r\n\r\n addCards(...value: Element[]) {\r\n this.items.push(...value);\r\n return this;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/containers/container.ts"],"names":["ContainerElement"],"mappings":";;;;AA0CO,MAAM,kBAAkBA,qBAAuC,CAAA;AAAA,EACpE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,wBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA,EAEA,eAAe,KAAkB,EAAA;AAC/B,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,WAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AAAA;AACf,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,sBAAsB,KAA0B,EAAA;AAC9C,IAAA,IAAA,CAAK,wBAA2B,GAAA,KAAA;AAChC,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,KAAA,CAAM,IAAK,CAAA,GAAG,KAAK,CAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"container.js","sourcesContent":["import { VerticalAlignment } from '../common';\nimport { Element } from '../element';\n\nimport { IContainerElement, ContainerElement } from './base';\n\n/**\n * Style hint for `Container`.\n */\nexport type ContainerStyle = 'default' | 'emphasis' | 'good' | 'attention' | 'warning' | 'accent';\n\n/**\n * Containers group items together.\n */\nexport interface IContainer extends IContainerElement {\n type: 'Container';\n\n /**\n * The card elements to render inside the `Container`.\n */\n items: Element[];\n\n /**\n * Style hint for `Container`.\n */\n style?: ContainerStyle | null;\n\n /**\n * Defines how the content should be aligned vertically within the container. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\n */\n verticalContentAlignment?: VerticalAlignment | null;\n\n /**\n * Specifies the minimum height of the container in pixels, like `\\\"80px\\\"`.\n */\n minHeight?: string;\n}\n\nexport type ContainerOptions = Omit<IContainer, 'type' | 'items'>;\n\n/**\n * Containers group items together.\n */\nexport class Container extends ContainerElement implements IContainer {\n type: 'Container';\n\n /**\n * The card elements to render inside the `Container`.\n */\n items: Element[];\n\n /**\n * Style hint for `Container`.\n */\n style?: ContainerStyle | null;\n\n /**\n * Defines how the content should be aligned vertically within the container. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\n */\n verticalContentAlignment?: VerticalAlignment | null;\n\n /**\n * Specifies the minimum height of the container in pixels, like `\\\"80px\\\"`.\n */\n minHeight?: string;\n\n constructor(...items: Element[]) {\n super();\n this.type = 'Container';\n this.items = items;\n }\n\n withOptions(value: ContainerOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withStyle(value: ContainerStyle) {\n this.style = value;\n return this;\n }\n\n withVerticalAlignment(value: VerticalAlignment) {\n this.verticalContentAlignment = value;\n return this;\n }\n\n withMinHeight(value: string) {\n this.minHeight = value;\n return this;\n }\n\n addCards(...value: Element[]) {\n this.items.push(...value);\n return this;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/containers/container.ts"],"names":[],"mappings":";;AA0CO,MAAM,kBAAkB,gBAAuC,CAAA;AAAA,EACpE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,wBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA,EAEA,eAAe,KAAkB,EAAA;AAC/B,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,WAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AAAA;AACf,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,sBAAsB,KAA0B,EAAA;AAC9C,IAAA,IAAA,CAAK,wBAA2B,GAAA,KAAA;AAChC,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,KAAA,CAAM,IAAK,CAAA,GAAG,KAAK,CAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"container.mjs","sourcesContent":["import { VerticalAlignment } from '../common';\r\nimport { Element } from '../element';\r\n\r\nimport { IContainerElement, ContainerElement } from './base';\r\n\r\n/**\r\n * Style hint for `Container`.\r\n */\r\nexport type ContainerStyle = 'default' | 'emphasis' | 'good' | 'attention' | 'warning' | 'accent';\r\n\r\n/**\r\n * Containers group items together.\r\n */\r\nexport interface IContainer extends IContainerElement {\r\n type: 'Container';\r\n\r\n /**\r\n * The card elements to render inside the `Container`.\r\n */\r\n items: Element[];\r\n\r\n /**\r\n * Style hint for `Container`.\r\n */\r\n style?: ContainerStyle | null;\r\n\r\n /**\r\n * Defines how the content should be aligned vertically within the container. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\r\n */\r\n verticalContentAlignment?: VerticalAlignment | null;\r\n\r\n /**\r\n * Specifies the minimum height of the container in pixels, like `\\\"80px\\\"`.\r\n */\r\n minHeight?: string;\r\n}\r\n\r\nexport type ContainerOptions = Omit<IContainer, 'type' | 'items'>;\r\n\r\n/**\r\n * Containers group items together.\r\n */\r\nexport class Container extends ContainerElement implements IContainer {\r\n type: 'Container';\r\n\r\n /**\r\n * The card elements to render inside the `Container`.\r\n */\r\n items: Element[];\r\n\r\n /**\r\n * Style hint for `Container`.\r\n */\r\n style?: ContainerStyle | null;\r\n\r\n /**\r\n * Defines how the content should be aligned vertically within the container. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\r\n */\r\n verticalContentAlignment?: VerticalAlignment | null;\r\n\r\n /**\r\n * Specifies the minimum height of the container in pixels, like `\\\"80px\\\"`.\r\n */\r\n minHeight?: string;\r\n\r\n constructor(...items: Element[]) {\r\n super();\r\n this.type = 'Container';\r\n this.items = items;\r\n }\r\n\r\n withOptions(value: ContainerOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withStyle(value: ContainerStyle) {\r\n this.style = value;\r\n return this;\r\n }\r\n\r\n withVerticalAlignment(value: VerticalAlignment) {\r\n this.verticalContentAlignment = value;\r\n return this;\r\n }\r\n\r\n withMinHeight(value: string) {\r\n this.minHeight = value;\r\n return this;\r\n }\r\n\r\n addCards(...value: Element[]) {\r\n this.items.push(...value);\r\n return this;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/containers/container.ts"],"names":[],"mappings":";;AA0CO,MAAM,kBAAkB,gBAAuC,CAAA;AAAA,EACpE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,wBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA,EAEA,eAAe,KAAkB,EAAA;AAC/B,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,WAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AAAA;AACf,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,sBAAsB,KAA0B,EAAA;AAC9C,IAAA,IAAA,CAAK,wBAA2B,GAAA,KAAA;AAChC,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,KAAA,CAAM,IAAK,CAAA,GAAG,KAAK,CAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"container.mjs","sourcesContent":["import { VerticalAlignment } from '../common';\nimport { Element } from '../element';\n\nimport { IContainerElement, ContainerElement } from './base';\n\n/**\n * Style hint for `Container`.\n */\nexport type ContainerStyle = 'default' | 'emphasis' | 'good' | 'attention' | 'warning' | 'accent';\n\n/**\n * Containers group items together.\n */\nexport interface IContainer extends IContainerElement {\n type: 'Container';\n\n /**\n * The card elements to render inside the `Container`.\n */\n items: Element[];\n\n /**\n * Style hint for `Container`.\n */\n style?: ContainerStyle | null;\n\n /**\n * Defines how the content should be aligned vertically within the container. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\n */\n verticalContentAlignment?: VerticalAlignment | null;\n\n /**\n * Specifies the minimum height of the container in pixels, like `\\\"80px\\\"`.\n */\n minHeight?: string;\n}\n\nexport type ContainerOptions = Omit<IContainer, 'type' | 'items'>;\n\n/**\n * Containers group items together.\n */\nexport class Container extends ContainerElement implements IContainer {\n type: 'Container';\n\n /**\n * The card elements to render inside the `Container`.\n */\n items: Element[];\n\n /**\n * Style hint for `Container`.\n */\n style?: ContainerStyle | null;\n\n /**\n * Defines how the content should be aligned vertically within the container. When not specified, the value of verticalContentAlignment is inherited from the parent container. If no parent container has verticalContentAlignment set, it defaults to Top.\n */\n verticalContentAlignment?: VerticalAlignment | null;\n\n /**\n * Specifies the minimum height of the container in pixels, like `\\\"80px\\\"`.\n */\n minHeight?: string;\n\n constructor(...items: Element[]) {\n super();\n this.type = 'Container';\n this.items = items;\n }\n\n withOptions(value: ContainerOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withStyle(value: ContainerStyle) {\n this.style = value;\n return this;\n }\n\n withVerticalAlignment(value: VerticalAlignment) {\n this.verticalContentAlignment = value;\n return this;\n }\n\n withMinHeight(value: string) {\n this.minHeight = value;\n return this;\n }\n\n addCards(...value: Element[]) {\n this.items.push(...value);\n return this;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/inputs/text.ts"],"names":["InputElement"],"mappings":";;;;AAwDO,MAAM,kBAAkBA,iBAAmC,CAAA;AAAA,EAChE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,WAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,WAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAA,CAAY,OAA4B,GAAA,EAAI,EAAA;AAC1C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,YAAA;AACZ,IAAA,IAAA,CAAK,YAAY,OAAO,CAAA;AAAA;AAC1B,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAA,CAAc,QAAQ,IAAM,EAAA;AAC1B,IAAA,IAAA,CAAK,WAAc,GAAA,KAAA;AACnB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,gBAAgB,KAAe,EAAA;AAC7B,IAAA,IAAA,CAAK,WAAc,GAAA,KAAA;AACnB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,iBAAiB,KAAe,EAAA;AAC9B,IAAA,IAAA,CAAK,YAAe,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"text.js","sourcesContent":["import { Action } from '../actions';\r\n\r\nimport { IInputElement, InputElement } from './base';\r\n\r\n/**\r\n * Style hint for text input.\r\n */\r\nexport type TextInputStyle = 'text' | 'tel' | 'url' | 'email' | 'password';\r\n\r\n/**\r\n * Lets a user enter text.\r\n */\r\nexport interface ITextInput extends IInputElement {\r\n type: 'Input.Text';\r\n\r\n /**\r\n * If `true`, allow multiple lines of input.\r\n */\r\n isMultiline?: boolean;\r\n\r\n /**\r\n * Hint of maximum length characters to collect (may be ignored by some clients).\r\n */\r\n maxLength?: number;\r\n\r\n /**\r\n * Description of the input desired. Displayed when no text has been input.\r\n */\r\n placeholder?: string;\r\n\r\n /**\r\n * Regular expression indicating the required format of this text input.\r\n */\r\n regex?: string;\r\n\r\n /**\r\n * Style hint for text input.\r\n */\r\n style?: TextInputStyle;\r\n\r\n /**\r\n * The inline action for the input. Typically displayed to the right of the input. It is strongly recommended to provide an icon on the action (which will be displayed instead of the title of the action).\r\n */\r\n inlineAction?: Action;\r\n\r\n /**\r\n * The initial value for this field.\r\n */\r\n value?: string;\r\n}\r\n\r\nexport type TextInputOptions = Omit<ITextInput, 'type'>;\r\n\r\n/**\r\n * Lets a user enter text.\r\n */\r\nexport class TextInput extends InputElement implements ITextInput {\r\n type: 'Input.Text';\r\n\r\n /**\r\n * If `true`, allow multiple lines of input.\r\n */\r\n isMultiline?: boolean;\r\n\r\n /**\r\n * Hint of maximum length characters to collect (may be ignored by some clients).\r\n */\r\n maxLength?: number;\r\n\r\n /**\r\n * Description of the input desired. Displayed when no text has been input.\r\n */\r\n placeholder?: string;\r\n\r\n /**\r\n * Regular expression indicating the required format of this text input.\r\n */\r\n regex?: string;\r\n\r\n /**\r\n * Style hint for text input.\r\n */\r\n style?: TextInputStyle;\r\n\r\n /**\r\n * The inline action for the input. Typically displayed to the right of the input. It is strongly recommended to provide an icon on the action (which will be displayed instead of the title of the action).\r\n */\r\n inlineAction?: Action;\r\n\r\n /**\r\n * The initial value for this field.\r\n */\r\n value?: string;\r\n\r\n constructor(options: TextInputOptions = {}) {\r\n super();\r\n this.type = 'Input.Text';\r\n this.withOptions(options);\r\n }\r\n\r\n withOptions(value: TextInputOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withMultiLine(value = true) {\r\n this.isMultiline = value;\r\n return this;\r\n }\r\n\r\n withMaxLength(value: number) {\r\n this.maxLength = value;\r\n return this;\r\n }\r\n\r\n withPlaceholder(value: string) {\r\n this.placeholder = value;\r\n return this;\r\n }\r\n\r\n withRegex(value: string) {\r\n this.regex = value;\r\n return this;\r\n }\r\n\r\n withStyle(value: TextInputStyle) {\r\n this.style = value;\r\n return this;\r\n }\r\n\r\n withInlineAction(value: Action) {\r\n this.inlineAction = value;\r\n return this;\r\n }\r\n\r\n withValue(value: string) {\r\n this.value = value;\r\n return this;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/inputs/text.ts"],"names":["InputElement"],"mappings":";;;;AAwDO,MAAM,kBAAkBA,iBAAmC,CAAA;AAAA,EAChE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,WAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,WAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAA,CAAY,OAA4B,GAAA,EAAI,EAAA;AAC1C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,YAAA;AACZ,IAAA,IAAA,CAAK,YAAY,OAAO,CAAA;AAAA;AAC1B,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAA,CAAc,QAAQ,IAAM,EAAA;AAC1B,IAAA,IAAA,CAAK,WAAc,GAAA,KAAA;AACnB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,gBAAgB,KAAe,EAAA;AAC7B,IAAA,IAAA,CAAK,WAAc,GAAA,KAAA;AACnB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,iBAAiB,KAAe,EAAA;AAC9B,IAAA,IAAA,CAAK,YAAe,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"text.js","sourcesContent":["import { Action } from '../actions';\n\nimport { IInputElement, InputElement } from './base';\n\n/**\n * Style hint for text input.\n */\nexport type TextInputStyle = 'text' | 'tel' | 'url' | 'email' | 'password';\n\n/**\n * Lets a user enter text.\n */\nexport interface ITextInput extends IInputElement {\n type: 'Input.Text';\n\n /**\n * If `true`, allow multiple lines of input.\n */\n isMultiline?: boolean;\n\n /**\n * Hint of maximum length characters to collect (may be ignored by some clients).\n */\n maxLength?: number;\n\n /**\n * Description of the input desired. Displayed when no text has been input.\n */\n placeholder?: string;\n\n /**\n * Regular expression indicating the required format of this text input.\n */\n regex?: string;\n\n /**\n * Style hint for text input.\n */\n style?: TextInputStyle;\n\n /**\n * The inline action for the input. Typically displayed to the right of the input. It is strongly recommended to provide an icon on the action (which will be displayed instead of the title of the action).\n */\n inlineAction?: Action;\n\n /**\n * The initial value for this field.\n */\n value?: string;\n}\n\nexport type TextInputOptions = Omit<ITextInput, 'type'>;\n\n/**\n * Lets a user enter text.\n */\nexport class TextInput extends InputElement implements ITextInput {\n type: 'Input.Text';\n\n /**\n * If `true`, allow multiple lines of input.\n */\n isMultiline?: boolean;\n\n /**\n * Hint of maximum length characters to collect (may be ignored by some clients).\n */\n maxLength?: number;\n\n /**\n * Description of the input desired. Displayed when no text has been input.\n */\n placeholder?: string;\n\n /**\n * Regular expression indicating the required format of this text input.\n */\n regex?: string;\n\n /**\n * Style hint for text input.\n */\n style?: TextInputStyle;\n\n /**\n * The inline action for the input. Typically displayed to the right of the input. It is strongly recommended to provide an icon on the action (which will be displayed instead of the title of the action).\n */\n inlineAction?: Action;\n\n /**\n * The initial value for this field.\n */\n value?: string;\n\n constructor(options: TextInputOptions = {}) {\n super();\n this.type = 'Input.Text';\n this.withOptions(options);\n }\n\n withOptions(value: TextInputOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withMultiLine(value = true) {\n this.isMultiline = value;\n return this;\n }\n\n withMaxLength(value: number) {\n this.maxLength = value;\n return this;\n }\n\n withPlaceholder(value: string) {\n this.placeholder = value;\n return this;\n }\n\n withRegex(value: string) {\n this.regex = value;\n return this;\n }\n\n withStyle(value: TextInputStyle) {\n this.style = value;\n return this;\n }\n\n withInlineAction(value: Action) {\n this.inlineAction = value;\n return this;\n }\n\n withValue(value: string) {\n this.value = value;\n return this;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/inputs/text.ts"],"names":[],"mappings":";;AAwDO,MAAM,kBAAkB,YAAmC,CAAA;AAAA,EAChE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,WAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,WAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAA,CAAY,OAA4B,GAAA,EAAI,EAAA;AAC1C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,YAAA;AACZ,IAAA,IAAA,CAAK,YAAY,OAAO,CAAA;AAAA;AAC1B,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAA,CAAc,QAAQ,IAAM,EAAA;AAC1B,IAAA,IAAA,CAAK,WAAc,GAAA,KAAA;AACnB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,gBAAgB,KAAe,EAAA;AAC7B,IAAA,IAAA,CAAK,WAAc,GAAA,KAAA;AACnB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,iBAAiB,KAAe,EAAA;AAC9B,IAAA,IAAA,CAAK,YAAe,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"text.mjs","sourcesContent":["import { Action } from '../actions';\r\n\r\nimport { IInputElement, InputElement } from './base';\r\n\r\n/**\r\n * Style hint for text input.\r\n */\r\nexport type TextInputStyle = 'text' | 'tel' | 'url' | 'email' | 'password';\r\n\r\n/**\r\n * Lets a user enter text.\r\n */\r\nexport interface ITextInput extends IInputElement {\r\n type: 'Input.Text';\r\n\r\n /**\r\n * If `true`, allow multiple lines of input.\r\n */\r\n isMultiline?: boolean;\r\n\r\n /**\r\n * Hint of maximum length characters to collect (may be ignored by some clients).\r\n */\r\n maxLength?: number;\r\n\r\n /**\r\n * Description of the input desired. Displayed when no text has been input.\r\n */\r\n placeholder?: string;\r\n\r\n /**\r\n * Regular expression indicating the required format of this text input.\r\n */\r\n regex?: string;\r\n\r\n /**\r\n * Style hint for text input.\r\n */\r\n style?: TextInputStyle;\r\n\r\n /**\r\n * The inline action for the input. Typically displayed to the right of the input. It is strongly recommended to provide an icon on the action (which will be displayed instead of the title of the action).\r\n */\r\n inlineAction?: Action;\r\n\r\n /**\r\n * The initial value for this field.\r\n */\r\n value?: string;\r\n}\r\n\r\nexport type TextInputOptions = Omit<ITextInput, 'type'>;\r\n\r\n/**\r\n * Lets a user enter text.\r\n */\r\nexport class TextInput extends InputElement implements ITextInput {\r\n type: 'Input.Text';\r\n\r\n /**\r\n * If `true`, allow multiple lines of input.\r\n */\r\n isMultiline?: boolean;\r\n\r\n /**\r\n * Hint of maximum length characters to collect (may be ignored by some clients).\r\n */\r\n maxLength?: number;\r\n\r\n /**\r\n * Description of the input desired. Displayed when no text has been input.\r\n */\r\n placeholder?: string;\r\n\r\n /**\r\n * Regular expression indicating the required format of this text input.\r\n */\r\n regex?: string;\r\n\r\n /**\r\n * Style hint for text input.\r\n */\r\n style?: TextInputStyle;\r\n\r\n /**\r\n * The inline action for the input. Typically displayed to the right of the input. It is strongly recommended to provide an icon on the action (which will be displayed instead of the title of the action).\r\n */\r\n inlineAction?: Action;\r\n\r\n /**\r\n * The initial value for this field.\r\n */\r\n value?: string;\r\n\r\n constructor(options: TextInputOptions = {}) {\r\n super();\r\n this.type = 'Input.Text';\r\n this.withOptions(options);\r\n }\r\n\r\n withOptions(value: TextInputOptions) {\r\n Object.assign(this, value);\r\n return this;\r\n }\r\n\r\n withMultiLine(value = true) {\r\n this.isMultiline = value;\r\n return this;\r\n }\r\n\r\n withMaxLength(value: number) {\r\n this.maxLength = value;\r\n return this;\r\n }\r\n\r\n withPlaceholder(value: string) {\r\n this.placeholder = value;\r\n return this;\r\n }\r\n\r\n withRegex(value: string) {\r\n this.regex = value;\r\n return this;\r\n }\r\n\r\n withStyle(value: TextInputStyle) {\r\n this.style = value;\r\n return this;\r\n }\r\n\r\n withInlineAction(value: Action) {\r\n this.inlineAction = value;\r\n return this;\r\n }\r\n\r\n withValue(value: string) {\r\n this.value = value;\r\n return this;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../src/inputs/text.ts"],"names":[],"mappings":";;AAwDO,MAAM,kBAAkB,YAAmC,CAAA;AAAA,EAChE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,WAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,WAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAA,CAAY,OAA4B,GAAA,EAAI,EAAA;AAC1C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,YAAA;AACZ,IAAA,IAAA,CAAK,YAAY,OAAO,CAAA;AAAA;AAC1B,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAA,CAAc,QAAQ,IAAM,EAAA;AAC1B,IAAA,IAAA,CAAK,WAAc,GAAA,KAAA;AACnB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,gBAAgB,KAAe,EAAA;AAC7B,IAAA,IAAA,CAAK,WAAc,GAAA,KAAA;AACnB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAuB,EAAA;AAC/B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,iBAAiB,KAAe,EAAA;AAC9B,IAAA,IAAA,CAAK,YAAe,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"text.mjs","sourcesContent":["import { Action } from '../actions';\n\nimport { IInputElement, InputElement } from './base';\n\n/**\n * Style hint for text input.\n */\nexport type TextInputStyle = 'text' | 'tel' | 'url' | 'email' | 'password';\n\n/**\n * Lets a user enter text.\n */\nexport interface ITextInput extends IInputElement {\n type: 'Input.Text';\n\n /**\n * If `true`, allow multiple lines of input.\n */\n isMultiline?: boolean;\n\n /**\n * Hint of maximum length characters to collect (may be ignored by some clients).\n */\n maxLength?: number;\n\n /**\n * Description of the input desired. Displayed when no text has been input.\n */\n placeholder?: string;\n\n /**\n * Regular expression indicating the required format of this text input.\n */\n regex?: string;\n\n /**\n * Style hint for text input.\n */\n style?: TextInputStyle;\n\n /**\n * The inline action for the input. Typically displayed to the right of the input. It is strongly recommended to provide an icon on the action (which will be displayed instead of the title of the action).\n */\n inlineAction?: Action;\n\n /**\n * The initial value for this field.\n */\n value?: string;\n}\n\nexport type TextInputOptions = Omit<ITextInput, 'type'>;\n\n/**\n * Lets a user enter text.\n */\nexport class TextInput extends InputElement implements ITextInput {\n type: 'Input.Text';\n\n /**\n * If `true`, allow multiple lines of input.\n */\n isMultiline?: boolean;\n\n /**\n * Hint of maximum length characters to collect (may be ignored by some clients).\n */\n maxLength?: number;\n\n /**\n * Description of the input desired. Displayed when no text has been input.\n */\n placeholder?: string;\n\n /**\n * Regular expression indicating the required format of this text input.\n */\n regex?: string;\n\n /**\n * Style hint for text input.\n */\n style?: TextInputStyle;\n\n /**\n * The inline action for the input. Typically displayed to the right of the input. It is strongly recommended to provide an icon on the action (which will be displayed instead of the title of the action).\n */\n inlineAction?: Action;\n\n /**\n * The initial value for this field.\n */\n value?: string;\n\n constructor(options: TextInputOptions = {}) {\n super();\n this.type = 'Input.Text';\n this.withOptions(options);\n }\n\n withOptions(value: TextInputOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withMultiLine(value = true) {\n this.isMultiline = value;\n return this;\n }\n\n withMaxLength(value: number) {\n this.maxLength = value;\n return this;\n }\n\n withPlaceholder(value: string) {\n this.placeholder = value;\n return this;\n }\n\n withRegex(value: string) {\n this.regex = value;\n return this;\n }\n\n withStyle(value: TextInputStyle) {\n this.style = value;\n return this;\n }\n\n withInlineAction(value: Action) {\n this.inlineAction = value;\n return this;\n }\n\n withValue(value: string) {\n this.value = value;\n return this;\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/teams.cards",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -32,8 +32,7 @@
32
32
  "lint": "npx eslint",
33
33
  "lint:fix": "npx eslint --fix",
34
34
  "build": "npx tsup",
35
- "test": "npx jest",
36
- "fmt": "npx prettier --write \"**/*.{js,ts,tsx,md,json}\""
35
+ "test": "npx jest"
37
36
  },
38
37
  "devDependencies": {
39
38
  "@microsoft/teams.config": "*",