platformcommons-web-lib 1.0.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/commons-shared-web-ui-1.0.0.tgz +0 -0
- package/documentation/alert.md +123 -0
- package/documentation/button-dropdown.md +126 -0
- package/documentation/button.md +184 -0
- package/documentation/cards-usage-guidelines.md +131 -0
- package/documentation/configurable-form.md +605 -0
- package/documentation/confirmation-modal.md +250 -0
- package/documentation/filter-sidebar.md +178 -0
- package/documentation/filter-table-selector.md +228 -0
- package/documentation/form-builder.md +597 -0
- package/documentation/form-components.md +384 -0
- package/documentation/nav.md +427 -0
- package/documentation/pagination.md +181 -0
- package/documentation/side-nav-documentation.md +169 -0
- package/documentation/smart-form.md +2177 -0
- package/documentation/smart-table.md +1198 -0
- package/documentation/snackbar.md +118 -0
- package/documentation/style-externalization.md +88 -0
- package/documentation/summary-card.md +279 -0
- package/ng-package.json +28 -0
- package/package.json +54 -0
- package/src/lib/modules/alert/alert.models.ts +6 -0
- package/src/lib/modules/alert/alert.module.ts +16 -0
- package/src/lib/modules/alert/alert.theme.scss +85 -0
- package/src/lib/modules/alert/components/alert/alert.component.html +27 -0
- package/src/lib/modules/alert/components/alert/alert.component.scss +92 -0
- package/src/lib/modules/alert/components/alert/alert.component.ts +81 -0
- package/src/lib/modules/button/button.models.ts +13 -0
- package/src/lib/modules/button/button.module.ts +16 -0
- package/src/lib/modules/button/button.theme.scss +121 -0
- package/src/lib/modules/button/components/button/button.component.html +22 -0
- package/src/lib/modules/button/components/button/button.component.scss +88 -0
- package/src/lib/modules/button/components/button/button.component.ts +67 -0
- package/src/lib/modules/button-dropdown/button-dropdown.models.ts +26 -0
- package/src/lib/modules/button-dropdown/button-dropdown.module.ts +22 -0
- package/src/lib/modules/button-dropdown/button-dropdown.theme.scss +87 -0
- package/src/lib/modules/button-dropdown/components/button-dropdown/button-dropdown.component.html +41 -0
- package/src/lib/modules/button-dropdown/components/button-dropdown/button-dropdown.component.scss +135 -0
- package/src/lib/modules/button-dropdown/components/button-dropdown/button-dropdown.component.ts +160 -0
- package/src/lib/modules/configurable-form/component/configurable-form.component.html +294 -0
- package/src/lib/modules/configurable-form/component/configurable-form.component.scss +503 -0
- package/src/lib/modules/configurable-form/component/configurable-form.component.ts +628 -0
- package/src/lib/modules/configurable-form/configurable-form.examples.ts +154 -0
- package/src/lib/modules/configurable-form/configurable-form.model.ts +131 -0
- package/src/lib/modules/configurable-form/configurable-form.module.ts +19 -0
- package/src/lib/modules/configurable-form/configurable-form.theme.scss +78 -0
- package/src/lib/modules/confirmation-modal/components/confirmation-modal/confirmation-modal.component.html +77 -0
- package/src/lib/modules/confirmation-modal/components/confirmation-modal/confirmation-modal.component.scss +395 -0
- package/src/lib/modules/confirmation-modal/components/confirmation-modal/confirmation-modal.component.ts +266 -0
- package/src/lib/modules/confirmation-modal/confirmation-modal.models.ts +71 -0
- package/src/lib/modules/confirmation-modal/confirmation-modal.module.ts +20 -0
- package/src/lib/modules/confirmation-modal/confirmation-modal.theme.scss +87 -0
- package/src/lib/modules/filter/components/filter/filter.component.html +131 -0
- package/src/lib/modules/filter/components/filter/filter.component.scss +245 -0
- package/src/lib/modules/filter/components/filter/filter.component.ts +216 -0
- package/src/lib/modules/filter/filter.models.ts +88 -0
- package/src/lib/modules/filter/filter.module.ts +24 -0
- package/src/lib/modules/filter/filter.theme.scss +92 -0
- package/src/lib/modules/filter-sidebar/components/filter-sidebar/filter-sidebar.component.html +112 -0
- package/src/lib/modules/filter-sidebar/components/filter-sidebar/filter-sidebar.component.scss +186 -0
- package/src/lib/modules/filter-sidebar/components/filter-sidebar/filter-sidebar.component.ts +163 -0
- package/src/lib/modules/filter-sidebar/filter-sidebar.models.ts +95 -0
- package/src/lib/modules/filter-sidebar/filter-sidebar.module.ts +24 -0
- package/src/lib/modules/filter-sidebar/filter-sidebar.theme.scss +38 -0
- package/src/lib/modules/filter-table-selector/components/filter-table-selector/filter-table-selector.component.html +73 -0
- package/src/lib/modules/filter-table-selector/components/filter-table-selector/filter-table-selector.component.scss +321 -0
- package/src/lib/modules/filter-table-selector/components/filter-table-selector/filter-table-selector.component.ts +361 -0
- package/src/lib/modules/filter-table-selector/filter-table-selector.models.ts +91 -0
- package/src/lib/modules/filter-table-selector/filter-table-selector.module.ts +22 -0
- package/src/lib/modules/filter-table-selector/filter-table-selector.theme.scss +36 -0
- package/src/lib/modules/form-builder/components/field-configurator/configurator-config-panel/configurator-config-panel.component.html +63 -0
- package/src/lib/modules/form-builder/components/field-configurator/configurator-config-panel/configurator-config-panel.component.scss +496 -0
- package/src/lib/modules/form-builder/components/field-configurator/configurator-config-panel/configurator-config-panel.component.ts +445 -0
- package/src/lib/modules/form-builder/components/field-configurator/configurator-tree/configurator-tree.component.html +75 -0
- package/src/lib/modules/form-builder/components/field-configurator/configurator-tree/configurator-tree.component.scss +210 -0
- package/src/lib/modules/form-builder/components/field-configurator/configurator-tree/configurator-tree.component.ts +55 -0
- package/src/lib/modules/form-builder/components/field-configurator/field-configurator.component.html +25 -0
- package/src/lib/modules/form-builder/components/field-configurator/field-configurator.component.scss +82 -0
- package/src/lib/modules/form-builder/components/field-configurator/field-configurator.component.ts +95 -0
- package/src/lib/modules/form-builder/components/field-selection/field-selection.component.html +20 -0
- package/src/lib/modules/form-builder/components/field-selection/field-selection.component.scss +37 -0
- package/src/lib/modules/form-builder/components/field-selection/field-selection.component.ts +94 -0
- package/src/lib/modules/form-builder/components/field-selection/group-node/group-node.component.html +46 -0
- package/src/lib/modules/form-builder/components/field-selection/group-node/group-node.component.scss +102 -0
- package/src/lib/modules/form-builder/components/field-selection/group-node/group-node.component.ts +50 -0
- package/src/lib/modules/form-builder/components/field-selection/selection-field-node/selection-field-node.component.html +35 -0
- package/src/lib/modules/form-builder/components/field-selection/selection-field-node/selection-field-node.component.scss +67 -0
- package/src/lib/modules/form-builder/components/field-selection/selection-field-node/selection-field-node.component.ts +34 -0
- package/src/lib/modules/form-builder/components/field-selection/selection-section-node/selection-section-node.component.html +68 -0
- package/src/lib/modules/form-builder/components/field-selection/selection-section-node/selection-section-node.component.scss +113 -0
- package/src/lib/modules/form-builder/components/field-selection/selection-section-node/selection-section-node.component.ts +74 -0
- package/src/lib/modules/form-builder/configs/field-type-schema.map.ts +533 -0
- package/src/lib/modules/form-builder/form-builder.module.ts +36 -0
- package/src/lib/modules/form-builder/form-builder.theme.scss +212 -0
- package/src/lib/modules/form-builder/index.ts +9 -0
- package/src/lib/modules/form-builder/models/builder.models.ts +7 -0
- package/src/lib/modules/form-builder/models/field-configurator.models.ts +38 -0
- package/src/lib/modules/form-builder/models/field-selection.models.ts +51 -0
- package/src/lib/modules/form-builder/services/field-configurator.service.ts +258 -0
- package/src/lib/modules/form-builder/services/field-selection.service.ts +300 -0
- package/src/lib/modules/form-builder/services/form-schema-tree.service.ts +652 -0
- package/src/lib/modules/form-builder/tokens/builder.tokens.ts +10 -0
- package/src/lib/modules/form-builder/utils/constants.ts +43 -0
- package/src/lib/modules/form-components/components/checkbox/_theme.scss +63 -0
- package/src/lib/modules/form-components/components/checkbox/checkbox.component.html +29 -0
- package/src/lib/modules/form-components/components/checkbox/checkbox.component.scss +111 -0
- package/src/lib/modules/form-components/components/checkbox/checkbox.component.ts +207 -0
- package/src/lib/modules/form-components/components/checkbox/checkbox.models.ts +35 -0
- package/src/lib/modules/form-components/components/datepicker/_theme.scss +82 -0
- package/src/lib/modules/form-components/components/datepicker/datepicker.component.html +42 -0
- package/src/lib/modules/form-components/components/datepicker/datepicker.component.scss +115 -0
- package/src/lib/modules/form-components/components/datepicker/datepicker.component.ts +267 -0
- package/src/lib/modules/form-components/components/datepicker/datepicker.models.ts +45 -0
- package/src/lib/modules/form-components/components/dropdown/_theme.scss +91 -0
- package/src/lib/modules/form-components/components/dropdown/dropdown.component.html +74 -0
- package/src/lib/modules/form-components/components/dropdown/dropdown.component.scss +252 -0
- package/src/lib/modules/form-components/components/dropdown/dropdown.component.ts +377 -0
- package/src/lib/modules/form-components/components/dropdown/dropdown.models.ts +53 -0
- package/src/lib/modules/form-components/components/input/_theme.scss +77 -0
- package/src/lib/modules/form-components/components/input/input.component.html +51 -0
- package/src/lib/modules/form-components/components/input/input.component.scss +128 -0
- package/src/lib/modules/form-components/components/input/input.component.ts +250 -0
- package/src/lib/modules/form-components/components/input/input.models.ts +55 -0
- package/src/lib/modules/form-components/components/radio/_theme.scss +61 -0
- package/src/lib/modules/form-components/components/radio/radio.component.html +22 -0
- package/src/lib/modules/form-components/components/radio/radio.component.scss +107 -0
- package/src/lib/modules/form-components/components/radio/radio.component.ts +181 -0
- package/src/lib/modules/form-components/components/radio/radio.models.ts +39 -0
- package/src/lib/modules/form-components/components/search/_theme.scss +73 -0
- package/src/lib/modules/form-components/components/search/search.component.html +15 -0
- package/src/lib/modules/form-components/components/search/search.component.scss +87 -0
- package/src/lib/modules/form-components/components/search/search.component.ts +213 -0
- package/src/lib/modules/form-components/components/search/search.models.ts +40 -0
- package/src/lib/modules/form-components/components/toggle/_theme.scss +45 -0
- package/src/lib/modules/form-components/components/toggle/toggle.component.html +15 -0
- package/src/lib/modules/form-components/components/toggle/toggle.component.scss +81 -0
- package/src/lib/modules/form-components/components/toggle/toggle.component.ts +166 -0
- package/src/lib/modules/form-components/components/toggle/toggle.models.ts +27 -0
- package/src/lib/modules/form-components/directives/click-outside.directive.ts +22 -0
- package/src/lib/modules/form-components/form-components.module.ts +41 -0
- package/src/lib/modules/form-components/form-components.theme.scss +25 -0
- package/src/lib/modules/material/material.module.ts +94 -0
- package/src/lib/modules/nav/components/nav/nav.component.html +34 -0
- package/src/lib/modules/nav/components/nav/nav.component.scss +171 -0
- package/src/lib/modules/nav/components/nav/nav.component.ts +82 -0
- package/src/lib/modules/nav/nav.models.ts +31 -0
- package/src/lib/modules/nav/nav.module.ts +17 -0
- package/src/lib/modules/nav/nav.theme.scss +86 -0
- package/src/lib/modules/pagination/components/pagination/pagination.component.html +52 -0
- package/src/lib/modules/pagination/components/pagination/pagination.component.scss +155 -0
- package/src/lib/modules/pagination/components/pagination/pagination.component.ts +109 -0
- package/src/lib/modules/pagination/pagination.module.ts +17 -0
- package/src/lib/modules/pagination/pagination.theme.scss +66 -0
- package/src/lib/modules/side-nav/components/side-nav/side-nav.component.html +56 -0
- package/src/lib/modules/side-nav/components/side-nav/side-nav.component.scss +342 -0
- package/src/lib/modules/side-nav/components/side-nav/side-nav.component.ts +135 -0
- package/src/lib/modules/side-nav/side-nav.models.ts +38 -0
- package/src/lib/modules/side-nav/side-nav.module.ts +16 -0
- package/src/lib/modules/side-nav/side-nav.theme.scss +111 -0
- package/src/lib/modules/smart-form/components/form-field/form-field.component.html +1109 -0
- package/src/lib/modules/smart-form/components/form-field/form-field.component.scss +1860 -0
- package/src/lib/modules/smart-form/components/form-field/form-field.component.ts +2232 -0
- package/src/lib/modules/smart-form/components/form-section/form-section.component.html +64 -0
- package/src/lib/modules/smart-form/components/form-section/form-section.component.scss +209 -0
- package/src/lib/modules/smart-form/components/form-section/form-section.component.ts +119 -0
- package/src/lib/modules/smart-form/components/smart-form/smart-form.component.html +253 -0
- package/src/lib/modules/smart-form/components/smart-form/smart-form.component.scss +689 -0
- package/src/lib/modules/smart-form/components/smart-form/smart-form.component.ts +1087 -0
- package/src/lib/modules/smart-form/index.ts +10 -0
- package/src/lib/modules/smart-form/models/form-schema.model.ts +700 -0
- package/src/lib/modules/smart-form/models/hierarchy-config.model.ts +21 -0
- package/src/lib/modules/smart-form/services/expression.service.ts +75 -0
- package/src/lib/modules/smart-form/services/smart-form-controller.service.ts +65 -0
- package/src/lib/modules/smart-form/smart-form.examples.ts +1324 -0
- package/src/lib/modules/smart-form/smart-form.module.ts +36 -0
- package/src/lib/modules/smart-form/smart-form.theme.scss +890 -0
- package/src/lib/modules/smart-form/utils/translation.utils.ts +82 -0
- package/src/lib/modules/smart-form/utils/trusted-url.pipe.ts +25 -0
- package/src/lib/modules/smart-form/utils/validation.utils.ts +98 -0
- package/src/lib/modules/smart-table/components/smart-table/smart-table.component.html +283 -0
- package/src/lib/modules/smart-table/components/smart-table/smart-table.component.scss +685 -0
- package/src/lib/modules/smart-table/components/smart-table/smart-table.component.ts +1118 -0
- package/src/lib/modules/smart-table/models/table-config.model.ts +202 -0
- package/src/lib/modules/smart-table/smart-table.module.ts +30 -0
- package/src/lib/modules/smart-table/smart-table.theme.scss +335 -0
- package/src/lib/modules/smart-table/utils/safe-html.pipe.ts +22 -0
- package/src/lib/modules/smart-table/utils/smart-table.utils.ts +18 -0
- package/src/lib/modules/snackbar/components/snackbar.component.html +41 -0
- package/src/lib/modules/snackbar/components/snackbar.component.scss +99 -0
- package/src/lib/modules/snackbar/components/snackbar.component.ts +18 -0
- package/src/lib/modules/snackbar/models/snackbar.models.ts +10 -0
- package/src/lib/modules/snackbar/services/snackbar.service.ts +40 -0
- package/src/lib/modules/snackbar/snackbar.module.ts +11 -0
- package/src/lib/modules/snackbar/snackbar.theme.scss +93 -0
- package/src/lib/modules/summary-card/components/summary-card/summary-card.component.html +47 -0
- package/src/lib/modules/summary-card/components/summary-card/summary-card.component.scss +199 -0
- package/src/lib/modules/summary-card/components/summary-card/summary-card.component.ts +126 -0
- package/src/lib/modules/summary-card/summary-card.module.ts +18 -0
- package/src/lib/modules/summary-card/summary-card.theme.scss +176 -0
- package/src/lib/shared-ui.module.ts +44 -0
- package/src/lib/styles/global.scss +152 -0
- package/src/lib/styles/utilities.scss +250 -0
- package/src/lib/utils/constants.ts +11 -0
- package/src/lib/utils/storage.utils.ts +37 -0
- package/src/lib/utils/string.utils.ts +23 -0
- package/src/lib/utils/translation.utils.ts +87 -0
- package/src/public-api.ts +104 -0
- package/tsconfig.lib.json +15 -0
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
// Configurable Form Component Styles
|
|
2
|
+
:host {
|
|
3
|
+
display: block;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.configurable-form-container {
|
|
8
|
+
padding: 0;
|
|
9
|
+
font-family: var(--cf-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
|
|
10
|
+
|
|
11
|
+
// Section Card
|
|
12
|
+
.section-card {
|
|
13
|
+
background: var(--cf-surface-background, #ffffff);
|
|
14
|
+
border: 1px solid var(--cf-border-color, #D1D5DB);
|
|
15
|
+
border-radius: var(--cf-section-radius, 12px);
|
|
16
|
+
padding: var(--cf-section-padding, 2rem);
|
|
17
|
+
margin-bottom: var(--cf-section-spacing, 1.5rem);
|
|
18
|
+
box-shadow: var(--cf-section-shadow, 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06));
|
|
19
|
+
|
|
20
|
+
&:last-of-type {
|
|
21
|
+
margin-bottom: 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Section Header
|
|
26
|
+
.section-header {
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
align-items: center;
|
|
30
|
+
margin-bottom: var(--cf-section-spacing, 1.5rem);
|
|
31
|
+
padding-bottom: 1rem;
|
|
32
|
+
border-bottom: 2px solid var(--cf-border-color, #D1D5DB);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.section-title {
|
|
36
|
+
font-size: var(--cf-section-title-size, 1.25rem);
|
|
37
|
+
font-weight: var(--cf-section-title-weight, 600);
|
|
38
|
+
color: var(--cf-text-primary, #111827);
|
|
39
|
+
margin: 0;
|
|
40
|
+
letter-spacing: -0.025em;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Form Grid System
|
|
44
|
+
.form-grid {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-wrap: wrap;
|
|
47
|
+
margin-left: -0.625rem;
|
|
48
|
+
margin-right: -0.625rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.form-col {
|
|
52
|
+
// Mobile-first: all columns are full width by default
|
|
53
|
+
position: relative;
|
|
54
|
+
width: 100%;
|
|
55
|
+
padding-left: 0.625rem;
|
|
56
|
+
padding-right: 0.625rem;
|
|
57
|
+
margin-bottom: 1.25rem; // Vertical spacing
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Column classes for mobile
|
|
61
|
+
@for $i from 1 through 12 {
|
|
62
|
+
.col-#{$i} {
|
|
63
|
+
flex: 0 0 percentage($i / 12);
|
|
64
|
+
max-width: percentage($i / 12);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Desktop column classes (min-width: 769px)
|
|
69
|
+
@media (min-width: 769px) {
|
|
70
|
+
@for $i from 1 through 12 {
|
|
71
|
+
.col-md-#{$i} {
|
|
72
|
+
flex: 0 0 percentage($i / 12);
|
|
73
|
+
max-width: percentage($i / 12);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Field Container
|
|
79
|
+
.field-container {
|
|
80
|
+
margin-bottom: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.field-label {
|
|
84
|
+
display: block;
|
|
85
|
+
font-size: var(--cf-label-size, 0.875rem);
|
|
86
|
+
font-weight: var(--cf-label-weight, 600);
|
|
87
|
+
color: var(--cf-text-primary, #111827);
|
|
88
|
+
margin-bottom: 0.5rem;
|
|
89
|
+
line-height: 1.25rem;
|
|
90
|
+
|
|
91
|
+
.text-danger {
|
|
92
|
+
color: var(--cf-error-color, #DC2626);
|
|
93
|
+
margin-left: 0.125rem;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Input Wrapper
|
|
98
|
+
.input-wrapper {
|
|
99
|
+
position: relative;
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Form Input
|
|
105
|
+
.form-input {
|
|
106
|
+
width: 100%;
|
|
107
|
+
padding: var(--cf-input-padding-y, 0.625rem) var(--cf-input-padding-x, 0.875rem);
|
|
108
|
+
font-size: var(--cf-input-font-size, 0.875rem);
|
|
109
|
+
line-height: 1.5;
|
|
110
|
+
color: var(--cf-text-primary, #111827);
|
|
111
|
+
background-color: var(--cf-input-bg, #ffffff);
|
|
112
|
+
border: 1.5px solid var(--cf-border-color, #D1D5DB);
|
|
113
|
+
border-radius: var(--cf-input-radius, 8px);
|
|
114
|
+
transition: all 0.2s ease;
|
|
115
|
+
font-family: inherit;
|
|
116
|
+
|
|
117
|
+
&:hover:not(:disabled):not([readonly]) {
|
|
118
|
+
border-color: var(--cf-input-hover-border-color, #9CA3AF);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:focus {
|
|
122
|
+
outline: none;
|
|
123
|
+
border-color: var(--cf-primary-color, #3B82F6);
|
|
124
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&::placeholder {
|
|
128
|
+
color: #9CA3AF;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&:disabled,
|
|
132
|
+
&[readonly] {
|
|
133
|
+
background-color: var(--cf-disabled-background, #F3F4F6);
|
|
134
|
+
color: var(--cf-text-secondary, #6B7280);
|
|
135
|
+
cursor: not-allowed;
|
|
136
|
+
border-color: #E5E7EB;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&.is-invalid {
|
|
140
|
+
border-color: var(--cf-error-color, #DC2626);
|
|
141
|
+
background-color: #FEF2F2;
|
|
142
|
+
|
|
143
|
+
&:focus {
|
|
144
|
+
box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
select.form-input {
|
|
150
|
+
appearance: none;
|
|
151
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
|
|
152
|
+
background-position: right 0.5rem center;
|
|
153
|
+
background-repeat: no-repeat;
|
|
154
|
+
background-size: 1.5em 1.5em;
|
|
155
|
+
padding-right: 2.5rem;
|
|
156
|
+
cursor: pointer;
|
|
157
|
+
|
|
158
|
+
&:disabled {
|
|
159
|
+
cursor: not-allowed;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.form-textarea {
|
|
164
|
+
resize: vertical;
|
|
165
|
+
min-height: 100px;
|
|
166
|
+
font-family: inherit;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// Input Suffix
|
|
170
|
+
.input-suffix {
|
|
171
|
+
position: absolute;
|
|
172
|
+
right: 0.75rem;
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
gap: 0.5rem;
|
|
176
|
+
pointer-events: none;
|
|
177
|
+
|
|
178
|
+
.password-toggle-icon {
|
|
179
|
+
pointer-events: auto;
|
|
180
|
+
cursor: pointer;
|
|
181
|
+
|
|
182
|
+
&:hover {
|
|
183
|
+
color: var(--cf-text-primary, #111827);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.suffix-text {
|
|
188
|
+
font-size: 0.875rem;
|
|
189
|
+
color: var(--cf-text-secondary, #6B7280);
|
|
190
|
+
font-weight: 500;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
mat-icon {
|
|
194
|
+
font-size: 1.25rem;
|
|
195
|
+
width: 1.25rem;
|
|
196
|
+
height: 1.25rem;
|
|
197
|
+
color: var(--cf-text-secondary, #6B7280);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.lock-icon {
|
|
201
|
+
color: #9CA3AF;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&.color-suffix {
|
|
205
|
+
.suffix-text {
|
|
206
|
+
color: var(--cf-primary-color, #3B82F6);
|
|
207
|
+
font-weight: 600;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// Character Count
|
|
213
|
+
.char-count-row {
|
|
214
|
+
display: flex;
|
|
215
|
+
justify-content: space-between;
|
|
216
|
+
align-items: center;
|
|
217
|
+
margin-top: 0.5rem;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.char-count {
|
|
221
|
+
font-size: 0.75rem;
|
|
222
|
+
color: var(--cf-text-secondary, #6B7280);
|
|
223
|
+
font-weight: 500;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.hint-text {
|
|
227
|
+
font-size: var(--cf-hint-size, 0.75rem);
|
|
228
|
+
color: var(--cf-text-secondary, #6B7280);
|
|
229
|
+
margin-top: 0.375rem;
|
|
230
|
+
line-height: 1.25rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.mt-2 {
|
|
234
|
+
margin-top: 0.5rem;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// Radio Group
|
|
238
|
+
.radio-group-container {
|
|
239
|
+
&.is-invalid {
|
|
240
|
+
.field-label {
|
|
241
|
+
color: var(--cf-error-color, #DC2626);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.radio-group {
|
|
247
|
+
display: flex;
|
|
248
|
+
gap: 2rem;
|
|
249
|
+
flex-wrap: wrap;
|
|
250
|
+
margin-top: 0.5rem;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.radio-button {
|
|
254
|
+
margin: 0;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// Composite Fields
|
|
258
|
+
.composite-container {
|
|
259
|
+
display: flex;
|
|
260
|
+
align-items: center;
|
|
261
|
+
gap: 0.75rem;
|
|
262
|
+
|
|
263
|
+
.separator {
|
|
264
|
+
font-size: 0.875rem;
|
|
265
|
+
color: var(--cf-text-secondary, #6B7280);
|
|
266
|
+
font-weight: 500;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.input-wrapper {
|
|
270
|
+
flex: 1;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// File Upload
|
|
275
|
+
.upload-box {
|
|
276
|
+
border: 2px dashed var(--cf-border-color, #D1D5DB);
|
|
277
|
+
border-radius: var(--cf-section-radius, 12px);
|
|
278
|
+
padding: 2.5rem;
|
|
279
|
+
text-align: center;
|
|
280
|
+
cursor: pointer;
|
|
281
|
+
transition: all 0.2s ease;
|
|
282
|
+
background-color: var(--cf-hover-background, #F9FAFB);
|
|
283
|
+
|
|
284
|
+
&:hover {
|
|
285
|
+
border-color: var(--cf-primary-color, #3B82F6);
|
|
286
|
+
background-color: rgba(59, 130, 246, 0.03);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
&.is-invalid {
|
|
290
|
+
border-color: var(--cf-error-color, #DC2626);
|
|
291
|
+
background-color: #FEF2F2;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.upload-icon {
|
|
295
|
+
font-size: 3rem;
|
|
296
|
+
width: 3rem;
|
|
297
|
+
height: 3rem;
|
|
298
|
+
color: var(--cf-primary-color, #3B82F6);
|
|
299
|
+
margin-bottom: 0.75rem;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.upload-text {
|
|
303
|
+
font-size: 0.875rem;
|
|
304
|
+
color: var(--cf-text-primary, #111827);
|
|
305
|
+
font-weight: 500;
|
|
306
|
+
margin-bottom: 0.375rem;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.upload-hint {
|
|
310
|
+
font-size: 0.75rem;
|
|
311
|
+
color: var(--cf-text-secondary, #6B7280);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.uploaded-files-list {
|
|
316
|
+
margin-top: 1rem;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.uploaded-file-item {
|
|
320
|
+
display: flex;
|
|
321
|
+
align-items: center;
|
|
322
|
+
gap: 0.75rem;
|
|
323
|
+
padding: 0.875rem;
|
|
324
|
+
border: 1.5px solid var(--cf-border-color, #D1D5DB);
|
|
325
|
+
border-radius: 8px;
|
|
326
|
+
margin-bottom: 0.5rem;
|
|
327
|
+
background-color: var(--cf-hover-background, #F9FAFB);
|
|
328
|
+
transition: all 0.2s ease;
|
|
329
|
+
|
|
330
|
+
&:hover {
|
|
331
|
+
border-color: #9CA3AF;
|
|
332
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.file-icon {
|
|
336
|
+
mat-icon {
|
|
337
|
+
font-size: 2rem;
|
|
338
|
+
width: 2rem;
|
|
339
|
+
height: 2rem;
|
|
340
|
+
|
|
341
|
+
&.pdf-icon {
|
|
342
|
+
color: #DC2626;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
&.doc-icon {
|
|
346
|
+
color: #2563EB;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
&.img-icon {
|
|
350
|
+
color: #059669;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
&.file-icon-default {
|
|
354
|
+
color: var(--cf-text-secondary, #6B7280);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.file-info {
|
|
360
|
+
flex: 1;
|
|
361
|
+
|
|
362
|
+
.file-name {
|
|
363
|
+
font-size: 0.875rem;
|
|
364
|
+
color: var(--cf-text-primary, #111827);
|
|
365
|
+
font-weight: 500;
|
|
366
|
+
margin-bottom: 0.125rem;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.file-size {
|
|
370
|
+
font-size: 0.75rem;
|
|
371
|
+
color: var(--cf-text-secondary, #6B7280);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.remove-file-btn {
|
|
376
|
+
mat-icon {
|
|
377
|
+
font-size: 1.25rem;
|
|
378
|
+
width: 1.25rem;
|
|
379
|
+
height: 1.25rem;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
// Date Picker
|
|
385
|
+
.relative {
|
|
386
|
+
position: relative;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.date-toggle {
|
|
390
|
+
position: absolute;
|
|
391
|
+
right: 0;
|
|
392
|
+
top: 50%;
|
|
393
|
+
transform: translateY(-50%);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
// Repeater Section
|
|
397
|
+
.repeater-item {
|
|
398
|
+
padding: 1.5rem;
|
|
399
|
+
border: 1.5px solid var(--cf-border-color, #D1D5DB);
|
|
400
|
+
border-radius: 10px;
|
|
401
|
+
margin-bottom: 1rem;
|
|
402
|
+
background-color: var(--cf-hover-background, #F9FAFB);
|
|
403
|
+
transition: all 0.2s ease;
|
|
404
|
+
|
|
405
|
+
&:hover {
|
|
406
|
+
border-color: #9CA3AF;
|
|
407
|
+
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.repeater-item-header {
|
|
412
|
+
display: flex;
|
|
413
|
+
justify-content: space-between;
|
|
414
|
+
align-items: center;
|
|
415
|
+
margin-bottom: 1.25rem;
|
|
416
|
+
padding-bottom: 0.75rem;
|
|
417
|
+
border-bottom: 1.5px solid var(--cf-border-color, #D1D5DB);
|
|
418
|
+
|
|
419
|
+
.text-small {
|
|
420
|
+
font-size: 0.875rem;
|
|
421
|
+
font-weight: 600;
|
|
422
|
+
color: var(--cf-text-primary, #111827);
|
|
423
|
+
text-transform: uppercase;
|
|
424
|
+
letter-spacing: 0.025em;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.repeater-separator {
|
|
429
|
+
height: 1px;
|
|
430
|
+
background-color: var(--cf-border-color, #D1D5DB);
|
|
431
|
+
margin: 1.5rem 0;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.add-btn {
|
|
435
|
+
margin-top: 1rem;
|
|
436
|
+
display: inline-flex;
|
|
437
|
+
align-items: center;
|
|
438
|
+
gap: 0.5rem;
|
|
439
|
+
padding: 0.625rem 1.25rem;
|
|
440
|
+
background-color: transparent;
|
|
441
|
+
color: var(--cf-primary-color, #3B82F6);
|
|
442
|
+
border: 1.5px solid var(--cf-primary-color, #3B82F6);
|
|
443
|
+
border-radius: 8px;
|
|
444
|
+
font-size: 0.875rem;
|
|
445
|
+
font-weight: 600;
|
|
446
|
+
cursor: pointer;
|
|
447
|
+
transition: all 0.2s ease;
|
|
448
|
+
|
|
449
|
+
&:hover:not(:disabled) {
|
|
450
|
+
background-color: var(--cf-primary-color, #3B82F6);
|
|
451
|
+
color: white;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
&:disabled {
|
|
455
|
+
opacity: 0.5;
|
|
456
|
+
cursor: not-allowed;
|
|
457
|
+
border-color: var(--cf-disabled-background, #E5E7EB);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
mat-icon {
|
|
461
|
+
font-size: 1.25rem;
|
|
462
|
+
width: 1.25rem;
|
|
463
|
+
height: 1.25rem;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
// Mobile Responsive
|
|
470
|
+
@media (max-width: 768px) {
|
|
471
|
+
.section-card {
|
|
472
|
+
padding: 1.25rem;
|
|
473
|
+
border-radius: 8px;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.form-grid {
|
|
477
|
+
margin-left: -0.5rem;
|
|
478
|
+
margin-right: -0.5rem;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.form-col {
|
|
482
|
+
padding-left: 0.5rem;
|
|
483
|
+
padding-right: 0.5rem;
|
|
484
|
+
margin-bottom: 1rem;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
.radio-group {
|
|
490
|
+
flex-direction: column;
|
|
491
|
+
gap: 0.75rem;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.composite-container {
|
|
495
|
+
flex-direction: column;
|
|
496
|
+
align-items: stretch;
|
|
497
|
+
|
|
498
|
+
.separator {
|
|
499
|
+
text-align: center;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|