@dnncommunity/dnn-elements 0.13.0-beta.1
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/LICENSE +21 -0
- package/README.md +24 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/css-shim-3bfdba4f.js +8 -0
- package/dist/cjs/css-shim-3bfdba4f.js.map +1 -0
- package/dist/cjs/debounce-1de79bc7.js +24 -0
- package/dist/cjs/debounce-1de79bc7.js.map +1 -0
- package/dist/cjs/dnn-button.cjs.entry.js +88 -0
- package/dist/cjs/dnn-button.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-button_14.cjs.entry.js +1580 -0
- package/dist/cjs/dnn-button_14.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-checkbox.cjs.entry.js +58 -0
- package/dist/cjs/dnn-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-chevron.cjs.entry.js +34 -0
- package/dist/cjs/dnn-chevron.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-collapsible.cjs.entry.js +112 -0
- package/dist/cjs/dnn-collapsible.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-color-picker.cjs.entry.js +508 -0
- package/dist/cjs/dnn-color-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-dropzone.cjs.entry.js +153 -0
- package/dist/cjs/dnn-dropzone.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-image-cropper.cjs.entry.js +424 -0
- package/dist/cjs/dnn-image-cropper.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-modal.cjs.entry.js +62 -0
- package/dist/cjs/dnn-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-searchbox.cjs.entry.js +66 -0
- package/dist/cjs/dnn-searchbox.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-sort-icon.cjs.entry.js +43 -0
- package/dist/cjs/dnn-sort-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-tab.cjs.entry.js +31 -0
- package/dist/cjs/dnn-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-tabs.cjs.entry.js +50 -0
- package/dist/cjs/dnn-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-toggle.cjs.entry.js +37 -0
- package/dist/cjs/dnn-toggle.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-treeview-item.cjs.entry.js +48 -0
- package/dist/cjs/dnn-treeview-item.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn.cjs.js +129 -0
- package/dist/cjs/dnn.cjs.js.map +1 -0
- package/dist/cjs/dom-8ac1ad03.js +77 -0
- package/dist/cjs/dom-8ac1ad03.js.map +1 -0
- package/dist/cjs/index-e85ec026.js +1327 -0
- package/dist/cjs/index-e85ec026.js.map +1 -0
- package/dist/cjs/index-eede7745.js +3069 -0
- package/dist/cjs/index-eede7745.js.map +1 -0
- package/dist/cjs/index.cjs.js +52 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +39 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/shadow-css-41d9783d.js +392 -0
- package/dist/cjs/shadow-css-41d9783d.js.map +1 -0
- package/dist/collection/collection-manifest.json +25 -0
- package/dist/collection/components/dnn-button/dnn-button.css +87 -0
- package/dist/collection/components/dnn-button/dnn-button.js +272 -0
- package/dist/collection/components/dnn-button/dnn-button.js.map +1 -0
- package/dist/collection/components/dnn-checkbox/dnn-checkbox.css +27 -0
- package/dist/collection/components/dnn-checkbox/dnn-checkbox.js +140 -0
- package/dist/collection/components/dnn-checkbox/dnn-checkbox.js.map +1 -0
- package/dist/collection/components/dnn-chevron/dnn-chevron.css +30 -0
- package/dist/collection/components/dnn-chevron/dnn-chevron.js +107 -0
- package/dist/collection/components/dnn-chevron/dnn-chevron.js.map +1 -0
- package/dist/collection/components/dnn-collapsible/dnn-collapsible.css +8 -0
- package/dist/collection/components/dnn-collapsible/dnn-collapsible.js +188 -0
- package/dist/collection/components/dnn-collapsible/dnn-collapsible.js.map +1 -0
- package/dist/collection/components/dnn-color-picker/dnn-color-picker.css +225 -0
- package/dist/collection/components/dnn-color-picker/dnn-color-picker.js +434 -0
- package/dist/collection/components/dnn-color-picker/dnn-color-picker.js.map +1 -0
- package/dist/collection/components/dnn-dropzone/dnn-dropzone.css +62 -0
- package/dist/collection/components/dnn-dropzone/dnn-dropzone.js +266 -0
- package/dist/collection/components/dnn-dropzone/dnn-dropzone.js.map +1 -0
- package/dist/collection/components/dnn-image-cropper/CornerType.js +9 -0
- package/dist/collection/components/dnn-image-cropper/CornerType.js.map +1 -0
- package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.css +80 -0
- package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.js +539 -0
- package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.js.map +1 -0
- package/dist/collection/components/dnn-modal/dnn-modal.css +67 -0
- package/dist/collection/components/dnn-modal/dnn-modal.js +173 -0
- package/dist/collection/components/dnn-modal/dnn-modal.js.map +1 -0
- package/dist/collection/components/dnn-searchbox/dnn-searchbox.css +48 -0
- package/dist/collection/components/dnn-searchbox/dnn-searchbox.js +137 -0
- package/dist/collection/components/dnn-searchbox/dnn-searchbox.js.map +1 -0
- package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.css +32 -0
- package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.js +81 -0
- package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.js.map +1 -0
- package/dist/collection/components/dnn-tab/dnn-tab.css +0 -0
- package/dist/collection/components/dnn-tab/dnn-tab.js +84 -0
- package/dist/collection/components/dnn-tab/dnn-tab.js.map +1 -0
- package/dist/collection/components/dnn-tabs/dnn-tabs.css +40 -0
- package/dist/collection/components/dnn-tabs/dnn-tabs.js +53 -0
- package/dist/collection/components/dnn-tabs/dnn-tabs.js.map +1 -0
- package/dist/collection/components/dnn-toggle/dnn-toggle.css +52 -0
- package/dist/collection/components/dnn-toggle/dnn-toggle.js +94 -0
- package/dist/collection/components/dnn-toggle/dnn-toggle.js.map +1 -0
- package/dist/collection/components/dnn-toggle/toggle-interface.js +2 -0
- package/dist/collection/components/dnn-toggle/toggle-interface.js.map +1 -0
- package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.css +47 -0
- package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.js +77 -0
- package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.js.map +1 -0
- package/dist/collection/index.js +3 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utilities/colorInfo.js +191 -0
- package/dist/collection/utilities/colorInfo.js.map +1 -0
- package/dist/collection/utilities/debounce.js +19 -0
- package/dist/collection/utilities/debounce.js.map +1 -0
- package/dist/collection/utilities/dnnServicesFramework.js +42 -0
- package/dist/collection/utilities/dnnServicesFramework.js.map +1 -0
- package/dist/dnn/app-globals-0f993ce5.js +5 -0
- package/dist/dnn/app-globals-0f993ce5.js.map +1 -0
- package/dist/dnn/css-shim-20dbffa5.js +6 -0
- package/dist/dnn/css-shim-20dbffa5.js.map +1 -0
- package/dist/dnn/debounce-06f55268.js +22 -0
- package/dist/dnn/debounce-06f55268.js.map +1 -0
- package/dist/dnn/dnn-button.entry.js +84 -0
- package/dist/dnn/dnn-button.entry.js.map +1 -0
- package/dist/dnn/dnn-checkbox.entry.js +54 -0
- package/dist/dnn/dnn-checkbox.entry.js.map +1 -0
- package/dist/dnn/dnn-chevron.entry.js +30 -0
- package/dist/dnn/dnn-chevron.entry.js.map +1 -0
- package/dist/dnn/dnn-collapsible.entry.js +108 -0
- package/dist/dnn/dnn-collapsible.entry.js.map +1 -0
- package/dist/dnn/dnn-color-picker.entry.js +504 -0
- package/dist/dnn/dnn-color-picker.entry.js.map +1 -0
- package/dist/dnn/dnn-dropzone.entry.js +149 -0
- package/dist/dnn/dnn-dropzone.entry.js.map +1 -0
- package/dist/dnn/dnn-image-cropper.entry.js +420 -0
- package/dist/dnn/dnn-image-cropper.entry.js.map +1 -0
- package/dist/dnn/dnn-modal.entry.js +58 -0
- package/dist/dnn/dnn-modal.entry.js.map +1 -0
- package/dist/dnn/dnn-searchbox.entry.js +62 -0
- package/dist/dnn/dnn-searchbox.entry.js.map +1 -0
- package/dist/dnn/dnn-sort-icon.entry.js +39 -0
- package/dist/dnn/dnn-sort-icon.entry.js.map +1 -0
- package/dist/dnn/dnn-tab.entry.js +27 -0
- package/dist/dnn/dnn-tab.entry.js.map +1 -0
- package/dist/dnn/dnn-tabs.entry.js +46 -0
- package/dist/dnn/dnn-tabs.entry.js.map +1 -0
- package/dist/dnn/dnn-toggle.entry.js +33 -0
- package/dist/dnn/dnn-toggle.entry.js.map +1 -0
- package/dist/dnn/dnn-treeview-item.entry.js +44 -0
- package/dist/dnn/dnn-treeview-item.entry.js.map +1 -0
- package/dist/dnn/dnn.esm.js +127 -0
- package/dist/dnn/dnn.esm.js.map +1 -0
- package/dist/dnn/dom-c5ed0ba5.js +75 -0
- package/dist/dnn/dom-c5ed0ba5.js.map +1 -0
- package/dist/dnn/index-6c0764e5.js +3033 -0
- package/dist/dnn/index-6c0764e5.js.map +1 -0
- package/dist/dnn/index.esm.js +47 -0
- package/dist/dnn/index.esm.js.map +1 -0
- package/dist/dnn/p-0e94f5ee.js +2 -0
- package/dist/dnn/p-0e94f5ee.js.map +1 -0
- package/dist/dnn/p-7acf3104.entry.js +11 -0
- package/dist/dnn/p-7acf3104.entry.js.map +1 -0
- package/dist/dnn/p-bd3d3361.js +2 -0
- package/dist/dnn/p-bd3d3361.js.map +1 -0
- package/dist/dnn/shadow-css-8c625855.js +390 -0
- package/dist/dnn/shadow-css-8c625855.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/css-shim-20dbffa5.js +6 -0
- package/dist/esm/css-shim-20dbffa5.js.map +1 -0
- package/dist/esm/debounce-06f55268.js +22 -0
- package/dist/esm/debounce-06f55268.js.map +1 -0
- package/dist/esm/dnn-button.entry.js +84 -0
- package/dist/esm/dnn-button.entry.js.map +1 -0
- package/dist/esm/dnn-button_14.entry.js +1563 -0
- package/dist/esm/dnn-button_14.entry.js.map +1 -0
- package/dist/esm/dnn-checkbox.entry.js +54 -0
- package/dist/esm/dnn-checkbox.entry.js.map +1 -0
- package/dist/esm/dnn-chevron.entry.js +30 -0
- package/dist/esm/dnn-chevron.entry.js.map +1 -0
- package/dist/esm/dnn-collapsible.entry.js +108 -0
- package/dist/esm/dnn-collapsible.entry.js.map +1 -0
- package/dist/esm/dnn-color-picker.entry.js +504 -0
- package/dist/esm/dnn-color-picker.entry.js.map +1 -0
- package/dist/esm/dnn-dropzone.entry.js +149 -0
- package/dist/esm/dnn-dropzone.entry.js.map +1 -0
- package/dist/esm/dnn-image-cropper.entry.js +420 -0
- package/dist/esm/dnn-image-cropper.entry.js.map +1 -0
- package/dist/esm/dnn-modal.entry.js +58 -0
- package/dist/esm/dnn-modal.entry.js.map +1 -0
- package/dist/esm/dnn-searchbox.entry.js +62 -0
- package/dist/esm/dnn-searchbox.entry.js.map +1 -0
- package/dist/esm/dnn-sort-icon.entry.js +39 -0
- package/dist/esm/dnn-sort-icon.entry.js.map +1 -0
- package/dist/esm/dnn-tab.entry.js +27 -0
- package/dist/esm/dnn-tab.entry.js.map +1 -0
- package/dist/esm/dnn-tabs.entry.js +46 -0
- package/dist/esm/dnn-tabs.entry.js.map +1 -0
- package/dist/esm/dnn-toggle.entry.js +33 -0
- package/dist/esm/dnn-toggle.entry.js.map +1 -0
- package/dist/esm/dnn-treeview-item.entry.js +44 -0
- package/dist/esm/dnn-treeview-item.entry.js.map +1 -0
- package/dist/esm/dnn.js +127 -0
- package/dist/esm/dnn.js.map +1 -0
- package/dist/esm/dom-c5ed0ba5.js +75 -0
- package/dist/esm/dom-c5ed0ba5.js.map +1 -0
- package/dist/esm/index-6c0764e5.js +3033 -0
- package/dist/esm/index-6c0764e5.js.map +1 -0
- package/dist/esm/index-f79d9e82.js +1299 -0
- package/dist/esm/index-f79d9e82.js.map +1 -0
- package/dist/esm/index.js +47 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +35 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/shadow-css-8c625855.js +390 -0
- package/dist/esm/shadow-css-8c625855.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/dnn-button/dnn-button.d.ts +55 -0
- package/dist/types/components/dnn-checkbox/dnn-checkbox.d.ts +16 -0
- package/dist/types/components/dnn-chevron/dnn-chevron.d.ts +13 -0
- package/dist/types/components/dnn-collapsible/dnn-collapsible.d.ts +22 -0
- package/dist/types/components/dnn-color-picker/dnn-color-picker.d.ts +46 -0
- package/dist/types/components/dnn-dropzone/dnn-dropzone.d.ts +45 -0
- package/dist/types/components/dnn-image-cropper/CornerType.d.ts +6 -0
- package/dist/types/components/dnn-image-cropper/dnn-image-cropper.d.ts +62 -0
- package/dist/types/components/dnn-modal/dnn-modal.d.ts +35 -0
- package/dist/types/components/dnn-searchbox/dnn-searchbox.d.ts +22 -0
- package/dist/types/components/dnn-sort-icon/dnn-sort-icon.d.ts +9 -0
- package/dist/types/components/dnn-tab/dnn-tab.d.ts +11 -0
- package/dist/types/components/dnn-tabs/dnn-tabs.d.ts +11 -0
- package/dist/types/components/dnn-toggle/dnn-toggle.d.ts +13 -0
- package/dist/types/components/dnn-toggle/toggle-interface.d.ts +3 -0
- package/dist/types/components/dnn-treeview-item/dnn-treeview-item.d.ts +16 -0
- package/dist/types/components.d.ts +611 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utilities/colorInfo.d.ts +52 -0
- package/dist/types/utilities/debounce.d.ts +5 -0
- package/dist/types/utilities/dnnServicesFramework.d.ts +19 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +48 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Component, Host, h, Prop, Event } from '@stencil/core';
|
|
2
|
+
import { Watch } from '@stencil/core';
|
|
3
|
+
export class DnnChevron {
|
|
4
|
+
constructor() {
|
|
5
|
+
/** Expand text for screen readers */
|
|
6
|
+
this.expandText = "expand";
|
|
7
|
+
/** Collapse text for screen readers */
|
|
8
|
+
this.collapseText = "collapse";
|
|
9
|
+
/** Is the chevron expanded */
|
|
10
|
+
this.expanded = false;
|
|
11
|
+
}
|
|
12
|
+
handleExpandedChanged(newValue) {
|
|
13
|
+
this.changed.emit(newValue);
|
|
14
|
+
}
|
|
15
|
+
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" })))));
|
|
21
|
+
}
|
|
22
|
+
static get is() { return "dnn-chevron"; }
|
|
23
|
+
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"
|
|
80
|
+
},
|
|
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"
|
|
95
|
+
},
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "any",
|
|
98
|
+
"resolved": "any",
|
|
99
|
+
"references": {}
|
|
100
|
+
}
|
|
101
|
+
}]; }
|
|
102
|
+
static get watchers() { return [{
|
|
103
|
+
"propName": "expanded",
|
|
104
|
+
"methodName": "handleExpandedChanged"
|
|
105
|
+
}]; }
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=dnn-chevron.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dnn-chevron.js","sourceRoot":"","sources":["../../../src/components/dnn-chevron/dnn-chevron.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOtC,MAAM,OAAO,UAAU;EALvB;IAOE,qCAAqC;IAC7B,eAAU,GAAY,QAAQ,CAAC;IAEvC,uCAAuC;IAC/B,iBAAY,GAAY,UAAU,CAAC;IAE3C,8BAA8B;IACQ,aAAQ,GAAa,KAAK,CAAC;GAsBlE;EAhBC,qBAAqB,CAAC,QAAiB;IACrC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;EAC9B,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,4BAAoB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EACrE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ;QAE7C,WAAK,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,SAAS;UAAC,YAAM,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAE;UAAA,YAAM,CAAC,EAAC,gDAAgD,GAAE,CAAM,CACpM,CACJ,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop, Event } from '@stencil/core';\r\nimport { EventEmitter } from '@stencil/core';\r\nimport { Watch } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'dnn-chevron',\r\n styleUrl: 'dnn-chevron.scss',\r\n shadow: true\r\n})\r\nexport class DnnChevron {\r\n\r\n /** Expand text for screen readers */\r\n @Prop() expandText?: string = \"expand\";\r\n\r\n /** Collapse text for screen readers */\r\n @Prop() collapseText?: string = \"collapse\";\r\n\r\n /** Is the chevron expanded */\r\n @Prop({mutable: true, reflect: true}) expanded?: boolean = false;\r\n\r\n /** Fires up when the expanded status changes */\r\n @Event() changed: EventEmitter;\r\n\r\n @Watch('expanded')\r\n handleExpandedChanged(newValue: boolean) {\r\n this.changed.emit(newValue);\r\n }\r\n\r\n render() {\r\n return (\r\n <Host>\r\n <button aria-label={this.expanded ? this.collapseText : this.expandText}\r\n onClick={() => this.expanded = !this.expanded}\r\n >\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"#000000\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"/></svg>\r\n </button>\r\n </Host>\r\n );\r\n }\r\n\r\n}\r\n"]}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Component, Host, h, Prop, Element, Watch, State, Method, Event, Listen } from '@stencil/core';
|
|
8
|
+
import { Debounce } from '../../utilities/debounce';
|
|
9
|
+
export class DnnCollapsible {
|
|
10
|
+
constructor() {
|
|
11
|
+
/** Defines if the panel is expanded or not. */
|
|
12
|
+
this.expanded = false;
|
|
13
|
+
/** Defines the transition time in ms, defaults to 100ms */
|
|
14
|
+
this.transitionDuration = 150;
|
|
15
|
+
this.animating = false;
|
|
16
|
+
}
|
|
17
|
+
handleExpandedChanged(newValue) {
|
|
18
|
+
this.animating = true;
|
|
19
|
+
requestAnimationFrame(() => {
|
|
20
|
+
const container = this.el.shadowRoot.querySelector("#container");
|
|
21
|
+
if (newValue) {
|
|
22
|
+
container.style.height = container.scrollHeight + "px";
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
container.style.height = "0px";
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
requestAnimationFrame(() => {
|
|
29
|
+
this.animating = false;
|
|
30
|
+
this.dnnCollapsibleHeightChanged.emit();
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/** Updates the component height, use to update after a slot content changes. */
|
|
34
|
+
async updateSize() {
|
|
35
|
+
this.updateComponentSize();
|
|
36
|
+
}
|
|
37
|
+
updateComponentSize() {
|
|
38
|
+
if (this.expanded) {
|
|
39
|
+
this.animating = true;
|
|
40
|
+
requestAnimationFrame(() => {
|
|
41
|
+
const container = this.el.shadowRoot.querySelector("#container");
|
|
42
|
+
let newHeight = 0;
|
|
43
|
+
container.querySelector('slot').assignedElements().forEach(node => {
|
|
44
|
+
newHeight += node.scrollHeight;
|
|
45
|
+
});
|
|
46
|
+
container.style.height = newHeight + "px";
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
handleOtherCollapsibleHeightChanged() {
|
|
51
|
+
setTimeout(() => {
|
|
52
|
+
this.updateComponentSize();
|
|
53
|
+
}, this.transitionDuration);
|
|
54
|
+
}
|
|
55
|
+
handleMutation(mutationList) {
|
|
56
|
+
mutationList.forEach(mutation => {
|
|
57
|
+
requestAnimationFrame(() => {
|
|
58
|
+
mutation.target.closest('dnn-collapsible').updateSize();
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
componentWillLoad() {
|
|
63
|
+
this.mutationObserver = new MutationObserver((mutationList) => {
|
|
64
|
+
this.handleMutation(mutationList);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
componentDidLoad() {
|
|
68
|
+
const container = this.el.shadowRoot.querySelector('#container');
|
|
69
|
+
container.style.transitionDuration = this.transitionDuration + 'ms';
|
|
70
|
+
// Monitor for content changes and update own height
|
|
71
|
+
const childNodes = [this.el];
|
|
72
|
+
childNodes.forEach(element => {
|
|
73
|
+
this.mutationObserver.observe(element, { attributes: true, characterData: true, childList: true, subtree: true });
|
|
74
|
+
});
|
|
75
|
+
const slot = this.el.shadowRoot.querySelector('slot');
|
|
76
|
+
slot.addEventListener("slotchange", () => {
|
|
77
|
+
this.updateSize();
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
disconnectedCallback() {
|
|
81
|
+
this.mutationObserver.disconnect();
|
|
82
|
+
}
|
|
83
|
+
/*eslint-enable @stencil/own-methods-must-be-private */
|
|
84
|
+
render() {
|
|
85
|
+
return (h(Host, null,
|
|
86
|
+
h("div", { id: "container" },
|
|
87
|
+
h("slot", null))));
|
|
88
|
+
}
|
|
89
|
+
static get is() { return "dnn-collapsible"; }
|
|
90
|
+
static get encapsulation() { return "shadow"; }
|
|
91
|
+
static get originalStyleUrls() { return {
|
|
92
|
+
"$": ["dnn-collapsible.scss"]
|
|
93
|
+
}; }
|
|
94
|
+
static get styleUrls() { return {
|
|
95
|
+
"$": ["dnn-collapsible.css"]
|
|
96
|
+
}; }
|
|
97
|
+
static get properties() { return {
|
|
98
|
+
"expanded": {
|
|
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 the panel is expanded or not."
|
|
111
|
+
},
|
|
112
|
+
"attribute": "expanded",
|
|
113
|
+
"reflect": true,
|
|
114
|
+
"defaultValue": "false"
|
|
115
|
+
},
|
|
116
|
+
"transitionDuration": {
|
|
117
|
+
"type": "number",
|
|
118
|
+
"mutable": false,
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "number",
|
|
121
|
+
"resolved": "number",
|
|
122
|
+
"references": {}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": true,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [],
|
|
128
|
+
"text": "Defines the transition time in ms, defaults to 100ms"
|
|
129
|
+
},
|
|
130
|
+
"attribute": "transition-duration",
|
|
131
|
+
"reflect": false,
|
|
132
|
+
"defaultValue": "150"
|
|
133
|
+
}
|
|
134
|
+
}; }
|
|
135
|
+
static get states() { return {
|
|
136
|
+
"animating": {}
|
|
137
|
+
}; }
|
|
138
|
+
static get events() { return [{
|
|
139
|
+
"method": "dnnCollapsibleHeightChanged",
|
|
140
|
+
"name": "dnnCollapsibleHeightChanged",
|
|
141
|
+
"bubbles": true,
|
|
142
|
+
"cancelable": true,
|
|
143
|
+
"composed": true,
|
|
144
|
+
"docs": {
|
|
145
|
+
"tags": [],
|
|
146
|
+
"text": "Fires whenever the collapsible height has changed"
|
|
147
|
+
},
|
|
148
|
+
"complexType": {
|
|
149
|
+
"original": "void",
|
|
150
|
+
"resolved": "void",
|
|
151
|
+
"references": {}
|
|
152
|
+
}
|
|
153
|
+
}]; }
|
|
154
|
+
static get methods() { return {
|
|
155
|
+
"updateSize": {
|
|
156
|
+
"complexType": {
|
|
157
|
+
"signature": "() => Promise<void>",
|
|
158
|
+
"parameters": [],
|
|
159
|
+
"references": {
|
|
160
|
+
"Promise": {
|
|
161
|
+
"location": "global"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"return": "Promise<void>"
|
|
165
|
+
},
|
|
166
|
+
"docs": {
|
|
167
|
+
"text": "Updates the component height, use to update after a slot content changes.",
|
|
168
|
+
"tags": []
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}; }
|
|
172
|
+
static get elementRef() { return "el"; }
|
|
173
|
+
static get watchers() { return [{
|
|
174
|
+
"propName": "expanded",
|
|
175
|
+
"methodName": "handleExpandedChanged"
|
|
176
|
+
}]; }
|
|
177
|
+
static get listeners() { return [{
|
|
178
|
+
"name": "dnnCollapsibleHeightChanged",
|
|
179
|
+
"method": "handleOtherCollapsibleHeightChanged",
|
|
180
|
+
"target": undefined,
|
|
181
|
+
"capture": false,
|
|
182
|
+
"passive": false
|
|
183
|
+
}]; }
|
|
184
|
+
}
|
|
185
|
+
__decorate([
|
|
186
|
+
Debounce()
|
|
187
|
+
], DnnCollapsible.prototype, "updateSize", null);
|
|
188
|
+
//# sourceMappingURL=dnn-collapsible.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dnn-collapsible.js","sourceRoot":"","sources":["../../../src/components/dnn-collapsible/dnn-collapsible.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, h, Prop, Element, Watch, State, Method, Event, EventEmitter, Listen } from '@stencil/core';\r\nimport { Debounce } from '../../utilities/debounce';\r\n\r\n@Component({\r\n tag: \"dnn-collapsible\",\r\n styleUrl: \"dnn-collapsible.scss\",\r\n shadow: true\r\n})\r\nexport class DnnCollapsible {\r\n\r\n @Element() el: HTMLDnnCollapsibleElement;\r\n\r\n /** Defines if the panel is expanded or not. */\r\n @Prop({reflect: true}) expanded: boolean = false;\r\n\r\n /** Defines the transition time in ms, defaults to 100ms */\r\n @Prop() transitionDuration?: number = 150;\r\n\r\n @State() animating: boolean = false;\r\n\r\n @Watch(\"expanded\")\r\n handleExpandedChanged(newValue: boolean){\r\n this.animating = true;\r\n requestAnimationFrame(() => {\r\n const container = this.el.shadowRoot.querySelector(\"#container\") as HTMLDivElement;\r\n if (newValue){\r\n container.style.height = container.scrollHeight + \"px\";\r\n }\r\n else{\r\n container.style.height = \"0px\";\r\n }\r\n });\r\n \r\n requestAnimationFrame(() => {\r\n this.animating = false;\r\n this.dnnCollapsibleHeightChanged.emit();\r\n });\r\n }\r\n\r\n /** Updates the component height, use to update after a slot content changes. */\r\n @Debounce()\r\n @Method()\r\n async updateSize() {\r\n this.updateComponentSize();\r\n }\r\n\r\n private updateComponentSize(){\r\n if (this.expanded){\r\n this.animating = true;\r\n requestAnimationFrame(() => {\r\n const container = this.el.shadowRoot.querySelector(\"#container\") as HTMLDivElement;\r\n let newHeight = 0;\r\n container.querySelector('slot').assignedElements().forEach(node => {\r\n newHeight += node.scrollHeight;\r\n });\r\n container.style.height = newHeight + \"px\";\r\n });\r\n }\r\n }\r\n\r\n /** Fires whenever the collapsible height has changed */\r\n @Event() dnnCollapsibleHeightChanged: EventEmitter<void>;\r\n\r\n @Listen('dnnCollapsibleHeightChanged')\r\n handleOtherCollapsibleHeightChanged(){\r\n setTimeout(() => {\r\n this.updateComponentSize();\r\n }, this.transitionDuration);\r\n }\r\n\r\n private mutationObserver: MutationObserver;\r\n\r\n private handleMutation(mutationList){\r\n mutationList.forEach(mutation => {\r\n requestAnimationFrame(() => {\r\n mutation.target.closest('dnn-collapsible').updateSize();\r\n });\r\n });\r\n }\r\n\r\n componentWillLoad() {\r\n this.mutationObserver = new MutationObserver((mutationList) => {\r\n this.handleMutation(mutationList);\r\n });\r\n }\r\n\r\n componentDidLoad(){\r\n const container = this.el.shadowRoot.querySelector('#container') as HTMLDivElement;\r\n container.style.transitionDuration = this.transitionDuration + 'ms';\r\n\r\n // Monitor for content changes and update own height\r\n const childNodes = [this.el];\r\n childNodes.forEach(element => {\r\n this.mutationObserver.observe(element, {attributes: true, characterData: true, childList: true, subtree: true});\r\n });\r\n\r\n const slot = this.el.shadowRoot.querySelector('slot');\r\n slot.addEventListener(\"slotchange\", () => {\r\n this.updateSize();\r\n });\r\n }\r\n\r\n disconnectedCallback(){\r\n this.mutationObserver.disconnect();\r\n }\r\n /*eslint-enable @stencil/own-methods-must-be-private */\r\n\r\n render() {\r\n return (\r\n <Host>\r\n <div id=\"container\">\r\n <slot></slot>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n\r\n}\r\n"]}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
.dnn-color-picker {
|
|
2
|
+
padding: 15px;
|
|
3
|
+
max-width: 400px;
|
|
4
|
+
}
|
|
5
|
+
.dnn-color-picker .dnn-color-sliders {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
min-width: 200px;
|
|
9
|
+
}
|
|
10
|
+
.dnn-color-picker .dnn-color-sliders .dnn-color-s-b {
|
|
11
|
+
border: 1px solid #ccc;
|
|
12
|
+
padding-bottom: var(--color-box-height, 50%);
|
|
13
|
+
position: relative;
|
|
14
|
+
background-color: red;
|
|
15
|
+
}
|
|
16
|
+
.dnn-color-picker .dnn-color-sliders .dnn-color-s-b:before {
|
|
17
|
+
content: "";
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
z-index: 1;
|
|
24
|
+
background: linear-gradient(to right, white, red);
|
|
25
|
+
mix-blend-mode: saturation;
|
|
26
|
+
}
|
|
27
|
+
.dnn-color-picker .dnn-color-sliders .dnn-color-s-b:after {
|
|
28
|
+
content: "";
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 0;
|
|
31
|
+
left: 0;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
z-index: 2;
|
|
35
|
+
background: linear-gradient(to bottom, white, black);
|
|
36
|
+
mix-blend-mode: luminosity;
|
|
37
|
+
}
|
|
38
|
+
.dnn-color-picker .dnn-color-sliders .dnn-color-s-b button {
|
|
39
|
+
position: absolute;
|
|
40
|
+
bottom: calc(50% - 4px);
|
|
41
|
+
left: calc(50% - 4px);
|
|
42
|
+
width: 8px;
|
|
43
|
+
height: 8px;
|
|
44
|
+
z-index: 3;
|
|
45
|
+
display: block;
|
|
46
|
+
background: none;
|
|
47
|
+
border: none;
|
|
48
|
+
margin-left: -4px;
|
|
49
|
+
margin-bottom: -4px;
|
|
50
|
+
padding: 7px;
|
|
51
|
+
background-color: #fff;
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
}
|
|
54
|
+
.dnn-color-picker .dnn-color-sliders .dnn-color-s-b button:before {
|
|
55
|
+
content: "";
|
|
56
|
+
position: absolute;
|
|
57
|
+
top: -1px;
|
|
58
|
+
left: -1px;
|
|
59
|
+
border-radius: 50%;
|
|
60
|
+
}
|
|
61
|
+
.dnn-color-picker .dnn-color-sliders .dnn-color-s-b button:after {
|
|
62
|
+
content: "";
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 0px;
|
|
65
|
+
left: 0px;
|
|
66
|
+
border-radius: 50%;
|
|
67
|
+
width: 10px;
|
|
68
|
+
height: 10px;
|
|
69
|
+
border: 2px solid #ccc;
|
|
70
|
+
}
|
|
71
|
+
.dnn-color-picker .dnn-color-sliders .dnn-color-bar {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
margin-top: 15px;
|
|
75
|
+
}
|
|
76
|
+
.dnn-color-picker .dnn-color-sliders .dnn-color-bar .dnn-color-result {
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
width: 50px;
|
|
79
|
+
height: 50px;
|
|
80
|
+
border-radius: 50%;
|
|
81
|
+
background: red;
|
|
82
|
+
}
|
|
83
|
+
.dnn-color-picker .dnn-color-sliders .dnn-color-bar .dnn-color-hue {
|
|
84
|
+
flex: auto;
|
|
85
|
+
margin-left: 10px;
|
|
86
|
+
height: 16px;
|
|
87
|
+
border: 1px solid #ccc;
|
|
88
|
+
position: relative;
|
|
89
|
+
background: linear-gradient(to right, #f00 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 84%, #f00 100%);
|
|
90
|
+
}
|
|
91
|
+
.dnn-color-picker .dnn-color-sliders .dnn-color-bar .dnn-color-hue button {
|
|
92
|
+
width: 10px;
|
|
93
|
+
height: 20px;
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: -2px;
|
|
96
|
+
left: calc(50% - 4px);
|
|
97
|
+
border: 0;
|
|
98
|
+
padding: 0;
|
|
99
|
+
background-color: transparent;
|
|
100
|
+
padding-left: -8px;
|
|
101
|
+
}
|
|
102
|
+
.dnn-color-picker .dnn-color-sliders .dnn-color-bar .dnn-color-hue button:before {
|
|
103
|
+
content: "";
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: -2px;
|
|
106
|
+
left: 0px;
|
|
107
|
+
border-radius: 3px;
|
|
108
|
+
width: 100%;
|
|
109
|
+
height: 100%;
|
|
110
|
+
border: 1px solid #ccc;
|
|
111
|
+
background-color: #fff;
|
|
112
|
+
}
|
|
113
|
+
.dnn-color-picker .dnn-color-fields {
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
justify-content: space-between;
|
|
117
|
+
}
|
|
118
|
+
.dnn-color-picker .dnn-color-fields .dnn-color-mode-switch {
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: flex-end;
|
|
121
|
+
padding: 0.5em;
|
|
122
|
+
}
|
|
123
|
+
.dnn-color-picker .dnn-color-fields .dnn-color-mode-switch button {
|
|
124
|
+
background-color: transparent;
|
|
125
|
+
border: none;
|
|
126
|
+
}
|
|
127
|
+
.dnn-color-picker .dnn-color-fields .dnn-color-mode-switch button svg {
|
|
128
|
+
width: 3em;
|
|
129
|
+
height: 3em;
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
outline: none;
|
|
132
|
+
}
|
|
133
|
+
.dnn-color-picker .dnn-color-fields .dnn-rgb-color-fields {
|
|
134
|
+
display: flex;
|
|
135
|
+
justify-content: space-evenly;
|
|
136
|
+
}
|
|
137
|
+
.dnn-color-picker .dnn-color-fields .dnn-rgb-color-fields .dnn-rgb-color-field {
|
|
138
|
+
display: flex;
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
flex: auto;
|
|
141
|
+
text-align: center;
|
|
142
|
+
padding: 0.5em;
|
|
143
|
+
}
|
|
144
|
+
.dnn-color-picker .dnn-color-fields .dnn-rgb-color-fields .dnn-rgb-color-field label {
|
|
145
|
+
padding-bottom: 0.25em;
|
|
146
|
+
}
|
|
147
|
+
.dnn-color-picker .dnn-color-fields .dnn-rgb-color-fields .dnn-rgb-color-field input {
|
|
148
|
+
border-radius: var(--dnn-button-radius, 3px);
|
|
149
|
+
border: 1px solid #ccc;
|
|
150
|
+
padding: 0.5em;
|
|
151
|
+
padding-left: 1.3em;
|
|
152
|
+
text-align: center;
|
|
153
|
+
}
|
|
154
|
+
.dnn-color-picker .dnn-color-fields .dnn-rgb-color-fields .dnn-rgb-color-field input.red {
|
|
155
|
+
border-color: red;
|
|
156
|
+
}
|
|
157
|
+
.dnn-color-picker .dnn-color-fields .dnn-rgb-color-fields .dnn-rgb-color-field input.green {
|
|
158
|
+
border-color: green;
|
|
159
|
+
}
|
|
160
|
+
.dnn-color-picker .dnn-color-fields .dnn-rgb-color-fields .dnn-rgb-color-field input.blue {
|
|
161
|
+
border-color: blue;
|
|
162
|
+
}
|
|
163
|
+
.dnn-color-picker .dnn-color-fields .dnn-hsl-color-fields {
|
|
164
|
+
display: flex;
|
|
165
|
+
justify-content: space-evenly;
|
|
166
|
+
}
|
|
167
|
+
.dnn-color-picker .dnn-color-fields .dnn-hsl-color-fields .dnn-hsl-color-field {
|
|
168
|
+
display: flex;
|
|
169
|
+
flex-direction: column;
|
|
170
|
+
flex: auto;
|
|
171
|
+
text-align: center;
|
|
172
|
+
padding: 0.5em;
|
|
173
|
+
}
|
|
174
|
+
.dnn-color-picker .dnn-color-fields .dnn-hsl-color-fields .dnn-hsl-color-field label {
|
|
175
|
+
padding-bottom: 0.25em;
|
|
176
|
+
}
|
|
177
|
+
.dnn-color-picker .dnn-color-fields .dnn-hsl-color-fields .dnn-hsl-color-field input {
|
|
178
|
+
border-radius: var(--dnn-button-radius, 3px);
|
|
179
|
+
border: 1px solid #ccc;
|
|
180
|
+
padding: 0.5em;
|
|
181
|
+
padding-left: 1.3em;
|
|
182
|
+
text-align: center;
|
|
183
|
+
}
|
|
184
|
+
.dnn-color-picker .dnn-color-fields .dnn-hex-color-fields {
|
|
185
|
+
display: flex;
|
|
186
|
+
justify-content: space-evenly;
|
|
187
|
+
}
|
|
188
|
+
.dnn-color-picker .dnn-color-fields .dnn-hex-color-fields .dnn-hex-color-field {
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
flex: auto;
|
|
192
|
+
text-align: center;
|
|
193
|
+
padding: 0.5em;
|
|
194
|
+
}
|
|
195
|
+
.dnn-color-picker .dnn-color-fields .dnn-hex-color-fields .dnn-hex-color-field label {
|
|
196
|
+
padding-bottom: 0.25em;
|
|
197
|
+
}
|
|
198
|
+
.dnn-color-picker .dnn-color-fields .dnn-hex-color-fields .dnn-hex-color-field .hex-input {
|
|
199
|
+
position: relative;
|
|
200
|
+
border-radius: var(--dnn-button-radius, 3px);
|
|
201
|
+
border: 1px solid #ccc;
|
|
202
|
+
padding: 0.323em;
|
|
203
|
+
text-align: center;
|
|
204
|
+
}
|
|
205
|
+
.dnn-color-picker .dnn-color-fields .dnn-hex-color-fields .dnn-hex-color-field .hex-input input {
|
|
206
|
+
border: 0;
|
|
207
|
+
padding: 0;
|
|
208
|
+
margin: 0;
|
|
209
|
+
width: 100%;
|
|
210
|
+
height: 100%;
|
|
211
|
+
text-align: center;
|
|
212
|
+
}
|
|
213
|
+
.dnn-color-picker .dnn-color-fields .dnn-hex-color-fields .dnn-hex-color-field .hex-input button {
|
|
214
|
+
position: absolute;
|
|
215
|
+
height: 100%;
|
|
216
|
+
top: 0;
|
|
217
|
+
right: 1em;
|
|
218
|
+
background-color: transparent;
|
|
219
|
+
border: 0;
|
|
220
|
+
padding: 0;
|
|
221
|
+
margin: 0;
|
|
222
|
+
}
|
|
223
|
+
.dnn-color-picker .dnn-color-fields .dnn-hex-color-fields .dnn-hex-color-field .hex-input button svg {
|
|
224
|
+
min-width: 1em;
|
|
225
|
+
}
|