@ni/spright-components 6.3.1 → 6.3.2
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 +117 -155
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +4041 -4042
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/chat/conversation/template.js +0 -3
- package/dist/esm/chat/conversation/template.js.map +1 -1
- package/dist/esm/chat/input/template.js +0 -3
- package/dist/esm/chat/input/template.js.map +1 -1
- package/dist/esm/chat/message/template.js +0 -3
- package/dist/esm/chat/message/template.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { html, slotted } from '@ni/fast-element';
|
|
2
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
3
|
-
// prettier-ignore
|
|
4
2
|
export const template = html `
|
|
5
3
|
<div class="messages"><slot></slot></div>
|
|
6
4
|
<div class="input ${x => (x.inputEmpty ? 'input-empty' : '')}">
|
|
@@ -8,5 +6,4 @@ export const template = html `
|
|
|
8
6
|
</slot>
|
|
9
7
|
</div>
|
|
10
8
|
`;
|
|
11
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
12
9
|
//# sourceMappingURL=template.js.map
|
|
@@ -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,
|
|
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;;oBAE1B,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=\"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"]}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { html, ref } from '@ni/fast-element';
|
|
2
2
|
import { buttonTag } from '@ni/nimble-components/dist/esm/button';
|
|
3
3
|
import { iconPaperPlaneTag } from '@ni/nimble-components/dist/esm/icons/paper-plane';
|
|
4
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
5
|
-
// prettier-ignore
|
|
6
4
|
export const template = html `
|
|
7
5
|
<div class="container">
|
|
8
6
|
<textarea
|
|
@@ -27,5 +25,4 @@ export const template = html `
|
|
|
27
25
|
<${iconPaperPlaneTag} slot="start"><${iconPaperPlaneTag}/>
|
|
28
26
|
</${buttonTag}>
|
|
29
27
|
</div>`;
|
|
30
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
31
28
|
//# sourceMappingURL=template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/chat/input/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AAGrF,
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/chat/input/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AAGrF,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAW;;;UAG7B,GAAG,CAAC,UAAU,CAAC;uBACF,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;;oBAErB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;oBACf,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,KAAsB,CAAC;kBAC9D,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,oBAAoB,EAAE;;OAExC,SAAS;;;;oBAII,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,iBAAiB;iBAC3B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,sBAAsB,EAAE;oBAC5B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;gBACnB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe;;;UAG5B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe;WACrB,iBAAiB,kBAAkB,iBAAiB;QACvD,SAAS;OACV,CAAC","sourcesContent":["import { html, ref } from '@ni/fast-element';\nimport { buttonTag } from '@ni/nimble-components/dist/esm/button';\nimport { iconPaperPlaneTag } from '@ni/nimble-components/dist/esm/icons/paper-plane';\nimport type { ChatInput } from '.';\n\nexport const template = html<ChatInput>`\n<div class=\"container\">\n <textarea\n ${ref('textArea')}\n placeholder=\"${x => x.placeholder}\"\n rows=\"1\"\n tabindex=\"${x => x.tabIndex}\"\n @keydown=\"${(x, c) => x.textAreaKeydownHandler(c.event as KeyboardEvent)}\"\n @input=\"${x => x.textAreaInputHandler()}\"\n ></textarea>\n <${buttonTag}\n class=\"send-button\"\n appearance=\"block\"\n appearance-variant=\"accent\"\n ?disabled=${x => x.disableSendButton}\n @click=${x => x.sendButtonClickHandler()}\n tabindex=\"${x => x.tabIndex}\"\n title=${x => x.sendButtonLabel}\n content-hidden\n >\n ${x => x.sendButtonLabel}\n <${iconPaperPlaneTag} slot=\"start\"><${iconPaperPlaneTag}/>\n </${buttonTag}> \n</div>`;\n"]}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { html, slotted, ViewTemplate } from '@ni/fast-element';
|
|
2
2
|
import { startSlotTemplate, endSlotTemplate } from '@ni/fast-foundation';
|
|
3
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
4
|
-
// prettier-ignore
|
|
5
3
|
export const template = (context, definition) => html `
|
|
6
4
|
<div class="container">
|
|
7
5
|
${startSlotTemplate(context, definition)}
|
|
@@ -17,5 +15,4 @@ export const template = (context, definition) => html `
|
|
|
17
15
|
${endSlotTemplate(context, definition)}
|
|
18
16
|
</div>
|
|
19
17
|
`;
|
|
20
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
21
18
|
//# sourceMappingURL=template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/chat/message/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACH,iBAAiB,EACjB,eAAe,EAElB,MAAM,qBAAqB,CAAC;AAG7B,
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/chat/message/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACH,iBAAiB,EACjB,eAAe,EAElB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,CAAC,MAAM,QAAQ,GAGjB,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,IAAI,CAAa;;UAEpC,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC;;;;yCAIP,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC;;;kBAGzE,OAAO,CAAC,EAAE,QAAQ,EAAE,8BAA8B,EAAE,CAAC;;;UAG7D,eAAe,CAAC,OAAO,EAAE,UAAU,CAAC;;CAE7C,CAAC","sourcesContent":["import { html, slotted, ViewTemplate } from '@ni/fast-element';\nimport {\n startSlotTemplate,\n endSlotTemplate,\n type FoundationElementTemplate\n} from '@ni/fast-foundation';\nimport type { ChatMessage, ChatMessageOptions } from '.';\n\nexport const template: FoundationElementTemplate<\nViewTemplate<ChatMessage>,\nChatMessageOptions\n> = (context, definition) => html<ChatMessage>`\n <div class=\"container\">\n ${startSlotTemplate(context, definition)}\n <section class=\"message-content\">\n <slot></slot>\n </section>\n <section class=\"footer-actions ${x => (x.footerActionsIsEmpty ? '' : 'has-content')}\">\n <slot \n name=\"footer-actions\"\n ${slotted({ property: 'slottedFooterActionsElements' })}\n ></slot>\n </section>\n ${endSlotTemplate(context, definition)}\n </div>\n`;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/spright-components",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.2",
|
|
4
4
|
"description": "NI Spright Components",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run build-components && npm run bundle-components",
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"@ni/fast-element": "^10.0.0",
|
|
52
52
|
"@ni/fast-foundation": "^10.1.2",
|
|
53
53
|
"@ni/fast-web-utilities": "^10.0.0",
|
|
54
|
-
"@ni/nimble-components": "^34.3.
|
|
54
|
+
"@ni/nimble-components": "^34.3.2",
|
|
55
55
|
"tslib": "^2.2.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@ni-private/jasmine-extensions": "^0.0.1",
|
|
59
|
-
"@ni/jasmine-parameterized": "^1.0.
|
|
59
|
+
"@ni/jasmine-parameterized": "^1.0.2",
|
|
60
60
|
"@ni-private/eslint-config-nimble": "*",
|
|
61
61
|
"@rollup/plugin-commonjs": "^28.0.0",
|
|
62
62
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"karma-spec-reporter": "^0.0.36",
|
|
77
77
|
"karma-webkit-launcher": "^2.6.0",
|
|
78
78
|
"karma-webpack": "^5.0.0",
|
|
79
|
-
"playwright": "1.
|
|
79
|
+
"playwright": "1.54.1",
|
|
80
80
|
"prettier-eslint": "^16.3.0",
|
|
81
81
|
"prettier-eslint-cli": "^8.0.1",
|
|
82
82
|
"rollup": "^4.12.0",
|