@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,5 +1,4 @@
1
- import { Component, Host, h, Prop, Event } from '@stencil/core';
2
- import { Watch } from '@stencil/core';
1
+ import { Host, h } from '@stencil/core';
3
2
  export class DnnChevron {
4
3
  constructor() {
5
4
  /** Expand text for screen readers */
@@ -13,95 +12,101 @@ export class DnnChevron {
13
12
  this.changed.emit(newValue);
14
13
  }
15
14
  render() {
16
- return (h(Host, null,
17
- h("button", { "aria-label": this.expanded ? this.collapseText : this.expandText, onClick: () => this.expanded = !this.expanded },
18
- h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" },
19
- h("path", { d: "M0 0h24v24H0z", fill: "none" }),
20
- h("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" })))));
15
+ return (h(Host, null, h("button", { "aria-label": this.expanded ? this.collapseText : this.expandText, onClick: () => this.expanded = !this.expanded }, 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: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" })))));
21
16
  }
22
17
  static get is() { return "dnn-chevron"; }
23
18
  static get encapsulation() { return "shadow"; }
24
- static get originalStyleUrls() { return {
25
- "$": ["dnn-chevron.scss"]
26
- }; }
27
- static get styleUrls() { return {
28
- "$": ["dnn-chevron.css"]
29
- }; }
30
- static get properties() { return {
31
- "expandText": {
32
- "type": "string",
33
- "mutable": false,
34
- "complexType": {
35
- "original": "string",
36
- "resolved": "string",
37
- "references": {}
38
- },
39
- "required": false,
40
- "optional": true,
41
- "docs": {
42
- "tags": [],
43
- "text": "Expand text for screen readers"
44
- },
45
- "attribute": "expand-text",
46
- "reflect": false,
47
- "defaultValue": "\"expand\""
48
- },
49
- "collapseText": {
50
- "type": "string",
51
- "mutable": false,
52
- "complexType": {
53
- "original": "string",
54
- "resolved": "string",
55
- "references": {}
56
- },
57
- "required": false,
58
- "optional": true,
59
- "docs": {
60
- "tags": [],
61
- "text": "Collapse text for screen readers"
62
- },
63
- "attribute": "collapse-text",
64
- "reflect": false,
65
- "defaultValue": "\"collapse\""
66
- },
67
- "expanded": {
68
- "type": "boolean",
69
- "mutable": true,
70
- "complexType": {
71
- "original": "boolean",
72
- "resolved": "boolean",
73
- "references": {}
74
- },
75
- "required": false,
76
- "optional": true,
77
- "docs": {
78
- "tags": [],
79
- "text": "Is the chevron expanded"
19
+ static get originalStyleUrls() {
20
+ return {
21
+ "$": ["dnn-chevron.scss"]
22
+ };
23
+ }
24
+ static get styleUrls() {
25
+ return {
26
+ "$": ["dnn-chevron.css"]
27
+ };
28
+ }
29
+ static get properties() {
30
+ return {
31
+ "expandText": {
32
+ "type": "string",
33
+ "mutable": false,
34
+ "complexType": {
35
+ "original": "string",
36
+ "resolved": "string",
37
+ "references": {}
38
+ },
39
+ "required": false,
40
+ "optional": true,
41
+ "docs": {
42
+ "tags": [],
43
+ "text": "Expand text for screen readers"
44
+ },
45
+ "attribute": "expand-text",
46
+ "reflect": false,
47
+ "defaultValue": "\"expand\""
80
48
  },
81
- "attribute": "expanded",
82
- "reflect": true,
83
- "defaultValue": "false"
84
- }
85
- }; }
86
- static get events() { return [{
87
- "method": "changed",
88
- "name": "changed",
89
- "bubbles": true,
90
- "cancelable": true,
91
- "composed": true,
92
- "docs": {
93
- "tags": [],
94
- "text": "Fires up when the expanded status changes"
49
+ "collapseText": {
50
+ "type": "string",
51
+ "mutable": false,
52
+ "complexType": {
53
+ "original": "string",
54
+ "resolved": "string",
55
+ "references": {}
56
+ },
57
+ "required": false,
58
+ "optional": true,
59
+ "docs": {
60
+ "tags": [],
61
+ "text": "Collapse text for screen readers"
62
+ },
63
+ "attribute": "collapse-text",
64
+ "reflect": false,
65
+ "defaultValue": "\"collapse\""
95
66
  },
96
- "complexType": {
97
- "original": "any",
98
- "resolved": "any",
99
- "references": {}
67
+ "expanded": {
68
+ "type": "boolean",
69
+ "mutable": true,
70
+ "complexType": {
71
+ "original": "boolean",
72
+ "resolved": "boolean",
73
+ "references": {}
74
+ },
75
+ "required": false,
76
+ "optional": true,
77
+ "docs": {
78
+ "tags": [],
79
+ "text": "Is the chevron expanded"
80
+ },
81
+ "attribute": "expanded",
82
+ "reflect": true,
83
+ "defaultValue": "false"
100
84
  }
101
- }]; }
102
- static get watchers() { return [{
103
- "propName": "expanded",
104
- "methodName": "handleExpandedChanged"
105
- }]; }
85
+ };
86
+ }
87
+ static get events() {
88
+ return [{
89
+ "method": "changed",
90
+ "name": "changed",
91
+ "bubbles": true,
92
+ "cancelable": true,
93
+ "composed": true,
94
+ "docs": {
95
+ "tags": [],
96
+ "text": "Fires up when the expanded status changes"
97
+ },
98
+ "complexType": {
99
+ "original": "any",
100
+ "resolved": "any",
101
+ "references": {}
102
+ }
103
+ }];
104
+ }
105
+ static get watchers() {
106
+ return [{
107
+ "propName": "expanded",
108
+ "methodName": "handleExpandedChanged"
109
+ }];
110
+ }
106
111
  }
107
- //# sourceMappingURL=dnn-chevron.js.map
112
+ //# sourceMappingURL=dnn-chevron.js.map
@@ -35,4 +35,4 @@ Chevron.args = {
35
35
  collapseText: 'collapse',
36
36
  expanded: false,
37
37
  };
38
- //# sourceMappingURL=dnn-chevron.stories.js.map
38
+ //# sourceMappingURL=dnn-chevron.stories.js.map
@@ -1,4 +1,4 @@
1
- import { Component, Host, h, Prop, Element, Event, Watch, Listen, Method } from '@stencil/core';
1
+ import { Host, h } from '@stencil/core';
2
2
  export class DnnCollapsible {
3
3
  constructor() {
4
4
  /** Defines if the panel is expanded or not. */
@@ -46,101 +46,113 @@ export class DnnCollapsible {
46
46
  this.container.style.transition = `max-height ${this.transitionDuration}ms ease-in-out`;
47
47
  }
48
48
  render() {
49
- return (h(Host, null,
50
- h("div", { id: "container", class: this.expanded && "expanded", ref: el => this.container = el, style: { transition: `max-height ${this.transitionDuration}ms ease-in-out` } },
51
- h("slot", null))));
49
+ return (h(Host, null, h("div", { id: "container", class: this.expanded && "expanded", ref: el => this.container = el, style: { transition: `max-height ${this.transitionDuration}ms ease-in-out` } }, h("slot", null))));
52
50
  }
53
51
  static get is() { return "dnn-collapsible"; }
54
52
  static get encapsulation() { return "shadow"; }
55
- static get originalStyleUrls() { return {
56
- "$": ["dnn-collapsible.scss"]
57
- }; }
58
- static get styleUrls() { return {
59
- "$": ["dnn-collapsible.css"]
60
- }; }
61
- static get properties() { return {
62
- "expanded": {
63
- "type": "boolean",
64
- "mutable": false,
65
- "complexType": {
66
- "original": "boolean",
67
- "resolved": "boolean",
68
- "references": {}
69
- },
70
- "required": false,
71
- "optional": false,
72
- "docs": {
73
- "tags": [],
74
- "text": "Defines if the panel is expanded or not."
75
- },
76
- "attribute": "expanded",
77
- "reflect": true,
78
- "defaultValue": "false"
79
- },
80
- "transitionDuration": {
81
- "type": "number",
82
- "mutable": false,
83
- "complexType": {
84
- "original": "number",
85
- "resolved": "number",
86
- "references": {}
87
- },
88
- "required": false,
89
- "optional": true,
90
- "docs": {
91
- "tags": [],
92
- "text": "Defines the transition time in ms, defaults to 150ms"
93
- },
94
- "attribute": "transition-duration",
95
- "reflect": false,
96
- "defaultValue": "150"
97
- }
98
- }; }
99
- static get events() { return [{
100
- "method": "dnnCollapsibleHeightChanged",
101
- "name": "dnnCollapsibleHeightChanged",
102
- "bubbles": true,
103
- "cancelable": true,
104
- "composed": true,
105
- "docs": {
106
- "tags": [],
107
- "text": "Fires whenever the collapsible height has changed"
53
+ static get originalStyleUrls() {
54
+ return {
55
+ "$": ["dnn-collapsible.scss"]
56
+ };
57
+ }
58
+ static get styleUrls() {
59
+ return {
60
+ "$": ["dnn-collapsible.css"]
61
+ };
62
+ }
63
+ static get properties() {
64
+ return {
65
+ "expanded": {
66
+ "type": "boolean",
67
+ "mutable": false,
68
+ "complexType": {
69
+ "original": "boolean",
70
+ "resolved": "boolean",
71
+ "references": {}
72
+ },
73
+ "required": false,
74
+ "optional": false,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": "Defines if the panel is expanded or not."
78
+ },
79
+ "attribute": "expanded",
80
+ "reflect": true,
81
+ "defaultValue": "false"
108
82
  },
109
- "complexType": {
110
- "original": "void",
111
- "resolved": "void",
112
- "references": {}
83
+ "transitionDuration": {
84
+ "type": "number",
85
+ "mutable": false,
86
+ "complexType": {
87
+ "original": "number",
88
+ "resolved": "number",
89
+ "references": {}
90
+ },
91
+ "required": false,
92
+ "optional": true,
93
+ "docs": {
94
+ "tags": [],
95
+ "text": "Defines the transition time in ms, defaults to 150ms"
96
+ },
97
+ "attribute": "transition-duration",
98
+ "reflect": false,
99
+ "defaultValue": "150"
113
100
  }
114
- }]; }
115
- static get methods() { return {
116
- "updateSize": {
117
- "complexType": {
118
- "signature": "() => Promise<void>",
119
- "parameters": [],
120
- "references": {
121
- "Promise": {
122
- "location": "global"
123
- }
101
+ };
102
+ }
103
+ static get events() {
104
+ return [{
105
+ "method": "dnnCollapsibleHeightChanged",
106
+ "name": "dnnCollapsibleHeightChanged",
107
+ "bubbles": true,
108
+ "cancelable": true,
109
+ "composed": true,
110
+ "docs": {
111
+ "tags": [],
112
+ "text": "Fires whenever the collapsible height has changed"
124
113
  },
125
- "return": "Promise<void>"
126
- },
127
- "docs": {
128
- "text": "Updates the component height, use to update after a slot content changes.",
129
- "tags": []
114
+ "complexType": {
115
+ "original": "void",
116
+ "resolved": "void",
117
+ "references": {}
118
+ }
119
+ }];
120
+ }
121
+ static get methods() {
122
+ return {
123
+ "updateSize": {
124
+ "complexType": {
125
+ "signature": "() => Promise<void>",
126
+ "parameters": [],
127
+ "references": {
128
+ "Promise": {
129
+ "location": "global"
130
+ }
131
+ },
132
+ "return": "Promise<void>"
133
+ },
134
+ "docs": {
135
+ "text": "Updates the component height, use to update after a slot content changes.",
136
+ "tags": []
137
+ }
130
138
  }
131
- }
132
- }; }
139
+ };
140
+ }
133
141
  static get elementRef() { return "el"; }
134
- static get watchers() { return [{
135
- "propName": "expanded",
136
- "methodName": "handledExpandedChanged"
137
- }]; }
138
- static get listeners() { return [{
139
- "name": "dnnCollapsibleHeightChanged",
140
- "method": "handleHeightChanged",
141
- "target": undefined,
142
- "capture": false,
143
- "passive": false
144
- }]; }
142
+ static get watchers() {
143
+ return [{
144
+ "propName": "expanded",
145
+ "methodName": "handledExpandedChanged"
146
+ }];
147
+ }
148
+ static get listeners() {
149
+ return [{
150
+ "name": "dnnCollapsibleHeightChanged",
151
+ "method": "handleHeightChanged",
152
+ "target": undefined,
153
+ "capture": false,
154
+ "passive": false
155
+ }];
156
+ }
145
157
  }
146
- //# sourceMappingURL=dnn-collapsible.js.map
158
+ //# sourceMappingURL=dnn-collapsible.js.map
@@ -36,4 +36,4 @@ Collapsible.args = {
36
36
  expanded: false,
37
37
  transitionDuration: 150,
38
38
  };
39
- //# sourceMappingURL=dnn-collapsible.stories.js.map
39
+ //# sourceMappingURL=dnn-collapsible.stories.js.map