@microsoft/teams.cards 0.2.12 → 0.2.13

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.
Files changed (126) hide show
  1. package/README.md +40 -41
  2. package/dist/actions/index.d.mts +2 -2
  3. package/dist/actions/index.d.ts +2 -2
  4. package/dist/actions/show-card.d.mts +1 -1
  5. package/dist/actions/show-card.d.ts +1 -1
  6. package/dist/actions/submit/collab-stage.js +1 -1
  7. package/dist/actions/submit/collab-stage.js.map +1 -1
  8. package/dist/actions/submit/collab-stage.mjs +1 -1
  9. package/dist/actions/submit/collab-stage.mjs.map +1 -1
  10. package/dist/actions/submit/im-back.js +1 -1
  11. package/dist/actions/submit/im-back.js.map +1 -1
  12. package/dist/actions/submit/im-back.mjs +1 -1
  13. package/dist/actions/submit/im-back.mjs.map +1 -1
  14. package/dist/actions/submit/index.d.mts +1 -1
  15. package/dist/actions/submit/index.d.ts +1 -1
  16. package/dist/actions/submit/invoke.js +1 -1
  17. package/dist/actions/submit/invoke.js.map +1 -1
  18. package/dist/actions/submit/invoke.mjs +1 -1
  19. package/dist/actions/submit/invoke.mjs.map +1 -1
  20. package/dist/actions/submit/message-back.js +1 -1
  21. package/dist/actions/submit/message-back.js.map +1 -1
  22. package/dist/actions/submit/message-back.mjs +1 -1
  23. package/dist/actions/submit/message-back.mjs.map +1 -1
  24. package/dist/actions/submit/sign-in.js +1 -1
  25. package/dist/actions/submit/sign-in.js.map +1 -1
  26. package/dist/actions/submit/sign-in.mjs +1 -1
  27. package/dist/actions/submit/sign-in.mjs.map +1 -1
  28. package/dist/actions/submit/submit.js +10 -3
  29. package/dist/actions/submit/submit.js.map +1 -1
  30. package/dist/actions/submit/submit.mjs +10 -3
  31. package/dist/actions/submit/submit.mjs.map +1 -1
  32. package/dist/actions/submit/task-fetch.d.mts +15 -15
  33. package/dist/actions/submit/task-fetch.d.ts +15 -15
  34. package/dist/actions/submit/task-fetch.js +16 -11
  35. package/dist/actions/submit/task-fetch.js.map +1 -1
  36. package/dist/actions/submit/task-fetch.mjs +16 -11
  37. package/dist/actions/submit/task-fetch.mjs.map +1 -1
  38. package/dist/base.d.mts +1 -1
  39. package/dist/base.d.ts +1 -1
  40. package/dist/card.d.mts +1 -1
  41. package/dist/card.d.ts +1 -1
  42. package/dist/card.js +0 -1
  43. package/dist/card.js.map +1 -1
  44. package/dist/card.mjs +0 -1
  45. package/dist/card.mjs.map +1 -1
  46. package/dist/charts/donut.d.mts +2281 -24
  47. package/dist/charts/donut.d.ts +2281 -24
  48. package/dist/charts/donut.js.map +1 -1
  49. package/dist/charts/donut.mjs.map +1 -1
  50. package/dist/charts/index.d.mts +1 -1
  51. package/dist/charts/index.d.ts +1 -1
  52. package/dist/charts/line.d.mts +1 -1
  53. package/dist/charts/line.d.ts +1 -1
  54. package/dist/charts/line.js.map +1 -1
  55. package/dist/charts/line.mjs.map +1 -1
  56. package/dist/containers/action-set.d.mts +1 -1
  57. package/dist/containers/action-set.d.ts +1 -1
  58. package/dist/containers/base.d.mts +1 -1
  59. package/dist/containers/base.d.ts +1 -1
  60. package/dist/containers/carousel.d.mts +1 -1
  61. package/dist/containers/carousel.d.ts +1 -1
  62. package/dist/containers/carousel.js.map +1 -1
  63. package/dist/containers/carousel.mjs.map +1 -1
  64. package/dist/containers/column-set.d.mts +1 -1
  65. package/dist/containers/column-set.d.ts +1 -1
  66. package/dist/containers/column-set.js.map +1 -1
  67. package/dist/containers/column-set.mjs.map +1 -1
  68. package/dist/containers/column.d.mts +1 -1
  69. package/dist/containers/column.d.ts +1 -1
  70. package/dist/containers/column.js.map +1 -1
  71. package/dist/containers/column.mjs.map +1 -1
  72. package/dist/containers/container.d.mts +1 -1
  73. package/dist/containers/container.d.ts +1 -1
  74. package/dist/containers/container.js.map +1 -1
  75. package/dist/containers/container.mjs.map +1 -1
  76. package/dist/containers/fact-set.d.mts +1 -1
  77. package/dist/containers/fact-set.d.ts +1 -1
  78. package/dist/containers/image-set.d.mts +1 -1
  79. package/dist/containers/image-set.d.ts +1 -1
  80. package/dist/containers/index.d.mts +1 -1
  81. package/dist/containers/index.d.ts +1 -1
  82. package/dist/element.d.mts +1 -1
  83. package/dist/element.d.ts +1 -1
  84. package/dist/index.d.mts +2 -2
  85. package/dist/index.d.ts +2 -2
  86. package/dist/inputs/base.d.mts +1 -1
  87. package/dist/inputs/base.d.ts +1 -1
  88. package/dist/inputs/choice-set.d.mts +1 -1
  89. package/dist/inputs/choice-set.d.ts +1 -1
  90. package/dist/inputs/date.d.mts +1 -1
  91. package/dist/inputs/date.d.ts +1 -1
  92. package/dist/inputs/index.d.mts +1 -1
  93. package/dist/inputs/index.d.ts +1 -1
  94. package/dist/inputs/number.d.mts +1 -1
  95. package/dist/inputs/number.d.ts +1 -1
  96. package/dist/inputs/text.d.mts +1 -1
  97. package/dist/inputs/text.d.ts +1 -1
  98. package/dist/inputs/text.js.map +1 -1
  99. package/dist/inputs/text.mjs.map +1 -1
  100. package/dist/inputs/time.d.mts +1 -1
  101. package/dist/inputs/time.d.ts +1 -1
  102. package/dist/inputs/toggle.d.mts +1 -1
  103. package/dist/inputs/toggle.d.ts +1 -1
  104. package/dist/medias/badge.d.mts +1 -1
  105. package/dist/medias/badge.d.ts +1 -1
  106. package/dist/medias/code-block.d.mts +1 -1
  107. package/dist/medias/code-block.d.ts +1 -1
  108. package/dist/medias/icon.d.mts +24 -2281
  109. package/dist/medias/icon.d.ts +24 -2281
  110. package/dist/medias/image.d.mts +1 -1
  111. package/dist/medias/image.d.ts +1 -1
  112. package/dist/medias/index.d.mts +1 -1
  113. package/dist/medias/index.d.ts +1 -1
  114. package/dist/medias/media.d.mts +1 -1
  115. package/dist/medias/media.d.ts +1 -1
  116. package/dist/medias/progress-bar.d.mts +1 -1
  117. package/dist/medias/progress-bar.d.ts +1 -1
  118. package/dist/medias/progress-ring.d.mts +1 -1
  119. package/dist/medias/progress-ring.d.ts +1 -1
  120. package/dist/medias/rich-text-block.d.mts +1 -1
  121. package/dist/medias/rich-text-block.d.ts +1 -1
  122. package/dist/medias/text-block.d.mts +1 -1
  123. package/dist/medias/text-block.d.ts +1 -1
  124. package/dist/medias/text-run.d.mts +1 -1
  125. package/dist/medias/text-run.d.ts +1 -1
  126. package/package.json +3 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/charts/donut.ts"],"names":["Element"],"mappings":";;;;AA6BO,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';\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
+ {"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';\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 +1 @@
1
- {"version":3,"sources":["../../src/charts/donut.ts"],"names":[],"mappings":";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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';\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
+ {"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,4 +1,4 @@
1
- export { Y as ChartElement, H as DonutChart, L as DonutChartData, K as DonutChartDataOptions, G as DonutChartOptions, F as IDonutChart, J as IDonutChartData, N as ILineChart, S as ILineChartData, W as ILineChartDataPoint, Q as LineChart, V as LineChartData, U as LineChartDataOptions, X as LineChartDataPoint, O as LineChartOptions } from '../medias/icon.mjs';
1
+ export { C as ChartElement, DonutChart, DonutChartData, DonutChartDataOptions, DonutChartOptions, IDonutChart, IDonutChartData, I as ILineChart, b as ILineChartData, e as ILineChartDataPoint, a as LineChart, d as LineChartData, c as LineChartDataOptions, f as LineChartDataPoint, L as LineChartOptions } from './donut.mjs';
2
2
  export { ChartColor } from './color.mjs';
3
3
  import '../actions/execute.mjs';
4
4
  import '../common/associated-inputs.mjs';
@@ -1,4 +1,4 @@
1
- export { Y as ChartElement, H as DonutChart, L as DonutChartData, K as DonutChartDataOptions, G as DonutChartOptions, F as IDonutChart, J as IDonutChartData, N as ILineChart, S as ILineChartData, W as ILineChartDataPoint, Q as LineChart, V as LineChartData, U as LineChartDataOptions, X as LineChartDataPoint, O as LineChartOptions } from '../medias/icon.js';
1
+ export { C as ChartElement, DonutChart, DonutChartData, DonutChartDataOptions, DonutChartOptions, IDonutChart, IDonutChartData, I as ILineChart, b as ILineChartData, e as ILineChartDataPoint, a as LineChart, d as LineChartData, c as LineChartDataOptions, f as LineChartDataPoint, L as LineChartOptions } from './donut.js';
2
2
  export { ChartColor } from './color.js';
3
3
  import '../actions/execute.js';
4
4
  import '../common/associated-inputs.js';
@@ -1,4 +1,4 @@
1
- export { N as ILineChart, S as ILineChartData, W as ILineChartDataPoint, Q as LineChart, V as LineChartData, U as LineChartDataOptions, X as LineChartDataPoint, O as LineChartOptions } from '../medias/icon.mjs';
1
+ export { I as ILineChart, b as ILineChartData, e as ILineChartDataPoint, a as LineChart, d as LineChartData, c as LineChartDataOptions, f as LineChartDataPoint, L as LineChartOptions } from './donut.mjs';
2
2
  import './color.mjs';
3
3
  import '../actions/execute.mjs';
4
4
  import '../common/associated-inputs.mjs';
@@ -1,4 +1,4 @@
1
- export { N as ILineChart, S as ILineChartData, W as ILineChartDataPoint, Q as LineChart, V as LineChartData, U as LineChartDataOptions, X as LineChartDataPoint, O as LineChartOptions } from '../medias/icon.js';
1
+ export { I as ILineChart, b as ILineChartData, e as ILineChartDataPoint, a as LineChart, d as LineChartData, c as LineChartDataOptions, f as LineChartDataPoint, L as LineChartOptions } from './donut.js';
2
2
  import './color.js';
3
3
  import '../actions/execute.js';
4
4
  import '../common/associated-inputs.js';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/charts/line.ts"],"names":["Element"],"mappings":";;;;AA6BO,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';\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
+ {"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,IAA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;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 +1 @@
1
- {"version":3,"sources":["../../src/charts/line.ts"],"names":[],"mappings":";;AA6BO,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,IAA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;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';\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
+ {"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,4 +1,4 @@
1
- export { $ as ActionSet, _ as ActionSetOptions, Z as IActionSet } from '../medias/icon.mjs';
1
+ export { h as ActionSet, A as ActionSetOptions, g as IActionSet } from '../charts/donut.mjs';
2
2
  import '../actions/execute.mjs';
3
3
  import '../common/associated-inputs.mjs';
4
4
  import '../actions/base.mjs';
@@ -1,4 +1,4 @@
1
- export { $ as ActionSet, _ as ActionSetOptions, Z as IActionSet } from '../medias/icon.js';
1
+ export { h as ActionSet, A as ActionSetOptions, g as IActionSet } from '../charts/donut.js';
2
2
  import '../actions/execute.js';
3
3
  import '../common/associated-inputs.js';
4
4
  import '../actions/base.js';
@@ -1,4 +1,4 @@
1
- export { a1 as ContainerElement, a0 as IContainerElement } from '../medias/icon.mjs';
1
+ export { $ as ContainerElement, _ as IContainerElement } from '../charts/donut.mjs';
2
2
  import '../layouts/index.mjs';
3
3
  import '../medias/background-image.mjs';
4
4
  import '../actions/execute.mjs';
@@ -1,4 +1,4 @@
1
- export { a1 as ContainerElement, a0 as IContainerElement } from '../medias/icon.js';
1
+ export { $ as ContainerElement, _ as IContainerElement } from '../charts/donut.js';
2
2
  import '../layouts/index.js';
3
3
  import '../medias/background-image.js';
4
4
  import '../actions/execute.js';
@@ -1,4 +1,4 @@
1
- export { a8 as Carousel, a7 as CarouselOptions, ab as CarouselPage, aa as CarouselPageOptions, a6 as ICarousel, a9 as ICarouselPage } from '../medias/icon.mjs';
1
+ export { a6 as Carousel, a5 as CarouselOptions, a9 as CarouselPage, a8 as CarouselPageOptions, a4 as ICarousel, a7 as ICarouselPage } from '../charts/donut.mjs';
2
2
  import '../common/vertical-alignment.mjs';
3
3
  import '../layouts/index.mjs';
4
4
  import '../medias/background-image.mjs';
@@ -1,4 +1,4 @@
1
- export { a8 as Carousel, a7 as CarouselOptions, ab as CarouselPage, aa as CarouselPageOptions, a6 as ICarousel, a9 as ICarouselPage } from '../medias/icon.js';
1
+ export { a6 as Carousel, a5 as CarouselOptions, a9 as CarouselPage, a8 as CarouselPageOptions, a4 as ICarousel, a7 as ICarouselPage } from '../charts/donut.js';
2
2
  import '../common/vertical-alignment.js';
3
3
  import '../layouts/index.js';
4
4
  import '../medias/background-image.js';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/containers/carousel.ts"],"names":["$Element"],"mappings":";;;;AA0CO,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,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAA,CAAU,QAAQ,IAAM,EAAA;AACtB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe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Y,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,kBAAA,CAAmB,QAAQ,IAAM,EAAA;AAC/B,IAAA,IAAA,CAAK,cAAiB,GAAA,KAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,OAAA,CAAQ,QAAQ,IAAM,EAAA;AACpB,IAAA,IAAA,CAAK,GAAM,GAAA,KAAA;AACX,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAA,CAAe,QAAQ,IAAM,EAAA;AAC3B,IAAA,IAAA,CAAK,UAAa,GAAA,KAAA;AAClB,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,iBAAiB,KAAe,EAAA;AAC9B,IAAA,IAAA,CAAK,YAAe,GAAA,KAAA;AACpB,IAAO,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;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';\nimport { IElement, Element as $Element } from '../base';\nimport { VerticalAlignment } from '../common';\nimport { Element } from '../element';\nimport { Layout } from '../layouts';\nimport { IBackgroundImage } from '../medias';\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
+ {"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,U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T,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 +1 @@
1
- {"version":3,"sources":["../../src/containers/carousel.ts"],"names":["$Element"],"mappings":";;AA0CO,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,UAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AAAA;AACf,EAEA,YAAY,KAAwB,EAAA;AAClC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAA,CAAU,QAAQ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eAAkB,GAAA,KAAA;AACvB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAe,EAAA;AAC3B,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,kBAAA,CAAmB,QAAQ,IAAM,EAAA;AAC/B,IAAA,IAAA,CAAK,cAAiB,GAAA,KAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,OAAA,CAAQ,QAAQ,IAAM,EAAA;AACpB,IAAA,IAAA,CAAK,GAAM,GAAA,KAAA;AACX,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAA,CAAe,QAAQ,IAAM,EAAA;AAC3B,IAAA,IAAA,CAAK,UAAa,GAAA,KAAA;AAClB,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,iBAAiB,KAAe,EAAA;AAC9B,IAAA,IAAA,CAAK,YAAe,GAAA,KAAA;AACpB,IAAO,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;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';\nimport { IElement, Element as $Element } from '../base';\nimport { VerticalAlignment } from '../common';\nimport { Element } from '../element';\nimport { Layout } from '../layouts';\nimport { IBackgroundImage } from '../medias';\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
+ {"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;AA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AAA;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,5 +1,5 @@
1
1
  import '../common/horizontal-alignment.mjs';
2
- export { ah as ColumnSet, ag as ColumnSetOptions, af as IColumnSet } from '../medias/icon.mjs';
2
+ export { af as ColumnSet, ae as ColumnSetOptions, ad as IColumnSet } from '../charts/donut.mjs';
3
3
  import '../actions/execute.mjs';
4
4
  import '../common/associated-inputs.mjs';
5
5
  import '../actions/base.mjs';
@@ -1,5 +1,5 @@
1
1
  import '../common/horizontal-alignment.js';
2
- export { ah as ColumnSet, ag as ColumnSetOptions, af as IColumnSet } from '../medias/icon.js';
2
+ export { af as ColumnSet, ae as ColumnSetOptions, ad as IColumnSet } from '../charts/donut.js';
3
3
  import '../actions/execute.js';
4
4
  import '../common/associated-inputs.js';
5
5
  import '../actions/base.js';
@@ -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';\nimport { IContainerElement, ContainerElement } from './base';\n\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
+ {"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 +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';\nimport { IContainerElement, ContainerElement } from './base';\n\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
+ {"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,5 +1,5 @@
1
1
  import '../common/vertical-alignment.mjs';
2
- export { ae as Column, ad as ColumnOptions, ac as IColumn } from '../medias/icon.mjs';
2
+ export { ac as Column, ab as ColumnOptions, aa as IColumn } from '../charts/donut.mjs';
3
3
  import '../actions/execute.mjs';
4
4
  import '../common/associated-inputs.mjs';
5
5
  import '../actions/base.mjs';
@@ -1,5 +1,5 @@
1
1
  import '../common/vertical-alignment.js';
2
- export { ae as Column, ad as ColumnOptions, ac as IColumn } from '../medias/icon.js';
2
+ export { ac as Column, ab as ColumnOptions, aa as IColumn } from '../charts/donut.js';
3
3
  import '../actions/execute.js';
4
4
  import '../common/associated-inputs.js';
5
5
  import '../actions/base.js';
@@ -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';\nimport { Element } from '../element';\nimport { IContainerElement, ContainerElement } from './base';\n\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
+ {"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 +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';\nimport { Element } from '../element';\nimport { IContainerElement, ContainerElement } from './base';\n\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
+ {"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,5 +1,5 @@
1
1
  import '../common/vertical-alignment.mjs';
2
- export { a5 as Container, a4 as ContainerOptions, a2 as ContainerStyle, a3 as IContainer } from '../medias/icon.mjs';
2
+ export { a3 as Container, a2 as ContainerOptions, a0 as ContainerStyle, a1 as IContainer } from '../charts/donut.mjs';
3
3
  import '../actions/execute.mjs';
4
4
  import '../common/associated-inputs.mjs';
5
5
  import '../actions/base.mjs';
@@ -1,5 +1,5 @@
1
1
  import '../common/vertical-alignment.js';
2
- export { a5 as Container, a4 as ContainerOptions, a2 as ContainerStyle, a3 as IContainer } from '../medias/icon.js';
2
+ export { a3 as Container, a2 as ContainerOptions, a0 as ContainerStyle, a1 as IContainer } from '../charts/donut.js';
3
3
  import '../actions/execute.js';
4
4
  import '../common/associated-inputs.js';
5
5
  import '../actions/base.js';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/containers/container.ts"],"names":["ContainerElement"],"mappings":";;;;AAyCO,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';\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
+ {"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 +1 @@
1
- {"version":3,"sources":["../../src/containers/container.ts"],"names":[],"mappings":";;AAyCO,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';\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
+ {"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,4 +1,4 @@
1
- export { am as Fact, ak as FactSet, aj as FactSetOptions, al as IFact, ai as IFactSet } from '../medias/icon.mjs';
1
+ export { ak as Fact, ai as FactSet, ah as FactSetOptions, aj as IFact, ag as IFactSet } from '../charts/donut.mjs';
2
2
  import '../actions/execute.mjs';
3
3
  import '../common/associated-inputs.mjs';
4
4
  import '../actions/base.mjs';
@@ -1,4 +1,4 @@
1
- export { am as Fact, ak as FactSet, aj as FactSetOptions, al as IFact, ai as IFactSet } from '../medias/icon.js';
1
+ export { ak as Fact, ai as FactSet, ah as FactSetOptions, aj as IFact, ag as IFactSet } from '../charts/donut.js';
2
2
  import '../actions/execute.js';
3
3
  import '../common/associated-inputs.js';
4
4
  import '../actions/base.js';
@@ -1,4 +1,4 @@
1
- export { an as IImageSet, ap as ImageSet, ao as ImageSetOptions } from '../medias/icon.mjs';
1
+ export { al as IImageSet, an as ImageSet, am as ImageSetOptions } from '../charts/donut.mjs';
2
2
  import '../actions/execute.mjs';
3
3
  import '../common/associated-inputs.mjs';
4
4
  import '../actions/base.mjs';
@@ -1,4 +1,4 @@
1
- export { an as IImageSet, ap as ImageSet, ao as ImageSetOptions } from '../medias/icon.js';
1
+ export { al as IImageSet, an as ImageSet, am as ImageSetOptions } from '../charts/donut.js';
2
2
  import '../actions/execute.js';
3
3
  import '../common/associated-inputs.js';
4
4
  import '../actions/base.js';
@@ -1,4 +1,4 @@
1
- export { $ as ActionSet, _ as ActionSetOptions, a8 as Carousel, a7 as CarouselOptions, ab as CarouselPage, aa as CarouselPageOptions, ae as Column, ad as ColumnOptions, ah as ColumnSet, ag as ColumnSetOptions, a5 as Container, aq as ContainerElement, a4 as ContainerOptions, a2 as ContainerStyle, am as Fact, ak as FactSet, aj as FactSetOptions, Z as IActionSet, a6 as ICarousel, a9 as ICarouselPage, ac as IColumn, af as IColumnSet, a3 as IContainer, al as IFact, ai as IFactSet, an as IImageSet, ap as ImageSet, ao as ImageSetOptions } from '../medias/icon.mjs';
1
+ export { h as ActionSet, A as ActionSetOptions, a6 as Carousel, a5 as CarouselOptions, a9 as CarouselPage, a8 as CarouselPageOptions, ac as Column, ab as ColumnOptions, af as ColumnSet, ae as ColumnSetOptions, a3 as Container, ao as ContainerElement, a2 as ContainerOptions, a0 as ContainerStyle, ak as Fact, ai as FactSet, ah as FactSetOptions, g as IActionSet, a4 as ICarousel, a7 as ICarouselPage, aa as IColumn, ad as IColumnSet, a1 as IContainer, aj as IFact, ag as IFactSet, al as IImageSet, an as ImageSet, am as ImageSetOptions } from '../charts/donut.mjs';
2
2
  import '../actions/execute.mjs';
3
3
  import '../common/associated-inputs.mjs';
4
4
  import '../actions/base.mjs';
@@ -1,4 +1,4 @@
1
- export { $ as ActionSet, _ as ActionSetOptions, a8 as Carousel, a7 as CarouselOptions, ab as CarouselPage, aa as CarouselPageOptions, ae as Column, ad as ColumnOptions, ah as ColumnSet, ag as ColumnSetOptions, a5 as Container, aq as ContainerElement, a4 as ContainerOptions, a2 as ContainerStyle, am as Fact, ak as FactSet, aj as FactSetOptions, Z as IActionSet, a6 as ICarousel, a9 as ICarouselPage, ac as IColumn, af as IColumnSet, a3 as IContainer, al as IFact, ai as IFactSet, an as IImageSet, ap as ImageSet, ao as ImageSetOptions } from '../medias/icon.js';
1
+ export { h as ActionSet, A as ActionSetOptions, a6 as Carousel, a5 as CarouselOptions, a9 as CarouselPage, a8 as CarouselPageOptions, ac as Column, ab as ColumnOptions, af as ColumnSet, ae as ColumnSetOptions, a3 as Container, ao as ContainerElement, a2 as ContainerOptions, a0 as ContainerStyle, ak as Fact, ai as FactSet, ah as FactSetOptions, g as IActionSet, a4 as ICarousel, a7 as ICarouselPage, aa as IColumn, ad as IColumnSet, a1 as IContainer, aj as IFact, ag as IFactSet, al as IImageSet, an as ImageSet, am as ImageSetOptions } from '../charts/donut.js';
2
2
  import '../actions/execute.js';
3
3
  import '../common/associated-inputs.js';
4
4
  import '../actions/base.js';
@@ -1,4 +1,4 @@
1
- export { aV as Element } from './medias/icon.mjs';
1
+ export { aT as Element } from './charts/donut.mjs';
2
2
  import './actions/execute.mjs';
3
3
  import './common/associated-inputs.mjs';
4
4
  import './actions/base.mjs';
package/dist/element.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { aV as Element } from './medias/icon.js';
1
+ export { aT as Element } from './charts/donut.js';
2
2
  import './actions/execute.js';
3
3
  import './common/associated-inputs.js';
4
4
  import './actions/base.js';