@ni/spright-components 6.11.0 → 6.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all-components-bundle.js +343 -196
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +4696 -4630
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/custom-elements.json +152 -128
- package/dist/custom-elements.md +30 -29
- package/dist/esm/all-components.d.ts +1 -0
- package/dist/esm/all-components.js +1 -0
- package/dist/esm/all-components.js.map +1 -1
- package/dist/esm/chat/conversation/index.d.ts +5 -0
- package/dist/esm/chat/conversation/index.js +11 -0
- package/dist/esm/chat/conversation/index.js.map +1 -1
- package/dist/esm/chat/conversation/styles.js +8 -0
- package/dist/esm/chat/conversation/styles.js.map +1 -1
- package/dist/esm/chat/conversation/template.js +3 -0
- package/dist/esm/chat/conversation/template.js.map +1 -1
- package/dist/esm/icons/all-icons.d.ts +5 -0
- package/dist/esm/icons/all-icons.js +6 -0
- package/dist/esm/icons/all-icons.js.map +1 -0
- package/dist/esm/icons/work-item-calendar-week/index.d.ts +13 -0
- package/dist/esm/icons/work-item-calendar-week/index.js +23 -0
- package/dist/esm/icons/work-item-calendar-week/index.js.map +1 -0
- package/dist/esm/icons/work-item-calendar-week/styles.d.ts +1 -0
- package/dist/esm/icons/work-item-calendar-week/styles.js +11 -0
- package/dist/esm/icons/work-item-calendar-week/styles.js.map +1 -0
- package/dist/esm/icons/work-item-calipers/index.d.ts +13 -0
- package/dist/esm/icons/work-item-calipers/index.js +23 -0
- package/dist/esm/icons/work-item-calipers/index.js.map +1 -0
- package/dist/esm/icons/work-item-calipers/styles.d.ts +1 -0
- package/dist/esm/icons/work-item-calipers/styles.js +11 -0
- package/dist/esm/icons/work-item-calipers/styles.js.map +1 -0
- package/dist/esm/icons/work-item-forklift/index.d.ts +13 -0
- package/dist/esm/icons/work-item-forklift/index.js +23 -0
- package/dist/esm/icons/work-item-forklift/index.js.map +1 -0
- package/dist/esm/icons/work-item-forklift/styles.d.ts +1 -0
- package/dist/esm/icons/work-item-forklift/styles.js +11 -0
- package/dist/esm/icons/work-item-forklift/styles.js.map +1 -0
- package/dist/esm/icons/work-item-rectangle-check-lines/index.d.ts +13 -0
- package/dist/esm/icons/work-item-rectangle-check-lines/index.js +23 -0
- package/dist/esm/icons/work-item-rectangle-check-lines/index.js.map +1 -0
- package/dist/esm/icons/work-item-rectangle-check-lines/styles.d.ts +1 -0
- package/dist/esm/icons/work-item-rectangle-check-lines/styles.js +11 -0
- package/dist/esm/icons/work-item-rectangle-check-lines/styles.js.map +1 -0
- package/dist/esm/icons/work-item-wrench-hammer/index.d.ts +13 -0
- package/dist/esm/icons/work-item-wrench-hammer/index.js +23 -0
- package/dist/esm/icons/work-item-wrench-hammer/index.js.map +1 -0
- package/dist/esm/icons/work-item-wrench-hammer/styles.d.ts +1 -0
- package/dist/esm/icons/work-item-wrench-hammer/styles.js +11 -0
- package/dist/esm/icons/work-item-wrench-hammer/styles.js.map +1 -0
- package/dist/esm/utilities/style/user-select.d.ts +5 -0
- package/dist/esm/utilities/style/user-select.js +10 -0
- package/dist/esm/utilities/style/user-select.js.map +1 -0
- package/package.json +2 -1
|
@@ -49,6 +49,158 @@
|
|
|
49
49
|
}
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
|
+
{
|
|
53
|
+
"kind": "javascript-module",
|
|
54
|
+
"path": "src/chat/conversation/index.ts",
|
|
55
|
+
"declarations": [
|
|
56
|
+
{
|
|
57
|
+
"kind": "class",
|
|
58
|
+
"description": "A Spright component for displaying a series of chat messages",
|
|
59
|
+
"name": "ChatConversation",
|
|
60
|
+
"members": [
|
|
61
|
+
{
|
|
62
|
+
"kind": "field",
|
|
63
|
+
"name": "appearance",
|
|
64
|
+
"privacy": "public"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"kind": "method",
|
|
68
|
+
"name": "slottedInputElementsChanged",
|
|
69
|
+
"privacy": "public",
|
|
70
|
+
"return": {
|
|
71
|
+
"type": {
|
|
72
|
+
"text": "void"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"parameters": [
|
|
76
|
+
{
|
|
77
|
+
"name": "_prev",
|
|
78
|
+
"type": {
|
|
79
|
+
"text": "HTMLElement[] | undefined"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "next",
|
|
84
|
+
"type": {
|
|
85
|
+
"text": "HTMLElement[] | undefined"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"kind": "method",
|
|
92
|
+
"name": "slottedToolbarElementsChanged",
|
|
93
|
+
"privacy": "public",
|
|
94
|
+
"return": {
|
|
95
|
+
"type": {
|
|
96
|
+
"text": "void"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"parameters": [
|
|
100
|
+
{
|
|
101
|
+
"name": "_prev",
|
|
102
|
+
"type": {
|
|
103
|
+
"text": "HTMLElement[] | undefined"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "next",
|
|
108
|
+
"type": {
|
|
109
|
+
"text": "HTMLElement[] | undefined"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"kind": "method",
|
|
116
|
+
"name": "slottedStartElementsChanged",
|
|
117
|
+
"privacy": "public",
|
|
118
|
+
"return": {
|
|
119
|
+
"type": {
|
|
120
|
+
"text": "void"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"parameters": [
|
|
124
|
+
{
|
|
125
|
+
"name": "_prev",
|
|
126
|
+
"type": {
|
|
127
|
+
"text": "HTMLElement[] | undefined"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "next",
|
|
132
|
+
"type": {
|
|
133
|
+
"text": "HTMLElement[] | undefined"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"attributes": [
|
|
140
|
+
{
|
|
141
|
+
"name": "appearance",
|
|
142
|
+
"fieldName": "appearance"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"superclass": {
|
|
146
|
+
"name": "FoundationElement",
|
|
147
|
+
"package": "@ni/fast-foundation"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"kind": "variable",
|
|
152
|
+
"name": "chatConversationTag",
|
|
153
|
+
"type": {
|
|
154
|
+
"text": "string"
|
|
155
|
+
},
|
|
156
|
+
"default": "'spright-chat-conversation'"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"exports": [
|
|
160
|
+
{
|
|
161
|
+
"kind": "js",
|
|
162
|
+
"name": "ChatConversation",
|
|
163
|
+
"declaration": {
|
|
164
|
+
"name": "ChatConversation",
|
|
165
|
+
"module": "src/chat/conversation/index.ts"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"kind": "js",
|
|
170
|
+
"name": "chatConversationTag",
|
|
171
|
+
"declaration": {
|
|
172
|
+
"name": "chatConversationTag",
|
|
173
|
+
"module": "src/chat/conversation/index.ts"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"kind": "javascript-module",
|
|
180
|
+
"path": "src/chat/conversation/types.ts",
|
|
181
|
+
"declarations": [
|
|
182
|
+
{
|
|
183
|
+
"kind": "variable",
|
|
184
|
+
"name": "ChatConversationAppearance",
|
|
185
|
+
"type": {
|
|
186
|
+
"text": "{\n default: undefined,\n overlay: 'overlay'\n}"
|
|
187
|
+
},
|
|
188
|
+
"default": "{ default: undefined, overlay: 'overlay' }",
|
|
189
|
+
"description": "Appearances of chat conversation.",
|
|
190
|
+
"privacy": "public"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"exports": [
|
|
194
|
+
{
|
|
195
|
+
"kind": "js",
|
|
196
|
+
"name": "ChatConversationAppearance",
|
|
197
|
+
"declaration": {
|
|
198
|
+
"name": "ChatConversationAppearance",
|
|
199
|
+
"module": "src/chat/conversation/types.ts"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
52
204
|
{
|
|
53
205
|
"kind": "javascript-module",
|
|
54
206
|
"path": "src/chat/input/index.ts",
|
|
@@ -301,134 +453,6 @@
|
|
|
301
453
|
"declarations": [],
|
|
302
454
|
"exports": []
|
|
303
455
|
},
|
|
304
|
-
{
|
|
305
|
-
"kind": "javascript-module",
|
|
306
|
-
"path": "src/chat/conversation/index.ts",
|
|
307
|
-
"declarations": [
|
|
308
|
-
{
|
|
309
|
-
"kind": "class",
|
|
310
|
-
"description": "A Spright component for displaying a series of chat messages",
|
|
311
|
-
"name": "ChatConversation",
|
|
312
|
-
"members": [
|
|
313
|
-
{
|
|
314
|
-
"kind": "field",
|
|
315
|
-
"name": "appearance",
|
|
316
|
-
"privacy": "public"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"kind": "method",
|
|
320
|
-
"name": "slottedInputElementsChanged",
|
|
321
|
-
"privacy": "public",
|
|
322
|
-
"return": {
|
|
323
|
-
"type": {
|
|
324
|
-
"text": "void"
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
"parameters": [
|
|
328
|
-
{
|
|
329
|
-
"name": "_prev",
|
|
330
|
-
"type": {
|
|
331
|
-
"text": "HTMLElement[] | undefined"
|
|
332
|
-
}
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"name": "next",
|
|
336
|
-
"type": {
|
|
337
|
-
"text": "HTMLElement[] | undefined"
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
]
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"kind": "method",
|
|
344
|
-
"name": "slottedToolbarElementsChanged",
|
|
345
|
-
"privacy": "public",
|
|
346
|
-
"return": {
|
|
347
|
-
"type": {
|
|
348
|
-
"text": "void"
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
"parameters": [
|
|
352
|
-
{
|
|
353
|
-
"name": "_prev",
|
|
354
|
-
"type": {
|
|
355
|
-
"text": "HTMLElement[] | undefined"
|
|
356
|
-
}
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"name": "next",
|
|
360
|
-
"type": {
|
|
361
|
-
"text": "HTMLElement[] | undefined"
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
]
|
|
365
|
-
}
|
|
366
|
-
],
|
|
367
|
-
"attributes": [
|
|
368
|
-
{
|
|
369
|
-
"name": "appearance",
|
|
370
|
-
"fieldName": "appearance"
|
|
371
|
-
}
|
|
372
|
-
],
|
|
373
|
-
"superclass": {
|
|
374
|
-
"name": "FoundationElement",
|
|
375
|
-
"package": "@ni/fast-foundation"
|
|
376
|
-
}
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
"kind": "variable",
|
|
380
|
-
"name": "chatConversationTag",
|
|
381
|
-
"type": {
|
|
382
|
-
"text": "string"
|
|
383
|
-
},
|
|
384
|
-
"default": "'spright-chat-conversation'"
|
|
385
|
-
}
|
|
386
|
-
],
|
|
387
|
-
"exports": [
|
|
388
|
-
{
|
|
389
|
-
"kind": "js",
|
|
390
|
-
"name": "ChatConversation",
|
|
391
|
-
"declaration": {
|
|
392
|
-
"name": "ChatConversation",
|
|
393
|
-
"module": "src/chat/conversation/index.ts"
|
|
394
|
-
}
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
"kind": "js",
|
|
398
|
-
"name": "chatConversationTag",
|
|
399
|
-
"declaration": {
|
|
400
|
-
"name": "chatConversationTag",
|
|
401
|
-
"module": "src/chat/conversation/index.ts"
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
]
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
"kind": "javascript-module",
|
|
408
|
-
"path": "src/chat/conversation/types.ts",
|
|
409
|
-
"declarations": [
|
|
410
|
-
{
|
|
411
|
-
"kind": "variable",
|
|
412
|
-
"name": "ChatConversationAppearance",
|
|
413
|
-
"type": {
|
|
414
|
-
"text": "{\n default: undefined,\n overlay: 'overlay'\n}"
|
|
415
|
-
},
|
|
416
|
-
"default": "{ default: undefined, overlay: 'overlay' }",
|
|
417
|
-
"description": "Appearances of chat conversation.",
|
|
418
|
-
"privacy": "public"
|
|
419
|
-
}
|
|
420
|
-
],
|
|
421
|
-
"exports": [
|
|
422
|
-
{
|
|
423
|
-
"kind": "js",
|
|
424
|
-
"name": "ChatConversationAppearance",
|
|
425
|
-
"declaration": {
|
|
426
|
-
"name": "ChatConversationAppearance",
|
|
427
|
-
"module": "src/chat/conversation/types.ts"
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
]
|
|
431
|
-
},
|
|
432
456
|
{
|
|
433
457
|
"kind": "javascript-module",
|
|
434
458
|
"path": "src/chat/message/index.ts",
|
package/dist/custom-elements.md
CHANGED
|
@@ -8,6 +8,36 @@
|
|
|
8
8
|
|
|
9
9
|
<hr/>
|
|
10
10
|
|
|
11
|
+
## class: `ChatConversation`
|
|
12
|
+
|
|
13
|
+
### Superclass
|
|
14
|
+
|
|
15
|
+
| Name | Module | Package |
|
|
16
|
+
| ------------------- | ------ | ------------------- |
|
|
17
|
+
| `FoundationElement` | | @ni/fast-foundation |
|
|
18
|
+
|
|
19
|
+
### Fields
|
|
20
|
+
|
|
21
|
+
| Name | Privacy | Type | Default | Description | Inherited From |
|
|
22
|
+
| ------------ | ------- | ---- | ------- | ----------- | -------------- |
|
|
23
|
+
| `appearance` | public | | | | |
|
|
24
|
+
|
|
25
|
+
### Methods
|
|
26
|
+
|
|
27
|
+
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
28
|
+
| ------------------------------- | ------- | ----------- | --------------------------------------------------------------------- | ------ | -------------- |
|
|
29
|
+
| `slottedInputElementsChanged` | public | | `_prev: HTMLElement[] \| undefined, next: HTMLElement[] \| undefined` | `void` | |
|
|
30
|
+
| `slottedToolbarElementsChanged` | public | | `_prev: HTMLElement[] \| undefined, next: HTMLElement[] \| undefined` | `void` | |
|
|
31
|
+
| `slottedStartElementsChanged` | public | | `_prev: HTMLElement[] \| undefined, next: HTMLElement[] \| undefined` | `void` | |
|
|
32
|
+
|
|
33
|
+
### Attributes
|
|
34
|
+
|
|
35
|
+
| Name | Field | Inherited From |
|
|
36
|
+
| ------------ | ---------- | -------------- |
|
|
37
|
+
| `appearance` | appearance | |
|
|
38
|
+
|
|
39
|
+
<hr/>
|
|
40
|
+
|
|
11
41
|
## class: `ChatInput`
|
|
12
42
|
|
|
13
43
|
### Superclass
|
|
@@ -44,35 +74,6 @@
|
|
|
44
74
|
|
|
45
75
|
<hr/>
|
|
46
76
|
|
|
47
|
-
## class: `ChatConversation`
|
|
48
|
-
|
|
49
|
-
### Superclass
|
|
50
|
-
|
|
51
|
-
| Name | Module | Package |
|
|
52
|
-
| ------------------- | ------ | ------------------- |
|
|
53
|
-
| `FoundationElement` | | @ni/fast-foundation |
|
|
54
|
-
|
|
55
|
-
### Fields
|
|
56
|
-
|
|
57
|
-
| Name | Privacy | Type | Default | Description | Inherited From |
|
|
58
|
-
| ------------ | ------- | ---- | ------- | ----------- | -------------- |
|
|
59
|
-
| `appearance` | public | | | | |
|
|
60
|
-
|
|
61
|
-
### Methods
|
|
62
|
-
|
|
63
|
-
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
64
|
-
| ------------------------------- | ------- | ----------- | --------------------------------------------------------------------- | ------ | -------------- |
|
|
65
|
-
| `slottedInputElementsChanged` | public | | `_prev: HTMLElement[] \| undefined, next: HTMLElement[] \| undefined` | `void` | |
|
|
66
|
-
| `slottedToolbarElementsChanged` | public | | `_prev: HTMLElement[] \| undefined, next: HTMLElement[] \| undefined` | `void` | |
|
|
67
|
-
|
|
68
|
-
### Attributes
|
|
69
|
-
|
|
70
|
-
| Name | Field | Inherited From |
|
|
71
|
-
| ------------ | ---------- | -------------- |
|
|
72
|
-
| `appearance` | appearance | |
|
|
73
|
-
|
|
74
|
-
<hr/>
|
|
75
|
-
|
|
76
77
|
## class: `ChatMessage`
|
|
77
78
|
|
|
78
79
|
### Superclass
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-components.js","sourceRoot":"","sources":["../../src/all-components.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,+CAA+C,CAAC;AAEvD,OAAO,qBAAqB,CAAC;AAC7B,OAAO,cAAc,CAAC;AACtB,OAAO,gBAAgB,CAAC;AACxB,OAAO,wBAAwB,CAAC;AAChC,OAAO,yBAAyB,CAAC;AACjC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,aAAa,CAAC","sourcesContent":["/**\n * Import of all the web components available in Spright AND Nimble.\n * Production applications are encouraged to import only components\n * that are required instead of leveraging this file.\n */\n\nimport '@ni/nimble-components/dist/esm/all-components';\n\nimport './chat/conversation';\nimport './chat/input';\nimport './chat/message';\nimport './chat/message/inbound';\nimport './chat/message/outbound';\nimport './chat/message/system';\nimport './rectangle';\n"]}
|
|
1
|
+
{"version":3,"file":"all-components.js","sourceRoot":"","sources":["../../src/all-components.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,+CAA+C,CAAC;AAEvD,OAAO,qBAAqB,CAAC;AAC7B,OAAO,cAAc,CAAC;AACtB,OAAO,gBAAgB,CAAC;AACxB,OAAO,wBAAwB,CAAC;AAChC,OAAO,yBAAyB,CAAC;AACjC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,aAAa,CAAC","sourcesContent":["/**\n * Import of all the web components available in Spright AND Nimble.\n * Production applications are encouraged to import only components\n * that are required instead of leveraging this file.\n */\n\nimport '@ni/nimble-components/dist/esm/all-components';\n\nimport './chat/conversation';\nimport './chat/input';\nimport './chat/message';\nimport './chat/message/inbound';\nimport './chat/message/outbound';\nimport './chat/message/system';\nimport './icons/all-icons';\nimport './rectangle';\n"]}
|
|
@@ -17,7 +17,12 @@ export declare class ChatConversation extends FoundationElement {
|
|
|
17
17
|
toolbarEmpty: boolean;
|
|
18
18
|
/** @internal */
|
|
19
19
|
readonly slottedToolbarElements?: HTMLElement[];
|
|
20
|
+
/** @internal */
|
|
21
|
+
startEmpty: boolean;
|
|
22
|
+
/** @internal */
|
|
23
|
+
readonly slottedStartElements?: HTMLElement[];
|
|
20
24
|
slottedInputElementsChanged(_prev: HTMLElement[] | undefined, next: HTMLElement[] | undefined): void;
|
|
21
25
|
slottedToolbarElementsChanged(_prev: HTMLElement[] | undefined, next: HTMLElement[] | undefined): void;
|
|
26
|
+
slottedStartElementsChanged(_prev: HTMLElement[] | undefined, next: HTMLElement[] | undefined): void;
|
|
22
27
|
}
|
|
23
28
|
export declare const chatConversationTag = "spright-chat-conversation";
|
|
@@ -15,6 +15,8 @@ export class ChatConversation extends FoundationElement {
|
|
|
15
15
|
this.inputEmpty = true;
|
|
16
16
|
/** @internal */
|
|
17
17
|
this.toolbarEmpty = true;
|
|
18
|
+
/** @internal */
|
|
19
|
+
this.startEmpty = true;
|
|
18
20
|
}
|
|
19
21
|
slottedInputElementsChanged(_prev, next) {
|
|
20
22
|
this.inputEmpty = next === undefined || next.length === 0;
|
|
@@ -22,6 +24,9 @@ export class ChatConversation extends FoundationElement {
|
|
|
22
24
|
slottedToolbarElementsChanged(_prev, next) {
|
|
23
25
|
this.toolbarEmpty = next === undefined || next.length === 0;
|
|
24
26
|
}
|
|
27
|
+
slottedStartElementsChanged(_prev, next) {
|
|
28
|
+
this.startEmpty = next === undefined || next.length === 0;
|
|
29
|
+
}
|
|
25
30
|
}
|
|
26
31
|
__decorate([
|
|
27
32
|
attr
|
|
@@ -38,6 +43,12 @@ __decorate([
|
|
|
38
43
|
__decorate([
|
|
39
44
|
observable
|
|
40
45
|
], ChatConversation.prototype, "slottedToolbarElements", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
observable
|
|
48
|
+
], ChatConversation.prototype, "startEmpty", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
observable
|
|
51
|
+
], ChatConversation.prototype, "slottedStartElements", void 0);
|
|
41
52
|
const sprightChatConversation = ChatConversation.compose({
|
|
42
53
|
baseName: 'chat-conversation',
|
|
43
54
|
template,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/chat/conversation/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAQrD;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,iBAAiB;IAAvD;;QAEW,eAAU,GAAG,0BAA0B,CAAC,OAAO,CAAC;QAEvD,gBAAgB;QAET,eAAU,GAAG,IAAI,CAAC;QAMzB,gBAAgB;QAET,iBAAY,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/chat/conversation/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAQrD;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,iBAAiB;IAAvD;;QAEW,eAAU,GAAG,0BAA0B,CAAC,OAAO,CAAC;QAEvD,gBAAgB;QAET,eAAU,GAAG,IAAI,CAAC;QAMzB,gBAAgB;QAET,iBAAY,GAAG,IAAI,CAAC;QAM3B,gBAAgB;QAET,eAAU,GAAG,IAAI,CAAC;IA0B7B,CAAC;IApBU,2BAA2B,CAC9B,KAAgC,EAChC,IAA+B;QAE/B,IAAI,CAAC,UAAU,GAAG,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IAC9D,CAAC;IAEM,6BAA6B,CAChC,KAAgC,EAChC,IAA+B;QAE/B,IAAI,CAAC,YAAY,GAAG,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IAChE,CAAC;IAEM,2BAA2B,CAC9B,KAAgC,EAChC,IAA+B;QAE/B,IAAI,CAAC,UAAU,GAAG,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IAC9D,CAAC;CACJ;AA9CU;IADN,IAAI;oDACkD;AAIhD;IADN,UAAU;oDACc;AAIT;IADf,UAAU;8DAC0C;AAI9C;IADN,UAAU;sDACgB;AAIX;IADf,UAAU;gEAC4C;AAIhD;IADN,UAAU;oDACc;AAIT;IADf,UAAU;8DAC0C;AAwBzD,MAAM,uBAAuB,GAAG,gBAAgB,CAAC,OAAO,CAAC;IACrD,QAAQ,EAAE,mBAAmB;IAC7B,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,SAAS,CAAC;KACrB,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAC;AACzC,MAAM,CAAC,MAAM,mBAAmB,GAAG,2BAA2B,CAAC","sourcesContent":["import { DesignSystem, FoundationElement } from '@ni/fast-foundation';\nimport { attr, observable } from '@ni/fast-element';\nimport { styles } from './styles';\nimport { template } from './template';\nimport { ChatConversationAppearance } from './types';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'spright-chat-conversation': ChatConversation;\n }\n}\n\n/**\n * A Spright component for displaying a series of chat messages\n */\nexport class ChatConversation extends FoundationElement {\n @attr\n public appearance = ChatConversationAppearance.default;\n\n /** @internal */\n @observable\n public inputEmpty = true;\n\n /** @internal */\n @observable\n public readonly slottedInputElements?: HTMLElement[];\n\n /** @internal */\n @observable\n public toolbarEmpty = true;\n\n /** @internal */\n @observable\n public readonly slottedToolbarElements?: HTMLElement[];\n\n /** @internal */\n @observable\n public startEmpty = true;\n\n /** @internal */\n @observable\n public readonly slottedStartElements?: HTMLElement[];\n\n public slottedInputElementsChanged(\n _prev: HTMLElement[] | undefined,\n next: HTMLElement[] | undefined\n ): void {\n this.inputEmpty = next === undefined || next.length === 0;\n }\n\n public slottedToolbarElementsChanged(\n _prev: HTMLElement[] | undefined,\n next: HTMLElement[] | undefined\n ): void {\n this.toolbarEmpty = next === undefined || next.length === 0;\n }\n\n public slottedStartElementsChanged(\n _prev: HTMLElement[] | undefined,\n next: HTMLElement[] | undefined\n ): void {\n this.startEmpty = next === undefined || next.length === 0;\n }\n}\n\nconst sprightChatConversation = ChatConversation.compose({\n baseName: 'chat-conversation',\n template,\n styles\n});\n\nDesignSystem.getOrCreate()\n .withPrefix('spright')\n .register(sprightChatConversation());\nexport const chatConversationTag = 'spright-chat-conversation';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/chat/conversation/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EACH,0BAA0B,EAC1B,WAAW,EACX,sBAAsB,EACtB,aAAa,EACb,eAAe,EAClB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,MAAM,CAAC;;;;sBAIC,0BAA0B;kBAC9B,WAAW,UAAU,0BAA0B
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/chat/conversation/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EACH,0BAA0B,EAC1B,WAAW,EACX,sBAAsB,EACtB,aAAa,EACb,eAAe,EAClB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,MAAM,CAAC;;;;sBAIC,0BAA0B;kBAC9B,WAAW,UAAU,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA8B9C,aAAa,IAAI,eAAe,IAAI,aAAa;cACtD,eAAe;sBACP,sBAAsB;;;;;;;;;mBASzB,WAAW,IAAI,eAAe,IAAI,eAAe;cACtD,eAAe;;;;uBAIN,eAAe,QAAQ,eAAe;;CAE5D,CAAC","sourcesContent":["import { css } from '@ni/fast-element';\nimport {\n applicationBackgroundColor,\n borderWidth,\n sectionBackgroundImage,\n mediumPadding,\n standardPadding\n} from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';\nimport { display } from '../../utilities/style/display';\n\nexport const styles = css`\n ${display('flex')}\n\n :host {\n flex-direction: column;\n background: ${applicationBackgroundColor};\n border: ${borderWidth} solid ${applicationBackgroundColor};\n }\n\n :host([appearance='overlay']) {\n background: none;\n border-color: transparent;\n }\n\n .toolbar {\n display: block;\n }\n\n .toolbar.toolbar-empty {\n display: none;\n }\n\n .start {\n display: block;\n }\n\n .start.start-empty {\n display: none;\n }\n\n .messages {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n row-gap: 32px;\n padding: ${mediumPadding} ${standardPadding} ${mediumPadding}\n ${standardPadding};\n background: ${sectionBackgroundImage};\n overflow-y: auto;\n }\n\n :host([appearance='overlay']) .messages {\n background: none;\n }\n\n .input {\n padding: ${borderWidth} ${standardPadding} ${standardPadding}\n ${standardPadding};\n }\n\n .input.input-empty {\n padding: 0px ${standardPadding} 0px ${standardPadding};\n }\n`;\n"]}
|
|
@@ -3,6 +3,9 @@ export const template = html `
|
|
|
3
3
|
<div class="toolbar ${x => (x.toolbarEmpty ? 'toolbar-empty' : '')}">
|
|
4
4
|
<slot name="toolbar" ${slotted({ property: 'slottedToolbarElements' })}></slot>
|
|
5
5
|
</div>
|
|
6
|
+
<div class="start ${x => (x.startEmpty ? 'start-empty' : '')}">
|
|
7
|
+
<slot name="start" ${slotted({ property: 'slottedStartElements' })}></slot>
|
|
8
|
+
</div>
|
|
6
9
|
<div class="messages"><slot></slot></div>
|
|
7
10
|
<div class="input ${x => (x.inputEmpty ? 'input-empty' : '')}">
|
|
8
11
|
<slot name="input" ${slotted({ property: 'slottedInputElements' })}>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/chat/conversation/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGjD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAkB;sBACxB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;2BACvC,OAAO,CAAC,EAAE,QAAQ,EAAE,wBAAwB,EAAE,CAAC;;;
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/chat/conversation/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGjD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAkB;sBACxB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;2BACvC,OAAO,CAAC,EAAE,QAAQ,EAAE,wBAAwB,EAAE,CAAC;;oBAEtD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;yBACnC,OAAO,CAAC,EAAE,QAAQ,EAAE,sBAAsB,EAAE,CAAC;;;oBAGlD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;yBACnC,OAAO,CAAC,EAAE,QAAQ,EAAE,sBAAsB,EAAE,CAAC;;;CAGrE,CAAC","sourcesContent":["import { html, slotted } from '@ni/fast-element';\nimport type { ChatConversation } from '.';\n\nexport const template = html<ChatConversation>`\n<div class=\"toolbar ${x => (x.toolbarEmpty ? 'toolbar-empty' : '')}\">\n <slot name=\"toolbar\" ${slotted({ property: 'slottedToolbarElements' })}></slot>\n</div>\n<div class=\"start ${x => (x.startEmpty ? 'start-empty' : '')}\">\n <slot name=\"start\" ${slotted({ property: 'slottedStartElements' })}></slot>\n</div>\n<div class=\"messages\"><slot></slot></div>\n<div class=\"input ${x => (x.inputEmpty ? 'input-empty' : '')}\">\n <slot name=\"input\" ${slotted({ property: 'slottedInputElements' })}>\n </slot>\n</div>\n`;\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { IconWorkItemCalendarWeek } from './work-item-calendar-week';
|
|
2
|
+
export { IconWorkItemCalipers } from './work-item-calipers';
|
|
3
|
+
export { IconWorkItemForklift } from './work-item-forklift';
|
|
4
|
+
export { IconWorkItemRectangleCheckLines } from './work-item-rectangle-check-lines';
|
|
5
|
+
export { IconWorkItemWrenchHammer } from './work-item-wrench-hammer';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { IconWorkItemCalendarWeek } from './work-item-calendar-week';
|
|
2
|
+
export { IconWorkItemCalipers } from './work-item-calipers';
|
|
3
|
+
export { IconWorkItemForklift } from './work-item-forklift';
|
|
4
|
+
export { IconWorkItemRectangleCheckLines } from './work-item-rectangle-check-lines';
|
|
5
|
+
export { IconWorkItemWrenchHammer } from './work-item-wrench-hammer';
|
|
6
|
+
//# sourceMappingURL=all-icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-icons.js","sourceRoot":"","sources":["../../../src/icons/all-icons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC","sourcesContent":["export { IconWorkItemCalendarWeek } from './work-item-calendar-week';\nexport { IconWorkItemCalipers } from './work-item-calipers';\nexport { IconWorkItemForklift } from './work-item-forklift';\nexport { IconWorkItemRectangleCheckLines } from './work-item-rectangle-check-lines';\nexport { IconWorkItemWrenchHammer } from './work-item-wrench-hammer';\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IconSvg } from '@ni/nimble-components/dist/esm/icon-svg';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'spright-icon-work-item-calendar-week': IconWorkItemCalendarWeek;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Spright calendar week icon for reservation work items
|
|
9
|
+
*/
|
|
10
|
+
export declare class IconWorkItemCalendarWeek extends IconSvg {
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
13
|
+
export declare const iconWorkItemCalendarWeekTag = "spright-icon-work-item-calendar-week";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { calendarWeek16X16 } from '@ni/nimble-tokens/dist/icons/js';
|
|
2
|
+
import { IconSvg } from '@ni/nimble-components/dist/esm/icon-svg';
|
|
3
|
+
import { template } from '@ni/nimble-components/dist/esm/icon-svg/template';
|
|
4
|
+
import { DesignSystem } from '@ni/fast-foundation';
|
|
5
|
+
import { styles } from './styles';
|
|
6
|
+
/**
|
|
7
|
+
* Spright calendar week icon for reservation work items
|
|
8
|
+
*/
|
|
9
|
+
export class IconWorkItemCalendarWeek extends IconSvg {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(calendarWeek16X16);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
const sprightIconWorkItemCalendarWeek = IconWorkItemCalendarWeek.compose({
|
|
15
|
+
baseName: 'icon-work-item-calendar-week',
|
|
16
|
+
template,
|
|
17
|
+
styles
|
|
18
|
+
});
|
|
19
|
+
DesignSystem.getOrCreate()
|
|
20
|
+
.withPrefix('spright')
|
|
21
|
+
.register(sprightIconWorkItemCalendarWeek());
|
|
22
|
+
export const iconWorkItemCalendarWeekTag = 'spright-icon-work-item-calendar-week';
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/icons/work-item-calendar-week/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC;;GAEG;AACH,MAAM,OAAO,wBAAyB,SAAQ,OAAO;IACjD;QACI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAC7B,CAAC;CACJ;AAED,MAAM,+BAA+B,GAAG,wBAAwB,CAAC,OAAO,CAAC;IACrE,QAAQ,EAAE,8BAA8B;IACxC,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,SAAS,CAAC;KACrB,QAAQ,CAAC,+BAA+B,EAAE,CAAC,CAAC;AAEjD,MAAM,CAAC,MAAM,2BAA2B,GAAG,sCAAsC,CAAC","sourcesContent":["import { calendarWeek16X16 } from '@ni/nimble-tokens/dist/icons/js';\nimport { IconSvg } from '@ni/nimble-components/dist/esm/icon-svg';\nimport { template } from '@ni/nimble-components/dist/esm/icon-svg/template';\nimport { DesignSystem } from '@ni/fast-foundation';\nimport { styles } from './styles';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'spright-icon-work-item-calendar-week': IconWorkItemCalendarWeek;\n }\n}\n\n/**\n * Spright calendar week icon for reservation work items\n */\nexport class IconWorkItemCalendarWeek extends IconSvg {\n public constructor() {\n super(calendarWeek16X16);\n }\n}\n\nconst sprightIconWorkItemCalendarWeek = IconWorkItemCalendarWeek.compose({\n baseName: 'icon-work-item-calendar-week',\n template,\n styles\n});\n\nDesignSystem.getOrCreate()\n .withPrefix('spright')\n .register(sprightIconWorkItemCalendarWeek());\n\nexport const iconWorkItemCalendarWeekTag = 'spright-icon-work-item-calendar-week';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("@ni/fast-element").ElementStyles;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { css } from '@ni/fast-element';
|
|
2
|
+
import { calendarEventBorderReservationColor } from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';
|
|
3
|
+
import { styles as iconSvgStyles } from '@ni/nimble-components/dist/esm/icon-svg/styles';
|
|
4
|
+
export const styles = css `
|
|
5
|
+
${iconSvgStyles}
|
|
6
|
+
|
|
7
|
+
.icon svg {
|
|
8
|
+
fill: ${calendarEventBorderReservationColor};
|
|
9
|
+
}
|
|
10
|
+
`;
|
|
11
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/icons/work-item-calendar-week/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,mCAAmC,EAAE,MAAM,6DAA6D,CAAC;AAClH,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAEzF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,aAAa;;;gBAGH,mCAAmC;;CAElD,CAAC","sourcesContent":["import { css } from '@ni/fast-element';\nimport { calendarEventBorderReservationColor } from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';\nimport { styles as iconSvgStyles } from '@ni/nimble-components/dist/esm/icon-svg/styles';\n\nexport const styles = css`\n ${iconSvgStyles}\n\n .icon svg {\n fill: ${calendarEventBorderReservationColor};\n }\n`;\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IconSvg } from '@ni/nimble-components/dist/esm/icon-svg';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'spright-icon-work-item-calipers': IconWorkItemCalipers;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Spright calipers icon for calibration work items
|
|
9
|
+
*/
|
|
10
|
+
export declare class IconWorkItemCalipers extends IconSvg {
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
13
|
+
export declare const iconWorkItemCalipersTag = "spright-icon-work-item-calipers";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { calipers16X16 } from '@ni/nimble-tokens/dist/icons/js';
|
|
2
|
+
import { IconSvg } from '@ni/nimble-components/dist/esm/icon-svg';
|
|
3
|
+
import { template } from '@ni/nimble-components/dist/esm/icon-svg/template';
|
|
4
|
+
import { DesignSystem } from '@ni/fast-foundation';
|
|
5
|
+
import { styles } from './styles';
|
|
6
|
+
/**
|
|
7
|
+
* Spright calipers icon for calibration work items
|
|
8
|
+
*/
|
|
9
|
+
export class IconWorkItemCalipers extends IconSvg {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(calipers16X16);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
const sprightIconWorkItemCalipers = IconWorkItemCalipers.compose({
|
|
15
|
+
baseName: 'icon-work-item-calipers',
|
|
16
|
+
template,
|
|
17
|
+
styles
|
|
18
|
+
});
|
|
19
|
+
DesignSystem.getOrCreate()
|
|
20
|
+
.withPrefix('spright')
|
|
21
|
+
.register(sprightIconWorkItemCalipers());
|
|
22
|
+
export const iconWorkItemCalipersTag = 'spright-icon-work-item-calipers';
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/icons/work-item-calipers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC;;GAEG;AACH,MAAM,OAAO,oBAAqB,SAAQ,OAAO;IAC7C;QACI,KAAK,CAAC,aAAa,CAAC,CAAC;IACzB,CAAC;CACJ;AAED,MAAM,2BAA2B,GAAG,oBAAoB,CAAC,OAAO,CAAC;IAC7D,QAAQ,EAAE,yBAAyB;IACnC,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,SAAS,CAAC;KACrB,QAAQ,CAAC,2BAA2B,EAAE,CAAC,CAAC;AAE7C,MAAM,CAAC,MAAM,uBAAuB,GAAG,iCAAiC,CAAC","sourcesContent":["import { calipers16X16 } from '@ni/nimble-tokens/dist/icons/js';\nimport { IconSvg } from '@ni/nimble-components/dist/esm/icon-svg';\nimport { template } from '@ni/nimble-components/dist/esm/icon-svg/template';\nimport { DesignSystem } from '@ni/fast-foundation';\nimport { styles } from './styles';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'spright-icon-work-item-calipers': IconWorkItemCalipers;\n }\n}\n\n/**\n * Spright calipers icon for calibration work items\n */\nexport class IconWorkItemCalipers extends IconSvg {\n public constructor() {\n super(calipers16X16);\n }\n}\n\nconst sprightIconWorkItemCalipers = IconWorkItemCalipers.compose({\n baseName: 'icon-work-item-calipers',\n template,\n styles\n});\n\nDesignSystem.getOrCreate()\n .withPrefix('spright')\n .register(sprightIconWorkItemCalipers());\n\nexport const iconWorkItemCalipersTag = 'spright-icon-work-item-calipers';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("@ni/fast-element").ElementStyles;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { css } from '@ni/fast-element';
|
|
2
|
+
import { calendarEventBorderCalibrationColor } from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';
|
|
3
|
+
import { styles as iconSvgStyles } from '@ni/nimble-components/dist/esm/icon-svg/styles';
|
|
4
|
+
export const styles = css `
|
|
5
|
+
${iconSvgStyles}
|
|
6
|
+
|
|
7
|
+
.icon svg {
|
|
8
|
+
fill: ${calendarEventBorderCalibrationColor};
|
|
9
|
+
}
|
|
10
|
+
`;
|
|
11
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/icons/work-item-calipers/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,mCAAmC,EAAE,MAAM,6DAA6D,CAAC;AAClH,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAEzF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,aAAa;;;gBAGH,mCAAmC;;CAElD,CAAC","sourcesContent":["import { css } from '@ni/fast-element';\nimport { calendarEventBorderCalibrationColor } from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';\nimport { styles as iconSvgStyles } from '@ni/nimble-components/dist/esm/icon-svg/styles';\n\nexport const styles = css`\n ${iconSvgStyles}\n\n .icon svg {\n fill: ${calendarEventBorderCalibrationColor};\n }\n`;\n"]}
|