@sankhyalabs/ezui 1.1.6 → 1.1.10

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 (149) hide show
  1. package/README.md +72 -72
  2. package/dist/cjs/{DataUnit-09a6e7be.js → DataUnit-95368a67.js} +418 -361
  3. package/dist/cjs/ez-action-chip.cjs.entry.js +41 -41
  4. package/dist/cjs/ez-button_14.cjs.entry.js +1933 -1847
  5. package/dist/cjs/ez-label-chip.cjs.entry.js +120 -120
  6. package/dist/cjs/ez-modal.cjs.entry.js +102 -95
  7. package/dist/cjs/ez-number-input.cjs.entry.js +236 -236
  8. package/dist/cjs/ez-time-input.cjs.entry.js +168 -168
  9. package/dist/cjs/ezui.cjs.js +1 -1
  10. package/dist/cjs/form-metadata.cjs.entry.js +65 -65
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/collection/components/ez-action-chip/ez-action-chip.css +82 -82
  13. package/dist/collection/components/ez-action-chip/ez-action-chip.js +109 -109
  14. package/dist/collection/components/ez-button/ez-button.css +94 -94
  15. package/dist/collection/components/ez-button/ez-button.js +125 -125
  16. package/dist/collection/components/ez-calendar/ez-calendar.css +210 -210
  17. package/dist/collection/components/ez-calendar/ez-calendar.js +215 -215
  18. package/dist/collection/components/ez-check/ez-check.css +265 -265
  19. package/dist/collection/components/ez-check/ez-check.js +168 -168
  20. package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.css +67 -67
  21. package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.js +108 -108
  22. package/dist/collection/components/ez-combo-box/ez-combo-box-interfaces.js +2 -2
  23. package/dist/collection/components/ez-combo-box/ez-combo-box.css +167 -167
  24. package/dist/collection/components/ez-combo-box/ez-combo-box.js +363 -363
  25. package/dist/collection/components/ez-date-input/ez-date-input.css +38 -38
  26. package/dist/collection/components/ez-date-input/ez-date-input.js +172 -172
  27. package/dist/collection/components/ez-form/ez-form.css +19 -19
  28. package/dist/collection/components/ez-form/ez-form.js +390 -289
  29. package/dist/collection/components/ez-form/store/Form.actions.js +132 -123
  30. package/dist/collection/components/ez-form/store/Form.reducer.js +194 -174
  31. package/dist/collection/components/ez-form/store/Form.selectors.js +44 -43
  32. package/dist/collection/components/ez-form/subcomponents/DataUnit.js +252 -207
  33. package/dist/collection/components/ez-form/subcomponents/FormMetadata.js +16 -16
  34. package/dist/collection/components/ez-form/subcomponents/css/place-holder.css +23 -23
  35. package/dist/collection/components/ez-form/subcomponents/form-metadata.js +173 -173
  36. package/dist/collection/components/ez-form/subcomponents/place-holder.js +14 -14
  37. package/dist/collection/components/ez-form/subcomponents/structure/Field.js +71 -71
  38. package/dist/collection/components/ez-form/subcomponents/structure/FieldSet.js +27 -27
  39. package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +40 -33
  40. package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +27 -18
  41. package/dist/collection/components/ez-icon/ez-icon.css +36 -36
  42. package/dist/collection/components/ez-icon/ez-icon.js +56 -56
  43. package/dist/collection/components/ez-label-chip/ez-label-chip.css +117 -117
  44. package/dist/collection/components/ez-label-chip/ez-label-chip.js +276 -276
  45. package/dist/collection/components/ez-modal/ez-modal.css +86 -86
  46. package/dist/collection/components/ez-modal/ez-modal.js +222 -200
  47. package/dist/collection/components/ez-number-input/ez-number-input.css +144 -144
  48. package/dist/collection/components/ez-number-input/ez-number-input.js +465 -465
  49. package/dist/collection/components/ez-popover/ez-popover.css +38 -38
  50. package/dist/collection/components/ez-popover/ez-popover.js +323 -323
  51. package/dist/collection/components/ez-search/ez-search.css +295 -295
  52. package/dist/collection/components/ez-search/ez-search.js +527 -527
  53. package/dist/collection/components/ez-tabselector/ez-tabselector.css +125 -125
  54. package/dist/collection/components/ez-tabselector/ez-tabselector.js +283 -283
  55. package/dist/collection/components/ez-text-area/ez-text-area.css +139 -139
  56. package/dist/collection/components/ez-text-area/ez-text-area.js +267 -267
  57. package/dist/collection/components/ez-text-input/ez-text-input.css +169 -169
  58. package/dist/collection/components/ez-text-input/ez-text-input.js +395 -395
  59. package/dist/collection/components/ez-time-input/ez-time-input.css +155 -155
  60. package/dist/collection/components/ez-time-input/ez-time-input.js +326 -326
  61. package/dist/collection/index.js +1 -1
  62. package/dist/collection/servidor.js +100 -100
  63. package/dist/collection/utils/FloatingManager.js +15 -15
  64. package/dist/collection/utils/utils.js +6 -6
  65. package/dist/custom-elements/index.js +3146 -2998
  66. package/dist/esm/{DataUnit-7a983910.js → DataUnit-4bb6a396.js} +417 -362
  67. package/dist/esm/ez-action-chip.entry.js +41 -41
  68. package/dist/esm/ez-button_14.entry.js +1933 -1847
  69. package/dist/esm/ez-label-chip.entry.js +120 -120
  70. package/dist/esm/ez-modal.entry.js +103 -96
  71. package/dist/esm/ez-number-input.entry.js +236 -236
  72. package/dist/esm/ez-time-input.entry.js +168 -168
  73. package/dist/esm/ezui.js +1 -1
  74. package/dist/esm/form-metadata.entry.js +65 -65
  75. package/dist/esm/loader.js +1 -1
  76. package/dist/esm/polyfills/core-js.js +0 -0
  77. package/dist/esm/polyfills/dom.js +0 -0
  78. package/dist/esm/polyfills/es5-html-element.js +0 -0
  79. package/dist/esm/polyfills/index.js +0 -0
  80. package/dist/esm/polyfills/system.js +0 -0
  81. package/dist/ezui/ezui.esm.js +1 -1
  82. package/dist/ezui/p-11d20338.js +1 -0
  83. package/dist/ezui/{p-3c3a43aa.entry.js → p-5d30e51c.entry.js} +1 -1
  84. package/dist/ezui/p-77fdb4fd.entry.js +1 -0
  85. package/dist/ezui/p-e056fb23.entry.js +1 -0
  86. package/dist/types/components/ez-action-chip/ez-action-chip.d.ts +16 -16
  87. package/dist/types/components/ez-button/ez-button.d.ts +20 -20
  88. package/dist/types/components/ez-calendar/ez-calendar.d.ts +42 -42
  89. package/dist/types/components/ez-check/ez-check.d.ts +32 -32
  90. package/dist/types/components/ez-collapsable-box/ez-collapsable-box.d.ts +18 -18
  91. package/dist/types/components/ez-combo-box/ez-combo-box-interfaces.d.ts +4 -4
  92. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +68 -68
  93. package/dist/types/components/ez-date-input/ez-date-input.d.ts +31 -31
  94. package/dist/types/components/ez-form/ez-form.d.ts +27 -27
  95. package/dist/types/components/ez-form/store/Form.actions.d.ts +111 -104
  96. package/dist/types/components/ez-form/store/Form.reducer.d.ts +20 -11
  97. package/dist/types/components/ez-form/store/Form.selectors.d.ts +14 -13
  98. package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +61 -48
  99. package/dist/types/components/ez-form/subcomponents/FormMetadata.d.ts +41 -41
  100. package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +15 -15
  101. package/dist/types/components/ez-form/subcomponents/place-holder.d.ts +3 -3
  102. package/dist/types/components/ez-form/subcomponents/structure/Field.d.ts +10 -10
  103. package/dist/types/components/ez-form/subcomponents/structure/FieldSet.d.ts +12 -12
  104. package/dist/types/components/ez-form/subcomponents/structure/FormSheet.d.ts +13 -13
  105. package/dist/types/components/ez-form/subcomponents/structure/NavigationBar.d.ts +17 -7
  106. package/dist/types/components/ez-icon/ez-icon.d.ts +5 -5
  107. package/dist/types/components/ez-label-chip/ez-label-chip.d.ts +40 -40
  108. package/dist/types/components/ez-modal/ez-modal.d.ts +32 -26
  109. package/dist/types/components/ez-number-input/ez-number-input.d.ts +73 -73
  110. package/dist/types/components/ez-popover/ez-popover.d.ts +52 -52
  111. package/dist/types/components/ez-search/ez-search.d.ts +95 -95
  112. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +31 -31
  113. package/dist/types/components/ez-text-area/ez-text-area.d.ts +49 -49
  114. package/dist/types/components/ez-text-input/ez-text-input.d.ts +64 -64
  115. package/dist/types/components/ez-time-input/ez-time-input.d.ts +53 -53
  116. package/dist/types/components.d.ts +8 -0
  117. package/dist/types/index.d.ts +1 -1
  118. package/dist/types/utils/utils.d.ts +2 -2
  119. package/package.json +114 -114
  120. package/react/components.d.ts +22 -0
  121. package/react/components.js +25 -0
  122. package/react/components.js.map +1 -0
  123. package/react/react-component-lib/createComponent.d.ts +10 -0
  124. package/react/react-component-lib/createComponent.js +59 -0
  125. package/react/react-component-lib/createComponent.js.map +1 -0
  126. package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
  127. package/react/react-component-lib/createOverlayComponent.js +89 -0
  128. package/react/react-component-lib/createOverlayComponent.js.map +1 -0
  129. package/react/react-component-lib/index.d.ts +2 -0
  130. package/react/react-component-lib/index.js +3 -0
  131. package/react/react-component-lib/index.js.map +1 -0
  132. package/react/react-component-lib/interfaces.d.ts +29 -0
  133. package/react/react-component-lib/interfaces.js +1 -0
  134. package/react/react-component-lib/interfaces.js.map +1 -0
  135. package/react/react-component-lib/utils/attachProps.d.ts +12 -0
  136. package/react/react-component-lib/utils/attachProps.js +96 -0
  137. package/react/react-component-lib/utils/attachProps.js.map +1 -0
  138. package/react/react-component-lib/utils/case.d.ts +2 -0
  139. package/react/react-component-lib/utils/case.js +7 -0
  140. package/react/react-component-lib/utils/case.js.map +1 -0
  141. package/react/react-component-lib/utils/dev.d.ts +2 -0
  142. package/react/react-component-lib/utils/dev.js +13 -0
  143. package/react/react-component-lib/utils/dev.js.map +1 -0
  144. package/react/react-component-lib/utils/index.d.ts +7 -0
  145. package/react/react-component-lib/utils/index.js +21 -0
  146. package/react/react-component-lib/utils/index.js.map +1 -0
  147. package/dist/ezui/p-5185cbf1.entry.js +0 -1
  148. package/dist/ezui/p-5d600057.entry.js +0 -1
  149. package/dist/ezui/p-9f819174.js +0 -1
@@ -1,125 +1,125 @@
1
- import { Component, h, Prop } from '@stencil/core';
2
- export class EzButton {
3
- constructor() {
4
- /**
5
- * Deixa o botão disponível ou não para interação com o usuário.
6
- */
7
- this.enabled = true;
8
- /**
9
- * Define o modo de uso do botão; opções: icon, link e regular
10
- */
11
- this.mode = "regular";
12
- }
13
- handleSlotChange(ev) {
14
- const slot = ev.target;
15
- const content = slot.assignedElements()[0];
16
- if (this.mode == "link") {
17
- content.style.display = "inline";
18
- if (slot.name == "leftIcon") {
19
- content.style.paddingRight = "var(--bt__inline__icon--padding)";
20
- }
21
- else if (slot.name == "rightIcon") {
22
- content.style.paddingLeft = "var(--bt__inline__icon--padding)";
23
- }
24
- }
25
- }
26
- render() {
27
- if (this.mode == "icon") {
28
- return (h("button", { class: "icon", type: "button", disabled: !this.enabled },
29
- h("ez-icon", { class: "icon", href: this.image, size: "large", onClick: evt => { if (!this.enabled)
30
- evt.stopPropagation(); } })));
31
- }
32
- else if (this.mode == "link") {
33
- return (h("a", null,
34
- h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
35
- this.label,
36
- h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
37
- }
38
- else {
39
- return (h("button", { type: "button", disabled: !this.enabled },
40
- h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
41
- this.label,
42
- h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
43
- }
44
- }
45
- static get is() { return "ez-button"; }
46
- static get encapsulation() { return "shadow"; }
47
- static get originalStyleUrls() { return {
48
- "$": ["ez-button.css"]
49
- }; }
50
- static get styleUrls() { return {
51
- "$": ["ez-button.css"]
52
- }; }
53
- static get properties() { return {
54
- "label": {
55
- "type": "string",
56
- "mutable": false,
57
- "complexType": {
58
- "original": "string",
59
- "resolved": "string",
60
- "references": {}
61
- },
62
- "required": false,
63
- "optional": false,
64
- "docs": {
65
- "tags": [],
66
- "text": "Texto indicativo da a\u00E7\u00E3o do bot\u00E3o."
67
- },
68
- "attribute": "label",
69
- "reflect": true
70
- },
71
- "enabled": {
72
- "type": "boolean",
73
- "mutable": false,
74
- "complexType": {
75
- "original": "boolean",
76
- "resolved": "boolean",
77
- "references": {}
78
- },
79
- "required": false,
80
- "optional": false,
81
- "docs": {
82
- "tags": [],
83
- "text": "Deixa o bot\u00E3o dispon\u00EDvel ou n\u00E3o para intera\u00E7\u00E3o com o usu\u00E1rio."
84
- },
85
- "attribute": "enabled",
86
- "reflect": true,
87
- "defaultValue": "true"
88
- },
89
- "mode": {
90
- "type": "string",
91
- "mutable": false,
92
- "complexType": {
93
- "original": "string",
94
- "resolved": "string",
95
- "references": {}
96
- },
97
- "required": false,
98
- "optional": false,
99
- "docs": {
100
- "tags": [],
101
- "text": "Define o modo de uso do bot\u00E3o; op\u00E7\u00F5es: icon, link e regular"
102
- },
103
- "attribute": "mode",
104
- "reflect": true,
105
- "defaultValue": "\"regular\""
106
- },
107
- "image": {
108
- "type": "string",
109
- "mutable": false,
110
- "complexType": {
111
- "original": "string",
112
- "resolved": "string",
113
- "references": {}
114
- },
115
- "required": false,
116
- "optional": false,
117
- "docs": {
118
- "tags": [],
119
- "text": "Define o icone svg que ser\u00E1 utilizado no bot\u00E3o, est\u00E1 propriedade s\u00F3 \u00E9 utilizada caso o componente esteja no modo 'icon'"
120
- },
121
- "attribute": "image",
122
- "reflect": true
123
- }
124
- }; }
125
- }
1
+ import { Component, h, Prop } from '@stencil/core';
2
+ export class EzButton {
3
+ constructor() {
4
+ /**
5
+ * Deixa o botão disponível ou não para interação com o usuário.
6
+ */
7
+ this.enabled = true;
8
+ /**
9
+ * Define o modo de uso do botão; opções: icon, link e regular
10
+ */
11
+ this.mode = "regular";
12
+ }
13
+ handleSlotChange(ev) {
14
+ const slot = ev.target;
15
+ const content = slot.assignedElements()[0];
16
+ if (this.mode == "link") {
17
+ content.style.display = "inline";
18
+ if (slot.name == "leftIcon") {
19
+ content.style.paddingRight = "var(--bt__inline__icon--padding)";
20
+ }
21
+ else if (slot.name == "rightIcon") {
22
+ content.style.paddingLeft = "var(--bt__inline__icon--padding)";
23
+ }
24
+ }
25
+ }
26
+ render() {
27
+ if (this.mode == "icon") {
28
+ return (h("button", { class: "icon", type: "button", disabled: !this.enabled },
29
+ h("ez-icon", { class: "icon", href: this.image, size: "large", onClick: evt => { if (!this.enabled)
30
+ evt.stopPropagation(); } })));
31
+ }
32
+ else if (this.mode == "link") {
33
+ return (h("a", null,
34
+ h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
35
+ this.label,
36
+ h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
37
+ }
38
+ else {
39
+ return (h("button", { type: "button", disabled: !this.enabled },
40
+ h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
41
+ this.label,
42
+ h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
43
+ }
44
+ }
45
+ static get is() { return "ez-button"; }
46
+ static get encapsulation() { return "shadow"; }
47
+ static get originalStyleUrls() { return {
48
+ "$": ["ez-button.css"]
49
+ }; }
50
+ static get styleUrls() { return {
51
+ "$": ["ez-button.css"]
52
+ }; }
53
+ static get properties() { return {
54
+ "label": {
55
+ "type": "string",
56
+ "mutable": false,
57
+ "complexType": {
58
+ "original": "string",
59
+ "resolved": "string",
60
+ "references": {}
61
+ },
62
+ "required": false,
63
+ "optional": false,
64
+ "docs": {
65
+ "tags": [],
66
+ "text": "Texto indicativo da a\u00E7\u00E3o do bot\u00E3o."
67
+ },
68
+ "attribute": "label",
69
+ "reflect": true
70
+ },
71
+ "enabled": {
72
+ "type": "boolean",
73
+ "mutable": false,
74
+ "complexType": {
75
+ "original": "boolean",
76
+ "resolved": "boolean",
77
+ "references": {}
78
+ },
79
+ "required": false,
80
+ "optional": false,
81
+ "docs": {
82
+ "tags": [],
83
+ "text": "Deixa o bot\u00E3o dispon\u00EDvel ou n\u00E3o para intera\u00E7\u00E3o com o usu\u00E1rio."
84
+ },
85
+ "attribute": "enabled",
86
+ "reflect": true,
87
+ "defaultValue": "true"
88
+ },
89
+ "mode": {
90
+ "type": "string",
91
+ "mutable": false,
92
+ "complexType": {
93
+ "original": "string",
94
+ "resolved": "string",
95
+ "references": {}
96
+ },
97
+ "required": false,
98
+ "optional": false,
99
+ "docs": {
100
+ "tags": [],
101
+ "text": "Define o modo de uso do bot\u00E3o; op\u00E7\u00F5es: icon, link e regular"
102
+ },
103
+ "attribute": "mode",
104
+ "reflect": true,
105
+ "defaultValue": "\"regular\""
106
+ },
107
+ "image": {
108
+ "type": "string",
109
+ "mutable": false,
110
+ "complexType": {
111
+ "original": "string",
112
+ "resolved": "string",
113
+ "references": {}
114
+ },
115
+ "required": false,
116
+ "optional": false,
117
+ "docs": {
118
+ "tags": [],
119
+ "text": "Define o icone svg que ser\u00E1 utilizado no bot\u00E3o, est\u00E1 propriedade s\u00F3 \u00E9 utilizada caso o componente esteja no modo 'icon'"
120
+ },
121
+ "attribute": "image",
122
+ "reflect": true
123
+ }
124
+ }; }
125
+ }
@@ -1,210 +1,210 @@
1
- :host {
2
- --cal--font-family: var(--font-pattern, Arial);
3
- --cal--color: var(--title--primary, #626e82);
4
- --cal--text-shadow: var(--text-shadow, 0 0 0 #353535,0 0 1px transparent);
5
-
6
- /* cal__body */
7
- --cal__body--background-color: var(--background--xlight, #FFF);
8
- --cal__body--padding: var(--space--medium, 12px);
9
- --cal__body--border-radius: var(--border--radius-medium, 12px);
10
- --cal__body--shadow: var(--shadow, 0px 0px 16px 0px #000);
11
-
12
- /* cal__header */
13
- --cal__header-line--stroke: 2px;
14
- --cal__header-line--color: var(--color--strokes, #C0C0C0);
15
-
16
- /* nav buttons */
17
- --cal__nav-btn--fill: var(--text--primary, #008561);
18
- --cal__nav-btn--over--fill: var(--color--primary, #350404);
19
- --cal__nav-btn--width: 10px;
20
- --cal__nav-btn--height: 16px;
21
- --cal__nav-btn--previous-path: path("M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z");
22
- --cal__nav-btn--next-path: path("M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z");
23
-
24
- /* cell */
25
- --cal__cell--margin: 0px var(--space--small, 12px);
26
- --cal__cell--width: var(--space--large, 24px);
27
- --cal__cell--padding: var(--space--extra-small, 3px) 0px;
28
- --cal__cell--border-radius: var(--border--radius-small, 6px);
29
- --cal__cell--over--background-color: var(--color--strokes, #C0C0C0);
30
- --cal__cell--outset--color: var(--color--strokes, #C0C0C0);
31
- --cal__cell--selected--background-color: var(--color--primary, #008561);
32
- --cal__cell--selected--color: var(--color--inverted, #FFF);
33
-
34
- /* btn today */
35
- --cal__btn-today--color: var(--color--primary);
36
- --cal__btn-today--hover--background-color: var(--color--strokes, #C0C0C0);
37
- --cal__btn-today--border-radius: var(--border--radius-small, 6px);
38
-
39
- /***************
40
- host style
41
- ***************/
42
- /*private*/
43
- position: relative;
44
- display: flex;
45
- user-select: none;
46
- }
47
-
48
- .calendar{
49
- /*private*/
50
- z-index: var(--more-visible, 2);
51
- display: flex;
52
- flex-direction: column;
53
-
54
- /*public*/
55
- background-color: var(--cal__body--background-color);
56
- padding: var(--cal__body--padding);
57
- border-radius: var(--cal__body--border-radius);
58
- box-shadow: var(--cal__body--shadow);
59
- }
60
-
61
- .calendar__header{
62
- /*private*/
63
- display: flex;
64
- justify-content: space-between;
65
- padding-bottom: var(--space--medium, 12px);
66
- margin: var(--space--small, 6px) var(--space--, 12px);
67
-
68
- /*public*/
69
- font-family: var(--cal--font-family);
70
- color: var(--cal--color);
71
- text-shadow: var(--cal--text-shadow);
72
- border-bottom: solid var(--cal__header-line--stroke) var(--cal__header-line--color);
73
- }
74
-
75
- .calendar__btn-next, .calendar__btn-previous{
76
- /*private*/
77
- outline: none;
78
- border: none;
79
- background-color: unset;
80
- cursor: pointer;
81
- padding: 0px;
82
- }
83
-
84
- .calendar__btn-next::after, .calendar__btn-previous::after{
85
- /*private*/
86
- content: '';
87
- display: flex;
88
-
89
- /*public*/
90
- background-color: var(--cal__nav-btn--fill);/*parece estranho, mas o bg funciona como fill pq aplicaremos clip-path.*/
91
- width: var(--cal__nav-btn--width);
92
- height: var(--cal__nav-btn--height);
93
- }
94
-
95
- .calendar__btn-previous::after{
96
- /*public*/
97
- clip-path: var(--cal__nav-btn--previous-path);
98
- }
99
-
100
- .calendar__btn-next::after{
101
- /*public*/
102
- clip-path: var(--cal__nav-btn--next-path);
103
- }
104
-
105
- .calendar__btn-next:hover::after, .calendar__btn-previous:hover::after{
106
- /*public*/
107
- background-color: var(--cal__nav-btn--over--fill);
108
- }
109
-
110
- .calendar__lbl-month{
111
- /*private*/
112
- font-weight: var(--text-weight--large, 600);
113
- font-size: var(--title--medium, 16px);
114
-
115
- /*public*/
116
- font-family: var(--cal--font-family);
117
- color: var(--cal--color);
118
- text-shadow: var(--cal--text-shadow);
119
- }
120
-
121
- .calendar__line{
122
- /*private*/
123
- display: flex;
124
- padding: 0px;
125
- margin: 0px;
126
- }
127
-
128
- .calendar__cell{
129
- /*private*/
130
- display: flex;
131
- justify-content: center;
132
- align-content: center;
133
- cursor: pointer;
134
- font-size: var(--text--small, 12px);
135
-
136
- /*public*/
137
- font-family: var(--cal--font-family);
138
- color: var(--cal--color);
139
- text-shadow: var(--cal--text-shadow);
140
- padding: var(--cal__cell--padding);
141
- margin: var(--cal__cell--margin);
142
- min-width: var(--cal__cell--width);
143
- border-radius: var(--cal__cell--border-radius);
144
- }
145
-
146
-
147
- .calendar__cell:hover{
148
- /*public*/
149
- background-color: var(--cal__cell--over--background-color);
150
- }
151
-
152
- .calendar__cell--secondary{
153
- /*public*/
154
- color: var(--cal__cell--outset--color);
155
- }
156
-
157
- .calendar__cell--unselectable:hover{
158
- /*private*/
159
- background-color: unset;
160
- border-radius: unset;
161
- cursor: unset;
162
- }
163
-
164
- .calendar__cell--unselectable{
165
- /*private*/
166
- font-weight: var(--text-weight--large, 600);
167
-
168
- /*public*/
169
- font-family: var(--cal--font-family);
170
- color: var(--cal--color);
171
- text-shadow: var(--cal--text-shadow);
172
- }
173
-
174
- .calendar__cell--selected, .calendar__cell--selected:hover{
175
- /*public*/
176
- background-color: var(--cal__cell--selected--background-color);
177
- color: var(--cal__cell--selected--color);
178
- }
179
-
180
- .calendar__body {
181
- /*private*/
182
- padding: var(--space--small, 6px) 0px;
183
- }
184
-
185
- .calendar__footer{
186
- /*private*/
187
- display: flex;
188
- flex-direction: column;
189
- }
190
-
191
- .calendar__btn-today{
192
- /*private*/
193
- border: none;
194
- background-color: unset;
195
- cursor: pointer;
196
- font-weight: var(--text-weight--large, 600);
197
- font-size: var(--title--small);
198
- padding: var(--space--extra-small, 6px);
199
-
200
- /*public*/
201
- font-family: var(--cal--font-family);
202
- text-shadow: var(--cal--text-shadow);
203
- color: var(--cal__btn-today--color);
204
- border-radius: var(--cal__btn-today--border-radius);
205
- }
206
-
207
- .calendar__btn-today:hover{
208
- /*public*/
209
- background-color: var(--cal__btn-today--hover--background-color);
210
- }
1
+ :host {
2
+ --cal--font-family: var(--font-pattern, Arial);
3
+ --cal--color: var(--title--primary, #626e82);
4
+ --cal--text-shadow: var(--text-shadow, 0 0 0 #353535,0 0 1px transparent);
5
+
6
+ /* cal__body */
7
+ --cal__body--background-color: var(--background--xlight, #FFF);
8
+ --cal__body--padding: var(--space--medium, 12px);
9
+ --cal__body--border-radius: var(--border--radius-medium, 12px);
10
+ --cal__body--shadow: var(--shadow, 0px 0px 16px 0px #000);
11
+
12
+ /* cal__header */
13
+ --cal__header-line--stroke: 2px;
14
+ --cal__header-line--color: var(--color--strokes, #C0C0C0);
15
+
16
+ /* nav buttons */
17
+ --cal__nav-btn--fill: var(--text--primary, #008561);
18
+ --cal__nav-btn--over--fill: var(--color--primary, #350404);
19
+ --cal__nav-btn--width: 10px;
20
+ --cal__nav-btn--height: 16px;
21
+ --cal__nav-btn--previous-path: path("M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z");
22
+ --cal__nav-btn--next-path: path("M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z");
23
+
24
+ /* cell */
25
+ --cal__cell--margin: 0px var(--space--small, 12px);
26
+ --cal__cell--width: var(--space--large, 24px);
27
+ --cal__cell--padding: var(--space--extra-small, 3px) 0px;
28
+ --cal__cell--border-radius: var(--border--radius-small, 6px);
29
+ --cal__cell--over--background-color: var(--color--strokes, #C0C0C0);
30
+ --cal__cell--outset--color: var(--color--strokes, #C0C0C0);
31
+ --cal__cell--selected--background-color: var(--color--primary, #008561);
32
+ --cal__cell--selected--color: var(--color--inverted, #FFF);
33
+
34
+ /* btn today */
35
+ --cal__btn-today--color: var(--color--primary);
36
+ --cal__btn-today--hover--background-color: var(--color--strokes, #C0C0C0);
37
+ --cal__btn-today--border-radius: var(--border--radius-small, 6px);
38
+
39
+ /***************
40
+ host style
41
+ ***************/
42
+ /*private*/
43
+ position: relative;
44
+ display: flex;
45
+ user-select: none;
46
+ }
47
+
48
+ .calendar{
49
+ /*private*/
50
+ z-index: var(--more-visible, 2);
51
+ display: flex;
52
+ flex-direction: column;
53
+
54
+ /*public*/
55
+ background-color: var(--cal__body--background-color);
56
+ padding: var(--cal__body--padding);
57
+ border-radius: var(--cal__body--border-radius);
58
+ box-shadow: var(--cal__body--shadow);
59
+ }
60
+
61
+ .calendar__header{
62
+ /*private*/
63
+ display: flex;
64
+ justify-content: space-between;
65
+ padding-bottom: var(--space--medium, 12px);
66
+ margin: var(--space--small, 6px) var(--space--, 12px);
67
+
68
+ /*public*/
69
+ font-family: var(--cal--font-family);
70
+ color: var(--cal--color);
71
+ text-shadow: var(--cal--text-shadow);
72
+ border-bottom: solid var(--cal__header-line--stroke) var(--cal__header-line--color);
73
+ }
74
+
75
+ .calendar__btn-next, .calendar__btn-previous{
76
+ /*private*/
77
+ outline: none;
78
+ border: none;
79
+ background-color: unset;
80
+ cursor: pointer;
81
+ padding: 0px;
82
+ }
83
+
84
+ .calendar__btn-next::after, .calendar__btn-previous::after{
85
+ /*private*/
86
+ content: '';
87
+ display: flex;
88
+
89
+ /*public*/
90
+ background-color: var(--cal__nav-btn--fill);/*parece estranho, mas o bg funciona como fill pq aplicaremos clip-path.*/
91
+ width: var(--cal__nav-btn--width);
92
+ height: var(--cal__nav-btn--height);
93
+ }
94
+
95
+ .calendar__btn-previous::after{
96
+ /*public*/
97
+ clip-path: var(--cal__nav-btn--previous-path);
98
+ }
99
+
100
+ .calendar__btn-next::after{
101
+ /*public*/
102
+ clip-path: var(--cal__nav-btn--next-path);
103
+ }
104
+
105
+ .calendar__btn-next:hover::after, .calendar__btn-previous:hover::after{
106
+ /*public*/
107
+ background-color: var(--cal__nav-btn--over--fill);
108
+ }
109
+
110
+ .calendar__lbl-month{
111
+ /*private*/
112
+ font-weight: var(--text-weight--large, 600);
113
+ font-size: var(--title--medium, 16px);
114
+
115
+ /*public*/
116
+ font-family: var(--cal--font-family);
117
+ color: var(--cal--color);
118
+ text-shadow: var(--cal--text-shadow);
119
+ }
120
+
121
+ .calendar__line{
122
+ /*private*/
123
+ display: flex;
124
+ padding: 0px;
125
+ margin: 0px;
126
+ }
127
+
128
+ .calendar__cell{
129
+ /*private*/
130
+ display: flex;
131
+ justify-content: center;
132
+ align-content: center;
133
+ cursor: pointer;
134
+ font-size: var(--text--small, 12px);
135
+
136
+ /*public*/
137
+ font-family: var(--cal--font-family);
138
+ color: var(--cal--color);
139
+ text-shadow: var(--cal--text-shadow);
140
+ padding: var(--cal__cell--padding);
141
+ margin: var(--cal__cell--margin);
142
+ min-width: var(--cal__cell--width);
143
+ border-radius: var(--cal__cell--border-radius);
144
+ }
145
+
146
+
147
+ .calendar__cell:hover{
148
+ /*public*/
149
+ background-color: var(--cal__cell--over--background-color);
150
+ }
151
+
152
+ .calendar__cell--secondary{
153
+ /*public*/
154
+ color: var(--cal__cell--outset--color);
155
+ }
156
+
157
+ .calendar__cell--unselectable:hover{
158
+ /*private*/
159
+ background-color: unset;
160
+ border-radius: unset;
161
+ cursor: unset;
162
+ }
163
+
164
+ .calendar__cell--unselectable{
165
+ /*private*/
166
+ font-weight: var(--text-weight--large, 600);
167
+
168
+ /*public*/
169
+ font-family: var(--cal--font-family);
170
+ color: var(--cal--color);
171
+ text-shadow: var(--cal--text-shadow);
172
+ }
173
+
174
+ .calendar__cell--selected, .calendar__cell--selected:hover{
175
+ /*public*/
176
+ background-color: var(--cal__cell--selected--background-color);
177
+ color: var(--cal__cell--selected--color);
178
+ }
179
+
180
+ .calendar__body {
181
+ /*private*/
182
+ padding: var(--space--small, 6px) 0px;
183
+ }
184
+
185
+ .calendar__footer{
186
+ /*private*/
187
+ display: flex;
188
+ flex-direction: column;
189
+ }
190
+
191
+ .calendar__btn-today{
192
+ /*private*/
193
+ border: none;
194
+ background-color: unset;
195
+ cursor: pointer;
196
+ font-weight: var(--text-weight--large, 600);
197
+ font-size: var(--title--small);
198
+ padding: var(--space--extra-small, 6px);
199
+
200
+ /*public*/
201
+ font-family: var(--cal--font-family);
202
+ text-shadow: var(--cal--text-shadow);
203
+ color: var(--cal__btn-today--color);
204
+ border-radius: var(--cal__btn-today--border-radius);
205
+ }
206
+
207
+ .calendar__btn-today:hover{
208
+ /*public*/
209
+ background-color: var(--cal__btn-today--hover--background-color);
210
+ }