Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

14.07 #119

Merged
merged 55 commits into from
Jun 29, 2022
Merged

14.07 #119

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
d370749
version bump 14.04
iJungleboy Jun 21, 2022
644ee4d
minor fix toolbar settings not all preserved
iJungleboy Jun 22, 2022
ec58dbd
Squashed commit of the following:
maaaximum-at-2sic Jun 23, 2022
bdd01cd
added release tags to types
maaaximum-at-2sic Jun 23, 2022
e818efa
removed jQuery types dependency
maaaximum-at-2sic Jun 23, 2022
e743ccd
improvements typings
maaaximum-at-2sic Jun 23, 2022
6ed6b92
minor
maaaximum-at-2sic Jun 23, 2022
33b18bc
wip
iJungleboy Jun 23, 2022
860066d
removed unnecessary exports, added folder for tsconfig types
maaaximum-at-2sic Jun 23, 2022
7515136
Merge branch 'develop' of https://github.com/2sic/2sxc-ui into develop
maaaximum-at-2sic Jun 23, 2022
54074f1
added api documentor
maaaximum-at-2sic Jun 23, 2022
1c31b89
npm publish temp
iJungleboy Jun 23, 2022
394b65c
typings folder changes, added global window declaration
maaaximum-at-2sic Jun 23, 2022
c12625c
minor
maaaximum-at-2sic Jun 23, 2022
7c91fc4
improvements
maaaximum-at-2sic Jun 23, 2022
a552272
improve obj2url and typescript version of $2sxc
iJungleboy Jun 23, 2022
ea720b8
typings update
iJungleboy Jun 23, 2022
cf4e46c
sxc-angular wip
maaaximum-at-2sic Jun 23, 2022
ff7a66e
dnn angular tests
iJungleboy Jun 23, 2022
6ac6559
Merge branch 'develop' of https://github.com/2sic/2sxc-ui into develop
iJungleboy Jun 23, 2022
bc9f85e
update typescript version on inpage
iJungleboy Jun 23, 2022
8ae6a78
flush .angular cache from repo
iJungleboy Jun 23, 2022
f18c7e1
remove temp files from git
iJungleboy Jun 23, 2022
7074b95
remove typing artefacts from git
iJungleboy Jun 23, 2022
d60a001
fix generate types
iJungleboy Jun 23, 2022
b3369b8
minor
iJungleboy Jun 23, 2022
2f55a41
minor dependency
maaaximum-at-2sic Jun 24, 2022
9740abe
many changes just for docs
iJungleboy Jun 24, 2022
a4793aa
republish types
iJungleboy Jun 24, 2022
43e8a0f
stabilize docs
iJungleboy Jun 24, 2022
4a1edc9
rename / move dnn-sxc-angular to sxc-angular
iJungleboy Jun 24, 2022
1a8c6c0
minor docs etc. publishing sxc-angular
iJungleboy Jun 24, 2022
db6d7ae
move away from sortOrder to use index
iJungleboy Jun 24, 2022
df0f515
wip docs etc.
iJungleboy Jun 24, 2022
857f978
rename param index (sync server/client)
iJungleboy Jun 24, 2022
340bacc
docs
iJungleboy Jun 26, 2022
c113c4e
minor docs
iJungleboy Jun 26, 2022
a7ab27c
fix minor bug with publish button on toolbar
iJungleboy Jun 27, 2022
a763bdd
new button operator to add-with-optional show
iJungleboy Jun 27, 2022
7c09d5c
minor
iJungleboy Jun 27, 2022
6e96c02
renames and docs
iJungleboy Jun 27, 2022
4e19df3
file renames
iJungleboy Jun 27, 2022
d31d562
renames
iJungleboy Jun 27, 2022
3c9c8ab
rename
iJungleboy Jun 28, 2022
0c8a29f
clean up renames
iJungleboy Jun 28, 2022
56d006d
ongoing command name renames
iJungleboy Jun 28, 2022
8e05d05
wip docs
iJungleboy Jun 28, 2022
de75c84
renames
iJungleboy Jun 28, 2022
74ba3be
renames
iJungleboy Jun 28, 2022
85dcf8c
update button code to provide params as first parameter
iJungleboy Jun 28, 2022
1a83ce1
docs
iJungleboy Jun 29, 2022
819fdfb
docs
iJungleboy Jun 29, 2022
b65e698
republish typings 14.2.4
iJungleboy Jun 29, 2022
4c1bea9
minor api inconsistency
iJungleboy Jun 29, 2022
63e7e31
version bump 14.07
iJungleboy Jun 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ projects/$2sxc/docs/obj

# Sub-Projects dist - to make sure results don't appear in search
projects/quick-dialog/dist

projects/sxc-typings/parts/dist

projects/sxc-docs
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "2sxc-ui",
"version": "14.03.00",
"version": "14.07.00",
"description": "2sxc UI - the JS UI of 2sxc",
"scripts": {
"release-all": "npm run js2sxc && npm run inpage && npm run snippets && npm run quickdialog && npm run turn-on",
Expand Down
18 changes: 9 additions & 9 deletions projects/$2sxc/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion projects/$2sxc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"ts-loader": "^7.0.0",
"type2docfx": "^0.10.5",
"typedoc": "^0.15.8",
"typescript": "^3.8.3",
"typescript": "^4.7.4",
"webpack": "^4.42.1",
"webpack-cli": "^3.3.11",
"webpack-shell-plugin": "^0.5.0"
Expand Down
3 changes: 2 additions & 1 deletion projects/$2sxc/src/_/Window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { SxcGlobal } from '../sxc-global';

/**
* export interface WindowInternal extends
* @public
*/
declare global {
interface Window {
Expand All @@ -11,7 +12,7 @@ declare global {
$2sxc: SxcGlobal;

/** @internal */
$: JQueryStatic & DnnJQueryExtensions;
$: any & DnnJQueryExtensions;
}
}

Expand Down
109 changes: 85 additions & 24 deletions projects/$2sxc/src/cms/command-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@

/**
* Names of commands known to 2sxc CMS - for use in toolbars and calling commands directly from code
* @public
*/
export enum CommandNames {
/**
* `add` opens a `new` dialog to create and add a new item to a **list of items**.
* `add` adds another demo-item to a **list of items**.
* It does not open the edit-dialog.
* <br> The new item is placed after the item the (+) was clicked on.
* <br>💡
* This is similar to `new` but also adds the item to the existing list of items shown on the page.
* This is different than new, which opens a dialog to add something.
* <br> 🪜 Only appears on toolbars of items which are in a list.
* <br> 📩 [Parameters](xref:Api.Js.SxcJs.CommandAddParams)
*/
Expand Down Expand Up @@ -73,20 +75,33 @@ export enum CommandNames {
apps = 'apps',

/**
* `contentitems` opens the list to manage all items of a specific content-type.
* `data` opens the list to manage all items of a specific content-type.
* <br> 🔘 Will use the settings of the current template to open.
* It is only shown to elevated admins.
* <br> 📩 [Parameters](xref:Api.Js.SxcJs.CommandContentItemsParams)
* <br> 📩 [Parameters](xref:Api.Js.SxcJs.CommandDataParams)
*/
contentItems = 'contentitems',
data = 'data',

/**
* `contenttype` opens the dialog to view or modify fields of a content-type.
* old name
* @internal
*/
data_old_contentItems = 'contentitems',

/**
* `fields` opens the dialog to view or modify fields of a content-type.
* <br> 🔘 On a toolbar it will use the content-type of the current item.
* <br> 🔐 Toolbar shows this automatically to elevated admins.
* <br> 📩 [Parameters](xref:Api.Js.SxcJs.CommandContentTypeParams)
*/
contentType = 'contenttype',
fields = 'fields',

/**
* old name
* @internal
*/
fields_old_contenttype = 'contenttype',


/**
* `copy` opens the edit-dialog for the current item in copy-mode, so when saving it will be a new item.
Expand All @@ -96,11 +111,17 @@ export enum CommandNames {
copy = 'copy',

/**
* `custom` will execute custom javascript.
* `code` will execute custom javascript.
* <br> 🔘 This is mainly for toolbars, to add buttons with custom code.
* <br> 📩 [Parameters](xref:Api.Js.SxcJs.CommandCustomParams)
* <br> 📩 [Parameters](xref:Api.Js.SxcJs.CommandCodeParams)
*/
code = 'code',

/**
* old name
* @internal
*/
custom = 'custom',
code_old_custom = 'custom',

/**
* `delete` will delete (not just remove) a content-item.
Expand All @@ -114,7 +135,8 @@ export enum CommandNames {
/**
* `edit` opens an edit-dialog.
* <br>
* In scenarios where the page is currently showing a demo item, this will have the same effect as `add`
* In scenarios where the page is currently showing a _demo item_, this will have the same effect as `add`.
* So instead of editing the _demo item_ it would trigger a dialog to add a new item.
* <br> 🔘 Only appears if `entityId` is known or item is in a list.
* <br> 📩 Parameters either one of these:
* [Id](xref:Api.Js.SxcJs.CommandParamsEntityById),
Expand All @@ -131,19 +153,32 @@ export enum CommandNames {
image = 'image',

/**
* `insights-server` opens the insights logs page
* `insights` opens the insights logs page
* <br> 🔐 Toolbar shows this automatically to elevated admins.
* <br> 📩 No params required.
*/
insightsServer = 'insights-server',
insights = 'insights',

/**
* old name
* @internal
*/
insights_old_server = 'insights-server',

/**
* `instance-list` opens a dialog to manually re-order **items in a list**.
* <br> 🪜 Only appears on toolbars of items which are in a list.
* <br> 📩 No params required,
* (auto-detected from context)
*/
instanceList = 'instance-list',
list = 'list',

/**
* old name
* @internal
*/
list_old_instanceList = 'instance-list',


/**
* `layout` opens the in-page dialog to change the layout of the current content.
Expand Down Expand Up @@ -188,12 +223,13 @@ export enum CommandNames {
moveUp = 'moveup',

/**
* `new` opens the edit-dialog for a new content-item.
* `new` opens the edit-dialog to create a new item/entity.
* <br>
* It will only create an item, not add it to a list.
* For that you would need to use `add`
* <br> 📩 [Parameters](xref:Api.Js.SxcJs.CommandContentTypeParams)
* (auto-detected from context)
* If the previous item is in a list, it will add it to that list _after_ the previous item with the toolbar.
* Otherwise it just creates it and the visualization will differ depending on the App.
* <br> 🪜 It works differently for lists - in which case it also adds it to the list.
* <br> 📩 [Parameters](xref:Api.Js.SxcJs.CommandNewParams)
* (usually auto-detected from context)
*/
new = 'new',

Expand Down Expand Up @@ -235,7 +271,14 @@ export enum CommandNames {
* <br> 📩 No params required,
* (auto-detected from context)
*/
templateDevelop = 'template-develop',
template = 'template',

/**
* old name
* @internal
*/
template_old_develop = 'template-develop',


/**
* `template-query` opens the pipeline/query-designer in a new window.
Expand All @@ -245,21 +288,39 @@ export enum CommandNames {
* <br> 📩 No params required,
* (auto-detected from context)
*/
templateQuery = 'template-query',
query = 'query',

/**
* old name
* @internal
*/
query_old_templateQuery = 'template-query',

/**
* `template-settings` will change settings on the template currently used
* <br> 🔐 Toolbar shows this automatically to elevated admins.
*/
templateSettings = 'template-settings',
view = 'view',

/**
* old name
* @internal
*/
view_old_templateSettings = 'template-settings',

/**
* `zone` opens the system dialog for this zone/site.
* `system` opens the system dialog for this zone/site.
* <br> 🔐 Toolbar shows this automatically to elevated admins.
* <br> 📩 No params required,
* (auto-detected from context)
*/
zone = 'zone',
system = 'system',

/**
* old name
* @internal
*/
system_old_zone = 'zone',
}


Expand Down
1 change: 1 addition & 0 deletions projects/$2sxc/src/cms/command-params-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { MetadataTargetTypes } from '../data';

/**
* Parameters on `metadata` for commands which have a metadata-target.
* @public
*/
export interface CommandParamsMetadata {
/**
Expand Down
Loading