text-transform.js 1.1 KB

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
  4. var TEXT_TRANSFORM;
  5. (function (TEXT_TRANSFORM) {
  6. TEXT_TRANSFORM[TEXT_TRANSFORM["NONE"] = 0] = "NONE";
  7. TEXT_TRANSFORM[TEXT_TRANSFORM["LOWERCASE"] = 1] = "LOWERCASE";
  8. TEXT_TRANSFORM[TEXT_TRANSFORM["UPPERCASE"] = 2] = "UPPERCASE";
  9. TEXT_TRANSFORM[TEXT_TRANSFORM["CAPITALIZE"] = 3] = "CAPITALIZE";
  10. })(TEXT_TRANSFORM = exports.TEXT_TRANSFORM || (exports.TEXT_TRANSFORM = {}));
  11. exports.textTransform = {
  12. name: 'text-transform',
  13. initialValue: 'none',
  14. prefix: false,
  15. type: IPropertyDescriptor_1.PropertyDescriptorParsingType.IDENT_VALUE,
  16. parse: function (textTransform) {
  17. switch (textTransform) {
  18. case 'uppercase':
  19. return TEXT_TRANSFORM.UPPERCASE;
  20. case 'lowercase':
  21. return TEXT_TRANSFORM.LOWERCASE;
  22. case 'capitalize':
  23. return TEXT_TRANSFORM.CAPITALIZE;
  24. }
  25. return TEXT_TRANSFORM.NONE;
  26. }
  27. };
  28. //# sourceMappingURL=text-transform.js.map