@breadstone/mosaik-elements-foundation 0.0.224 → 0.0.226

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 (38) hide show
  1. package/Controls/Components/Grouping/Message/IMessageElementProps.d.ts +19 -0
  2. package/Controls/Components/Grouping/Message/IMessageElementProps.d.ts.map +1 -0
  3. package/Controls/Components/Grouping/Message/IMessageElementProps.js +3 -0
  4. package/Controls/Components/Grouping/Message/IMessageElementProps.js.map +1 -0
  5. package/Controls/Components/Grouping/Message/MessageElement.d.ts +129 -0
  6. package/Controls/Components/Grouping/Message/MessageElement.d.ts.map +1 -0
  7. package/Controls/Components/Grouping/Message/MessageElement.js +225 -0
  8. package/Controls/Components/Grouping/Message/MessageElement.js.map +1 -0
  9. package/Controls/Components/Grouping/Message/MessageElementTemplate.d.ts +9 -0
  10. package/Controls/Components/Grouping/Message/MessageElementTemplate.d.ts.map +1 -0
  11. package/Controls/Components/Grouping/Message/MessageElementTemplate.js +61 -0
  12. package/Controls/Components/Grouping/Message/MessageElementTemplate.js.map +1 -0
  13. package/Controls/Components/Grouping/Message/Themes/MessageElement.Cosmopolitan.d.ts +6 -0
  14. package/Controls/Components/Grouping/Message/Themes/MessageElement.Cosmopolitan.d.ts.map +1 -0
  15. package/Controls/Components/Grouping/Message/Themes/MessageElement.Cosmopolitan.js +193 -0
  16. package/Controls/Components/Grouping/Message/Themes/MessageElement.Cosmopolitan.js.map +1 -0
  17. package/Controls/Components/Grouping/Message/Themes/MessageElement.Joy.d.ts +6 -0
  18. package/Controls/Components/Grouping/Message/Themes/MessageElement.Joy.d.ts.map +1 -0
  19. package/Controls/Components/Grouping/Message/Themes/MessageElement.Joy.js +395 -0
  20. package/Controls/Components/Grouping/Message/Themes/MessageElement.Joy.js.map +1 -0
  21. package/Controls/Components/Grouping/Message/Themes/MessageElement.Memphis.d.ts +6 -0
  22. package/Controls/Components/Grouping/Message/Themes/MessageElement.Memphis.d.ts.map +1 -0
  23. package/Controls/Components/Grouping/Message/Themes/MessageElement.Memphis.js +311 -0
  24. package/Controls/Components/Grouping/Message/Themes/MessageElement.Memphis.js.map +1 -0
  25. package/Controls/Components/Primitives/Text/TextElement.d.ts +0 -3
  26. package/Controls/Components/Primitives/Text/TextElement.d.ts.map +1 -1
  27. package/Controls/Components/Primitives/Text/TextElement.js +2 -5
  28. package/Controls/Components/Primitives/Text/TextElement.js.map +1 -1
  29. package/Controls/Types/TextFormatter.d.ts +171 -29
  30. package/Controls/Types/TextFormatter.d.ts.map +1 -1
  31. package/Controls/Types/TextFormatter.js +550 -129
  32. package/Controls/Types/TextFormatter.js.map +1 -1
  33. package/Index.d.ts +1 -0
  34. package/Index.d.ts.map +1 -1
  35. package/Index.js +1 -0
  36. package/Index.js.map +1 -1
  37. package/custom-elements.json +598 -0
  38. package/package.json +3 -3
@@ -0,0 +1,19 @@
1
+ import type { IAppearanceableProps } from '../../../Behaviors/Appearanceable';
2
+ import type { ICloseableProps } from '../../../Behaviors/Closeable';
3
+ import type { IDisableableProps } from '../../../Behaviors/Disableable';
4
+ import type { IFitableProps } from '../../../Behaviors/Fitable';
5
+ import type { ITextFormattableProps } from '../../../Behaviors/TextFormattable';
6
+ import type { IVariantableProps } from '../../../Behaviors/Variantable';
7
+ import type { Size } from '../../../Types/Size';
8
+ /**
9
+ * Represents the `{@link IMessageElementProps}` interface.
10
+ *
11
+ * @public
12
+ */
13
+ export interface IMessageElementProps extends ICloseableProps, IDisableableProps, IVariantableProps, IAppearanceableProps, IFitableProps, ITextFormattableProps {
14
+ icon: string;
15
+ iconSize: Size | null;
16
+ header: string;
17
+ content: string;
18
+ }
19
+ //# sourceMappingURL=IMessageElementProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMessageElementProps.d.ts","sourceRoot":"","sources":["../../../../../src/Controls/Components/Grouping/Message/IMessageElementProps.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAIhD;;;;GAIG;AACH,MAAM,WAAW,oBACb,SAAQ,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,EAAE,qBAAqB;IAIzH,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IAEtB,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,MAAM,CAAC;CAInB"}
@@ -0,0 +1,3 @@
1
+ // #region Imports
2
+ export {};
3
+ //# sourceMappingURL=IMessageElementProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMessageElementProps.js","sourceRoot":"","sources":["../../../../../src/Controls/Components/Grouping/Message/IMessageElementProps.ts"],"names":[],"mappings":"AAAA,kBAAkB"}
@@ -0,0 +1,129 @@
1
+ import { ICloseable, type ICloseableEvents } from '../../../Behaviors/Closeable';
2
+ import { Size } from '../../../Types/Size';
3
+ import { CustomElement } from '../../Abstracts/CustomElement';
4
+ import type { IMessageElementProps } from './IMessageElementProps';
5
+ declare const MessageElement_base: (abstract new (...args: Array<any>) => import("../../../../Controls/Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array<any>) => import("../../../Behaviors/Closeable").ICloseableProps & ICloseableEvents & ICloseable) & (abstract new (...args: Array<any>) => import("../../../Behaviors/Disableable").IDisableableProps) & (abstract new (...args: Array<any>) => import("../../../Behaviors/Variantable").IVariantableProps) & (abstract new (...args: Array<any>) => import("../../../Behaviors/Appearanceable").IAppearanceableProps) & (abstract new (...args: Array<any>) => import("../../../Behaviors/Fitable").IFitableProps) & (abstract new (...args: Array<any>) => import("../../../Behaviors/TextFormattable").ITextFormattableProps) & typeof CustomElement & import("../../../../Controls/Behaviors/Themeable").IThemeableCtor;
6
+ /**
7
+ * Message - A compact, closeable notification component for displaying concise information.
8
+ *
9
+ * @description
10
+ * The `Message` component is a simplified notification element based on the Banner component.
11
+ * It focuses on displaying an icon, header, and subheader with optional close functionality,
12
+ * without slots or action areas. This makes it ideal for quick, dismissible messages.
13
+ *
14
+ * @name Message
15
+ * @element mosaik-message
16
+ * @category Notifications
17
+ *
18
+ * @fires closed - Fired when the message is closed.
19
+ *
20
+ * @csspart root - The root part of the message.
21
+ * @csspart icon - The icon part of the message.
22
+ * @csspart text - The text part of the message.
23
+ * @csspart close - The close button or icon part of the message.
24
+ *
25
+ * @cssprop {unknown} --message-font-family - The font family for the message.
26
+ * @cssprop {unknown} --message-font-size - The font size for the message.
27
+ * @cssprop {unknown} --message-font-weight - The font weight for the message.
28
+ * @cssprop {unknown} --message-background-color - The background color for the message.
29
+ * @cssprop {unknown} --message-border-color - The border color for the message.
30
+ * @cssprop {unknown} --message-foreground-color - The foreground color for the message.
31
+ * @cssprop {unknown} --message-border-width - The border width for the message.
32
+ * @cssprop {unknown} --message-border-radius - The border radius for the message.
33
+ * @cssprop {unknown} --message-border-style - The border style for the message.
34
+ * @cssprop {unknown} --message-transition-duration - The transition duration for the message.
35
+ * @cssprop {unknown} --message-transition-mode - The transition mode for the message.
36
+ * @cssprop {unknown} --message-transition-property - The transition property for the message.
37
+ * @cssprop {unknown} --message-shadow - The shadow effect for the message.
38
+ * @cssprop {unknown} --message-padding-top - The top padding for the message.
39
+ * @cssprop {unknown} --message-padding-left - The left padding for the message.
40
+ * @cssprop {unknown} --message-padding-bottom - The bottom padding for the message.
41
+ * @cssprop {unknown} --message-padding-right - The right padding for the message.
42
+ * @cssprop {unknown} --message-gap - The gap between elements within the message.
43
+ *
44
+ * @dependency {IconElement} - The Icon element.
45
+ * @dependency {TextElement} - The Text element.
46
+ * @dependency {DismissElement} - The Dismiss element for closing the message.
47
+ *
48
+ * @example
49
+ * ```html
50
+ * <mosaik-message
51
+ * icon="info"
52
+ * header="System Update"
53
+ * subHeader="We will be back online shortly."
54
+ * closeable></mosaik-message>
55
+ * ```
56
+ *
57
+ * @public
58
+ */
59
+ export declare class MessageElement extends MessageElement_base implements IMessageElementProps, ICloseableEvents, ICloseable {
60
+ private _icon;
61
+ private _iconSize;
62
+ private _header;
63
+ private _content;
64
+ /**
65
+ * @public
66
+ */
67
+ constructor();
68
+ /**
69
+ * Returns the `{@link is}` property.
70
+ * The `{@link is}` property represents natural name of this element.
71
+ *
72
+ * @public
73
+ * @static
74
+ * @readonly
75
+ */
76
+ static get is(): string;
77
+ /**
78
+ * Gets or sets the `icon` property.
79
+ *
80
+ * @public
81
+ */
82
+ get icon(): string;
83
+ set icon(value: string);
84
+ /**
85
+ * Gets or sets the `iconSize` property.
86
+ *
87
+ * @public
88
+ * @attr
89
+ */
90
+ get iconSize(): Size | null;
91
+ set iconSize(value: Size | null);
92
+ /**
93
+ * Gets or sets the `header` property.
94
+ *
95
+ * @public
96
+ */
97
+ get header(): string;
98
+ set header(value: string);
99
+ /**
100
+ * Gets or sets the `content` property.
101
+ *
102
+ * @public
103
+ */
104
+ get content(): string;
105
+ set content(value: string);
106
+ /**
107
+ * Closes the `MessageElement`.
108
+ *
109
+ * @public
110
+ * @override
111
+ */
112
+ close(): Promise<boolean>;
113
+ }
114
+ /**
115
+ * @public
116
+ */
117
+ export declare namespace MessageElement {
118
+ type Props = IMessageElementProps;
119
+ }
120
+ /**
121
+ * @public
122
+ */
123
+ declare global {
124
+ interface HTMLElementTagNameMap {
125
+ 'mosaik-message': MessageElement;
126
+ }
127
+ }
128
+ export {};
129
+ //# sourceMappingURL=MessageElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageElement.d.ts","sourceRoot":"","sources":["../../../../../src/Controls/Components/Grouping/Message/MessageElement.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAQ5F,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAI9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;;AAQnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,qBAca,cACT,SAAQ,mBACR,YAAW,oBAAoB,EAAE,gBAAgB,EAAE,UAAU;IAI7D,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,SAAS,CAAc;IAC/B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAS;IAMzB;;OAEG;;IAcH;;;;;;;OAOG;IACH,WAAkB,EAAE,IAAI,MAAM,CAE7B;IAED;;;;OAIG;IACH,IACW,IAAI,IAAI,MAAM,CAExB;IACD,IAAW,IAAI,CAAC,KAAK,EAAE,MAAM,EAK5B;IAED;;;;;OAKG;IACH,IACW,QAAQ,IAAI,IAAI,GAAG,IAAI,CAEjC;IACD,IAAW,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,EAKrC;IAED;;;;OAIG;IACH,IACW,MAAM,IAAI,MAAM,CAE1B;IACD,IAAW,MAAM,CAAC,KAAK,EAAE,MAAM,EAK9B;IAED;;;;OAIG;IACH,IACW,OAAO,IAAI,MAAM,CAE3B;IACD,IAAW,OAAO,CAAC,KAAK,EAAE,MAAM,EAK/B;IAMD;;;;;OAKG;IACmB,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC;CAUlD;AAED;;GAEG;AACH,yBAAiB,cAAc,CAAC;IAC5B,KAAY,KAAK,GAAG,oBAAoB,CAAC;CAC5C;AAED;;GAEG;AACH,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,gBAAgB,EAAE,cAAc,CAAC;KACpC;CACJ"}
@@ -0,0 +1,225 @@
1
+ // #region Imports
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ import { Themeable } from '../../../../Controls/Behaviors/Themeable';
12
+ import { Appearanceable } from '../../../Behaviors/Appearanceable';
13
+ import { Closeable } from '../../../Behaviors/Closeable';
14
+ import { Disableable } from '../../../Behaviors/Disableable';
15
+ import { Fitable } from '../../../Behaviors/Fitable';
16
+ import { TextFormattable } from '../../../Behaviors/TextFormattable';
17
+ import { Variantable } from '../../../Behaviors/Variantable';
18
+ import { Attribute } from '../../../Decorators/AttributeDecorator';
19
+ import { Component } from '../../../Decorators/ComponentDecorator';
20
+ import { Property } from '../../../Decorators/PropertyDecorator';
21
+ import { Size } from '../../../Types/Size';
22
+ import { CustomElement } from '../../Abstracts/CustomElement';
23
+ import { IconElement } from '../../Media/Icon/IconElement';
24
+ import { DismissElement } from '../../Primitives/Dismiss/DismissElement';
25
+ import { TextElement } from '../../Primitives/Text/TextElement';
26
+ import { messageElementTemplate } from './MessageElementTemplate';
27
+ import { messageElementCosmopolitanStyle } from './Themes/MessageElement.Cosmopolitan';
28
+ import { messageElementJoyStyle } from './Themes/MessageElement.Joy';
29
+ import { messageElementMemphisStyle } from './Themes/MessageElement.Memphis';
30
+ // #endregion
31
+ /**
32
+ * Message - A compact, closeable notification component for displaying concise information.
33
+ *
34
+ * @description
35
+ * The `Message` component is a simplified notification element based on the Banner component.
36
+ * It focuses on displaying an icon, header, and subheader with optional close functionality,
37
+ * without slots or action areas. This makes it ideal for quick, dismissible messages.
38
+ *
39
+ * @name Message
40
+ * @element mosaik-message
41
+ * @category Notifications
42
+ *
43
+ * @fires closed - Fired when the message is closed.
44
+ *
45
+ * @csspart root - The root part of the message.
46
+ * @csspart icon - The icon part of the message.
47
+ * @csspart text - The text part of the message.
48
+ * @csspart close - The close button or icon part of the message.
49
+ *
50
+ * @cssprop {unknown} --message-font-family - The font family for the message.
51
+ * @cssprop {unknown} --message-font-size - The font size for the message.
52
+ * @cssprop {unknown} --message-font-weight - The font weight for the message.
53
+ * @cssprop {unknown} --message-background-color - The background color for the message.
54
+ * @cssprop {unknown} --message-border-color - The border color for the message.
55
+ * @cssprop {unknown} --message-foreground-color - The foreground color for the message.
56
+ * @cssprop {unknown} --message-border-width - The border width for the message.
57
+ * @cssprop {unknown} --message-border-radius - The border radius for the message.
58
+ * @cssprop {unknown} --message-border-style - The border style for the message.
59
+ * @cssprop {unknown} --message-transition-duration - The transition duration for the message.
60
+ * @cssprop {unknown} --message-transition-mode - The transition mode for the message.
61
+ * @cssprop {unknown} --message-transition-property - The transition property for the message.
62
+ * @cssprop {unknown} --message-shadow - The shadow effect for the message.
63
+ * @cssprop {unknown} --message-padding-top - The top padding for the message.
64
+ * @cssprop {unknown} --message-padding-left - The left padding for the message.
65
+ * @cssprop {unknown} --message-padding-bottom - The bottom padding for the message.
66
+ * @cssprop {unknown} --message-padding-right - The right padding for the message.
67
+ * @cssprop {unknown} --message-gap - The gap between elements within the message.
68
+ *
69
+ * @dependency {IconElement} - The Icon element.
70
+ * @dependency {TextElement} - The Text element.
71
+ * @dependency {DismissElement} - The Dismiss element for closing the message.
72
+ *
73
+ * @example
74
+ * ```html
75
+ * <mosaik-message
76
+ * icon="info"
77
+ * header="System Update"
78
+ * subHeader="We will be back online shortly."
79
+ * closeable></mosaik-message>
80
+ * ```
81
+ *
82
+ * @public
83
+ */
84
+ let MessageElement = class MessageElement extends Themeable(Closeable(Disableable(Variantable(Appearanceable(Fitable(TextFormattable(CustomElement))))))) {
85
+ // #region Fields
86
+ _icon;
87
+ _iconSize;
88
+ _header;
89
+ _content;
90
+ // #endregion
91
+ // #region Ctor
92
+ /**
93
+ * @public
94
+ */
95
+ constructor() {
96
+ super();
97
+ this._icon = '';
98
+ this._iconSize = 'small';
99
+ this._header = '';
100
+ this._content = '';
101
+ }
102
+ // #endregion
103
+ // #region Properties
104
+ /**
105
+ * Returns the `{@link is}` property.
106
+ * The `{@link is}` property represents natural name of this element.
107
+ *
108
+ * @public
109
+ * @static
110
+ * @readonly
111
+ */
112
+ static get is() {
113
+ return 'mosaik-message';
114
+ }
115
+ /**
116
+ * Gets or sets the `icon` property.
117
+ *
118
+ * @public
119
+ */
120
+ get icon() {
121
+ return this._icon;
122
+ }
123
+ set icon(value) {
124
+ if (this._icon !== value) {
125
+ this._icon = value;
126
+ this.requestUpdate('icon');
127
+ }
128
+ }
129
+ /**
130
+ * Gets or sets the `iconSize` property.
131
+ *
132
+ * @public
133
+ * @attr
134
+ */
135
+ get iconSize() {
136
+ return this._iconSize;
137
+ }
138
+ set iconSize(value) {
139
+ if (this._iconSize !== value) {
140
+ this._iconSize = value;
141
+ this.requestUpdate('iconSize');
142
+ }
143
+ }
144
+ /**
145
+ * Gets or sets the `header` property.
146
+ *
147
+ * @public
148
+ */
149
+ get header() {
150
+ return this._header;
151
+ }
152
+ set header(value) {
153
+ if (this._header !== value) {
154
+ this._header = value;
155
+ this.requestUpdate('header');
156
+ }
157
+ }
158
+ /**
159
+ * Gets or sets the `content` property.
160
+ *
161
+ * @public
162
+ */
163
+ get content() {
164
+ return this._content;
165
+ }
166
+ set content(value) {
167
+ if (this._content !== value) {
168
+ this._content = value;
169
+ this.requestUpdate('content');
170
+ }
171
+ }
172
+ // #endregion
173
+ // #region Methods
174
+ /**
175
+ * Closes the `MessageElement`.
176
+ *
177
+ * @public
178
+ * @override
179
+ */
180
+ async close() {
181
+ if (this.disabled) {
182
+ return false;
183
+ }
184
+ return super.close();
185
+ }
186
+ };
187
+ __decorate([
188
+ Property({ type: String }),
189
+ __metadata("design:type", String),
190
+ __metadata("design:paramtypes", [String])
191
+ ], MessageElement.prototype, "icon", null);
192
+ __decorate([
193
+ Attribute({ type: Size }),
194
+ __metadata("design:type", Object),
195
+ __metadata("design:paramtypes", [Object])
196
+ ], MessageElement.prototype, "iconSize", null);
197
+ __decorate([
198
+ Property({ type: String }),
199
+ __metadata("design:type", String),
200
+ __metadata("design:paramtypes", [String])
201
+ ], MessageElement.prototype, "header", null);
202
+ __decorate([
203
+ Property({ type: String }),
204
+ __metadata("design:type", String),
205
+ __metadata("design:paramtypes", [String])
206
+ ], MessageElement.prototype, "content", null);
207
+ MessageElement = __decorate([
208
+ Component({
209
+ selector: 'mosaik-message',
210
+ template: messageElementTemplate,
211
+ themes: {
212
+ joy: messageElementJoyStyle,
213
+ memphis: messageElementMemphisStyle,
214
+ cosmopolitan: messageElementCosmopolitanStyle
215
+ },
216
+ imports: [
217
+ IconElement,
218
+ TextElement,
219
+ DismissElement
220
+ ]
221
+ }),
222
+ __metadata("design:paramtypes", [])
223
+ ], MessageElement);
224
+ export { MessageElement };
225
+ //# sourceMappingURL=MessageElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageElement.js","sourceRoot":"","sources":["../../../../../src/Controls/Components/Grouping/Message/MessageElement.ts"],"names":[],"mappings":"AAAA,kBAAkB;;;;;;;;;;AAElB,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAqC,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EAAE,WA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,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;YAC1B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;YACtB,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;QAClC,CAAC;IACL,CAAC;IAED,aAAa;IAEb,kBAAkB;IAElB;;;;;OAKG;IACa,KAAK,CAAC,KAAK;QACvB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChB,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,OAAO,KAAK,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;CAIJ,CAAA;AAhFG;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;;0CAG1B;AAcD;IAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;;8CAGzB;AAaD;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;;4CAG1B;AAaD;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;;6CAG1B;AApGQ,cAAc;IAd1B,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,QAAQ,EAAE,sBAAsB;QAChC,MAAM,EAAE;YACJ,GAAG,EAAE,sBAAsB;YAC3B,OAAO,EAAE,0BAA0B;YACnC,YAAY,EAAE,+BAA+B;SAChD;QACD,OAAO,EAAE;YACL,WAAW;YACX,WAAW;YACX,cAAc;SACjB;KACJ,CAAC;;GACW,cAAc,CAgI1B"}
@@ -0,0 +1,9 @@
1
+ import { type TemplateResult } from '../../../../Dom/Html';
2
+ import type { MessageElement } from './MessageElement';
3
+ /**
4
+ * The template of the {@link MessageElement}.
5
+ *
6
+ * @public
7
+ */
8
+ export declare function messageElementTemplate<T extends MessageElement>(e: T): TemplateResult;
9
+ //# sourceMappingURL=MessageElementTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageElementTemplate.d.ts","sourceRoot":"","sources":["../../../../../src/Controls/Components/Grouping/Message/MessageElementTemplate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAIjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,cAAc,EAAE,CAAC,EAAE,CAAC,GAAG,cAAc,CAiDrF"}
@@ -0,0 +1,61 @@
1
+ // #region Imports
2
+ import { html } from '../../../../Dom/Html';
3
+ import { when } from '../../../Directives/Directives';
4
+ import { ifNonNull } from '../../../Directives/IfNonNull';
5
+ // #endregion
6
+ /**
7
+ * The template of the {@link MessageElement}.
8
+ *
9
+ * @public
10
+ */
11
+ export function messageElementTemplate(e) {
12
+ return html `
13
+ <div part="root">
14
+ ${when(e.icon, () => html `
15
+ <mosaik-icon part="icon"
16
+ .variant="${e.variant}"
17
+ .data="${e.icon}"
18
+ .size="${ifNonNull(e.iconSize)}"
19
+ .lang="${e.lang}"
20
+ .dir="${e.dir}"
21
+ ?inline="${true}"
22
+ ?disabled="${e.disabled}"></mosaik-icon>
23
+ `)}
24
+ ${when(e.header.trim() || e.content.trim(), () => html `
25
+ <div part="text">
26
+ ${when(e.header.trim(), () => html `
27
+ <mosaik-text part="header"
28
+ .variant="${e.variant}"
29
+ .text="${e.header}"
30
+ .formatter="${e.formatter}"
31
+ .wrap="${true}"
32
+ .dir="${e.dir}"
33
+ .lang="${e.lang}"
34
+ ?disabled="${e.disabled}"></mosaik-text>
35
+ `)}
36
+ ${when(e.content.trim(), () => html `
37
+ <mosaik-text part="content"
38
+ .variant="${e.variant}"
39
+ .text="${e.content}"
40
+ .formatter="${e.formatter}"
41
+ .wrap="${true}"
42
+ .dir="${e.dir}"
43
+ .lang="${e.lang}"
44
+ ?disabled="${e.disabled}"></mosaik-text>
45
+ `)}
46
+ </div>
47
+ `)}
48
+ ${when(e.closeable, () => html `
49
+ <mosaik-dismiss part="close"
50
+ .variant="${e.variant}"
51
+ .appearance="${'plain'}"
52
+ .size="${'small'}"
53
+ .dir="${e.dir}"
54
+ .lang="${e.lang}"
55
+ ?disabled="${e.disabled}"
56
+ @click="${() => e.close()}"></mosaik-dismiss>
57
+ `)}
58
+ </div>
59
+ `;
60
+ }
61
+ //# sourceMappingURL=MessageElementTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageElementTemplate.js","sourceRoot":"","sources":["../../../../../src/Controls/Components/Grouping/Message/MessageElementTemplate.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,IAAI,EAAuB,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAI1D,aAAa;AAEb;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAA2B,CAAI;IACjE,OAAO,IAAI,CAAA;;cAED,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA;;wCAEG,CAAC,CAAC,OAAO;qCACZ,CAAC,CAAC,IAAI;qCACN,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAS;qCAC7B,CAAC,CAAC,IAAI;oCACP,CAAC,CAAC,GAAG;uCACF,IAAI;yCACF,CAAC,CAAC,QAAQ;aACtC,CAAC;cACA,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA;;kBAEhD,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA;;yCAET,CAAC,CAAC,OAAO;sCACZ,CAAC,CAAC,MAAM;2CACH,CAAC,CAAC,SAAS;sCAChB,IAAI;qCACL,CAAC,CAAC,GAAG;sCACJ,CAAC,CAAC,IAAI;0CACF,CAAC,CAAC,QAAQ;iBACnC,CAAC;kBACA,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA;;yCAEV,CAAC,CAAC,OAAO;sCACZ,CAAC,CAAC,OAAO;2CACJ,CAAC,CAAC,SAAS;sCAChB,IAAI;qCACL,CAAC,CAAC,GAAG;sCACJ,CAAC,CAAC,IAAI;0CACF,CAAC,CAAC,QAAQ;iBACnC,CAAC;;aAEL,CAAC;cACA,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA;;wCAEF,CAAC,CAAC,OAAO;2CACN,OAAO;qCACb,OAAO;oCACR,CAAC,CAAC,GAAG;qCACJ,CAAC,CAAC,IAAI;yCACF,CAAC,CAAC,QAAQ;sCACb,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE;aACxC,CAAC;;KAET,CAAC;AACN,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type CSSResult } from '../../../../../Dom/Css';
2
+ /**
3
+ * @public
4
+ */
5
+ export declare function messageElementCosmopolitanStyle(): CSSResult;
6
+ //# sourceMappingURL=MessageElement.Cosmopolitan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageElement.Cosmopolitan.d.ts","sourceRoot":"","sources":["../../../../../../src/Controls/Components/Grouping/Message/Themes/MessageElement.Cosmopolitan.ts"],"names":[],"mappings":"AASA,OAAO,EAAO,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAI7D;;GAEG;AACH,wBAAgB,+BAA+B,IAAI,SAAS,CAmL3D"}