@uxland/primary-shell 1.0.17 → 1.0.19
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/index.d.ts +1 -0
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +4 -4
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +7 -6
- package/src/UI/shared-components/dss-container/dss-container.ts +7 -7
- package/src/UI/shared-components/dss-container/styles.scss +3 -1
- package/src/UI/shared-components/primaria-interaction/components/dialog-component.ts +1 -0
- package/src/UI/shared-components/primaria-interaction/confirm.ts +4 -0
- package/src/index.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxland/primary-shell",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Framework Integració modular",
|
|
5
5
|
"author": "UXLand <dev@uxland.es>",
|
|
6
6
|
"homepage": "https://github.com/uxland/harmonix/tree/app#readme",
|
|
@@ -25,20 +25,21 @@
|
|
|
25
25
|
"url": "https://github.com/uxland/harmonix/issues"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
+
"lit": "^3.1.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"sass": "^1.62.1",
|
|
28
32
|
"@uxland/harmonix": "^1.0.0",
|
|
29
33
|
"@uxland/regions": "^1.0.0",
|
|
34
|
+
"uxl-quill": "^1.0.1",
|
|
30
35
|
"@uxland/utilities": "^1.0.5",
|
|
31
36
|
"@uxland/localization": "^1.0.3",
|
|
32
|
-
"@salut/design-system-salut": "1.6.0",
|
|
33
|
-
"uxl-quill": "^1.0.1",
|
|
34
37
|
"@uxland/lit-utilities": "^1.0.0",
|
|
35
38
|
"mediatr-ts": "^1.2.1",
|
|
36
39
|
"tslib": "^2.3.0",
|
|
37
|
-
"lit": "^3.1.0",
|
|
38
40
|
"vite": "^5.2.8",
|
|
39
|
-
"
|
|
41
|
+
"@salut/design-system-salut": "1.6.0"
|
|
40
42
|
},
|
|
41
|
-
"devDependencies": {},
|
|
42
43
|
"scripts": {
|
|
43
44
|
"serve": "vite",
|
|
44
45
|
"start": "ng serve --host 0.0.0.0",
|
|
@@ -15,13 +15,13 @@ export class DssContainer extends LitElement {
|
|
|
15
15
|
const slot = this.shadowRoot?.querySelector("slot");
|
|
16
16
|
const assignedNodes = slot?.assignedNodes({ flatten: false });
|
|
17
17
|
|
|
18
|
-
assignedNodes.forEach((node) => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
});
|
|
18
|
+
// assignedNodes.forEach((node) => {
|
|
19
|
+
// if (node.nodeType === Node.ELEMENT_NODE) {
|
|
20
|
+
// console.log((node as HTMLElement).outerHTML);
|
|
21
|
+
// } else if (node.nodeType === Node.TEXT_NODE) {
|
|
22
|
+
// console.log(node.textContent);
|
|
23
|
+
// }
|
|
24
|
+
// });
|
|
25
25
|
|
|
26
26
|
render(assignedNodes[0], this.shadowRoot.querySelector("#container"));
|
|
27
27
|
}
|
|
@@ -25,6 +25,7 @@ const renderMessage = (options: ConfirmOptions) =>
|
|
|
25
25
|
function renderCustomContent(options: CustomConfirmOptions, props: DialogComponent) {
|
|
26
26
|
if (options.componentConstructor) {
|
|
27
27
|
const component = new options.componentConstructor() as LitElement;
|
|
28
|
+
component.setAttribute("id", "__custom-element__");
|
|
28
29
|
component.addEventListener("closed", props.componentCloseRequest.bind(props));
|
|
29
30
|
return html`${component}`;
|
|
30
31
|
}
|
|
@@ -14,6 +14,10 @@ export const doConfirm = async (
|
|
|
14
14
|
const result = component.updateComplete;
|
|
15
15
|
|
|
16
16
|
result.then(() => {
|
|
17
|
+
if (options.componentConstructor) {
|
|
18
|
+
const customComponent = component.shadowRoot.querySelector(`#__custom-element__`);
|
|
19
|
+
customComponent.model = options.model;
|
|
20
|
+
}
|
|
17
21
|
component.addEventListener("closed", closeComponent);
|
|
18
22
|
component.options && component.show();
|
|
19
23
|
});
|
package/src/index.ts
CHANGED
|
@@ -6,3 +6,7 @@ export * from "./api/broker/primaria-broker";
|
|
|
6
6
|
import "./UI/index";
|
|
7
7
|
export { PrimariaMenuItem } from "./UI/shared-components/primaria-menu-item/primaria-menu-item";
|
|
8
8
|
export { confirmMixin } from "./UI/shared-components/primaria-interaction";
|
|
9
|
+
export type {
|
|
10
|
+
IConfirmMixin,
|
|
11
|
+
CustomConfirmOptions,
|
|
12
|
+
} from "./UI/shared-components/primaria-interaction";
|