@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.
Files changed (102) hide show
  1. package/dist/cjs/dnn-button_17.cjs.entry.js +3 -3
  2. package/dist/cjs/dnn-button_17.cjs.entry.js.map +1 -1
  3. package/dist/cjs/dnn.cjs.js +2 -2
  4. package/dist/cjs/dnn.cjs.js.map +1 -1
  5. package/dist/cjs/{index-514ef6dd.js → index-81382452.js} +404 -239
  6. package/dist/cjs/index-81382452.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/loader.cjs.js.map +1 -1
  9. package/dist/collection/collection-manifest.json +2 -2
  10. package/dist/collection/components/dnn-button/dnn-button.js +195 -192
  11. package/dist/collection/components/dnn-button/dnn-button.stories.js +1 -1
  12. package/dist/collection/components/dnn-checkbox/dnn-checkbox.js +85 -99
  13. package/dist/collection/components/dnn-checkbox/dnn-checkbox.stories.js +1 -1
  14. package/dist/collection/components/dnn-chevron/dnn-chevron.js +92 -87
  15. package/dist/collection/components/dnn-chevron/dnn-chevron.stories.js +1 -1
  16. package/dist/collection/components/dnn-collapsible/dnn-collapsible.js +102 -90
  17. package/dist/collection/components/dnn-collapsible/dnn-collapsible.stories.js +1 -1
  18. package/dist/collection/components/dnn-color-picker/dnn-color-picker.js +105 -141
  19. package/dist/collection/components/dnn-color-picker/dnn-color-picker.stories.js +1 -1
  20. package/dist/collection/components/dnn-dropzone/dnn-dropzone.js +122 -137
  21. package/dist/collection/components/dnn-dropzone/dnn-dropzone.stories.js +1 -1
  22. package/dist/collection/components/dnn-image-cropper/CornerType.js +1 -1
  23. package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.js +129 -133
  24. package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.stories.js +1 -1
  25. package/dist/collection/components/dnn-modal/dnn-modal.css +5 -0
  26. package/dist/collection/components/dnn-modal/dnn-modal.js +136 -133
  27. package/dist/collection/components/dnn-modal/dnn-modal.js.map +1 -1
  28. package/dist/collection/components/dnn-modal/dnn-modal.stories.js +1 -1
  29. package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.js +164 -223
  30. package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.stories.js +1 -1
  31. package/dist/collection/components/dnn-permissions-grid/localization-interface.js +1 -1
  32. package/dist/collection/components/dnn-permissions-grid/permissions-interface.js +1 -1
  33. package/dist/collection/components/dnn-permissions-grid/role-group-interface.js +1 -1
  34. package/dist/collection/components/dnn-permissions-grid/role-interface.js +1 -1
  35. package/dist/collection/components/dnn-permissions-grid/searched-user-interface.js +1 -1
  36. package/dist/collection/components/dnn-searchbox/dnn-searchbox.js +101 -94
  37. package/dist/collection/components/dnn-searchbox/dnn-searchbox.stories.js +1 -1
  38. package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.js +55 -54
  39. package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.stories.js +1 -1
  40. package/dist/collection/components/dnn-tab/dnn-tab.js +69 -59
  41. package/dist/collection/components/dnn-tab/dnn-tab.stories.js +1 -1
  42. package/dist/collection/components/dnn-tabs/dnn-tabs.js +19 -16
  43. package/dist/collection/components/dnn-tabs/dnn-tabs.stories.js +1 -1
  44. package/dist/collection/components/dnn-toggle/dnn-toggle.js +83 -75
  45. package/dist/collection/components/dnn-toggle/dnn-toggle.stories.js +1 -1
  46. package/dist/collection/components/dnn-toggle/toggle-interface.js +1 -1
  47. package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.js +79 -77
  48. package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.stories.js +1 -1
  49. package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.js +20 -24
  50. package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.stories.js +1 -1
  51. package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.js +117 -111
  52. package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.stories.js +1 -1
  53. package/dist/collection/index.js +1 -1
  54. package/dist/collection/utilities/colorInfo.js +1 -1
  55. package/dist/collection/utilities/debounce.js +1 -1
  56. package/dist/collection/utilities/dnnServicesFramework.js +1 -1
  57. package/dist/collection/utilities/mouseUtilities.js +1 -1
  58. package/dist/dnn/dnn.esm.js +1 -1
  59. package/dist/dnn/dnn.esm.js.map +1 -1
  60. package/dist/dnn/dnn.js +2 -1
  61. package/dist/dnn/p-21f18e37.system.js +3 -0
  62. package/dist/dnn/p-21f18e37.system.js.map +1 -0
  63. package/dist/dnn/p-2a79ad5b.system.entry.js +11 -0
  64. package/dist/dnn/p-2a79ad5b.system.entry.js.map +1 -0
  65. package/dist/dnn/{p-5bcf3629.system.js → p-52139080.system.js} +2 -2
  66. package/dist/dnn/{p-5bcf3629.system.js.map → p-52139080.system.js.map} +1 -1
  67. package/dist/dnn/{p-909f2db9.entry.js → p-6cc227ab.entry.js} +3 -3
  68. package/dist/dnn/p-6cc227ab.entry.js.map +1 -0
  69. package/dist/dnn/p-97d752ed.js +3 -0
  70. package/dist/dnn/p-97d752ed.js.map +1 -0
  71. package/dist/esm/dnn-button_17.entry.js +3 -3
  72. package/dist/esm/dnn-button_17.entry.js.map +1 -1
  73. package/dist/esm/dnn.js +2 -2
  74. package/dist/esm/dnn.js.map +1 -1
  75. package/dist/esm/{index-59e0950f.js → index-e9a3fcad.js} +404 -239
  76. package/dist/esm/index-e9a3fcad.js.map +1 -0
  77. package/dist/esm/loader.js +2 -2
  78. package/dist/esm/loader.js.map +1 -1
  79. package/dist/esm/polyfills/css-shim.js +1 -1
  80. package/dist/esm-es5/dnn-button_17.entry.js +2 -2
  81. package/dist/esm-es5/dnn-button_17.entry.js.map +1 -1
  82. package/dist/esm-es5/dnn.js +1 -1
  83. package/dist/esm-es5/dnn.js.map +1 -1
  84. package/dist/esm-es5/index-e9a3fcad.js +3 -0
  85. package/dist/esm-es5/index-e9a3fcad.js.map +1 -0
  86. package/dist/esm-es5/loader.js +1 -1
  87. package/dist/esm-es5/loader.js.map +1 -1
  88. package/dist/types/components.d.ts +73 -17
  89. package/dist/types/stencil-public-runtime.d.ts +15 -4
  90. package/loader/package.json +1 -0
  91. package/package.json +14 -14
  92. package/dist/cjs/index-514ef6dd.js.map +0 -1
  93. package/dist/dnn/p-3155c8a8.system.entry.js +0 -11
  94. package/dist/dnn/p-3155c8a8.system.entry.js.map +0 -1
  95. package/dist/dnn/p-7ffdbed1.js +0 -2
  96. package/dist/dnn/p-7ffdbed1.js.map +0 -1
  97. package/dist/dnn/p-909f2db9.entry.js.map +0 -1
  98. package/dist/dnn/p-b8064287.system.js +0 -2
  99. package/dist/dnn/p-b8064287.system.js.map +0 -1
  100. package/dist/esm/index-59e0950f.js.map +0 -1
  101. package/dist/esm-es5/index-59e0950f.js +0 -2
  102. 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") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
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 { Component, Host, h, Event, Watch, Prop } from '@stencil/core';
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("input", { type: "text", value: this.query, placeholder: this.placeholder, onInput: e => this.query = e.target.value }),
39
- this.query !== "" ?
40
- h("button", { class: "svg clear", onClick: () => this.query = "" },
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() { return {
52
- "$": ["dnn-searchbox.scss"]
53
- }; }
54
- static get styleUrls() { return {
55
- "$": ["dnn-searchbox.css"]
56
- }; }
57
- static get properties() { return {
58
- "placeholder": {
59
- "type": "string",
60
- "mutable": false,
61
- "complexType": {
62
- "original": "string",
63
- "resolved": "string",
64
- "references": {}
65
- },
66
- "required": false,
67
- "optional": true,
68
- "docs": {
69
- "tags": [],
70
- "text": "Sets the field placeholder text."
71
- },
72
- "attribute": "placeholder",
73
- "reflect": false,
74
- "defaultValue": "\"\""
75
- },
76
- "debounced": {
77
- "type": "boolean",
78
- "mutable": false,
79
- "complexType": {
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
- "attribute": "query",
109
- "reflect": false,
110
- "defaultValue": "\"\""
111
- }
112
- }; }
113
- static get events() { return [{
114
- "method": "queryChanged",
115
- "name": "queryChanged",
116
- "bubbles": true,
117
- "cancelable": true,
118
- "composed": true,
119
- "docs": {
120
- "tags": [],
121
- "text": "Fires up each time the search query changes.\nThe data passed is the new query."
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
- "complexType": {
124
- "original": "string",
125
- "resolved": "string",
126
- "references": {}
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
- static get watchers() { return [{
130
- "propName": "query",
131
- "methodName": "fireQueryChanged"
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
@@ -23,4 +23,4 @@ Searchbox.args = {
23
23
  placeholder: "Search",
24
24
  query: "",
25
25
  };
26
- //# sourceMappingURL=dnn-searchbox.stories.js.map
26
+ //# sourceMappingURL=dnn-searchbox.stories.js.map
@@ -1,4 +1,4 @@
1
- import { Component, Host, h, Prop, Event } from '@stencil/core';
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("button", { class: { "active": this.sortDirection != "none" }, onClick: () => this.changeSort() },
26
- this.sortDirection == "none" &&
27
- h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 16" },
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() { return {
39
- "$": ["dnn-sort-icon.scss"]
40
- }; }
41
- static get styleUrls() { return {
42
- "$": ["dnn-sort-icon.css"]
43
- }; }
44
- static get properties() { return {
45
- "sortDirection": {
46
- "type": "string",
47
- "mutable": false,
48
- "complexType": {
49
- "original": "\"asc\" | \"desc\" | \"none\"",
50
- "resolved": "\"asc\" | \"desc\" | \"none\"",
51
- "references": {}
52
- },
53
- "required": false,
54
- "optional": false,
55
- "docs": {
56
- "tags": [],
57
- "text": "Defines the current sort direction"
58
- },
59
- "attribute": "sort-direction",
60
- "reflect": false,
61
- "defaultValue": "\"none\""
62
- }
63
- }; }
64
- static get events() { 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": {}
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
@@ -55,4 +55,4 @@ export const SortIcon = Template.bind({});
55
55
  SortIcon.args = {
56
56
  sortDirection: "none",
57
57
  };
58
- //# sourceMappingURL=dnn-sort-icon.stories.js.map
58
+ //# sourceMappingURL=dnn-sort-icon.stories.js.map
@@ -1,4 +1,4 @@
1
- import { Component, Host, h, Prop, State, Method } from "@stencil/core";
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() { return {
22
- "$": ["dnn-tab.scss"]
23
- }; }
24
- static get styleUrls() { return {
25
- "$": ["dnn-tab.css"]
26
- }; }
27
- static get properties() { return {
28
- "tabTitle": {
29
- "type": "string",
30
- "mutable": false,
31
- "complexType": {
32
- "original": "string",
33
- "resolved": "string",
34
- "references": {}
35
- },
36
- "required": true,
37
- "optional": false,
38
- "docs": {
39
- "tags": [],
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
- "return": "Promise<void>"
60
- },
61
- "docs": {
62
- "text": "Shows the tab.",
63
- "tags": []
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
- "hide": {
67
- "complexType": {
68
- "signature": "() => Promise<void>",
69
- "parameters": [],
70
- "references": {
71
- "Promise": {
72
- "location": "global"
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
- "return": "Promise<void>"
70
+ "docs": {
71
+ "text": "Shows the tab.",
72
+ "tags": []
73
+ }
76
74
  },
77
- "docs": {
78
- "text": "Hides the modal",
79
- "tags": []
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
@@ -22,4 +22,4 @@ export const Tab = Template.bind({});
22
22
  Tab.args = {
23
23
  tabTitle: 'My Tab',
24
24
  };
25
- //# sourceMappingURL=dnn-tab.stories.js.map
25
+ //# sourceMappingURL=dnn-tab.stories.js.map
@@ -1,4 +1,4 @@
1
- import { Component, Host, h, State } from "@stencil/core";
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() { return {
45
- "$": ["dnn-tabs.scss"]
46
- }; }
47
- static get styleUrls() { return {
48
- "$": ["dnn-tabs.css"]
49
- }; }
50
- static get states() { return {
51
- "tabTitles": {},
52
- "selectedTabTitle": {}
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
@@ -50,4 +50,4 @@ const Template = (args, context) => {
50
50
  `;
51
51
  };
52
52
  export const Tabs = Template.bind({});
53
- //# sourceMappingURL=dnn-tabs.stories.js.map
53
+ //# sourceMappingURL=dnn-tabs.stories.js.map