@joster-dev/chaos-control 0.2.0 → 0.3.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.
Files changed (73) hide show
  1. package/README.md +86 -86
  2. package/fesm2022/joster-dev-chaos-control.mjs +380 -742
  3. package/fesm2022/joster-dev-chaos-control.mjs.map +1 -1
  4. package/{lib/LICENSE → lib} +9 -9
  5. package/package.json +6 -7
  6. package/src/lib/scss/all.scss +7 -0
  7. package/src/lib/scss/card.scss +78 -0
  8. package/src/lib/scss/control.scss +49 -0
  9. package/src/lib/scss/reboot.scss +13 -0
  10. package/src/lib/scss/utility.scss +179 -0
  11. package/src/lib/scss/variables.scss +7 -0
  12. package/src/lib/styles.scss +28 -28
  13. package/types/joster-dev-chaos-control.d.ts +243 -0
  14. package/esm2022/joster-dev-chaos-control.mjs +0 -5
  15. package/esm2022/lib/chaos-control.module.mjs +0 -77
  16. package/esm2022/lib/chaos-control.service.mjs +0 -14
  17. package/esm2022/lib/components/busy/busy.component.mjs +0 -11
  18. package/esm2022/lib/components/choice/choice.component.mjs +0 -53
  19. package/esm2022/lib/components/color/color.component.mjs +0 -78
  20. package/esm2022/lib/components/file/file.component.mjs +0 -135
  21. package/esm2022/lib/components/icon/icon.component.mjs +0 -117
  22. package/esm2022/lib/components/icon-stack/icon-stack.component.mjs +0 -29
  23. package/esm2022/lib/components/index.mjs +0 -11
  24. package/esm2022/lib/components/number/number.component.mjs +0 -135
  25. package/esm2022/lib/components/readonly/readonly.component.mjs +0 -14
  26. package/esm2022/lib/components/select/select.component.mjs +0 -99
  27. package/esm2022/lib/components/text/text.component.mjs +0 -162
  28. package/esm2022/lib/directives/border-radius.directive.mjs +0 -41
  29. package/esm2022/lib/directives/busy.directive.mjs +0 -71
  30. package/esm2022/lib/directives/control.directive.mjs +0 -46
  31. package/esm2022/lib/directives/index.mjs +0 -6
  32. package/esm2022/lib/directives/item.directive.mjs +0 -117
  33. package/esm2022/lib/directives/size.directive.mjs +0 -38
  34. package/esm2022/lib/models/icon-types.const.mjs +0 -33
  35. package/esm2022/lib/models/icon.type.mjs +0 -2
  36. package/esm2022/lib/models/index.mjs +0 -9
  37. package/esm2022/lib/models/is-item.function.mjs +0 -8
  38. package/esm2022/lib/models/is-items.function.mjs +0 -5
  39. package/esm2022/lib/models/is-number.function.mjs +0 -5
  40. package/esm2022/lib/models/is-primitive.function.mjs +0 -7
  41. package/esm2022/lib/models/item.interface.mjs +0 -2
  42. package/esm2022/lib/models/primitive.type.mjs +0 -2
  43. package/esm2022/public-api.mjs +0 -7
  44. package/index.d.ts +0 -5
  45. package/lib/chaos-control.module.d.ts +0 -23
  46. package/lib/chaos-control.service.d.ts +0 -6
  47. package/lib/components/busy/busy.component.d.ts +0 -5
  48. package/lib/components/choice/choice.component.d.ts +0 -15
  49. package/lib/components/color/color.component.d.ts +0 -22
  50. package/lib/components/file/file.component.d.ts +0 -32
  51. package/lib/components/icon/icon.component.d.ts +0 -31
  52. package/lib/components/icon-stack/icon-stack.component.d.ts +0 -9
  53. package/lib/components/index.d.ts +0 -10
  54. package/lib/components/number/number.component.d.ts +0 -33
  55. package/lib/components/readonly/readonly.component.d.ts +0 -8
  56. package/lib/components/select/select.component.d.ts +0 -28
  57. package/lib/components/text/text.component.d.ts +0 -41
  58. package/lib/directives/border-radius.directive.d.ts +0 -12
  59. package/lib/directives/busy.directive.d.ts +0 -20
  60. package/lib/directives/control.directive.d.ts +0 -18
  61. package/lib/directives/index.d.ts +0 -5
  62. package/lib/directives/item.directive.d.ts +0 -36
  63. package/lib/directives/size.directive.d.ts +0 -12
  64. package/lib/models/icon-types.const.d.ts +0 -1
  65. package/lib/models/icon.type.d.ts +0 -2
  66. package/lib/models/index.d.ts +0 -8
  67. package/lib/models/is-item.function.d.ts +0 -2
  68. package/lib/models/is-items.function.d.ts +0 -2
  69. package/lib/models/is-number.function.d.ts +0 -1
  70. package/lib/models/is-primitive.function.d.ts +0 -2
  71. package/lib/models/item.interface.d.ts +0 -6
  72. package/lib/models/primitive.type.d.ts +0 -1
  73. package/public-api.d.ts +0 -5
package/README.md CHANGED
@@ -1,86 +1,86 @@
1
- # Chaos Control Library
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.0.0.
4
- <!-- - provide accessible components to
5
- - visual indication for validity
6
- - visual and utility components
7
- - consistent style -->
8
- <!-- - styled print view -->
9
- <!-- - readonly -->
10
-
11
- > [Repository](https://github.com/joster-dev/chaos-control)
12
-
13
- > [Github Package](https://github.com/joster-dev/chaos-control/packages/TODO)
14
-
15
- > [Demo](https://joster-dev.github.io/chaos-control/)
16
-
17
- ## Getting Started
18
- update your `package.json`
19
- ```bash
20
- npm install @joster-dev/chaos-control --save
21
- ```
22
- import the module
23
- ```diff
24
- + import { FormControlModule } from '@joster-dev/form-control';
25
-
26
- @NgModule({
27
- imports: [
28
- + FormControlModule
29
- ],
30
- })
31
- ```
32
- ## `fc-button` utility component
33
- to handle click events in an accessible manner
34
- - style: outset border
35
- ### inputs
36
- - `isActive: boolean = false`
37
- - style: inset border
38
- - `isDisabled: boolean = false`
39
- - style: solid border
40
- - when disabled, button will not be tab indexable
41
- - `isValid: boolean = true`
42
- - `type: 'button' | 'submit' = 'button'`
43
- - `borderRadiusLeft: boolean = true`
44
- - `borderRadiusRight: boolean = true`
45
- ### outputs
46
- - `onBlur` emits `FocusEvent`
47
- - `onClick` emits `MouseEvent`
48
- ## `fc-readonly` utility component
49
- to display information alongside controls
50
- ### inputs
51
- - `model: string`
52
- ## `fc-text` control component
53
- result will be `string | null`
54
- - if line break or overflow
55
- - height increases
56
- - if cleared by the user or form
57
- - height resets
58
- ## `fc-number` control component
59
- result will be `number | null`
60
- - if user enters `e` character
61
- - will not change
62
- - if user enters `.` character
63
- - if `[step]` is `>= 1`
64
- - will not change
65
- ## `fc-choice` control component
66
- to ask the user to choose from a few items
67
-
68
- result will be `<item-key>[] | <item-key> | null`
69
- - where `<item-key>` is the `key` property of the `items` input
70
- ### inputs
71
- - `isMultiple: boolean = false`
72
- - `items: { key: boolean | number | string, value: string }[] = []`
73
- ## `fc-color` control component
74
- result will be `string | null`
75
- - `string` result matches [`/^[0-9a-fA-F]{6}$/`](https://regexper.com/#%2F%5E%5B0-9a-fA-F%5D%7B6%7D%24%2F)
76
- ## `fc-file` control component
77
- result will be `FileList | null`
78
-
79
- ## `fc-select` control component
80
- to ask the user to choose from many items
81
- - `items: { key: boolean | number | string, value: string }[] = []`
82
- <!-- ## `fc-select` component -->
83
- <!-- ## `fc-multi-select` component -->
84
- <!-- ## `fc-date` component -->
85
- <!-- ## `fc-date-time` component -->
86
- <!-- ## `fc-time` component -->
1
+ # Chaos Control Library
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.0.0.
4
+ <!-- - provide accessible components to
5
+ - visual indication for validity
6
+ - visual and utility components
7
+ - consistent style -->
8
+ <!-- - styled print view -->
9
+ <!-- - readonly -->
10
+
11
+ > [Repository](https://github.com/joster-dev/chaos-control)
12
+
13
+ > [Github Package](https://github.com/joster-dev/chaos-control/packages/TODO)
14
+
15
+ > [Demo](https://joster-dev.github.io/chaos-control/)
16
+
17
+ ## Getting Started
18
+ update your `package.json`
19
+ ```bash
20
+ npm install @joster-dev/chaos-control --save
21
+ ```
22
+ import the module
23
+ ```diff
24
+ + import { FormControlModule } from '@joster-dev/form-control';
25
+
26
+ @NgModule({
27
+ imports: [
28
+ + FormControlModule
29
+ ],
30
+ })
31
+ ```
32
+ ## `fc-button` utility component
33
+ to handle click events in an accessible manner
34
+ - style: outset border
35
+ ### inputs
36
+ - `isActive: boolean = false`
37
+ - style: inset border
38
+ - `isDisabled: boolean = false`
39
+ - style: solid border
40
+ - when disabled, button will not be tab indexable
41
+ - `isValid: boolean = true`
42
+ - `type: 'button' | 'submit' = 'button'`
43
+ - `borderRadiusLeft: boolean = true`
44
+ - `borderRadiusRight: boolean = true`
45
+ ### outputs
46
+ - `onBlur` emits `FocusEvent`
47
+ - `onClick` emits `MouseEvent`
48
+ ## `fc-readonly` utility component
49
+ to display information alongside controls
50
+ ### inputs
51
+ - `model: string`
52
+ ## `fc-text` control component
53
+ result will be `string | null`
54
+ - if line break or overflow
55
+ - height increases
56
+ - if cleared by the user or form
57
+ - height resets
58
+ ## `fc-number` control component
59
+ result will be `number | null`
60
+ - if user enters `e` character
61
+ - will not change
62
+ - if user enters `.` character
63
+ - if `[step]` is `>= 1`
64
+ - will not change
65
+ ## `fc-choice` control component
66
+ to ask the user to choose from a few items
67
+
68
+ result will be `<item-key>[] | <item-key> | null`
69
+ - where `<item-key>` is the `key` property of the `items` input
70
+ ### inputs
71
+ - `isMultiple: boolean = false`
72
+ - `items: { key: boolean | number | string, value: string }[] = []`
73
+ ## `fc-color` control component
74
+ result will be `string | null`
75
+ - `string` result matches [`/^[0-9a-fA-F]{6}$/`](https://regexper.com/#%2F%5E%5B0-9a-fA-F%5D%7B6%7D%24%2F)
76
+ ## `fc-file` control component
77
+ result will be `FileList | null`
78
+
79
+ ## `fc-select` control component
80
+ to ask the user to choose from many items
81
+ - `items: { key: boolean | number | string, value: string }[] = []`
82
+ <!-- ## `fc-select` component -->
83
+ <!-- ## `fc-multi-select` component -->
84
+ <!-- ## `fc-date` component -->
85
+ <!-- ## `fc-date-time` component -->
86
+ <!-- ## `fc-time` component -->