@progress/kendo-common-tasks 7.7.1-esbuild.16
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/CHANGELOG.md +1027 -0
- package/README.md +10 -0
- package/bin/ci-commit-snapshots +66 -0
- package/bin/ci-semantic-release +44 -0
- package/bin/ci-utils +25 -0
- package/docs-layout.hbs +48 -0
- package/docs-public/bootstrap.css +6759 -0
- package/docs-public/bootstrap.min.js +7 -0
- package/docs-public/codemirror/clike.min.js +1 -0
- package/docs-public/codemirror/codemirror.min.js +5 -0
- package/docs-public/codemirror/css.min.js +1 -0
- package/docs-public/codemirror/htmlmixed.min.js +1 -0
- package/docs-public/codemirror/javascript.min.js +1 -0
- package/docs-public/codemirror/jsx.min.js +1 -0
- package/docs-public/codemirror/php.min.js +1 -0
- package/docs-public/codemirror/runmode.min.js +1 -0
- package/docs-public/codemirror/xml.min.js +1 -0
- package/docs-public/docs.css +209 -0
- package/docs-public/docs.scss +254 -0
- package/docs-public/editor/angular/app/app.component.ts +3 -0
- package/docs-public/editor/angular/app/app.module.ts +14 -0
- package/docs-public/editor/angular/index.html +32 -0
- package/docs-public/editor/angular/main.ts +15 -0
- package/docs-public/editor/angular/polyfills.ts +73 -0
- package/docs-public/editor/angular/styles.css +13 -0
- package/docs-public/editor/builder/app/app.component.html +1 -0
- package/docs-public/editor/builder/app/app.component.ts +17 -0
- package/docs-public/editor/builder/app/app.css +449 -0
- package/docs-public/editor/builder/app/app.module.ts +53 -0
- package/docs-public/editor/builder/app/core/core.module.ts +19 -0
- package/docs-public/editor/builder/app/core/data/data-services.exports.ts +71 -0
- package/docs-public/editor/builder/app/core/data/data.service.ts +183 -0
- package/docs-public/editor/builder/app/core/data/odata-service-factory.ts +23 -0
- package/docs-public/editor/builder/app/core/data/odata.service.ts +88 -0
- package/docs-public/editor/builder/app/core/module.config.ts +19 -0
- package/docs-public/editor/builder/app/data/odata-provider/customer.config.ts +17 -0
- package/docs-public/editor/builder/app/data/odata-provider/customer.model.ts +17 -0
- package/docs-public/editor/builder/app/grid-demo.base.component.ts +107 -0
- package/docs-public/editor/builder/app/grid-demo.component.html +37 -0
- package/docs-public/editor/builder/app/grid-demo.component.ts +1 -0
- package/docs-public/editor/builder/app/shared/components/grid/grid.component.html +5 -0
- package/docs-public/editor/builder/app/shared/components/grid/grid.component.ts +243 -0
- package/docs-public/editor/builder/app/shared/services/grid-incell-editing.service.ts +120 -0
- package/docs-public/editor/builder/app/topSection.html +12 -0
- package/docs-public/editor/builder/app/topSection.ts +25 -0
- package/docs-public/editor/builder/assets/themes/metro.css +18877 -0
- package/docs-public/editor/builder/index.html +14 -0
- package/docs-public/editor/builder/main.ts +14 -0
- package/docs-public/editor/builder/polyfills.ts +67 -0
- package/docs-public/editor/builder/styles.css +1 -0
- package/docs-public/editor/builder/tsconfig.app.json +13 -0
- package/docs-public/editor/builder/typings.d.ts +5 -0
- package/docs-public/editor/react/app/main.jsx +6 -0
- package/docs-public/editor/react/index.html +32 -0
- package/docs-public/editor/vue/app/main.js +5 -0
- package/docs-public/editor/vue/index.html +29 -0
- package/docs-public/example-runner.js +802 -0
- package/docs-public/github.css +99 -0
- package/docs-public/snippets.js +1722 -0
- package/docs-public/tomorrow-night.css +75 -0
- package/docs-server.js +153 -0
- package/index.js +305 -0
- package/lint-slugs.js +25 -0
- package/markdown-serve/index.js +10 -0
- package/markdown-serve/parser.js +234 -0
- package/markdown-serve/resolver.js +86 -0
- package/markdown-serve/server.js +370 -0
- package/package.json +95 -0
- package/progress-kendo-common-tasks-7.7.0.tgz +0 -0
- package/stub-loader.js +3 -0
- package/systemjs-bundle/systemjs-bundle.template.js +16 -0
- package/systemjs-bundle/task.js +37 -0
- package/tasks/package-metadata.js +68 -0
- package/test/jest-setup.js +2 -0
- package/test/snippets.test.js +373 -0
- package/verify-modules.js +60 -0
package/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[](https://travis-ci.org/telerik/kendo-common-tasks)
|
|
2
|
+
[](https://badge.fury.io/js/%40telerik%2Fkendo-common-tasks)
|
|
3
|
+
|
|
4
|
+
# Kendo UI Common Tasks
|
|
5
|
+
|
|
6
|
+
This package contains the build and packaging utilities, WebPack configuration blocks, and Gulp tasks that are used in the Kendo UI for Angular and KendoReact components. It also re-exports common packages such as WebPack.
|
|
7
|
+
|
|
8
|
+
Working examples of its usage are the [kendo-react-tasks](https://github.com/telerik/kendo-react-tasks) and [kendo-angular-tasks](https://github.com/telerik/kendo-angular-tasks) packages.
|
|
9
|
+
|
|
10
|
+
*Copyright © 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -o errexit
|
|
3
|
+
|
|
4
|
+
BOLD='\033[1;37m'
|
|
5
|
+
NC='\033[0m'
|
|
6
|
+
|
|
7
|
+
LOCAL_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
8
|
+
BRANCH=${BRANCH:-$LOCAL_BRANCH}
|
|
9
|
+
REPOSITORY=${REPO_FULL_NAME:-$GITHUB_REPOSITORY}
|
|
10
|
+
|
|
11
|
+
if [[ $BRANCH == '' ]]; then
|
|
12
|
+
echo "Visual tests must run on a branch (\$BRANCH=$BRANCH)"
|
|
13
|
+
exit 0
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
COMMIT_MESSAGE=$(git --no-pager log --format=%s -n 1)
|
|
17
|
+
if [[ "$COMMIT_MESSAGE" =~ "[skip-visual]" ]]; then
|
|
18
|
+
echo "Skipping visual tests for builds triggered by snapshots update"
|
|
19
|
+
exit 0
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
function commit_changes {
|
|
23
|
+
echo -e "${BOLD} Found updated screenshots, pushing commit to repository ${NC}"
|
|
24
|
+
|
|
25
|
+
echo " Configuring git..."
|
|
26
|
+
git config user.name "kendo-bot"
|
|
27
|
+
git config user.email "kendouiteam@progress.com"
|
|
28
|
+
echo " Creating commit..."
|
|
29
|
+
git add ./e2e_visual/snapshots
|
|
30
|
+
git commit -m "chore: update visual previews [skip-visual]"
|
|
31
|
+
git pull --rebase
|
|
32
|
+
echo " Pushing new commit to ${BRANCH#*/}"
|
|
33
|
+
git push
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
HAS_CHANGES=0
|
|
37
|
+
HAS_UNTRACKED=0
|
|
38
|
+
git diff --exit-code --quiet -- ./e2e_visual/snapshots/ || HAS_CHANGES=1
|
|
39
|
+
[[ $(git ls-files --others --exclude-standard ./e2e_visual/snapshots/) ]] && HAS_UNTRACKED=1
|
|
40
|
+
|
|
41
|
+
if [ $HAS_CHANGES -eq 0 -a $HAS_UNTRACKED -eq 0 ]; then
|
|
42
|
+
echo -e "${BOLD} Visual tests have detected no changes. Skipping commit. ${NC}"
|
|
43
|
+
exit 0
|
|
44
|
+
else
|
|
45
|
+
# push new screenshots to branch
|
|
46
|
+
commit_changes
|
|
47
|
+
fi
|
|
48
|
+
|
|
49
|
+
# set_status check_name
|
|
50
|
+
function set_status {
|
|
51
|
+
COMMIT_SHA=$(git rev-parse HEAD)
|
|
52
|
+
STATUS_URL="https://api.github.com/repos/$REPOSITORY/statuses/$COMMIT_SHA"
|
|
53
|
+
CHECK_NAME=$1
|
|
54
|
+
CREDENTIALS="kendo-bot:$GH_TOKEN"
|
|
55
|
+
PAYLOAD="{\"state\": \"success\", \"context\": \"$CHECK_NAME\"}"
|
|
56
|
+
|
|
57
|
+
echo "Marking '$CHECK_NAME' as successful..."
|
|
58
|
+
curl -s -X POST -u $CREDENTIALS -d "$PAYLOAD" "$STATUS_URL"
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
# TODO: Remove 'then' after migrating from Shippable
|
|
62
|
+
if [[ "$SHIPPABLE" == "true" ]]; then
|
|
63
|
+
set_status 'Shippable'
|
|
64
|
+
else
|
|
65
|
+
set_status 'build'
|
|
66
|
+
fi
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
LOCAL_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
4
|
+
BRANCH=${BRANCH:-$LOCAL_BRANCH}
|
|
5
|
+
|
|
6
|
+
# Override branch for Semantic Prerelease
|
|
7
|
+
export GIT_LOCAL_BRANCH=$BRANCH
|
|
8
|
+
|
|
9
|
+
REPOSITORY="telerik/$REPO_NAME"
|
|
10
|
+
if [[ $GITHUB_REPOSITORY ]]; then
|
|
11
|
+
REPOSITORY=$GITHUB_REPOSITORY
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
if [[ "$IS_PULL_REQUEST" == true ]]; then
|
|
15
|
+
echo "Skipping release for PR builds"
|
|
16
|
+
exit 0;
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
if [[ "$BRANCH" != "master" ]] && [[ "$BRANCH" != "develop" ]]; then
|
|
20
|
+
echo "Skipping release for branches other than \"master\" and \"develop\""
|
|
21
|
+
exit 0;
|
|
22
|
+
fi
|
|
23
|
+
|
|
24
|
+
if [[ "$REPOSITORY" == *-base ]]; then
|
|
25
|
+
echo "Skipping release for base repo"
|
|
26
|
+
exit 0;
|
|
27
|
+
fi
|
|
28
|
+
|
|
29
|
+
THIS_YEAR=`date +%Y`
|
|
30
|
+
REPLACE_YEAR="s/\$YEAR/$THIS_YEAR/g"
|
|
31
|
+
sed -i $REPLACE_YEAR LICENSE.md
|
|
32
|
+
sed -i $REPLACE_YEAR NOTICE.txt
|
|
33
|
+
sed -i $REPLACE_YEAR README.md
|
|
34
|
+
|
|
35
|
+
ERROR="$(npm run semantic-release 2>&1)"
|
|
36
|
+
EXIT_CODE=$?
|
|
37
|
+
|
|
38
|
+
echo $ERROR;
|
|
39
|
+
|
|
40
|
+
if [ $EXIT_CODE -eq 1 ] && [[ $ERROR != *"ENOCHANGE"* ]]; then
|
|
41
|
+
exit 1;
|
|
42
|
+
else
|
|
43
|
+
exit 0;
|
|
44
|
+
fi
|
package/bin/ci-utils
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
# Usage
|
|
4
|
+
# wait_url <URL> <timeout (s)>
|
|
5
|
+
function wait_url {
|
|
6
|
+
URL=$1
|
|
7
|
+
TIMEOUT=${2:-30}
|
|
8
|
+
DELAY=3
|
|
9
|
+
ELAPSED=0
|
|
10
|
+
|
|
11
|
+
sleep $DELAY
|
|
12
|
+
|
|
13
|
+
until $(curl --output /dev/null --silent --fail $URL); do
|
|
14
|
+
if [[ $ELAPSED -eq $TIMEOUT ]]; then
|
|
15
|
+
echo "Timeout on $URL"
|
|
16
|
+
exit 1
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
sleep 1
|
|
20
|
+
ELAPSED=$[ELAPSED+1]
|
|
21
|
+
done
|
|
22
|
+
|
|
23
|
+
# Done waiting
|
|
24
|
+
}
|
|
25
|
+
|
package/docs-layout.hbs
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
|
|
5
|
+
|
|
6
|
+
<!-- code mirror -->
|
|
7
|
+
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/codemirror/5.6.0/codemirror.min.css">
|
|
8
|
+
<link rel="stylesheet" href="/internals/tomorrow-night.css">
|
|
9
|
+
<link rel="stylesheet" href="/internals/bootstrap.css">
|
|
10
|
+
<link rel="stylesheet" href="/internals/docs.css">
|
|
11
|
+
|
|
12
|
+
<script src="/internals/codemirror/codemirror.min.js"></script>
|
|
13
|
+
<script src="/internals/codemirror/clike.min.js"></script>
|
|
14
|
+
<script src="/internals/codemirror/css.min.js"></script>
|
|
15
|
+
<script src="/internals/codemirror/htmlmixed.min.js"></script>
|
|
16
|
+
<script src="/internals/codemirror/javascript.min.js"></script>
|
|
17
|
+
<script src="/internals/codemirror/jsx.min.js"></script>
|
|
18
|
+
<script src="/internals/codemirror/php.min.js"></script>
|
|
19
|
+
<script src="/internals/codemirror/runmode.min.js"></script>
|
|
20
|
+
<script src="/internals/codemirror/xml.min.js"></script>
|
|
21
|
+
|
|
22
|
+
<script src="http://code.jquery.com/jquery-2.2.0.min.js"></script>
|
|
23
|
+
<script src="http://kendo.cdn.telerik.com/2016.2.714/js/kendo.core.min.js"></script>
|
|
24
|
+
<script src="/internals/bootstrap.min.js"></script>
|
|
25
|
+
<script src="/internals/example-runner.js"></script>
|
|
26
|
+
<script src="/auto-imports.js"></script>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
var jsCDN = '/cdn/{{scriptSrc}}'
|
|
30
|
+
var cssCDN = '/cdn/{{styleSrc}}'
|
|
31
|
+
var runnerScript = '/internals/example-runner.js';
|
|
32
|
+
var editorTemplatesPath = '/internals/editor/';
|
|
33
|
+
var npmUrl = '/npm';
|
|
34
|
+
var trackjs = false;
|
|
35
|
+
var k2platform = '{{platform}}';
|
|
36
|
+
var runner = 'stackblitz';
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<script src="/internals/snippets.js"></script>
|
|
40
|
+
</head>
|
|
41
|
+
<body>
|
|
42
|
+
<div class="container">
|
|
43
|
+
<h1>{{title}}</h1>
|
|
44
|
+
|
|
45
|
+
{{{ content }}}
|
|
46
|
+
</div>
|
|
47
|
+
</body>
|
|
48
|
+
</html>
|