@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,4 +1,4 @@
1
- import { Component, Element, Host, h, Prop, State, Event } from '@stencil/core';
1
+ import { Host, h } from '@stencil/core';
2
2
  /**
3
3
  * @slot Content of the button
4
4
  */
@@ -70,207 +70,210 @@ export class DnnButton {
70
70
  return classes.join(' ');
71
71
  }
72
72
  render() {
73
- return (h(Host, { class: this.getElementClasses(), disabled: this.disabled, style: { 'pointer-events': this.disabled ? 'none' : 'all' } },
74
- h("button", { class: "button", onClick: () => this.handleClick(), disabled: this.disabled },
75
- h("slot", null)),
76
- this.confirm &&
77
- h("dnn-modal", { showCloseButton: false, backdropDismiss: false },
78
- h("p", null, this.confirmMessage),
79
- h("div", { style: {
80
- display: 'flex',
81
- justifyContent: 'flex-end'
82
- } },
83
- h("dnn-button", { type: 'primary', style: { margin: '5px' }, onClick: () => this.handleConfirm() }, this.confirmYesText),
84
- h("dnn-button", { type: 'secondary', style: { margin: '5px' }, onClick: () => this.handleCancel() }, this.confirmNoText)))));
73
+ return (h(Host, { class: this.getElementClasses(), disabled: this.disabled, style: { 'pointer-events': this.disabled ? 'none' : 'all' } }, h("button", { class: "button", onClick: () => this.handleClick(), disabled: this.disabled }, h("slot", null)), this.confirm &&
74
+ h("dnn-modal", { showCloseButton: false, backdropDismiss: false }, h("p", null, this.confirmMessage), h("div", { style: {
75
+ display: 'flex',
76
+ justifyContent: 'flex-end'
77
+ } }, h("dnn-button", { type: 'primary', style: { margin: '5px' }, onClick: () => this.handleConfirm() }, this.confirmYesText), h("dnn-button", { type: 'secondary', style: { margin: '5px' }, onClick: () => this.handleCancel() }, this.confirmNoText)))));
85
78
  }
86
79
  static get is() { return "dnn-button"; }
87
80
  static get encapsulation() { return "shadow"; }
88
- static get originalStyleUrls() { return {
89
- "$": ["dnn-button.scss"]
90
- }; }
91
- static get styleUrls() { return {
92
- "$": ["dnn-button.css"]
93
- }; }
94
- static get properties() { return {
95
- "type": {
96
- "type": "string",
97
- "mutable": false,
98
- "complexType": {
99
- "original": "'primary' | 'secondary' | 'tertiary'",
100
- "resolved": "\"primary\" | \"secondary\" | \"tertiary\"",
101
- "references": {}
102
- },
103
- "required": false,
104
- "optional": false,
105
- "docs": {
106
- "tags": [],
107
- "text": "Optional button style,\ncan be either primary, secondary or tertiary and defaults to primary if not specified"
108
- },
109
- "attribute": "type",
110
- "reflect": false,
111
- "defaultValue": "'primary'"
112
- },
113
- "reversed": {
114
- "type": "boolean",
115
- "mutable": false,
116
- "complexType": {
117
- "original": "boolean",
118
- "resolved": "boolean",
119
- "references": {}
120
- },
121
- "required": false,
122
- "optional": false,
123
- "docs": {
124
- "tags": [],
125
- "text": "Optionally reverses the button style."
126
- },
127
- "attribute": "reversed",
128
- "reflect": false,
129
- "defaultValue": "false"
130
- },
131
- "size": {
132
- "type": "string",
133
- "mutable": false,
134
- "complexType": {
135
- "original": "'small' | 'normal' | 'large'",
136
- "resolved": "\"large\" | \"normal\" | \"small\"",
137
- "references": {}
138
- },
139
- "required": false,
140
- "optional": true,
141
- "docs": {
142
- "tags": [],
143
- "text": "Optionally sets the button size, small normal or large, defaults to normal"
144
- },
145
- "attribute": "size",
146
- "reflect": false,
147
- "defaultValue": "'normal'"
148
- },
149
- "confirm": {
150
- "type": "boolean",
151
- "mutable": false,
152
- "complexType": {
153
- "original": "boolean",
154
- "resolved": "boolean",
155
- "references": {}
156
- },
157
- "required": false,
158
- "optional": true,
159
- "docs": {
160
- "tags": [],
161
- "text": "Optionally add a confirmation dialog before firing the action."
162
- },
163
- "attribute": "confirm",
164
- "reflect": false,
165
- "defaultValue": "false"
166
- },
167
- "confirmYesText": {
168
- "type": "string",
169
- "mutable": false,
170
- "complexType": {
171
- "original": "string",
172
- "resolved": "string",
173
- "references": {}
174
- },
175
- "required": false,
176
- "optional": true,
177
- "docs": {
178
- "tags": [],
179
- "text": "The text of the yes button for confirmation."
81
+ static get originalStyleUrls() {
82
+ return {
83
+ "$": ["dnn-button.scss"]
84
+ };
85
+ }
86
+ static get styleUrls() {
87
+ return {
88
+ "$": ["dnn-button.css"]
89
+ };
90
+ }
91
+ static get properties() {
92
+ return {
93
+ "type": {
94
+ "type": "string",
95
+ "mutable": false,
96
+ "complexType": {
97
+ "original": "'primary' | 'secondary' | 'tertiary'",
98
+ "resolved": "\"primary\" | \"secondary\" | \"tertiary\"",
99
+ "references": {}
100
+ },
101
+ "required": false,
102
+ "optional": false,
103
+ "docs": {
104
+ "tags": [],
105
+ "text": "Optional button style,\ncan be either primary, secondary or tertiary and defaults to primary if not specified"
106
+ },
107
+ "attribute": "type",
108
+ "reflect": false,
109
+ "defaultValue": "'primary'"
180
110
  },
181
- "attribute": "confirm-yes-text",
182
- "reflect": false,
183
- "defaultValue": "\"Yes\""
184
- },
185
- "confirmNoText": {
186
- "type": "string",
187
- "mutable": false,
188
- "complexType": {
189
- "original": "string",
190
- "resolved": "string",
191
- "references": {}
111
+ "reversed": {
112
+ "type": "boolean",
113
+ "mutable": false,
114
+ "complexType": {
115
+ "original": "boolean",
116
+ "resolved": "boolean",
117
+ "references": {}
118
+ },
119
+ "required": false,
120
+ "optional": false,
121
+ "docs": {
122
+ "tags": [],
123
+ "text": "Optionally reverses the button style."
124
+ },
125
+ "attribute": "reversed",
126
+ "reflect": false,
127
+ "defaultValue": "false"
192
128
  },
193
- "required": false,
194
- "optional": true,
195
- "docs": {
196
- "tags": [],
197
- "text": "The text of the no button for confirmation."
129
+ "size": {
130
+ "type": "string",
131
+ "mutable": false,
132
+ "complexType": {
133
+ "original": "'small' | 'normal' | 'large'",
134
+ "resolved": "\"large\" | \"normal\" | \"small\"",
135
+ "references": {}
136
+ },
137
+ "required": false,
138
+ "optional": true,
139
+ "docs": {
140
+ "tags": [],
141
+ "text": "Optionally sets the button size, small normal or large, defaults to normal"
142
+ },
143
+ "attribute": "size",
144
+ "reflect": false,
145
+ "defaultValue": "'normal'"
198
146
  },
199
- "attribute": "confirm-no-text",
200
- "reflect": false,
201
- "defaultValue": "\"No\""
202
- },
203
- "confirmMessage": {
204
- "type": "string",
205
- "mutable": false,
206
- "complexType": {
207
- "original": "string",
208
- "resolved": "string",
209
- "references": {}
147
+ "confirm": {
148
+ "type": "boolean",
149
+ "mutable": false,
150
+ "complexType": {
151
+ "original": "boolean",
152
+ "resolved": "boolean",
153
+ "references": {}
154
+ },
155
+ "required": false,
156
+ "optional": true,
157
+ "docs": {
158
+ "tags": [],
159
+ "text": "Optionally add a confirmation dialog before firing the action."
160
+ },
161
+ "attribute": "confirm",
162
+ "reflect": false,
163
+ "defaultValue": "false"
210
164
  },
211
- "required": false,
212
- "optional": true,
213
- "docs": {
214
- "tags": [],
215
- "text": "The text of the confirmation message;"
165
+ "confirmYesText": {
166
+ "type": "string",
167
+ "mutable": false,
168
+ "complexType": {
169
+ "original": "string",
170
+ "resolved": "string",
171
+ "references": {}
172
+ },
173
+ "required": false,
174
+ "optional": true,
175
+ "docs": {
176
+ "tags": [],
177
+ "text": "The text of the yes button for confirmation."
178
+ },
179
+ "attribute": "confirm-yes-text",
180
+ "reflect": false,
181
+ "defaultValue": "\"Yes\""
216
182
  },
217
- "attribute": "confirm-message",
218
- "reflect": false,
219
- "defaultValue": "\"Are you sure ?\""
220
- },
221
- "disabled": {
222
- "type": "boolean",
223
- "mutable": false,
224
- "complexType": {
225
- "original": "boolean",
226
- "resolved": "boolean",
227
- "references": {}
183
+ "confirmNoText": {
184
+ "type": "string",
185
+ "mutable": false,
186
+ "complexType": {
187
+ "original": "string",
188
+ "resolved": "string",
189
+ "references": {}
190
+ },
191
+ "required": false,
192
+ "optional": true,
193
+ "docs": {
194
+ "tags": [],
195
+ "text": "The text of the no button for confirmation."
196
+ },
197
+ "attribute": "confirm-no-text",
198
+ "reflect": false,
199
+ "defaultValue": "\"No\""
228
200
  },
229
- "required": false,
230
- "optional": false,
231
- "docs": {
232
- "tags": [],
233
- "text": "Disables the button"
201
+ "confirmMessage": {
202
+ "type": "string",
203
+ "mutable": false,
204
+ "complexType": {
205
+ "original": "string",
206
+ "resolved": "string",
207
+ "references": {}
208
+ },
209
+ "required": false,
210
+ "optional": true,
211
+ "docs": {
212
+ "tags": [],
213
+ "text": "The text of the confirmation message;"
214
+ },
215
+ "attribute": "confirm-message",
216
+ "reflect": false,
217
+ "defaultValue": "\"Are you sure ?\""
234
218
  },
235
- "attribute": "disabled",
236
- "reflect": false,
237
- "defaultValue": "false"
238
- }
239
- }; }
240
- static get states() { return {
241
- "modalVisible": {}
242
- }; }
243
- static get events() { return [{
244
- "method": "confirmed",
245
- "name": "confirmed",
246
- "bubbles": true,
247
- "cancelable": true,
248
- "composed": true,
249
- "docs": {
250
- "tags": [],
251
- "text": "Fires when confirm is true and the user confirms the action."
252
- },
253
- "complexType": {
254
- "original": "any",
255
- "resolved": "any",
256
- "references": {}
219
+ "disabled": {
220
+ "type": "boolean",
221
+ "mutable": false,
222
+ "complexType": {
223
+ "original": "boolean",
224
+ "resolved": "boolean",
225
+ "references": {}
226
+ },
227
+ "required": false,
228
+ "optional": false,
229
+ "docs": {
230
+ "tags": [],
231
+ "text": "Disables the button"
232
+ },
233
+ "attribute": "disabled",
234
+ "reflect": false,
235
+ "defaultValue": "false"
257
236
  }
258
- }, {
259
- "method": "canceled",
260
- "name": "canceled",
261
- "bubbles": true,
262
- "cancelable": true,
263
- "composed": true,
264
- "docs": {
265
- "tags": [],
266
- "text": "Fires when confirm is true and the user cancels the action."
267
- },
268
- "complexType": {
269
- "original": "any",
270
- "resolved": "any",
271
- "references": {}
272
- }
273
- }]; }
237
+ };
238
+ }
239
+ static get states() {
240
+ return {
241
+ "modalVisible": {}
242
+ };
243
+ }
244
+ static get events() {
245
+ return [{
246
+ "method": "confirmed",
247
+ "name": "confirmed",
248
+ "bubbles": true,
249
+ "cancelable": true,
250
+ "composed": true,
251
+ "docs": {
252
+ "tags": [],
253
+ "text": "Fires when confirm is true and the user confirms the action."
254
+ },
255
+ "complexType": {
256
+ "original": "any",
257
+ "resolved": "any",
258
+ "references": {}
259
+ }
260
+ }, {
261
+ "method": "canceled",
262
+ "name": "canceled",
263
+ "bubbles": true,
264
+ "cancelable": true,
265
+ "composed": true,
266
+ "docs": {
267
+ "tags": [],
268
+ "text": "Fires when confirm is true and the user cancels the action."
269
+ },
270
+ "complexType": {
271
+ "original": "any",
272
+ "resolved": "any",
273
+ "references": {}
274
+ }
275
+ }];
276
+ }
274
277
  static get elementRef() { return "el"; }
275
278
  }
276
- //# sourceMappingURL=dnn-button.js.map
279
+ //# sourceMappingURL=dnn-button.js.map
@@ -69,4 +69,4 @@ Button.args = {
69
69
  disabled: false,
70
70
  slot: 'Click me!'
71
71
  };
72
- //# sourceMappingURL=dnn-button.stories.js.map
72
+ //# sourceMappingURL=dnn-button.stories.js.map
@@ -1,4 +1,4 @@
1
- import { Component, Element, Host, h, Prop, Event } from '@stencil/core';
1
+ import { Host, h } from '@stencil/core';
2
2
  /**
3
3
  * @slot - The label for the checkbox.
4
4
  * @slot checkedicon - Allows overriding the default checked icon.
@@ -44,109 +44,95 @@ export class DnnCheckbox {
44
44
  this.checkedchange.emit(this.checked);
45
45
  }
46
46
  render() {
47
- return (h(Host, null,
48
- h("button", { class: `icon ${this.checked}`, onClick: () => this.changeState() },
49
- h("div", { class: "unchecked" },
50
- h("slot", { name: "uncheckedicon" },
51
- h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" },
52
- h("path", { d: "M0 0h24v24H0z", fill: "none" }),
53
- h("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" })))),
54
- h("div", { class: "checked" },
55
- h("slot", { name: "checkedicon" },
56
- h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" },
57
- h("path", { d: "M0 0h24v24H0z", fill: "none" }),
58
- h("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })))),
59
- h("div", { class: "intermediate" },
60
- h("slot", { name: "intermediateicon" },
61
- h("svg", { class: "undefined", xmlns: "http://www.w3.org/2000/svg", "enable-background": "new 0 0 24 24", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" },
62
- h("g", null,
63
- h("rect", { fill: "none", height: "24", width: "24" })),
64
- h("g", null,
65
- h("g", null,
66
- h("g", null,
67
- h("path", { d: "M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3z M17,13H7v-2h10V13z" })))))))),
68
- h("label", { htmlFor: this.el.id, onClick: () => this.changeState() },
69
- h("slot", null))));
47
+ return (h(Host, null, h("button", { class: `icon ${this.checked}`, onClick: () => this.changeState() }, h("div", { class: "unchecked" }, h("slot", { name: "uncheckedicon" }, 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: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" })))), h("div", { class: "checked" }, h("slot", { name: "checkedicon" }, 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: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })))), h("div", { class: "intermediate" }, h("slot", { name: "intermediateicon" }, h("svg", { class: "undefined", xmlns: "http://www.w3.org/2000/svg", "enable-background": "new 0 0 24 24", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" }, h("g", null, h("rect", { fill: "none", height: "24", width: "24" })), h("g", null, h("g", null, h("g", null, h("path", { d: "M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3z M17,13H7v-2h10V13z" })))))))), h("label", { htmlFor: this.el.id, onClick: () => this.changeState() }, h("slot", null))));
70
48
  }
71
49
  static get is() { return "dnn-checkbox"; }
72
50
  static get encapsulation() { return "shadow"; }
73
- static get originalStyleUrls() { return {
74
- "$": ["dnn-checkbox.scss"]
75
- }; }
76
- static get styleUrls() { return {
77
- "$": ["dnn-checkbox.css"]
78
- }; }
79
- static get properties() { return {
80
- "checked": {
81
- "type": "string",
82
- "mutable": true,
83
- "complexType": {
84
- "original": "\"checked\" | \"unchecked\" | \"intermediate\"",
85
- "resolved": "\"checked\" | \"intermediate\" | \"unchecked\"",
86
- "references": {}
87
- },
88
- "required": false,
89
- "optional": false,
90
- "docs": {
91
- "tags": [],
92
- "text": "Defines if the checkbox is checked (true) or unchecked (false) or in an intermediate state (undefined)"
93
- },
94
- "attribute": "checked",
95
- "reflect": false,
96
- "defaultValue": "\"unchecked\""
97
- },
98
- "useIntermediate": {
99
- "type": "boolean",
100
- "mutable": false,
101
- "complexType": {
102
- "original": "boolean",
103
- "resolved": "boolean",
104
- "references": {}
105
- },
106
- "required": false,
107
- "optional": false,
108
- "docs": {
109
- "tags": [],
110
- "text": "Defines if clicking the checkbox will go through the intermediate state between checked and unchecked (tri-state)"
111
- },
112
- "attribute": "use-intermediate",
113
- "reflect": false,
114
- "defaultValue": "false"
115
- },
116
- "value": {
117
- "type": "string",
118
- "mutable": false,
119
- "complexType": {
120
- "original": "string",
121
- "resolved": "string",
122
- "references": {}
123
- },
124
- "required": false,
125
- "optional": false,
126
- "docs": {
127
- "tags": [],
128
- "text": "The value for this checkbox (not to be confused with its checked state)."
51
+ static get originalStyleUrls() {
52
+ return {
53
+ "$": ["dnn-checkbox.scss"]
54
+ };
55
+ }
56
+ static get styleUrls() {
57
+ return {
58
+ "$": ["dnn-checkbox.css"]
59
+ };
60
+ }
61
+ static get properties() {
62
+ return {
63
+ "checked": {
64
+ "type": "string",
65
+ "mutable": true,
66
+ "complexType": {
67
+ "original": "\"checked\" | \"unchecked\" | \"intermediate\"",
68
+ "resolved": "\"checked\" | \"intermediate\" | \"unchecked\"",
69
+ "references": {}
70
+ },
71
+ "required": false,
72
+ "optional": false,
73
+ "docs": {
74
+ "tags": [],
75
+ "text": "Defines if the checkbox is checked (true) or unchecked (false) or in an intermediate state (undefined)"
76
+ },
77
+ "attribute": "checked",
78
+ "reflect": false,
79
+ "defaultValue": "\"unchecked\""
129
80
  },
130
- "attribute": "value",
131
- "reflect": false
132
- }
133
- }; }
134
- static get events() { return [{
135
- "method": "checkedchange",
136
- "name": "checkedchange",
137
- "bubbles": true,
138
- "cancelable": true,
139
- "composed": true,
140
- "docs": {
141
- "tags": [],
142
- "text": "Fires up when the checkbox checked property changes."
81
+ "useIntermediate": {
82
+ "type": "boolean",
83
+ "mutable": false,
84
+ "complexType": {
85
+ "original": "boolean",
86
+ "resolved": "boolean",
87
+ "references": {}
88
+ },
89
+ "required": false,
90
+ "optional": false,
91
+ "docs": {
92
+ "tags": [],
93
+ "text": "Defines if clicking the checkbox will go through the intermediate state between checked and unchecked (tri-state)"
94
+ },
95
+ "attribute": "use-intermediate",
96
+ "reflect": false,
97
+ "defaultValue": "false"
143
98
  },
144
- "complexType": {
145
- "original": "\"checked\" | \"unchecked\" | \"intermediate\"",
146
- "resolved": "\"checked\" | \"intermediate\" | \"unchecked\"",
147
- "references": {}
99
+ "value": {
100
+ "type": "string",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "string",
104
+ "resolved": "string",
105
+ "references": {}
106
+ },
107
+ "required": false,
108
+ "optional": false,
109
+ "docs": {
110
+ "tags": [],
111
+ "text": "The value for this checkbox (not to be confused with its checked state)."
112
+ },
113
+ "attribute": "value",
114
+ "reflect": false
148
115
  }
149
- }]; }
116
+ };
117
+ }
118
+ static get events() {
119
+ return [{
120
+ "method": "checkedchange",
121
+ "name": "checkedchange",
122
+ "bubbles": true,
123
+ "cancelable": true,
124
+ "composed": true,
125
+ "docs": {
126
+ "tags": [],
127
+ "text": "Fires up when the checkbox checked property changes."
128
+ },
129
+ "complexType": {
130
+ "original": "\"checked\" | \"unchecked\" | \"intermediate\"",
131
+ "resolved": "\"checked\" | \"intermediate\" | \"unchecked\"",
132
+ "references": {}
133
+ }
134
+ }];
135
+ }
150
136
  static get elementRef() { return "el"; }
151
137
  }
152
- //# sourceMappingURL=dnn-checkbox.js.map
138
+ //# sourceMappingURL=dnn-checkbox.js.map
@@ -36,4 +36,4 @@ Checkbox.args = {
36
36
  useIntermediate: false,
37
37
  value: '1',
38
38
  };
39
- //# sourceMappingURL=dnn-checkbox.stories.js.map
39
+ //# sourceMappingURL=dnn-checkbox.stories.js.map