physical-quantity 1.1.28 → 1.1.30

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 CHANGED
@@ -94,63 +94,60 @@ The physical-quantity component supports the following attributes:
94
94
  - <ins>_value_</ins>: The initial value of the physical quantity. It can be any number.
95
95
  - <ins>_unit_</ins>: The initial unit of the physical quantity. It must be a valid unit within the supported unit category (e.g., mm, cm, m, in, ft for length).
96
96
  - <ins>_decimal-places_</ins>: web author can specify the decimal-places depending on the magnitude of the quantity. Default to be 3.
97
+ - <ins>_show-unit-arrow_</ins>: specify to show the downward arrow following the units list. Default to be true. When set to false, it is suitable when the author wants to show in a compact format.
97
98
 
98
99
  ### Supported Units
99
100
  Currently, the component supports the following categories and units:
100
- - Length
101
- - m (meter)
102
- - km (kilometers)
103
- - mm (millimeter)
104
- - cm (centimeter)
105
- - in (inch)
106
- - ft (foot)
107
- - Mass
108
- - kg (kilogram)
109
- - g (gram)
110
- - lbm (pound mass)
111
- - Pressure/Stress:
112
- - Pa
113
- - kPa
114
- - MPa
115
- - GPa
116
- - bar
117
- - mbar
118
- - atm
119
- - mm HG
120
- - cm HG
121
- - in HG
122
- - mm W.C.
123
- - m W.C.,
124
- - in W.C.
125
- - psf: pound per square foot
126
- - psi: pound per square foot
127
- - ksi: kilo-pound per square foot
128
- - ksi[kip/in²]
129
- - Density:
130
- - kg/
131
- - kg/L
132
- - g/cm³
133
- - g/mm³
134
- - lbm/ft³
135
- - lbm/in³
136
- - Time:
137
- - s[second]
138
- - s
139
- - minute
140
- - h
141
- - h[hour]
142
- - day
143
- - week,
144
- - ElectricalCurrent:
145
- - A
146
- - Ampere[amp]
147
- - mA
148
- - µA
149
- - kA
150
- - MA
151
- - esu/s"
152
- - ... (more to update.)
153
-
101
+ | Category | Unit | Description |
102
+ |---|---|---|
103
+ | Length | m |meter|
104
+ | |km |kilometers|
105
+ | |mm |millimeter|
106
+ | |cm |centimeter|
107
+ | |in |inch|
108
+ | |ft |foot|
109
+ | Mass | kg |kilogram|
110
+ | | g |gram|
111
+ | |lbm |pound mass|
112
+ | Pressure/Stress | Pa ||
113
+ | | kPa ||
114
+ | | MPa ||
115
+ | | GPa ||
116
+ | | bar ||
117
+ | | mbar||
118
+ | | atm||
119
+ | | mm HG||
120
+ | | cm HG||
121
+ | | in HG||
122
+ | | mm W.C.||
123
+ | | m W.C.||
124
+ | | in W.C.||
125
+ | | psf| pound per square foot|
126
+ | | psi| pound per square foot|
127
+ | | ksi| kilo-pound per square foot|
128
+ | | ksi[kip/in²]||
129
+ | Density | kg/m³||
130
+ | | kg/L||
131
+ | | g/cm³||
132
+ | | g/mm³||
133
+ | | lbm/ft³||
134
+ | | lbm/in³||
135
+ | Time | s[second] ||
136
+ | | s||
137
+ | | minute||
138
+ | | h||
139
+ | | h[hour]||
140
+ | | day||
141
+ | | week||
142
+ | ElectricalCurrent | A ||
143
+ | | Ampere[amp]||
144
+ | | mA||
145
+ | | µA||
146
+ | | kA||
147
+ | | MA||
148
+ | | esu/s |
149
+ | more to update. | (feel free to send your request for other units & categories) ||
150
+
154
151
  ## License
155
152
  This project is licensed under the MIT License. See the LICENSE file for more details.
156
153
 
@@ -160,6 +157,7 @@ Contributions are welcome! Please contact the developer for any bugs, features,
160
157
  ## Change Log
161
158
  | Version | Date | Description |
162
159
  |---|---|---|
160
+ | v1.1.30 |20240615| Added "show-unit-arrow" prop to allow web author to create a compact UI; Unit width is now responsive to the chosen unit; Author can force init unit.|
163
161
  | v1.1.28 |20240610| Tooltip for unit list provides a link to the unit converter page for all unit categories. Added more categories.|
164
162
  | v1.1.21 |20240603| Added alias uc-qty. |
165
163
  | v1.1.19 |20240602| Changed to umd for unpkg, and es for module. |
@@ -168,4 +166,5 @@ Contributions are welcome! Please contact the developer for any bugs, features,
168
166
  If you have any questions or feedback, feel free to contact me at don.wen@yahoo.com.
169
167
  For more info, please visit:
170
168
  [AutoCalcs](https://v2.donwen.com/)
171
- [AutoCalcs Docs and Library](https://v2-docs.donwen.com/)
169
+ [AutoCalcs Docs and Library](https://v2-docs.donwen.com/)
170
+ [Demo](https://v2-docs.donwen.com/demo/index.html)