Skip to content

Commit 39c1470

Browse files
authored
Merge pull request #6 from mykabam/im-4136
Fix(ngFormio) - Fix formio calendar widget translation issue in crs and zh-CN
2 parents 16d7c28 + db85970 commit 39c1470

File tree

18 files changed

+1101
-902
lines changed

18 files changed

+1101
-902
lines changed

dist/formio.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ng-formio.js

Lines changed: 559 additions & 414 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ng-formio.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ng-formio.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ng-formio.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/directives/formio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ var _default = app.directive('formio', function () {
100100
if ($scope.src || $scope.form) {
101101
$scope.initialized = true;
102102
window.Formio.createForm($scope.element, $scope.src || $scope.form, _.cloneDeep($scope.options)).then(function (formio) {
103-
window.languages = window.languages || {
103+
window.languages = {
104104
en: true
105105
};
106106
window.setFormioLanguage = function (lang, generics) {

lib/factories/FormioScope.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require("core-js/modules/es.array.find.js");
1515
require("core-js/modules/es.object.to-string.js");
1616
require("core-js/modules/es.regexp.to-string.js");
1717
var _formiojs = require("formiojs");
18-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
18+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
1919
var app = angular.module('formio');
2020
var _default = app.factory('FormioScope', function () {
2121
return {

lib/providers/Formio.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ app.config(['$httpProvider', '$injector', function ($httpProvider, $injector) {
2727
$httpProvider.interceptors.push('formioInterceptor');
2828
}]);
2929
var _default = app.provider('Formio', function () {
30+
_formiojs.Formio.GlobalFormio.cdn['flatpickr-formio'] = "".concat(window.location.origin, "/vendors/flatpickr");
31+
3032
// Return the provider interface.
3133
return {
3234
// Expose Formio configuration functions

lib/providers/formioInterceptor.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ Object.defineProperty(exports, "__esModule", {
44
value: true
55
});
66
exports.default = void 0;
7+
require("core-js/modules/es.array.slice.js");
78
var app = angular.module('formio');
89
var _default = app.factory('formioInterceptor', ['$q', '$rootScope', 'Formio', function ($q, $rootScope, Formio) {
910
var Interceptor = {
1011
/**
1112
* Update JWT token received from response.
1213
*/
1314
response: function response(_response) {
15+
window.FORMIO_SETTINGS && window.FORMIO_SETTINGS.url && Formio.setBaseUrl(window.FORMIO_SETTINGS.url.slice(0, -1)) && Formio.setProjectUrl(window.FORMIO_SETTINGS.url.slice(0, -1)) && Formio.setApiUrl(window.FORMIO_SETTINGS.url.slice(0, -1));
1416
var token = _response.headers('x-jwt-token');
1517
if (_response.status >= 200 && _response.status < 300 && token && token !== '') {
1618
Formio.setToken(token);

package-lock.json

Lines changed: 511 additions & 475 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)