@pacem/pacem-ui 2.0.0-chebyshev → 2.0.0-davinci
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/dist/browser/pacem-ui.js +43 -10
- package/dist/browser/pacem-ui.js.map +1 -1
- package/dist/browser/pacem-ui.min.js +2 -2
- package/dist/bundle/pacem-ui.min.mjs +39 -38
- package/dist/bundle/pacem-ui.mjs +62 -27
- package/dist/bundle/pacem-ui.mjs.map +3 -3
- package/dist/docs/pacem-ui.json +1 -1
- package/dist/esm/adapter.js +1 -1
- package/dist/esm/anchor.js +3 -2
- package/dist/esm/balloon.js +5 -1
- package/dist/esm/binder.js +1 -1
- package/dist/esm/blade.js +1 -1
- package/dist/esm/bottom-sheet.js +2 -2
- package/dist/esm/button.js +3 -2
- package/dist/esm/buttonset.js +1 -1
- package/dist/esm/calendar.js +1 -1
- package/dist/esm/collapse.js +1 -1
- package/dist/esm/dialog-abstractions.js +1 -1
- package/dist/esm/dialog.js +1 -1
- package/dist/esm/divider.js +1 -1
- package/dist/esm/icon.js +1 -1
- package/dist/esm/image.js +1 -1
- package/dist/esm/index-components-ui.js +1 -1
- package/dist/esm/index-components.js +1 -1
- package/dist/esm/index-iife.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/infinite-scroller.js +1 -1
- package/dist/esm/iterative.js +1 -1
- package/dist/esm/lightbox-abstractions.js +1 -1
- package/dist/esm/lightbox.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/markdown-svc.js +23 -3
- package/dist/esm/markdown.js +1 -1
- package/dist/esm/marquee.js +1 -1
- package/dist/esm/media-query.js +1 -1
- package/dist/esm/menu.js +1 -1
- package/dist/esm/pager.js +1 -1
- package/dist/esm/picture.js +1 -1
- package/dist/esm/progressbar.js +5 -2
- package/dist/esm/sidebar.js +5 -2
- package/dist/esm/slideshow.js +1 -1
- package/dist/esm/social-twitter.js +1 -1
- package/dist/esm/sticky-header.js +1 -1
- package/dist/esm/tabs.js +1 -1
- package/dist/esm/ticker.js +1 -1
- package/dist/esm/toast.js +3 -2
- package/dist/esm/toc.js +1 -1
- package/dist/esm/tuner.js +1 -1
- package/dist/esm/types.js +1 -1
- package/dist/esm/vibration.js +1 -1
- package/dist/esm/view.js +1 -1
- package/dist/esm/window.js +1 -1
- package/package.json +1 -1
- package/typings/index.d.ts +7 -1
package/dist/browser/pacem-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @pacem/pacem-ui v2.0.0-
|
|
2
|
+
* @pacem/pacem-ui v2.0.0-davinci (https://js.pacem.it)
|
|
3
3
|
* Pacem (https://pacem.it)
|
|
4
4
|
* Licensed under Apache-2.0
|
|
5
5
|
*/
|
|
@@ -506,7 +506,8 @@
|
|
|
506
506
|
], PacemAnchorElement.prototype, "router", void 0);
|
|
507
507
|
PacemAnchorElement = __decorate$A([
|
|
508
508
|
pacemCore.CustomElement({
|
|
509
|
-
tagName: pacemCore.P + '-a'
|
|
509
|
+
tagName: pacemCore.P + '-a',
|
|
510
|
+
modifiers: ['hoverable', 'focusable', 'pressable']
|
|
510
511
|
})
|
|
511
512
|
], PacemAnchorElement);
|
|
512
513
|
|
|
@@ -1080,6 +1081,9 @@
|
|
|
1080
1081
|
}
|
|
1081
1082
|
}
|
|
1082
1083
|
};
|
|
1084
|
+
__decorate$z([
|
|
1085
|
+
pacemCore.ViewChild(`.${pacemCore.PCSS}-balloon-face`, true, false)
|
|
1086
|
+
], PacemBalloonElement.prototype, "_face", void 0);
|
|
1083
1087
|
__decorate$z([
|
|
1084
1088
|
pacemCore.ViewChild(`.${pacemCore.PCSS}-balloon`)
|
|
1085
1089
|
], PacemBalloonElement.prototype, "_container", void 0);
|
|
@@ -1100,6 +1104,7 @@
|
|
|
1100
1104
|
tagName: pacemCore.P + '-balloon',
|
|
1101
1105
|
shadow: true,
|
|
1102
1106
|
template: `<${pacemCore.P}-resize target="{{ :host.target }}" disabled="true" watch-position="true" on-${pacemCore.Components.ResizeEventName}=":host._onLayoutChange($event)"></${pacemCore.P}-resize>
|
|
1107
|
+
<div class="${pacemCore.PCSS}-balloon-face"></div>
|
|
1103
1108
|
<div class="${pacemCore.PCSS}-balloon"><${pacemCore.P}-resize on-${pacemCore.Components.ResizeEventName}=":host._onLayoutChange($event)" disabled="true" content><slot></slot></${pacemCore.P}-resize></div>
|
|
1104
1109
|
<div class="corner top-left" part="corner-topleft"></div><div class="corner bottom-left" part="corner-bottomleft"></div><div class="corner top-right" part="corner-topright"></div><div class="corner bottom-right" part="corner-bottomright"></div>`
|
|
1105
1110
|
})
|
|
@@ -2165,7 +2170,7 @@
|
|
|
2165
2170
|
pacemCore.ViewChild(pacemCore.P + '-resize[handle]')
|
|
2166
2171
|
], PacemBottomSheetElement.prototype, "_handleResizer", void 0);
|
|
2167
2172
|
__decorate$w([
|
|
2168
|
-
pacemCore.ViewChild(pacemCore.P + '-panel.bottom-sheet')
|
|
2173
|
+
pacemCore.ViewChild(pacemCore.P + '-panel.bottom-sheet', true)
|
|
2169
2174
|
], PacemBottomSheetElement.prototype, "_sheet", void 0);
|
|
2170
2175
|
__decorate$w([
|
|
2171
2176
|
pacemCore.Watch({ emit: false, converter: pacemCore.PropertyConverters.Boolean })
|
|
@@ -2357,7 +2362,8 @@
|
|
|
2357
2362
|
], PacemButtonElement.prototype, "confirmationDialog", void 0);
|
|
2358
2363
|
PacemButtonElement = __decorate$u([
|
|
2359
2364
|
pacemCore.CustomElement({
|
|
2360
|
-
tagName: pacemCore.P + '-button'
|
|
2365
|
+
tagName: pacemCore.P + '-button',
|
|
2366
|
+
modifiers: ['hoverable', 'focusable', 'clickable']
|
|
2361
2367
|
})
|
|
2362
2368
|
], PacemButtonElement);
|
|
2363
2369
|
//}
|
|
@@ -3908,7 +3914,7 @@ css-class="{{ ['hour-start-'+ (^item.hour + 1), 'hour-end-'+ (^item.hour + ^item
|
|
|
3908
3914
|
pacemCore.ViewChild('.' + pacemCore.PCSS + '-lightbox-wrapper')
|
|
3909
3915
|
], PacemLightboxElement.prototype, "_wrapperElement", void 0);
|
|
3910
3916
|
__decorate$k([
|
|
3911
|
-
pacemCore.ViewChild('.' + pacemCore.PCSS + '-lightbox')
|
|
3917
|
+
pacemCore.ViewChild('.' + pacemCore.PCSS + '-lightbox', true)
|
|
3912
3918
|
], PacemLightboxElement.prototype, "_container", void 0);
|
|
3913
3919
|
__decorate$k([
|
|
3914
3920
|
pacemCore.ViewChild('slot[name=close]')
|
|
@@ -4006,7 +4012,7 @@ css-class="{{ ['hour-start-'+ (^item.hour + 1), 'hour-end-'+ (^item.hour + ^item
|
|
|
4006
4012
|
}
|
|
4007
4013
|
};
|
|
4008
4014
|
__decorate$j([
|
|
4009
|
-
pacemCore.ViewChild('div.' + pacemCore.PCSS + '-spinner')
|
|
4015
|
+
pacemCore.ViewChild('div.' + pacemCore.PCSS + '-spinner', true)
|
|
4010
4016
|
], PacemLoaderElement.prototype, "_spinner", void 0);
|
|
4011
4017
|
__decorate$j([
|
|
4012
4018
|
pacemCore.ViewChild('div.' + pacemCore.PCSS + '-loader')
|
|
@@ -4067,6 +4073,22 @@ css-class="{{ ['hour-start-'+ (^item.hour + 1), 'hour-end-'+ (^item.hour + ^item
|
|
|
4067
4073
|
},
|
|
4068
4074
|
type: 'inline'
|
|
4069
4075
|
};
|
|
4076
|
+
// routed link: {route}(#router0:/{culture}/pages/next "Next Page"), the router's selector, then the href (formatted by
|
|
4077
|
+
// the router's state), then the optional text (the href when missing)
|
|
4078
|
+
const ANCHOR_RULE = {
|
|
4079
|
+
rule: {
|
|
4080
|
+
exec: (input) => {
|
|
4081
|
+
const arr = /\{route\}\(([^:\s)]+):([^\s")]+)(?:\s+"([^"]*)")?\)/.exec(input);
|
|
4082
|
+
if (arr && arr.length > 2) {
|
|
4083
|
+
return [{
|
|
4084
|
+
type: 'route', raw: arr[0], text: arr[3] || arr[2], index: arr.index, router: arr[1], href: arr[2]
|
|
4085
|
+
}];
|
|
4086
|
+
}
|
|
4087
|
+
return null;
|
|
4088
|
+
}
|
|
4089
|
+
},
|
|
4090
|
+
type: 'inline'
|
|
4091
|
+
};
|
|
4070
4092
|
const RULES_TO_HTML = (token) => {
|
|
4071
4093
|
switch (token.type) {
|
|
4072
4094
|
case 'youtube':
|
|
@@ -4075,17 +4097,21 @@ css-class="{{ ['hour-start-'+ (^item.hour + 1), 'hour-end-'+ (^item.hour + ^item
|
|
|
4075
4097
|
case 'tweet':
|
|
4076
4098
|
return `<!-- twitter embed -->
|
|
4077
4099
|
<${pacemCore.P}-tweetembed tweetid="${token.text}"></${pacemCore.P}-tweetembed>`;
|
|
4100
|
+
case 'route':
|
|
4101
|
+
return `<${pacemCore.P}-a href="${token['href']}" router="${token['router']}">${token.text}</${pacemCore.P}-a>`;
|
|
4078
4102
|
}
|
|
4079
4103
|
};
|
|
4080
4104
|
/**
|
|
4081
|
-
* Parses Markdown into HTML, extended with Pacem-specific inline embeds (`{tweet}(id)`, `{yt}(id)`)
|
|
4105
|
+
* Parses Markdown into HTML, extended with Pacem-specific inline embeds (`{tweet}(id)`, `{yt}(id)`) and routed links
|
|
4106
|
+
* (`{route}(#router0:/path "text")`).
|
|
4082
4107
|
* Fenced code blocks are highlighted by the language-agnostic `Compile.Scanner`, for every language registered in
|
|
4083
4108
|
* `Compile.Syntaxes` (built-in: javascript/typescript, html/xml, c#, c/c++, json; more can be registered at runtime).
|
|
4084
4109
|
*/
|
|
4085
4110
|
class MarkdownService {
|
|
4086
4111
|
#grammar = [
|
|
4087
4112
|
TWITTER_RULE,
|
|
4088
|
-
YOUTUBE_RULE
|
|
4113
|
+
YOUTUBE_RULE,
|
|
4114
|
+
ANCHOR_RULE
|
|
4089
4115
|
];
|
|
4090
4116
|
#md = new pacemFoundation.Compile.Markdown.Parser();
|
|
4091
4117
|
_escape(md) {
|
|
@@ -4791,7 +4817,10 @@ css-class="{{ ['hour-start-'+ (^item.hour + 1), 'hour-end-'+ (^item.hour + ^item
|
|
|
4791
4817
|
}
|
|
4792
4818
|
};
|
|
4793
4819
|
__decorate$c([
|
|
4794
|
-
pacemCore.ViewChild('.progressbar-
|
|
4820
|
+
pacemCore.ViewChild('.progressbar-track', true, false)
|
|
4821
|
+
], PacemProgressbarElement.prototype, "_face", void 0);
|
|
4822
|
+
__decorate$c([
|
|
4823
|
+
pacemCore.ViewChild('.progressbar-bar', false, true)
|
|
4795
4824
|
], PacemProgressbarElement.prototype, "_bar", void 0);
|
|
4796
4825
|
__decorate$c([
|
|
4797
4826
|
pacemCore.ViewChild('.progressbar-glow')
|
|
@@ -4861,6 +4890,9 @@ css-class="{{ ['hour-start-'+ (^item.hour + 1), 'hour-end-'+ (^item.hour + ^item
|
|
|
4861
4890
|
this.#shell = pacemCore.CustomElementUtils.findAncestorShell(this);
|
|
4862
4891
|
}
|
|
4863
4892
|
};
|
|
4893
|
+
__decorate$b([
|
|
4894
|
+
pacemCore.ViewChild('.sidebar-drawer', true)
|
|
4895
|
+
], PacemSidebarElement.prototype, "_drawer", void 0);
|
|
4864
4896
|
__decorate$b([
|
|
4865
4897
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Boolean })
|
|
4866
4898
|
], PacemSidebarElement.prototype, "open", void 0);
|
|
@@ -5500,7 +5532,8 @@ css-class="{{ ['hour-start-'+ (^item.hour + 1), 'hour-end-'+ (^item.hour + ^item
|
|
|
5500
5532
|
], PacemToastElement, "toast2", null);
|
|
5501
5533
|
PacemToastElement = PacemToastElement_1 = __decorate$5([
|
|
5502
5534
|
pacemCore.CustomElement({
|
|
5503
|
-
tagName: pacemCore.P + '-toast'
|
|
5535
|
+
tagName: pacemCore.P + '-toast',
|
|
5536
|
+
modifiers: ['clickable']
|
|
5504
5537
|
})
|
|
5505
5538
|
], PacemToastElement);
|
|
5506
5539
|
|