@getflip/swirl-components 0.61.0 → 0.62.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/components.json +55 -5
- package/dist/cjs/swirl-console-layout.cjs.entry.js +1 -1
- package/dist/collection/components/swirl-console-layout/swirl-console-layout.js +11 -3
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-console-layout.js +1 -1
- package/dist/esm/swirl-console-layout.entry.js +1 -1
- package/dist/swirl-components/{p-5bf27fd2.entry.js → p-4820eae0.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-console-layout/swirl-console-layout.d.ts +9 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +1 -1
package/components.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2023-05-25T08:
|
|
2
|
+
"timestamp": "2023-05-25T08:49:59",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "3.0.0",
|
|
@@ -4033,7 +4033,32 @@
|
|
|
4033
4033
|
"encapsulation": "shadow",
|
|
4034
4034
|
"tag": "swirl-console-layout",
|
|
4035
4035
|
"docs": "",
|
|
4036
|
-
"docsTags": [
|
|
4036
|
+
"docsTags": [
|
|
4037
|
+
{
|
|
4038
|
+
"name": "slot",
|
|
4039
|
+
"text": "content - The main content"
|
|
4040
|
+
},
|
|
4041
|
+
{
|
|
4042
|
+
"name": "slot",
|
|
4043
|
+
"text": "content-header-tools - Button positioned next to the heading"
|
|
4044
|
+
},
|
|
4045
|
+
{
|
|
4046
|
+
"name": "slot",
|
|
4047
|
+
"text": "heading - The main content's heading (only rendered if \"heading\" prop is not set)."
|
|
4048
|
+
},
|
|
4049
|
+
{
|
|
4050
|
+
"name": "slot",
|
|
4051
|
+
"text": "navigation - The main navigation"
|
|
4052
|
+
},
|
|
4053
|
+
{
|
|
4054
|
+
"name": "slot",
|
|
4055
|
+
"text": "overlays - Overlays like dialogs, modals and toasts"
|
|
4056
|
+
},
|
|
4057
|
+
{
|
|
4058
|
+
"name": "slot",
|
|
4059
|
+
"text": "user - The signed in user information at the bottom of the sidebar"
|
|
4060
|
+
}
|
|
4061
|
+
],
|
|
4037
4062
|
"usage": {},
|
|
4038
4063
|
"props": [
|
|
4039
4064
|
{
|
|
@@ -4082,8 +4107,8 @@
|
|
|
4082
4107
|
"type": "string"
|
|
4083
4108
|
}
|
|
4084
4109
|
],
|
|
4085
|
-
"optional":
|
|
4086
|
-
"required":
|
|
4110
|
+
"optional": true,
|
|
4111
|
+
"required": false
|
|
4087
4112
|
},
|
|
4088
4113
|
{
|
|
4089
4114
|
"name": "helpButonLabel",
|
|
@@ -4283,7 +4308,32 @@
|
|
|
4283
4308
|
}
|
|
4284
4309
|
],
|
|
4285
4310
|
"styles": [],
|
|
4286
|
-
"slots": [
|
|
4311
|
+
"slots": [
|
|
4312
|
+
{
|
|
4313
|
+
"name": "content",
|
|
4314
|
+
"docs": "The main content"
|
|
4315
|
+
},
|
|
4316
|
+
{
|
|
4317
|
+
"name": "content-header-tools",
|
|
4318
|
+
"docs": "Button positioned next to the heading"
|
|
4319
|
+
},
|
|
4320
|
+
{
|
|
4321
|
+
"name": "heading",
|
|
4322
|
+
"docs": "The main content's heading (only rendered if \"heading\" prop is not set)."
|
|
4323
|
+
},
|
|
4324
|
+
{
|
|
4325
|
+
"name": "navigation",
|
|
4326
|
+
"docs": "The main navigation"
|
|
4327
|
+
},
|
|
4328
|
+
{
|
|
4329
|
+
"name": "overlays",
|
|
4330
|
+
"docs": "Overlays like dialogs, modals and toasts"
|
|
4331
|
+
},
|
|
4332
|
+
{
|
|
4333
|
+
"name": "user",
|
|
4334
|
+
"docs": "The signed in user information at the bottom of the sidebar"
|
|
4335
|
+
}
|
|
4336
|
+
],
|
|
4287
4337
|
"parts": [],
|
|
4288
4338
|
"dependents": [],
|
|
4289
4339
|
"dependencies": [
|
|
@@ -122,7 +122,7 @@ const SwirlConsoleLayout = class {
|
|
|
122
122
|
? "<swirl-icon-close></swirl-icon-close>"
|
|
123
123
|
: "<swirl-icon-menu></swirl-icon-menu>", label: this.sidebarActive
|
|
124
124
|
? this.hideNavigationButtonLabel
|
|
125
|
-
: this.showNavigationButtonLabel, onClick: this.onMobileNavigationToggleClick })), index.h("div", { class: "console-layout__app-name" }, this.appName && (index.h("swirl-heading", { as: "h1", headingId: "app-name", level: 4, text: this.appName }))), this.showHelpButton && (index.h("swirl-button", { class: "console-layout__help-button", hideLabel: true, icon: "<swirl-icon-help></swirl-icon-help>", label: this.helpButonLabel, onClick: this.onHelpButtonClick }))), index.h("section", { "aria-labelledby": "heading", class: "console-layout__content" }, index.h("header", { class: "console-layout__content-header" }, this.showBackButton && (index.h("swirl-button", { class: "console-layout__back-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backButonLabel, onClick: this.onBackButtonClick })), index.h("div", { class: "console-layout__heading-container" }, index.h("swirl-heading", { as: "h2", class: "console-layout__heading", headingId: "heading", level: 1, text: this.heading }), this.subheading && (index.h("swirl-text", { class: "console-layout__subheading", color: "subdued" }, this.subheading))), index.h("div", { class: "console-layout__content-header-tools" }, index.h("slot", { name: "content-header-tools" }))), index.h("div", { class: "console-layout__integration" }, index.h("slot", { name: "content" }))), index.h("div", { class: "console-layout__overlays" }, index.h("slot", { name: "overlays" }))))));
|
|
125
|
+
: this.showNavigationButtonLabel, onClick: this.onMobileNavigationToggleClick })), index.h("div", { class: "console-layout__app-name" }, this.appName && (index.h("swirl-heading", { as: "h1", headingId: "app-name", level: 4, text: this.appName }))), this.showHelpButton && (index.h("swirl-button", { class: "console-layout__help-button", hideLabel: true, icon: "<swirl-icon-help></swirl-icon-help>", label: this.helpButonLabel, onClick: this.onHelpButtonClick }))), index.h("section", { "aria-labelledby": "heading", class: "console-layout__content" }, index.h("header", { class: "console-layout__content-header" }, this.showBackButton && (index.h("swirl-button", { class: "console-layout__back-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backButonLabel, onClick: this.onBackButtonClick })), Boolean(this.heading) && (index.h("div", { class: "console-layout__heading-container" }, index.h("swirl-heading", { as: "h2", class: "console-layout__heading", headingId: "heading", level: 1, text: this.heading }), this.subheading && (index.h("swirl-text", { class: "console-layout__subheading", color: "subdued" }, this.subheading)))), !Boolean(this.heading) && (index.h("div", { class: "console-layout__heading-container" }, index.h("slot", { name: "heading" }))), index.h("div", { class: "console-layout__content-header-tools" }, index.h("slot", { name: "content-header-tools" }))), index.h("div", { class: "console-layout__integration" }, index.h("slot", { name: "content" }))), index.h("div", { class: "console-layout__overlays" }, index.h("slot", { name: "overlays" }))))));
|
|
126
126
|
}
|
|
127
127
|
get el() { return index.getElement(this); }
|
|
128
128
|
};
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
import { isMobileViewport } from "../../utils";
|
|
4
|
+
/**
|
|
5
|
+
* @slot content - The main content
|
|
6
|
+
* @slot content-header-tools - Button positioned next to the heading
|
|
7
|
+
* @slot heading - The main content's heading (only rendered if "heading" prop is not set).
|
|
8
|
+
* @slot navigation - The main navigation
|
|
9
|
+
* @slot overlays - Overlays like dialogs, modals and toasts
|
|
10
|
+
* @slot user - The signed in user information at the bottom of the sidebar
|
|
11
|
+
*/
|
|
4
12
|
export class SwirlConsoleLayout {
|
|
5
13
|
constructor() {
|
|
6
14
|
this.onBackButtonClick = (event) => {
|
|
@@ -112,7 +120,7 @@ export class SwirlConsoleLayout {
|
|
|
112
120
|
? "<swirl-icon-close></swirl-icon-close>"
|
|
113
121
|
: "<swirl-icon-menu></swirl-icon-menu>", label: this.sidebarActive
|
|
114
122
|
? this.hideNavigationButtonLabel
|
|
115
|
-
: this.showNavigationButtonLabel, onClick: this.onMobileNavigationToggleClick })), h("div", { class: "console-layout__app-name" }, this.appName && (h("swirl-heading", { as: "h1", headingId: "app-name", level: 4, text: this.appName }))), this.showHelpButton && (h("swirl-button", { class: "console-layout__help-button", hideLabel: true, icon: "<swirl-icon-help></swirl-icon-help>", label: this.helpButonLabel, onClick: this.onHelpButtonClick }))), h("section", { "aria-labelledby": "heading", class: "console-layout__content" }, h("header", { class: "console-layout__content-header" }, this.showBackButton && (h("swirl-button", { class: "console-layout__back-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backButonLabel, onClick: this.onBackButtonClick })), h("div", { class: "console-layout__heading-container" }, h("swirl-heading", { as: "h2", class: "console-layout__heading", headingId: "heading", level: 1, text: this.heading }), this.subheading && (h("swirl-text", { class: "console-layout__subheading", color: "subdued" }, this.subheading))), h("div", { class: "console-layout__content-header-tools" }, h("slot", { name: "content-header-tools" }))), h("div", { class: "console-layout__integration" }, h("slot", { name: "content" }))), h("div", { class: "console-layout__overlays" }, h("slot", { name: "overlays" }))))));
|
|
123
|
+
: this.showNavigationButtonLabel, onClick: this.onMobileNavigationToggleClick })), h("div", { class: "console-layout__app-name" }, this.appName && (h("swirl-heading", { as: "h1", headingId: "app-name", level: 4, text: this.appName }))), this.showHelpButton && (h("swirl-button", { class: "console-layout__help-button", hideLabel: true, icon: "<swirl-icon-help></swirl-icon-help>", label: this.helpButonLabel, onClick: this.onHelpButtonClick }))), h("section", { "aria-labelledby": "heading", class: "console-layout__content" }, h("header", { class: "console-layout__content-header" }, this.showBackButton && (h("swirl-button", { class: "console-layout__back-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backButonLabel, onClick: this.onBackButtonClick })), Boolean(this.heading) && (h("div", { class: "console-layout__heading-container" }, h("swirl-heading", { as: "h2", class: "console-layout__heading", headingId: "heading", level: 1, text: this.heading }), this.subheading && (h("swirl-text", { class: "console-layout__subheading", color: "subdued" }, this.subheading)))), !Boolean(this.heading) && (h("div", { class: "console-layout__heading-container" }, h("slot", { name: "heading" }))), h("div", { class: "console-layout__content-header-tools" }, h("slot", { name: "content-header-tools" }))), h("div", { class: "console-layout__integration" }, h("slot", { name: "content" }))), h("div", { class: "console-layout__overlays" }, h("slot", { name: "overlays" }))))));
|
|
116
124
|
}
|
|
117
125
|
static get is() { return "swirl-console-layout"; }
|
|
118
126
|
static get encapsulation() { return "shadow"; }
|
|
@@ -171,8 +179,8 @@ export class SwirlConsoleLayout {
|
|
|
171
179
|
"resolved": "string",
|
|
172
180
|
"references": {}
|
|
173
181
|
},
|
|
174
|
-
"required":
|
|
175
|
-
"optional":
|
|
182
|
+
"required": false,
|
|
183
|
+
"optional": true,
|
|
176
184
|
"docs": {
|
|
177
185
|
"tags": [],
|
|
178
186
|
"text": ""
|