@joster-dev/chaos-control 0.1.0
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/README.md +86 -0
- package/esm2022/joster-dev-chaos-control.mjs +5 -0
- package/esm2022/lib/chaos-control.module.mjs +67 -0
- package/esm2022/lib/chaos-control.service.mjs +14 -0
- package/esm2022/lib/components/choice/choice.component.mjs +52 -0
- package/esm2022/lib/components/color/color.component.mjs +77 -0
- package/esm2022/lib/components/file/file.component.mjs +131 -0
- package/esm2022/lib/components/index.mjs +8 -0
- package/esm2022/lib/components/number/number.component.mjs +134 -0
- package/esm2022/lib/components/readonly/readonly.component.mjs +14 -0
- package/esm2022/lib/components/select/select.component.mjs +69 -0
- package/esm2022/lib/components/text/text.component.mjs +162 -0
- package/esm2022/lib/directives/border-radius.directive.mjs +41 -0
- package/esm2022/lib/directives/control.directive.mjs +46 -0
- package/esm2022/lib/directives/index.mjs +4 -0
- package/esm2022/lib/directives/item.directive.mjs +115 -0
- package/esm2022/lib/models/index.mjs +7 -0
- package/esm2022/lib/models/is-item.function.mjs +8 -0
- package/esm2022/lib/models/is-items.function.mjs +5 -0
- package/esm2022/lib/models/is-number.function.mjs +5 -0
- package/esm2022/lib/models/is-primitive.function.mjs +7 -0
- package/esm2022/lib/models/item.interface.mjs +2 -0
- package/esm2022/lib/models/primitive.type.mjs +2 -0
- package/esm2022/public-api.mjs +6 -0
- package/fesm2022/joster-dev-chaos-control.mjs +894 -0
- package/fesm2022/joster-dev-chaos-control.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/LICENSE +9 -0
- package/lib/chaos-control.module.d.ts +20 -0
- package/lib/chaos-control.service.d.ts +6 -0
- package/lib/components/choice/choice.component.d.ts +15 -0
- package/lib/components/color/color.component.d.ts +22 -0
- package/lib/components/file/file.component.d.ts +31 -0
- package/lib/components/index.d.ts +7 -0
- package/lib/components/number/number.component.d.ts +33 -0
- package/lib/components/readonly/readonly.component.d.ts +8 -0
- package/lib/components/select/select.component.d.ts +23 -0
- package/lib/components/text/text.component.d.ts +41 -0
- package/lib/directives/border-radius.directive.d.ts +12 -0
- package/lib/directives/control.directive.d.ts +18 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/item.directive.d.ts +35 -0
- package/lib/models/index.d.ts +6 -0
- package/lib/models/is-item.function.d.ts +2 -0
- package/lib/models/is-items.function.d.ts +2 -0
- package/lib/models/is-number.function.d.ts +1 -0
- package/lib/models/is-primitive.function.d.ts +2 -0
- package/lib/models/item.interface.d.ts +6 -0
- package/lib/models/primitive.type.d.ts +1 -0
- package/package.json +57 -0
- package/public-api.d.ts +4 -0
- package/src/lib/atomic.scss +87 -0
- package/src/lib/styles.scss +83 -0
- package/src/lib/variables.scss +3 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
@import "./variables.scss";
|
|
2
|
+
|
|
3
|
+
.d-flex {
|
|
4
|
+
display: flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.align-items-start {
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.align-items-center {
|
|
12
|
+
align-items: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.align-items-stretch {
|
|
16
|
+
align-items: stretch;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.justify-content-between {
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.flex-wrap {
|
|
24
|
+
flex-wrap: wrap;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.flex-column {
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.flex-1 {
|
|
32
|
+
flex: 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.flex-2 {
|
|
36
|
+
flex: 2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.flex-3 {
|
|
40
|
+
flex: 3;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.align-self-center {
|
|
44
|
+
align-self: center;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.margin-right-1 {
|
|
48
|
+
margin-right: $md;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.margin-right-2 {
|
|
52
|
+
margin-right: $lg;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.margin-left-1 {
|
|
56
|
+
margin-left: $md;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.margin-left-2 {
|
|
60
|
+
margin-left: $lg;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.border-radius-right {
|
|
64
|
+
border-top-right-radius: $md;
|
|
65
|
+
border-bottom-right-radius: $md;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.border-radius-left {
|
|
69
|
+
border-top-left-radius: $md;
|
|
70
|
+
border-bottom-left-radius: $md;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.white-space-nowrap {
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.text-right {
|
|
78
|
+
text-align: right;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.text-left {
|
|
82
|
+
text-align: left;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.text-center {
|
|
86
|
+
text-align: center;
|
|
87
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@import "./variables.scss";
|
|
2
|
+
|
|
3
|
+
label {
|
|
4
|
+
display: block;
|
|
5
|
+
padding-bottom: $md;
|
|
6
|
+
font-weight: bold;
|
|
7
|
+
|
|
8
|
+
&:empty {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.required:after {
|
|
13
|
+
content: "*";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
ul {
|
|
18
|
+
list-style: none;
|
|
19
|
+
// color: red;
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
|
|
23
|
+
>li {
|
|
24
|
+
padding-top: $sm;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
a:not(.jo-ignore),
|
|
29
|
+
button:not(.jo-ignore),
|
|
30
|
+
.button,
|
|
31
|
+
input,
|
|
32
|
+
textarea {
|
|
33
|
+
color: inherit;
|
|
34
|
+
background: transparent;
|
|
35
|
+
border-width: 0.15em;
|
|
36
|
+
border-style: outset;
|
|
37
|
+
border-color: currentColor;
|
|
38
|
+
padding: $md;
|
|
39
|
+
margin: 0;
|
|
40
|
+
font-size: 1em;
|
|
41
|
+
// transition: all 700ms ease;
|
|
42
|
+
line-height: 1em;
|
|
43
|
+
|
|
44
|
+
&:active,
|
|
45
|
+
&.active {
|
|
46
|
+
border-style: inset;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:disabled,
|
|
50
|
+
&.disabled {
|
|
51
|
+
cursor: not-allowed;
|
|
52
|
+
border-style: solid;
|
|
53
|
+
box-shadow: none;
|
|
54
|
+
opacity: 0.5;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.invalid {
|
|
58
|
+
// animation: 3s ease 0s infinite invalid-border;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:focus {
|
|
62
|
+
// outline: 0.15em solid transparent;
|
|
63
|
+
// box-shadow: 0 0 0.1em 0 currentColor;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
a,
|
|
68
|
+
button,
|
|
69
|
+
.button {
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes invalid-border {
|
|
74
|
+
|
|
75
|
+
0%,
|
|
76
|
+
100% {
|
|
77
|
+
border-style: inset;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
50% {
|
|
81
|
+
border-style: outset;
|
|
82
|
+
}
|
|
83
|
+
}
|