@dnncommunity/dnn-elements 0.15.1 → 0.15.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/cjs/dnn-button_17.cjs.entry.js +3 -3
- package/dist/cjs/dnn-button_17.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn.cjs.js +2 -2
- package/dist/cjs/dnn.cjs.js.map +1 -1
- package/dist/cjs/{index-514ef6dd.js → index-81382452.js} +404 -239
- package/dist/cjs/index-81382452.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/dnn-button/dnn-button.js +195 -192
- package/dist/collection/components/dnn-button/dnn-button.stories.js +1 -1
- package/dist/collection/components/dnn-checkbox/dnn-checkbox.js +85 -99
- package/dist/collection/components/dnn-checkbox/dnn-checkbox.stories.js +1 -1
- package/dist/collection/components/dnn-chevron/dnn-chevron.js +92 -87
- package/dist/collection/components/dnn-chevron/dnn-chevron.stories.js +1 -1
- package/dist/collection/components/dnn-collapsible/dnn-collapsible.js +102 -90
- package/dist/collection/components/dnn-collapsible/dnn-collapsible.stories.js +1 -1
- package/dist/collection/components/dnn-color-picker/dnn-color-picker.js +105 -141
- package/dist/collection/components/dnn-color-picker/dnn-color-picker.stories.js +1 -1
- package/dist/collection/components/dnn-dropzone/dnn-dropzone.js +122 -137
- package/dist/collection/components/dnn-dropzone/dnn-dropzone.stories.js +1 -1
- package/dist/collection/components/dnn-image-cropper/CornerType.js +1 -1
- package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.js +129 -133
- package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.stories.js +1 -1
- package/dist/collection/components/dnn-modal/dnn-modal.css +5 -0
- package/dist/collection/components/dnn-modal/dnn-modal.js +136 -133
- package/dist/collection/components/dnn-modal/dnn-modal.js.map +1 -1
- package/dist/collection/components/dnn-modal/dnn-modal.stories.js +1 -1
- package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.js +164 -223
- package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.stories.js +1 -1
- package/dist/collection/components/dnn-permissions-grid/localization-interface.js +1 -1
- package/dist/collection/components/dnn-permissions-grid/permissions-interface.js +1 -1
- package/dist/collection/components/dnn-permissions-grid/role-group-interface.js +1 -1
- package/dist/collection/components/dnn-permissions-grid/role-interface.js +1 -1
- package/dist/collection/components/dnn-permissions-grid/searched-user-interface.js +1 -1
- package/dist/collection/components/dnn-searchbox/dnn-searchbox.js +101 -94
- package/dist/collection/components/dnn-searchbox/dnn-searchbox.stories.js +1 -1
- package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.js +55 -54
- package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.stories.js +1 -1
- package/dist/collection/components/dnn-tab/dnn-tab.js +69 -59
- package/dist/collection/components/dnn-tab/dnn-tab.stories.js +1 -1
- package/dist/collection/components/dnn-tabs/dnn-tabs.js +19 -16
- package/dist/collection/components/dnn-tabs/dnn-tabs.stories.js +1 -1
- package/dist/collection/components/dnn-toggle/dnn-toggle.js +83 -75
- package/dist/collection/components/dnn-toggle/dnn-toggle.stories.js +1 -1
- package/dist/collection/components/dnn-toggle/toggle-interface.js +1 -1
- package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.js +79 -77
- package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.stories.js +1 -1
- package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.js +20 -24
- package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.stories.js +1 -1
- package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.js +117 -111
- package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.stories.js +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/utilities/colorInfo.js +1 -1
- package/dist/collection/utilities/debounce.js +1 -1
- package/dist/collection/utilities/dnnServicesFramework.js +1 -1
- package/dist/collection/utilities/mouseUtilities.js +1 -1
- package/dist/dnn/dnn.esm.js +1 -1
- package/dist/dnn/dnn.esm.js.map +1 -1
- package/dist/dnn/dnn.js +2 -1
- package/dist/dnn/p-21f18e37.system.js +3 -0
- package/dist/dnn/p-21f18e37.system.js.map +1 -0
- package/dist/dnn/p-2a79ad5b.system.entry.js +11 -0
- package/dist/dnn/p-2a79ad5b.system.entry.js.map +1 -0
- package/dist/dnn/{p-5bcf3629.system.js → p-52139080.system.js} +2 -2
- package/dist/dnn/{p-5bcf3629.system.js.map → p-52139080.system.js.map} +1 -1
- package/dist/dnn/{p-909f2db9.entry.js → p-6cc227ab.entry.js} +3 -3
- package/dist/dnn/p-6cc227ab.entry.js.map +1 -0
- package/dist/dnn/p-97d752ed.js +3 -0
- package/dist/dnn/p-97d752ed.js.map +1 -0
- package/dist/esm/dnn-button_17.entry.js +3 -3
- package/dist/esm/dnn-button_17.entry.js.map +1 -1
- package/dist/esm/dnn.js +2 -2
- package/dist/esm/dnn.js.map +1 -1
- package/dist/esm/{index-59e0950f.js → index-e9a3fcad.js} +404 -239
- package/dist/esm/index-e9a3fcad.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm-es5/dnn-button_17.entry.js +2 -2
- package/dist/esm-es5/dnn-button_17.entry.js.map +1 -1
- package/dist/esm-es5/dnn.js +1 -1
- package/dist/esm-es5/dnn.js.map +1 -1
- package/dist/esm-es5/index-e9a3fcad.js +3 -0
- package/dist/esm-es5/index-e9a3fcad.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/types/components.d.ts +73 -17
- package/dist/types/stencil-public-runtime.d.ts +15 -4
- package/loader/package.json +1 -0
- package/package.json +14 -14
- package/dist/cjs/index-514ef6dd.js.map +0 -1
- package/dist/dnn/p-3155c8a8.system.entry.js +0 -11
- package/dist/dnn/p-3155c8a8.system.entry.js.map +0 -1
- package/dist/dnn/p-7ffdbed1.js +0 -2
- package/dist/dnn/p-7ffdbed1.js.map +0 -1
- package/dist/dnn/p-909f2db9.entry.js.map +0 -1
- package/dist/dnn/p-b8064287.system.js +0 -2
- package/dist/dnn/p-b8064287.system.js.map +0 -1
- package/dist/esm/index-59e0950f.js.map +0 -1
- package/dist/esm-es5/index-59e0950f.js +0 -2
- package/dist/esm-es5/index-59e0950f.js.map +0 -1
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
-
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
10
|
};
|
|
7
|
-
import {
|
|
11
|
+
import { Host, h } from '@stencil/core';
|
|
8
12
|
import { Debounce } from '../../utilities/debounce';
|
|
9
13
|
export class DnnSearchbox {
|
|
10
14
|
constructor() {
|
|
@@ -34,104 +38,107 @@ export class DnnSearchbox {
|
|
|
34
38
|
this.handleQueryChanged();
|
|
35
39
|
}
|
|
36
40
|
render() {
|
|
37
|
-
return (h(Host, null,
|
|
38
|
-
h("
|
|
39
|
-
|
|
40
|
-
h("
|
|
41
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" },
|
|
42
|
-
h("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
43
|
-
h("path", { d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z" })))
|
|
44
|
-
:
|
|
45
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" },
|
|
46
|
-
h("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
47
|
-
h("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" }))));
|
|
41
|
+
return (h(Host, null, h("input", { type: "text", value: this.query, placeholder: this.placeholder, onInput: e => this.query = e.target.value }), this.query !== "" ?
|
|
42
|
+
h("button", { class: "svg clear", onClick: () => this.query = "" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, h("path", { d: "M0 0h24v24H0z", fill: "none" }), h("path", { d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z" })))
|
|
43
|
+
:
|
|
44
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, h("path", { d: "M0 0h24v24H0z", fill: "none" }), h("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" }))));
|
|
48
45
|
}
|
|
49
46
|
static get is() { return "dnn-searchbox"; }
|
|
50
47
|
static get encapsulation() { return "shadow"; }
|
|
51
|
-
static get originalStyleUrls() {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"original": "boolean",
|
|
81
|
-
"resolved": "boolean",
|
|
82
|
-
"references": {}
|
|
83
|
-
},
|
|
84
|
-
"required": false,
|
|
85
|
-
"optional": false,
|
|
86
|
-
"docs": {
|
|
87
|
-
"tags": [],
|
|
88
|
-
"text": "Debounces the queryChanged by 500ms."
|
|
89
|
-
},
|
|
90
|
-
"attribute": "debounced",
|
|
91
|
-
"reflect": false,
|
|
92
|
-
"defaultValue": "true"
|
|
93
|
-
},
|
|
94
|
-
"query": {
|
|
95
|
-
"type": "string",
|
|
96
|
-
"mutable": true,
|
|
97
|
-
"complexType": {
|
|
98
|
-
"original": "string",
|
|
99
|
-
"resolved": "string",
|
|
100
|
-
"references": {}
|
|
101
|
-
},
|
|
102
|
-
"required": false,
|
|
103
|
-
"optional": false,
|
|
104
|
-
"docs": {
|
|
105
|
-
"tags": [],
|
|
106
|
-
"text": "Sets the query"
|
|
48
|
+
static get originalStyleUrls() {
|
|
49
|
+
return {
|
|
50
|
+
"$": ["dnn-searchbox.scss"]
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
static get styleUrls() {
|
|
54
|
+
return {
|
|
55
|
+
"$": ["dnn-searchbox.css"]
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
static get properties() {
|
|
59
|
+
return {
|
|
60
|
+
"placeholder": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"mutable": false,
|
|
63
|
+
"complexType": {
|
|
64
|
+
"original": "string",
|
|
65
|
+
"resolved": "string",
|
|
66
|
+
"references": {}
|
|
67
|
+
},
|
|
68
|
+
"required": false,
|
|
69
|
+
"optional": true,
|
|
70
|
+
"docs": {
|
|
71
|
+
"tags": [],
|
|
72
|
+
"text": "Sets the field placeholder text."
|
|
73
|
+
},
|
|
74
|
+
"attribute": "placeholder",
|
|
75
|
+
"reflect": false,
|
|
76
|
+
"defaultValue": "\"\""
|
|
107
77
|
},
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
78
|
+
"debounced": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"mutable": false,
|
|
81
|
+
"complexType": {
|
|
82
|
+
"original": "boolean",
|
|
83
|
+
"resolved": "boolean",
|
|
84
|
+
"references": {}
|
|
85
|
+
},
|
|
86
|
+
"required": false,
|
|
87
|
+
"optional": false,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": "Debounces the queryChanged by 500ms."
|
|
91
|
+
},
|
|
92
|
+
"attribute": "debounced",
|
|
93
|
+
"reflect": false,
|
|
94
|
+
"defaultValue": "true"
|
|
122
95
|
},
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
96
|
+
"query": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"mutable": true,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "string",
|
|
101
|
+
"resolved": "string",
|
|
102
|
+
"references": {}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": false,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": "Sets the query"
|
|
109
|
+
},
|
|
110
|
+
"attribute": "query",
|
|
111
|
+
"reflect": false,
|
|
112
|
+
"defaultValue": "\"\""
|
|
127
113
|
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
static get events() {
|
|
117
|
+
return [{
|
|
118
|
+
"method": "queryChanged",
|
|
119
|
+
"name": "queryChanged",
|
|
120
|
+
"bubbles": true,
|
|
121
|
+
"cancelable": true,
|
|
122
|
+
"composed": true,
|
|
123
|
+
"docs": {
|
|
124
|
+
"tags": [],
|
|
125
|
+
"text": "Fires up each time the search query changes.\nThe data passed is the new query."
|
|
126
|
+
},
|
|
127
|
+
"complexType": {
|
|
128
|
+
"original": "string",
|
|
129
|
+
"resolved": "string",
|
|
130
|
+
"references": {}
|
|
131
|
+
}
|
|
132
|
+
}];
|
|
133
|
+
}
|
|
134
|
+
static get watchers() {
|
|
135
|
+
return [{
|
|
136
|
+
"propName": "query",
|
|
137
|
+
"methodName": "fireQueryChanged"
|
|
138
|
+
}];
|
|
139
|
+
}
|
|
133
140
|
}
|
|
134
141
|
__decorate([
|
|
135
142
|
Debounce(500)
|
|
136
143
|
], DnnSearchbox.prototype, "debouncedHandleQueryChanged", null);
|
|
137
|
-
//# sourceMappingURL=dnn-searchbox.js.map
|
|
144
|
+
//# sourceMappingURL=dnn-searchbox.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class DnnSortIcon {
|
|
3
3
|
constructor() {
|
|
4
4
|
/** Defines the current sort direction */
|
|
@@ -21,61 +21,62 @@ export class DnnSortIcon {
|
|
|
21
21
|
this.sortChanged.emit(this.sortDirection);
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, null,
|
|
25
|
-
h("
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
h("path", { d: "M 0 7 H 12 L 6 0 Z M 0 9 H 12 L 6 16 Z" })),
|
|
29
|
-
this.sortDirection == "asc" &&
|
|
30
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 16" },
|
|
31
|
-
h("path", { d: "M 0 7 H 12 L 6 0 Z" })),
|
|
32
|
-
this.sortDirection == "desc" &&
|
|
33
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 16" },
|
|
34
|
-
h("path", { d: "M 0 9 H 12 L 6 16 Z" })))));
|
|
24
|
+
return (h(Host, null, h("button", { class: { "active": this.sortDirection != "none" }, onClick: () => this.changeSort() }, this.sortDirection == "none" &&
|
|
25
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 16" }, h("path", { d: "M 0 7 H 12 L 6 0 Z M 0 9 H 12 L 6 16 Z" })), this.sortDirection == "asc" &&
|
|
26
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 16" }, h("path", { d: "M 0 7 H 12 L 6 0 Z" })), this.sortDirection == "desc" &&
|
|
27
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 16" }, h("path", { d: "M 0 9 H 12 L 6 16 Z" })))));
|
|
35
28
|
}
|
|
36
29
|
static get is() { return "dnn-sort-icon"; }
|
|
37
30
|
static get encapsulation() { return "shadow"; }
|
|
38
|
-
static get originalStyleUrls() {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"bubbles": true,
|
|
68
|
-
"cancelable": true,
|
|
69
|
-
"composed": true,
|
|
70
|
-
"docs": {
|
|
71
|
-
"tags": [],
|
|
72
|
-
"text": "Emitted when the sort is changed."
|
|
73
|
-
},
|
|
74
|
-
"complexType": {
|
|
75
|
-
"original": "\"asc\"|\"desc\"|\"none\"",
|
|
76
|
-
"resolved": "\"asc\" | \"desc\" | \"none\"",
|
|
77
|
-
"references": {}
|
|
31
|
+
static get originalStyleUrls() {
|
|
32
|
+
return {
|
|
33
|
+
"$": ["dnn-sort-icon.scss"]
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
static get styleUrls() {
|
|
37
|
+
return {
|
|
38
|
+
"$": ["dnn-sort-icon.css"]
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
static get properties() {
|
|
42
|
+
return {
|
|
43
|
+
"sortDirection": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"mutable": false,
|
|
46
|
+
"complexType": {
|
|
47
|
+
"original": "\"asc\" | \"desc\" | \"none\"",
|
|
48
|
+
"resolved": "\"asc\" | \"desc\" | \"none\"",
|
|
49
|
+
"references": {}
|
|
50
|
+
},
|
|
51
|
+
"required": false,
|
|
52
|
+
"optional": false,
|
|
53
|
+
"docs": {
|
|
54
|
+
"tags": [],
|
|
55
|
+
"text": "Defines the current sort direction"
|
|
56
|
+
},
|
|
57
|
+
"attribute": "sort-direction",
|
|
58
|
+
"reflect": false,
|
|
59
|
+
"defaultValue": "\"none\""
|
|
78
60
|
}
|
|
79
|
-
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
static get events() {
|
|
64
|
+
return [{
|
|
65
|
+
"method": "sortChanged",
|
|
66
|
+
"name": "sortChanged",
|
|
67
|
+
"bubbles": true,
|
|
68
|
+
"cancelable": true,
|
|
69
|
+
"composed": true,
|
|
70
|
+
"docs": {
|
|
71
|
+
"tags": [],
|
|
72
|
+
"text": "Emitted when the sort is changed."
|
|
73
|
+
},
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "\"asc\"|\"desc\"|\"none\"",
|
|
76
|
+
"resolved": "\"asc\" | \"desc\" | \"none\"",
|
|
77
|
+
"references": {}
|
|
78
|
+
}
|
|
79
|
+
}];
|
|
80
|
+
}
|
|
80
81
|
}
|
|
81
|
-
//# sourceMappingURL=dnn-sort-icon.js.map
|
|
82
|
+
//# sourceMappingURL=dnn-sort-icon.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
2
|
/** Represents a single tab and must be used inside a dnn-tabs element. */
|
|
3
3
|
export class DnnTab {
|
|
4
4
|
constructor() {
|
|
@@ -18,67 +18,77 @@ export class DnnTab {
|
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "dnn-tab"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|
|
21
|
-
static get originalStyleUrls() {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"text": "Defines the tab title."
|
|
41
|
-
},
|
|
42
|
-
"attribute": "tab-title",
|
|
43
|
-
"reflect": false
|
|
44
|
-
}
|
|
45
|
-
}; }
|
|
46
|
-
static get states() { return {
|
|
47
|
-
"visible": {}
|
|
48
|
-
}; }
|
|
49
|
-
static get methods() { return {
|
|
50
|
-
"show": {
|
|
51
|
-
"complexType": {
|
|
52
|
-
"signature": "() => Promise<void>",
|
|
53
|
-
"parameters": [],
|
|
54
|
-
"references": {
|
|
55
|
-
"Promise": {
|
|
56
|
-
"location": "global"
|
|
57
|
-
}
|
|
21
|
+
static get originalStyleUrls() {
|
|
22
|
+
return {
|
|
23
|
+
"$": ["dnn-tab.scss"]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
static get styleUrls() {
|
|
27
|
+
return {
|
|
28
|
+
"$": ["dnn-tab.css"]
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
static get properties() {
|
|
32
|
+
return {
|
|
33
|
+
"tabTitle": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"mutable": false,
|
|
36
|
+
"complexType": {
|
|
37
|
+
"original": "string",
|
|
38
|
+
"resolved": "string",
|
|
39
|
+
"references": {}
|
|
58
40
|
},
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
41
|
+
"required": true,
|
|
42
|
+
"optional": false,
|
|
43
|
+
"docs": {
|
|
44
|
+
"tags": [],
|
|
45
|
+
"text": "Defines the tab title."
|
|
46
|
+
},
|
|
47
|
+
"attribute": "tab-title",
|
|
48
|
+
"reflect": false
|
|
64
49
|
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get states() {
|
|
53
|
+
return {
|
|
54
|
+
"visible": {}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
static get methods() {
|
|
58
|
+
return {
|
|
59
|
+
"show": {
|
|
60
|
+
"complexType": {
|
|
61
|
+
"signature": "() => Promise<void>",
|
|
62
|
+
"parameters": [],
|
|
63
|
+
"references": {
|
|
64
|
+
"Promise": {
|
|
65
|
+
"location": "global"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"return": "Promise<void>"
|
|
74
69
|
},
|
|
75
|
-
"
|
|
70
|
+
"docs": {
|
|
71
|
+
"text": "Shows the tab.",
|
|
72
|
+
"tags": []
|
|
73
|
+
}
|
|
76
74
|
},
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
75
|
+
"hide": {
|
|
76
|
+
"complexType": {
|
|
77
|
+
"signature": "() => Promise<void>",
|
|
78
|
+
"parameters": [],
|
|
79
|
+
"references": {
|
|
80
|
+
"Promise": {
|
|
81
|
+
"location": "global"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"return": "Promise<void>"
|
|
85
|
+
},
|
|
86
|
+
"docs": {
|
|
87
|
+
"text": "Hides the modal",
|
|
88
|
+
"tags": []
|
|
89
|
+
}
|
|
80
90
|
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
83
93
|
}
|
|
84
|
-
//# sourceMappingURL=dnn-tab.js.map
|
|
94
|
+
//# sourceMappingURL=dnn-tab.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class DnnTabs {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.tabTitles = [];
|
|
@@ -34,22 +34,25 @@ export class DnnTabs {
|
|
|
34
34
|
this.selectedTabTitle = tabTitle;
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { ref: el => this.component = el },
|
|
38
|
-
h("div", { class: "tabTitles" }, this.tabTitles.map(tabTitle => h("button", { class: this.selectedTabTitle == tabTitle ? "visible" : "", onClick: () => this.showTab(tabTitle) }, tabTitle))),
|
|
39
|
-
h("div", { class: "currentTab" },
|
|
40
|
-
h("slot", null))));
|
|
37
|
+
return (h(Host, { ref: el => this.component = el }, h("div", { class: "tabTitles" }, this.tabTitles.map(tabTitle => h("button", { class: this.selectedTabTitle == tabTitle ? "visible" : "", onClick: () => this.showTab(tabTitle) }, tabTitle))), h("div", { class: "currentTab" }, h("slot", null))));
|
|
41
38
|
}
|
|
42
39
|
static get is() { return "dnn-tabs"; }
|
|
43
40
|
static get encapsulation() { return "shadow"; }
|
|
44
|
-
static get originalStyleUrls() {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
41
|
+
static get originalStyleUrls() {
|
|
42
|
+
return {
|
|
43
|
+
"$": ["dnn-tabs.scss"]
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static get styleUrls() {
|
|
47
|
+
return {
|
|
48
|
+
"$": ["dnn-tabs.css"]
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
static get states() {
|
|
52
|
+
return {
|
|
53
|
+
"tabTitles": {},
|
|
54
|
+
"selectedTabTitle": {}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
54
57
|
}
|
|
55
|
-
//# sourceMappingURL=dnn-tabs.js.map
|
|
58
|
+
//# sourceMappingURL=dnn-tabs.js.map
|