@digital-realty/ix-wizard 1.0.24 → 1.0.25
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/ix-wizard.min.js +1 -0
- package/package.json +8 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__decorate}from"tslib";import{css,LitElement,nothing,html}from"lit";import{property}from"lit/decorators.js";const IxWizardStyles=css`.wizard-wrapper{display:flex;flex-direction:column;gap:20px;margin:0 25px}.wizard-header{display:flex;justify-content:center}.wizard-header .wizard-title{position:relative;width:140px;display:grid;grid-template-columns:24px 1fr 24px;-webkit-box-align:center;place-items:center;top:var(--ix-wizard-top,0)}.wizard-header .wizard-title md-icon{color:#d3d3d3}.wizard-header .wizard-title span{font-weight:700;font-style:normal;font-size:14px;letter-spacing:1.25px;text-transform:uppercase;color:#092241}`;class IxWizard extends LitElement{constructor(){super(...arguments),this.totalSteps=0,this.currentStep=0,this.hideStepCount=!1}static get styles(){return[IxWizardStyles]}firstUpdated(){var t;0===this.totalSteps&&(t=null==(t=null==(t=this.shadowRoot)?void 0:t.querySelector("slot"))?void 0:t.assignedElements(),this.totalSteps=(null==t?void 0:t.length)||0)}renderStepCount(){return 0===this.currentStep||this.hideStepCount?nothing:html`<div class="wizard-title"><md-icon>chevron_left</md-icon><span class="button-label">${this.currentStep} of ${this.totalSteps}</span><md-icon>chevron_right</md-icon></div>`}render(){return html`<div class="wizard-wrapper"><div class="wizard-header">${this.renderStepCount()}</div><div class="wizard-body"><slot></slot></div></div>`}}__decorate([property({type:Number})],IxWizard.prototype,"totalSteps",void 0),__decorate([property({type:Number})],IxWizard.prototype,"currentStep",void 0),__decorate([property({type:Boolean})],IxWizard.prototype,"hideStepCount",void 0),window.customElements.define("ix-wizard",IxWizard);
|
package/package.json
CHANGED
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
"description": "Webcomponent ix-wizard following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "interxion",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.25",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": "./dist/index.js",
|
|
12
12
|
"./ix-wizard.js": "./dist/ix-wizard.js",
|
|
13
|
+
"./ix-wizard.min.js": "./dist/ix-wizard.min.js",
|
|
13
14
|
"./ix-wizard-step.js": "./dist/ix-wizard-step.js",
|
|
14
15
|
"./IxWizard": "./dist/react/IxWizard.js",
|
|
15
16
|
"./IxWizardStep": "./dist/react/IxWizardStep.js"
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
"scripts": {
|
|
21
22
|
"analyze": "cem analyze --litelement",
|
|
22
23
|
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
|
|
23
|
-
"build": "tsc && npm run analyze -- --exclude dist",
|
|
24
|
+
"build": "tsc && npm run analyze -- --exclude dist && rollup -c",
|
|
24
25
|
"prepublish": "tsc && npm run analyze -- --exclude dist",
|
|
25
26
|
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
|
|
26
27
|
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"storybook:build": "tsc && npm run analyze -- --exclude dist && build-storybook"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"@digital-realty/ix-button": "^3.2.
|
|
34
|
+
"@digital-realty/ix-button": "^3.2.31",
|
|
34
35
|
"@lit/react": "^1.0.2",
|
|
35
36
|
"@material/web": "1.2.0",
|
|
36
37
|
"lit": "^2.0.2",
|
|
@@ -51,6 +52,9 @@
|
|
|
51
52
|
"husky": "^4.3.8",
|
|
52
53
|
"lint-staged": "^10.5.4",
|
|
53
54
|
"prettier": "^2.4.1",
|
|
55
|
+
"rollup-plugin-minify-html-literals": "^1.2.6",
|
|
56
|
+
"rollup-plugin-summary": "^2.0.0",
|
|
57
|
+
"rollup-plugin-uglify": "^6.0.4",
|
|
54
58
|
"tslib": "^2.3.1",
|
|
55
59
|
"typescript": "^4.5.2"
|
|
56
60
|
},
|
|
@@ -104,5 +108,5 @@
|
|
|
104
108
|
"README.md",
|
|
105
109
|
"LICENSE"
|
|
106
110
|
],
|
|
107
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "c7668fda980293ca038c0dd061ebe350fa88ee60"
|
|
108
112
|
}
|